Re: 8.0: OpenSSL stat()'s NLS 500+ times causing extreme system load
On Tue, Dec 15, 2009 at 12:53 PM, Dan Nelson dnel...@allantgroup.com wrote: It's defined in src/lib/libc/Makefile, so you should be able to remove that line, rebuild libc and reinstall, and see whether your performance issue goes away. I tried that and as you predicted, all the bogus stat calls went away. Unfortunately the performance issue did not. :( Back to the drawing board for me! Upon further inspection, it seems as though for each check, Nagios spawns a process that spawns a process that spawns a process that runs the check. I did ktrace -i -t w -p (nagiospid) on Nagios for 30 seconds and the ktrace output contained records from 2365 different processes spawned in that 30 seconds. During that time, I would expect about 800 checks to have run, so it does seem like it's right at 3 processes per check. I just don't think the system can keep up with all that fork()ing without going all out; it's just a limit of the Nagios plugin architecture. But thank you very much for point me in the right direction! ___ 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
Problem with snd_hda and Realtek ALC260 and FreeBSD 8.0
Hi, I have a Sony Vaio laptop which has a HDA sound card. The sound used to work fine with FreeBSD 6.4. I recently upgraded to FreeBSD 8.0 and I can't get the sound to work. Below are dmesg, sndstat and pindump outputs. Even the beep which sounds when you press esc in a terminal does not work. What could be the problem and how can I fix it? Kind regards, Felix Janssen # dmesg |grep hdac hdac0: Intel 82801F High Definition Audio Controller mem 0xb000-0xb0003fff irq 16 at device 27.0 on pci0 hdac0: HDA Driver Revision: 20091113_0138 hdac0: [ITHREAD] hdac0: HDA Codec #0: Realtek ALC260 hdac0: HDA Codec #1: Conexant (Unknown) hdac0: hdac_audio_as_parse: Duplicate pin 0 (18) in association 1! Disabling association. hdac0: hdac_audio_as_parse: Pin 18 has wrong direction for association 1! Disabling association. hdac0: hdac_audio_as_parse: Duplicate pin 0 (20) in association 2! Disabling association. hdac0: hdac_audio_as_parse: Pin 20 has wrong direction for association 2! Disabling association. pcm0: HDA Realtek ALC260 PCM #0 Digital at cad 0 nid 1 on hdac0 # cat /dev/sndstat Installed devices: pcm0: HDA Realtek ALC260 PCM #0 Digital at cad 0 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/0r:0v channels simplex default) # sysctl dev.hdac.0.pindump=1 hdac0: Dumping AFG cad=0 nid=1 pins: hdac0: nid 15 0x02014110 as 1 seq 0 Line-out Jack jack 1 loc 2 color Green misc 1 [DISABLED] hdac0:Caps: IN OUT HP EAPD Sense: 0x80001f41 delay 15730us hdac0: nid 16 0x21011120 as 2 seq 0 Line-out Jack jack 1 loc 33 color Black misc 1 [DISABLED] hdac0:Caps: IN OUT HP EAPD Sense: 0x80001f41 delay 16450us hdac0: nid 17 0x41f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 [DISABLED] hdac0:Caps:OUT hdac0: nid 18 0x02a15910 as 1 seq 0 Mic Jack jack 1 loc 2 color Red misc 9 [DISABLED] hdac0:Caps: IN OUT HP VREF Sense: 0x80001f41 delay 16450us hdac0: nid 19 0x41f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 [DISABLED] hdac0:Caps: IN OUT HP VREF Sense: 0x80001f41 delay 16440us hdac0: nid 20 0x21845120 as 2 seq 0 Line-in Jack jack 4 loc 33 color Red misc 1 [DISABLED] hdac0:Caps: IN OUT HP VREF Sense: 0x80001f41 delay 16460us hdac0: nid 21 0x41f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 [DISABLED] hdac0:Caps: IN OUT HP VREF Sense: 0x80001f41 delay 16450us hdac0: nid 22 0x41f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 [DISABLED] hdac0:Caps: IN hdac0: nid 24 0x21451130 as 3 seq 0 SPDIF-out Jack jack 5 loc 33 color Black misc 1 hdac0:Caps:OUT Sense: 0x8000 hdac0: nid 25 0x41f0 as 15 seq 0 Speaker None jack 1 loc 1 color Black misc 1 [DISABLED] hdac0:Caps: IN Sense: 0x8000 hdac0: NumGPIO=4 NumGPO=0 NumGPI=0 GPIWake=0 GPIUnsol=1 hdac0: GPIO: data=0x enable=0x direction=0x hdac0: wake=0x unsol=0xsticky=0x ___ 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
APC Smartups 1500va sua1500
Guys, A post I send yesterday never showed up, so I'll ask again with the following question: Do we have a driver for the APC SmartUPS 1500VA #sUA1500? gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 7.79a release of Jottings: http://jottings.thought.org/index.php ___ 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
Native PDF viewer
Hi all, Since I don't have Linux compat layer activated, and I have no need for it, I'd like to ask if anyone can suggest a native PDF viewer (I'm not fond of the idea of installing a compat layer for just one application). Currently I'm using GIMP to view PDF files, but since GIMP opens them either as several single pictures (one per page) or one picture with several layers (one layer per page), it gets a little hard to browse through the pages, especially with big documents, e.g. my camera manual. I founed several apps among the ports, too many to test them all, so if anyone has ideas or can tell me what the pros and cons are for some of those apps, I'd greatly appreciate it. Cheers, Rolf Nielsen ___ 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: SUIDDIR on ZFS?
On Tue, 15 Dec 2009 05:36:55 +0100, Ben Schumacher m...@benschumacher.com wrote: At any rate, I've been considering switching this to a ZFS RAIDZ now that FreeBSD 8 is released and it seems that folks think it's stable, but I'm curious if it can provide the SUIDDIR functionality I'm currently using. Yes, it can. From my point of view it works the same way as on UFS. -- am ___ 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-compiling PHP changes server responsiveness
Recently upgraded (fresh install) FBSD 8, including MySql, Apache22, phpMyAdmin, KDE4 Gnome2.26 from DVD iso. Running ok as test server, but unusual error from added, complex CMS prompted me to re-install PHP5 and PHP5-extensions as pkg_add -r (using ports files from iso), then with no success, compiling them (using ports files from iso), with slightly different make config. Now server does not respond, either to 'localhost' request on its browser, or specific address request from another machine on local network. I assume re-compiling PHP would not clobber hosts or resolv.conf (they look ok). I get: [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter, and no new errors in /var/log/httpd-error.log four times Tried adding accf_http=YES to /boot/loader.conf, and re-booting of course. Tried refreshing ports (inital re-compile attempt failed with make complaining that postgres-client had been marked invalid - when will someone fixit?), and re-compiling apache22 = no change. ps -auxc: no httpd. FF3 under Gnome on the machine fetches external pages, of course (using router DNS). What else should I look at? -- ianf http://www.metapixeldesigns.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
Why VNC server crashes when client disconnects?
I used vnc while ago without this problem. Now I see that when client gracefully exits (window close) server crashes with exception: terminate called after throwing an instance of 'rdr::EndOfStream' knotify: Fatal IO error: client killed kwin: Fatal IO error: client killed ksmserver: Fatal IO error: client killed kaccess: Fatal IO error: client killed Is this something temporary, or somethig's wrong with my system? vnc-4.1.3_2 on vnc-4.1.3_2 Yuri ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Up grading ports, Xorg et all
I messed up a KDE 3.5.10 trying to install firefox3 so I thought I would attempt to upgrade using portupgrade and/or portmaster. After a lot of work I think I am back to if you use KDE the only way to upgrade is to start afresh. At this point I thought I would try Xorg 7.4. I did a pkg_delete -a and pkg_add -r xorg. This was a complete disaster. After trying all the configuration options, tips etc in the handbook, google et all, I decided my 3+ year old thinkpad was just not supported so I composed a can anyone help me email to questions. This went off into the ether through user error. While I was waiting for help I thought I would try installing Xorg from an iso image. The resulting install worked out of the box using the last variation of xorf.conf I had tried. I am left to assume that what I got from pkg_add does not fit together. Obviously my earlier attempts to get an xorg.conf file worked fine. The code did not. As a thought to the Xorg, I do not think the unbundling makes things more stable. Xfree86 was bad enough (so I thought) with its couple of dozen (or so) components. Starting from scratch I now have 204 ports and two versions of python just to run twm. Given that some number of the 204 component are under active development using pkg_add seems out of the question. The second version of python came in because I could not find xdm in the 7.2-release disk1 iso so I did a pkg_add on xdm. Aside from venting a bit, my message is the Xorg set from a release iso probably has a better chance of working if you run into problems. I do not own or have access to any systems that could build Xorg or KDE in less than a month so I am clueless if building from source would have worked any better. _ Douglas Denault http://www.safeport.com supp...@safeport.com Voice: 301-217-9220 Fax: 301-217-9277 ___ 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
USBserial port convertor
I need to support 5 RS-232 streams with my FreeBSD 7.2 machine. I just purchased UTS-408A-S1 8 port adapter. When I plug it in, I get the following in dmesg: uhub3: vendor 0x0409 product 0x005a, class 9/0, rev 2.00/1.00, addr 2 on uhub1 uhub3: single transaction translator uhub3: 4 ports with 4 removable, self powered ucom0: FTDI FT232R USB UART, class 0/0, rev 2.00/6.00, addr 3 on uhub3 ucom1: FTDI FT232R USB UART, class 0/0, rev 2.00/6.00, addr 4 on uhub3 uhub4: vendor 0x0409 product 0x005a, class 9/0, rev 2.00/1.00, addr 5 on uhub3 uhub4: single transaction translator uhub4: 4 ports with 4 removable, self powered Do I need to add a driver to my kernel? Right now I have the GENERIC one installed. What devices should I try? -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? ___ 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: slow clock on FreeBSD 7.2 on vmware
On 12/15/2009 9:38 AM, Jacques Manukyan wrote: On Sat, 12 Dec 2009 12:06:18 -0500, Robert Fitzpatrick rob...@webtent.com wrote: I found posts about this and a possible solution is to disable APIC by adding hint.apic.0.disabled=1 to /boot/loader.conf. But after doing so, it booted to the mountroot prompt and would not recognize my ufs:/dev/da0s1a partition when tried. I went to FixIt and removed the line from the loader.conf file and it boots fine. I do have some other things to help the pgsql db on this server in the loader.conf file, are they interfering? pgsql# cat /boot/loader.conf kern.ipc.semmni=32 kern.ipc.semmns=512 hint.apic.0.disabled=1 Try putting: kern.hz=50 in your /boot/loader.conf Thanks, that worked. I removed the hint.apic.0.disabled line and put the kern.hz line back in except this time with 50 instead of 100 and it boots and seems to be keeping time now fine. Since I am a programmer and not a system admin, not sure what this does and would like to know, what is the kern.hz telling FreeBSD? I run multiple FreeBSD servers inside VMWare and I don't have this problem. Are you running VMWare workstation? Or ESX/ESXi? I am running VMware Server 2.0...thanks again. ___ 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
Have not received emails for a few days now....
Is there something wrong with the freebsd-questions@freebsd.org mailing list? perhaps I got booted accidentally. Cheers! Diego ___ 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
How to apply a patch for Broadcom 5715S
I have the same problem as reported in this bug: http://www.freebsd.org/cgi/query-pr.cgi?pr=122551 Someone attached a patch to the bug that resolves the problem. I don't know how to apply the patch. Can someone please show me how? ___ 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
black hole test
Daignostic message to trace mailing list processing, please ignore. -- Peter Wemm - pe...@wemm.org; pe...@freebsd.org; pe...@yahoo-inc.com; KI6FJV All of this is for nothing if we don't go to the stars - JMS/B5 If Java had true garbage collection, most programs would delete themselves upon execution. -- Robert Sewell ___ 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
ipfilter unwanted blocking
Hi, I use FreeBSD 7.2-RELEASE with IPFilter used as proxy server for our LAN. I have following rules for external interface: block in log on rl0 all head 100 block out log on rl0 all head 200 pass out quick proto udp from a.b.c.d/32 to any keep state group 200 pass out quick proto tcp from a.b.c.d/32 to any flags S/SA keep state keep frags group 200 All works but sometimes IPF block all (or most of them) packets to ports 80 and 53 for about 2-3 up to 40-50 s. After this IPF returns to normal operation. How to investigate this problem? I tried remove flags and keep frags but without success. No regularity. Is this a IPF problem, wrong packages or kernel settings? Any idea? ___ 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
question about xorg 7.4
I have a IBM thinkpad T42p. xorg 7.4 is pretty much a disaster for me. First I wonder if anyone has gotten 7.4 to work on this or similar hardware. The system is 3+ years old when it was still IBM. I have done this a time or two starting with the first version of KDE and FreeBSD 4.something. I believe I have tried all of the options in the handbook plus a couple of various from this list and google. So I was not going to add xdm and Xorg output, at first anyway. The one thing I have not done is upgrade the BIOS and am not sure that matters. I was/am afraid of breaking an otherwise great system. It runs xorg 7.3 and KDE 3 or 4 fine. I go to this point because I broke things trying to install firefox3 and got all tangled up in upgrading ports and thought I would give xorg 7.4 a try. I am running FreeBSD 7.2. Xorg was installed using pkg_add on a system without any ports. Upon hitting the xdm trap, I also installed that package. All variations give me a black screen with the keyboard locked. startx, xdm and xorg all do the same. I assume this is a hardware issue and hope someone found a way around it. Thank you for any thoughts, tips, ideas, etc. ___ 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
sed -f Script Syntax
If you have a sed script that is executable as in the first line starts with #! /usr/bin/sed -f and the following lines are like: /this repetitive line/d /and another repetitive line to go/d This all works great. You just make the file executable and use it as a filter if you want to remove any instance of those lines in text. How does one embed a command in this filter to make sed understand an extended or modern regular expression like: /part 1[[:space:]]text\/html[[:space:]]/d This is normally the -e flag but I haven't figured out how to put it in the script. I would like to either use it to make that one line show up as an extended regular expression or make sed run the entire script in the -e mode. In this particular case, I have made a 14-line script called nuisancefilter that vaporizes annoying blocks of text from Email messages. I have read the man page and it says that this is possible, but I never quite understood how to apply the commands to an executable sed script file. Many thanks. Martin McCormick WB5AGZ Stillwater, OK Systems Engineer OSU Information Technology Department Telecommunications Services Group ___ 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
Can I rescan for new PCI devices? Or should hotplugging Expresscards work?
I'm using an ExpressCard for wireless networking because there seems to be no driver for the internal card in my laptop (and NDIS panics the system). The Expresscard shows up as a PCI device and works fine, except that it must be in the system at boot time to be recognized. Judging by old posts I found on the topic, it appears that automated hotplugging of PCI devices is probably still work in progress, but is there a way to manually have the system rescan for PCI devices so I don't have to reboot when I insert the network card? I'm using 8.0 RELEASE amd64. Thanks! -- -- Bob Johnson fbsdli...@gmail.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
diagnostic test
Test ___ 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: APC Smartups 1500va sua1500
On 15/12/2009 4:58 μ.μ., Gary Kline wrote: Guys, A post I send yesterday never showed up, so I'll ask again with the following question: Do we have a driver for the APC SmartUPS 1500VA #sUA1500? gary Use sysutils/apcupsd Works great with all APC products I've tried. ___ 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: Native PDF viewer
On Wednesday 16 December 2009 05:04, Rolf Nielsen wrote: Hi all, Since I don't have Linux compat layer activated, and I have no need for it, I'd like to ask if anyone can suggest a native PDF viewer (I'm not fond of the idea of installing a compat layer for just one application). Currently I'm using GIMP to view PDF files, but since GIMP opens them either as several single pictures (one per page) or one picture with several layers (one layer per page), it gets a little hard to browse through the pages, especially with big documents, e.g. my camera manual. I founed several apps among the ports, too many to test them all, so if anyone has ideas or can tell me what the pros and cons are for some of those apps, I'd greatly appreciate it. Cheers, Rolf Nielsen hi, i'm either using epdfview (cause it's lightweight and low on deps) or emacs (which last week i discovered that it can display pdf files) depending on my mood. if you are not familiar with emacs, epdfview is a very good (GTK) client. -- Real programmers don't document. If it was hard to write, it should be hard to understand. signature.asc Description: This is a digitally signed message part.
Re: Native PDF viewer
xpdf http://www.freebsd.org/cgi/ports.cgi?query=xpdfstype=namesektion=graphics Hi all, Since I don't have Linux compat layer activated, and I have no need for it, I'd like to ask if anyone can suggest a native PDF viewer (I'm not fond of the idea of installing a compat layer for just one application). Currently I'm using GIMP to view PDF files, but since GIMP opens them either as several single pictures (one per page) or one picture with several layers (one layer per page), it gets a little hard to browse through the pages, especially with big documents, e.g. my camera manual. I founed several apps among the ports, too many to test them all, so if anyone has ideas or can tell me what the pros and cons are for some of those apps, I'd greatly appreciate it. Cheers, Rolf Nielsen -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ 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
Device not configured
Hi, I booted into single user mode (running FreeBSD 8 RC2) and did: # dd if=/dev/ad8 of=/dev/ad8 bs=1024k After waiting a few hours the command completed without problem (ad8 is the HDD that has FreeBSD). After that I got the following: # reboot reboot: device not configured # ls vnode_pager_getpages: I/O read error ls: device not configured Pressing the boxes power button results in the above vnode message to spam the screen. The only way to reset the system was to do a hard reset (root was ro :-) ). Is this expected behaviour or something wrong with the HDD? I have been having issues with VirtualBox where doing IO (network and HDD) causes DMA problems resulting in the system panicing and rebooting. Could this be related? I haven't finished diagnosing the VirtualBox problem but booting the guest in safe mode (the guest is FreeBSD-current) does not fix the problem. Thanks for your assistance. David signature.asc Description: This is a digitally signed message part.
Simple Monitoring Of TCP/IP Question
Hello . . . Looking for a *simple* protocol monitoring solution to test connectivity of various facets of a system, i.e. HTTP / HTTPS / POP3 / SMTP etc. I am not looking, and don't want to install a *heavy* application like Nagios etc, but rather something much more simple. I have seen checkservice (/usr/ports/sysutils/checkservice) in the past and that looked quite simple to implement. Another question is there anything more preferred that checkservice that anyone knows about? Thank you in advance for any direction. ___ 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: Have not received emails for a few days now....
On December 16, 2009 01:03:21 pm Diego Montalvo wrote: Is there something wrong with the freebsd-questions@freebsd.org mailing list? perhaps I got booted accidentally. Cheers! Diego ___ 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 This message appeared OK. Hopefully the problem is fixed. ___ 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: Native PDF viewer
Ed Jobs wrote: On Wednesday 16 December 2009 05:04, Rolf Nielsen wrote: Hi all, Since I don't have Linux compat layer activated, and I have no need for it, I'd like to ask if anyone can suggest a native PDF viewer (I'm not fond of the idea of installing a compat layer for just one application). Currently I'm using GIMP to view PDF files, but since GIMP opens them either as several single pictures (one per page) or one picture with several layers (one layer per page), it gets a little hard to browse through the pages, especially with big documents, e.g. my camera manual. I founed several apps among the ports, too many to test them all, so if anyone has ideas or can tell me what the pros and cons are for some of those apps, I'd greatly appreciate it. Cheers, Rolf Nielsen hi, i'm either using epdfview (cause it's lightweight and low on deps) or emacs (which last week i discovered that it can display pdf files) depending on my mood. if you are not familiar with emacs, epdfview is a very good (GTK) client. Thanks Ed, epdfview it is. Does exactly what I want. And does it in my native language. :) Rolf ___ 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: question about xorg 7.4
On Wednesday 16 December 2009 07:15:58 doug wrote: I have a IBM thinkpad T42p. xorg 7.4 is pretty much a disaster for me. First I wonder if anyone has gotten 7.4 to work on this or similar hardware. The system is 3+ years old when it was still IBM. I have done this a time or two starting with the first version of KDE and FreeBSD 4.something. I believe I have tried all of the options in the handbook plus a couple of various from this list and google. So I was not going to add xdm and Xorg output, at first anyway. The one thing I have not done is upgrade the BIOS and am not sure that matters. I was/am afraid of breaking an otherwise great system. It runs xorg 7.3 and KDE 3 or 4 fine. I go to this point because I broke things trying to install firefox3 and got all tangled up in upgrading ports and thought I would give xorg 7.4 a try. I am running FreeBSD 7.2. Xorg was installed using pkg_add on a system without any ports. Upon hitting the xdm trap, I also installed that package. All variations give me a black screen with the keyboard locked. startx, xdm and xorg all do the same. I assume this is a hardware issue and hope someone found a way around it. Thank you for any thoughts, tips, ideas, etc. Xorg defaults to a black screen instead of a checkerboard pattern these days. Keyboard and mouse input is handled by hald(8), so don't forget to enable and start it before starting Xorg. hald depends on dbus so that also needs to be enabled and started. Add the following to rc.conf: hald_enable=YES dbus_enable=YES Good luck, Pieter de Goeje ___ 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: Native PDF viewer
On Wed, 16 Dec 2009, Rolf Nielsen wrote: Since I don't have Linux compat layer activated, and I have no need for it, I'd like to ask if anyone can suggest a native PDF viewer (I'm not fond of the idea of installing a compat layer for just one application). Currently I'm using GIMP to view PDF files, but since GIMP opens them either as several single pictures (one per page) or one picture with several layers (one layer per page), it gets a little hard to browse through the pages, especially with big documents, e.g. my camera manual. I founed several apps among the ports, too many to test them all, so if anyone has ideas or can tell me what the pros and cons are for some of those apps, I'd greatly appreciate it. evince is my choice for a reasonable compromise between size and features. It's similar to the older, more reasonable versions of Acrobat Reader. If you print from evince, set your LANG environment variable beforehand. There is no easy way to set paper size, evince infers it from the LANG setting. It could really use a Preferences option, but instead wants to get all settings from GConf. To make evince use Firefox3 for embedded URLs: gconftool-2 -t string -s /desktop/gnome/url-handlers/http/command firefox3 %s -Warren Block * Rapid City, South Dakota USA ___ 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
is this booting info correct?
Users with Microsoft/Windows knowledge of how a hard drive is configured may have a terminology issue with FreeBSD. Microsoft/Windows and FreeBSD use the word partition to mean different (but related) things. FreeBSD and Microsoft/Windows have primary-partitions, but they call them different things. FreeBSD calls the Microsoft/Windows primary-partition a slice. The number of hard drive primary-partitions/slices is determined by the motherboard BIOS (Basic input output system), not the operating system. Standard motherboard BIOS limits hard-drives to 4 main divisions Each of those are called primary-partitions in Microsoft/Windows terminology and slices in FreeBSD terminology. Each primary-partition/slice can be sub-divided into smaller chunks. In Microsoft/Windows, they are called extended-partitions. They are implemented very differently and are not compatible with FreeBSD. In FreeBSD the sub-divisions are called partitions. Each one of the 4 max primary-partitions/slices can be made bootable. The first physical track of the allocated space of each primary-partition/slice has an initial sector (512 byte block) that is called the boot sector. If it contains boot up code the motherboard BIOS considers it to be bootable. Each physical hard drive in the PC has it's own MBR (Master Boot Record). The MBR is located in sector-0 of the first physical track on the hard drive. The standard MBR in Microsoft/Windows and FreeBSD defaults to booting the first primary-partition/slice allocated on the first hard drive cabled to the PC. There are MBR booting programs that you can load into the MBR on the first physical cabled hard drive to scan for other bootable primary-partitions/slices on this hard drive and any other hard drives cabled to the PC. It displays a menu giving you the option to choose which one you want to boot from. This gives you the ability to have more that one operating system installed on your PC at one time. ___ 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
ipfilter nat redirect udp packets
Have this nat rule rdr rl0 0.0.0.0/0 port 6355 - 10.0.10.3 port 6355 I can see in the log that tcp packets are being redirected but udp packets are not. Can not find any verbiage in man 5 0r 8 ipnat that states rdr rule only matches on tcp packets. I thought tcp/udp packets should be redirected? Can anyone clarify this? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Have not received emails for a few days now....
Mike Jeays mike.je...@rogers.com wrote: On December 16, 2009 01:03:21 pm Diego Montalvo wrote: Is there something wrong with the freebsd-questions@freebsd.org mailing list? perhaps I got booted accidentally. Cheers! Diego I have had nothing for a couple of days also, I was beginning to wonder what to do with my spare time at work! David ___ 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: Have not received emails for a few days now....
Lmao! If ur that bored lmk, I have PLENTY 4 u 2 do! - Original Message - From: owner-freebsd-questi...@freebsd.org owner-freebsd-questi...@freebsd.org To: mike.je...@rogers.com mike.je...@rogers.com; freebsd-questions@freebsd.org freebsd-questions@freebsd.org Sent: Wed Dec 16 17:40:11 2009 Subject: Re: Have not received emails for a few days now Mike Jeays mike.je...@rogers.com wrote: On December 16, 2009 01:03:21 pm Diego Montalvo wrote: Is there something wrong with the freebsd-questions@freebsd.org mailing list? perhaps I got booted accidentally. Cheers! Diego I have had nothing for a couple of days also, I was beginning to wonder what to do with my spare time at work! David ___ 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 font size=1 div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 1.0pt 0in' /div This email is intended to be reviewed by only the intended recipient and may contain information that is privileged and/or confidential. If you are not the intended recipient, you are hereby notified that any review, use, dissemination, disclosure or copying of this email and its attachments, if any, is strictly prohibited. If you have received this email in error, please immediately notify the sender by return email and delete this email from your system. /font ___ 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: question about xorg 7.4
On Wed, 16 Dec 2009, doug wrote: I have a IBM thinkpad T42p. xorg 7.4 is pretty much a disaster for me. First I wonder if anyone has gotten 7.4 to work on this or similar hardware. The system is 3+ years old when it was still IBM. My T42--no P--is the only system that the new Xorg has worked on completely from the start, including 3D acceleration! But it has a Radeon 7500, and yours might have fancier graphics. I have done this a time or two starting with the first version of KDE and FreeBSD 4.something. I believe I have tried all of the options in the handbook plus a couple of various from this list and google. So I was not going to add xdm and Xorg output, at first anyway. The one thing I have not done is upgrade the BIOS and am not sure that matters. I was/am afraid of breaking an otherwise great system. It runs xorg 7.3 and KDE 3 or 4 fine. I go to this point because I broke things trying to install firefox3 and got all tangled up in upgrading ports and thought I would give xorg 7.4 a try. I am running FreeBSD 7.2. Xorg was installed using pkg_add on a system without any ports. Upon hitting the xdm trap, I also installed that package. I would not attempt to install KDE or GNOME until xorg was working and twm works. All variations give me a black screen with the keyboard locked. startx, xdm and xorg all do the same. Does ctrl-alt-f1 switch to the console? If so, good news--it's working. You need to run dbus and hal as per the Handbook page. Or disable hal, also as per the Handbook page. I assume this is a hardware issue and hope someone found a way around it. It's possible, but hard to tell. If you can post your xorg.conf and Xorg.0.log, that would help. -Warren Block * Rapid City, South Dakota USA ___ 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: USBserial port convertor
On Wed, Dec 16, 2009 at 10:51:28AM -0500, stan wrote: I need to support 5 RS-232 streams with my FreeBSD 7.2 machine. I just purchased UTS-408A-S1 8 port adapter. When I plug it in, I get the following in dmesg: uhub3: vendor 0x0409 product 0x005a, class 9/0, rev 2.00/1.00, addr 2 on uhub1 uhub3: single transaction translator uhub3: 4 ports with 4 removable, self powered ucom0: FTDI FT232R USB UART, class 0/0, rev 2.00/6.00, addr 3 on uhub3 ucom1: FTDI FT232R USB UART, class 0/0, rev 2.00/6.00, addr 4 on uhub3 Looks like it works. :-) the ucom(4) driver attaches. Do I need to add a driver to my kernel? Right now I have the GENERIC one installed. No. The ucom(4) driver has already recognized them. What devices should I try? Try /dev/cuaU? and /dev/ttyU? See ucom(4) and comcontrol(1). Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgptBSGczbakf.pgp Description: PGP signature
Re: question about xorg 7.4
On Thu, 17 Dec 2009, Pieter de Goeje wrote: On Wednesday 16 December 2009 07:15:58 doug wrote: I have a IBM thinkpad T42p. xorg 7.4 is pretty much a disaster for me. First I wonder if anyone has gotten 7.4 to work on this or similar hardware. The system is 3+ years old when it was still IBM. I have done this a time or two starting with the first version of KDE and FreeBSD 4.something. I believe I have tried all of the options in the handbook plus a couple of various from this list and google. So I was not going to add xdm and Xorg output, at first anyway. The one thing I have not done is upgrade the BIOS and am not sure that matters. I was/am afraid of breaking an otherwise great system. It runs xorg 7.3 and KDE 3 or 4 fine. I go to this point because I broke things trying to install firefox3 and got all tangled up in upgrading ports and thought I would give xorg 7.4 a try. I am running FreeBSD 7.2. Xorg was installed using pkg_add on a system without any ports. Upon hitting the xdm trap, I also installed that package. All variations give me a black screen with the keyboard locked. startx, xdm and xorg all do the same. I assume this is a hardware issue and hope someone found a way around it. Thank you for any thoughts, tips, ideas, etc. Xorg defaults to a black screen instead of a checkerboard pattern these days. Keyboard and mouse input is handled by hald(8), so don't forget to enable and start it before starting Xorg. hald depends on dbus so that also needs to be enabled and started. Add the following to rc.conf: hald_enable=YES dbus_enable=YES Good luck, Pieter de Goeje Thanks for your reply. I tried all that and more. Installing xorg 7.4 from the 7.2-release iso worked with the last verision of my xorg.conf file which happened to be not using hal and dbus. _ Douglas Denault http://www.safeport.com d...@safeport.com Voice: 301-217-9220 Fax: 301-217-9277 ___ 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: is this booting info correct?
On Thu, Dec 17, 2009 at 07:33:58AM +0800, Fbsd1 wrote: Everything but the last couple of paragraphs are correct. Users with Microsoft/Windows knowledge of how a hard drive is configured may have a terminology issue with FreeBSD. Microsoft/Windows and FreeBSD use the word partition to mean different (but related) things. FreeBSD and Microsoft/Windows have primary-partitions, but they call them different things. FreeBSD calls the Microsoft/Windows primary-partition a slice. The number of hard drive primary-partitions/slices is determined by the motherboard BIOS (Basic input output system), not the operating system. Standard motherboard BIOS limits hard-drives to 4 main divisions Each of those are called primary-partitions in Microsoft/Windows terminology and slices in FreeBSD terminology. Each primary-partition/slice can be sub-divided into smaller chunks. In Microsoft/Windows, they are called extended-partitions. They are implemented very differently and are not compatible with FreeBSD. In FreeBSD the sub-divisions are called partitions. Each one of the 4 max primary-partitions/slices can be made bootable. The first physical track of the allocated space of each primary-partition/slice has an initial sector (512 byte block) that is called the boot sector. If it contains boot up code the motherboard BIOS considers it to be bootable. This is the '3rd' level (phase) of the boot process. The first being the BIOS, the second being the MBR and the third being the slice boot sector. Each physical hard drive in the PC has it's own MBR (Master Boot Record). The MBR is located in sector-0 of the first physical track on the hard drive. The standard MBR in Microsoft/Windows and FreeBSD defaults to booting the first primary-partition/slice allocated on the first hard drive cabled to the PC. Each drive has a sector 0. When you install FreeBSD you can write an MBR in to that sector 0. You can also install other (third party) MBRs in to that sector. There are MBR booting programs that you can load into the MBR on the first physical cabled hard drive to scan for other bootable primary-partitions/slices on this hard drive and any other hard drives cabled to the PC. It displays a menu giving you the option to choose which one you want to boot from. This gives you the ability to have more that one operating system installed on your PC at one time. The sector isn't the MBR. The code and table that gets written to that sector is the MBR.If you don't want to boot from the drive - eg just use it for data, you can ignore that sector and not write any MBR in to it. The MBR has a little table in which is marked which slice to continue the boot with. The FreeBSD MBR (and some others) sets that to be the current slice when a boot is done. So, the last slice to be booted is always the default boot the next time. You can manually change that with fdisk(8). Some people have wanted to have a fancier MBR than can fit in a single sector. Almost all systems nowdays use that 0 sector, but then just ignore the rest of the track that it is in. So, there are several wasted sectors following the MBR. Those people have made use of that space to install a more elaborate MBR, depending on that extra space never being used for anything else - which is a pretty good bet. In fact, I don't quite understand why people don't just go ahead and define the standard so that track is specified as available for MBR. The MBR is fairly basic and conforms to a fairly tight but primative system for finding and initiating boot sectors in slices/primary partitions.Because that part is almost all the same across most systems, most MBRs can boot most OSen on PCs if they want to. MS does not seem to want to, but FreeBSD and Linux can. But, the boot sector in each slice/primary partition is unique to the OS being booted. It has a common boot flag setup and a common place to jump to to begin execution, but the rest is OS specific. Basically, the BIOS does its thing and looks for an MBR in sector 0 of the drives in its boot list. The first one it finds, it loads in and transfers control to it. The MBR does a couple checks and looks for a bootable slice and which is flagged to be the default boot. It puts up a simple boot menu allowing you to choose. If you do not respond in time, it goes with the flag setting. The MBR then reads in the first (boot) sector of the slice and transfers control to it. That sector code knows how to find what it needs to finish the boot, load the kernel, etc and start up init which gets everything else going. The process has changed in detail, but not much in concept since the beginning of computer OSen. The reaason it is called booting is that especially in the old days, when some parts of the startup were keyed in by hand, it had the feeling of the system pulling itself up by its own bootstraps - an old and popular country saying. Anyway, you
Re: Up grading ports, Xorg et all
On Wed, 16 Dec 2009, d...@safeport.com wrote: I messed up a KDE 3.5.10 trying to install firefox3 so I thought I would attempt to upgrade using portupgrade and/or portmaster. After a lot of work I think I am back to if you use KDE the only way to upgrade is to start afresh. At this point I thought I would try Xorg 7.4. I did a pkg_delete -a and pkg_add -r xorg. This was a complete disaster. How, specifically? After trying all the configuration options, tips etc in the handbook, google et all, I decided my 3+ year old thinkpad was just not supported so I composed a can anyone help me email to questions. This went off into the ether through user error. While I was waiting for help I thought I would try installing Xorg from an iso image. The resulting install worked out of the box using the last variation of xorf.conf I had tried. I am left to assume that what I got from pkg_add does not fit together. The symptoms described in your earlier mail sound like it worked but was different from what you expected. Obviously my earlier attempts to get an xorg.conf file worked fine. The code did not. As a thought to the Xorg, I do not think the unbundling makes things more stable. Xfree86 was bad enough (so I thought) with its couple of dozen (or so) components. Starting from scratch I now have 204 ports and two versions of python just to run twm. Given that some number of the 204 component are under active development using pkg_add seems out of the question. The second version of python came in because I could not find xdm in the 7.2-release disk1 iso so I did a pkg_add on xdm. This sounds like you are mixing old and new packages. portupgrade (and probably also portmaster) can use packages for you. -Warren Block * Rapid City, South Dakota USA ___ 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: Have not received emails for a few days now....
Gary Gatten ggat...@waddell.com wrote: Lmao! If ur that bored lmk, I have PLENTY 4 u 2 do! haha, I have plenty to do... although I am tempted to swap! - Original Message - From: owner-freebsd-questi...@freebsd.org owner-freebsd-questi...@freebsd.org To: mike.je...@rogers.com mike.je...@rogers.com; freebsd-questions@freebsd.org freebsd-questions@freebsd.org Sent: Wed Dec 16 17:40:11 2009 Subject: Re: Have not received emails for a few days now Mike Jeays mike.je...@rogers.com wrote: On December 16, 2009 01:03:21 pm Diego Montalvo wrote: Is there something wrong with the freebsd-questions@freebsd.org mailing list? perhaps I got booted accidentally. Cheers! Diego I have had nothing for a couple of days also, I was beginning to wonder what to do with my spare time at work! David ___ 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: question about xorg 7.4
On Wed, 16 Dec 2009, Warren Block wrote: On Wed, 16 Dec 2009, doug wrote: I have a IBM thinkpad T42p. xorg 7.4 is pretty much a disaster for me. First I wonder if anyone has gotten 7.4 to work on this or similar hardware. The system is 3+ years old when it was still IBM. My T42--no P--is the only system that the new Xorg has worked on completely from the start, including 3D acceleration! But it has a Radeon 7500, and yours might have fancier graphics. I have done this a time or two starting with the first version of KDE and FreeBSD 4.something. I believe I have tried all of the options in the handbook plus a couple of various from this list and google. So I was not going to add xdm and Xorg output, at first anyway. The one thing I have not done is upgrade the BIOS and am not sure that matters. I was/am afraid of breaking an otherwise great system. It runs xorg 7.3 and KDE 3 or 4 fine. I go to this point because I broke things trying to install firefox3 and got all tangled up in upgrading ports and thought I would give xorg 7.4 a try. I am running FreeBSD 7.2. Xorg was installed using pkg_add on a system without any ports. Upon hitting the xdm trap, I also installed that package. I would not attempt to install KDE or GNOME until xorg was working and twm works. All variations give me a black screen with the keyboard locked. startx, xdm and xorg all do the same. Does ctrl-alt-f1 switch to the console? If so, good news--it's working. You need to run dbus and hal as per the Handbook page. Or disable hal, also as per the Handbook page. I assume this is a hardware issue and hope someone found a way around it. It's possible, but hard to tell. If you can post your xorg.conf and Xorg.0.log, that would help. -Warren Block * Rapid City, South Dakota USA I appreciate your input. With the installation from pkg_add, the keyboard was locked. Power off was the only relief. I tried with and without hal/dbus, I changed the Driver to ati because that worked in an earlier of xorg, I commented out dri because I (mistakenly) thought that gave an error. What worked was installing xorg from the 7.2-release iso. Now what I would like to do is get rid of the black background. I actually like twm and use it when upgrading kde. Thank you for your offer to review Xorg.0.log. Unfortunately the current system only keeps two levels. My failures were long gone before questions was restored to health. Doug _ Douglas Denault http://www.safeport.com d...@safeport.com Voice: 301-217-9220 Fax: 301-217-9277 ___ 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: sed -f Script Syntax
On Wed, 16 Dec 2009, Martin McCormick wrote: If you have a sed script that is executable as in the first line starts with #! /usr/bin/sed -f and the following lines are like: /this repetitive line/d /and another repetitive line to go/d This all works great. You just make the file executable and use it as a filter if you want to remove any instance of those lines in text. How does one embed a command in this filter to make sed understand an extended or modern regular expression like: /part 1[[:space:]]text\/html[[:space:]]/d This is normally the -e flag but I haven't figured out how to put it in the script. I would like to either use it to make that one line show up as an extended regular expression or make sed run the entire script in the -e mode. sed(1) says it should be -E. Looks like it will only work on the whole script. -Warren Block * Rapid City, South Dakota USA ___ 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: Up grading ports, Xorg et all
On Wed, 16 Dec 2009, Warren Block wrote: On Wed, 16 Dec 2009, d...@safeport.com wrote: I messed up a KDE 3.5.10 trying to install firefox3 so I thought I would attempt to upgrade using portupgrade and/or portmaster. After a lot of work I think I am back to if you use KDE the only way to upgrade is to start afresh. At this point I thought I would try Xorg 7.4. I did a pkg_delete -a and pkg_add -r xorg. This was a complete disaster. How, specifically? The keyboard was locked only the power key worked. As in my earlier response I tried as many variation of the option as indicated by the handbook and my imagination. It is probably true that xorg worked albeit without the keyboard. Neither startx or xdm acted differently. E.g, I got a black screen and a locked system. After trying all the configuration options, tips etc in the handbook, google et all, I decided my 3+ year old thinkpad was just not supported so I composed a can anyone help me email to questions. This went off into the ether through user error. While I was waiting for help I thought I would try installing Xorg from an iso image. The resulting install worked out of the box using the last variation of xorf.conf I had tried. I am left to assume that what I got from pkg_add does not fit together. The symptoms described in your earlier mail sound like it worked but was different from what you expected. I do not think so because after installing from the iso, startx and xdm worked with the last version of my xorg.conf file. Obviously my earlier attempts to get an xorg.conf file worked fine. The code did not. As a thought to the Xorg, I do not think the unbundling makes things more stable. Xfree86 was bad enough (so I thought) with its couple of dozen (or so) components. Starting from scratch I now have 204 ports and two versions of python just to run twm. Given that some number of the 204 component are under active development using pkg_add seems out of the question. The second version of python came in because I could not find xdm in the 7.2-release disk1 iso so I did a pkg_add on xdm. This sounds like you are mixing old and new packages. portupgrade (and probably also portmaster) can use packages for you. Maybe. But if I start with a system with no ports and do a pkg_add, I do not see how I am mixing old and new. This was certainly true before I deleted everything but I was trying only to upgrade firefox2 -- firefox3 on xorg 7.3 using portmaster and then portupgrade. When that did not work (and I have no issues with that) I delete all ports and started with xorg 7.4. I see no other conclusion other than one (or more) of the 204 ports installed by pkg_add was too old (or new). _ Douglas Denault http://www.safeport.com d...@safeport.com Voice: 301-217-9220 Fax: 301-217-9277 ___ 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: How to apply a patch for Broadcom 5715S
On Wed, 16 Dec 2009, Joe S wrote: I have the same problem as reported in this bug: http://www.freebsd.org/cgi/query-pr.cgi?pr=122551 Someone attached a patch to the bug that resolves the problem. I don't know how to apply the patch. Can someone please show me how? Okay, but realize this is a potentially dangerous operation. Read the man page for patch(1) and the Handbook section on kernel configuration. Also, that patch is from a user and may not be of the same quality as if it were officially part of the FreeBSD source tree. That said, download the patch. It's called patch1.diff. The first three lines show which file will be patched: sys/dev/bge/if_bgereg.h On a normal FreeBSD system, system source file paths are relative to /usr/src. So, as root: cd /usr/src patch patch1.diff You should see messages about patch hunks succeeding. If there were no errors, you can build from the now-patched source. This patch is to an Ethernet driver, so you probably only need to rebuild the kernel. See the Handbook for custom kernel building and installing: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html If you don't have a custom kernel, you don't need the KERNCONF= entries, or can use KERNCONF=GENERIC. Finally, reboot and hope it works. -Warren Block * Rapid City, South Dakota USA ___ 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: Device not configured
On Wed, 16 Dec 2009, David Naylor wrote: I booted into single user mode (running FreeBSD 8 RC2) and did: # dd if=/dev/ad8 of=/dev/ad8 bs=1024k That command copies the hard drive... over itself. What were you trying to do? After waiting a few hours the command completed without problem (ad8 is the HDD that has FreeBSD). After that I got the following: # reboot reboot: device not configured # ls vnode_pager_getpages: I/O read error ls: device not configured Not good. Maybe trying to swap back in from swap that was just overwritten? Pressing the boxes power button results in the above vnode message to spam the screen. The only way to reset the system was to do a hard reset (root was ro :-) ). Did it come back up? Is this expected behaviour or something wrong with the HDD? Not expected, exactly, but not surprising. The hardware should be fine. I have been having issues with VirtualBox where doing IO (network and HDD) causes DMA problems resulting in the system panicing and rebooting. Could this be related? That sounds like a separate problem. -Warren Block * Rapid City, South Dakota USA ___ 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: APC Smartups 1500va sua1500
On Wed, Dec 16, 2009 at 11:06:51PM +0200, Manolis Kiagias wrote: On 15/12/2009 4:58 ??.??., Gary Kline wrote: Guys, A post I send yesterday never showed up, so I'll ask again with the following question: Do we have a driver for the APC SmartUPS 1500VA #sUA1500? gary Use sysutils/apcupsd Works great with all APC products I've tried. Great, the list is back! Okay, well, very-soon, I'll need to plug in my watt-meter to see how much juice my server, firewall, and maybe one desktop take. Guessing is less than 500w. Is there a tutorial for newbie on how to use this beast? Optimally, I would like the UPS to run for a few minutes, then instruct that things be shutdown -h 120 (say). That is easy to write; difficult to program. thanks, gary -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 7.79a release of Jottings: http://jottings.thought.org/index.php ___ 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: question about xorg 7.4
On Wed, 16 Dec 2009, d...@safeport.com wrote: All variations give me a black screen with the keyboard locked. startx, xdm and xorg all do the same. Does ctrl-alt-f1 switch to the console? If so, good news--it's working. You need to run dbus and hal as per the Handbook page. Or disable hal, also as per the Handbook page. I assume this is a hardware issue and hope someone found a way around it. It's possible, but hard to tell. If you can post your xorg.conf and Xorg.0.log, that would help. I appreciate your input. With the installation from pkg_add, the keyboard was locked. Power off was the only relief. That's why I asked about ctrl-alt-f1. If X is working even without a keyboard driver, that should still switch to the console. I tried with and without hal/dbus, I changed the Driver to ati because that worked in an earlier of xorg, What are you using for a driver now? I commented out dri because I (mistakenly) thought that gave an error. What worked was installing xorg from the 7.2-release iso. Which is going back to the older version of xorg. Now what I would like to do is get rid of the black background. See xsetroot(1). I actually like twm and use it when upgrading kde. Thank you for your offer to review Xorg.0.log. Unfortunately the current system only keeps two levels. My failures were long gone before questions was restored to health. When you want to try it again, I think we can make it work. -Warren Block * Rapid City, South Dakota USA ___ 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
Can display be shared through VNC using xorg vnc module?
I read here: http://en.gentoo-wiki.com/wiki/X11VNC that in Gentoo xorg can load vnc module and it will make it also a vnc server. But I can't find any relevant ports in FreeBSD port tree. I only found net/x11vnc which is a standalone program that connects to xorg server and serves as it's vnc server. Does this meant that vnc module isn't supported on FreeBSD? Or it was replaced by x11vnc? Yuri ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Transfer zfs pool to new hardware
All, My machine had a failing motherboard so it was decided to put the drives of the failed machine in a different machine to be able to continue service. The old server had 2 drives in a mirror setup (gmirror) and these were recovered fine in the new server, these disks contain the OS so everything is up and running again. In addition to the mirrored drives there was a zfs (raidz) volume to contain bulk data, this pool was built using 4 750G drives (all the same disks) but this hasn't come up properly. I'm not sure if the disks were put in the server in the same order and the device naming in the new machine has changed also. One thing that stands out (for me) is that the /dev/ad12 comes up twice in the 'zpool status' output (see below), I'm not sure if this is expected.. Old situation: zfs raidz containing /dev/ad10, /dev/ad12, /dev/ad14 and /dev/ad16 (working fine) In the new machine /dev/ad16 doesn't exist and the drives are numbered different: /dev/ad8, /dev/ad10, /dev/ad12 and /dev/ad14 My question is; can the data on this zfs pool be recovered? Some more detailed information is below, but I'd be happy to provide additional information if needed. Current machine specs: FreeBSD flappie.debank.tv 7.2-STABLE FreeBSD 7.2-STABLE #8: Mon Dec 7 00:45:32 CET 2009 r...@flappie.debank.tv:/usr/obj/usr/src/sys/FLAPPIE amd64 Dual core AMD processor, 6G memory, Tyan motherboard From the dmesg on the new box (all disk are recognized): r...@flappie:...home/rob#dmesg | grep ad[0-9] ad4: 286188MB Maxtor 6L300S0 BANC1G10 at ata2-master SATA150 ad6: 286188MB Maxtor 6L300S0 BANC1G10 at ata3-master SATA150 ad8: 715404MB SAMSUNG HD753LJ 1AA01108 at ata4-master SATA300 ad10: 715404MB SAMSUNG HD753LJ 1AA01108 at ata5-master SATA300 ad12: 715404MB SAMSUNG HD753LJ 1AA01108 at ata6-master SATA300 ad14: 715404MB SAMSUNG HD753LJ 1AA01108 at ata7-master SATA300 Some more output from the various zfs commands: r...@flappie:...home/rob#zpool list NAME SIZE USED AVAILCAP HEALTH ALTROOT data - - - - FAULTED - r...@flappie:...home/rob#zpool status data pool: data state: UNAVAIL status: One or more devices could not be used because the label is missing or invalid. There are insufficient replicas for the pool to continue functioning. action: Destroy and re-create the pool from a backup source. see: http://www.sun.com/msg/ZFS-8000-5E scrub: none requested config: NAMESTATE READ WRITE CKSUM dataUNAVAIL 0 0 0 insufficient replicas raidz1UNAVAIL 0 0 0 insufficient replicas ad10FAULTED 0 0 0 corrupted data ad12FAULTED 0 0 0 corrupted data ad14FAULTED 0 0 0 corrupted data ad12ONLINE 0 0 0 r...@flappie:...home/rob#zdb data version=13 name='data' state=0 txg=4552247 pool_guid=10110325244913303479 hostid=376236222 hostname='unset' vdev_tree type='root' id=0 guid=10110325244913303479 children[0] type='raidz' id=0 guid=15844282688259604426 nparity=1 metaslab_array=14 metaslab_shift=34 ashift=9 asize=3000606130176 is_log=0 children[0] type='disk' id=0 guid=12803254643974387344 path='/dev/ad10' devid='ad:S13UJ1KQ236306' whole_disk=0 children[1] type='disk' id=1 guid=9558028561673012056 path='/dev/ad12' devid='ad:S13UJ1KQ236305' whole_disk=0 children[2] type='disk' id=2 guid=12771778087909498297 path='/dev/ad14' devid='ad:S13UJ1KQ236308' whole_disk=0 children[3] type='disk' id=3 guid=9647122164658652650 path='/dev/ad16' devid='ad:S13UJ1KQ236309' whole_disk=0 Thanks for your help, Rob Evers ***deze e-mail is gescand door Onlinespamfilter.nl*** ___ 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: sed -f Script Syntax
Warren Block writes: sed(1) says it should be -E. Looks like it will only work on the whole script. Many thanks. I have had -e work many times if you call sed from either the command line or a shell script as in sed -f somefile with somefile being 1 or more lines of sed commands. When the file itself is the script, the first line actually calls sed from within the file. I was just wondering if the sed used in freeBSD had a way to let one put the -e flag in there also. -ef or -fe doesn't cut it: sed: 1: f : invalid command code f That was with sed -ef. If you try sed -fe, it bombs with the same complaint only now it doesn't understand the e so there can apparently be only one flag after the -. #! /usr/bin/sed -f -e doesn't work either. Someone wrote me off list chiding me that this is not a freebsd question. Well, I am running this under freebsd and there are sometimes slight differences between bsd-style commands and other flavors of Unix such as Linux. They are not numerous, but try date -r1234567890 under freebsd. You get: Fri Feb 13 17:31:30 CST 2009 Try that same command under Linux: date: 1234567890: No such file or directory That date command wants the string in a file to produce similar results. ping -o under freebsd is incredibly useful when you want to know when an interface comes up. Under Linux and earlier versions of FreeBSD, it does nothing but tell you it didn't understand -o. Again, thank you for answering. Martin McCormick ___ 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
Sun Grid Engine: occasional job submission errors
We are using Freebsd 8.0 / sge-6.2.2.1_1on a computing cluster (http://awarnach.mathstat.dal.ca/). It's been working well, however we see the error below when a lot of jobs are submitted in a short time (e.g. in a loop on the command line) using qsub. error: commlib error: can't connect to service (Address already in use) Unable to run job: failed sending gdi request. Exiting. Has anyone seen this problem before and found a solution? Cheers, Joey Mingrone ___ 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
portupgrade failure
Hello all, I've been having this problem for a couple of months now, but I just recently decided to try to fix it. I'm running FreeBSD 6.4, and if I try to use portupgrade to upgrade something, I get an error (seems to be the same for other ports): # portupgrade -R squid [Gathering depends for www/squid30 ./usr/local/sbin/portupgrade:878:in `get_all_depends': private method `scan' called for #Set: {} (NoMethodError) from /usr/local/sbin/portupgrade:871:in `get_all_depends' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/lib/ruby/1.8/set.rb:195:in `each_key' from /usr/local/lib/ruby/1.8/set.rb:195:in `each' from /usr/local/sbin/portupgrade:870:in `get_all_depends' from /usr/local/sbin/portupgrade:633:in `main' from /usr/local/sbin/portupgrade:607:in `each' from /usr/local/sbin/portupgrade:607:in `main' from /usr/local/sbin/portupgrade:582:in `catch' from /usr/local/sbin/portupgrade:582:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:1310:in `call' from /usr/local/lib/ruby/1.8/optparse.rb:1310:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1306:in `catch' from /usr/local/lib/ruby/1.8/optparse.rb:1306:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1254:in `catch' from /usr/local/lib/ruby/1.8/optparse.rb:1254:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1248:in `order!' from /usr/local/lib/ruby/1.8/optparse.rb:1241:in `order' from /usr/local/sbin/portupgrade:559:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:791:in `initialize' from /usr/local/sbin/portupgrade:231:in `new' from /usr/local/sbin/portupgrade:231:in `main' from /usr/local/sbin/portupgrade:2213 The only other symptoms I can identify right now are related to the following entries in my crontab: 0 2 * * 6 /usr/local/sbin/portsclean -DD 0 2 * * 5 /usr/local/sbin/portsclean -C The e-mailed results simply say env: ruby: No such file or directory. However, these commands seem to run fine from an interactive shell (while logged in). I also receive the same message at the end of the output for /usr/sbin/portsnap cron update /usr/local/sbin/portsdb -u /dev/null run from cron: Removing old files and directories... done. Extracting new files: /usr/ports/MOVED /usr/ports/Mk/bsd.sites.mk /usr/ports/UPDATING ...lines deleted... /usr/ports/x11/9menu/ /usr/ports/x11/evilvte/ /usr/ports/x11/nvidia-driver/ Building new INDEX files... done. env: ruby: No such file or directory Any help would be greatly appreciated. Thanks, Kevin ___ 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: I am not understanding something about pf
On 11 December 2009, at 19:30, Doug Hardie wrote: I am running 7.2-Stable with pf. I have the following pf.conf: no rdr inet proto tcp from spamd-white-local to any port smtp no rdr inet proto tcp from spamd-white to any port smtp rdr pass inet proto tcp from any to any port smtp - 127.0.0.1 port spamd This is the basic spamd configuration with an extra table spamd-white-local which lists hosts to go directly to the mail server. Everything works properly. Hosts not in either spamd table go to spamd and those in either spamd table go directly to the mail server. However, the pf statistics don't seem to make sense to me. I always see the following: no rdr inet proto tcp from spamd-white-local to any port = smtp [ Evaluations: 1193433 Packets: 0 Bytes: 0 States: 0 ] [ Inserted: uid 0 pid 73310 ] no rdr inet proto tcp from spamd-white to any port = smtp [ Evaluations: 110124Packets: 0 Bytes: 0 States: 0 ] [ Inserted: uid 0 pid 73310 ] rdr pass inet proto tcp from any to any port = smtp - 127.0.0.1 port 8025 [ Evaluations: 110124Packets: 63Bytes: 3516States: 1 ] [ Inserted: uid 0 pid 73310 ] Where the first two entries never show any Packets and the third shows everything. Does no rdr work differently than rdr with the statistics? I understood from the Book of PF that the rules were evaluated such that the last matching rule is used. Hence I think that with the above conf file the spamd-white-local table would never get used as the connection will match one of the 2 following rules. So I ran another test by putting the first rule last: no rdr inet proto tcp from spamd-white to any port smtp rdr pass inet proto tcp from any to any port smtp - 127.0.0.1 port spamd no rdr inet proto tcp from spamd-white-local to any port smtp Now entries in spamd-white-local are ignored and, the statistics are quite different: no rdr inet proto tcp from spamd-white to any port = smtp [ Evaluations: 79Packets: 0 Bytes: 0 States: 0 ] [ Inserted: uid 0 pid 86983 ] rdr pass inet proto tcp from any to any port = smtp - 127.0.0.1 port 8025 [ Evaluations: 52Packets: 25Bytes: 1395States: 1 ] [ Inserted: uid 0 pid 86983 ] no rdr inet proto tcp from spamd-white-local to any port = smtp [ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] [ Inserted: uid 0 pid 86983 ] Now the last rule says its never evaluated. This indicates that its the first rule that matches that is used rather than the last. However, why are there never any packets counted in the no rdr rules? It appears that my reply with the full pf.conf didn't make the list. Am trying again. MAILHOSTS = {zoon.lafn.org} table spamd persist table spamd-white persist table spamd-white-local persist file /etc/mail/whitelist no rdr on { lo0, lo1 } from any to any no rdr inet proto tcp from spamd-white-local to any port smtp no rdr inet proto tcp from spamd-white to any port smtp rdr pass inet proto tcp from any to any port smtp - 127.0.0.1 port spamd pass in log inet proto tcp to $MAILHOSTS port smtp keep state ___ 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: sed -f Script Syntax
On Wed, 16 Dec 2009, Martin McCormick wrote: Warren Block writes: sed(1) says it should be -E. Looks like it will only work on the whole script. Many thanks. I have had -e work many times But -e does not mean what you think here: -E Interpret regular expressions as extended (modern) regular expressions rather than basic regular expressions (BREs). The re_format(7) manual page fully describes both formats. -e command Append the editing commands specified by the command argument to the list of commands. So sed -E means interpret regular expressions as extended and -e is followed by a command: sed -E -e 's/a/b/' -e 's/x/y/' if you call sed from either the command line or a shell script as in sed -f somefile with somefile being 1 or more lines of sed commands. When the file itself is the script, the first line actually calls sed from within the file. I'm not clear on why you want to do it that way instead of simply calling sed from a shell script, but sed -Ef seems to do what you want. -Warren Block * Rapid City, South Dakota USA ___ 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: portupgrade failure
On Wed, 16 Dec 2009, Kevin wrote: [...] The only other symptoms I can identify right now are related to the following entries in my crontab: 0 2 * * 6 /usr/local/sbin/portsclean -DD 0 2 * * 5 /usr/local/sbin/portsclean -C The e-mailed results simply say env: ruby: No such file or directory. However, these commands seem to run fine from an interactive shell (while logged in). Paths. When there's a problem with cron it's (almost) always paths. portsclean is a ruby script that starts with this line: #!/usr/bin/env ruby That should find and run ruby. Your /etc/crontab should have these lines: SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin I also receive the same message at the end of the output for /usr/sbin/portsnap cron update /usr/local/sbin/portsdb -u /dev/null run from cron: portsdb is another ruby script. Same deal; cron running env can't find ruby. -Warren Block * Rapid City, South Dakota USA ___ 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: portupgrade failure
Hi, On Wed, Dec 16, 2009 at 11:19 PM, Warren Block wbl...@wonkity.com wrote: On Wed, 16 Dec 2009, Kevin wrote: [...] The only other symptoms I can identify right now are related to the following entries in my crontab: 0 2 * * 6 /usr/local/sbin/portsclean -DD 0 2 * * 5 /usr/local/sbin/portsclean -C The e-mailed results simply say env: ruby: No such file or directory. However, these commands seem to run fine from an interactive shell (while logged in). Paths. When there's a problem with cron it's (almost) always paths. portsclean is a ruby script that starts with this line: Interestingly, my homemade port rebuild script is recently broken with similar symptoms, sans the dependencies on ruby. It's a very simple, low-level for i in `cat list` type script which recently has begun to fail repeatedly on gettext and autoconf dependencies on multiple machines, when I specifically have them set to be upon the first ports to build. More probably unrelated, but I thought I'd throw this out there just in case. Regards, -- Glen Barber ___ 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: portupgrade failure
Glen Barber wrote: Hi, On Wed, Dec 16, 2009 at 11:19 PM, Warren Block wbl...@wonkity.com wrote: On Wed, 16 Dec 2009, Kevin wrote: [...] The only other symptoms I can identify right now are related to the following entries in my crontab: 0 2 * * 6 /usr/local/sbin/portsclean -DD 0 2 * * 5 /usr/local/sbin/portsclean -C The e-mailed results simply say env: ruby: No such file or directory. However, these commands seem to run fine from an interactive shell (while logged in). Paths. When there's a problem with cron it's (almost) always paths. portsclean is a ruby script that starts with this line: Interestingly, my homemade port rebuild script is recently broken with similar symptoms, sans the dependencies on ruby. It's a very simple, low-level for i in `cat list` type script which recently has begun to fail repeatedly on gettext and autoconf dependencies on multiple machines, when I specifically have them set to be upon the first ports to build. More probably unrelated, but I thought I'd throw this out there just in case. Regards, I don't know if it's of any help, but I had a *somewhat* similar experience, I don't know if this will help, but I'll give it to you for what it's worth: I found in my environment, I had REINPLACE_CMD defined (seemed to be a good value), so (in my shell, tcsh) I removed the REINPLACE_CMD setting with unsetenv, and the problem disappeared. Use either env or printenv to scan your environment for anything to do with sed (as REINPLACE_CMD does) and try removing it. Oh, BTW, I can't seem to get the -l logfile option to portupgrade to work, any help on that would also be appreciated. I didn't use -L 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: portupgrade failure
On Wed, 16 Dec 2009, Warren Block wrote: On Wed, 16 Dec 2009, Kevin wrote: [...] The only other symptoms I can identify right now are related to the following entries in my crontab: 0 2 * * 6 /usr/local/sbin/portsclean -DD 0 2 * * 5 /usr/local/sbin/portsclean -C The e-mailed results simply say env: ruby: No such file or directory. However, these commands seem to run fine from an interactive shell (while logged in). Paths. When there's a problem with cron it's (almost) always paths. portsclean is a ruby script that starts with this line: #!/usr/bin/env ruby That should find and run ruby. Your /etc/crontab should have these lines: SHELL=/bin/sh PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin And now that I tried a test with these manual paths, the same thing happens: # setenv PATH /etc:/bin:/sbin:/usr/bin:/usr/sbin # env ruby env: ruby: No such file or directory Doh. ruby and ruby18 are in /usr/local/bin. So it's working as designed. A reasonable way to fix this is to add :/usr/local/bin to the crontab path, but that may not be the right way to fix it. -Warren Block * Rapid City, South Dakota USA ___ 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: Native PDF viewer
On Wed, 16 Dec 2009 04:04:23 +0100, Rolf Nielsen listrea...@lazlarlyricon.com wrote: Hi all, Since I don't have Linux compat layer activated, and I have no need for it, I'd like to ask if anyone can suggest a native PDF viewer (I'm not fond of the idea of installing a compat layer for just one application). There are gv (which is limited in some way, fancy PDF files) and xpdf. I can recommend xpdf -fullscreen file especially for use in presentations. In both programs, keyboard support (important for comfortably browsing a document) is good. Of course, KDE and Gnome provide their own PDF viewers, but since you don't want to use the Linux ABI just for a PDF viewer program, you surely won't want to install KDE or Gnome just for the same purpose. :-) But I have to tell you that for some very special PDF files, especially those that use nonstandard stuff, and for those that process input fields, the acroread port is still on my system as fallback solution. -- 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: Simple Monitoring Of TCP/IP Question
On Wed, 16 Dec 2009 15:21:38 -0700, Michael Goodell mggl...@pdc4u.com wrote: Looking for a *simple* protocol monitoring solution to test connectivity of various facets of a system, i.e. HTTP / HTTPS / POP3 / SMTP etc. I was always a fan of Wireshark (ex Etherial). It's lightweight (in comparison to e. g. Nagios), GUI-based and very comfortable. -- 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: is this booting info correct?
On Thu, 17 Dec 2009 07:33:58 +0800, Fbsd1 fb...@a1poweruser.com wrote: Users with Microsoft/Windows knowledge of how a hard drive is configured may have a terminology issue with FreeBSD. Microsoft/Windows and FreeBSD use the word partition to mean different (but related) things. FreeBSD and Microsoft/Windows have primary-partitions, but they call them different things. FreeBSD calls the Microsoft/Windows primary-partition a slice. FreeBSD's slice is a DOS primary partition. FreeBSD's partition is comparable (but not equal to) a logical volume inside a DOS extended partition. The number of hard drive primary-partitions/slices is determined by the motherboard BIOS (Basic input output system), not the operating system. Standard motherboard BIOS limits hard-drives to 4 main divisions The limitation to 4 slices is due to DOS limitations that are still present for legacy in the PC sector. Each of those are called primary-partitions in Microsoft/Windows terminology and slices in FreeBSD terminology. Yes. Each primary-partition/slice can be sub-divided into smaller chunks. In Microsoft/Windows, they are called extended-partitions. No. As far as I understood and listed before, a DOS primary partition cannot be subdivided. That's why the DOS extended partition has been invented which allows subdivion by the means of logical volumes. A DOS extended partition takes the place of a DOS primary partition. They are implemented very differently and are not compatible with FreeBSD. I've not had problems accessing them so far. In FreeBSD the sub-divisions are called partitions. But only the subdivisions of a FreeBSD slice are called this way. Each one of the 4 max primary-partitions/slices can be made bootable. But not all at the same time. :-) The first physical track of the allocated space of each primary-partition/slice has an initial sector (512 byte block) that is called the boot sector. If it contains boot up code the motherboard BIOS considers it to be bootable. Yes. Each physical hard drive in the PC has it's own MBR (Master Boot Record). The MBR is located in sector-0 of the first physical track on the hard drive. The standard MBR in Microsoft/Windows and FreeBSD defaults to booting the first primary-partition/slice allocated on the first hard drive cabled to the PC. No. The MBR usually branches to the first slice it finds that has the bootable flag set. It doesn't have to be the first one on the disk. In case of FreeBSD, feel free to read man boot which gives a good introduction to the topic. There are MBR booting programs that you can load into the MBR on the first physical cabled hard drive to scan for other bootable primary-partitions/slices on this hard drive and any other hard drives cabled to the PC. It displays a menu giving you the option to choose which one you want to boot from. This gives you the ability to have more that one operating system installed on your PC at one time. Exact. -- 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: SUIDDIR on ZFS?
On Tue, Dec 15, 2009 at 7:52 PM, Emil Smolenski am...@raisa.eu.org wrote: On Tue, 15 Dec 2009 05:36:55 +0100, Ben Schumacher m...@benschumacher.com wrote: At any rate, I've been considering switching this to a ZFS RAIDZ now that FreeBSD 8 is released and it seems that folks think it's stable, but I'm curious if it can provide the SUIDDIR functionality I'm currently using. Yes, it can. From my point of view it works the same way as on UFS. Emil- Thanks for your response... I don't know that that's quite right. SUIDDIR has to be enabled in the kernel as an option to enable the functionality on UFS and my tests on ZFS haven't proved fruitful: $ sudo zfs create zroot/shared $ sudo zfs umount zroot/shared $ sudo zfs mount -o suiddir zroot/shared $ sudo chown sats:office /zroot/shared $ sudo chmod 4770 /zroot/shared $ touch /zroot/shared/file $ ls -al /zroot/shared/ total 4 drwsrwx--- 2 sats office 3 Dec 16 23:26 ./ drwxr-xr-x 4 root wheel 9 Dec 16 23:26 ../ -rw-r--r-- 1 ben office 0 Dec 16 23:26 file With a drive mounted with the 'suiddir' option (and the kernel option enabled) the above works with UFS. I was curious if maybe there was an option in 'zfs set' that I was missing. Any clues would be appreciated. Ben ___ 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: 8.0: OpenSSL stat()'s NLS 500+ times causing extreme system load
On Tuesday 15 December 2009 23:24:16 Linda Messerschmidt wrote: On Tue, Dec 15, 2009 at 12:53 PM, Dan Nelson dnel...@allantgroup.com wrote: It's defined in src/lib/libc/Makefile, so you should be able to remove that line, rebuild libc and reinstall, and see whether your performance issue goes away. I tried that and as you predicted, all the bogus stat calls went away. Unfortunately the performance issue did not. :( Back to the drawing board for me! Upon further inspection, it seems as though for each check, Nagios spawns a process that spawns a process that spawns a process that runs the check. I did ktrace -i -t w -p (nagiospid) on Nagios for 30 seconds and the ktrace output contained records from 2365 different processes spawned in that 30 seconds. During that time, I would expect about 800 checks to have run, so it does seem like it's right at 3 processes per check. I just don't think the system can keep up with all that fork()ing without going all out; it's just a limit of the Nagios plugin architecture. You've probably already spotted this, but this behaviour is documented in largeinstallationtweaks.html: ``Normally Nagios will fork() twice when it executes host and service checks. This is done to (1) ensure a high level of resistance against plugins that go awry and segfault and (2) make the OS deal with cleaning up the grandchild process once it exits. The extra fork() is not really necessary, so it is skipped when you enable this option. As a result, Nagios will itself clean up child processes that exit (instead of leaving that job to the OS). This feature should result in significant load savings on your Nagios installation.'' It can also be enabled separately in nagios's main config file - child_processes_fork_twice is the option to look for. Jonathan ___ 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: black hole test
On Wednesday 16 December 2009 22:05:06 Peter Wemm wrote: Daignostic message to trace mailing list processing, please ignore. You have heard of freebsd-test@ , haven't 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: Re-compiling PHP changes server responsiveness
Ian Fitzgerald wrote: Recently upgraded (fresh install) FBSD 8, including MySql, Apache22, phpMyAdmin, KDE4 Gnome2.26 from DVD iso. Running ok as test server, but unusual error from added, complex CMS prompted me to re-install PHP5 and PHP5-extensions as pkg_add -r (using ports files from iso), then with no success, compiling them (using ports files from iso), with slightly different make config. Now server does not respond, either to 'localhost' request on its browser, or specific address request from another machine on local network. I assume re-compiling PHP would not clobber hosts or resolv.conf (they look ok). I get: [warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter, and no new errors in /var/log/httpd-error.log four times Tried adding accf_http=YES to /boot/loader.conf, and re-booting of course. This is just a warning message and doesn't stop apache working or not. Enabling accf_http should give you a bit of a performance boost under heavy load and help you withstand certain types of DoS attack, but it's not required. Tried refreshing ports (inital re-compile attempt failed with make complaining that postgres-client had been marked invalid - when will someone fixit?), and re-compiling apache22 = no change. ps -auxc: no httpd. FF3 under Gnome on the machine fetches external pages, of course (using router DNS). What else should I look at? Try restarting httpd from the command line: /usr/local/etc/rc.d/apache22 restart This will run a configtest and then try and start up apache. Then check that apache is still running: /usr/local/etc/rc.d/apache22 status If apache has mysteriously disappeared and there are no messages in log files, then it means apache crashed during the startup process soon after daemonising. That's pretty diagnostic for loading a dynamic module that disagrees with it. At a guess, and given that you've reinstalled all your php modules, I think you may be being hit by the php module load order problem. In that case, running php from the command line will probably also segv on you. This is something that has had quite a lot of attention on this list, but there isn't a really good solution yet, other than manually reordering the entries in /usr/local/etc/php/extensions.ini Also, if you're running eAccelerator, make sure you recompile it at the same time you upgrade the main lang/php5 port: eAccelerator will cause Apache to crash if you try and run it against a different version of PHP than it was originally compiled for. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW signature.asc Description: OpenPGP digital signature