Re: 'Serious' crypto?

2010-05-29 Thread perryh
Matthew Seaman m.sea...@infracaninophile.co.uk wrote:

 ... I don't think you could get support cover with a 4 hour
 on-site response from Soekris...

OTOH, given the price difference, one could afford to keep a
whole spare system on hand.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


VHS to file codec recommendation

2010-05-29 Thread Polytropon
Dear list,

I've built a system to digitize content from VHS video tapes.
The setting consists of a 2 GHz P4 with a BrookTree based
video grabber card (supported by bktr driver) and a C-Media
sound card (supported by cmi driver). The video card does
only have mono sound input, so I'm using the sound card's
line in for stereo audio. A proper cable from a SCART to
a Cinch connector and a 3,5mm TRS connector has been created.

I can already play on screen and through speakers with this
command:

mplayer tv://0 on:driver=bsdbt848:device=/dev/bktr0:norm=PAL:noaudio:input=2

I am intending to use mencoder for the whole process.

Which codec would you recommend for encoding?

I'm searching for a solution that doesn't introduce too
much loss of quality (as the tape's quality usually is
considered bad enough), and the resulting files should
not be too big. If possible (but not needed), they should
be playable by hardware DVD players (given the situation
when a digitized video is put into a ISO-9660 image on a
DVD).

Can you give an example for the proper encoding parameters
(frame rate, audio rate, resolution and so on)?



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


disabling uhid driver

2010-05-29 Thread freebsd


Hello,

I'm attempting to use a usb connected CyberPower UPS on generic kernel FreeBSD 
7.1:
~
FreeBSD epicenter 7.1-RELEASE-p8 FreeBSD 7.1-RELEASE-p8 #0: Fri Oct  2 07:10:41 
UTC 2009
r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
~

The UPS uses an hid interface and apparently the uhid driver is preventing
the ugen driver from attaching to this device.

It keeps connecting and disconnecting (from messages):
~
May 26 14:16:42 epicenter kernel: uhid0: CPS CP425HG, class 0/0, rev 1.10/0.01, 
addr 2 on uhub1
May 26 14:17:04 epicenter kernel: uhid0: at uhub1 port 2 (addr 2) disconnected
May 26 14:17:04 epicenter kernel: uhid0: detached
May 26 14:17:07 epicenter root: Unknown USB device: vendor 0x0764 product 
0x0501 bus uhub1
May 26 14:17:08 epicenter kernel: uhid0: CPS CP425HG, class 0/0, rev 1.10/0.01, 
addr 2 on uhub1
May 26 14:17:11 epicenter kernel: uhid0: at uhub1 port 2 (addr 2) disconnected
May 26 14:17:11 epicenter kernel: uhid0: detached
~

I use no other hid devices. Is there some way, short of recompiling the kernel,
to disable uhid, for this device or entirely?

I hope to configure the nut utility which utilizes ugen and libusb.

Thanks for any suggestions!

johnea

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: VHS to file codec recommendation

2010-05-29 Thread Roland Smith
On Sat, May 29, 2010 at 10:47:53AM +0200, Polytropon wrote:
 Dear list,
 
 I've built a system to digitize content from VHS video tapes.
 The setting consists of a 2 GHz P4 with a BrookTree based
 video grabber card (supported by bktr driver) and a C-Media
 sound card (supported by cmi driver). The video card does
 only have mono sound input, so I'm using the sound card's
 line in for stereo audio. A proper cable from a SCART to
 a Cinch connector and a 3,5mm TRS connector has been created.
 
 I can already play on screen and through speakers with this
 command:
 
 mplayer tv://0 on:driver=bsdbt848:device=/dev/bktr0:norm=PAL:noaudio:input=2

Use the '-dumpstream' and '-dumpfile foo.dump' options to save output to disk.
 
 I am intending to use mencoder for the whole process.
 
 Which codec would you recommend for encoding?

If you want to stick to mencoder, use x264 with mp3 audio. I've got the 
following in
~/.mplayer/mencoder.conf: 

[hqmovie]
profile-desc=High-quality movie encoding.
ovc=x264=1
oac=mp3lame=1
x264encopts=subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3
x264encopts=weight_b:qp=18:threads=auto
idx=1

Ecoding the movie is done with:

mencoder -profile hqmovie -o foo.avi foo.dump
 
 I'm searching for a solution that doesn't introduce too
 much loss of quality (as the tape's quality usually is
 considered bad enough), and the resulting files should
 not be too big. 

Bad tape quality will mean bigger files, I'm afraid. You could try some of the
filtering options of mencoder. See the VIDEO FILTERS section of
mencoder(1). Which filter to use is a bit of trial-and-error depending on the
quality of the material you've got. Use mplayer to cut a short but relevant
section from your material, and experiment on it with different filter
parameters. Start with e.g. '-vf pp=de/-al' or '-vf hqdn3d'. Using the
'decimate' filter might reduce filesize as well. Using the 'unsharp' filter
might help as well.

 If possible (but not needed), they should
 be playable by hardware DVD players (given the situation
 when a digitized video is put into a ISO-9660 image on a
 DVD).

In that case you should stick to MPEG2 video with AC3 audio. This will not be
the smallest file, though. This combo should work on all players, I
believe. Other than this, the capabilities of hardware players varies greatly.

Using Ogg Theora video with Ogg Vorbis audio in a Matroška container usually
gives the smallest files for me, when encoding good quality material;

ffmpeg2theora -v 8 -a 2 foo.dump
mkvmerge -o foo.mkv foo.ogv
rm foo.ogv

Hope this helps. :-/

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpllvDoIVjiG.pgp
Description: PGP signature


benchmark graphs, which software to use?

2010-05-29 Thread Adam PAPAI
Dear Mailing List,

I don't know how to create images like these:

http://people.freebsd.org/~kris/scaling/p3.png
http://people.freebsd.org/~kris/scaling/os-mysql.png

Which software should I use?

Thanks in advance,

-- 
Adam PAPAI
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: benchmark graphs, which software to use?

2010-05-29 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 29/05/2010 19:41:15, Adam PAPAI wrote:
 Dear Mailing List,
 
 I don't know how to create images like these:
 
 http://people.freebsd.org/~kris/scaling/p3.png
 http://people.freebsd.org/~kris/scaling/os-mysql.png
 
 Which software should I use?

gnuplot

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwBZPwACgkQ8Mjk52CukIz3RQCdGu0wzNSnGPxzeIczOtfst1PL
CScAn08ism9uebDqMRRnSmQr1N/8Pphn
=sIaY
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Upgrading default Apache1.3 to Apache22 port??

2010-05-29 Thread Kaya Saman

Hi guys,

after Google'ing around a bit I managed to stumble across this:

http://www.freebsd.org/doc/en/books/handbook/ports-using.html

http://www.freebsddiary.org/portupgrade.php

what I am trying to achieve is to upgrade the currently install Apache 
1.3.x port over to the Apache22 port. The Apach1x got installed through 
some ports which I built which if am not mistaken was either Cacti or Munin.


Anyhow, previously when running these guys and more on Linux I've always 
used Apache2x so it would be great to do the same here


If I attempt to deinstall Apach1x the system tells me that I have to do 
the same for all the dependencies too, which is not what I want.


Is there a way to upgrade cleanly and smoothly??


Many thanks,

Kaya
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


fonts qstns.

2010-05-29 Thread Gary Kline
guys,

given the depth and wide scope of knoweldge on this list, i'm
hoping that somebody can clue me in on font stuff... BUT:
the fonts i'm interested in have to work with openoffice.

first, i'm looking for a font that is apropos for long
manscripts.  printed.  books rather than newspapers or other
ink+paper material.  to me, GEorgia works quite nicely for
my book JOURNEY.  but am wondering if there is such a thing as 
a semi-bold  [or darker than usual regular] typeface.  

i hope you're all sitting down now; i'm ready to pay for this
font.  --hope nodybody fell over :)

thanks in advance,

gary,
who is almost done with his final copyedit.


-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.83a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org  99 97/100% Guaranteed Novel

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re : Possible to run Linux distro in a jail?

2010-05-29 Thread Alexandre L.
I have this link to a French Blog : 
http://blog.etoilebsd.net/post/Emprisonner_une_debian_dans_un_FreeBSD

This describe how to jail a Linux Debian in FreeBSD.

I hope this will help you. I haven't used it. 
Thanks to its author : Baptiste Daroussin.

I translated it in English : 



# mkdir /home/jails/debian
# mkdir /home/jails/debian/dev
# mkdir /home/jails/debian/proc
# mkdir /home/jails/debian/sys
# kldload linux
# kldload linprocfs
# kldload linsysfs
# kldload lindev
# mount -t devfs none /home/jails/debian/dev
# mount -t linprocfs none /home/jails/debian/proc
# mount -t linsysfs none /home/jails/debian/sys

We are using /home/jails/debian for the root of the Linux Debian.
We will load all the necessary devices (nota : lindev appeared in Freebsd 
9-CURRENT and has MFCed in 8-STABLE, it is not obligatory).

We could do the install with debootstrap, but I prefered to use an openvz 
template : 
# fetch http://download.openvz.org/template/precreated/debian-5.0-x86.tar.gz

And I unpack it in my jail : 
# tar xvfp debian-5.0-x86.tar.gz -C debian --exclude dev* --exclude proc* 
--exclude sys*

To correctly start my jail, at least 1 service must be started in the jail (I 
failed to build a persistent linux jail only). By default the startup script of 
jails try to launch /etc/rc that we will create and launch /etc/rc.shutdown to 
stop it.

# echo /etc/init.d/cron start  /home/jails/debian/etc/rc
# chmod 755 /home/jails/debian/etc/rc
# echo /etc/init.d/cron stop  /home/jails/debian/etc/rc.shutdown
# chmod 755 /home/jails/debian/etc/rc.shutdown

In /etc/rc.conf we configure the startup of the jail : 
jail_debian_rootdir=/home/jails/debian
jail_debian_hostname=debian
jail_debian_ip=192.168.1.3
jail_debian_interface=nfe0
jail_debian_devfs_enable=YES
jail_debian_devfs_ruleset=devfsrules_jail
jail_debian_flags=-n debian

We start the jail : 
# /etc/rc.d/jail start debian

And voilà : 
#jls
   JID  IP Address  Hostname  Path
15  192.168.1.3 debian/home/jails/debian
#jexec debian uname -a
Linux debian 2.6.16 FreeBSD 8.0-STABLE #3: Sun Jan 10 20:39:38 CET 2010 i686 
GNU/Linux
#jexec debian cat /etc/debian_version
5.0.4

Here a beautiful Debian Linux jailed in FreeBSD
But be careful, not everything works perfectly : sysklogd don't run cause to 
/dev access. But 99% is functional.

--- En date de : Ven 28.5.10, Yuri y...@rawbw.com a écrit :

 De: Yuri y...@rawbw.com
 Objet: Possible to run Linux distro in a jail?
 À: freebsd-questions freebsd-questions@FreeBSD.ORG
 Date: Vendredi 28 mai 2010, 20h16
 When I googled linux in a jail I
 got some references but no particular howto.
 Since currently VirtualBox is broken (hangs OS after a
 while), is it really possible to install Linux into a jail
 as a virtual machine?
 
 Yuri
 ___
 freebsd-questions@freebsd.org
 mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org




   

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrading default Apache1.3 to Apache22 port??

2010-05-29 Thread Kaya Saman

On 29/05/2010 23:52, Jerry wrote:

On Sat, 29 May 2010 23:23:10 +0300
Kaya Samansamank...@netscape.net  articulated:


   

Hi guys,

after Google'ing around a bit I managed to stumble across this:

http://www.freebsd.org/doc/en/books/handbook/ports-using.html

http://www.freebsddiary.org/portupgrade.php

what I am trying to achieve is to upgrade the currently install
Apache 1.3.x port over to the Apache22 port. The Apach1x got
installed through some ports which I built which if am not mistaken
was either Cacti or Munin.

Anyhow, previously when running these guys and more on Linux I've
always used Apache2x so it would be great to do the same here

If I attempt to deinstall Apach1x the system tells me that I have to
do the same for all the dependencies too, which is not what I want.

Is there a way to upgrade cleanly and smoothly??
 

If it was me, I would use 'pkg_delete' to remove the existing
'apache' port. pkg_delete -dfv apache*

Make sure to update your ports tree, then cd to the www/apache22 port
and run make config to insure you have it configured correctly. Then,
portmanager www/apache22 -l -f to install the new version and insure
that all dependencies are properly updated. I have done similar before
and its worked well.


   


Thanks Jerry!!

It seems to have worked I just go into the config and check it; only 
that part seems missing?? Maybe it's in a different place then /etc in 
FreeBSD and I haven't worked it out yet. Even apache22 daemon is not in 
/etc/rc.d.


Oh well am sure will all be fine more Google'ing I think for me :-)

Regards,

Kaya
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrading default Apache1.3 to Apache22 port??

2010-05-29 Thread Michael Powell
Kaya Saman wrote:

[snip]
 
 It seems to have worked I just go into the config and check it; only
 that part seems missing?? Maybe it's in a different place then /etc in
 FreeBSD and I haven't worked it out yet. Even apache22 daemon is not in
 /etc/rc.d.
 
 Oh well am sure will all be fine more Google'ing I think for me :-)
 

FreeBSD has a slightly different layout than Linux or Solaris. The configs 
and startup scripts belong in /usr/local/etc and /usr/local/etc/rc.d 
respectively. 

To invoke the startup script on boot up, simply place apache22_enable=YES 
into the /etc/rc.conf file. The manual method using apachectl will still 
work at a command prompt.

This is very general and you will find most things you install will operate 
this way. 

-Mike



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Upgrading default Apache1.3 to Apache22 port??

2010-05-29 Thread Kaya Saman

On 30/05/2010 02:01, Michael Powell wrote:

Kaya Saman wrote:

[snip]
   

It seems to have worked I just go into the config and check it; only
that part seems missing?? Maybe it's in a different place then /etc in
FreeBSD and I haven't worked it out yet. Even apache22 daemon is not in
/etc/rc.d.

Oh well am sure will all be fine more Google'ing I think for me :-)

 

FreeBSD has a slightly different layout than Linux or Solaris. The configs
and startup scripts belong in /usr/local/etc and /usr/local/etc/rc.d
respectively.

To invoke the startup script on boot up, simply place apache22_enable=YES
into the /etc/rc.conf file. The manual method using apachectl will still
work at a command prompt.

This is very general and you will find most things you install will operate
this way.

-Mike



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
   

Thanks Mike!! :-D

Yeah I can see what your saying now as I'm SSH'd into my server.

It's really similar to the extra repos I have on my Solaris boxes as 
they're totally odd places which is normal for them but perhaps not so 
normal for the newcomer or unsuspecting!


This is cool now, all I need to do is sort out the MySQL database and 
Cronjob for Cacti then get that working.


Thanks so much,

Best regards


Kaya
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


FireFox problem ?

2010-05-29 Thread zaxis

uname -a
FreeBSD mybsd.zsoft.com 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #9: Sat Mar 27
15:06:39 CST 2010 r...@mybsd.zsoft.com:/usr/obj/usr/src/sys/MYKERNEL 
i386

pkg_version -vIL= | grep -i firefox
firefox-3.5.9,1needs updating (index has 3.5.9_1,1)

Sometimes when i close one page tab, firefox will exit automatically !

Sincerely!

-
e^(π⋅i) + 1 = 0
-- 
View this message in context: 
http://old.nabble.com/FireFox-problem---tp28719810p28719810.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FireFox problem ?

2010-05-29 Thread Dan Nelson
In the last episode (May 29), zaxis said:
 
 uname -a
 FreeBSD mybsd.zsoft.com 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #9: Sat Mar 27 
 15:06:39 CST 2010 r...@mybsd.zsoft.com:/usr/obj/usr/src/sys/MYKERNEL  i386
 
 pkg_version -vIL= | grep -i firefox
 firefox-3.5.9,1needs updating (index has 3.5.9_1,1)
 
 Sometimes when i close one page tab, firefox will exit automatically !

Please make sure you are running the most recent version before reporting
problems.

3.5.9_1,1:
 date: 2010/05/18 14:17:31;  author: beat;  state: Exp;  lines: +1 -0
 - Fix crash when closing tab after recent cairo update
 - Bump PORTREVISION


-- 
Dan Nelson
dnel...@allantgroup.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


FreeBSD 8.1-BETA1 Available

2010-05-29 Thread Aiza


http://www.daemonforums.org/showthread.php?t=4797

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


text editor

2010-05-29 Thread Fbsd1

Been using ee and been happy.

Now I have need for an editor with block commands.
Put dd on the first line of sequence number you want to start deleting and dd 
on the
last line of the block and hit enter and the block of lines are deleted.
OR
Put cc on first line and cc on last line of black to copy and enter I on line 
where
you want the copied block to be inserted after.
Also same for mm meaning move block.

Is there any editors with a function like this?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


sh script writing help

2010-05-29 Thread Aiza
In a .sh type script I have  exerr  very long message gt 250 char 
all on the same line. This is a real pain to edit.


Is there some code a can use to continue this on the next line so I can 
see it on the screen and still have the command function? I tried \ with 
no luck.


thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: sh script writing help

2010-05-29 Thread Dan Nelson
In the last episode (May 30), Aiza said:
 In a .sh type script I have  exerr  very long message gt 250 char 
 all on the same line. This is a real pain to edit.
 
 Is there some code a can use to continue this on the next line so I can 
 see it on the screen and still have the command function? I tried \ with 
 no luck.

\ should work just fine:

$ echo long line \
split onto two
long line split onto two
$

-- 
Dan Nelson
dnel...@allantgroup.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org