Re: oops, now: bsd question: how to record a tv stream?
On Wed, 14 Mar 2012 12:30:08 -0700, Gary Kline wrote: > On Wed, Mar 14, 2012 at 02:58:30PM +1000, Da Rock wrote: > > Date: Wed, 14 Mar 2012 14:58:30 +1000 > > From: Da Rock > > Subject: Re: oops, now: bsd question: how to record a tv stream? > > To: freebsd-questions@freebsd.org > > > > On 03/14/12 13:09, Polytropon wrote: > > >On Tue, 13 Mar 2012 19:19:46 -0700, Gary Kline wrote: > > >> i have heard about the "848" or whatever cards for years. > > >> should i have my sister's technician add one? i understood > > >> everything but your last paragraph. please do send me the > > >> linksoffline i f you think it wise to spare the > > >> bandwidth. > > >Just to make a note: This is the card I'm using. The model > > >name is "Haupauge WinTV" and the tuner chip is Brooktree 878. > > >It is well supported by FreeBSD (and has been for many years). > > >A "problem" may be that it is a PCI card. > > > > > >The programs mplayer and mencoder can be used to address the > > >tuner and video-in functions of that card, as well as displaying > > >and storing the received content. You need a HF line to the > > >card (or an antenna maybe), except you provide the video feed > > >from a satelite receiver via video-in. In that case, you also > > >need to provide the audio signal from the receiver to your > > >sound card's line-in. With mencoder, both sources can be > > >"combined" and the result can be stored as a video file in > > >any format and container you want. > > > > > >This is the card: > > > > > >bktr0@pci0:0:9:0: class=0x04 card=0x13eb0070 > > > chip=0x036e109e rev=0x11 hdr=0x00 > > > vendor = 'Conexant (Was: Brooktree Corp)' > > > device = 'Bt878/Fusion 878A Mediastream Controller' > > > class = multimedia > > > subclass = video > > > > > >The card provides HF-in both for TV and radio, video-in, > > >audio-out and... not sure what it is. :-) > > > > > >You need the kernel modules loaded per > > > > > > bktr_load="YES" > > > > > >in /boot/loader.conf, and the card will work out of the box. > > >No need to manually and interactively install a "driver". :-) > > > > > >The player command is something like > > > > > > % mplayer tv://1 -vo x11 -ao sdl -tv driver=bsdbt848:device=/dev/bktr0 > > > > > >and similarly mencoder can be used (-ovc and -oac need to be > > >adjusted accordingly) to encode to a file. > > > > > >I'm not sure how to handle TV ("antenna") input as I've always > > >been using a raw video feed (from VTR or camera). However, there's > > >documentation that may help: > > > > > > http://www.mplayerhq.hu/DOCS/HTML/en/tv-input.html > > > > > >It also contains an example to "record to file", which will > > >implement the "software video tape recoder" functionality. > > Brooktrees would be nice - if you could find them. Given the move to > > DVB is nearly over, there aren't many analog cards available - or > > need for them. > > > > The new cards use incompatible chipsets (learnt the hard way), > > including analog and especially DVB; you have to use the cx88 port > > to use them. Or if you come across a different chipset ensure the > > card is USB based and use webcamd. > > > > Following all that, FBSD works beautifully as a HTPC. > > > GAAWK! This is far, far out of my comfort zone thst i wsill > just skip it for now. i have my feed from my local telco, > not an antenna The BrookTree TV tuner component doesn't make a big difference here. Both the antenna and the cable will deliver a "frequency conglomerate" of the available TV programs which the tuner chip can select from. If you require a specific cable receiver with video-out, you can send its signal to the card's video-on (and the audio-out of the receiver to your computer's sound card's line-in), skipping the part where the TV card has to select a TV program. Both methods work fine. > thanks for all the datapoints, guys, but i can vedry well > live without the card. In that case, try to find a web presence that allows you to down- load or to stream (and in conclusion, to download) the TV programs. This makes you independent of airing time (which probably is a good thing). Maybe there's also a service like OnlineTVRecorder.com ("Your personal multichannel tv recorder") available for you, providing downloads for the programs you want in AVI or OTRKEY format. -- 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"
Racoon failed to get subjectAltName
I could be wrong in my assumption, but I cannot seem to get this to work for me and this error will not disappear while my problem continues. I'm trying to get a RoadWarrior setup for an Android L2TP/IPSec vpn. I had it working at one time on my LAN but failed getting through the pf firewall, so I stowed it while I was required to work on something else; unfortunately I lost the working config somehow (I think? This could be just the bug) and I had to start again- no biggie as I pulled the info off the net before so I could do it again. I recreated some new certificates (the old ones I used to test had expired- I only gave them a very short life for security reasons), and recreated what I thought I had before using xca (same as previously). These include the mandatory SAN: I use email:copy to set this. No amount of googling has helped my investigations, everything is still basically the same age as when I first set this up. But racoon insists the SAN is unavailable now. I've also tried turning off verify identity, but in spite it says the certificates don't match because of empty certificate requests; it would seem that it is still looking for the SAN even though it no longer says so. Googling also verifies that racoon _requires_ SAN to be set to work. I've tried other SAN types, but they don't seem to work either. A check on the certificate shows that it _is_ actually there on all the certificates, but racoon must be blind or something :) Can anyone shed some light on this? Has racoon developed a bug on this at some time? FWIW racoon wont even pass phase1 so I'd assume it is not working because of this problem. ___ 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: Moved drives ...
On 14 March 2012 17:39, David Walker wrote: > Hey. > > I had installed 9.0 to a SATA drive (ada1 I think) and went to install > Windows on a higher numbered drive but Windows doesn't like that or so > I gathered. > Anyway, I moved drives around and installed Windows - FreeBSD is now > ada2 I think. > I'm used to OpenBSD where fixing this is a vi fstab ... > What's the procedure on FreeBSD? > Yes, you can change the fstab (if you can get in via mountroot: at the boot prompt, I believe) from single user mode. If you'd've used labels (either glabel or tunefs -L) you'd not have to change your /etc/fstab at all. -- -- ___ 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: oops, now: bsd question: how to record a tv stream?
On 03/15/12 05:30, Gary Kline wrote: On Wed, Mar 14, 2012 at 02:58:30PM +1000, Da Rock wrote: Date: Wed, 14 Mar 2012 14:58:30 +1000 From: Da Rock Subject: Re: oops, now: bsd question: how to record a tv stream? To: freebsd-questions@freebsd.org On 03/14/12 13:09, Polytropon wrote: On Tue, 13 Mar 2012 19:19:46 -0700, Gary Kline wrote: i have heard about the "848" or whatever cards for years. should i have my sister's technician add one? i understood everything but your last paragraph. please do send me the linksoffline i f you think it wise to spare the bandwidth. Just to make a note: This is the card I'm using. The model name is "Haupauge WinTV" and the tuner chip is Brooktree 878. It is well supported by FreeBSD (and has been for many years). A "problem" may be that it is a PCI card. The programs mplayer and mencoder can be used to address the tuner and video-in functions of that card, as well as displaying and storing the received content. You need a HF line to the card (or an antenna maybe), except you provide the video feed >from a satelite receiver via video-in. In that case, you also need to provide the audio signal from the receiver to your sound card's line-in. With mencoder, both sources can be "combined" and the result can be stored as a video file in any format and container you want. This is the card: bktr0@pci0:0:9:0: class=0x04 card=0x13eb0070 chip=0x036e109e rev=0x11 hdr=0x00 vendor = 'Conexant (Was: Brooktree Corp)' device = 'Bt878/Fusion 878A Mediastream Controller' class = multimedia subclass = video The card provides HF-in both for TV and radio, video-in, audio-out and... not sure what it is. :-) You need the kernel modules loaded per bktr_load="YES" in /boot/loader.conf, and the card will work out of the box. No need to manually and interactively install a "driver". :-) The player command is something like % mplayer tv://1 -vo x11 -ao sdl -tv driver=bsdbt848:device=/dev/bktr0 and similarly mencoder can be used (-ovc and -oac need to be adjusted accordingly) to encode to a file. I'm not sure how to handle TV ("antenna") input as I've always been using a raw video feed (from VTR or camera). However, there's documentation that may help: http://www.mplayerhq.hu/DOCS/HTML/en/tv-input.html It also contains an example to "record to file", which will implement the "software video tape recoder" functionality. Brooktrees would be nice - if you could find them. Given the move to DVB is nearly over, there aren't many analog cards available - or need for them. The new cards use incompatible chipsets (learnt the hard way), including analog and especially DVB; you have to use the cx88 port to use them. Or if you come across a different chipset ensure the card is USB based and use webcamd. Following all that, FBSD works beautifully as a HTPC. GAAWK! This is far, far out of my comfort zone thst i wsill just skip it for now. i have my feed from my local telco, not an antenna thanks for all the datapoints, guys, but i can vedry well live without the card. gary Sorry Gary; It wasn't entirely for your sake that this came up. For your instance I'd suggest becoming very familiar with mplayer/mencoder and friends. You can then pick up the stream and re-encode to your liking. There are some addons in web browser that can help grab the video as well. ___ 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"
Moved drives ...
Hey. I had installed 9.0 to a SATA drive (ada1 I think) and went to install Windows on a higher numbered drive but Windows doesn't like that or so I gathered. Anyway, I moved drives around and installed Windows - FreeBSD is now ada2 I think. I'm used to OpenBSD where fixing this is a vi fstab ... What's the procedure on FreeBSD? Best wishes. ___ 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: oops, now: bsd question: how to record a tv stream?
On Wed, Mar 14, 2012 at 02:58:30PM +1000, Da Rock wrote: > Date: Wed, 14 Mar 2012 14:58:30 +1000 > From: Da Rock > Subject: Re: oops, now: bsd question: how to record a tv stream? > To: freebsd-questions@freebsd.org > > On 03/14/12 13:09, Polytropon wrote: > >On Tue, 13 Mar 2012 19:19:46 -0700, Gary Kline wrote: > >>i have heard about the "848" or whatever cards for years. > >>should i have my sister's technician add one? i understood > >>everything but your last paragraph. please do send me the > >>linksoffline i f you think it wise to spare the > >>bandwidth. > >Just to make a note: This is the card I'm using. The model > >name is "Haupauge WinTV" and the tuner chip is Brooktree 878. > >It is well supported by FreeBSD (and has been for many years). > >A "problem" may be that it is a PCI card. > > > >The programs mplayer and mencoder can be used to address the > >tuner and video-in functions of that card, as well as displaying > >and storing the received content. You need a HF line to the > >card (or an antenna maybe), except you provide the video feed > >from a satelite receiver via video-in. In that case, you also > >need to provide the audio signal from the receiver to your > >sound card's line-in. With mencoder, both sources can be > >"combined" and the result can be stored as a video file in > >any format and container you want. > > > >This is the card: > > > >bktr0@pci0:0:9:0: class=0x04 card=0x13eb0070 > > chip=0x036e109e rev=0x11 hdr=0x00 > > vendor = 'Conexant (Was: Brooktree Corp)' > > device = 'Bt878/Fusion 878A Mediastream Controller' > > class = multimedia > > subclass = video > > > >The card provides HF-in both for TV and radio, video-in, > >audio-out and... not sure what it is. :-) > > > >You need the kernel modules loaded per > > > > bktr_load="YES" > > > >in /boot/loader.conf, and the card will work out of the box. > >No need to manually and interactively install a "driver". :-) > > > >The player command is something like > > > > % mplayer tv://1 -vo x11 -ao sdl -tv driver=bsdbt848:device=/dev/bktr0 > > > >and similarly mencoder can be used (-ovc and -oac need to be > >adjusted accordingly) to encode to a file. > > > >I'm not sure how to handle TV ("antenna") input as I've always > >been using a raw video feed (from VTR or camera). However, there's > >documentation that may help: > > > > http://www.mplayerhq.hu/DOCS/HTML/en/tv-input.html > > > >It also contains an example to "record to file", which will > >implement the "software video tape recoder" functionality. > Brooktrees would be nice - if you could find them. Given the move to > DVB is nearly over, there aren't many analog cards available - or > need for them. > > The new cards use incompatible chipsets (learnt the hard way), > including analog and especially DVB; you have to use the cx88 port > to use them. Or if you come across a different chipset ensure the > card is USB based and use webcamd. > > Following all that, FBSD works beautifully as a HTPC. GAAWK! This is far, far out of my comfort zone thst i wsill just skip it for now. i have my feed from my local telco, not an antenna thanks for all the datapoints, guys, but i can vedry well live without the card. gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Voice By Computer (for Universal Access): http:/www.thought.org/vbc The 8.57a release of Jottings: http://jottings.thought.org Twenty-five years of service to the Unix community. ___ 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: Inquiry from University student
On Wed, Mar 14, 2012 at 1:36 PM, Kuan Ming Tan wrote: > Hi, > Im a bachelor student currently runs a project related to FreeBSD, can you > provide some example of organizations which using FreeBSD? > > Hope to receive your reply soon! > > -- > Regards, > Tan Kuan Ming > http://www.ixsystems.com/ix/support/software/freebsd-support?gclid=CIXb__mD564CFcJN3wodBk3TjA http://www.freebsd.org/commercial/isp.html http://www.freebsd.org/commercial/software_bycat.html http://www.freebsd.org/commercial/hardware.html http://www.freebsd.org/commercial/consult_bycat.html http://www.freebsd.org/commercial/misc.html http://www.freebsd.org/commercial/ Thank you very much . Mehmet Erol Sanliturk ___ 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: Inquiry from University student
On Wed, Mar 14, 2012 at 2:07 PM, Robert Bonomi wrote: > > From owner-freebsd-questi...@freebsd.org Wed Mar 14 12:47:15 2012 > > Date: Thu, 15 Mar 2012 01:36:28 +0800 > > From: Kuan Ming Tan > > To: freebsd-questions@freebsd.org > > Cc: > > Subject: Inquiry from University student > > > > Hi, > > Im a bachelor student currently runs a project related to FreeBSD, can > you > > provide some example of organizations which using FreeBSD? > > > > Hope to receive your reply soon! > > Apple. > > Sony. > > Juniper Systems. > > just to name a few. > eadler sent this link out on the nyc*bug talk list earlier in the week, an incomplete list, but a good one: http://en.wikipedia.org/wiki/Commercial_products_based_on_FreeBSD > ___ > 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" > -- regards, matt ___ 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: Inquiry from University student
> From owner-freebsd-questi...@freebsd.org Wed Mar 14 12:47:15 2012 > Date: Thu, 15 Mar 2012 01:36:28 +0800 > From: Kuan Ming Tan > To: freebsd-questions@freebsd.org > Cc: > Subject: Inquiry from University student > > Hi, > Im a bachelor student currently runs a project related to FreeBSD, can you > provide some example of organizations which using FreeBSD? > > Hope to receive your reply soon! Apple. Sony. Juniper Systems. just to name a few. ___ 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: Inquiry from University student
On Wed, Mar 14, 2012 at 1:36 PM, Kuan Ming Tan wrote: > Hi, > Im a bachelor student currently runs a project related to FreeBSD, can you > provide some example of organizations which using FreeBSD? > > Hope to receive your reply soon! > > -- > Regards, > Tan Kuan Ming > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/nutshell.html#INTRODUCTION-NUTSHELL-USERS Thank you very much . Mehmet Erol Sanliturk ___ 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"
Inquiry from University student
Hi, Im a bachelor student currently runs a project related to FreeBSD, can you provide some example of organizations which using FreeBSD? Hope to receive your reply soon! -- Regards, Tan Kuan Ming ___ 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"
USA Anonymous CVS
>From http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/anoncvs.html USA: anon...@anoncvs1.freebsd.org:/home/ncvs (For ssh, use ssh version 2 and no password is required.) SSH2 HostKey: 2048 53:1f:15:a3:72:5c:43:f6:44:0e:6a:e9:bb:f8:01:62 /etc/ssh/ssh_host_dsa_key.pub Example A-2. Using SSH to Check Out the src/ Tree: % cvs -d anon...@anoncvs1.freebsd.org:/home/ncvs co src The authenticity of host 'anoncvs1.freebsd.org (216.87.78.137)' can't be established. DSA key fingerprint is 53:1f:15:a3:72:5c:43:f6:44:0e:6a:e9:bb:f8:01:62. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'anoncvs1.freebsd.org' (DSA) to the list of known hosts. However, when I acutally issue the command, I get a different DSA key, different IP, and it will not accept any password: # cvs -d anon...@anoncvs1.freebsd.org:/home/ncvs co src The authenticity of host 'anoncvs1.freebsd.org (96.47.72.116)' can't be established. DSA key fingerprint is 4e:bc:48:a0:e1:27:0a:62:c8:da:45:31:d4:ad:b2:00. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'anoncvs1.freebsd.org' (DSA) to the list of known hosts. Password: Password: Password: Permission denied (publickey,keyboard-interactive). cvs [checkout aborted]: end of file from server (consult above messages if any) Is the USA anonymous CVS server no longer operational? Thanks, Dan ___ 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: Making Music / Video folders on FreeBSD visible on HD TV
So= rry for top posting - my 'phone makes it difficult. I use Mediatomb = very successfully to serve video from my FreeBSD server to my DLNA digibox.= Moderately easy to setup and a breeze once up and running. <= span id="signature"> -- Peter Harrison = From: Carmel Sent: Wednesday, 14 March 2012 10= :39 To: FreeBSD Subject: Re: Making Music / Video folde= rs on FreeBSD visible on HD TV On Wed, 14 Mar 2012 10:26:43 += Arthur Chance articulated: > On 03/13/12 19:54, = Carmel wrote: > > On Tue, 13 Mar 2012 13:59:45 -0500 >= > Adam Vande More articulated: > > > >> Are = you sure these devices aren't trying to connect to a DLNA > >&g= t; server? Such need can be met by net/mediatomb or other port. >= > > > A couple of people have replied to this thread. The S= amba shares are > > configured correctly and are visible on my = Windows based PCs. I > > have no idea if the TVs are using DLNA= . I never had to configure > > anything, other than sharing t= he folders, on my Microsoft PCs, so > > am I to assume that DLN= A is always available on that OS? Anyway, I > > will try your s= uggestion. > > I have a Sony networked TV, and it defini= tely needs a DLNA server and > is very picky about what formats ar= e served. I'm not a Windows user > but I have the impression Home = or Home Premium versions of Vista/Win7 > have DLNA support built i= n. > > Alexander Leidinger has written a couple of blog = posts on getting > Sony TVs working with FBSD. Take a look at this= and the related posts: > > http://www.leidinger.net/blo g/2011/09/15/sony-bravia-tv-dlna-formats/ I did some checking.= Win7, all versions, have support built into it. Apparently Vista and= WinXP were updated with support via the Microsoft Update system. I h= ave to admit, that does make for a very "user friendly" environment. = Obviously Microsoft anticipated user needs quite successfully. I have= several friends who have integrated their TVs with their home PC qui= te successfully and painlessly. I am still studying how to mak= e FreeBSD similarly "user friendly". Thanks for the link. -- Carmel carmel...@hotmail.com ___= freebsd-questions@freebsd.org mailin= g list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@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: satisfying package dependencies from installation DVD when building a port -- HOW?
On Wed, 14 Mar 2012 17:11:55 +0100, IMAP List Administration wrote: > Hello, > > I've just installed 9.0-RELEASE (amd64) in a KVM/Qemo VM on debian linux, > which > is extremely painful because of the abysmal I/O performance, and would like to > build the virtio-kmod. After unpacking src.txz (xz -c > /cd/usr/freebsd-dist/src.txz | tar xf -) I did the following: > > # cd /usr/ports/emulators/virtio-kmo > # make clean install > > at this point I saw port names such as perl, tcl, neon, sqlite, etc fly past. You can use the command # make missing to get a list of which dependencies need to be installed. See "man 7 ports" for other targets that might be useful. > Apparently the ports system satisfies dependencies from the ports tree by > default. Correct. Dependencies are resolved and installed (usually by compiling them from source, installing and registering them), then the initial build is returned to. > Since I have not updated anything, it seems reasonable, and much less painful > to > satisfy the dependencies using the packages on the installation DVD, which is > mounted on /cd. If the default options of the dependency ports are fine for you, this should be no problem. > I tried setting PKG_PATH to "/cd/packages" and to "/cd/packages/All", but > when I > simply try to test using, for example, "pkg_add perl" pkg_add simply says > "can't > stat package file". Change CWD to the location of the packages (on CD) and try again. According to "man pkg_add": If the packages are not found in the current working directory, pkg_add will search them in each directory named by PKG_PATH. If there's still an error, can you provide the command you entered plus the output? Maybe adding -v helps to give some more information. > I'm guessing it would be pointless to try to use a (remote) URL in > PACKAGEROOT, > as the "-r" flag *must* be give in order for pkg_add to honor the setting, and > god knows how the ports system calls pkg_add, if at all. The ports do not use pkg_add. However, using a tool like portmaster or portinstall can help you using binary packages (options -P and -PP). If you use pkg_add -r, some "more magic" will be applied to form the proper URI for fetching the packages (e. g. architecture and OS version may be considered). > I had a long look in the docs, but this stuff doesn't *seem* to be documented > :( I don't remember any particular documentation regarding this procedure. The pkg_add command should automatically install dependencies (option -i to prevent). > Is it possible to get the ports system to satisfy dependencies using the > packages from the installation DVD? If so, how? I think that's possible; I hope you got some inspiration. -- 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"
satisfying package dependencies from installation DVD when building a port -- HOW?
Hello, I've just installed 9.0-RELEASE (amd64) in a KVM/Qemo VM on debian linux, which is extremely painful because of the abysmal I/O performance, and would like to build the virtio-kmod. After unpacking src.txz (xz -c /cd/usr/freebsd-dist/src.txz | tar xf -) I did the following: # cd /usr/ports/emulators/virtio-kmo # make clean install at this point I saw port names such as perl, tcl, neon, sqlite, etc fly past. Apparently the ports system satisfies dependencies from the ports tree by default. Since I have not updated anything, it seems reasonable, and much less painful to satisfy the dependencies using the packages on the installation DVD, which is mounted on /cd. I tried setting PKG_PATH to "/cd/packages" and to "/cd/packages/All", but when I simply try to test using, for example, "pkg_add perl" pkg_add simply says "can't stat package file". I'm guessing it would be pointless to try to use a (remote) URL in PACKAGEROOT, as the "-r" flag *must* be give in order for pkg_add to honor the setting, and god knows how the ports system calls pkg_add, if at all. I had a long look in the docs, but this stuff doesn't *seem* to be documented :( Is it possible to get the ports system to satisfy dependencies using the packages from the installation DVD? If so, how? cheers, Robert Urban ___ 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"
flowcleaner running away with CPU
I have a FreeBSD 8.2-REALEASE-p5 system that is running as a Squid proxy server, after some complaints for internet performance I logged into the system to take a look, and discovered the flowcleaner process is consuming 100% on one CPU. I did some searching, and have discovered that there have been some bugs in the past with this, and found the flowing command listed as a work around. sysctl net.inet.flowtable.enable=0 I tried this, but there was no change, is this something that has to be done in the sysctl.conf configuration file that doesn't take effect until a reboot? Or is there a process I can restart that will at least temporarily resolve this issue without completely interrupting internet traffic for a few hundred users? last pid: 51636; load averages: 1.03, 1.10, 1.09 up 50+02:41:37 10:35:09 89 processes: 4 running, 71 sleeping, 14 waiting CPU: 0.4% user, 0.0% nice, 49.7% system, 0.6% interrupt, 49.3% idle Mem: 722M Active, 765M Inact, 415M Wired, 24M Cache, 213M Buf, 47M Free Swap: 4061M Total, 212K Used, 4061M Free PID USERNAME THR PRI NICE SIZERES STATE C TIME WCPU COMMAND 11 root2 171 ki31 0K32K RUN 0 2019.8 100.00% idle 19 root1 76- 0K16K CPU00 349.3H 100.00% flowcleaner 58759 squid 1 450 626M 594M select 0 683:15 2.98% squid 0 root7 80 0K96K - 1 1510.7 0.00% kernel 12 root 14 -60- 0K 224K WAIT1 362:54 0.00% intr 17 root1 44- 0K16K syncer 1 61:43 0.00% syncer 1095 root1 440 96672K 75432K select 1 36:11 0.00% vmtoolsd 13 root1 -16- 0K16K - 1 16:10 0.00% yarrow -- Thanks, Dean E. Weimer dwei...@dweimer.net http://www.dweimer.net/ ___ 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: Making Music / Video folders on FreeBSD visible on HD TV
-Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Arthur Chance Sent: 14 March 2012 10:27 To: FreeBSD Cc: Carmel Subject: Re: Making Music / Video folders on FreeBSD visible on HD TV On 03/13/12 19:54, Carmel wrote: > On Tue, 13 Mar 2012 13:59:45 -0500 > Adam Vande More articulated: > >> Are you sure these devices aren't trying to connect to a DLNA server? >> Such need can be met by net/mediatomb or other port. > > A couple of people have replied to this thread. The Samba shares are > configured correctly and are visible on my Windows based PCs. I have > no idea if the TVs are using DLNA. I never had to configure anything, > other than sharing the folders, on my Microsoft PCs, so am I to assume > that DLNA is always available on that OS? Anyway, I will try your > suggestion. I have a Sony networked TV, and it definitely needs a DLNA server and is very picky about what formats are served. I'm not a Windows user but I have the impression Home or Home Premium versions of Vista/Win7 have DLNA support built in. Alexander Leidinger has written a couple of blog posts on getting Sony TVs working with FBSD. Take a look at this and the related posts: http://www.leidinger.net/blog/2011/09/15/sony-bravia-tv-dlna-formats/ ___ 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" I would have to disagree with some of the stuff in that blog, all be it I have a Bravia 5810 rather than a 5800 where he states that you cannot stream HD formats in PAL I would disagree, I am using different software as well but it does happily steam HD 720 and 1080 in PAL. IIRC Sony UK now officially recommend Serviio as a steaming solution for their products. I used to use ushare which worked great with the xbox 360 but the TV would not go near it and I wanted a solution that did not require extra machines to be on to use, hence not going down the Windows media player router, that and it was never happy if the media was remote. I really did spend close to a year looking for a solution, and I even asked on the list if anyone knew of anything, the key is not so much in the DLNA support but in the media transcoding, for Sony you need something that will take your xvid / divx / mkv file and convert that in real time to a MPEG2 stream which the TV will then display. Regards Graeme ___ 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: Running OS tftp vs. pxeboot tftp
Hi On 14/03/2012 11:44, Rick Miller wrote: I thought I would follow up on this as a couple individuals expressed an interest in it... We have isolated the configuration in which this occurs under. It occurs during the execution of pxeboot.bs on brocade switches with vlan tagging enabled. You might save yourself time and money buying a cheap switch and doing your jumpstart install on a separate closed network completely isolated from the rest of your networks, without VLAN tagging required. If you have lots of nodes to install it makes sense to maintain your own repository of freebsd and packages, and it's good practice to keep your preproduction systems separate from production, so there is no need for network access. BR, Erik -- M: +34 666 334 818 T: +34 915 211 157 ___ 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: 9.0 spontaneously reboots
Volodymyr Kostyrko gmail.com> writes: > > Adam Vande More wrote: > >> I have one machine behaving unstable. This happened before 9.0. After > >> upgrading to 9.0 machine was given a light load and now it reboots. Memory > >> was already tested (without any errors) and changed after another reboot. > >> > > > > So your RAM is good enough to pass a memory test. It doesn't mean it's not > > the culprit. Way too many false negatives from those things. > > True. First server was stacked with Kingston memory, and now I moved to > Hynix. And is still gives me sometimes ECC errors. > You mentioned that "it survives an hour in memtest". Update BIOS - the BIOS in some computers allow counting of detected and corrected memory errors, in part to help identify failing memory modules before the problem becomes catastrophic. Some BIOS have internal memory check tool. Try it. Some refs: http://en.wikipedia.org/wiki/ECC_memory jb ___ 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: nVidia card manufacturer recommendations
On 03/14/12 08:57, Arthur Chance wrote: Somewhere, possibly here, a while back I saw a remark that certain manufacturer's nVidia cards worked reliably with the nVidia supplied drivers and others usually have problems because they tweak nVidia's reference spec. Of course, I didn't bookmark it and neither Google nor searching the last years' worth of the freebsd-questions@ archives has turned it up. Can anyone recommend which manufacturers I should look at and/or which I should avoid? I'm specifically looking at the low end GT520. I've just realised that I probably should have added "for an amd64 system". ___ 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: nVidia card manufacturer recommendations
On Wed, 14 Mar 2012 08:57:29 + Arthur Chance wrote: > > Can anyone recommend which manufacturers I should look at and/or > which I should avoid? I'm specifically looking at the low end GT520. > ___ I have used cards from XFX and PNY without problem with the nvidia driver in the past. I'm currently using a FX1700 Quadro that came from an HP machine, it works without issue also, but I have not used any of the HP bios updates for it. -- Rod Person http://www.rodperson.com rodper...@rodperson.com 'Silence is a fence around wisdom' ___ 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: Making Music / Video folders on FreeBSD visible on HD TV
On Wed, 14 Mar 2012 07:32:44 -0400, Carmel wrote: > On Wed, 14 Mar 2012 11:45:36 +0100 > Polytropon articulated: > > > //* OFFLIST As you carried this on-list again, allow me to reply in public. I do not appreciate your lack of humour (see explaination at the end). > > On Wed, 14 Mar 2012 06:39:08 -0400, Carmel wrote: > > > Obviously Microsoft anticipated user needs quite > > > successfully. I have several friends who have integrated their TVs > > > with their home PC quite successfully and painlessly. > > > > This has changed with the upcoming version of their "Windows". > > Check out this video and have a good laugh. > > > > http://www.geek.com/articles/geek-pick/a-real-user-proves-windows-8-fails-on-the-desktop-20120312/ > > > > ;-) > > Ah yes, your basic FUD rubbish. Win8 has not even been released. Many > of the features are still in a state of flux. Your basic FUD rubbish. Specific features have been confirmed to be in the final release. The absence of the "well-known interaction starting point" is one of them. While I like some of "Windows 8"'s concepts especially for the mobile market, transitioning them 1:1 to the desktop _and its users_ will cause trouble, as you can see in the video. > Complaining about > something in an unreleased version of Windows is like complaining that > FreeBSD-10 is a failure because (you fill in the blank). When it is > released, then proper comparisons can be made. We will see. The main effect of "failure" will be when problems start hitting the support queues. Re-learning things has never been a great strength in "Windows" land, but maybe a radical change in usage paradigm isn't that bad. Also architectural changes (e. g. abandoning decades of legacy) are welcome by supporters and also by programmers. As I said, we will see. > BTW, I read on another blog by a typical MS Hater that he hated the > new interface because the mouse was no longer usable in the system. It > turns out the "genius" was not aware of how to enable or disable the > mouse. That's really stupid. Do not confuse me with a MICROS~1 hater. You would be surprised by the truth. > And yes, the "idiot" is a charter member of "slashdot". Go > figure ... I don't consume that kind of web content, sorry. > In addition, I really do not appreciate your trolling. You missed reading and interpreting the ";-)" appended. Better luck next time. -- 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"
Re: Making Music / Video folders on FreeBSD visible on HD TV
On Wed, 14 Mar 2012 11:45:36 +0100 Polytropon articulated: > //* OFFLIST > > On Wed, 14 Mar 2012 06:39:08 -0400, Carmel wrote: > > Obviously Microsoft anticipated user needs quite > > successfully. I have several friends who have integrated their TVs > > with their home PC quite successfully and painlessly. > > This has changed with the upcoming version of their "Windows". > Check out this video and have a good laugh. > > http://www.geek.com/articles/geek-pick/a-real-user-proves-windows-8-fails-on-the-desktop-20120312/ > > ;-) Ah yes, your basic FUD rubbish. Win8 has not even been released. Many of the features are still in a state of flux. Complaining about something in an unreleased version of Windows is like complaining that FreeBSD-10 is a failure because (you fill in the blank). When it is released, then proper comparisons can be made. BTW, I read on another blog by a typical MS Hater that he hated the new interface because the mouse was no longer usable in the system. It turns out the "genius" was not aware of how to enable or disable the mouse. And yes, the "idiot" is a charter member of "slashdot". Go figure ... In addition, I really do not appreciate your trolling. -- Carmel ✌ carmel...@hotmail.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: start at boot, run as non-root
On 14/03/2012 10:29, Da Rock wrote: > On 03/14/12 18:12, Matthew Seaman wrote: >> On 14/03/2012 07:30, n dhert wrote: >>> I have FreeBSD8.2. >>> Sedna, an XML database server, had no port in th FreeBSD ports >>> collection >>> but has a binary compiled for FreeBSD8 on www.sedna.org. >>> I installed that. >>> To start it at boot I created a script /usr/local/etc/rc.d/sedna : >>> --- >>> #!/bin/sh >>> # >>> # PROVIDE: sedna >>> # REQUIRE: DAEMON >>> # KEYWORD: shutdown >>> # >>> . /etc/rc.subr >>> >>> name="sedna" >>> rcvar=${name}_enable >>> command=/home/opt/sedna/bin/se_gov >>> >>> load_rc_config $name >>> >>> : ${sedna_enable="NO"} >>> >>> run_rc_command "$1" >>> >>> and added sedna_enable="YES" at the end of my /etc/rc.conf >>> >>> This way it starts at boot: >>> $ ps -jaxww | grep se_ >>> root7064 1 7064 70640 Is??0:00.00 >>> /home/opt/sedna/bin/se_gov -background-mode off -listen-address >>> localhost >>> -port-number 5050 -ping-port-number 5151 -el-level 3 -alive-timeout 0 >>> -stack-depth 4000 >>> The deamon runs as root. I want it run by a non-root user, e.g. a user >>> 'sedna'' >>> >>> How can I do that? >>> >>> The sedna server binary se_gov has no option in its man-page to start >>> the >>> program run as a different user .. >> Add a variable: >> >> ${name}_user=sedna >> >> to the init script. The rc(8) system will use su(1) to start up the >> sedna process using your selected username. There's also ${name}_group >> but that works a bit differently. >> >> I'm intrigued that this software should be supported on FreeBSD >> upstream, but not appear in ports. Are there some onerous license terms >> or other obstacles[*]? If not, would you consider submitting your work >> as a port? >> >> Cheers, >> >> Matthew >> >> [*] Seems it uses Apache licensing according to http://www.sedna.org/, >> which is exceedingly FreeBSD compatible, so I don't think licensing >> would be an obstacle. > That would not be the problem, as the ports system can handle more > licenses than simply bsd compatible; Its merely recommended. To > illustrate, there are eval and commercial products in the ports tree. > You have to register and pay the organisation when you install and start > using (like komodo, others). The port is to ease installation on FreeBSD > an app that would be widely used. Well, quite. Let me rephrase the question before everyone gets sidetracked into an interminable discussion of the horrible license terms they've been forced to endure. Is there any reason why sedna should not be added to the ports collection? I'm pretty certain the answer is "no" but having confirmation from someone who actually uses this software and knows a bit about it would be good. Having poked a bit at the sources, this looks like a pretty straightforward application to port -- it uses cmake(1) and there's plenty of both support for that and prior art to copy in the ports already. Would be a nice projectette for someone that wanted to get into porting. 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 signature.asc Description: OpenPGP digital signature
Re: Running OS tftp vs. pxeboot tftp
I thought I would follow up on this as a couple individuals expressed an interest in it... We have isolated the configuration in which this occurs under. It occurs during the execution of pxeboot.bs on brocade switches with vlan tagging enabled. We have begun to review the pxeboot.bs source code in order to get more debug information out of it and have opened a support case with Brocade. On Thu, Mar 1, 2012 at 10:16 AM, Rick Miller wrote: > Hi All, > > Are there significant differences in the implementation between the > tftp client in FreeBSD 8.2-RELEASE and the client implementation in > pxeboot.bs? > > I ask because I have encountered a scenario where pxeboot.bs is > tftp'ing boot files from a PXE server and fails in random spots while > attempting to download boot files to start a 8.2-RELEASE install. > When we run the same sequence of tftp gets in a running 8.2-RELEASE > instance continuously, we never received a single failure in a solid > hour of attempts. > > -- > Take care > Rick Miller -- Take care Rick Miller ___ 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: Making Music / Video folders on FreeBSD visible on HD TV
On Wed, 14 Mar 2012 10:26:43 + Arthur Chance articulated: > On 03/13/12 19:54, Carmel wrote: > > On Tue, 13 Mar 2012 13:59:45 -0500 > > Adam Vande More articulated: > > > >> Are you sure these devices aren't trying to connect to a DLNA > >> server? Such need can be met by net/mediatomb or other port. > > > > A couple of people have replied to this thread. The Samba shares are > > configured correctly and are visible on my Windows based PCs. I > > have no idea if the TVs are using DLNA. I never had to configure > > anything, other than sharing the folders, on my Microsoft PCs, so > > am I to assume that DLNA is always available on that OS? Anyway, I > > will try your suggestion. > > I have a Sony networked TV, and it definitely needs a DLNA server and > is very picky about what formats are served. I'm not a Windows user > but I have the impression Home or Home Premium versions of Vista/Win7 > have DLNA support built in. > > Alexander Leidinger has written a couple of blog posts on getting > Sony TVs working with FBSD. Take a look at this and the related posts: > > http://www.leidinger.net/blog/2011/09/15/sony-bravia-tv-dlna-formats/ I did some checking. Win7, all versions, have support built into it. Apparently Vista and WinXP were updated with support via the Microsoft Update system. I have to admit, that does make for a very "user friendly" environment. Obviously Microsoft anticipated user needs quite successfully. I have several friends who have integrated their TVs with their home PC quite successfully and painlessly. I am still studying how to make FreeBSD similarly "user friendly". Thanks for the link. -- Carmel carmel...@hotmail.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: start at boot, run as non-root
On 03/14/12 18:12, Matthew Seaman wrote: On 14/03/2012 07:30, n dhert wrote: I have FreeBSD8.2. Sedna, an XML database server, had no port in th FreeBSD ports collection but has a binary compiled for FreeBSD8 on www.sedna.org. I installed that. To start it at boot I created a script /usr/local/etc/rc.d/sedna : --- #!/bin/sh # # PROVIDE: sedna # REQUIRE: DAEMON # KEYWORD: shutdown # . /etc/rc.subr name="sedna" rcvar=${name}_enable command=/home/opt/sedna/bin/se_gov load_rc_config $name : ${sedna_enable="NO"} run_rc_command "$1" and added sedna_enable="YES" at the end of my /etc/rc.conf This way it starts at boot: $ ps -jaxww | grep se_ root7064 1 7064 70640 Is??0:00.00 /home/opt/sedna/bin/se_gov -background-mode off -listen-address localhost -port-number 5050 -ping-port-number 5151 -el-level 3 -alive-timeout 0 -stack-depth 4000 The deamon runs as root. I want it run by a non-root user, e.g. a user 'sedna'' How can I do that? The sedna server binary se_gov has no option in its man-page to start the program run as a different user .. Add a variable: ${name}_user=sedna to the init script. The rc(8) system will use su(1) to start up the sedna process using your selected username. There's also ${name}_group but that works a bit differently. I'm intrigued that this software should be supported on FreeBSD upstream, but not appear in ports. Are there some onerous license terms or other obstacles[*]? If not, would you consider submitting your work as a port? Cheers, Matthew [*] Seems it uses Apache licensing according to http://www.sedna.org/, which is exceedingly FreeBSD compatible, so I don't think licensing would be an obstacle. That would not be the problem, as the ports system can handle more licenses than simply bsd compatible; Its merely recommended. To illustrate, there are eval and commercial products in the ports tree. You have to register and pay the organisation when you install and start using (like komodo, others). The port is to ease installation on FreeBSD an app that would be widely used. ___ 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"
Failed to create sink input: too many inputs per sink.
FreeBSD-8.2 STABLE In the /var/log/messages log file, I have noticed the follow error message: Mar 13 07:25:01 savage pulseaudio[11763]: sink-input.c: Failed to create sink input: too many inputs per sink. Similar messages are dispersed throughout the log. I never noticed these before and I do check out the "messages" file on a semi-regular basis. Is there something wrong here or can I safely disregard the message? -- Carmel carmel...@hotmail.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: Making Music / Video folders on FreeBSD visible on HD TV
On 03/13/12 19:54, Carmel wrote: On Tue, 13 Mar 2012 13:59:45 -0500 Adam Vande More articulated: Are you sure these devices aren't trying to connect to a DLNA server? Such need can be met by net/mediatomb or other port. A couple of people have replied to this thread. The Samba shares are configured correctly and are visible on my Windows based PCs. I have no idea if the TVs are using DLNA. I never had to configure anything, other than sharing the folders, on my Microsoft PCs, so am I to assume that DLNA is always available on that OS? Anyway, I will try your suggestion. I have a Sony networked TV, and it definitely needs a DLNA server and is very picky about what formats are served. I'm not a Windows user but I have the impression Home or Home Premium versions of Vista/Win7 have DLNA support built in. Alexander Leidinger has written a couple of blog posts on getting Sony TVs working with FBSD. Take a look at this and the related posts: http://www.leidinger.net/blog/2011/09/15/sony-bravia-tv-dlna-formats/ ___ 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"
nVidia card manufacturer recommendations
Somewhere, possibly here, a while back I saw a remark that certain manufacturer's nVidia cards worked reliably with the nVidia supplied drivers and others usually have problems because they tweak nVidia's reference spec. Of course, I didn't bookmark it and neither Google nor searching the last years' worth of the freebsd-questions@ archives has turned it up. Can anyone recommend which manufacturers I should look at and/or which I should avoid? I'm specifically looking at the low end GT520. ___ 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: start at boot, run as non-root
On 14/03/2012 07:30, n dhert wrote: > I have FreeBSD8.2. > Sedna, an XML database server, had no port in th FreeBSD ports collection > but has a binary compiled for FreeBSD8 on www.sedna.org. > I installed that. > To start it at boot I created a script /usr/local/etc/rc.d/sedna : > --- > #!/bin/sh > # > # PROVIDE: sedna > # REQUIRE: DAEMON > # KEYWORD: shutdown > # > . /etc/rc.subr > > name="sedna" > rcvar=${name}_enable > command=/home/opt/sedna/bin/se_gov > > load_rc_config $name > > : ${sedna_enable="NO"} > > run_rc_command "$1" > > and added sedna_enable="YES" at the end of my /etc/rc.conf > > This way it starts at boot: > $ ps -jaxww | grep se_ > root7064 1 7064 70640 Is??0:00.00 > /home/opt/sedna/bin/se_gov -background-mode off -listen-address localhost > -port-number 5050 -ping-port-number 5151 -el-level 3 -alive-timeout 0 > -stack-depth 4000 > The deamon runs as root. I want it run by a non-root user, e.g. a user > 'sedna'' > > How can I do that? > > The sedna server binary se_gov has no option in its man-page to start the > program run as a different user .. Add a variable: ${name}_user=sedna to the init script. The rc(8) system will use su(1) to start up the sedna process using your selected username. There's also ${name}_group but that works a bit differently. I'm intrigued that this software should be supported on FreeBSD upstream, but not appear in ports. Are there some onerous license terms or other obstacles[*]? If not, would you consider submitting your work as a port? Cheers, Matthew [*] Seems it uses Apache licensing according to http://www.sedna.org/, which is exceedingly FreeBSD compatible, so I don't think licensing would be an obstacle. -- 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 signature.asc Description: OpenPGP digital signature
start at boot, run as non-root
I have FreeBSD8.2. Sedna, an XML database server, had no port in th FreeBSD ports collection but has a binary compiled for FreeBSD8 on www.sedna.org. I installed that. To start it at boot I created a script /usr/local/etc/rc.d/sedna : --- #!/bin/sh # # PROVIDE: sedna # REQUIRE: DAEMON # KEYWORD: shutdown # . /etc/rc.subr name="sedna" rcvar=${name}_enable command=/home/opt/sedna/bin/se_gov load_rc_config $name : ${sedna_enable="NO"} run_rc_command "$1" and added sedna_enable="YES" at the end of my /etc/rc.conf This way it starts at boot: $ ps -jaxww | grep se_ root7064 1 7064 70640 Is??0:00.00 /home/opt/sedna/bin/se_gov -background-mode off -listen-address localhost -port-number 5050 -ping-port-number 5151 -el-level 3 -alive-timeout 0 -stack-depth 4000 The deamon runs as root. I want it run by a non-root user, e.g. a user 'sedna'' How can I do that? The sedna server binary se_gov has no option in its man-page to start the program run as a different user .. ___ 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"