Re:problem with date, dump or restore
Hi list, with freebsd 7.0, after a probably successful dump : #dump -0Lauf ./ad0s1f.dump /dev/ad0s1f DUMP: Date of this level 0 dump: Thu Feb 5 07:18:58 2009 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping snapshot of /dev/ad0s1f (/usr) to ./ad0s1f.dump DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 3021548 tape blocks. DUMP: dumping (Pass III) [directories] DUMP: dumping (Pass IV) [regular files] DUMP: 16.92% done, finished in 0:24 at Thu Feb 5 07:48:39 2009 DUMP: 39.28% done, finished in 0:15 at Thu Feb 5 07:44:33 2009 DUMP: 62.36% done, finished in 0:09 at Thu Feb 5 07:43:09 2009 DUMP: 93.06% done, finished in 0:01 at Thu Feb 5 07:40:35 2009 DUMP: DUMP: 3024998 tape blocks on 1 volume DUMP: finished in 1271 seconds, throughput 2380 KBytes/sec DUMP: level 0 dump on Thu Feb 5 07:18:58 2009 DUMP: Closing ./ad0s1f.dump DUMP: DUMP IS DONE the restore reports that 1) Header with wrong dumpdate. 2) expected next file 141455, got 146 # restore -rf /storage/backup/ad0s1f.dump Header with wrong dumpdate. expected next file 141455, got 146 and this is the same for all slices (except the numbers in the second line) so where/what is the problem ? Does anyone know what, exactly, this means? thanks Ivan A quick google ;) shows http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/118087 http://lists.freebsd.org/pipermail/freebsd-stable/2008-May/042270.html I also get the wrong dump date and it gives no problems. The next error you get about expected next file would concern me more and I don't have time to look at the moment Terry ___ 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 DNS (and host: connection timed out)
David Naylor wrote: Hi, My ISP is using a WinGate DNS but resolving host names often takes a long time. The problem is also present in Konqueror (3 4) and Firefox. Lastly: # cat /etc/resolve.conf nameserver 192.193.194.1 What is wrong, why is DN resolving taking such an abnormally long time? How can I diagnose and fix it? Thanks in advance, 2 Questions: Which networccard is build in? Can you use another nameserver? An extern nameserver for testing? ___ 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: usage of swap file
my system sometimes need more memory and although there was 3.90 Gbyte swap, I saw that run out of memory when I see with top command. Why doesn't the machine use swap properly ? it does What do I have to do ? nothing Those are the most worthless responses I have ever seen. Instead of well. from your description it's just all fine! i don't know why you say about running out of memory at all. does your programs crash with out of memory message? ___ 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 DNS (and host: connection timed out)
Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 192.168.0.6.55429 63.245.209.93.80 SYN_SENT tcp4 0 0 192.168.0.6.12337 74.125.77.147.80 SYN_SENT Firefox on Windows doesn't have this problem. it doesn't look like DNS problem as it's stuck on connecting to HTTP port (80). check out with ping if it's all fine with your netcard under FreeBSD ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Slow DNS (and host: connection timed out)
On Friday 06 February 2009 10:37:00 Lokadamus wrote: David Naylor wrote: Hi, My ISP is using a WinGate DNS but resolving host names often takes a long time. The problem is also present in Konqueror (3 4) and Firefox. Lastly: # cat /etc/resolve.conf nameserver 192.193.194.1 What is wrong, why is DN resolving taking such an abnormally long time? How can I diagnose and fix it? Thanks in advance, 2 Questions: Which networccard is build in? I don't quite understand your question. See below for the network topology: ISP (host WinGate DNS, only proxy and socks connections allowed out) | | Wireless connection to my gateway | Server (My gateway, running bind9 for internet domain and DNS caching, FreeBSD 7.1p2) PCI D-Link GPlus wireless card for link to ISP PCI rl0 link to switch | | Switch | My desktop (Client, FreeBSD 7.1p2, acts as bridge for laptop) PCI dc0 link to switch Built-in nfe0 link to laptop | My laptop (Client, FreeBSD 8.0) Built-in bge0 link to desktop All the FreeBSD systems (server, desktop and laptop) experience the DNS problem. Can you use another nameserver? An extern nameserver for testing? Other than the ISP's nameserver and my servers nameserver (which works fine for its master domain) no. Does this help? signature.asc Description: This is a digitally signed message part.
Re: problem mounting dvd ISO
cguan wrote: yes, I did. # kldstat -v | grep udf 42 0xc44bd000 7000 udf.ko 419 udf 51 0xc4498000 2000 udf_iconv.ko 423 udf_iconv # mount -t udf /dev/md0 ../iso_mount/w2k8-amd64 mount_udf: /dev/md0: Invalid argument # Is it possible the udf version is too new that the freebsd doesn't support it? I can mount it with my ubuntu 8.10. thanks, Calvin [snip] I suspect you are correct here. I seem to recall some distant memory of when it first made it's way into FreeBSD and even then it was out of date and just barely worked. Maybe it doesn't have support for ISO-13346. Don't really know the answer to this myself. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Custom build fails
Hi, I'm building a custom freeBSD release and I'm getting the following error: -- Building an up-to-date make(1) -- /usr/obj/usr/src/make.i386/usr/src/usr.bin/make created for /usr/src/usr.bin/make rm -f .depend mkdep -f .depend -a-I/usr/src/usr.bin/make -DMAKE_VERSION=\5200408120\ -DDEFSHELLNAME=\sh\ /usr/src/usr.bin/make/arch.c /usr/src/usr.bin/make/buf.c /usr/src/usr.bin/make/cond.c /usr/src/usr.bin/make/dir.c /usr/src/usr.bin/make/for.c /usr/src/usr.bin/make/hash.c /usr/src/usr.bin/make/hash_tables.c /usr/src/usr.bin/make/job.c /usr/src/usr.bin/make/lst.c /usr/src/usr.bin/make/main.c /usr/src/usr.bin/make/make.c /usr/src/usr.bin/make/parse.c /usr/src/usr.bin/make/proc.c /usr/src/usr.bin/make/shell.c /usr/src/usr.bin/make/str.c /usr/src/usr.bin/make/suff.c /usr/src/usr.bin/make/targ.c /usr/src/usr.bin/make/util.c /usr/src/usr.bin/make/var.c cc: not found mkdep: compile failed *** Error code 1 Stop in /usr/src/usr.bin/make. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. + exit 1 + umount /dev *** Error code 1 Stop in /usr/src/release. These are just the last lines, I can post the entire log if needed, but it is quite large. The source code is from 7.0-RELEASE, and my src.conf is the following: WITHOUT_ATM= WITHOUT_AUTHPF= WITHOUT_BIND= WITHOUT_BLUETOOTH= WITHOUT_CALENDAR= WITHOUT_CDDL= WITHOUT_CPP= WITHOUT_CVS= WITHOUT_CXX= WITHOUT_DICT= WITHOUT_EXAMPLES= WITHOUT_FORTH= WITHOUT_GAMES= WITHOUT_GDB= WITHOUT_GPIB= WITHOUT_GROFF= WITHOUT_GSSAPI= WITHOUT_GESIOD= WITHOUT_GNU= WITHOUT_HTML= WITHOUT_I4B= WITHOUT_IDEA= WITHOUT_INFO= WITHOUT_IPFILTER= WITHOUT_IPX= WITHOUT_KERBEROS= WITHOUT_LOCALES= WITHOUT_LPR= WITHOUT_MAN= WITHOUT_NCP= WITHOUT_NLS= WITHOUT_NIS= WITHOUT_OBJC= WITHOUT_RCMDS= WITHOUT_RCS= WITHOUT_SENDMAIL= WITHOUT_SHAREDOCS= WITHOUT_SSP= WITHOUT_TCSH= WITHOUT_TOOLCHAIN= WITHOUT_WPA_SUPPLICANT_EAPOOL= WITHOUT_ZFS= The problem seems to arise when any of WITHOUT_TOOLCHAIN, WITHOUT_CXX or WITHOUTH_CPP are present. On this build, I don't want to have any development tools, as I'm trying to reduce the size at a minimum. Why is make being build? How can I avoid this? If you need more info in order to help me, tell me what do you need please. Thanks for any help ___ 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: Multiple MAC on a single (physical) interface
Le Jeudi 5 à 10:05, Nikos Vassiliadis a écrit : Frédéric Perrin wrote: I need to be able to send and receive using several MAC addresses, as if I had several NIC (which I of course don't have). [...] Yes, you could use a netgraph bridge to bridge several ethernet interfaces together. Luckily, there is also a pseudo-ethernet-like interface you can attach to this bridge and of course you get to treat the pseudo-ethernet as a regular ethernet interface, that is, change its MAC address. The process is described here: http://www.bsdatwork.com/2004/06/19/mac_spoofing_on_freebsd/ Oh, yes, I actually remember trying that. However, on the first ngctl(8) invocation I do (even a 'ngctl list' after a clean reboot), the kernel says : WARNING: attempt to net_add_domain(netgraph) after domainfinalize() I can reproduce this by doing a 'kldload ng_socket'. kldstat(8) says that the module is loaded anyway. A quick googling says that this message is harmless. A 2006 post says that it was silenced in 6-STABLE ; it lokks like this haven't made its way to the 7.1-RELEASE I'm using. However ; On the next step, when I create the bridge, I have : # ngctl -dd mkpeer ngeth0: bridge lower link0 [...] ngctl: sendto(ngeth0:): No such file or directory ngctl: send msg: No such file or directory I guess I have to read more in details about how netgraph works in recent releases of FreeBSD before goiing on. Unfortunately, I will soon be physically away from my FreeBSD box for a week, and fiddling with net interfaces is tipically something I'm afraid of doing through SSH. Thanks anyway from the pointer. -- Fred ___ 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: usage of swap file
On Fri, Feb 6, 2009 at 3:47 AM, Wojciech Puchar woj...@wojtek.tensor.gdynia.pl wrote: my system sometimes need more memory and although there was 3.90 Gbyte swap, I saw that run out of memory when I see with top command. Why doesn't the machine use swap properly ? it does What do I have to do ? nothing Those are the most worthless responses I have ever seen. Instead of well. from your description it's just all fine! i don't know why you say about running out of memory at all. does your programs crash with out of memory message? My description? I'm not the original poster. Pay attention. -- 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: Custom build fails
On Fri, Feb 6, 2009 at 7:08 AM, Matias Surdi matiassu...@gmail.com wrote: Hi, I'm building a custom freeBSD release and I'm getting the following error: -- Building an up-to-date make(1) -- /usr/obj/usr/src/make.i386/usr/src/usr.bin/make created for /usr/src/usr.bin/make rm -f .depend mkdep -f .depend -a-I/usr/src/usr.bin/make -DMAKE_VERSION=\5200408120\ -DDEFSHELLNAME=\sh\ /usr/src/usr.bin/make/arch.c /usr/src/usr.bin/make/buf.c /usr/src/usr.bin/make/cond.c /usr/src/usr.bin/make/dir.c /usr/src/usr.bin/make/for.c /usr/src/usr.bin/make/hash.c /usr/src/usr.bin/make/hash_tables.c /usr/src/usr.bin/make/job.c /usr/src/usr.bin/make/lst.c /usr/src/usr.bin/make/main.c /usr/src/usr.bin/make/make.c /usr/src/usr.bin/make/parse.c /usr/src/usr.bin/make/proc.c /usr/src/usr.bin/make/shell.c /usr/src/usr.bin/make/str.c /usr/src/usr.bin/make/suff.c /usr/src/usr.bin/make/targ.c /usr/src/usr.bin/make/util.c /usr/src/usr.bin/make/var.c cc: not found mkdep: compile failed *** Error code 1 Stop in /usr/src/usr.bin/make. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. + exit 1 + umount /dev *** Error code 1 Stop in /usr/src/release. These are just the last lines, I can post the entire log if needed, but it is quite large. The source code is from 7.0-RELEASE, and my src.conf is the following: WITHOUT_ATM= WITHOUT_AUTHPF= WITHOUT_BIND= WITHOUT_BLUETOOTH= WITHOUT_CALENDAR= WITHOUT_CDDL= WITHOUT_CPP= WITHOUT_CVS= WITHOUT_CXX= WITHOUT_DICT= WITHOUT_EXAMPLES= WITHOUT_FORTH= WITHOUT_GAMES= WITHOUT_GDB= WITHOUT_GPIB= WITHOUT_GROFF= WITHOUT_GSSAPI= WITHOUT_GESIOD= WITHOUT_GNU= WITHOUT_HTML= WITHOUT_I4B= WITHOUT_IDEA= WITHOUT_INFO= WITHOUT_IPFILTER= WITHOUT_IPX= WITHOUT_KERBEROS= WITHOUT_LOCALES= WITHOUT_LPR= WITHOUT_MAN= WITHOUT_NCP= WITHOUT_NLS= WITHOUT_NIS= WITHOUT_OBJC= WITHOUT_RCMDS= WITHOUT_RCS= WITHOUT_SENDMAIL= WITHOUT_SHAREDOCS= WITHOUT_SSP= WITHOUT_TCSH= WITHOUT_TOOLCHAIN= WITHOUT_WPA_SUPPLICANT_EAPOOL= WITHOUT_ZFS= The problem seems to arise when any of WITHOUT_TOOLCHAIN, WITHOUT_CXX or WITHOUTH_CPP are present. On this build, I don't want to have any development tools, as I'm trying to reduce the size at a minimum. Why is make being build? How can I avoid this? If you need more info in order to help me, tell me what do you need please. Thanks for any help ___ 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 You need WITHOUT_TOOLCHAIN= to build you can add that after you do a build ___ 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: Custom build fails
I'm currently running the following command: # Make the release cd /usr/src/release make release \ CHROOTDIR=/home/oms \ BUILDNAME=OpenMailServer \ CVSROOT=/home/ncvs \ RELEASETAG=RELENG_7 \ NODOC=YES \ NO_FLOPPIES=YES \ NOPORTS=YES \ RELEASENOUPDATE=YES \ MAKE_ISOS=YES \ WORLD_FLAGS= -DWITHOUT_TOOLCHAIN \ LOCAL_PATCHES=$DIR/oms.diff \ LOCAL_SCRIPT=$DIR/local_script.sh \ PATCH_FLAGS=-p3 Do you know how can set this up in order to get that variable to be on the build process and not on the install/release process? Thank you very much for your help. Matias. matt donovan wrote: On Fri, Feb 6, 2009 at 7:08 AM, Matias Surdi matiassu...@gmail.com wrote: Hi, I'm building a custom freeBSD release and I'm getting the following error: -- Building an up-to-date make(1) -- /usr/obj/usr/src/make.i386/usr/src/usr.bin/make created for /usr/src/usr.bin/make rm -f .depend mkdep -f .depend -a-I/usr/src/usr.bin/make -DMAKE_VERSION=\5200408120\ -DDEFSHELLNAME=\sh\ /usr/src/usr.bin/make/arch.c /usr/src/usr.bin/make/buf.c /usr/src/usr.bin/make/cond.c /usr/src/usr.bin/make/dir.c /usr/src/usr.bin/make/for.c /usr/src/usr.bin/make/hash.c /usr/src/usr.bin/make/hash_tables.c /usr/src/usr.bin/make/job.c /usr/src/usr.bin/make/lst.c /usr/src/usr.bin/make/main.c /usr/src/usr.bin/make/make.c /usr/src/usr.bin/make/parse.c /usr/src/usr.bin/make/proc.c /usr/src/usr.bin/make/shell.c /usr/src/usr.bin/make/str.c /usr/src/usr.bin/make/suff.c /usr/src/usr.bin/make/targ.c /usr/src/usr.bin/make/util.c /usr/src/usr.bin/make/var.c cc: not found mkdep: compile failed *** Error code 1 Stop in /usr/src/usr.bin/make. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. + exit 1 + umount /dev *** Error code 1 Stop in /usr/src/release. These are just the last lines, I can post the entire log if needed, but it is quite large. The source code is from 7.0-RELEASE, and my src.conf is the following: WITHOUT_ATM= WITHOUT_AUTHPF= WITHOUT_BIND= WITHOUT_BLUETOOTH= WITHOUT_CALENDAR= WITHOUT_CDDL= WITHOUT_CPP= WITHOUT_CVS= WITHOUT_CXX= WITHOUT_DICT= WITHOUT_EXAMPLES= WITHOUT_FORTH= WITHOUT_GAMES= WITHOUT_GDB= WITHOUT_GPIB= WITHOUT_GROFF= WITHOUT_GSSAPI= WITHOUT_GESIOD= WITHOUT_GNU= WITHOUT_HTML= WITHOUT_I4B= WITHOUT_IDEA= WITHOUT_INFO= WITHOUT_IPFILTER= WITHOUT_IPX= WITHOUT_KERBEROS= WITHOUT_LOCALES= WITHOUT_LPR= WITHOUT_MAN= WITHOUT_NCP= WITHOUT_NLS= WITHOUT_NIS= WITHOUT_OBJC= WITHOUT_RCMDS= WITHOUT_RCS= WITHOUT_SENDMAIL= WITHOUT_SHAREDOCS= WITHOUT_SSP= WITHOUT_TCSH= WITHOUT_TOOLCHAIN= WITHOUT_WPA_SUPPLICANT_EAPOOL= WITHOUT_ZFS= The problem seems to arise when any of WITHOUT_TOOLCHAIN, WITHOUT_CXX or WITHOUTH_CPP are present. On this build, I don't want to have any development tools, as I'm trying to reduce the size at a minimum. Why is make being build? How can I avoid this? If you need more info in order to help me, tell me what do you need please. Thanks for any help ___ 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 You need WITHOUT_TOOLCHAIN= to build you can add that after you do a build ___ 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
lagg driver at 6.4 ?
Hello Does the lagg driver ( ethernet bonding ) has been backported to the 6.4 release ? I have to setup a server with two giga-ethernet interfaces ( broadcomm ) and I would like to use them with LACP with a Cisco switch 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: Slow DNS (and host: connection timed out)
David Naylor wrote: I don't quite understand your question. See below for the network topology: ISP (host WinGate DNS, only proxy and socks connections allowed out) | | Wireless connection to my gateway | Server (My gateway, running bind9 for internet domain and DNS caching, FreeBSD 7.1p2) PCI D-Link GPlus wireless card for link to ISP PCI rl0 link to switch Ok, here is a realtek. That can sometimes make problems. Can you change this network interface card? | | Switch | My desktop (Client, FreeBSD 7.1p2, acts as bridge for laptop) PCI dc0 link to switch Built-in nfe0 link to laptop | My laptop (Client, FreeBSD 8.0) Built-in bge0 link to desktop All the FreeBSD systems (server, desktop and laptop) experience the DNS problem. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Flash9and FreeBSD7.0isssue
Quoting Da Rock rock_on_the_...@comcen.com.au: On Fri, 2009-02-06 at 05:43 +, dhaneshk k wrote: Hi list, I followed http://freebsd.langhans.com.pl/af/index.html To enable flash9 support for FreeBSD7.0 I installed FreeBSD7.0 with Linux compatibility so the first step (1.3 ) I skipped I would suggest linux_base-f8-8_11, the in /etc/sysctl.conf put: compat.linux.osrelease=2.6.16, for firefox use the latest firefox3 port (firefox-3.0.5_1,1) NOT firefox-devel, all the plugins that you want such as linux-flashplugin-9.0r152 and any others then nspluginwrapper-1.2.2_2 and run the script and start firefox3 and all should be well if I haven't forgotten something. I would guess that the principal problem is the firefox-devel port rather than firefox3. IIRC, it is pre-firefox3. ed second step I followed and installed latestfirefox-devel then I installed nspluginwrapper next step I downloaded this ftp://greyone.tulatelecom.ru/pub/linux/adobe/install_flash_player_9_linux.tar.gz from this link http://www.filewatcher.com/m/install_flash_player_9_linux.tar.gz.2608602.0.0.html as adobe.com not allowing me to download it. then I untarred itand copied libflashplayer.so to ~/.mozilla/plugins ( I created plugins directory as there is no default plugins directory in ~/.mozilla/ and I invoked the nspluginwrapper $ nspluginwrapper -v -a -i and observed that it created nswrapper.libflashplayer.so but $ nspluginwrapper -l given me the the message segmentation fault core dumped sig 11 what I made wrong ? I tried to restart the firefox and it restarted and showing message you updated to the latest fiefox version . but when I accessed the http://www.adobe.com/shockwave/welcome/ URL I am getting message in the console as LoadPlugin: failed to initialize shared library /home/dhanesh/.mozilla/plugins/libflashplayer.so [Shared object libdl.so.2 not found, required by libflashplayer.so] Gtk-Message: Failed to load module gnomebreakpad: libgnomebreakpad.so: cannot open shared object file: No such file or directory LoadPlugin: failed to initialize shared library /home/dhanesh/.mozilla/plugins/libflashplayer.so [Shared object libdl.so.2 not found, required by libflashplayer.so] Gtk-Message: Failed to load module gnomebreakpad: libgnomebreakpad.so: cannot open shared object file: No such file or directory but find commad showing that libdl.so.2 is ther in /usr/compat/linux/lib/libdl.so.2 # find / -name libdl.so.2 /usr/compat/linux/lib/libdl.so.2 [dhanesh]$ sysctl compat.linux.osrelease compat.linux.osrelease: 2.4.2 [dhanesh$ uname -a FreeBSD 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 any hints to make it work most welcome.. please see this paste also http://rafb.net/p/Yz7dBS79.html thanks in advance Been where you are, done all that. First, deinstall from ports emulators/linux_base-fc4 and make install linux_base-f8. Then make install from ports www/linux-firefox, www/nspluginwrapper and www/linux-flashplugin9. kldload linux, and mount -t linprocfs linproc /compat/linux/proc. Run nspluginwrapper and then run linux-firefox. Tada! All should work now, but it can be a little unstable. HTH. ___ 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 Failure is the opportunity to begin again more intelligently. Fracaso es la oportunidad de reiniciar con mas inteligencia Henry Ford ___ 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: Flash9and FreeBSD7.0isssue
Quoting Da Rock rock_on_the_...@comcen.com.au: On Fri, 2009-02-06 at 05:43 +, dhaneshk k wrote: Hi list, I followed http://freebsd.langhans.com.pl/af/index.html To enable flash9 support for FreeBSD7.0 I installed FreeBSD7.0 with Linux compatibility so the first step (1.3 ) I skipped second step I followed and installed latestfirefox-devel then I installed nspluginwrapper next step I downloaded this ftp://greyone.tulatelecom.ru/pub/linux/adobe/install_flash_player_9_linux.tar.gz from this link http://www.filewatcher.com/m/install_flash_player_9_linux.tar.gz.2608602.0.0.html as adobe.com not allowing me to download it. then I untarred itand copied libflashplayer.so to ~/.mozilla/plugins ( I created plugins directory as there is no default plugins directory in ~/.mozilla/ and I invoked the nspluginwrapper $ nspluginwrapper -v -a -i and observed that it created nswrapper.libflashplayer.so but $ nspluginwrapper -l given me the the message segmentation fault core dumped sig 11 what I made wrong ? I tried to restart the firefox and it restarted and showing message you updated to the latest fiefox version . but when I accessed the http://www.adobe.com/shockwave/welcome/ URL I am getting message in the console as LoadPlugin: failed to initialize shared library /home/dhanesh/.mozilla/plugins/libflashplayer.so [Shared object libdl.so.2 not found, required by libflashplayer.so] Gtk-Message: Failed to load module gnomebreakpad: libgnomebreakpad.so: cannot open shared object file: No such file or directory LoadPlugin: failed to initialize shared library /home/dhanesh/.mozilla/plugins/libflashplayer.so [Shared object libdl.so.2 not found, required by libflashplayer.so] Gtk-Message: Failed to load module gnomebreakpad: libgnomebreakpad.so: cannot open shared object file: No such file or directory but find commad showing that libdl.so.2 is ther in /usr/compat/linux/lib/libdl.so.2 # find / -name libdl.so.2 /usr/compat/linux/lib/libdl.so.2 [dhanesh]$ sysctl compat.linux.osrelease compat.linux.osrelease: 2.4.2 [dhanesh$ uname -a FreeBSD 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 any hints to make it work most welcome.. please see this paste also http://rafb.net/p/Yz7dBS79.html thanks in advance Been where you are, done all that. First, deinstall from ports emulators/linux_base-fc4 and make install linux_base-f8. Then make install from ports www/linux-firefox, www/nspluginwrapper and www/linux-flashplugin9. kldload linux, and mount -t linprocfs linproc /compat/linux/proc. Run nspluginwrapper and then run linux-firefox. Tada! All should work now, but it can be a little unstable. HTH. ___ 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 Failure is the opportunity to begin again more intelligently. Fracaso es la oportunidad de reiniciar con mas inteligencia Henry Ford ___ 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: having trouble with OpenOffice
On Thu, Feb 5, 2009 at 10:08 PM, Adam Vande More amvandem...@gmail.comwrote: af300...@gmail.com wrote: Hi, Tonight I finally took the bull by the horns and got OpenOffice installed. However, I'm not having a problem that I haven't found an answer to yet but seems to be related to the X server (from searches on the net). So, I do this: [a...@sniper /usr/home/andy]$ /usr/local/bin/openoffice.org-2.4.2-scalc I18N: Operating system doesn't support locale en_US The application cannot be started. The component manager is not available. Segmentation fault (core dumped) As you can tell, OpenOffice failed because my OS doesn't support locale en_US. Huh!?! I'm using the English version. In fact, the only way to consider me as being bilingual is something of a matter of mental gymnastics because English is spoken in England and to me, England is a foreign country. Thus, I'm bilingual, or at the least, I speak a foreign language. Never the less, how would this be fixed? Andy Is there a reason you're not using /usr/ports/editors/openoffice.org-3? http://lists.freebsd.org/pipermail/freebsd-openoffice/2006-November/002847.html I didn't want to wait for compilation. -- A: Because it messes up the order in which people normally read text. Q: Why is it such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and 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: having trouble with OpenOffice
On Thu, Feb 5, 2009 at 10:08 PM, Adam Vande More amvandem...@gmail.comwrote: af300...@gmail.com wrote: Hi, Tonight I finally took the bull by the horns and got OpenOffice installed. However, I'm not having a problem that I haven't found an answer to yet but seems to be related to the X server (from searches on the net). So, I do this: [a...@sniper /usr/home/andy]$ /usr/local/bin/openoffice.org-2.4.2-scalc I18N: Operating system doesn't support locale en_US The application cannot be started. The component manager is not available. Segmentation fault (core dumped) As you can tell, OpenOffice failed because my OS doesn't support locale en_US. Huh!?! I'm using the English version. In fact, the only way to consider me as being bilingual is something of a matter of mental gymnastics because English is spoken in England and to me, England is a foreign country. Thus, I'm bilingual, or at the least, I speak a foreign language. Never the less, how would this be fixed? Andy Is there a reason you're not using /usr/ports/editors/openoffice.org-3? http://lists.freebsd.org/pipermail/freebsd-openoffice/2006-November/002847.html Thanks for the thread, by the way. Tonight, when I get home, I'll give this a try. On the heals of my last post, I should also mention that I failed to find a pre-built package for version 3 so I used version 2. I downloaded this from the FreeBSD ftp server from packages-stable. Andy -- A: Because it messes up the order in which people normally read text. Q: Why is it such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and 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: is there any way to increase disk performance ?
I increased values of vfs.read_max and MAXPHYS. I observe the disk's performance. New these values help disk performance clearly. Thanks. Yavuz wrote: I have freebsd7 (amd64 bit) and sata2 disk 7200 rpm. it's running mail server which has services like pop3,imap,smtp and webmail on this machine. When I type systat 1 -vmstat on command line, even I rarely see that disk usage hits 100%. I have no problem as ram and cpu. they is enough. is there any way to increase disk performance without causing any problem ? sysctl vfs.read_max=32 can help read performance ___ 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: Flash9and FreeBSD7.0isssue
On Fri, 2009-02-06 at 07:50 -0600, ec...@casasponti.net wrote: Quoting Da Rock rock_on_the_...@comcen.com.au: On Fri, 2009-02-06 at 05:43 +, dhaneshk k wrote: Hi list, I followed http://freebsd.langhans.com.pl/af/index.html To enable flash9 support for FreeBSD7.0 I installed FreeBSD7.0 with Linux compatibility so the first step (1.3 ) I skipped I would suggest linux_base-f8-8_11, the in /etc/sysctl.conf put: compat.linux.osrelease=2.6.16, Ahh yes. Forgot that point- a must for flash9. for firefox use the latest firefox3 Why firefox3? Isn't there stability issues? And doesn't the firefox still need to be linux-firefox? port (firefox-3.0.5_1,1) NOT firefox-devel, all the plugins that you want such as linux-flashplugin-9.0r152 and any others then nspluginwrapper-1.2.2_2 and run the script and start firefox3 and all should be well if I haven't forgotten something. I would guess that the principal problem is the firefox-devel port rather than firefox3. IIRC, it is pre-firefox3. ed second step I followed and installed latestfirefox-devel then I installed nspluginwrapper next step I downloaded this ftp://greyone.tulatelecom.ru/pub/linux/adobe/install_flash_player_9_linux.tar.gz from this link http://www.filewatcher.com/m/install_flash_player_9_linux.tar.gz.2608602.0.0.html as adobe.com not allowing me to download it. then I untarred itand copied libflashplayer.so to ~/.mozilla/plugins ( I created plugins directory as there is no default plugins directory in ~/.mozilla/ and I invoked the nspluginwrapper $ nspluginwrapper -v -a -i and observed that it created nswrapper.libflashplayer.so but $ nspluginwrapper -l given me the the message segmentation fault core dumped sig 11 what I made wrong ? I tried to restart the firefox and it restarted and showing message you updated to the latest fiefox version . but when I accessed the http://www.adobe.com/shockwave/welcome/ URL I am getting message in the console as LoadPlugin: failed to initialize shared library /home/dhanesh/.mozilla/plugins/libflashplayer.so [Shared object libdl.so.2 not found, required by libflashplayer.so] Gtk-Message: Failed to load module gnomebreakpad: libgnomebreakpad.so: cannot open shared object file: No such file or directory LoadPlugin: failed to initialize shared library /home/dhanesh/.mozilla/plugins/libflashplayer.so [Shared object libdl.so.2 not found, required by libflashplayer.so] Gtk-Message: Failed to load module gnomebreakpad: libgnomebreakpad.so: cannot open shared object file: No such file or directory but find commad showing that libdl.so.2 is ther in /usr/compat/linux/lib/libdl.so.2 # find / -name libdl.so.2 /usr/compat/linux/lib/libdl.so.2 [dhanesh]$ sysctl compat.linux.osrelease compat.linux.osrelease: 2.4.2 [dhanesh$ uname -a FreeBSD 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 any hints to make it work most welcome.. please see this paste also http://rafb.net/p/Yz7dBS79.html thanks in advance Been where you are, done all that. First, deinstall from ports emulators/linux_base-fc4 and make install linux_base-f8. Then make install from ports www/linux-firefox, www/nspluginwrapper and www/linux-flashplugin9. kldload linux, and mount -t linprocfs linproc /compat/linux/proc. Run nspluginwrapper and then run linux-firefox. Tada! All should work now, but it can be a little unstable. HTH. ___ 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 Failure is the opportunity to begin again more intelligently. Fracaso es la oportunidad de reiniciar con mas inteligencia Henry Ford ___ 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: Slow DNS (and host: connection timed out)
Hi, I have similar problem, 3 servers in the same switch, the same configuration, but sending of e-mail from php takes very long time, but only on 2 servers with 7.1 amd64. On 6.2 (the same ip range, the same dns resolver, the same version of php, the same switch) no problem. Where could be a problem? Resolver? Interesting is that are moments when problem isnt on 7.1 too (but very rarely). I thing that is problem of version of FBSD but I havent any verification yet. Radek ___ 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 DNS (and host: connection timed out)
On Friday 06 February 2009 13:47:47 Lokadamus wrote: David Naylor wrote: I don't quite understand your question. See below for the network topology: ISP (host WinGate DNS, only proxy and socks connections allowed out) | Wireless connection to my gateway Server (My gateway, running bind9 for internet domain and DNS caching, FreeBSD 7.1p2) PCI D-Link GPlus wireless card for link to ISP PCI rl0 link to switch Ok, here is a realtek. That can sometimes make problems. Can you change this network interface card? Yes I could, however I have the same problem on the gateway over the wireless card. The wireless card is connecting the gateway to the ISP (i.e. gateway-wireless-ISP) with the ethernet to the intranet. I haven't had any problems with pinging the gateway from my laptop. | Switch My desktop (Client, FreeBSD 7.1p2, acts as bridge for laptop) PCI dc0 link to switch Built-in nfe0 link to laptop My laptop (Client, FreeBSD 8.0) Built-in bge0 link to desktop All the FreeBSD systems (server, desktop and laptop) experience the DNS problem. signature.asc Description: This is a digitally signed message part.
Re: Flash9 and FreeBSD7.0 isssue
On Fri, 2009-02-06 at 05:43 +, dhaneshk k wrote: Hi list, I followed http://freebsd.langhans.com.pl/af/index.html To enable flash9 support for FreeBSD7.0 I installed FreeBSD7.0 with Linux compatibility so the first step (1.3 ) I skipped second step I followed and installed latestfirefox-devel then I installed nspluginwrapper next step I downloaded this ftp://greyone.tulatelecom.ru/pub/linux/adobe/install_flash_player_9_linux.tar.gz from this link http://www.filewatcher.com/m/install_flash_player_9_linux.tar.gz.2608602.0.0.html as adobe.com not allowing me to download it. then I untarred itand copied libflashplayer.so to ~/.mozilla/plugins ( I created plugins directory as there is no default plugins directory in ~/.mozilla/ and I invoked the nspluginwrapper $ nspluginwrapper -v -a -i and observed that it created nswrapper.libflashplayer.so but $ nspluginwrapper -l given me the the message segmentation fault core dumped sig 11 what I made wrong ? I tried to restart the firefox and it restarted and showing message you updated to the latest fiefox version . but when I accessed the http://www.adobe.com/shockwave/welcome/ URL I am getting message in the console as LoadPlugin: failed to initialize shared library /home/dhanesh/.mozilla/plugins/libflashplayer.so [Shared object libdl.so.2 not found, required by libflashplayer.so] Gtk-Message: Failed to load module gnomebreakpad: libgnomebreakpad.so: cannot open shared object file: No such file or directory LoadPlugin: failed to initialize shared library /home/dhanesh/.mozilla/plugins/libflashplayer.so [Shared object libdl.so.2 not found, required by libflashplayer.so] Gtk-Message: Failed to load module gnomebreakpad: libgnomebreakpad.so: cannot open shared object file: No such file or directory but find commad showing that libdl.so.2 is ther in /usr/compat/linux/lib/libdl.so.2 # find / -name libdl.so.2 /usr/compat/linux/lib/libdl.so.2 [dhanesh]$ sysctl compat.linux.osrelease compat.linux.osrelease: 2.4.2 [dhanesh$ uname -a FreeBSD 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 any hints to make it work most welcome.. please see this paste also http://rafb.net/p/Yz7dBS79.html thanks in advance Been where you are, done all that. First, deinstall from ports emulators/linux_base-fc4 and make install linux_base-f8. Then make install from ports www/linux-firefox, www/nspluginwrapper and www/linux-flashplugin9. kldload linux, and mount -t linprocfs linproc /compat/linux/proc. Run nspluginwrapper and then run linux-firefox. Tada! All should work now, but it can be a little unstable. HTH. ___ 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 DNS (and host: connection timed out)
On Friday 06 February 2009 11:37:31 Wojciech Puchar wrote: Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 192.168.0.6.55429 63.245.209.93.80 SYN_SENT tcp4 0 0 192.168.0.6.12337 74.125.77.147.80 SYN_SENT Firefox on Windows doesn't have this problem. it doesn't look like DNS problem as it's stuck on connecting to HTTP port (80). check out with ping if it's all fine with your netcard under FreeBSD netcard works fine: (from laptop, see http://lists.freebsd.org/pipermail/freebsd-questions/2009-February/192278.html for layout of network) # ping -c 2000 -i 0.1 192.193.194.1 PING 192.193.194.1 (192.193.194.1): 56 data bytes 2000 packets transmitted, 1937 packets received, 3.1% packet loss round-trip min/avg/max/stddev = 3.339/27.799/741.743/78.702 ms The above was because only proxied (and socks) traffic is allowed beyond the ISP. The point I was trying to make was (by the number of '.' before the first netstat line) that it takes the browser over 25 seconds before it even attempts the connection. See below for when I have transparent proxying enabled (and the connection does go through). # konqueror www.google.co.za [1] 4862 # sh -c 'while true; do echo -n .; netstat -np tcp; sleep 5; done' Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address(state) tcp4 0 0 192.168.0.2.50707 74.125.77.99.80ESTABLISHED .Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address(state) tcp4 0 0 192.168.0.2.64852 74.125.77.99.80TIME_WAIT tcp4 0 0 192.168.0.2.50707 74.125.77.99.80TIME_WAIT Note that in this case it takes 35 seconds before Konqueror attempts the connection. Regards, signature.asc Description: This is a digitally signed message part.
Re: Multiple MAC on a single (physical) interface
Frédéric Perrin wrote: Le Jeudi 5 à 10:05, Nikos Vassiliadis a écrit : Frédéric Perrin wrote: I need to be able to send and receive using several MAC addresses, as if I had several NIC (which I of course don't have). [...] Yes, you could use a netgraph bridge to bridge several ethernet interfaces together. Luckily, there is also a pseudo-ethernet-like interface you can attach to this bridge and of course you get to treat the pseudo-ethernet as a regular ethernet interface, that is, change its MAC address. The process is described here: http://www.bsdatwork.com/2004/06/19/mac_spoofing_on_freebsd/ Oh, yes, I actually remember trying that. However, on the first ngctl(8) invocation I do (even a 'ngctl list' after a clean reboot), the kernel says : WARNING: attempt to net_add_domain(netgraph) after domainfinalize() I can reproduce this by doing a 'kldload ng_socket'. kldstat(8) says that the module is loaded anyway. A quick googling says that this message is harmless. A 2006 post says that it was silenced in 6-STABLE ; it lokks like this haven't made its way to the 7.1-RELEASE I'm using. This warning appeared on 7-CURRENT. However ; On the next step, when I create the bridge, I have : # ngctl -dd mkpeer ngeth0: bridge lower link0 [...] ngctl: sendto(ngeth0:): No such file or directory ngctl: send msg: No such file or directory I guess I have to read more in details about how netgraph works in recent releases of FreeBSD before goiing on. Unfortunately, I will soon be physically away from my FreeBSD box for a week, and fiddling with net interfaces is tipically something I'm afraid of doing through SSH. Thanks anyway from the pointer. You can create the pseudo ethernets using 'ngctl mkpeer . eiface hook ether' and bridge them using if_bridge. You don't have to use the ng_bridge, if_bridge will work fine with the virtual ethernet interfaces. But there are other limitations that came up when I tried this setup... Apparently you'll want to use IP addresses from the same network. For example: fxp0 10.0.0.1/24 ether 00:00:00:01:01:01 ngeth0 10.0.0.2/32 ether 00:00:00:02:02:02 ngeth1 10.0.0.3/32 ether 00:00:00:03:03:03 etc Since there is not much sense in saying that network 10.0.0.0/24 is attached to more than one interfaces, you'll have to use /32 masks for all the aliases, and a /24 for the fxp0 one, right? FreeBSD will then know that network 10.0.0.0/24 is attached to fxp0 and will use fxp0's IP and MAC address to do the ARP query... So, in short, if you use such a setup: fxp0 10.0.0.1/24 ether 00:00:00:01:01:01 ngeth0 10.0.0.2/32 ether 00:00:00:02:02:02 ngeth1 10.0.0.3/32 ether 00:00:00:03:03:03 The IP address in use will be the 10.0.0.1 one and the MAC address will be the 00:00:00:01:01:01 one. But you can use this one: fxp0 10.0.0.1/24 ether 00:00:00:01:01:01 ngeth0 10.0.1.2/24 ether 00:00:00:02:02:02 ngeth1 10.0.2.3/24 ether 00:00:00:03:03:03 As far as I know, the only way to achieve this (having the same network on different interfaces and many many other features) is the VIMAGE way: http://imunes.tel.fer.hr/virtnet/ In a few days VIMAGE will be in the SVN repository. Sorry for the noise... Nikos ___ 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: Link UP/DOWN problem with re0 on FreeBSD 7.1
Graeme Dargie a écrit : -Original Message- From: FreeBSD [mailto:free...@optiksecurite.com] Sent: 04 February 2009 21:55 Cc: freebsd-questions@freebsd.org Subject: Re: Link UP/DOWN problem with re0 on FreeBSD 7.1 FreeBSD a écrit : Graeme Dargie a écrit : If you do a dmesg are you also showing a watchdog time out for the nic ? I only ask as I am having the exact same problem with the exact same card and I have yet to find a solution, if I come across something I will let you know. Regards Graeme Not a single time...sorry. -Original Message- From: FreeBSD [mailto:free...@optiksecurite.com] Sent: 26 January 2009 18:58 To: freebsd-questions@freebsd.org Subject: Re: Link UP/DOWN problem with re0 on FreeBSD 7.1 FreeBSD a écrit : Hi everyone, Just to put you in context, I applied the following patch to make the card available: SVN rev 186389 on 2008-12-22 00:46:22Z by yongari Since we don't request reset for rlphy(4), the link state 'UP' event from mii(4) may not be delivered if valid link was already established. To address the issue, check current link state after driving MII_TICK. This should fix a regression introduced in r185753 on fast ethernet controllers. --- I don't have any issue related to that anymore. The problem is that I get link UP/DOWN a few times per hour on 3 identical machines that I dumped/restored. They are all pluged in a Cisco switch that works fine for every other PCs. Jan 26 06:09:15 term005 kernel: re0: link state changed to DOWN Jan 26 06:09:17 term005 kernel: re0: link state changed to UP I tried to switch cables, but I got the same result. There is the pciconf -lv output: r...@pci0:3:0:0: class=0x02 card=0x02831028 chip=0x816810ec rev=0x02 hdr=0x00 vendor = 'Realtek Semiconductor' device = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC' class = network subclass = ethernet There is the output of vmstat -i: interrupt total rate irq18: re0 ehci0++ 63766 0 irq19: atapci0277001 3 cpu0: timer156068748 1961 Total 156409515 1966 Could it be related to the fact that there is re0 and ehci0++ on the same IRQ? Thank you for your help, Martin I just tried with a brand new Dell 2708 switch and the problem is still there. I just confirmed that the UP/DOWN occurs every 10 minutes (+- a few seconds). Thanks again, Martin Just to follow-up on my own problem... I tried to disable some options of the card with : ifconfig re0 -rxcsum -txcsum -tso -lro -vlanhwtag but nothing as changed. I just tried to download a big file (FreeBSD 7.1-REL DVD iso in fact) to see if the deconnection occurs even during a transfer. The DVD downloaded successfully and I verified that the MD5 are OK. BUT, /var/log/messages continue to tell me that: Feb 4 16:09:29 term003 kernel: re0: link state changed to UP Feb 4 16:19:26 term003 kernel: re0: link state changed to DOWN Feb 4 16:19:30 term003 kernel: re0: link state changed to UP Feb 4 16:19:32 term003 kernel: re0: link state changed to DOWN during the transfer (which worked OK). I don't know if that can help someone to help me ;) Thanks, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org I have a solution to this well a work around. Add -tso to the relevant line in /etc/rc.conf ifconfig_re0=inet 192.168.1.103 netmask 255.255.255.0 -tso Adding -tso stops the link up / link down problem. Now I am understand that this may increase cpu if the traffic on the nic is high. I am sure some one the list will know of any other implications this may have. It is a known problem and I site I read the bug had been submitted so hopefully it wont exist in 8.0 Regards Graeme As I stated in my last post, I tried to disable a few options, including TSO. Still, I gived a try to your workaround. I now have this line in rc.conf: ifconfig_re0=DHCP -tso but I have the same problem (it disconnect every 10 minutes and ask for an IP to the DHCP). Thanks for your suggestion, Martin ___ 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: SVN checkout checksumming
On Thu, Feb 05, 2009 at 01:37:26AM +0200, Giorgos Keramidas wrote: On Wed, 04 Feb 2009 10:20:25 -0500, FreeBSD free...@optiksecurite.com wrote: Hi everyone, I have asked this question on the svnforum.org and didn't got a good answer, so I try it here. I want to use SVN to automate the update process of a custom application. So, I'm planning to indicate to every PC to update periodically to a specific branch of the repository. The problem is that I need to be sure the files where not corrupted during the transfer. So, I'm planning to generate the hash (SHA or MD5, doesn't really matters) of every file downloaded by SVN on the client. For this to work, I need to compare the hashes with their server-side equivalent. I looked at the post-commit hooks and it looks pretty interesting but is anyone doing something similar? How are you creating the file containing the hash of the committed file? Let's assume for a moment that you install a post-commit hook that generates a SHA-256 checksum of all the files in the latest repo revision on the svn server. For the sake of simplicity, let's assume that this file is a simple, plain text file that is named db/revs/NUMBER.sha256 where 'NUMBER' is the revision number you are check-summing. How are you going to *safely* transmit those SHA-256 checksums to the client on 'svn checkout'? Well, sorry to bring this back up, but again: how about signing NUMBER.sha256 with a GnuPG private key belonging to the FreeBSD Project? If there's a way to *safely* get the corresponding public key, checking the signature of the NUMBER.sha256 files would be trivial. This doesn't solve the problem entirely, but it would alleviate it somewhat (it's easier to get the GnuPG Public Key *once* over a secure channel when you have access to it, e.g. when traveling abroad etc... than having to rely everytime on a secure channel for the SVN updates (which may not always be available due to intrusive MITM)). -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ 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: Screen problem on booting
On Wed, Feb 4, 2009 at 8:23 AM, Fernando Apesteguía fernando.apesteg...@gmail.com wrote: On 2/3/09, Chris Whitehouse cwhi...@onetel.com wrote: Fernando Apesteguía wrote: On 2/2/09, Chris Whitehouse cwhi...@onetel.com wrote: Fernando Apesteguía wrote: Hi all, I'm using FreeBSD 7.1-RELEASE-p2 Since a few days I've noticed something weird. On booting, all the text I see is shifted to the left, so I lose the first ten letters or so in every line of text. After login, once I type startx the X Window system seems to be OK _and_ if I go back to a console with Alt-Ctrl-Fn the console is fine again. My graphic card is an ATI Radeon HD2400. Anybody noticed it? Thanks in advance. PS: In console mode, reset command doesn't fix the problem. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Adjust the horizontal position with the controls on the monitor while booting? My LCD flat panel has an auto adjust button which does the same thing. Yep, but the point is that it worked fine some time ago (probably with -p1, though I'm not sure). And as I said after using X, if I go back again to console mode, monitor settings are correct. Doesn't this means there is some kind of problem with video at start up? None of my other operating systems in that machine suffer this problem. Thanks . I thought maybe it was a problem that occurred with whatever graphics driver is loaded on boot and that it goes away once the ATI driver is loaded but maybe not. I just tested mine by using the screen controls to set the screen over to one side while booting. Once X starts and the nvidia driver loads the screen position is fine, however going to a console (ctrl-alt-Fn) the screen is still displaced unlike yours. Sorry if that suggestion doesn't fix it. Yes, I think that first video driver can be the problem... I will test a bit more and then I will probably file a PR. Thanks again. Just for the record, I filed PR. http://www.freebsd.org/cgi/query-pr.cgi?pr=131448 Chris ___ 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: SVN checkout checksumming
On Fri, 6 Feb 2009 17:58:00 +0100, cpghost cpgh...@cordula.ws wrote: Let's assume for a moment that you install a post-commit hook that generates a SHA-256 checksum of all the files in the latest repo revision on the svn server. For the sake of simplicity, let's assume that this file is a simple, plain text file that is named db/revs/NUMBER.sha256 where 'NUMBER' is the revision number you are check-summing. How are you going to *safely* transmit those SHA-256 checksums to the client on 'svn checkout'? Well, sorry to bring this back up, but again: how about signing NUMBER.sha256 with a GnuPG private key belonging to the FreeBSD Project? If there's a way to *safely* get the corresponding public key, checking the signature of the NUMBER.sha256 files would be trivial. If the signed data is not part of the actual repository, you have a signature for a numeric value, not a signature for the *contents* of the repository itself. I think I am missing something here... ___ 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
Sendmail to Relay different domains to different hosts
I am using Sendmail on a FreeBSD7.0 server as a mail relay for some of our servers. These servers relay messages to both internal recipients and external customers. I need to be able to relay mail destined to our internal domain recipients to our corporate mail servers but relay everything else out to our usual smart host. So basically, I am looking to relay emails destined for a certain domain to one host and the rest of the mail to another. Does anyone know how I could configure sendmail to accomplish this? Thanks in advance for your help. Greg ___ 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
/var grows, apache open file, which file?
Hi List, I noticed that my var slice is getting eaten by apache. The amount of free space is getting less and less per day. So I started to investigate. I did the following; # fstat -u www | grep var | more www httpd 970429 /var 74653 -rw--- 176907484 w www httpd 97042 12 /var 71575 -rw--- 1345623 w www httpd 97042 13 /var 24693 -rw-r--r-- 0 w www httpd 97042 15 /var 70919 -rw--- 0 w www httpd 97042 16 /var 70919 -rw--- 0 w www httpd 260599 /var 74653 -rw--- 176907484 w www httpd 26059 12 /var 71575 -rw--- 1345623 w So I have an Inumber, lets search for that. # find / -inum 74653 /usr/ports/net/pptpclient/files This confuses me! That is on a different slice. When I restart apachectl the space is reclamed and I've got a normal usage of /var. # apachectl -v Server version: Apache/2.2.11 (FreeBSD) Server built: Jan 11 2009 22:01:58 # uname -a FreeBSD wolverine.superhero.nl 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Tue Jan 6 07:44:32 CET 2009 drmanhat...@wolverine.superhero.nl:/usr/obj/usr/src/sys/WOLVERINE i386 Any thoughts? Cheers, Patrick ___ 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: Sendmail to Relay different domains to different hosts
On Fri, 6 Feb 2009 13:15:02 -0500, greg.st...@sungard.com wrote: I am using Sendmail on a FreeBSD7.0 server as a mail relay for some of our servers. These servers relay messages to both internal recipients and external customers. I need to be able to relay mail destined to our internal domain recipients to our corporate mail servers but relay everything else out to our usual smart host. So basically, I am looking to relay emails destined for a certain domain to one host and the rest of the mail to another. Does anyone know how I could configure sendmail to accomplish this? That's what `mailertable' is for. Enable in your `sendmail.mc' file the mailertable feature: FEATURE(`mailertable', `hash /etc/mail/mailertable') Then create an `/etc/mail/mailertable' map with something like: @internal.domainesmtp:[internal.relay.host] Generate the `mailertable.db' map with makemap: # cd /etc/mail # makemap hash mailertable mailertable and you're done. ___ 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: Sendmail to Relay different domains to different hosts
In the last episode (Feb 06), greg.st...@sungard.com said: I am using Sendmail on a FreeBSD7.0 server as a mail relay for some of our servers. These servers relay messages to both internal recipients and external customers. I need to be able to relay mail destined to our internal domain recipients to our corporate mail servers but relay everything else out to our usual smart host. So basically, I am looking to relay emails destined for a certain domain to one host and the rest of the mail to another. Does anyone know how I could configure sendmail to accomplish this? You want to use the /etc/mail/mailertable file: http://www.sendmail.org/m4/mailertables.html -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sendmail to Relay different domains to different hosts
greg.st...@sungard.com wrote: I am using Sendmail on a FreeBSD7.0 server as a mail relay for some of our servers. These servers relay messages to both internal recipients and external customers. I need to be able to relay mail destined to our internal domain recipients to our corporate mail servers but relay everything else out to our usual smart host. So basically, I am looking to relay emails destined for a certain domain to one host and the rest of the mail to another. Does anyone know how I could configure sendmail to accomplish this? Yes. Take a look at the `mailertable.sample' file. Create an empty 'mailertable' file in /etc/mail, and add the domain-to-server maps to it: corporate.com smtp:relay.corporate.com other.com smtp:some.other.server.com ...and then IIRC: # cd /etc/mail # makemap hash mailertable mailertable Steve ___ 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: /var grows, apache open file, which file?
In the last episode (Feb 06), Gelsema, P (Patrick) - FreeBSD said: I noticed that my var slice is getting eaten by apache. The amount of free space is getting less and less per day. So I started to investigate. I did the following; # fstat -u www | grep var | more www httpd 970429 /var 74653 -rw--- 176907484 w www httpd 97042 12 /var 71575 -rw--- 1345623 w www httpd 97042 13 /var 24693 -rw-r--r-- 0 w www httpd 97042 15 /var 70919 -rw--- 0 w www httpd 97042 16 /var 70919 -rw--- 0 w www httpd 260599 /var 74653 -rw--- 176907484 w www httpd 26059 12 /var 71575 -rw--- 1345623 w So I have an Inumber, lets search for that. # find / -inum 74653 /usr/ports/net/pptpclient/files This confuses me! That is on a different slice. Then that is not the inode you are looking for. Use find -x /var ... to limit the search to just the /var mountpoint. Your problem is probably due to a bad logfile rotator that isn't signalling apache to closereopen the logs, so it keeps logging to a file you have deleted. If you're using newsyslog, make sure you have listed your apache pidfile on the line correspoinding to any apache logs so it knows which process to signal. See the newsyslog.conf manpage for more details. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
RE: Sendmail to Relay different domains to different hosts
Great! I will give this a try. If I put a single entry into the mailertable for the corporate domain would everything else default to the smarthost defined in sendmail.cf? Thanks, Greg -Original Message- From: Steve Bertrand [mailto:st...@ibctech.ca] Sent: Friday, February 06, 2009 2:03 PM To: Stark, Greg Cc: freebsd-questions@freebsd.org Subject: Re: Sendmail to Relay different domains to different hosts greg.st...@sungard.com wrote: I am using Sendmail on a FreeBSD7.0 server as a mail relay for some of our servers. These servers relay messages to both internal recipients and external customers. I need to be able to relay mail destined to our internal domain recipients to our corporate mail servers but relay everything else out to our usual smart host. So basically, I am looking to relay emails destined for a certain domain to one host and the rest of the mail to another. Does anyone know how I could configure sendmail to accomplish this? Yes. Take a look at the `mailertable.sample' file. Create an empty 'mailertable' file in /etc/mail, and add the domain-to-server maps to it: corporate.com smtp:relay.corporate.com other.com smtp:some.other.server.com ...and then IIRC: # cd /etc/mail # makemap hash mailertable mailertable Steve ___ 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: SVN checkout checksumming
On Fri, Feb 06, 2009 at 07:14:14PM +0200, Giorgos Keramidas wrote: On Fri, 6 Feb 2009 17:58:00 +0100, cpghost cpgh...@cordula.ws wrote: Let's assume for a moment that you install a post-commit hook that generates a SHA-256 checksum of all the files in the latest repo revision on the svn server. For the sake of simplicity, let's assume that this file is a simple, plain text file that is named db/revs/NUMBER.sha256 where 'NUMBER' is the revision number you are check-summing. How are you going to *safely* transmit those SHA-256 checksums to the client on 'svn checkout'? Well, sorry to bring this back up, but again: how about signing NUMBER.sha256 with a GnuPG private key belonging to the FreeBSD Project? If there's a way to *safely* get the corresponding public key, checking the signature of the NUMBER.sha256 files would be trivial. If the signed data is not part of the actual repository, you have a signature for a numeric value, not a signature for the *contents* of the repository itself. Hmmm... yes, you're right. Only the digest would be signed in this case, and that's not enough. But if the (digest, revision) pair is signed, that would at least be useful (somewhat). So, let's say that NUMBER.sha256 starts with something like a comment: # r123456 path1 / digest1 path2 / digest2 path3 / digest3 ... and all this signed, would it be enough? Even if the repository isn't signed, one can compute the digests locally and check them with the *signed* list of digests. It may not catch everything because of possible collisions, but wouldn't that be already better than nothing? -cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ 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
differences of disk usage between du and quota binaries
Hello. I use FreeBSD 6.3. I set quota to my fs. But, when I print disk usage with du -sh, I have: r...@domain sites $ du -sh folder 633Mfolder But, when I print disk usage with quota -u user, I have: isk quotas for user user (uid 2002): Filesystem usage quota limit grace files quota limit grace /var 648264 70 702963 0 0 Why this difference? (633M against 648264) Regards, -- -Nicolas. ___ 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
lpr fixed, but the wrong-way... [?]
i hope somebody can clue me in one why %lpr file did work less than 3 weeks ago, but stopped last night. i had no idea why. i have apsfilter set up and found (in /var/spool/lpd/aps1) in -rw-r--r-- 1 root daemon 13030 Feb 6 10:54 log that i'm missing the following file: . . . sed: stdout: Broken pipe cat: stdout: Broken pipe /libexec/ld-elf.so.1: Shared object libtasn1.so.3 not found, required by libgs.so.8 sed: stdout: Broken pipe cat: stdout: Broken pipe /libexec/ld-elf.so.1: Shared object libtasn1.so.3 not found, required by libgs.so.8 sed: stdout: Broken pipe cat: stdout: Broken pipe /libexec/ld-elf.so.1: Shared object libtasn1.so.3 not found, required by libgs.so.8 . . . moments ago, i rebuilt security/libtasn1, then cd'd into /usr/local/lib and did a # co libtasn1.so libtasn1.so.3 _now_ a test of % lpr /etc/fstab works. from the apsfilter log, it lookas as tho i need to upgrade this libgs.so.8 shared library. but *how* do i find who/what build this library? thanks, gary ps: just a FWIW; i've always had major pains with printing with unix. and linux, and sun, and godknows only dos/windoze sees to yhave this stuff automated. Any insights here are v welcome!! -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 2.23a 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: /var grows, apache open file, which file?
On Fri, February 6, 2009 20:05, Dan Nelson wrote: In the last episode (Feb 06), Gelsema, P (Patrick) - FreeBSD said: I noticed that my var slice is getting eaten by apache. The amount of free space is getting less and less per day. So I started to investigate. I did the following; # fstat -u www | grep var | more www httpd 970429 /var 74653 -rw--- 176907484 w www httpd 97042 12 /var 71575 -rw--- 1345623 w www httpd 97042 13 /var 24693 -rw-r--r-- 0 w www httpd 97042 15 /var 70919 -rw--- 0 w www httpd 97042 16 /var 70919 -rw--- 0 w www httpd 260599 /var 74653 -rw--- 176907484 w www httpd 26059 12 /var 71575 -rw--- 1345623 w So I have an Inumber, lets search for that. # find / -inum 74653 /usr/ports/net/pptpclient/files This confuses me! That is on a different slice. Then that is not the inode you are looking for. Use find -x /var ... to doesnt return anything. limit the search to just the /var mountpoint. Your problem is probably due to a bad logfile rotator that isn't signalling apache to closereopen the logs, so it keeps logging to a file you have deleted. If you're using newsyslog, make sure you have listed your apache pidfile on the line correspoinding to any apache logs so it knows which process to signal. See the newsyslog.conf manpage for more details. Added /var/run/httpd.pid to newsyslog.conf and restarted apache. I am also using cronolog. from httpd.conf: CustomLog | /usr/local/sbin/cronolog /var/log/apache2/%Y/%m/%d/access.log combined Thanks Patrick -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: differences of disk usage between du and quota binaries
On Fri, Feb 6, 2009 at 2:13 PM, Nicolas Letellier nico...@nicoelro.net wrote: Hello. I use FreeBSD 6.3. I set quota to my fs. But, when I print disk usage with du -sh, I have: r...@domain sites $ du -sh folder 633Mfolder But, when I print disk usage with quota -u user, I have: isk quotas for user user (uid 2002): Filesystem usage quota limit grace files quota limit grace /var 648264 70 702963 0 0 Why this difference? (633M against 648264) Because 633Mb is 648264 (roughly) bytes. (648264 / 1024) 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: differences of disk usage between du and quota binaries
On Fri, Feb 6, 2009 at 2:33 PM, Glen Barber glen.j.bar...@gmail.com wrote: On Fri, Feb 6, 2009 at 2:13 PM, Nicolas Letellier nico...@nicoelro.net wrote: Hello. I use FreeBSD 6.3. I set quota to my fs. But, when I print disk usage with du -sh, I have: r...@domain sites $ du -sh folder 633Mfolder But, when I print disk usage with quota -u user, I have: isk quotas for user user (uid 2002): Filesystem usage quota limit grace files quota limit grace /var 648264 70 702963 0 0 Why this difference? (633M against 648264) Because 633Mb is 648264 (roughly) bytes. (648264 / 1024) Regards, Well, I never really answered the 'why' part of your question -- the '-h' flag prints 'human readable' output -- ie, in MB instead of bytes. -- 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: /var grows, apache open file, which file?
On Fri, Feb 6, 2009 at 1:27 PM, Gelsema, P (Patrick) - FreeBSD free...@superhero.nl wrote: On Fri, February 6, 2009 20:05, Dan Nelson wrote: In the last episode (Feb 06), Gelsema, P (Patrick) - FreeBSD said: I noticed that my var slice is getting eaten by apache. The amount of free space is getting less and less per day. So I started to investigate. I did the following; # fstat -u www | grep var | more www httpd 970429 /var 74653 -rw--- 176907484 w www httpd 97042 12 /var 71575 -rw--- 1345623 w www httpd 97042 13 /var 24693 -rw-r--r-- 0 w www httpd 97042 15 /var 70919 -rw--- 0 w www httpd 97042 16 /var 70919 -rw--- 0 w www httpd 260599 /var 74653 -rw--- 176907484 w www httpd 26059 12 /var 71575 -rw--- 1345623 w So I have an Inumber, lets search for that. # find / -inum 74653 /usr/ports/net/pptpclient/files This confuses me! That is on a different slice. Then that is not the inode you are looking for. Use find -x /var ... to doesnt return anything. limit the search to just the /var mountpoint. Your problem is probably due to a bad logfile rotator that isn't signalling apache to closereopen the logs, so it keeps logging to a file you have deleted. If you're using newsyslog, make sure you have listed your apache pidfile on the line correspoinding to any apache logs so it knows which process to signal. See the newsyslog.conf manpage for more details. Added /var/run/httpd.pid to newsyslog.conf and restarted apache. I am also using cronolog. from httpd.conf: CustomLog | /usr/local/sbin/cronolog /var/log/apache2/%Y/%m/%d/access.log combined Thanks Patrick -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org Just a thought . . . perhaps your situation is similar. I had an issue recently, where /var was maxing out quickly, even after empty all of the logs. It ended up that I was logging too much prior to log rotation. I had recently set-up an ftp server and the rsync of the binary I was mirrorring slammed /var. So, I limited what my firewall logged. Instead of *log all* I would just *log*. -- www.nealhogan.net ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
disk recovery problem(s)
Had a power outage recently; when trying to fsck several external hard drives I'm getting unexpected errors. For example: huff@ fsck /dev/da3a ** /dev/da3a ** Last Mounted on /backup ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ROOT INODE UNALLOCATED ALLOCATE? [yn] a) what's probably happened? b) is there a way to recover the data? I can scrub the disk and restore, but would like to avoid that if at all possible. Robert Huff ___ 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
simple printer setup
FreeBSD 7.0: what is the most simple and quickest way to set up printing from the unix command line to a few HP printers (all Postscript enabled) that have an IP address (direct printer to IP address) ? (printing of unix text files and postscript files) ___ 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: Sendmail to Relay different domains to different hosts
Just did some testing. A single entry for the corporate domain as described below and the smarthost set for everything else seems to work. Thanks very much everyone! Greg -Original Message- From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of greg.st...@sungard.com Sent: Friday, February 06, 2009 2:10 PM To: st...@ibctech.ca Cc: freebsd-questions@freebsd.org Subject: RE: Sendmail to Relay different domains to different hosts Great! I will give this a try. If I put a single entry into the mailertable for the corporate domain would everything else default to the smarthost defined in sendmail.cf? Thanks, Greg -Original Message- From: Steve Bertrand [mailto:st...@ibctech.ca] Sent: Friday, February 06, 2009 2:03 PM To: Stark, Greg Cc: freebsd-questions@freebsd.org Subject: Re: Sendmail to Relay different domains to different hosts greg.st...@sungard.com wrote: I am using Sendmail on a FreeBSD7.0 server as a mail relay for some of our servers. These servers relay messages to both internal recipients and external customers. I need to be able to relay mail destined to our internal domain recipients to our corporate mail servers but relay everything else out to our usual smart host. So basically, I am looking to relay emails destined for a certain domain to one host and the rest of the mail to another. Does anyone know how I could configure sendmail to accomplish this? Yes. Take a look at the `mailertable.sample' file. Create an empty 'mailertable' file in /etc/mail, and add the domain-to-server maps to it: corporate.com smtp:relay.corporate.com other.com smtp:some.other.server.com ...and then IIRC: # cd /etc/mail # makemap hash mailertable mailertable Steve ___ 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: OT: SVN checkout checksumming
On Fri, 6 Feb 2009 20:11:57 +0100, cpghost cpgh...@cordula.ws wrote: On Fri, Feb 06, 2009 at 07:14:14PM +0200, Giorgos Keramidas wrote: On Fri, 6 Feb 2009 17:58:00 +0100, cpghost cpgh...@cordula.ws wrote: Let's assume for a moment that you install a post-commit hook that generates a SHA-256 checksum of all the files in the latest repo revision on the svn server. For the sake of simplicity, let's assume that this file is a simple, plain text file that is named db/revs/NUMBER.sha256 where 'NUMBER' is the revision number you are check-summing. How are you going to *safely* transmit those SHA-256 checksums to the client on 'svn checkout'? Well, sorry to bring this back up, but again: how about signing NUMBER.sha256 with a GnuPG private key belonging to the FreeBSD Project? If there's a way to *safely* get the corresponding public key, checking the signature of the NUMBER.sha256 files would be trivial. If the signed data is not part of the actual repository, you have a signature for a numeric value, not a signature for the *contents* of the repository itself. Hmmm... yes, you're right. Only the digest would be signed in this case, and that's not enough. But if the (digest, revision) pair is signed, that would at least be useful (somewhat). So, let's say that NUMBER.sha256 starts with something like a comment: # r123456 path1 / digest1 path2 / digest2 path3 / digest3 ... and all this signed, would it be enough? Sorry, but no, it wouldn't be enough. There are other SCM systems where the sha256 hash is *part* of the history, like Mercurial, Git and Darcs. If you really want to be _certain_ that a particular revision is truly what it is supposed to be, using something that makes cryptographically secure hashes an integral part of the history is probably the only way to achieve that goal :/ Even if the repository isn't signed, one can compute the digests locally and check them with the *signed* list of digests. It may not catch everything because of possible collisions, but wouldn't that be already better than nothing? Yes, that might be good enough, but it might have a slightly hard to define set of constraints. For example: * Do you publish checksums for all the files in each revision (a 'manifest' as some systems call the collection of files)? * Do you allow checksums to be recorded as a full manifest every time, or do you publish only the checksums for the files that changed since the last revision? * How do you handle separate branches? * Do svn:keywords play a role in the calculation of the checksum? If not, why? These are not as easy problems to solve as it may initially appear :( ___ 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: Flash9and FreeBSD7.0isssue
Quoting Da Rock rock_on_the_...@comcen.com.au: On Fri, 2009-02-06 at 07:50 -0600, ec...@casasponti.net wrote: Quoting Da Rock rock_on_the_...@comcen.com.au: On Fri, 2009-02-06 at 05:43 +, dhaneshk k wrote: Hi list, I followed http://freebsd.langhans.com.pl/af/index.html To enable flash9 support for FreeBSD7.0 I installed FreeBSD7.0 with Linux compatibility so the first step (1.3 ) I skipped I would suggest linux_base-f8-8_11, the in /etc/sysctl.conf put: compat.linux.osrelease=2.6.16, Ahh yes. Forgot that point- a must for flash9. for firefox use the latest firefox3 Why firefox3? Isn't there stability issues? And doesn't the firefox still need to be linux-firefox? I hope not because I'm using it right now with a site that requires flash 9. IMO, it works much better than windows firefox with wine emulation plus the linux firefox-devel has a security issue, I believe. The only issue is with a few extra processes for flash on ocassion, but I'm not complaining. The version of FBSD firefox from ports firefox3 I'm using is 3.0.5. ed port (firefox-3.0.5_1,1) NOT firefox-devel, all the plugins that you want such as linux-flashplugin-9.0r152 and any others then nspluginwrapper-1.2.2_2 and run the script and start firefox3 and all should be well if I haven't forgotten something. I would guess that the principal problem is the firefox-devel port rather than firefox3. IIRC, it is pre-firefox3. ed second step I followed and installed latestfirefox-devel then I installed nspluginwrapper next step I downloaded this ftp://greyone.tulatelecom.ru/pub/linux/adobe/install_flash_player_9_linux.tar.gz from this link http://www.filewatcher.com/m/install_flash_player_9_linux.tar.gz.2608602.0.0.html as adobe.com not allowing me to download it. then I untarred itand copied libflashplayer.so to ~/.mozilla/plugins ( I created plugins directory as there is no default plugins directory in ~/.mozilla/ and I invoked the nspluginwrapper $ nspluginwrapper -v -a -i and observed that it created nswrapper.libflashplayer.so but $ nspluginwrapper -l given me the the message segmentation fault core dumped sig 11 what I made wrong ? I tried to restart the firefox and it restarted and showing message you updated to the latest fiefox version . but when I accessed the http://www.adobe.com/shockwave/welcome/ URL I am getting message in the console as LoadPlugin: failed to initialize shared library /home/dhanesh/.mozilla/plugins/libflashplayer.so [Shared object libdl.so.2 not found, required by libflashplayer.so] Gtk-Message: Failed to load module gnomebreakpad: libgnomebreakpad.so: cannot open shared object file: No such file or directory LoadPlugin: failed to initialize shared library /home/dhanesh/.mozilla/plugins/libflashplayer.so [Shared object libdl.so.2 not found, required by libflashplayer.so] Gtk-Message: Failed to load module gnomebreakpad: libgnomebreakpad.so: cannot open shared object file: No such file or directory but find commad showing that libdl.so.2 is ther in /usr/compat/linux/lib/libdl.so.2 # find / -name libdl.so.2 /usr/compat/linux/lib/libdl.so.2 [dhanesh]$ sysctl compat.linux.osrelease compat.linux.osrelease: 2.4.2 [dhanesh$ uname -a FreeBSD 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 any hints to make it work most welcome.. please see this paste also http://rafb.net/p/Yz7dBS79.html thanks in advance Been where you are, done all that. First, deinstall from ports emulators/linux_base-fc4 and make install linux_base-f8. Then make install from ports www/linux-firefox, www/nspluginwrapper and www/linux-flashplugin9. kldload linux, and mount -t linprocfs linproc /compat/linux/proc. Run nspluginwrapper and then run linux-firefox. Tada! All should work now, but it can be a little unstable. HTH. ___ 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 Failure is the opportunity to begin again more intelligently. Fracaso es la oportunidad de reiniciar con mas inteligencia Henry Ford ___ 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 Failure is the opportunity to begin again more intelligently. Fracaso es la oportunidad de reiniciar con mas
Re: lpr fixed, but the wrong-way... [?]
On Fri, Feb 06, 2009 at 11:17:13AM -0800, Gary Kline wrote: % lpr /etc/fstab works. from the apsfilter log, it lookas as tho i need to upgrade this libgs.so.8 shared library. but *how* do i find who/what build this library? % grep -l libgs /var/db/pkg/*/+CONTENTS -- David Kelly N4HHE, dke...@hiwaay.net Whom computers would destroy, they must first drive mad. ___ 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: Sendmail to Relay different domains to different hosts
On Fri, 6 Feb 2009 14:09:49 -0500, greg.st...@sungard.com wrote: Great! I will give this a try. If I put a single entry into the mailertable for the corporate domain would everything else default to the smarthost defined in sendmail.cf? Yes. If you want *everything* to be handled through mailertable you have to explicitly configure it to include a . left hand entry: corporate.domain esmtp:[internal.mail.server] .esmtp:[override.stp.relay] ___ 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: differences of disk usage between du and quota binaries
On Fri, 6 Feb 2009 20:13:17 +0100 Nicolas Letellier nico...@nicoelro.net wrote: Hello. I use FreeBSD 6.3. I set quota to my fs. But, when I print disk usage with du -sh, I have: .. Why this difference? (633M against 648264) Try dividing 648264 by 1024. ___ 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: disk recovery problem(s)
On Fri, Feb 06, 2009 at 02:48:41PM -0500, Robert Huff wrote: Had a power outage recently; when trying to fsck several external hard drives I'm getting unexpected errors. For example: huff@ fsck /dev/da3a ** /dev/da3a ** Last Mounted on /backup ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ROOT INODE UNALLOCATED ALLOCATE? [yn] a) what's probably happened? Error messages are explained in Appendix A of /usr/share/doc/smm/03.fsck/paper.ascii.gz Unfortunately it says that this error should never happen. :-/ Is the drive connected by USB? Some USB disk interface chips are quite quirky. b) is there a way to recover the data? Answer y, and all directorys and files found in the root will appear in lost+found, unless the attempt to allocate the root inode fails.. 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) pgpBz44yeGud9.pgp Description: PGP signature
Re: simple printer setup
On Fri, Feb 06, 2009 at 08:50:46PM +0100, Pieter Donche wrote: FreeBSD 7.0: what is the most simple and quickest way to set up printing from the unix command line to a few HP printers (all Postscript enabled) that have an IP address (direct printer to IP address) ? (printing of unix text files and postscript files) See Chapter 9 of the FreeBSD Handbook, especially §9.4.3 about remote printer setup and §9.4.1.2 about printing plain text on a postscript printer. 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) pgp6L1lBGvoFb.pgp Description: PGP signature
lpr fixed, but the wrong-way... [?]
it lookas as tho i need to upgrade this libgs.so.8 shared library. but *how* do i find who/what build this library? It is from one of the ghostscript ports, as you might expect when using postscript for printing. It probably failed because one of the libraries was corrupted, or someone updated a port/package without also updating the ports/packages that depend upon it. If, in the future, you install a file from a package or a port, and your package database files (by default, in /var/db/pkg ) aren't damaged (and no committer has screwed up by not adding files to a pkg-plist or not properly determining CONFLICTS in a port Makefile), then you can use: pkg_info -W path to file to determine the port or package to which the file belongs. In this case, for my machine: pkg_info -W /usr/local/lib/libgs.so.8 /usr/local/lib/libgs.so.8 was installed by package ghostscript8-8.63 although it could be something like ghostscript8-nox11-* on yours. pkg_which, from the ports-mgmt/portupgrade port, also does this ( see pkgdb(1) if you have this installed ). To get the path in the first place, use locate(1), find(1), or, for a shared library, something like: ldconfig -vr | grep 'libgs.so.8' 349:-lgs.8 = /usr/local/lib/libgs.so.8 There is a section on printing in the FreeBSD handbook, which you may find useful. Regards, b. ___ 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: Flash9 and FreeBSD7.0 isssue
dhaneshk k wrote: I followed http://freebsd.langhans.com.pl/af/index.html To enable flash9 support for FreeBSD7.0 In contrast to the other replies, I have flash9 running with linux_base-fc-4_14 using compat.linux.osrelease=2.4.2 in a native firefox3 (not the linux version). It runs ok. Occasionally, the plugin crashes for a new page with flash, but it does not take firefox with it. Reloading the page usually fixes it. The important difference to your setup is that I run FreeBSD 7.1. Since the main bug rendering flash9 unstable was fixed in 7-STABLE between 7.1-RC1 and 7.1-RC2, I do not think anything will fix flash9 on FreeBSD 7.0. Maybe you get better results with osrelease=2.6.16 _and_ a newer linux_base, but that is not necessary. Updating to 7.1 is. noscript or at least flashblock is a must... The procedure: Get firefox3, flash9, and nspluginwrapper up to date, remove everything with nspluginwrapper as root and as your user, auto install every plugin as root (-a -i -v), and put links in your ~/.mozilla/plugins: cd ~/.mozilla/plugins/ ln -s /usr/local/lib/browser_plugins/npwrapper.libflashplayer.so You need linprocfs mounted to /usr/compat/linux/proc -- see the manpage of linprocfs. Cheers, Jan Henrik ___ 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
installkernel on small disk
Hi all I've two servers (in fact guest in vmware) on don't have enought disk space to make buildkernel (or world). For the world freebsd-update can work. But for the kernel I've my own kernel. So if I compile the kernel on the other server how can I put it on the first ? Regards. -- Albert SHIH SIO batiment 15 Observatoire de Paris Meudon 5 Place Jules Janssen 92195 Meudon Cedex Heure local/Local time: Ven 6 fév 2009 21:18:28 CET ___ 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: xdm doesn't run as daemon
Anton Shterenlikht skrev: After upgrades of 23-24 Jan 2009 xdm is not working: # xdm # ps ax|grep xdm 75632 p1 S+ 0:00.01 grep xdm # cat /var/log/xdm.log # So no xdm daemon. My system: FreeBSD 6.4-STABLE alpha, xdm-1.1.8_1. Any ideas? No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.233 / Virus Database: 270.10.18/1935 - Release Date: 02/02/09 19:21:00 Hi Anton, Tried detaching it? xdm /R ___ 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
Gtk and GLib documentation in DevHelp
Hi all, I have Devhelp 0.19.1 installed on my system (7.1-RELEASE-p2). There are a lot of API references, but not the glib or gtk ones. I've installed glib20-reference and gtk20-reference packages, but those provide the HTML reference you can find in the proper sites. Where can I find the glib and gtk documentation integrated into DevHelp? Thanks in advance. ___ 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: Flash9 and FreeBSD7.0 isssue
On Fri, 6 Feb 2009, Jan Henrik Sylvester wrote: The procedure: Get firefox3, flash9, and nspluginwrapper up to date, Likewise. That's FreeBSD 7.1 or later, native Firefox 3, linux_base-fc4, linux-flashplugin9, and nspluginwrapper. remove everything with nspluginwrapper as root and as your user, auto install every plugin as root (-a -i -v), and put links in your ~/.mozilla/plugins: Or just run nspluginwrapper -a -i as your web browser user. The only link I had to create by hand was for Java. npviewer.bin leaves core dumps in my home directory way too often, and often makes the browser do nothing for seconds at a time. gnash runs better but still doesn't quite do all the Flash stuff. Maybe next release. -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: Flash9 and FreeBSD7.0 isssue
Warren Block wrote: On Fri, 6 Feb 2009, Jan Henrik Sylvester wrote: remove everything with nspluginwrapper as root and as your user, auto install every plugin as root (-a -i -v), and put links in your ~/.mozilla/plugins: Or just run nspluginwrapper -a -i as your web browser user. The only link I had to create by hand was for Java. The reason I recommended removing everything as root is that there could be an old version left from an old version of flash. For example, if you have 9.0r151 and 9.0r152 both wrapped in different directories, both will be picked up, which confuses firefox -- and you probably still have the vulnerability that was fixed with the upgrade. If there is just one wrapped version that all users link to symbolically, you just have to remember updating that after a portupgrade and everyone is up to date again. Of course, if you are the only user of your computer, keeping the wrapped versions in your home directory makes sense, too -- just avoid doing both. Cheers, Jan Henrik ___ 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 printer setup
On Fri, 6 Feb 2009, Pieter Donche wrote: FreeBSD 7.0: what is the most simple and quickest way to set up printing from the unix command line to a few HP printers (all Postscript enabled) that have an IP address (direct printer to IP address) ? (printing of unix text files and postscript files) The Handbook covers it, but takes its time getting around to network printers. Here's a short form: Put printer hostnames in /etc/hosts or DNS. Make a spool directory. Create a filter script for autodetecting PS and formatting text to PS. Put an entry in /etc/printcap. Enable and run lpd. Then use lpr to print. /usr/ports/print/enscript-* is useful for formatting text into PS. If you need to print something right now, you can use nc(1) to send files to the printers: nc myhplaser 9100 file.ps enscript -o - file.txt | nc myhplaser 9100 -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: lpr fixed, but the wrong-way... [?]
On Fri, Feb 06, 2009 at 02:10:23PM -0600, David Kelly wrote: On Fri, Feb 06, 2009 at 11:17:13AM -0800, Gary Kline wrote: % lpr /etc/fstab works. from the apsfilter log, it lookas as tho i need to upgrade this libgs.so.8 shared library. but *how* do i find who/what build this library? % grep -l libgs /var/db/pkg/*/+CONTENTS close, but grepping for libgs found a slew of ports but doing a grep -l libgs.so found print/ghostscript8, :-) thankee! gary -- David Kelly N4HHE, dke...@hiwaay.net Whom computers would destroy, they must first drive mad. -- Gary Kline kl...@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 2.23a 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
SSH XForwarding Failure
I have absolutely no clue why this isn't working. xauth is installed $DISPLAY is localhost:10.0 XForwarding is enabled in sshd_config and I invoked ssh with -X. %/usr/local/bin/xauth list phantomcircuit.mine.nu/unix:11 MIT-MAGIC-COOKIE-1 eea299b0035168d92d95659436874a80 phantomcircuit.mine.nu/unix:12 MIT-MAGIC-COOKIE-1 e05b1ac4522781c3be2049a35782b704 phantomcircuit.mine.nu/unix:10 MIT-MAGIC-COOKIE-1 c9c16e95897333c3f300817f50ef9344 %/usr/local/bin/xauth list :0.0 %echo $DISPLAY localhost:10.0 % Attempt to use XForwarding $ ssh -Xvv phantomcirc...@covertinferno.org OpenSSH_5.1p1 Debian-3ubuntu1, OpenSSL 0.9.8g 19 Oct 2007 debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to covertinferno.org [76.199.103.250] port 22. debug1: Connection established. debug1: identity file /home/username/.ssh/identity type -1 debug2: key_type_from_name: unknown key type '-BEGIN' debug2: key_type_from_name: unknown key type 'Proc-Type:' debug2: key_type_from_name: unknown key type 'DEK-Info:' debug2: key_type_from_name: unknown key type '-END' debug1: identity file /home/username/.ssh/id_rsa type 1 debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-4096 debug1: Checking blacklist file /etc/ssh/blacklist.RSA-4096 debug1: identity file /home/username/.ssh/id_dsa type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1p1 CovertInferno debug1: match: OpenSSH_5.1p1 CovertInferno pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_5.1p1 Debian-3ubuntu1 debug2: fd 3 setting O_NONBLOCK debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-...@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-...@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac...@openssh.com,hmac-ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac...@openssh.com,hmac-ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96 debug2: kex_parse_kexinit: none,z...@openssh.com,zlib debug2: kex_parse_kexinit: none,z...@openssh.com,zlib debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss debug2: kex_parse_kexinit: aes128-cbc,blowfish-cbc,arcfour128,arcfour256,aes192-cbc,aes256-cbc,aes128-ctr,aes256-ctr debug2: kex_parse_kexinit: aes128-cbc,blowfish-cbc,arcfour128,arcfour256,aes192-cbc,aes256-cbc,aes128-ctr,aes256-ctr debug2: kex_parse_kexinit: hmac-sha1,hmac-ripemd160,hmac-sha1-96 debug2: kex_parse_kexinit: hmac-sha1,hmac-ripemd160,hmac-sha1-96 debug2: kex_parse_kexinit: none,z...@openssh.com debug2: kex_parse_kexinit: none,z...@openssh.com debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: debug2: kex_parse_kexinit: first_kex_follows 0 debug2: kex_parse_kexinit: reserved 0 debug2: mac_setup: found hmac-sha1 debug1: kex: server-client aes128-cbc hmac-sha1 none debug2: mac_setup: found hmac-sha1 debug1: kex: client-server aes128-cbc hmac-sha1 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102420488192) sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug2: dh_gen_key: priv key bits set: 158/320 debug2: bits set: 1039/2048 debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host 'covertinferno.org' is known and matches the RSA host key. debug1: Found key in /home/username/.ssh/known_hosts:3 debug2: bits set: 1026/2048 debug1: ssh_rsa_verify: signature correct debug2: kex_derive_keys debug2: set_newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug2: set_newkeys: mode 0 debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug2: service_accept: ssh-userauth debug1: SSH2_MSG_SERVICE_ACCEPT received debug2: key: /home/username/.ssh/id_rsa (0x4c75353ab9d1) debug2: key: /home/username/.ssh/identity ((nil)) debug2: key: /home/username/.ssh/id_dsa ((nil)) This computer system is in California. By connecting you accept the Terms of Service found at http://covertinferno.org/tos.xhtml. debug1: Authentications that can continue: publickey,keyboard-interactive debug1: Next authentication method: publickey debug1: Offering public key:
portsnap: Directory is not writable: /usr/ports
Everyone, I'm running a number of jails (created using ezjail) on a FreeBSD 6.4 server (RELENG_6_4). If I do a uname -a, I get the following... FreeBSD machine.domain.tld 6.4-RELEASE-p2 FreeBSD 6.4-RELEASE-p2 #0: Fri Jan 9 00:01:13 GMT 2009 r...@machine.domain.tld:/usr/obj/usr/src/sys/MACHINE i386 In any case, portaudit recently let me know that some of my installed packages have been updated so I set the kern_securelevel setting in /etc/rc.conf to 1 and rebooted the machine. I then, as root, executed portsnap fetch update. Portsnap downloaded the snapshot file, but when it tried to extract it, it failed and I was presented with the following... portsnap: Directory is not writable: /usr/ports If I execute ls -al /usr/, one of the lines I get back are as follows... lrwxrwxrwx 1 root wheel 19 Jan 22 20:07 ports - /basejail/usr/ports I'm at something of a loss as to why this is happening. I'm logged in as root, and the above line clearly shows I have full permissions. If I do a ls -al /basejail/usr/, one of the lines I get back are... drwxr-xr-x 68 root wheel 1536 Jan 9 23:53 ports Anyone have any ideas why this is happening? ___ 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
insert new line in files
I want to insert a new line of text at a certain position in certain files recursively under a directory. More specifically, I want text like this: include('/usr/home/www/imp-sites/default_inventory.php'); to be put into file X at line 37 where file X appears in ./subdir1, .subdir2 etc. There are many subdirs or I'd just do it by hand. I've done stuff like this before with the rpl script and it works well as long as there aren't any special characters in the strings. So I assumed I finally hit the point where I'm forced to learn something like sed or awk and tried some examples with sed but I can't figure out what I'm doing wrong. I get results like this: sed '5i\test' test.txt sed: 1: 5i\test: extra characters after \ at the end of i command Is sed the right tool for this? If so, any good primers for BSD sed? ___ 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: insert new line in files
In the last episode (Feb 06), Adam Vande More said: I want to insert a new line of text at a certain position in certain files recursively under a directory. More specifically, I want text like this: include('/usr/home/www/imp-sites/default_inventory.php'); to be put into file X at line 37 where file X appears in ./subdir1, .subdir2 etc. There are many subdirs or I'd just do it by hand. I've done stuff like this before with the rpl script and it works well as long as there aren't any special characters in the strings. So I assumed I finally hit the point where I'm forced to learn something like sed or awk and tried some examples with sed but I can't figure out what I'm doing wrong. I get results like this: sed '5i\test' test.txt sed: 1: 5i\test: extra characters after \ at the end of i command You want: sed -e '5i\ test' test.txt i.e. a linebreak after the backslash. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: insert new line in files
Dan Nelson wrote: In the last episode (Feb 06), Adam Vande More said: I want to insert a new line of text at a certain position in certain files recursively under a directory. More specifically, I want text like this: include('/usr/home/www/imp-sites/default_inventory.php'); to be put into file X at line 37 where file X appears in ./subdir1, .subdir2 etc. There are many subdirs or I'd just do it by hand. I've done stuff like this before with the rpl script and it works well as long as there aren't any special characters in the strings. So I assumed I finally hit the point where I'm forced to learn something like sed or awk and tried some examples with sed but I can't figure out what I'm doing wrong. I get results like this: sed '5i\test' test.txt sed: 1: 5i\test: extra characters after \ at the end of i command You want: sed -e '5i\ test' test.txt i.e. a linebreak after the backslash. I had actually tried that too: sed -e '5i\ ? test' text.txt sed: 1: 5i test : command i expects \ followed by text ___ 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: insert new line in files
Adam Vande More wrote: Dan Nelson wrote: You want: sed -e '5i\ test' test.txt i.e. a linebreak after the backslash. I had actually tried that too: sed -e '5i\ ? test' text.txt sed: 1: 5i test : command i expects \ followed by text Try: # sed -e 5i\\ ? test text.txt Note the double-quotes and two \\. I just ran into this today ;) Steve ___ 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: insert new line in files
In the last episode (Feb 06), Adam Vande More said: Dan Nelson wrote: In the last episode (Feb 06), Adam Vande More said: I want to insert a new line of text at a certain position in certain files recursively under a directory. More specifically, I want text like this: include('/usr/home/www/imp-sites/default_inventory.php'); to be put into file X at line 37 where file X appears in ./subdir1, .subdir2 etc. There are many subdirs or I'd just do it by hand. I've done stuff like this before with the rpl script and it works well as long as there aren't any special characters in the strings. So I assumed I finally hit the point where I'm forced to learn something like sed or awk and tried some examples with sed but I can't figure out what I'm doing wrong. I get results like this: sed '5i\test' test.txt sed: 1: 5i\test: extra characters after \ at the end of i command You want: sed -e '5i\ test' test.txt i.e. a linebreak after the backslash. I had actually tried that too: sed -e '5i\ ? test' text.txt sed: 1: 5i test : command i expects \ followed by text I don't see a backslash in the error message, which means something ate it. Are you running this command from something other than the commandline or a plain sh script? If you're calling this from another scripting language (via system() or popen() or something similar), you probably have to double the backslash so whatever's parsing it out passes one through to sed. -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: insert new line in files
Dan Nelson wrote: I had actually tried that too: sed -e '5i\ ? test' text.txt sed: 1: 5i test : command i expects \ followed by text I don't see a backslash in the error message, which means something ate it. Are you running this command from something other than the commandline or a plain sh script? If you're calling this from another scripting language (via system() or popen() or something similar), you probably have to double the backslash so whatever's parsing it out passes one through to sed. This is being executed from stock tcsh Progress is being made as it works in the test now with the \\ however I'm running into more things I don't understand in regards to what I need to escape in my input string. sed -e '5i\\ include(\'/usr/home/www/imp-sites/default_inventory.php\');' test.txt Unmatched '. I also tried escaping ( ) . / to no avail. ___ 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: insert new line in files
Adam Vande More wrote: Dan Nelson wrote: I had actually tried that too: sed -e '5i\ ? test' text.txt sed: 1: 5i test : command i expects \ followed by text I don't see a backslash in the error message, which means something ate it. Are you running this command from something other than the commandline or a plain sh script? If you're calling this from another scripting language (via system() or popen() or something similar), you probably have to double the backslash so whatever's parsing it out passes one through to sed. This is being executed from stock tcsh Progress is being made as it works in the test now with the \\ however I'm running into more things I don't understand in regards to what I need to escape in my input string. sed -e '5i\\ include(\'/usr/home/www/imp-sites/default_inventory.php\');' test.txt Unmatched '. I also tried escaping ( ) . / to no avail. nevermind I see I have to \\ that as well. Okay now I'm going to try to find a way to do this with find and xargs ___ 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: insert new line in files
Adam Vande More wrote: Dan Nelson wrote: I had actually tried that too: sed -e '5i\ ? test' text.txt sed: 1: 5i test : command i expects \ followed by text I don't see a backslash in the error message, which means something ate it. Are you running this command from something other than the commandline or a plain sh script? If you're calling this from another scripting language (via system() or popen() or something similar), you probably have to double the backslash so whatever's parsing it out passes one through to sed. This is being executed from stock tcsh Progress is being made as it works in the test now with the \\ however I'm running into more things I don't understand in regards to what I need to escape in my input string. sed -e '5i\\ include(\'/usr/home/www/imp-sites/default_inventory.php\');' test.txt Unmatched '. I also tried escaping ( ) . / to no avail. I don't know for sure under tcsh, but did you try double quotes as I suggested? Using them may prevent the normally special characters from being interpolated. If it doesn't work, then hopefully escaping them will. Steve ___ 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: Multiple MAC on a single (physical) interface
Le Vendredi 6 à 15:51, Nikos Vassiliadis a écrit : FreeBSD will then know that network 10.0.0.0/24 is attached to fxp0 and will use fxp0's IP and MAC address to do the ARP query... So, in short, if you use such a setup: fxp0 10.0.0.1/24 ether 00:00:00:01:01:01 ngeth0 10.0.0.2/32 ether 00:00:00:02:02:02 ngeth1 10.0.0.3/32 ether 00:00:00:03:03:03 The IP address in use will be the 10.0.0.1 one and the MAC address will be the 00:00:00:01:01:01 one. Yes indeed : if I do from another host : $ arping [ngeth0 IP] I get rl0's MAC as an answer, and doig 'tcpdump -i rl0 ether host [ngeth0 MAC]' when ssh to my jail behind ngeth0, I don't see any activity. If I manually add ngeth0's MAC to the other host arp cache, ssh'ing to my jail works, and packets do have ngeth0's MAC. I won't be able to work any further on this before next week. Thanks a lot for your help, Nikos. -- Fred For the record, my network config looks like (minus lo0) : % ifconfig rl0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:1c:f0:f8:cd:d6 inet6 fe80::21c:f0ff:fef8:cdd6%rl0 prefixlen 64 scopeid 0x1 inet 172.22.209.241 netmask 0xe000 broadcast 172.22.223.255 inet6 2001:660:7302:3:21c:f0ff:fef8:cdd6 prefixlen 64 autoconf media: Ethernet autoselect (100baseTX full-duplex) status: active ngeth0: flags=8943UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST metric 0 mtu 1500 ether 00:00:39:56:f1:1a inet6 fe80::200:39ff:fe56:f11a%ngeth0 prefixlen 64 scopeid 0x4 inet 172.22.212.7 netmask 0x broadcast 172.22.212.7 bridge0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 ether 56:34:43:fd:04:57 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 100 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: ngeth0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP ifmaxaddr 0 port 4 priority 128 path cost 200 member: rl0 flags=143LEARNING,DISCOVER,AUTOEDGE,AUTOPTP ifmaxaddr 0 port 1 priority 128 path cost 20 ___ 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: insert new line in files
Adam Vande More wrote: I also tried escaping ( ) . / to no avail. nevermind I see I have to \\ that as well. Okay now I'm going to try to find a way to do this with find and xargs IMHO, this has become a job for Perl :) Steve ___ 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: insert new line in files
Just as a possible starting point... On Fri, 06 Feb 2009 22:50:38 +, Adam Vande More amvandem...@gmail.com wrote: I want to insert a new line of text at a certain position in certain files recursively under a directory. More specifically, I want text like this: include('/usr/home/www/imp-sites/default_inventory.php'); to be put into file X at line 37 where file X appears in ./subdir1, .subdir2 etc. There are many subdirs or I'd just do it by hand. [...] Is sed the right tool for this? If so, any good primers for BSD sed? I'd suggest awk. If you have already a mechanism to handle each of the files that need alteration, an awk command could be this: awk '{ print $0; if(NR == 37) printf(include('/usr/home/www/imp-sites/default_inventory.php');\n); }' file It may be neccessary to have a look at the multiple ' (awk skript enclosure, include() parameter enclusure). -- Polytropon From 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: disk recovery problem(s)
On Fri, 6 Feb 2009 14:48:41 -0500, Robert Huff roberth...@rcn.com wrote: Had a power outage recently; when trying to fsck several external hard drives I'm getting unexpected errors. For example: huff@ fsck /dev/da3a ** /dev/da3a ** Last Mounted on /backup ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ROOT INODE UNALLOCATED ALLOCATE? [yn] a) what's probably happened? b) is there a way to recover the data? I can scrub the disk and restore, but would like to avoid that if at all possible. I really hope you don't get into the trouble that I have (allthough you mentioned that you've got backups)... Your fsck output seems to indicate that fsck can handle the damage. You could now let it continue. If a parent inode has disappeared, its child inodes (orphaned ones) - or, to be correct, the files or directories they represent - get restored in the lost+found/ directory where their name (probably lost) gets replaced by the inode number. If it's a directory, it content will usually be present with the file names, only the topmost part of a hierarchy will be affected. -- Polytropon From 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: having trouble with OpenOffice
Andrew Falanga wrote: On Thu, Feb 5, 2009 at 10:08 PM, Adam Vande More amvandem...@gmail.comwrote: af300...@gmail.com wrote: Hi, Tonight I finally took the bull by the horns and got OpenOffice installed. However, I'm not having a problem that I haven't found an answer to yet but seems to be related to the X server (from searches on the net). So, I do this: [a...@sniper /usr/home/andy]$ /usr/local/bin/openoffice.org-2.4.2-scalc I18N: Operating system doesn't support locale en_US The application cannot be started. The component manager is not available. Segmentation fault (core dumped) As you can tell, OpenOffice failed because my OS doesn't support locale en_US. Huh!?! I'm using the English version. In fact, the only way to consider me as being bilingual is something of a matter of mental gymnastics because English is spoken in England and to me, England is a foreign country. Thus, I'm bilingual, or at the least, I speak a foreign language. Never the less, how would this be fixed? [snip] Two things come to mind. You can change your locale to one of the en_US varieties. Probably not what you want to do. The other is to install the appropriate en_GB OpenOffice.org I18N langpack. O_o.org out of the box only has built in for en_US, but there are langpacks available for many others. A quick perfunctory perusal of the ports tree and I didn't see these. Possibly this might be useable: ftp://ooopackages.good-day.net/pub/OpenOffice.org/FreeBSD/ -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: insert new line in files
Steve Bertrand wrote: Adam Vande More wrote: I also tried escaping ( ) . / to no avail. nevermind I see I have to \\ that as well. Okay now I'm going to try to find a way to do this with find and xargs IMHO, this has become a job for Perl :) Steve Thanks for help everyone. My final command was this: skynet1# find . -name 'filename.php' | xargs sed -i.old -e '37a\\ include(/usr/home/www/imp-sites/default_inventory.php);' I used double quotes because I couldn't finger out how to the single quote. Good enough for me. ___ 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: Link UP/DOWN problem with re0 on FreeBSD 7.1
-Original Message- From: FreeBSD [mailto:free...@optiksecurite.com] Sent: 06 February 2009 16:47 To: Graeme Dargie Cc: freebsd-questions@freebsd.org Subject: Re: Link UP/DOWN problem with re0 on FreeBSD 7.1 Graeme Dargie a écrit : -Original Message- From: FreeBSD [mailto:free...@optiksecurite.com] Sent: 04 February 2009 21:55 Cc: freebsd-questions@freebsd.org Subject: Re: Link UP/DOWN problem with re0 on FreeBSD 7.1 FreeBSD a écrit : Graeme Dargie a écrit : If you do a dmesg are you also showing a watchdog time out for the nic ? I only ask as I am having the exact same problem with the exact same card and I have yet to find a solution, if I come across something I will let you know. Regards Graeme Not a single time...sorry. -Original Message- From: FreeBSD [mailto:free...@optiksecurite.com] Sent: 26 January 2009 18:58 To: freebsd-questions@freebsd.org Subject: Re: Link UP/DOWN problem with re0 on FreeBSD 7.1 FreeBSD a écrit : Hi everyone, Just to put you in context, I applied the following patch to make the card available: SVN rev 186389 on 2008-12-22 00:46:22Z by yongari Since we don't request reset for rlphy(4), the link state 'UP' event from mii(4) may not be delivered if valid link was already established. To address the issue, check current link state after driving MII_TICK. This should fix a regression introduced in r185753 on fast ethernet controllers. --- I don't have any issue related to that anymore. The problem is that I get link UP/DOWN a few times per hour on 3 identical machines that I dumped/restored. They are all pluged in a Cisco switch that works fine for every other PCs. Jan 26 06:09:15 term005 kernel: re0: link state changed to DOWN Jan 26 06:09:17 term005 kernel: re0: link state changed to UP I tried to switch cables, but I got the same result. There is the pciconf -lv output: r...@pci0:3:0:0: class=0x02 card=0x02831028 chip=0x816810ec rev=0x02 hdr=0x00 vendor = 'Realtek Semiconductor' device = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC' class = network subclass = ethernet There is the output of vmstat -i: interrupt total rate irq18: re0 ehci0++ 63766 0 irq19: atapci0277001 3 cpu0: timer156068748 1961 Total 156409515 1966 Could it be related to the fact that there is re0 and ehci0++ on the same IRQ? Thank you for your help, Martin I just tried with a brand new Dell 2708 switch and the problem is still there. I just confirmed that the UP/DOWN occurs every 10 minutes (+- a few seconds). Thanks again, Martin Just to follow-up on my own problem... I tried to disable some options of the card with : ifconfig re0 -rxcsum -txcsum -tso -lro -vlanhwtag but nothing as changed. I just tried to download a big file (FreeBSD 7.1-REL DVD iso in fact) to see if the deconnection occurs even during a transfer. The DVD downloaded successfully and I verified that the MD5 are OK. BUT, /var/log/messages continue to tell me that: Feb 4 16:09:29 term003 kernel: re0: link state changed to UP Feb 4 16:19:26 term003 kernel: re0: link state changed to DOWN Feb 4 16:19:30 term003 kernel: re0: link state changed to UP Feb 4 16:19:32 term003 kernel: re0: link state changed to DOWN during the transfer (which worked OK). I don't know if that can help someone to help me ;) Thanks, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org I have a solution to this well a work around. Add -tso to the relevant line in /etc/rc.conf ifconfig_re0=inet 192.168.1.103 netmask 255.255.255.0 -tso Adding -tso stops the link up / link down problem. Now I am understand that this may increase cpu if the traffic on the nic is high. I am sure some one the list will know of any other implications this may have. It is a known problem and I site I read the bug had been submitted so hopefully it wont exist in 8.0 Regards Graeme As I stated in my last post, I tried to disable a few options, including TSO. Still, I gived a try to your workaround. I now have this line in rc.conf: ifconfig_re0=DHCP -tso but I have the same problem (it disconnect every 10 minutes and ask for an IP to the DHCP). Thanks for your suggestion, Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org I don't use DHCP so it never causes me a problem, have you considered setting a static IP address ? Regards Graeme
Re: disk recovery problem(s)
Roland Smith writes: huff@ fsck /dev/da3a ** /dev/da3a ** Last Mounted on /backup ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ROOT INODE UNALLOCATED ALLOCATE? [yn] a) what's probably happened? Error messages are explained in Appendix A of /usr/share/doc/smm/03.fsck/paper.ascii.gz Unfortunately it says that this error should never happen. :-/ Answer y, and all directorys and files found in the root will appear in lost+found, unless the attempt to allocate the root inode fails.. Thank you. That worked ... sort of. Robert Huff ___ 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: IPFW in-kernel NAT: How to compile?
At 05:43 PM 2/1/2009, Dan Nelson wrote: Do you have options LIBALIAS in your kernel config? Nope. There was nothing that said that such an option was needed (or even that it existed). I did find it, via a recursive grep, in a file labeled NOTES a couple of levels up in the directory hierarchy. I'm trying a compile now to see if that's all that's needed to fix the problem. It looks as if there's no longer one easy place to find out how to configure a kernel. The options used to all be in a LINT file that was present in the configuration directory No more. The LINT file moved from a static file to a dynamically-generated file a while ago since not all options are applicable for all platforms. A generic NOTES file (in /usr/src/sys/conf) is combined with a platform-specific NOTES file (in /usr/src/sys/platform/conf, where platform is i386, amd64, pc98, etc) to create the LINT file. $ cd /usr/src/sys/i386/conf $ make LINT cat ../../conf/NOTES NOTES | sed -E -n -f ../../conf/makeLINT.sed LINT Regards, -- Matt Emmerton ___ 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
disk recovery problem II
One of the disks mentioned in part one was not recoverable. So: newfs. However, something else is broken. Results of newfs is appended. What? Robert Huff huff@ newfs /dev/da3a /dev/da3a: 78167.2MB (160086512 sectors) block size 16384, fragment size 2048 using 426 cylinder groups of 183.77MB, 11761 blks, 23552 inodes. super-block backups (for fsck -b #) at: 160, 376512, 752864, 1129216, 1505568, 1881920, 2258272, 2634624, 3010976, 3387328, 3763680, 4140032, 4516384, 4892736, 5269088, 5645440, 6021792, 6398144, 6774496, 7150848, 7527200, 7903552, 8279904, 8656256, 9032608, 9408960, 9785312, 10161664, 10538016, 10914368, 11290720, 11667072, 12043424, 12419776, 12796128, 13172480, 13548832, 13925184, 14301536, 14677888, 15054240, 15430592, 15806944, 16183296, 16559648, 16936000, 17312352, 17688704, 18065056, 18441408, 18817760, 19194112, 19570464, 19946816, 20323168, 20699520, 21075872, 21452224, 21828576, 22204928, 22581280, 22957632, 2984, 23710336, 24086688, 24463040, 24839392, 25215744, 25592096, 25968448, 26344800, 26721152, 27097504, 27473856, 27850208, 28226560, 28602912, 28979264, 29355616, 29731968, 30108320, 30484672, 30861024, 31237376, 31613728, 31990080, 32366432, 32742784, 33119136, 33495488, 33871840, 34248192, 34624544, 35000896, 35377248, 35753600, 36129952, 36506304, 36882656, 37259008, 37635360, 38011712, 38388064, 38764416, 39140768, 39517120, 39893472, 40269824, 40646176, 41022528, 41398880, 41775232, 42151584, 42527936, 42904288, 43280640, 43656992, 44033344, 44409696, 44786048, 45162400, 45538752, 45915104, 46291456, 46667808, 47044160, 47420512, 47796864, 48173216, 48549568, 48925920, 49302272, 49678624, 50054976, 50431328, 50807680, 51184032, 51560384, 51936736, 52313088, 52689440, 53065792, 53442144, 53818496, 54194848, 54571200, 54947552, 55323904, 55700256, 56076608, 56452960, 56829312, 57205664, 57582016, 57958368, 58334720, 58711072, 59087424, 59463776, 59840128, 60216480, 60592832, 60969184, 61345536, 61721888, 62098240, 62474592, 62850944, 63227296, 63603648, 6398, 64356352, 64732704, 65109056, 65485408, 65861760, 66238112, 66614464, 66990816, 67367168, 67743520, 68119872, 68496224, 68872576, 69248928, 69625280, 70001632, 70377984, 70754336, 71130688, 71507040, 71883392, 72259744, 72636096, 73012448, 73388800, 73765152, 74141504, 74517856, 74894208, 75270560, 75646912, 76023264, 76399616, 76775968, 77152320, 77528672, 77905024, 78281376, 78657728, 79034080, 79410432, 79786784, 80163136, 80539488, 80915840, 81292192, 81668544, 82044896, 82421248, 82797600, 83173952, 83550304, 83926656, 84303008, 84679360, 85055712, 85432064, 85808416, 86184768, 86561120, 86937472, 87313824, 87690176, 88066528, 88442880, 88819232, 89195584, 89571936, 89948288, 90324640, 90700992, 91077344, 91453696, 91830048, 92206400, 92582752, 92959104, 93335456, 93711808, 94088160, 94464512, 94840864, 95217216, 95593568, 95969920, 96346272, 96722624, 97098976, 97475328, 97851680, 98228032, 98604384, 98980736, 99357088, 99733440, 100109792, 100486144, 100862496, 101238848, 101615200, 101991552, 102367904, 102744256, 103120608, 103496960, 103873312, 104249664, 104626016, 105002368, 105378720, 105755072, 106131424, 106507776, 106884128, 107260480, 107636832, 108013184, 108389536, 108765888, 109142240, 109518592, 109894944, 110271296, 110647648, 111024000, 111400352, 111776704, 112153056, 112529408, 112905760, 113282112, 113658464, 114034816, 114411168, 114787520, 115163872, 115540224, 115916576, 116292928, 116669280, 117045632, 117421984, 117798336, 118174688, 118551040, 118927392, 119303744, 119680096, 120056448, 120432800, 120809152, 121185504, 121561856, 121938208, 122314560, 122690912, 123067264, 123443616, 123819968, 124196320, 124572672, 124949024, 125325376, 125701728, 126078080, 126454432, 126830784, 127207136, 127583488, 127959840, 128336192, 128712544, 129088896, 129465248, 129841600, 130217952, 130594304, 130970656, 131347008, 131723360, 132099712, 132476064, 132852416, 133228768, 133605120, 133981472, 134357824, 134734176, 135110528, 135486880, 135863232, 136239584, 136615936, 136992288, 137368640, 137744992, 138121344, 138497696, 138874048, 139250400, 139626752, 140003104, 140379456, 140755808, 141132160, 141508512, 141884864, 142261216, 142637568, 143013920, 143390272, 143766624, 144142976, 144519328, 144895680, 145272032, 145648384, 146024736, 146401088, 146777440, 147153792, 147530144, 147906496, 148282848, 148659200, 149035552, 149411904, 149788256, 150164608, 150540960, 150917312, 151293664, 151670016, 152046368, 152422720, 152799072, 153175424, 153551776, 153928128, 154304480, 154680832, 155057184, 155433536, 155809888, 156186240, 156562592, 156938944, 157315296, 157691648, 158068000, 158444352, 158820704, 159197056, 159573408, 159949760 cg 0: bad magic number ___ freebsd-questions@freebsd.org
[mi] EQ overflowing mieqEnequeue: out-of-order valuator event
No idea the steps to reproduce this hard lockup, ssh'ing in and killing X resulted in a test pattern look to my monitor. While it was hung, keyboard caps/num lock wouldn't respond, nor would the mouse move. The ]mi] lines repeate about 600 times in the log at the end. Shall I submit a PR for this? (WW) intel(0): ESR is 0x0001, instruction error (WW) intel(0): Existing errors found in hardware state. (II) intel(0): Output configuration: (II) intel(0): Pipe A is on (II) intel(0): Display plane A is now enabled and connected to pipe A. (II) intel(0): Pipe B is off (II) intel(0): Display plane B is now disabled and connected to pipe B. (II) intel(0): Output VGA is connected to pipe A (II) intel(0): [drm] dma control initialized, using IRQ 255 [mi] EQ overflowing. The server is probably stuck in an infinite loop. [mi] mieqEnequeue: out-of-order valuator event; dropping. FreeBSD fortytwo.zapto.org 7.1-STABLE FreeBSD 7.1-STABLE #0: Tue Jan 6 03:43:02 EST 2009 jim...@fortytwo.zapto.org:/usr/obj/usr/src/sys/FORTYTWO i386 pciconf, xorg.conf and Xorg.0.log included. vgap...@pci0:0:2:0: class=0x03 card=0x25821043 chip=0x25828086 rev=0x04 hdr=0x00 vendor = 'Intel Corporation' device = '82915G/GV/GL, 82910GL Integrated Graphics Device' class = display subclass = VGA vgap...@pci0:0:2:1: class=0x038000 card=0x25821043 chip=0x27828086 rev=0x04 hdr=0x00 vendor = 'Intel Corporation' device = '82915G Graphics device: 82915G/GV/910GL Express Chipset Family' class = display Section ServerLayout Identifier Simple Layout Screen Screen 1 0 0 InputDeviceMouse1 CorePointer InputDeviceKeyboard1 CoreKeyboard Option AllowEmptyInput OFF Option AutoAddDevices OFF EndSection Section Files ModulePath /usr/local/lib/xorg/modules FontPath /usr/local/lib/X11/fonts/local/ FontPath /usr/local/lib/X11/fonts/misc/ FontPath /usr/local/lib/X11/fonts/75dpi/:unscaled FontPath /usr/local/lib/X11/fonts/100dpi/:unscaled FontPath /usr/local/lib/X11/fonts/Type1/ FontPath /usr/local/lib/X11/fonts/75dpi/ FontPath /usr/local/lib/X11/fonts/100dpi/ FontPath /usr/local/lib/X11/fonts/TTF/ FontPath /usr/local/lib/X11/fonts/artwiz-fonts/ FontPath /usr/local/lib/X11/fonts/webfonts/ FontPath /usr/local/lib/X11/fonts/URW/ FontPath /usr/local/lib/X11/fonts/jmk FontPath /usr/local/lib/X11/fonts/terminus-font FontPath /usr/local/lib/X11/fonts/artwiz-fonts EndSection Section ServerFlags Option AIGLX true EndSection Section Module Load GLcore Load glx Load dri Load drm Load vbe Load int10 EndSection Section InputDevice Identifier Keyboard1 Driver kbd Option pc101 EndSection Section InputDevice Identifier Mouse1 Driver mouse Option Protocol AUTO Option Device /dev/sysmouse Option Buttons 10 Option ZAxisMapping 4 5 Option ButtonMapping 1 2 3 6 7 8 9 10 4 5 Option Emulate3Buttons no EndSection Section Monitor HorizSync 31-65 VertRefresh 55-100 Identifier monitor0 EndSection Section Device Identifier i810 Driver intel VendorName Intel BoardName 82915G/GV/910GL Express Chipset Family Graphics Controller BusID PCI:0:2:0 EndSection Section Screen Identifier Screen 1 Device i810 Monitormonitor0 DefaultDepth 16 Subsection Display Modes 1280x1024 1024x768 Depth 16 EndSubSection EndSection Section DRI Mode 0666 EndSection X.Org X Server 1.5.3 Release Date: 5 November 2008 X Protocol Version 11, Revision 0 Build Operating System: FreeBSD 7.1-STABLE i386 Current Operating System: FreeBSD fortytwo.zapto.org 7.1-STABLE FreeBSD 7.1-STABLE #0: Tue Jan 6 03:43:02 EST 2009 jim...@fortytwo.zapto.org:/usr/obj/usr/src/sys/FORTYTWO i386 Build Date: 29 January 2009 11:53:48AM Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: /var/log/Xorg.0.log, Time: Fri Jan 30 10:14:19 2009 (==) Using config file: /etc/X11/xorg.conf (==) ServerLayout Simple Layout (**) |--Screen Screen 1 (0) (**) | |--Monitor monitor0 (**) | |--Device i810 (**) |--Input Device Mouse1 (**) |--Input Device Keyboard1 (**) Option AIGLX true (**) Option
Re: broken ports
On Thu, Feb 05, 2009 at 10:18:52AM +, David Collins wrote: Sorry, forgot about that. Looking at it again I am not sure this is a ports thing, and more of an issue with the compiling tool chain. viper:/usr/ports/net-p2p/rtorrent$ sudo make === Vulnerability check disabled, database not found === Found saved configuration for rtorrent-0.8.2_1 = rtorrent-0.8.2.tar.gz doesn't seem to exist in /usr/ports/distfiles/. = Attempting to fetch from http://libtorrent.rakshasa.no/downloads/. rtorrent-0.8.2.tar.gz 100% of 494 kB 48 kBps 00m00s === Extracting for rtorrent-0.8.2_1 = MD5 Checksum OK for rtorrent-0.8.2.tar.gz. = SHA256 Checksum OK for rtorrent-0.8.2.tar.gz. === Patching for rtorrent-0.8.2_1 === Applying FreeBSD patches for rtorrent-0.8.2_1 === rtorrent-0.8.2_1 depends on package: libtorrent=0.12.2 - found === rtorrent-0.8.2_1 depends on shared library: curl.5 - found === Configuring for rtorrent-0.8.2_1 checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel checking whether build environment is sane... yes checking for a thread-safe mkdir -p... ./install-sh -c -d checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables See `config.log' for more details. === Script configure failed unexpectedly. Please report the problem to f...@freebsd.org [maintainer] and attach the /usr/ports/net-p2p/rtorrent/work/rtorrent-0.8.2/config.log including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. an `ls /var/db/pkg`). *** Error code 1 Stop in /usr/ports/net-p2p/rtorrent. *** Error code 1 Stop in /usr/ports/net-p2p/rtorrent. Also this might help viper:/usr/ports/net-p2p/rtorrent$ uname -a FreeBSD viper.homeunix.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 On 05/02/2009, Dominic Fandrey kamik...@bsdforen.de wrote: David Collins wrote: Hi, I am not sure if this is better here or in the ports list, but I thought that since it is something that I have done because I don't know what I am doing here would be better A while ago I installed ports and everything was working fine. Recently I thought one of my ports was causing my machine to crash so I uninstalled it, but later found out that the only problem was a poor wireless network and low diskspace. Trying to reinstall the port failed at the configure stage. I tried a few others and they also failed at the same stage. This leads me to believe that it is something I have done. So here is the make install error: === Script configure failed unexpectedly.Please report the problem to kuriy...@freebsd.org [maintainer] and attach the/usr/ports/textproc/expat2/work/expat-2.0.1/config.log including the outputof the failure of your make command. Also, it might be a good idea to providean overview of all packages installed on your system (e.g. an `ls/var/db/pkg`). I found a post saying to try to compile a test program, so I tried that: viper:~$ gcc -o hello hello.c /usr/bin/ld: cannot find -lgcc_s So it appears that I have completely screwed the pooch! Is there anything I can do to fix this? Thanks David Collins How did you uninstall that port after which everything fails at the configure stage? Which port was it? Check a couple of things: $ which c++ and: $ locate gcc_s | grep lib Have you installed/uninstalled a c/c++ compiler from ports? Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html ___ 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