Re: snd_hda: how to configure line-in passthrough to line-out?
On Wed, 5 Oct 2011, Polytropon wrote: On Tue, 4 Oct 2011 20:58:14 -0700 (PDT), Brandon Kuczenski wrote: I'm working on the sound on my system running 8.2-RELEASE. Currently I have sound input and output working using snd_hda (i.e. I can record on line in, and play it back on line out). What I would like to do is take the audio coming in on line-in and send it back out the line-out "live" without recording it. Is this easy to do? I'd appreciate any hints. I think it is easy to do. If I remember terminology correctly, the thing you're searching for is MONITOR. Instead of setting rec source to mic, set it to line, and increase monitor level. Thanks for your assistance.. unfortunately, setting the mixer levels has not been enough to get a passthrough. Here is my mixer output: Mixer vol is currently set to 1:1 Mixer pcm is currently set to 45:45 Mixer line is currently set to 75:75 Mixer mic is currently set to 0:0 Mixer cd is currently set to 75:75 Mixer rec is currently set to 75:75 Mixer igainis currently set to 100:100 Mixer ogainis currently set to 50:50 Mixer monitor is currently set to 100:100 Recording source: line I'm using wavplay(1) from the ports collection to record on line-in, and then I can play it back. On playback I can hear it just fine-- it mixes with other outputs on the PCM channel as I would expect. but when the line is "live" it is not being mixed into the output. The line level should be possible to set independently of the rec channel setting, so you should be able to pass through line anyway - at least, that has been the default ability of sound cards when they became available for PC. But well... this has been 10... 20... years ago, and nobody expects simple things to work as simple today as they did in the past. :-) Indeed, I wonder if it is a hardware capability problem, but I don't know how to try to answer that question. ___ 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: X on Xterminals but not on console
It is not so clear .. My problem is: My FreeBSD is a VMware Virtual machine, for 2 years. When connecting to that machine via vSphere client, I get a KDM login window and via Ctrl-Alt-F1 can switch to a console prompt Well, that *was* possible .. Since the last reboot, Ctrl-Alt-F1 (F2, .. F8) doesn't do anything anymore... Can't understand why, it always worked in the past? I have an Tektronix X-terminal, the software running on it allows me to enter my freesbd-machine hostname, then gives me a KDM login window. If my 'console' login (via VMware's vSphere) could be made NOT be a KDM graphical login, and my Xterminal still giving me a KDM login, this would be a workarround (no need to do Ctrl-Alt-F1 on Xterminal), [ and even a better solution, since I do never need graphical environment when connecting to the console ] How can I make the login different for console and other logins? OR: HOW can I solve the Ctrl-Alt-F1 problem? The setup in my Freebsd is: I have in /etc/rc.conf hald_enable="YES" dbus_enable="YES" I have an /etc/X11/xorg.conf file /etc/ttys has: ttyv8 "/usr/local/bin/kdm -nodaemon" xterm on secure (see below for other parts) at boot this starts a /usr/local/bin/kdm script the hald and dbus deamons are runnng ($ ps -jaxw | grep hald ..) /usr/local/bin/kdm is a shell script first running /usr/local/bin/genkdmconf with config files from /usr/local/share/config/kdm directory but is is unclear if (and how) I can make a difference there between the console and an X-terminal somewhere -- # more /etc/ttys ... # $FreeBSD: src/etc/etc.amd64/ttys,v 1.18.2.1.6.1 2010/12/21 17:09:25 kensmith Exp $ ... console noneunknown off secure # ttyv0 "/usr/libexec/getty Pc" cons25 on secure # Virtual terminals ttyv1 "/usr/libexec/getty Pc" cons25 on secure ttyv2 "/usr/libexec/getty Pc" cons25 on secure ttyv3 "/usr/libexec/getty Pc" cons25 on secure ttyv4 "/usr/libexec/getty Pc" cons25 on secure ttyv5 "/usr/libexec/getty Pc" cons25 on secure ttyv6 "/usr/libexec/getty Pc" cons25 on secure ttyv7 "/usr/libexec/getty Pc" cons25 on secure #ttyv8 "/usr/local/bin/xdm -nodaemon" xterm off secure ttyv8 "/usr/local/bin/kdm -nodaemon" xterm on secure # Serial terminals # The 'dialup' keyword identifies dialin lines to login, fingerd etc. ttyu0 "/usr/libexec/getty std.9600" dialup off secure ttyu1 "/usr/libexec/getty std.9600" dialup off secure ttyu2 "/usr/libexec/getty std.9600" dialup off secure ttyu3 "/usr/libexec/getty std.9600" dialup off secure # Dumb console dcons "/usr/libexec/getty std.9600" vt100 off secure # Pseudo terminals ttyp0 nonenetwork ttyp1 nonenetwork ... ttySv nonenetwork - 2011/10/5 David Brodbeck > On Wed, Oct 5, 2011 at 10:59 AM, Matthias Apitz wrote: > > El día Wednesday, October 05, 2011 a las 12:10:47PM -0400, Lowell Gilbert > escribió: > > > >> n dhert writes: > >> > >> > FreeBSD-8.2 with Xorg: > >> > Is there a way one can specify that your never have X on the console > (just > >> > the login: prompt) > >> > but still have X on any other X-windows termnal (an KDM login window) > and > >> > graphical environment > >> > >> Sure. It's all in how you configure KDM. > >> > >> In xdm it's set up in the access file; > >> I wouldn't be surprised if kdm were the same. > > > > You have login: on console, login, create a file ~/.xinitrc with the > > lines: > > > > twm & > > xterm > > > > and then you just say: startx and X11 will come up; ofc you could remove > > software or create some dirty xorg.conf file which X11 will not let come > up; > > Couldn't you just remove execute permission for the X server binaries? > People using X terminals will only be running X clients, since the > server will be their terminal. In fact, i think you only need a > server installed at all in this situation for dependency reasons. > ___ > 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: Parallel fscks on large filesystems ... wondering about maxdsiz setting...
On 5 October 2011 19:25, Jason Usher wrote: > Old 6.4-RELEASE system. > > Two filesystems exist, each of which is on its own raid controller. > > (Background fsck is not workable for various reasons that are tl;dr.) > > So, theoretically, doing both fscks at the same time is workable, since > each of them are on their own controller, and no disk/controller resources > are shared. > > HOWEVER, due to the large size and dense inode usage, we are forced to set: > > kern.maxdsiz="409600" > > And my question is: > > If I run two fscks at the same time, do I need to up this to 819200, > or is this a per-process limit and I can run several processes that big, > while leaving the value at 409600 ? > > (16 GB of ram, so either way we're well below) > > 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" > If this becomes a major issue for you why not upgrade to 9 when its out then you can have softupdates with journaling and remove most cases where you need to run fsck, or make the jump to zfs. zfs will obviously require a bit more thought. ___ 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: X on Xterminals but not on console
El día Thursday, October 06, 2011 a las 11:04:33AM +0200, n dhert escribió: > It is not so clear .. My problem is: > > My FreeBSD is a VMware Virtual machine, for 2 years. > When connecting to that machine via vSphere client, I get a KDM > login window and via Ctrl-Alt-F1 can switch to a console prompt > Well, that *was* possible .. > > Since the last reboot, Ctrl-Alt-F1 (F2, .. F8) doesn't do anything > anymore... > Can't understand why, it always worked in the past? Try: Ctrl-Alt-SPACE and while Ctrl-ALt still down F1 matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ 200†-20††: 10 years war in Afghanistan. Stop it now! ___ 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: X on Xterminals but not on console
I tried that already yesterday, with disastreous results: keyboard and mouse completely locked. Closed vsphere and started again, connect to freebsd machine: black window, no reaction to any keyboard of mouse .. 2011/10/6 Matthias Apitz > El día Thursday, October 06, 2011 a las 11:04:33AM +0200, n dhert escribió: > > > It is not so clear .. My problem is: > > > > My FreeBSD is a VMware Virtual machine, for 2 years. > > When connecting to that machine via vSphere client, I get a KDM > > login window and via Ctrl-Alt-F1 can switch to a console prompt > > Well, that *was* possible .. > > > > Since the last reboot, Ctrl-Alt-F1 (F2, .. F8) doesn't do anything > > anymore... > > Can't understand why, it always worked in the past? > > Try: > > Ctrl-Alt-SPACE and while Ctrl-ALt still down F1 > >matthias > > -- > Matthias Apitz > t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 > e - w http://www.unixarea.de/ > 200†-20††: 10 years war in Afghanistan. Stop it now! > ___ 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: X on Xterminals but not on console
El día Thursday, October 06, 2011 a las 11:51:22AM +0200, n dhert escribió: > I tried that already yesterday, with disastreous results: keyboard and mouse > completely locked. > Closed vsphere and started again, connect to freebsd machine: black window, > no reaction to any keyboard of > mouse .. Sorry to hear this. I have tested it with VMware 7.x running on my Win7 laptop and FreeBSD 9-CUR (r220692) in a VM. It worked fine for me. File a bug report against vSphere. HIH matthias PS: Please dont top-post -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ 200†-20††: 10 years war in Afghanistan. Stop it now! ___ 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: X on Xterminals but not on console
Are you sure it is a vSphere problem? I'm not sure: I have used it for 2 years without problem, only with the last reboot (for security update -p3 of FreeBSD 8.2) I got into problems. I update packages every week, maybe something changed in the X packages (I do read /ussr/ports/UPDATING always before updating, can't remember something would have to be done before upgrading) 2011/10/6 Matthias Apitz > El día Thursday, October 06, 2011 a las 11:51:22AM +0200, n dhert escribió: > > > I tried that already yesterday, with disastreous results: keyboard and > mouse > > completely locked. > > Closed vsphere and started again, connect to freebsd machine: black > window, > > no reaction to any keyboard of > > mouse .. > > Sorry to hear this. I have tested it with VMware 7.x running on my Win7 > laptop and FreeBSD 9-CUR (r220692) in a VM. It worked fine for me. > File a bug report against vSphere. > > HIH > >matthias > > PS: Please dont top-post > > -- > Matthias Apitz > t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 > e - w http://www.unixarea.de/ > 200†-20††: 10 years war in Afghanistan. Stop it now! > ___ 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: X on Xterminals but not on console
El día Thursday, October 06, 2011 a las 01:15:04PM +0200, n dhert escribió: > Are you sure it is a vSphere problem? I'm not sure: > I have used it for 2 years without problem, only with the last reboot (for > security update -p3 of FreeBSD 8.2) > I got into problems. I update packages every week, maybe something changed > in the X packages (I do read > /ussr/ports/UPDATING always before updating, can't remember something would > have to be done before > upgrading) (Note: I will from now ignore all top posted questions.) You can watch with xev(1) if the F1 key stroke gets delivered to the X11 server. In my case it is only delivered when I do Ctrl-Alt-Space before. HIH matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ 200†-20††: 10 years war in Afghanistan. Stop it now! ___ 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: X on Xterminals but not on console
(sorry for top posting, but your private address always comes in To: have to remember deleting it..) I can only test on my Xterminal since vsphere connection is a black screen .. on Xterminal, xev : when hitting F1 in the small Event test window, I get answer: KeyPress event, serial 29, synthetic NO, window 0x481, root 0x28, subw 0x0, time 2562153193, (4,176), root:(759,203), state 0x0, keycode 15 (keysym 0xffbe, F1), same_screen YES, XLookupString gives 0 bytes: XmbLookupString gives 0 bytes: XFilterEvent returns: False KeyRelease event, serial 31, synthetic NO, window 0x481, root 0x28, subw 0x0, time 2562153265, (4,176), root:(759,203), state 0x0, keycode 15 (keysym 0xffbe, F1), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False 2011/10/6 Matthias Apitz > El día Thursday, October 06, 2011 a las 01:15:04PM +0200, n dhert escribió: > > > Are you sure it is a vSphere problem? I'm not sure: > > I have used it for 2 years without problem, only with the last reboot > (for > > security update -p3 of FreeBSD 8.2) > > I got into problems. I update packages every week, maybe something > changed > > in the X packages (I do read > > /ussr/ports/UPDATING always before updating, can't remember something > would > > have to be done before > > upgrading) > > (Note: I will from now ignore all top posted questions.) > > You can watch with xev(1) if the F1 key stroke gets delivered to the > X11 server. In my case it is only delivered when I do Ctrl-Alt-Space > before. > > HIH > >matthias > -- > Matthias Apitz > t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 > e - w http://www.unixarea.de/ > 200†-20††: 10 years war in Afghanistan. Stop it now! > ___ 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"
problems with IRQ
system work fine, but systat -v show wrong results in compare with vmstat -i seems counter overflow or so.. systat -v 2 usersLoad 0.95 1.13 1.15 Oct 6 17:36 Mem:KBREALVIRTUAL VN PAGER SWAP PAGER Tot Share TotShareFree in out in out Act 3425966396 813716 9244 1395872 count All 527128 10356 300289639336 pages Proc:Interrupts r p d s w Csw Trp Sys Int Sof Flt 31 cow254k total 50 557k 2614 14k 237k 4028 449127 zfodatkbd0 1 2 ozfod12 ata0 14 9.1%Sys 21.7%Intr 1.6%User 0.0%Nice 67.6%Idle 1%ozfod 221k ehci0 16 ||||||||||| daefr 2 ehci1 23 =++> 37 prcfr 4130 cpu0:timer 42 dtbuf 314 totfr 15799 re0 256 Namei Name-cache Dir-cache142271 desvn react 4131 cpu1:timer Callshits %hits % 87941 numvn pdwak 4129 cpu3:timer 61585762 94 35563 frevn pdpgs 4130 cpu2:timer intrn Disks ad0 da0 pass0298480 wire KB/t 18.79 0.00 0.00193600 act tps 12 0 0 2103500 inact MB/s 0.22 0.00 0.00 9180 cache %busy 0 0 0 1386692 free # vmstat -i interrupt total rate irq1: atkbd02536 0 irq14: ata0 8516926 9 irq16: ehci0 2233740154 2585 irq23: ehci1 2594742 3 cpu0:timer3562265448 4122 irq256: re0 2291967374 2652 cpu1:timer3562481709 4123 cpu3:timer3479157511 4026 cpu2:timer3555645238 4115 Total18696371638 21638 thank you. ___ 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: X on Xterminals but not on console
Hi, In your labserver, do you have a graphical login window at your labserver or not ? I don't want a graphical login, since I can't get anymore to the login prompt via Ctrl Alt F1 In KDM, the config directory is /usr/local/share/config/kdm for kdm window manager, there is no Xservers file, and I can't see any file .. there are Xaccess, Xwilling, Xstartup, Xreset, Xsession files and a large kdmrc file. There are no man pages for kdm, kdm-bin, Xaccess, etc... I tried setting ServerCmd="" instead of ServerCmd=/usr/local/bin/X -br in the kdmrc file ... Now I only have /usr/local/bin/kdm-bin running, not /usr/local/bin/X Am I right to believe the primary role of a local X server (local= on labserver) is to have a graphical environment on that labserver machine ? 2011/10/6 Manolis Kiagias > On 5/10/2011 1:33 μμ, n dhert wrote: > >> FreeBSD-8.2 with Xorg: >> Is there a way one can specify that your never have X on the console (just >> the login: prompt) >> but still have X on any other X-windows termnal (an KDM login window) and >> graphical environment >> > > I've got a lab that uses XDMCP and X-terminals and I don't run X on the > server. I am using XDM and have commented out the following line in > /usr/local/lib/X11/xdm/**Xservers: > > # :0 local /usr/local/bin/X :0 > > It might be something similar for KDM that will allow it to listen for > remote connections but not run locally. > ___ 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.0 -> PHP 5.3.x
Hi all, Short of upgrading the OS, what is the safest way to upgrade a FreeBSD server to PHP 5.3.x from 5.2.11 ? I am assuming downloading the ports tarball and rebuilding and reinstalling will do it? Any advice, samples would be appreciated, -Grant ___ 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: problems with IRQ
On Thu Oct 6 11, KES wrote: > system work fine, but systat -v show wrong results in compare with vmstat -i > seems counter overflow or so.. i'd rather suspect that systat(1) is querying different variables/structures than vmstat(8). their output is different on my system too and after only a few hours of uptime and very little interrupts, i would rule out a counter overflow. cheers. alex > > systat -v > 2 usersLoad 0.95 1.13 1.15 Oct 6 17:36 > > Mem:KBREALVIRTUAL VN PAGER SWAP PAGER > Tot Share TotShareFree in out in out > Act 3425966396 813716 9244 1395872 count > All 527128 10356 300289639336 pages > Proc:Interrupts > r p d s w Csw Trp Sys Int Sof Flt 31 cow254k total > 50 557k 2614 14k 237k 4028 449127 zfodatkbd0 1 > 2 ozfod12 ata0 14 > 9.1%Sys 21.7%Intr 1.6%User 0.0%Nice 67.6%Idle 1%ozfod 221k ehci0 16 > ||||||||||| daefr 2 ehci1 23 > =++> 37 prcfr 4130 > cpu0:timer > 42 dtbuf 314 totfr 15799 re0 256 > Namei Name-cache Dir-cache142271 desvn react 4131 > cpu1:timer >Callshits %hits % 87941 numvn pdwak 4129 > cpu3:timer > 61585762 94 35563 frevn pdpgs 4130 > cpu2:timer > intrn > Disks ad0 da0 pass0298480 wire > KB/t 18.79 0.00 0.00193600 act > tps 12 0 0 2103500 inact > MB/s 0.22 0.00 0.00 9180 cache > %busy 0 0 0 1386692 free > > > # vmstat -i > interrupt total rate > irq1: atkbd02536 0 > irq14: ata0 8516926 9 > irq16: ehci0 2233740154 2585 > irq23: ehci1 2594742 3 > cpu0:timer3562265448 4122 > irq256: re0 2291967374 2652 > cpu1:timer3562481709 4123 > cpu3:timer3479157511 4026 > cpu2:timer3555645238 4115 > Total18696371638 21638 > > thank you. ___ 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: X on Xterminals but not on console
On 6/10/2011 6:24 μμ, n dhert wrote: Hi, In your labserver, do you have a graphical login window at your labserver or not ? I don't want a graphical login, since I can't get anymore to the login prompt via Ctrl Alt F1 No graphical login. My lab server stops at the console login prompt. In KDM, the config directory is /usr/local/share/config/kdm for kdm window manager, there is no Xservers file, and I can't see any file .. there are Xaccess, Xwilling, Xstartup, Xreset, Xsession files and a large kdmrc file. There are no man pages for kdm, kdm-bin, Xaccess, etc... I tried setting ServerCmd="" instead of ServerCmd=/usr/local/bin/X -br in the kdmrc file ... Now I only have /usr/local/bin/kdm-bin running, not /usr/local/bin/X Don't really know how KDM handles this. You could however - as a last resort - disable KDM and use xdm as your login manager. It is a bit "rough" (see login screens here http://www.flickr.com/photos/sonic2000gr/5033230929/in/set-72157625053818002) but it can start up any GUI using a simple .xsession file (xdm is not installed along with X but it is a very small port, x11/xdm). Am I right to believe the primary role of a local X server (local= on labserver) is to have a graphical environment on that labserver machine ? Yes, absolutely. There is no need to run a GUI on the lab server. It's a waste of CPU cycles and memory. ___ 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"
www/libxul update distfile?
Hello. A week ago the portaudit alert came for mozilla products. I updated www/firefox36 and mail/thunderbird3 ports but still no www/libxul in the ports. I suppose I need the 1.9.2.23 version: http://portaudit.freebsd.org/1fade8a3-e9e8-11e0-9580-4061862b8c22.html But I can't even find a source package: https://encrypted.google.com/search?hl=en&q=xulrunner-1.9.2.23.source.tar.bz2 I don't think I should get it from fedora's git's 'lookaside cache'. Or should I? Thank you. -- Peter Vereshagin (http://vereshagin.org) pgp: A0E26627 ___ 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: Samba
On Wed, Oct 5, 2011 at 11:29 PM, Kruppa, Peter Ulrich wrote: [snip] >> > Just one idea: > did you activate the firewall on your Windows client somehow? That might > happen during some kind of updates and block samba from client side. > Nope, SEP says 139 is allowed, the one thing I haven't done yet is a reboot of that windows client, I will try that later today. > -- > Chris Brennan > A: Yes. > >Q: Are you sure? > >>A: Because it reverses the logical flow of conversation. > >>>Q: Why is top posting frowned upon? > http://xkcd.com/84/ | http://xkcd.com/149/ | http://xkcd.com/549/ > GPG: D5B20C0C (6741 8EE4 6C7D 11FB 8DA8 9E4A EECD 9A84 D5B2 0C0C) ___ 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: FreeBSD 8.0 -> PHP 5.3.x
On 06/10/2011 16:55, Grant Peel wrote: > Short of upgrading the OS, what is the safest way to upgrade a > FreeBSD server to PHP 5.3.x from 5.2.11 ? I am assuming downloading > the ports tarball and rebuilding and reinstalling will do it? Any > advice, samples would be appreciated 8.0 is out of support now as I recall. Recommend upgrading to 8.2 -- you should be able to update the base system independently of updating any ports as the ABI won't change because it's all the same major version number. Update your ports tree to the latest. Update your installed ports to the latest available. You can omit upgrading PHP and things like eaccelerator since you'll be deleting and reinstalling them shortly. Make backups of all of your PHP related ports. Take note of which are the actual applications you want to run -- there are some differences in the available modules between the php52 and the php5 ports, so it won't necessarily be an exact one-for-one swap. Now remove the base php52 port and every port that depends on it. Install the core lang/php5 port -- this resets the default PHP version on your system -- then reinstall your applications, allowing them to add any necessary modules automatically to fulfil their dependencies. If your PHP application code is not installed via ports, then you'll have to manually work out which modules to install -- this is likely to be pretty similar to what you needed with php52 but not necessarily exactly the same. Usually it's a matter of installing a bunch of stuff, trying the application, noting what throws errors due to missing functions and installing the needed modules to provide that. Rinse, repeat. This is safe, in that you should end up with a functioning system, but it is pretty intrusive and requires significant amounts of downtime on your system. To minimize all that, probably the best thing to do is clone your web server into a jail or VM, work on the upgrade there at your leisure, including all needed debugging. Then you should be able to make packages of all the ports in your test system and use those to quickly apply the changes to your live system. This is a key command-line you'll need for that: pkg_create -Rbn portname 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: FreeBSD 8.0 -> PHP 5.3.x
On 06/10/2011 16:55, Grant Peel wrote: Hi all, Short of upgrading the OS, what is the safest way to upgrade a FreeBSD server to PHP 5.3.x from 5.2.11 ? I am assuming downloading the ports tarball and rebuilding and reinstalling will do it? Any advice, samples would be appreciated, -Grant ___ 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" It's not too traumatic an upgrade, and initially is as simple as you suggest, remember to uninstall extenstions via the meta port lang/php52-extensions (and reinstall desired extensions via lang/php5-extensions) further suggestions, * *copy the config make options from phpinfo() on 5.2 as it'll help you remember what you need for 5.3. keep a copy of you php.ini obv also. check http://uk3.php.net/migration53 you'll likely know but 5.3 is quite different from 5.2 so there's a few gotchas, such as changes to log levels, no more register globals, you must explicitly use $_POST or $_GET no more register_long_arrays, you cannot use $HTTP_POST_VARS short tags are probably off round about that version, if i recall, there was some changes to a lot of my $_SESSION code so check any code that uses that, (but this could well have been my implementations.) good luck Paul. ___ 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: Failing to build multimedia/gstreamer-ffmpeg
On Wed, Oct 5, 2011 at 5:14 PM, Frank Shute wrote: > > On Wed, Oct 05, 2011 at 03:35:58PM -1000, Open Slate wrote: > > > > Failing to build multimedia/gstreamer-ffmpeg > > > > ---> Upgrading 'gstreamer-ffmpeg-0.10.11_1' to 'gstreamer-ffmpeg-0.10.12' > > (multimedia/gstreamer-ffmpeg) > > ---> Building '/usr/ports/multimedia/gstreamer-ffmpeg' > > ===> Cleaning for gstreamer-ffmpeg-0.10.12 > > gstreamer-ffmpeg-0.10.12: Makefile error: you cannot include > > bsd.port[.pre].mk twice > > *** Error code 1 > > > > Stop in /usr/ports/multimedia/gstreamer-ffmpeg. > > ** Command failed [exit code 1]: /usr/bin/script -qa > > /tmp/portupgrade20111005-1444-s8mm5a-0 env UPGRADE_TOOL=portupgrade > > UPGRADE_PORT=gstreamer-ffmpeg-0.10.11_1 UPGRADE_PORT_VER=0.10.11_1 make > > ** Fix the problem and try again. > > > > Full Makefile below. Near the end I see > > > > .include > > > > followed closely by > > > > .include > > > > Perhaps one of these was supposed to be excluded via a conditional? I tried > > commenting each one out but neither form builds successfully. The date on > > the makefile header is not new but the port was recently updated. > > > > > > # uname -a > > FreeBSD myhostname 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 > > 18:07:27 UTC 2011 > > r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC > > i386 > > > > The Makefile in multimedia/gstreamer-ffmpeg: > > > > # New ports collection makefile for: gstreamer ffmpeg > > # Date created: Thu Feb 26 20:10:39 CET 2004 > > # Whom: Koop Mast > > # > > # $FreeBSD: ports/multimedia/gstreamer-ffmpeg/Makefile,v 1.43 2011/10/05 > > 23:05:41 bapt Exp $ > > # $MCom: ports/multimedia/gstreamer-ffmpeg/Makefile,v 1.14 2006/07/20 > > 13:40:27 ahze Exp $ > > # > > > > PORTNAME= gstreamer > > PORTVERSION= 0.10.12 > > CATEGORIES= multimedia > > MASTER_SITES= http://gstreamer.freedesktop.org/src/gst-ffmpeg/ > > PKGNAMESUFFIX= -ffmpeg > > DISTNAME= gst-ffmpeg-${PORTVERSION} > > > > MAINTAINER= multime...@freebsd.org > > COMMENT= GStreamer plug-in for manipulating MPEG video streams > > > > LICENSE= GPLv2 > > > > BUILD_DEPENDS= yasm:${PORTSDIR}/devel/yasm > > LIB_DEPENDS= orc-0.4.0:${PORTSDIR}/devel/orc > > > > USE_BZIP2= yes > > USE_GMAKE= yes > > USE_LDCONFIG= yes > > USE_GSTREAMER= yes > > GNU_CONFIGURE= yes > > FFMPEG_CONFIG= --cc=${CC} \ > > --enable-runtime-cpudetect \ > > --enable-pic > > LDFLAGS+= -Wl,-Bsymbolic > > CFLAGS+= -fno-force-addr > > CONFIGURE_ENV= PKG_CONFIG=${PKG_CONFIG} > > > > PLIST_SUB= VERSION="${GST_VERSION}" > > > > PKG_CONFIG?="${LOCALBASE}/bin/pkg-config" > > GST_VERSION=${PORTVERSION:C/..$//} > > > > # sse hardware vector support > > .if defined(MACHINE_CPU) && (${MACHINE_CPU:Msse} == "sse" || > > ${MACHINE_CPU:Mamd64} == "amd64") > > WITH_BUILTIN_VECTOR= yes > > .else > > FFMPEG_CONFIG+= --disable-sse > > .endif > > > > # mmx support > > .if defined(MACHINE_CPU) && ${MACHINE_CPU:Mmmx} == "" && > > ${MACHINE_CPU:Mamd64} == "" > > FFMPEG_CONFIG+= --disable-mmx > > WITHOUT_BUILTIN_VECTOR= yes > > .endif > > > > # builtin vector, requires mmx and sse > > .if !defined(WITHOUT_BUILTIN_VECTOR) && defined(WITH_BUILTIN_VECTOR) > > CFLAGS+= -msse > > .endif > > > > CONFIGURE_ARGS+= --with-ffmpeg-extra-configure="${FFMPEG_CONFIG}" > > > > .include > > > > .if ${OSVERSION} < 900033 > > > > BUILD_DEPENDS+= ${LOCALBASE}/bin/as:${PORTSDIR}/devel/binutils > > MAKE_ENV= COMPILER_PATH=${LOCALBASE}/bin > > > > .endif > > > > .include > > See: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/161316 > > It looks like it's been fixed, so csup/portsnap your ports tree > and try to build it again. Thanks, that did it. Now I can't build math/mpfr, error fetching the tarball. If it's not one thing, it's another. Maybe tomorrow ... ___ 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"
OT: how to tell when i've hit a Fn key?
I've got a 103-key keyboard. most of them produce the right WAV file. i was having some trouble with the arrow key, but think i've found a resolution. next are the Function key, F1 to F12. anybody on-list familiar with curses and can help me with this? right now, most of the function keys output 4 clicks [!]. thanks in advance, gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 8.51a release of Jottings: http://jottings.thought.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: OT: how to tell when i've hit a Fn key?
On Thu, Oct 06, 2011 at 03:41:17PM -0700, Gary Kline wrote: > > I've got a 103-key keyboard. most of them produce the right WAV > file. i was having some trouble with the arrow key, but think i've > found a resolution. next are the Function key, F1 to F12. > > anybody on-list familiar with curses and can help me with this? > right now, most of the function keys output 4 clicks [!]. I generally use tack for verifying the function-keys against the terminal description. (I don't recall seeing a port for tack, but it can probably be built starting with ncurses-devel, though I haven't tried that, since I build development versions of ncurses outside the ports). For _seeing_ the codes, it helps to type ^V (lnext) right before pressing a given key, making the escape character visible. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net pgpkRPxeLad9y.pgp Description: PGP signature
Gribētu pačukstēt Mis Skaistule..
Hei, hei! Esi taču kaut ko saņēmis info par noslēpumaino Mis Seksīgās līnijas konkursu? Pat, ja neesi, nekas! Tu vari būt patiešām pārliecināts, ka sievietes bija trakoti seksuālas un kārdinošiem apaļumiem vajadzīgajās vietās! Ja vēlies viņas satikt dzīvē un drusciņ apčamdīt... nu tad sāc ar: http://sailinmalta.com/wp-content/uploads/last.php Homka Jevdokija ___ 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: nan/inf in WCPU of ps / top
On Tue, Oct 4, 2011 at 8:52 PM, Gautam Mani wrote: > Hi, > > On one virtual machine (qemu on cygwin) running RELENG_8 (csupped around > 12.Sep.11) -- I noticed: > > $ ps aux > USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND > root 0 nan 0.1 064 ?? DLs 8:39PM 0:00.66 [kernel] > root 10 nan 0.0 0 8 ?? DL8:39PM 0:00.00 [audit] > root 1 nan 0.4 2912 472 ?? ILs 8:39PM 0:00.15 /sbin/init > -- > root 11 inf 0.0 016 ?? RL8:39PM 10:26.08 [idle] > root 12 nan 0.1 0 120 ?? WL8:39PM 0:07.22 [intr] > > > even top has this problem: > > Any pointers how I can get my WCPU values back -- its a little difficult if > I cannot sort by WCPU in top. > > Hi, Does anyone have an idea about this? Any other qemu users see this kind of behaviour ? Thanks Gautam ___ 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: OT: how to tell when i've hit a Fn key?
On Thu, Oct 06, 2011 at 07:37:25PM -0400, Thomas Dickey wrote: > Date: Thu, 6 Oct 2011 19:37:25 -0400 > From: Thomas Dickey > Subject: Re: OT: how to tell when i've hit a Fn key? > To: Gary Kline > Cc: FreeBSD Mailing List > > On Thu, Oct 06, 2011 at 03:41:17PM -0700, Gary Kline wrote: > > > > I've got a 103-key keyboard. most of them produce the right WAV > > file. i was having some trouble with the arrow key, but think i've > > found a resolution. next are the Function key, F1 to F12. > > > > anybody on-list familiar with curses and can help me with this? > > right now, most of the function keys output 4 clicks [!]. > > I generally use tack for verifying the function-keys against the terminal > description. (I don't recall seeing a port for tack, but it can probably > be built starting with ncurses-devel, though I haven't tried that, since > I build development versions of ncurses outside the ports). > > For _seeing_ the codes, it helps to type ^V (lnext) right before pressing > a given key, making the escape character visible. > Hm. no joy in mudville. i know the first byte ia an ESC [ '\033]. the last, for F1, is an A. the others are hidden. i'll check ncurses-devel and see w hat it has. REAL code helps in stuff like this... . > -- > Thomas E. Dickey > http://invisible-island.net > ftp://invisible-island.net -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix Journey Toward the Dawn, E-Book: http://www.thought.org The 8.51a release of Jottings: http://jottings.thought.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"
kdm with no local X starting
When starting /usr/local/bin/kdm (e.g. from /etc/ttys), this starts kdm-bin (KDM window manager) but also a local X server. On a server machine this often is not needed. How to configure xdm to not start a local X server? So far I came up only with # vi /usr/local/share/config/kdm/kdmrc ServerCmd="" (instead of ServerCmd=/usr/local/bin/X -br) but there are probably more clean ways ? ___ 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"
FBSD82 sec patch -p4, uname still -p3
I just applied security patch -p4 (last week -p3) to a freebsd 8.2 system (generic kernel) # freebsd-update fetch # freebsd-update install # ls -la /usr/src/sys/conf/newvers.sh has date of today and contains REVISION="8.2" BRANCH="RELEASE-p4" reboot # uname -r 8.2-RELEASE-p3 still shows -p3 not -p4 # uname -a FreeBSD mcsbu.cde.ua.ac.be 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011 r...@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 why? -p4 was a small patch to linux emulation mode, which I don't have installed is this why it is still -p3 ? ___ 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"