Re: Can you ACTUALLY print from FreeBSD?
I'm trying to print from my FreeBSD machine. I've been through a yes. i do cat file /dev/lpt0 :) never used cups and never will. but i use lpd and postscript to pcl filter ___ 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: named fails to start on boot on FreeBSD 6.1, complains about libxml2.so.5
On Monday 20 April 2009 23:48:47 Tim Judd wrote: I include the following ldd output in case it's helpful. What could possibly be the issue here? Mark ### # ldd /usr/sbin/named /usr/sbin/named: libcrypto.so.4 = /lib/libcrypto.so.4 (0x281ff000) libxml2.so.5 = /usr/local/lib/libxml2.so.5 (0x282f1000) libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x283ef000) libm.so.4 = /lib/libm.so.4 (0x284e3000) libc.so.6 = /lib/libc.so.6 (0x284f9000) libm.so.2 = /usr/local/lib/compat/libm.so.2 (0x285d1000) As far as I know, named never supported or needed xml. I would check if this really is named and for rootkits while you're at it. Either that, or you have LDFLAGS set in your /etc/make.conf that make everything link with these libraries. Backup data and configs and reinstall from CD if you can't find a sane answer for this. libm.so.2, in /usr/local/lib/compat/libm.so.2 is for Linux (and might I add a possibly older version). No, it's from compat4x. Linux would be in /compat/linux/lib. -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Compiling FreeBSD with GCC 4.3+
Hi David, On Monday 20 April 2009 21:48:39 David Naylor wrote: There has been an article recently published by phoronix (http://www.phoronix.com/scan.php?page=articleitem=pcbsd_vs_kubuntunum=1) that compares PC-BSD to Kubuntu. Kubuntu uses GCC 4.3.3 compared to FreeBSD's GCC 4.2.2. There is a considerable performance difference between the two OS's, the article contributes this difference to the compiler. Nice shot in the dark, since except the calculations a lot of these are influenced by journaled FS vs stock UFS. In order to check if this is so (and to get the speed improvements of GCC 4.3+) one needs to compile the ports (and preferable world/kernel as well) with GCC 4.3+. It's license is incompatible with world/kernel. That said, install lang/gcc43 and set CC/CXX for ports. World/kernel would be a lot harder. Maybe setting WITHOUT_GCC in /etc/src.conf and setting CC/CXX would work, but there's quite a few modifications to gcc that aren't in ports lang/gcc, so I have my doubts. Is there an easy way to set this up and does anyone know the compatibility of world/kernel/ports with GCC 4.3+? Also has anyone tried this and benchmarked the result? Not me, but be sure to stick around for the new non-gcc compiler coming to a FreeBSD near you. And with the work done by Marcel Molenaar on gpart, hopefully we can have ZFS and gjournal as choices in the installer. -- Mel ___ 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: portmaster -a on a live server
On Tuesday 21 April 2009 01:38:26 Tom Worster wrote: portmaster -a -x mysql-server portmaster mysql-server reboot No no no. /usr/local/etc/rc.d/mysql-server start. Reboot is for kernel upgrades. And never use reboot unless in single user mode, cause reboot is really fast reboot: it doesn't stop services nicely. Use shutdown -r now. -- Mel ___ 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: Can you ACTUALLY print from FreeBSD?
On 20/4/09 23:36, Keith Seyffarth wrote: Googling that shows it to be a file shared with Windows boxes when you're running samba. I don't know if you set up samba or not, but I would ignore this error for now. It's likely unrelated to the printing problem that you're having. OK. Thanks. I guess. I was kind of hoping that figuring that out might be the fix... Do you have the startup script: /usr/local/etc/rc.d/cupsd ? yes If so, what is the output of /usr/local/etc/rc.d/cupsd status? currently it's: cupsd is running as pid 721. but I did start cups manually since my last reboot. Cupsd was started automatically on reboot by the script. So that part is working fine. after rebooting the machine, it's: cupsd is not running. config info snipped It appears the problem is the printer. Try changing the perms to 0777 for testing purposes. If you're able to print, the problem is permissions. You'll have to figure out what permissions you need to get it working. That doesn't help. I get the same behavior with the permissions set to 0777. One person mentioned that you should be using the ugen device instead of /dev/ultp0. This thread might be relevant - http://foo2zjs.rkkda.com/forum/read.php?9,546,547 You might have to abandon using cupsd for this printer. Yeah. We may not be using this printer long anyway, since it is nearly out of ink, and the ink will be $95. It would just be nice to be able to demonstrate that printing is an option. Also, from what I've been seeing in my testing and so on since Thursday, it looks like if you use CUPS at all, you can't use anything else, since CUPS overwrites things like /etc/printcap with its own settings frequently. And since I've been successfully using cups-pdf for several months, I'd need a replacement for that. At least with that, despite all the shortcomings of .pdf format, we can still get stuff printed. Just not in our office. If so, this might be helpful: http://www.onlamp.com/pub/a/bsd/2004/07/08/FreeBSD_Basics.html?page=last I had read through that several times. It is one of several places pointing out that the device has to be at ultp*, and if it's at ugen* you likely have a problem... However the pkg-message for hplip says differently. I had to recompile without ulpt in the kernel to get my hp c3180 psc to work, but it prints (and scans) fine from freebsd now. read the output from pkg_info -xD hplip It has got full instructions on what needs doing. Recompiling the kernel isnt actually all that hard, and is detailed fully in the handbook. Actually to any devs who might be reading, is there any reason we have ulpt built in rather than as a module? Vince ___ 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
Preventing ntpd from adjusting time (backwards)
Hi, Some coarse reading of ntpd(8) and ntp.conf(5) doesn't lead me to believe it's possible to make ntpd *not* adjust the time. With adjust I don't mean the skew operation, but really change the time. Backwards is my primary concern but if it can be turned off completely it's fine with me. Reason being dovecot bailing out when this happens: Apr 1 16:18:26 squish ntpd[1353]: time reset -6.711955 s Apr 1 16:18:26 mx1 dovecot: Fatal: Time just moved backwards by 6 seconds. This might cause a lot of problems, so I'll just kill myself now. http://wiki.dovecot.org/TimeMovedBackwards -- Mel ___ 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: Driver Problem: Broadcom NetXtreme Gigabit Ethernet
Hello again. Can anybody help? Or no one? 2009/4/9 Alexander Tarasov mr.ta...@gmail.com With GENERIC I have same problem. My network card is Broadcom NetXtreme Gigabit Ethernet.. (14e4:1684 subsystem 1025:014b). I think, it's BCM5764. 2009/4/9, Chris Rees utis...@googlemail.com: 2009/4/9 Alexander Tarasov mr.ta...@gmail.com: Hi, All! After installing FreeBSD 7.1 I've got problem with my network card. [root ~]# uname -a FreeBSD 7.1-RELEASE FreeBSD 7.1-RELEASE #1: Thu Apr 9 13:34:46 NOVST 2009 root@:/usr/obj/usr/src/sys/LAPTOP i386 [root ~]# pciconf -lv ... cut ... no...@pci0:6:0:0:class=0x02 card=0x014b1025 chip=0x168414e4 rev=0x10 hdr=0x00 vendor = 'Broadcom Corporation' class = newtwork subclass = ethernet [root ~]# dmesg | grep bge [root ~]# ifconfig -a lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 inet 127.0.0.1 netmask 0xff00 I've compiled my kernel with device miibus and device bge (my kernel config is GENERIC without FireWare RAIDs). What does it mean? Is somethere driver for this card? Sorry for my terrible English =) Alexander V Tarasov ___ 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 Are you sure you didn't comment out any miibus lines or anything like that? Try with the GENERIC kernel, and kldload bge to see what happens. Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Sorting out owner and group permissions...
hi, I have the same problem on some fileservers I do the administration for. But in my case the users send the files via SSH to the server. A solution for this, based on some OS mechanism would be really great :-) Anyone ever had to solve that problem? Regards, --- Mr. Olli On Mo, 2009-04-20 at 15:21 -0400, John Almberg wrote: On Apr 20, 2009, at 2:48 PM, John Almberg wrote: I have a directory called 'scans' that is owned by 'master', but I want to allow 'customer' to FTP images to that directory. This is the way I have permissions set: # ls -l drwxrwxr-x 5 master customer 251904 Apr 20 10:29 scans The problem is that when customer ftp's a file to the directory, the permissions end up like this: -rw-r- 1 customer customer 772584 Apr 20 15:28 image.jpg When a process run by 'master' tries to copy this file to another directory (also owned by master), I get the following: # cp scans/image.jpg thumbs/image.jpg cp: scans/image.jpg: Permission denied The only solution that occurs to me smells like a newbie kludge: to have a root cron job periodically chown all the images to master:customer. This seems like the proverbial sledgehammer. There must be a better way? Any thoughts, much appreciated! Well, I did figure out one way that seems reasonable... since I am using pureftpd, I changed the upload mask in the pureftpd configuration so new files are created with permissions like: -rw-r--r-- 1 customer customer 93177 Apr 20 20:12 image.jpg This seems like a pretty good approach, but if there's a better one, I'm all ears! -- John ___ 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: About fetchmail
Thanks, Mel. I found the reason is that sendmail failed to start because I replaced /usr/lib/libssl.so.5 with /usr/local/lib/libssl.so.5. After I rebuild the world, it got OK. On Mon, Apr 20, 2009 at 02:20:17PM +0200, Mel Flynn wrote: On Monday 20 April 2009 12:20:15 张臻 wrote: Today when I used fetchmail to get my mails, it suddenly said that if failed to connect to localhost:25 and failed to send the mail to myself, does anyone know why? The information that fetch out put reading message x...@xxx.xx:1 of 3 (2223 octets) Trying to connect to 127.0.0.1/25...connection failed. fetchmail: connection to localhost:smtp [127.0.0.1/25] failed: Connection sendmail/postfix/whatever_mta not running. -- Mel ___ 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 -- # 欢迎访问我的小站 # #http://zhangzhen.czm.cn # ___ 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: Preventing ntpd from adjusting time (backwards)
Mel Flynn wrote: Hi, Some coarse reading of ntpd(8) and ntp.conf(5) doesn't lead me to believe it's possible to make ntpd *not* adjust the time. With adjust I don't mean the skew operation, but really change the time. Backwards is my primary concern but if it can be turned off completely it's fine with me. Reason being dovecot bailing out when this happens: Apr 1 16:18:26 squish ntpd[1353]: time reset -6.711955 s Apr 1 16:18:26 mx1 dovecot: Fatal: Time just moved backwards by 6 seconds. This might cause a lot of problems, so I'll just kill myself now. http://wiki.dovecot.org/TimeMovedBackwards This seems to be a bete-noir for the dovecot developer. Whatever, it is a royal pain in the arse, as my mailserver always steps the time backwards on each reboot, and then dovecot does it's dying swan thing. Three choices: * Don't run 'ntpd -g' as the documentation tells you is the modern and accepted method. Instead, run 'ntpdate' as a separate process and run 'ntpd' without the '-g' flag. * Don't run dovecot. Other IMAP servers do not suffer in the same way. * Put up with it. Avoid reboots, and swear at all concerned any time you really do have to reboot. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. Flat 3 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW, UK signature.asc Description: OpenPGP digital signature
Re: Freebsd Built-in vacation program does not auto reply
At 08:16 PM 4/19/2009, lyd mc wrote: Hi derek, Correction on step 4, it should be: \alydio.mc, |/usr/bin/vacation alydio.mc thanks, alyd --- On Mon, 4/20/09, lyd mc alydi...@yahoo.com wrote: From: lyd mc alydi...@yahoo.com Subject: Re: Freebsd Built-in vacation program does not auto reply To: Derek Ragona de...@computinginnovations.com Cc: freebsd-questions@freebsd.org Date: Monday, April 20, 2009, 9:07 AM hi derek, It is not also working on my sendmail. May be I overlooked some steps? step 1. login to user # su alydio.mc step 2. initialize vacation db $ vacation -i step 3. create .vacation.msg From: alydio...@mydomain.com Subject: I am on vacation Delivered-By-The-Graces-Of: The Vacation program Precedence: bulk I am on vacation until... step 4. create .forward \klyren, |/usr/bin/vacation klyren sendmail log Apr 20 08:21:08 MAIL sm-mta[18102]: n3K0L2Jl018092: to=|/usr/bin/vacation alydio.mc, ctladdr=alydio...@mydomain (1001/0), delay=00:00:05, xdelay=00:00:00, mailer=prog, pri=62458, dsn=2.0.0, stat=Sent ...nothing follows... thanks alydiomc In the log entry above, I see: ctladdr=alydio...@mydomain I suspect this is NOT a deliverable address but that depends on how you have mydomain resolving. Also you might want to try using a user account without a period in the name. The period may be causing a silent parsing problem for sendmail and vacation. -Derek --- On Fri, 4/17/09, Derek Ragona de...@computinginnovations.com wrote: From: Derek Ragona de...@computinginnovations.com Subject: Re: Freebsd Built-in vacation program does not auto reply To: alydi...@yahoo.com, Odhiambo Washington odhia...@gmail.com Cc: Steve Bertrand st...@ibctech.ca, freebsd-questions@freebsd.org Date: Friday, April 17, 2009, 9:51 PM At 07:27 AM 4/17/2009, lyd mc wrote: Thanks Odhiambo for your time. Actually i have a working vacation program from freebsd ports (/usr/ports/mail/vacation). I only wondering why the freebsd base vacation behave differently I still want freebsd base vacation... the one from ports is obsolete (as per its maintainer website) and sometime i need to edit its makefile for it to compile Thanks again. I think the base system vacation is the one that is part of sendmail. So using it with postfix as the MTA may be the issue. I have use the base vacation version flawlessly with sendmail. -Derek --- On Fri, 4/17/09, Odhiambo Washington odhia...@gmail.com wrote: From: Odhiambo Washington odhia...@gmail.com Subject: Re: Freebsd Built-in vacation program does not auto reply To: alydi...@yahoo.com Cc: Steve Bertrand st...@ibctech.ca, freebsd-questions@freebsd.org Date: Friday, April 17, 2009, 8:10 PM On Fri, Apr 17, 2009 at 2:47 PM, lyd mc alydi...@yahoo.com wrote: hi, I don't know how to run it in debug mode I already try this one. #/usr/bin/vacation -d alydio.mc but nothing happened... no logs in /var/log/message and /var/log/maillog pertaining to vacation. Okay. I think you need to look again at your MTA logs. Not being an expert with Postfix, I am not sure I can help with it anyway. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Clothes make the man. Naked people have little or no influence on society. -- Mark Twain ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Preventing ntpd from adjusting time (backwards)
On Tuesday 21 April 2009 11:39:32 Matthew Seaman wrote: Mel Flynn wrote: Hi, Some coarse reading of ntpd(8) and ntp.conf(5) doesn't lead me to believe it's possible to make ntpd *not* adjust the time. With adjust I don't mean the skew operation, but really change the time. Backwards is my primary concern but if it can be turned off completely it's fine with me. Reason being dovecot bailing out when this happens: Apr 1 16:18:26 squish ntpd[1353]: time reset -6.711955 s Apr 1 16:18:26 mx1 dovecot: Fatal: Time just moved backwards by 6 seconds. This might cause a lot of problems, so I'll just kill myself now. http://wiki.dovecot.org/TimeMovedBackwards This seems to be a bete-noir for the dovecot developer. Whatever, it is a royal pain in the arse, as my mailserver always steps the time backwards on each reboot, and then dovecot does it's dying swan thing. Three choices: * Don't run 'ntpd -g' as the documentation tells you is the modern and accepted method. Instead, run 'ntpdate' as a separate process and run 'ntpd' without the '-g' flag. Hmm, isc sure knows how to abstract something as simple as command line options into several levels. From the source, -q activates mode_ntpdate which is one path for time reset. Since not using that, it's not that path. The other codepath, has 4 possibles, 2 of which relating to step-in and step- out, which I could increase to values that are less likely to cause a step. Would be worthwhile if there aren't 2 other possibilities which most likely cause the step back after reboot syndrome: * In S_NSET state an initial frequency correction is * not available, usually because the frequency file has * not yet been written. Since the time is outside the * step threshold, the clock is stepped. The frequency * will be set directly following the stepout interval. * * In S_FSET state the initial frequency has been set * from the frequency file. Since the time is outside * the step threshold, the clock is stepped immediately, * rather than after the stepout interval. Guys get * nervous if it takes 17 minutes to set the clock for * the first time. * Don't run dovecot. Other IMAP servers do not suffer in the same way. Since this is the only issue I have with dovecot, I don't think so. ;) * Put up with it. Avoid reboots, and swear at all concerned any time you really do have to reboot. * Patch ntpd (most likely option now) * Do something smart with init, restarting dovecot when this happens. To be continued (on TODO somewhere on the bottom :/). Thanks for the input Matt. -- Mel ___ 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: named fails to start on boot on FreeBSD 6.1, complains about libxml2.so.5
We had problem with named starting on boot on a FreeBSD 6.1 server, managed by /etc/rc.conf. The startup script failed with errors about shared library libm.so.2 failing to load because of something related to libxml2.so.5. Later, when I then tried starting it via /etc/rc.d/named it worked fine. I include the following ldd output in case it's helpful. What could possibly be the issue here? Mark ### # ldd /usr/sbin/named /usr/sbin/named: libcrypto.so.4 = /lib/libcrypto.so.4 (0x281ff000) libxml2.so.5 = /usr/local/lib/libxml2.so.5 (0x282f1000) libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x283ef000) libm.so.4 = /lib/libm.so.4 (0x284e3000) libc.so.6 = /lib/libc.so.6 (0x284f9000) libm.so.2 = /usr/local/lib/compat/libm.so.2 (0x285d1000) I also see to LOCAL libraries in it. named is part of base, unless you compiled and installed the port version and maybe told it to overwrite the base. None of this adds up. %ldd /usr/sbin/named /usr/sbin/named: libcrypto.so.5 = /lib/libcrypto.so.5 (0x281fe000) libthr.so.3 = /lib/libthr.so.3 (0x28357000) libc.so.7 = /lib/libc.so.7 (0x2836a000) There's a named on 7.1p4 Thanks for the response. I've now compared this named 'ldd' outfit to another 6.1 install we have that also runs named. It has the exact same file size and version, but slightly different ldd output: -- from the second machine with FreeBSD 6.1 # ldd /usr/sbin/named /usr/sbin/named: libcrypto.so.4 = /lib/libcrypto.so.4 (0x281ff000) libxml2.so.5 = /usr/local/lib/libxml2.so.5 (0x282f1000) libz.so.3 = /lib/libz.so.3 (0x283ff000) libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x2840f000) libm.so.4 = /lib/libm.so.4 (0x284fc000) libc.so.6 = /lib/libc.so.6 (0x28512000) XML is still there, but the mention of libm.so no longer points into /usr/local/lib/compat This other FreeBSD user also found the libxml link: https://lists.isc.org/pipermail/bind-users/2008-November/073929.html I also checked /etc/make.conf on both machines. They mentioned X11_BASE and Perl... nothing about XML. However, these machines have evolved some over time. Perhaps something with there in the past. It sounds like advisable paths forward include re-compiling or re-installing named. Mark ___ 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: Driver Problem: Broadcom NetXtreme Gigabit Ethernet
On Tue, 21 Apr 2009 16:41:24 +0700 Alexander Tarasov wrote: Hello again. Can anybody help? Or no one? Please, don't top-post, do what you were recommended and show the results. 2009/4/9 Alexander Tarasov mr.ta...@gmail.com With GENERIC I have same problem. My network card is Broadcom NetXtreme Gigabit Ethernet.. (14e4:1684 subsystem 1025:014b). I think, it's BCM5764. 2009/4/9, Chris Rees utis...@googlemail.com: 2009/4/9 Alexander Tarasov mr.ta...@gmail.com: Hi, All! After installing FreeBSD 7.1 I've got problem with my network card. [root ~]# uname -a FreeBSD 7.1-RELEASE FreeBSD 7.1-RELEASE #1: Thu Apr 9 13:34:46 NOVST 2009 root@:/usr/obj/usr/src/sys/LAPTOP i386 [root ~]# pciconf -lv ... cut ... no...@pci0:6:0:0:class=0x02 card=0x014b1025 chip=0x168414e4 rev=0x10 hdr=0x00 vendor = 'Broadcom Corporation' class = newtwork subclass = ethernet [root ~]# dmesg | grep bge [root ~]# ifconfig -a lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 inet 127.0.0.1 netmask 0xff00 I've compiled my kernel with device miibus and device bge (my kernel config is GENERIC without FireWare RAIDs). What does it mean? Is somethere driver for this card? Sorry for my terrible English =) Alexander V Tarasov ___ 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 Are you sure you didn't comment out any miibus lines or anything like that? Try with the GENERIC kernel, and kldload bge to see what happens. Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org WBR -- bsam ___ 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: named fails to start on boot on FreeBSD 6.1, complains about libxml2.so.5
Mark Stosberg wrote: We had problem with named starting on boot on a FreeBSD 6.1 server, managed by /etc/rc.conf. The startup script failed with errors about shared library libm.so.2 failing to load because of something related to libxml2.so.5. Later, when I then tried starting it via /etc/rc.d/named it worked fine. I include the following ldd output in case it's helpful. What could possibly be the issue here? Mark ### # ldd /usr/sbin/named /usr/sbin/named: libcrypto.so.4 = /lib/libcrypto.so.4 (0x281ff000) libxml2.so.5 = /usr/local/lib/libxml2.so.5 (0x282f1000) libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x283ef000) libm.so.4 = /lib/libm.so.4 (0x284e3000) libc.so.6 = /lib/libc.so.6 (0x284f9000) libm.so.2 = /usr/local/lib/compat/libm.so.2 (0x285d1000) I also see to LOCAL libraries in it. named is part of base, unless you compiled and installed the port version and maybe told it to overwrite the base. None of this adds up. %ldd /usr/sbin/named /usr/sbin/named: libcrypto.so.5 = /lib/libcrypto.so.5 (0x281fe000) libthr.so.3 = /lib/libthr.so.3 (0x28357000) libc.so.7 = /lib/libc.so.7 (0x2836a000) There's a named on 7.1p4 Thanks for the response. I've now compared this named 'ldd' outfit to another 6.1 install we have that also runs named. It has the exact same file size and version, but slightly different ldd output: -- from the second machine with FreeBSD 6.1 # ldd /usr/sbin/named /usr/sbin/named: libcrypto.so.4 = /lib/libcrypto.so.4 (0x281ff000) libxml2.so.5 = /usr/local/lib/libxml2.so.5 (0x282f1000) libz.so.3 = /lib/libz.so.3 (0x283ff000) libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x2840f000) libm.so.4 = /lib/libm.so.4 (0x284fc000) libc.so.6 = /lib/libc.so.6 (0x28512000) XML is still there, but the mention of libm.so no longer points into /usr/local/lib/compat This other FreeBSD user also found the libxml link: https://lists.isc.org/pipermail/bind-users/2008-November/073929.html I also checked /etc/make.conf on both machines. They mentioned X11_BASE and Perl... nothing about XML. However, these machines have evolved some over time. Perhaps something with there in the past. It sounds like advisable paths forward include re-compiling or re-installing named. Mark As it is already pointed out, you probably have a bind version installed from ports. Try: pkg_info -Ix bind and check if it produces anything. On a 6.4 box, the base system bind shows: ldd /usr/sbin/named /usr/sbin/named: libcrypto.so.4 = /lib/libcrypto.so.4 (0x80077c000) libc.so.6 = /lib/libc.so.6 (0x8009c3000) However, the port dns/bind96 for example: # pwd /usr/ports/dns/bind96 # make run-depends-list /usr/ports/textproc/libxml2 which looks suspiciously similar to your dependency there. ___ 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: Encrypted slice with geli
Giorgos Keramidas said the following on 2009-04-20 23:59: On Mon, 20 Apr 2009 21:38:54 +0200, Bernt Hansson be...@bah.homeip.net wrote: Hello list! I was thinking of makeing a slice encrypted with geli. My question is: does geli init -s 4096 /dev/ad* erase the data on the slice. The handbook didn't say yes or no, and I don't want to try without asking. No, No, what? does it erase the data or not. but if you plan to use geli to encrypt data that will end up on the slice it may be a useful thing to: a) keep a backup copy of the data in its unencrypted form Bad idea. b) overwrite the entire partition with random bytes (increased entropy means that it is harder to 'attack' the final encrypted data stream when geli starts writing over parts of the encrypted slice) But I want to keep the info on the slice. ___ 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: Atom 330 testing
Testing a mini-ITX Intel D945GCLF2 motherboard with Atom 330 processor. Hi, [sorry to re-open this one month old thread] I have also this D945GCLF2. All is running nearly fine, but on heavy load and after the system is powered up for a couple of days, it panics. The system is running 7.1-RC1 (7th dec 2008) as a Generic kernel, and a gmirrored WDC+seagate backup drive. The bios is still in 99 release. Since I have read some is using also this board as an home server, does someone else is also having this issue (panic under heavy load when up for a few days) ? T.I.A. PM. ___ 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: named fails to start on boot on FreeBSD 6.1, complains about libxml2.so.5
On Tuesday 21 April 2009 14:21:12 Manolis Kiagias wrote: Mark Stosberg wrote: We had problem with named starting on boot on a FreeBSD 6.1 server, managed by /etc/rc.conf. The startup script failed with errors about shared library libm.so.2 failing to load because of something related to libxml2.so.5. Later, when I then tried starting it via /etc/rc.d/named it worked fine. I include the following ldd output in case it's helpful. What could possibly be the issue here? Mark ### # ldd /usr/sbin/named /usr/sbin/named: libcrypto.so.4 = /lib/libcrypto.so.4 (0x281ff000) libxml2.so.5 = /usr/local/lib/libxml2.so.5 (0x282f1000) libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x283ef000) libm.so.4 = /lib/libm.so.4 (0x284e3000) libc.so.6 = /lib/libc.so.6 (0x284f9000) libm.so.2 = /usr/local/lib/compat/libm.so.2 (0x285d1000) I also see to LOCAL libraries in it. named is part of base, unless you compiled and installed the port version and maybe told it to overwrite the base. None of this adds up. %ldd /usr/sbin/named /usr/sbin/named: libcrypto.so.5 = /lib/libcrypto.so.5 (0x281fe000) libthr.so.3 = /lib/libthr.so.3 (0x28357000) libc.so.7 = /lib/libc.so.7 (0x2836a000) There's a named on 7.1p4 Thanks for the response. I've now compared this named 'ldd' outfit to another 6.1 install we have that also runs named. It has the exact same file size and version, but slightly different ldd output: -- from the second machine with FreeBSD 6.1 # ldd /usr/sbin/named /usr/sbin/named: libcrypto.so.4 = /lib/libcrypto.so.4 (0x281ff000) libxml2.so.5 = /usr/local/lib/libxml2.so.5 (0x282f1000) libz.so.3 = /lib/libz.so.3 (0x283ff000) libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x2840f000) libm.so.4 = /lib/libm.so.4 (0x284fc000) libc.so.6 = /lib/libc.so.6 (0x28512000) XML is still there, but the mention of libm.so no longer points into /usr/local/lib/compat This other FreeBSD user also found the libxml link: https://lists.isc.org/pipermail/bind-users/2008-November/073929.html I also checked /etc/make.conf on both machines. They mentioned X11_BASE and Perl... nothing about XML. However, these machines have evolved some over time. Perhaps something with there in the past. It sounds like advisable paths forward include re-compiling or re-installing named. Mark As it is already pointed out, you probably have a bind version installed from ports. Try: pkg_info -Ix bind and check if it produces anything. On a 6.4 box, the base system bind shows: ldd /usr/sbin/named /usr/sbin/named: libcrypto.so.4 = /lib/libcrypto.so.4 (0x80077c000) libc.so.6 = /lib/libc.so.6 (0x8009c3000) However, the port dns/bind96 for example: # pwd /usr/ports/dns/bind96 # make run-depends-list /usr/ports/textproc/libxml2 which looks suspiciously similar to your dependency there. Agreed. Bind 9.5 and higher from ports has XML statistics support. That explains the xml and iconv. ldd -a /usr/sbin/named should show you which one wants libm.so.2 which is from the 4.x days. If you don't need these statistics, I would suggest turning them off through make config. -- Mel ___ 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: Sorting out owner and group permissions...
On Tuesday 21 April 2009 11:17:40 Mister Olli wrote: hi, I have the same problem on some fileservers I do the administration for. But in my case the users send the files via SSH to the server. A solution for this, based on some OS mechanism would be really great :-) umask(1). -- Mel ___ 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: Encrypted slice with geli
In response to Bernt Hansson be...@bah.homeip.net: Giorgos Keramidas said the following on 2009-04-20 23:59: On Mon, 20 Apr 2009 21:38:54 +0200, Bernt Hansson be...@bah.homeip.net wrote: Hello list! I was thinking of makeing a slice encrypted with geli. My question is: does geli init -s 4096 /dev/ad* erase the data on the slice. The handbook didn't say yes or no, and I don't want to try without asking. No, No, what? does it erase the data or not. It depends on exactly what part of the process you're talking about, and it depends on exactly what you mean by erase. Geli doesn't explicitly destroy your data at any point in the process. However, most HOWTOs I've ready will tell you at some step or another to overwrite the partition using dd and /dev/zero, which _does_ destroy the data. Also, even if you skip the dd step, geli will alter the partition in such a way that typical tools will not see the data. However, if you know your stuff, you can bypass normal tools and still read (part of?) the data. So, if your question is I want to securely destroy the data on a partition, can geli do that? the answer is No. If your question is, I'm switching a partition to using geli, do I need to back up my data before doing so? the answer is YES! But I want to keep the info on the slice. Then you need to copy it elsewhere, then copy it back after the slice is encrypted. -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/ ___ 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
Advertising Opportunity With freebsd.org
Hi there, My Name is Elliot, I came across your site http://www.freebsd.org/ I'm interested in placing a Text link on your home page. We are a Price comparison Site called CheckCost UK. We have a huge range of Products under Computers, Electronics, Software, Appliances and many more from top brands, on offer for your visitors Your visitors will find our site very useful as it will aid them in narrowing down their search to find the best deals. Feel free to contact me if you are interested or have any questions and we can also discuss the fee. It would be great if you could let me know the price for one month for text advert. Please visit www.checkcost.co.uk http://www.checkcost.co.uk/to learn more about us. Kind Regards, Elliot Dean Marketing Executive www.checkcost.co.uk http://www.checkcost.co.uk/ P.S. If you have any other websites that CheckCost could also benefit from advertising on, please let me know. ___ 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: Sorting out owner and group permissions...
hi, no does not work, since using SSH / SFTP does not involve starting a shell. so umask settings don't work. Regards, --- Mr. Olli On Di, 2009-04-21 at 14:36 +0200, Mel Flynn wrote: On Tuesday 21 April 2009 11:17:40 Mister Olli wrote: hi, I have the same problem on some fileservers I do the administration for. But in my case the users send the files via SSH to the server. A solution for this, based on some OS mechanism would be really great :-) umask(1). ___ 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
legal aspects in order to use the open source sw fsck_msdosfs
Hello, My name is Stefan Beskow and I work as a configuration manager within Ericsson AB. I am investigating the legal aspects of the use of open source sw within a project. Could you please help me with information about license issues and copywriting issues ea for the fsck_msdosfs ? What is required in order to use the fsck_msdosfs software? Best regards, Stefan Beskow Stefan Beskow / Elan IT Configuration Manager Ericsson AB - EAB/FBM/ME Mini-Link, Embedded Software Email: stefan.bes...@ericsson.com Business phone: +46 10 7471513 Cell phone: +46 709 871513 ___ 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
xview problem
Dear alll pardon the re-post, I thought I would check again if somebody has found a solution for this, since my last e-mail. I am running FreeBSD 7.1-RELEASE-p4 on an i386 machine and I am unable to use applications that depend on xview. For example, when I try to run clock, I get: Assertion failed: (ret != inval_id), function _XAllocID, file xcb_io.c, line 378. Abort and I get the same error for any other application using xview. I have updated the installed software to the latest (as of today) version of the ports tree, and I have also run the following command listed in /usr/ports/UPDATING: portupgrade -rf libxcb but to no avail. I have also googled the error message, but the only link that comes up is in Japanese Any suggestions? thank you very much in advance -- Giuseppe Pagnoni Dip. Scienze Biomediche Sezione Fisiologia Univ. di Modena e Reggio Emilia Via Campi 287 I-41100 Modena, Italy ___ 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: named fails to start on boot on FreeBSD 6.1, complains about libxml2.so.5
Agreed. Bind 9.5 and higher from ports has XML statistics support. That explains the xml and iconv. ldd -a /usr/sbin/named should show you which one wants libm.so.2 which is from the 4.x days. If you don't need these statistics, I would suggest turning them off through make config. This is great feedback. I confirmed the old compat dependency is from libxml, and it's true we don't use those XML stats. I like the suggestion of using make config to recompile without the stat support, which will remove all the troublesome dependencies for us. Thanks! Mark ldd -a /usr/sbin/named /usr/sbin/named: libcrypto.so.4 = /lib/libcrypto.so.4 (0x281ff000) libxml2.so.5 = /usr/local/lib/libxml2.so.5 (0x282f1000) libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x283ef000) libm.so.4 = /lib/libm.so.4 (0x284e3000) libc.so.6 = /lib/libc.so.6 (0x284f9000) /usr/local/lib/libxml2.so.5: libiconv.so.3 = /usr/local/lib/libiconv.so.3 (0x283ef000) libm.so.2 = /usr/local/lib/compat/libm.so.2 (0x285d1000) Mark ___ 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: Preventing ntpd from adjusting time (backwards)
On Tue, Apr 21, 2009 at 3:39 AM, Matthew Seaman m.sea...@infracaninophile.co.uk wrote: Mel Flynn wrote: Hi, Some coarse reading of ntpd(8) and ntp.conf(5) doesn't lead me to believe it's possible to make ntpd *not* adjust the time. With adjust I don't mean the skew operation, but really change the time. Backwards is my primary concern but if it can be turned off completely it's fine with me. Reason being dovecot bailing out when this happens: Apr 1 16:18:26 squish ntpd[1353]: time reset -6.711955 s Apr 1 16:18:26 mx1 dovecot: Fatal: Time just moved backwards by 6 seconds. This might cause a lot of problems, so I'll just kill myself now. http://wiki.dovecot.org/TimeMovedBackwards This seems to be a bete-noir for the dovecot developer. Whatever, it is a royal pain in the arse, as my mailserver always steps the time backwards on each reboot, and then dovecot does it's dying swan thing. Three choices: * Don't run 'ntpd -g' as the documentation tells you is the modern and accepted method. Instead, run 'ntpdate' as a separate process and run 'ntpd' without the '-g' flag. * Don't run dovecot. Other IMAP servers do not suffer in the same way. * Put up with it. Avoid reboots, and swear at all concerned any time you really do have to reboot. Cheers, Matthew How about adding ntpdate's provided string to dovecot's required string in their respective startup rc.d scripts? This forces dovecot to wait until ntpdate has been called, assuming time has actually been set/changed, then dovecot may start? I'd try that. :D ___ 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: Preventing ntpd from adjusting time (backwards)
On Tue, 21 Apr 2009 14:09:09 +0200 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote: On Tuesday 21 April 2009 11:39:32 Matthew Seaman wrote: * Don't run 'ntpd -g' as the documentation tells you is the modern and accepted method. Instead, run 'ntpdate' as a separate process and run 'ntpd' without the '-g' flag. Hmm, isc sure knows how to abstract something as simple as command line options into several levels. From the source, -q activates mode_ntpdate which is one path for time reset. Since not using that, it's not that path. The other codepath, has 4 possibles, 2 of which relating to step-in and step- out, which I could increase to values that are less likely to cause a step. Would be worthwhile if there aren't 2 other possibilities which most likely cause the step back after reboot syndrome: The bottom line though, is that ntpdate_enable=yes solves the problem entirely, since the real problem is not the step, but the fact that it happens in the background, and after a delay. ntpdate may be deprecated, but it's been deprecated for years, and I doubt it will go away until ntpd fully replaces it's functionality. ntpd -gq can replace ntpdate in a crontab, but ntpd -gqn doesn't really replace ntpdate -b in the boot-sequence. ___ 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: Preventing ntpd from adjusting time (backwards)
On Tuesday 21 April 2009 16:20:52 RW wrote: The bottom line though, is that ntpdate_enable=yes solves the problem entirely, since the real problem is not the step, but the fact that it happens in the background, and after a delay. Care to expand on that? Dovecot won't stop if root issues a date command that sets time to the past, for example? ntpdate may be deprecated, but it's been deprecated for years, and I doubt it will go away until ntpd fully replaces it's functionality. ntpd -gq can replace ntpdate in a crontab, but ntpd -gqn doesn't really replace ntpdate -b in the boot-sequence. I'm actually counting on it to be gone in 8.0. -- Mel ___ 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: Preventing ntpd from adjusting time (backwards)
On Tuesday 21 April 2009 16:11:52 Tim Judd wrote: On Tue, Apr 21, 2009 at 3:39 AM, Matthew Seaman m.sea...@infracaninophile.co.uk wrote: Mel Flynn wrote: Hi, Some coarse reading of ntpd(8) and ntp.conf(5) doesn't lead me to believe it's possible to make ntpd *not* adjust the time. With adjust I don't mean the skew operation, but really change the time. Backwards is my primary concern but if it can be turned off completely it's fine with me. Reason being dovecot bailing out when this happens: Apr 1 16:18:26 squish ntpd[1353]: time reset -6.711955 s Apr 1 16:18:26 mx1 dovecot: Fatal: Time just moved backwards by 6 seconds. This might cause a lot of problems, so I'll just kill myself now. http://wiki.dovecot.org/TimeMovedBackwards This seems to be a bete-noir for the dovecot developer. Whatever, it is a royal pain in the arse, as my mailserver always steps the time backwards on each reboot, and then dovecot does it's dying swan thing. Three choices: * Don't run 'ntpd -g' as the documentation tells you is the modern and accepted method. Instead, run 'ntpdate' as a separate process and run 'ntpd' without the '-g' flag. * Don't run dovecot. Other IMAP servers do not suffer in the same way. * Put up with it. Avoid reboots, and swear at all concerned any time you really do have to reboot. Cheers, Matthew How about adding ntpdate's provided string to dovecot's required string in their respective startup rc.d scripts? This forces dovecot to wait until ntpdate has been called, assuming time has actually been set/changed, then dovecot may start? That could work, if ntpd_sync_on_start would actually sync on start. Trying not to enable ntpdate unless I really have to, since I expect it to be gone in 8.0. Still, there's a chance ntp steps backwards during the runtime, but then my CMOS battery probably needs replacing anyway. -- Mel ___ 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: legal aspects in order to use the open source sw fsck_msdosfs
On Tuesday 21 April 2009 08:33:00 am Stefan Beskow wrote: Hello, My name is Stefan Beskow and I work as a configuration manager within Ericsson AB. I am investigating the legal aspects of the use of open source sw within a project. Could you please help me with information about license issues and copywriting issues ea for the fsck_msdosfs ? What is required in order to use the fsck_msdosfs software? fsck_msdosfs is provided under a BSD license like most of the rest of FreeBSD. See: http://www.freebsd.org/copyright/index.html and especially http://www.freebsd.org/copyright/freebsd-license.html. For fsck_msdosfs in particular, see also the comments at the top of the source files, e.g.: http://www.freebsd.org/cgi/cvsweb.cgi/src/sbin/fsck_msdosfs/main.c?rev=1.15.20.1;content-type=text%2Fplain. JN ___ 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: Sorting out owner and group permissions...
On Tuesday 21 April 2009 15:13:47 Mister Olli wrote: no does not work, since using SSH / SFTP does not involve starting a shell. so umask settings don't work. Then you're using the wrong system for the task. The OS can't make assumptions about what the ownership/modes of a file should really be, if an application is telling it they should be different. This is why more mature FTP daemons allow modes/ownerships to be set on upload. The OS already: - gives a new file group of the containing directory so it is easy to create shared files in a shared directory - has a default umask that is world readable - allows changing a users umask The application (sftp) overrides all this and now you're expecting the OS to override that again. Don't think so ;) -- Mel ___ 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
IPFW/Dummynet/Bridging with VLAN trunks?
I'm trying to use Dummynet+IPFW and bridging to make a packet shaper that runs across multiple VLANs. So my intended set up is: [users]-[Aggregate Switch]=[FreeBSD]=[Upstream Switch (with IP interfaces for each vlan)]-The World where - is a single VLAN, and = is a tagged dot1q trunk. The aim is to drop the FreeBSD box in the middle, in one trunked uplink, and cover all the VLANs downstream of that. Should this work? In practice, the bridging seems to work OK, but as soon as I add rules to match traffic passing through and apply it to pipes, everything stops. I can use tcpdump's vlan option to filter traffic on em0, em1 or bridge0 and it does show only traffic for that vlan, so tags are being preserved... Ideally, I'd like to use the dot1q tag in ipfw rules directly, and avoid ip ranges, but I don't think that's possible. Is there some special incantation to make ipfw vlan-aware? Has anyone else done this successfully? Best Regards, Howie ___ 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
Correct use of fsck_msdosfs
Good afternoon, We are using fsck_msdosfs in one of our products, and are trying to comply with the conditions in the correct way. We get a bit confused with the copyright notices, and hopy you are able to clarify this for us. Inside the source files found at http://www.freebsd.org/cgi/cvsweb.cgi/src/sbin/fsck_msdosfs/ , we find the following copyright text *** /* * Copyright (C) 1995 Wolfgang Solfrank * Copyright (c) 1995 Martin Husemann * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *notice, this list of conditions and the following disclaimer in the *documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software *must display the following acknowledgement: * This product includes software developed by Martin Husemann * and Wolfgang Solfrank. * 4. Neither the name of the University nor the names of its contributors *may be used to endorse or promote products derived from this software *without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ ** Then, under the Free BSD Legal Notices, under which it seems that fsck_msdosfs resides, we find the following FreeBSD Copyright notice: ** Copyright 1994-2009 The FreeBSD Project. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE FREEBSD PROJECT ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of the FreeBSD Project. ** How do these two copyright texts relate to each other, and how do we use them in the correct way? This is particularly relevant to sort out when we do redistribution in binary, where the copyright text needs to be provided. Do we provide both, or just the one or the other? Looking forward to your clarification. Regards, Even Rognlien Trade Compliance Advisor +47 901 26 411 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Compiling FreeBSD with GCC 4.3+
On Tuesday 21 April 2009 10:32:04 Mel Flynn wrote: Hi David, On Monday 20 April 2009 21:48:39 David Naylor wrote: There has been an article recently published by phoronix (http://www.phoronix.com/scan.php?page=articleitem=pcbsd_vs_kubuntunum= 1) that compares PC-BSD to Kubuntu. Kubuntu uses GCC 4.3.3 compared to FreeBSD's GCC 4.2.2. There is a considerable performance difference between the two OS's, the article contributes this difference to the compiler. Nice shot in the dark, since except the calculations a lot of these are influenced by journaled FS vs stock UFS. I know, benchmarking anything but the simplest things are influenced by too many factors. Pity it doesn't provide an unbiased comparison of FreeBSD and Linux. In order to check if this is so (and to get the speed improvements of GCC 4.3+) one needs to compile the ports (and preferable world/kernel as well) with GCC 4.3+. It's license is incompatible with world/kernel. What type of incompatibility. I know FreeBSD has reservations about GPLv3 (I personally don't understand why everyone cannot be friends and use BSD Licenses). So is this a policy incompatibility or a legal one (i.e. would it be 'illegal' for me to use GCC 4.3+ to compile world/kernel, as an end-user/consumer of FreeBSD). I assume the same discussion applies to binutils. That said, install lang/gcc43 and set CC/CXX for ports. World/kernel would be a lot harder. Maybe setting WITHOUT_GCC in /etc/src.conf and setting CC/CXX would work, but there's quite a few modifications to gcc that aren't in ports lang/gcc, so I have my doubts. I suppose it would be nice if there was an easy way to use an out-of-source compiler in FreeBSD. Like set PORTS_COMPILER=gcc43 and the port will installed and used... One may have dreams. Is there an easy way to set this up and does anyone know the compatibility of world/kernel/ports with GCC 4.3+? Also has anyone tried this and benchmarked the result? Not me, but be sure to stick around for the new non-gcc compiler coming to a FreeBSD near you. And with the work done by Marcel Molenaar on gpart, hopefully we can have ZFS and gjournal as choices in the installer. You mean llvm, waiting patiently. I suppose my suggestion above will become even more important (at least for compiling ports) since it will be a while till llvm has decent c++ support. Thanks for your reply signature.asc Description: This is a digitally signed message part.
Re: Compiling FreeBSD with GCC 4.3+
On Tuesday 21 April 2009 17:37:50 David Naylor wrote: On Tuesday 21 April 2009 10:32:04 Mel Flynn wrote: Hi David, On Monday 20 April 2009 21:48:39 David Naylor wrote: There has been an article recently published by phoronix (http://www.phoronix.com/scan.php?page=articleitem=pcbsd_vs_kubuntunu m= 1) that compares PC-BSD to Kubuntu. Kubuntu uses GCC 4.3.3 compared to FreeBSD's GCC 4.2.2. There is a considerable performance difference between the two OS's, the article contributes this difference to the compiler. Nice shot in the dark, since except the calculations a lot of these are influenced by journaled FS vs stock UFS. I know, benchmarking anything but the simplest things are influenced by too many factors. Pity it doesn't provide an unbiased comparison of FreeBSD and Linux. That and comparing apples and pears as default configured fruit, don't usually work well. Of course it appeals to the end user which fruit is healthier. In order to check if this is so (and to get the speed improvements of GCC 4.3+) one needs to compile the ports (and preferable world/kernel as well) with GCC 4.3+. It's license is incompatible with world/kernel. What type of incompatibility. I know FreeBSD has reservations about GPLv3 (I personally don't understand why everyone cannot be friends and use BSD Licenses). So is this a policy incompatibility or a legal one (i.e. would it be 'illegal' for me to use GCC 4.3+ to compile world/kernel, as an end-user/consumer of FreeBSD). I assume the same discussion applies to binutils. Policy. Only legal issue in FreeBSD for the end user is WITH_IDEA. That said, install lang/gcc43 and set CC/CXX for ports. World/kernel would be a lot harder. Maybe setting WITHOUT_GCC in /etc/src.conf and setting CC/CXX would work, but there's quite a few modifications to gcc that aren't in ports lang/gcc, so I have my doubts. I suppose it would be nice if there was an easy way to use an out-of-source compiler in FreeBSD. Like set PORTS_COMPILER=gcc43 and the port will installed and used... One may have dreams. cat 'EOF' /etc/make.conf .if !empty(.CURDIR:M/usr/ports/*) CC=/usr/local/bin/gcc43 CXX=/usr/local/bin/g++43 .endif EOF Pretty close, huh? Is there an easy way to set this up and does anyone know the compatibility of world/kernel/ports with GCC 4.3+? Also has anyone tried this and benchmarked the result? Not me, but be sure to stick around for the new non-gcc compiler coming to a FreeBSD near you. And with the work done by Marcel Molenaar on gpart, hopefully we can have ZFS and gjournal as choices in the installer. You mean llvm, waiting patiently. I suppose my suggestion above will become even more important (at least for compiling ports) since it will be a while till llvm has decent c++ support. Yeah, I don't know how that's gonna work if llvm is ready for base, but no c++. I guess we'll have to sit out g++ 4.2 for a while. If you're in the position to do so, I'd do their benchmarks with ZFS and see how much difference that already makes. -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problems watching video with the Radeon HD 3850
Roland Smith wrote: On Fri, Apr 17, 2009 at 09:35:45PM +0200, Aniruddha wrote: Roland Smith wrote: For the best performance, you'll have to update to a recent 7-STABLE, or wait for the upcoming 7.2 release. The kernel support code for graphics chips has been updated since the release of 7.1. Thanks I'll try that. What's the recommended way to upgrade nowadays? freebsd-update or still cvsup/portupgrade? Well, freebsd-update is only for the base system (binary updates) while the cvsup/portupgrade combo is for ports. I tend to update the sources and recompile, so I can use src.conf and make.conf to customise the base system and ports. For the base system: csup (not a typo, it's a replacement in the base system for the cvsup port). For ports, a combination of portsnap to update the ports tree, and portmaster to recompile out-of-date ports. I upgraded to the latest Xserver, 2d acceleration does seem a bit improved unfortunately it still isn't optimal. I guess I'd better buy an Nvidia card. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Compiling FreeBSD with GCC 4.3+
On Tuesday 21 April 2009 17:58:15 Mel Flynn wrote: On Tuesday 21 April 2009 17:37:50 David Naylor wrote: On Tuesday 21 April 2009 10:32:04 Mel Flynn wrote: Hi David, On Monday 20 April 2009 21:48:39 David Naylor wrote: There has been an article recently published by phoronix (http://www.phoronix.com/scan.php?page=articleitem=pcbsd_vs_kubuntu; nu m= 1) that compares PC-BSD to Kubuntu. Kubuntu uses GCC 4.3.3 compared to FreeBSD's GCC 4.2.2. There is a considerable performance difference between the two OS's, the article contributes this difference to the compiler. Nice shot in the dark, since except the calculations a lot of these are influenced by journaled FS vs stock UFS. I know, benchmarking anything but the simplest things are influenced by too many factors. Pity it doesn't provide an unbiased comparison of FreeBSD and Linux. That and comparing apples and pears as default configured fruit, don't usually work well. Of course it appeals to the end user which fruit is healthier. :-) In order to check if this is so (and to get the speed improvements of GCC 4.3+) one needs to compile the ports (and preferable world/kernel as well) with GCC 4.3+. It's license is incompatible with world/kernel. What type of incompatibility. I know FreeBSD has reservations about GPLv3 (I personally don't understand why everyone cannot be friends and use BSD Licenses). So is this a policy incompatibility or a legal one (i.e. would it be 'illegal' for me to use GCC 4.3+ to compile world/kernel, as an end-user/consumer of FreeBSD). I assume the same discussion applies to binutils. Policy. Only legal issue in FreeBSD for the end user is WITH_IDEA. Thanks for sorting that out. Good news for me. That said, install lang/gcc43 and set CC/CXX for ports. World/kernel would be a lot harder. Maybe setting WITHOUT_GCC in /etc/src.conf and setting CC/CXX would work, but there's quite a few modifications to gcc that aren't in ports lang/gcc, so I have my doubts. I suppose it would be nice if there was an easy way to use an out-of-source compiler in FreeBSD. Like set PORTS_COMPILER=gcc43 and the port will installed and used... One may have dreams. cat 'EOF' /etc/make.conf .if !empty(.CURDIR:M/usr/ports/*) CC=/usr/local/bin/gcc43 CXX=/usr/local/bin/g++43 .endif EOF Pretty close, huh? Kinda, it is what I was thinking about (or just symlinking cc, cxx to the proper programs). Of course if this is implemented 'properly' in ports then auto-dependencies and all that will be added. I was actually thinking about replacing the standard compiler by a) not installing gcc 4.2.2 (i think WITHOUT_GCC, as mentioned by yourself) b) installing latest gcc: # make -C /usr/ports/lang/gcc43 install DESTDIR=/new/freebsd/system PREFIX=/usr -DWITHOUT_JAVA [ With symlinks from gcc43 - gcc, etc] c) Hoping this works Well something like that (with extra hope) Is there an easy way to set this up and does anyone know the compatibility of world/kernel/ports with GCC 4.3+? Also has anyone tried this and benchmarked the result? Not me, but be sure to stick around for the new non-gcc compiler coming to a FreeBSD near you. And with the work done by Marcel Molenaar on gpart, hopefully we can have ZFS and gjournal as choices in the installer. You mean llvm, waiting patiently. I suppose my suggestion above will become even more important (at least for compiling ports) since it will be a while till llvm has decent c++ support. Yeah, I don't know how that's gonna work if llvm is ready for base, but no c++. I guess we'll have to sit out g++ 4.2 for a while. If you're in the position to do so, I'd do their benchmarks with ZFS and see how much difference that already makes. Well, llvm does support C++ (with the gcc frontend) so that shouldn't be too much of a problem. clang is more of the issue but I suppose we could always have llvm-clang for C and llvm-gcc for C++ (until clang gets full C++ support). signature.asc Description: This is a digitally signed message part.
No sound with in Gnome gtk programs, qt programs do have sound
I can't get any sound with programs such as mplayer and exaile. However vlc (qt) and Gnash have working sound (on the same desktop!). Gnome's soundmixer doesn't recognize my soundcard (intel_hda). This appears to be the problem. I searched the FreeBSD Gnome project page but didn't find a answer. Any ideas what might be wrong? ___ 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: Preventing ntpd from adjusting time (backwards)
On Tue, 21 Apr 2009 16:43:32 +0200 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote: On Tuesday 21 April 2009 16:20:52 RW wrote: The bottom line though, is that ntpdate_enable=yes solves the problem entirely, since the real problem is not the step, but the fact that it happens in the background, and after a delay. Care to expand on that? Dovecot won't stop if root issues a date command that sets time to the past, for example? I was assuming that since you're running ntpd you wouldn't be doing that. ntpdate may be deprecated, but it's been deprecated for years, and I doubt it will go away until ntpd fully replaces it's functionality. ntpd -gq can replace ntpdate in a crontab, but ntpd -gqn doesn't really replace ntpdate -b in the boot-sequence. I'm actually counting on it to be gone in 8.0. Is that official? ___ 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: Sudden /libexec/ld-elf.so.1: Shared object libintl.so.8 not found, required by errors
2009/4/14 Ruben de Groot mai...@bzerk.org: On Fri, Apr 10, 2009 at 08:40:51PM -0300, Agus typed: Hi guys, Yesterday i suddenly start receiving this errors... first i noticed it cause i couldnt login and bash threw it.. then su... /libexec/ld-elf.so.1: Shared object libintl.so.8 not found, required by -su Then i remove bash and change to tcsh and was ok... but then again, this one when using sendmail.. /libexec/ld-elf.so.1: Shared object libsasl2.so.2 not found, required by send-mail I didnt update anything... and it was all running fine for months... what can it be? the files i have are.. -rwxr-xr-x 1 root wheel 92K Mar 11 15:26 libsasl2.so.2 lrwxr-xr-x 1 root wheel 13B Mar 11 15:26 libsasl2.so - libsasl2.so.2 -r--r--r-- 1 root wheel 39K Aug 23 2008 libintl.so.8 lrwxr-xr-x 1 root wheel 12B Aug 23 2008 libintl.so - libintl.so.8 What is the output of ldconfig -r ? Sorry for the delay.. was too busyy... No output... just this ldconfig -r /var/run/ld-elf.so.hints: search directories: Thanksss, Agustin ___ 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: Atom 330 testing
On Tue, 21 Apr 2009, P.Moulin wrote: Testing a mini-ITX Intel D945GCLF2 motherboard with Atom 330 processor. Hi, [sorry to re-open this one month old thread] I have also this D945GCLF2. All is running nearly fine, but on heavy load and after the system is powered up for a couple of days, it panics. The system is running 7.1-RC1 (7th dec 2008) as a Generic kernel, and a gmirrored WDC+seagate backup drive. The bios is still in 99 release. Since I have read some is using also this board as an home server, does someone else is also having this issue (panic under heavy load when up for a few days) ? Just as feedback, the board I was testing eventually refused to power on. So that test ended there. -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: Preventing ntpd from adjusting time (backwards)
Hi, Mel-- On Apr 21, 2009, at 2:06 AM, Mel Flynn wrote: Some coarse reading of ntpd(8) and ntp.conf(5) doesn't lead me to believe it's possible to make ntpd *not* adjust the time. With adjust I don't mean the skew operation, but really change the time. Perhaps I've missed it elsewhere in this thread, but I don't believe anyone actually answered the original question, which would be to use: -x, --slew Slew up to 600 seconds. Normally, the time is slewed if the offset is less than the step threshold, which is 128 ms by default, and stepped if above the threshold. This option sets the threshold to 600 s, which is well within the accuracy window to set the clock manually. [ ... ] It should be surprising that your clock would jump by 6 seconds. Do you have adequate upstream timesources (ie, at least 4) configured, is your local HW clock busted somehow, or are you doing something odd with power-savings mode or running in a VM or something...? Regards, -- -Chuck ___ 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: Correct use of fsck_msdosfs
Even Rognlien wrote: Good afternoon, We are using fsck_msdosfs in one of our products, and are trying to comply with the conditions in the correct way. We get a bit confused with the copyright notices, and hopy you are able to clarify this for us. Inside the source files found at http://www.freebsd.org/cgi/cvsweb.cgi/src/sbin/fsck_msdosfs/ , we find the following copyright text You do understand that the freebsd-questions@freebsd.org mailing list is not an official mouthpiece for the FreeBSD project, but rather a collection of FreeBSD users from all round the world? We can offer advice and opinions about your questions, but we can't give you a definitive answer. If your legal people need something more authoritative, probably the best place to start is with the FreeBSD foundation: http://www.freebsdfoundation.org *** /* * Copyright (C) 1995 Wolfgang Solfrank * Copyright (c) 1995 Martin Husemann * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *notice, this list of conditions and the following disclaimer in the *documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software *must display the following acknowledgement: * This product includes software developed by Martin Husemann * and Wolfgang Solfrank. * 4. Neither the name of the University nor the names of its contributors *may be used to endorse or promote products derived from this software *without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ ** Then, under the Free BSD Legal Notices, under which it seems that fsck_msdosfs resides, we find the following FreeBSD Copyright notice: ** Copyright 1994-2009 The FreeBSD Project. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE FREEBSD PROJECT ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FREEBSD PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. The views and conclusions contained in the software and documentation are those of the authors and should not be interpreted as representing official policies, either expressed or implied, of the FreeBSD Project. ** How do these two copyright texts relate to each other, and how do we use them in the correct way? This is particularly relevant to sort out when we do redistribution in binary, where the copyright text needs to be
Re: Preventing ntpd from adjusting time (backwards)
On Tuesday 21 April 2009 19:31:33 RW wrote: On Tue, 21 Apr 2009 16:43:32 +0200 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote: On Tuesday 21 April 2009 16:20:52 RW wrote: The bottom line though, is that ntpdate_enable=yes solves the problem entirely, since the real problem is not the step, but the fact that it happens in the background, and after a delay. Care to expand on that? Dovecot won't stop if root issues a date command that sets time to the past, for example? I was assuming that since you're running ntpd you wouldn't be doing that. Right, then this works because ntpdate is started before dovecot in rcorder, like Tim Judd said else in thread. ntpdate may be deprecated, but it's been deprecated for years, and I doubt it will go away until ntpd fully replaces it's functionality. ntpd -gq can replace ntpdate in a crontab, but ntpd -gqn doesn't really replace ntpdate -b in the boot-sequence. I'm actually counting on it to be gone in 8.0. Is that official? Nope, but 3 major releases of mourning should be enough ya think? Maybe not, given the problems above. Now I'm also wondering how ntpd handles securelevel 2. -- Mel ___ 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: Preventing ntpd from adjusting time (backwards)
On Apr 21, 2009, at 11:23 AM, Mel Flynn wrote: Now I'm also wondering how ntpd handles securelevel 2. man init suggests that stepping the clock by more than a second is disallowed: 2 Highly secure mode - same as secure mode, plus disks may not be opened for writing (except by mount(2)) whether mounted or not. This level precludes tampering with file systems by unmounting them, but also inhibits running newfs(8) while the system is multi- user. In addition, kernel time changes are restricted to less than or equal to one second. Attempts to change the time by more than this will log the message ``Time adjustment clamped to +1 second''. Regards, -- -Chuck ___ 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: Sudden /libexec/ld-elf.so.1: Shared object libintl.so.8 not found, required by errors
On Tuesday 21 April 2009 19:33:37 Agus wrote: 2009/4/14 Ruben de Groot mai...@bzerk.org: On Fri, Apr 10, 2009 at 08:40:51PM -0300, Agus typed: Hi guys, Yesterday i suddenly start receiving this errors... first i noticed it cause i couldnt login and bash threw it.. then su... /libexec/ld-elf.so.1: Shared object libintl.so.8 not found, required by -su Then i remove bash and change to tcsh and was ok... but then again, this one when using sendmail.. /libexec/ld-elf.so.1: Shared object libsasl2.so.2 not found, required by send-mail I didnt update anything... and it was all running fine for months... what can it be? the files i have are.. -rwxr-xr-x 1 root wheel92K Mar 11 15:26 libsasl2.so.2 lrwxr-xr-x 1 root wheel13B Mar 11 15:26 libsasl2.so - libsasl2.so.2 -r--r--r-- 1 root wheel39K Aug 23 2008 libintl.so.8 lrwxr-xr-x 1 root wheel12B Aug 23 2008 libintl.so - libintl.so.8 What is the output of ldconfig -r ? Sorry for the delay.. was too busyy... No output... just this ldconfig -r /var/run/ld-elf.so.hints: search directories: Possible causes: /var/run/ld-elf.so.hints is reduced to 0 by program foo, operator bar or hacker baz. You or operator bar ran ldconfig -s without arguments. /rescue/ldconfig /lib /etc/rc.d/ldconfig start Should get you back up and running. -- Mel ___ 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: Preventing ntpd from adjusting time (backwards)
On Tuesday 21 April 2009 20:29:18 Chuck Swiger wrote: On Apr 21, 2009, at 11:23 AM, Mel Flynn wrote: Now I'm also wondering how ntpd handles securelevel 2. man init suggests that stepping the clock by more than a second is disallowed: yes, so does it bail or retry till skew wins over the failed steps? -- Mel ___ 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: Preventing ntpd from adjusting time (backwards)
On Apr 21, 2009, at 11:33 AM, Mel Flynn wrote: On Tuesday 21 April 2009 20:29:18 Chuck Swiger wrote: On Apr 21, 2009, at 11:23 AM, Mel Flynn wrote: Now I'm also wondering how ntpd handles securelevel 2. man init suggests that stepping the clock by more than a second is disallowed: yes, so does it bail or retry till skew wins over the failed steps? The attempt to step the clock will fail. ntpd should continue to run, but the rate of skewing is typically limited to 1 second of correction over a time interval of 2000 seconds. If your clock routinely drifts by more than 1 second every hour or so, ntpd is unlikely to be able to correct the time at all under securelevel 2. If your clock drift is less, ntpd should eventually manage to sync time, but for extreme cases, running ntpdate periodically to forcibly reset the clock might be needed (and to run ntpdate after boot, you'd need to back down to securelevel 1). Regards, -- -Chuck ___ 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/Dummynet/Bridging with VLAN trunks?
Howard Jones wrote: I'm trying to use Dummynet+IPFW and bridging to make a packet shaper that runs across multiple VLANs. So my intended set up is: [users]-[Aggregate Switch]=[FreeBSD]=[Upstream Switch (with IP interfaces for each vlan)]-The World where - is a single VLAN, and = is a tagged dot1q trunk. The aim is to drop the FreeBSD box in the middle, in one trunked uplink, and cover all the VLANs downstream of that. Should this work? In practice, the bridging seems to work OK, but as soon as I add rules to match traffic passing through and apply it to pipes, everything stops. I can use tcpdump's vlan option to filter traffic on em0, em1 or bridge0 and it does show only traffic for that vlan, so tags are being preserved... Ideally, I'd like to use the dot1q tag in ipfw rules directly, and avoid ip ranges, but I don't think that's possible. Is there some special incantation to make ipfw vlan-aware? Has anyone else done this successfully? This is how I do it: ipfw pipe 1 all from any to any in via vlan20 ipfw pipe 2 all from any to any in via vlan40 But in my configuration, bridge0 has members vlan20 and vlan40. I would create a separate bridge with vlan21 and vlan41. I don't think ipfw can filter on dot1q tags yet, though. There was a lot of layer 2 filtering capability in a patch floating around for 8-CURRENT, but I'm not sure of its status, nor whether dot1q filtering was implemented. -- Chris Cowart Network Technical Lead Network Infrastructure Services, RSSP-IT UC Berkeley pgpZHyHXxvV8v.pgp Description: PGP signature
Re: Problems with Xorg after portupgrade
On Sun, 19 April 2009 03:14:35 Manolis Kiagias wrote: Ivan Rambius Ivanov wrote: Hello, This week upgraded my Acer TravelMate 4060 laptop from FreeBSD 7.0 to FreeBSD 7.1 and also csup'ed my ports and portupgraded them and I am not able to start X correctly. When I invoke startx, it tries to start it and then the screen goes blank and black, nothing is seen on it and I am no able to kill X using ctrl-alt-backspace or swtich to another terminal and I have to cold reboot my machine. uname -r shows 7.1-RELEASE-p4 The version of xorg metaport is 7.4_1, the version of xorg-server is 1.6.0,1. After I did the portupgrade I rebooted my machine and the KDE display manager failed to appear, so I disabled it from /etc/ttys for easier debugging. After I logged in to a shell, I called startx and the screen went blank and black. After I rebooted the machine I invoked X -configure as root and run X -config /root/xorg.conf.new and again the same problem. The default screen when not running a WM/DE is no longer the familiar screen pattern / X mouse pointer, but a black screen. Go figure... You maybe having a working X and not know it. I had the same issues starting and stopping X. I was looking at a pitch black screen and did not know if the server was running properly or not. After some digging around I found a new parameter which will produce the traditional stipple with cursor in the center of the screen: X -retro The above command plus the settings in xorg.conf about killing the server with Ctrl+Atl+BS (specified elsewhere in this thread) will produce a traditional startup and shutdown for X. Thank for all the useful tips Marek I then tried to make ctrl-alt-backspace work and I added the following section at the end of /root/xorg.conf.new Section ServerFlags Option DontZap off EndSection This should definitely work. and called X -config /root/xorg.conf.new again - same results and still could not kill ther server. I followed /usr/ports/UPDATING, entry from 20090123 and disabled moused and added Option AllowEmptyInput off Browsing your xorg.conf, you forgot to add the keyword Option in front of AllowEmptyInput. And actually this should also go the ServerFlags section. in the ServerLayout section. Again X refuses to start appropriately. I would be very grateful if you help me in resolving this issue. I am attaching my xorg.conf file and the logs from /var/log/Xorg.0.log and I will happily provide more information if needed. Thank you very much in advance. Regards Rambius You can download my working xorg.conf from here: http://store.itsyourftp.com/~sonic2000gr/freebsd/xorg.conf.tar.gz It even includes some comments. Give it a try. ___ 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: Sudden /libexec/ld-elf.so.1: Shared object libintl.so.8 not found, required by errors
Agus wrote: [snip] What is the output of ldconfig -r ? Sorry for the delay.. was too busyy... No output... just this ldconfig -r /var/run/ld-elf.so.hints: search directories: Sounds like the hints file is missing or damaged. These live here: /var/run/ld.so.hints for a.out and /var/run/ld-elf.so.hints for elf format. Look and see if these are present, and possibly consider deleting them and regenerating due to the possibility they are damaged. As root the command ldconfig -aout will do the first (probably not needed as that format is deprecated) and ldconfig -elf will do the second. -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: Preventing ntpd from adjusting time (backwards)
On Tuesday 21 April 2009 19:43:30 Chuck Swiger wrote: Hi, Mel-- On Apr 21, 2009, at 2:06 AM, Mel Flynn wrote: Some coarse reading of ntpd(8) and ntp.conf(5) doesn't lead me to believe it's possible to make ntpd *not* adjust the time. With adjust I don't mean the skew operation, but really change the time. Perhaps I've missed it elsewhere in this thread, but I don't believe anyone actually answered the original question, which would be to use: -x, --slew Slew up to 600 seconds. Normally, the time is slewed if the offset is less than the step threshold, which is 128 ms by default, and stepped if above the threshold. This option sets the threshold to 600 s, which is well within the accuracy window to set the clock manually. Hmm, that might work. Thanks! It should be surprising that your clock would jump by 6 seconds. Do you have adequate upstream timesources (ie, at least 4) configured, is your local HW clock busted somehow, or are you doing something odd with power-savings mode or running in a VM or something...? One timesource, shared on local network, this machine is a client of the gateway, which uses only one source (ntp.alaska.edu, which is geographically 10 minutes by car but thanks to Alaska bad peering, we go through Seattle anyway). I checked the logs, that machine didn't step at all that day (or any other day, as far as my logs go). It always happens after reboot, as Matthew indicated. No VM, no power-savings. The only odd things are Hyperthreading and the reboot. Well, I abuse the machine quite heavily from time to time, but then I'd expect the clock to be slow, not 6 seconds faster. -- Mel ___ 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: Preventing ntpd from adjusting time (backwards)
On Apr 21, 2009, at 11:57 AM, Mel Flynn wrote: [ ... -x option... ] Hmm, that might work. Thanks! Sure. It should be surprising that your clock would jump by 6 seconds. Do you have adequate upstream timesources (ie, at least 4) configured, is your local HW clock busted somehow, or are you doing something odd with power-savings mode or running in a VM or something...? One timesource, shared on local network, this machine is a client of the gateway, which uses only one source (ntp.alaska.edu, which is geographically 10 minutes by car but thanks to Alaska bad peering, we go through Seattle anyway). I checked the logs, that machine didn't step at all that day (or any other day, as far as my logs go). It always happens after reboot, as Matthew indicated. No VM, no power-savings. The only odd things are Hyperthreading and the reboot. OK, a step upon boot is not unusual-- some machines have poor timekeeping with the internal BIOS/battery-backed clock used when the system is off. Note that NTP falseticker detection really wants to have at least 4 timesources available for the algorithm it uses to detect whether an NTP source is behaving poorly. Try contacting your ISP for nearby NTP sources, or try adding 0.us.pool.ntp.org, 1.us..., 2.us... to your config; the NTP pool nameservers use a geolocation mechanism to some extent to try and return NTP servers which are close. Regards, -- -Chuck ___ 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
No route to host when trying to connect to FTP server on the Internet
Hi, I'm trying to connect to my friend's FTP server but I'm getting a No route to host when trying from my NAT workstation. It works just fine when I connect from my NAT server though. Internet - NAT server (192.168.187.1) - NAT workstation (192.168.187.2) I've been suggested ftp-proxy. It didn't work though. You can see my setup and hopefully other relevant info here: http://pastie.org/453644 Thanks! -- http://www.home.no/reddvinylene ___ 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
CD Burning
I have found that burning software is unable to detect my cdrom. I would assume that this is because acd0 is listed in fstab as read-only. I am just a little worried that changing it to rw might wreck a cd (already burnt) one day. Since cp or mv to /cdrom won't work, I guess my fear is unjustified hey? -- Christopher Chambers ccha...@interchange.ubc.ca ___ 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: CD Burning
Christopher Chambers wrote: I have found that burning software is unable to detect my cdrom. I would assume that this is because acd0 is listed in fstab as read-only. That is not correct. I am just a little worried that changing it to rw might wreck a cd (already burnt) one day. This will not happen, burner won't engage on a disc w/ a closed session under normal circumstances. Since cp or mv to /cdrom won't work, I guess my fear is unjustified hey? not really, you should checkout the man pages for burncd, and cdrecord and the appropriate section in the handbook. -- Adam Vandemore Systems Administrator IMED Mobility (605) 498-1610 ___ 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's interaction with MS-DOS partitions
Hi, I have noticed that some programs have trouble interacting with my ms-dos partition. For example, I attempted to download a torrent with ctorrent. Works perfectly if I am saving to the bsd partition but my whole system freezes if I use the ms-dos partition. I mount it in /etc/fstab as /dev/ad0s2 /d msdosfs rw 0 0 Is this behaviour the result of the 0 0? -- Christopher Chambers ccha...@interchange.ubc.ca ___ 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: No route to host when trying to connect to FTP server on the Internet
On Apr 21, 2009, at 11:40 AM, Redd Vinylene wrote: I'm trying to connect to my friend's FTP server but I'm getting a No route to host when trying from my NAT workstation. It works just fine when I connect from my NAT server though. Internet - NAT server (192.168.187.1) - NAT workstation (192.168.187.2) Presumably you should have a default route set? (Check netstat -r.) If not, consider: route add default 192.168.187.1 Regards, -- -Chuck ___ 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: Preventing ntpd from adjusting time (backwards)
On Tuesday 21 April 2009 21:07:34 Chuck Swiger wrote: Try contacting your ISP for nearby NTP sources, Anchorage, AK, is special that way. I'll check with ACS if they have one, but if they don't, even traffic to the local competitor (GCI) goes through Seattle. -- Mel ___ 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: No route to host when trying to connect to FTP server on the Internet
On Tue, Apr 21, 2009 at 9:13 PM, Chuck Swiger cswi...@mac.com wrote: On Apr 21, 2009, at 11:40 AM, Redd Vinylene wrote: I'm trying to connect to my friend's FTP server but I'm getting a No route to host when trying from my NAT workstation. It works just fine when I connect from my NAT server though. Internet - NAT server (192.168.187.1) - NAT workstation (192.168.187.2) Presumably you should have a default route set? (Check netstat -r.) If not, consider: route add default 192.168.187.1 Regards, -- -Chuck Yeah, the default route is set. Routing works just fine. In fact, it's been working for years. It's just this one FTP server that it won't connect to. -- http://www.home.no/reddvinylene ___ 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: No route to host when trying to connect to FTP server on the Internet
On Apr 21, 2009, at 1:25 PM, Redd Vinylene wrote: Yeah, the default route is set. Routing works just fine. In fact, it's been working for years. It's just this one FTP server that it won't connect to. Then it could be a legitimate error being returned by a remote router, also. traceroute/mtr to the problematic host could be helpful -- -Chuck ___ 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: CD Burning
Hi Chris, Setting cd as rw doesn't really make sense as you don't use filesystem tree to burn things on cds but use software that communicates with cd burner directly (through driver). Problem with using cd burner is most probably because of access rights. Try running that burning software as root and if it works fine then you'll simply have to enable your user to use acd0. Regards, Rafal Grodzinski Christopher Chambers wrote: I have found that burning software is unable to detect my cdrom. I would assume that this is because acd0 is listed in fstab as read-only. I am just a little worried that changing it to rw might wreck a cd (already burnt) one day. Since cp or mv to /cdrom won't work, I guess my fear is unjustified hey? ___ 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: No route to host when trying to connect to FTP server on the Internet
On Tue, Apr 21, 2009 at 10:27 PM, Chuck Swiger cswi...@mac.com wrote: On Apr 21, 2009, at 1:25 PM, Redd Vinylene wrote: Yeah, the default route is set. Routing works just fine. In fact, it's been working for years. It's just this one FTP server that it won't connect to. Then it could be a legitimate error being returned by a remote router, also. traceroute/mtr to the problematic host could be helpful -- -Chuck I think I just got some help on IRC: Pulpie is it on the local network of your firewall and not this computer? me yes! Pulpie thats why you can't connect to it Suggestions on how to fix this problem using pf would be greatly appreciated though. Many thanks! -- http://www.home.no/reddvinylene ___ 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: No route to host when trying to connect to FTP server on the Internet
Redd Vinylene wrote: On Tue, Apr 21, 2009 at 9:13 PM, Chuck Swiger cswi...@mac.com wrote: On Apr 21, 2009, at 11:40 AM, Redd Vinylene wrote: I'm trying to connect to my friend's FTP server but I'm getting a No route to host when trying from my NAT workstation. It works just fine when I connect from my NAT server though. Internet - NAT server (192.168.187.1) - NAT workstation (192.168.187.2) Presumably you should have a default route set? (Check netstat -r.) If not, consider: route add default 192.168.187.1 Regards, -- -Chuck Yeah, the default route is set. Routing works just fine. In fact, it's been working for years. It's just this one FTP server that it won't connect to. For awhile I had been dealing with a sort similar issuesee here: http://forums.freebsd.org/showthread.php?t=890 There where other issues with it as well but that was the most reproducible. Also sshd didn't work to same remote host either. I recently upgraded the server from 6.2 - 7.1 including updated ports rebuild. That fixed every nagging issue with the system including nat/routing stuff. My best guess is there was some issues w/ pf in 6.2 as no config files for application got changed including fw rules yet now it works. -- Adam Vandemore Systems Administrator IMED Mobility (605) 498-1610 ___ 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
perl script failed at different stages
Hi, I guess this is not a REAL freebsd problem, but I am running a perl script on freebsd7.0/perl 5.10 system. This script failed with segmentation fault at different stages with different input files, and sometimes the script actually finishes and gives the reasonable output. So does this mean the script is fine, but others are at fault? e.g. memory.. or..?? any advice is welcome. TFC ___ 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: CD Burning
On Tue, Apr 21, 2009 at 12:50:47PM -0700, Christopher Chambers wrote: I have found that burning software is unable to detect my cdrom. *What* burning software? /usr/sbin/burncd should recognize the drive. If you are trying to run cdrecord then you need device atapicam added to your kernel config. Try cdrecord -scanbus to learn how cdrecord names your device. I would assume that this is because acd0 is listed in fstab as read-only. /etc/fstab is a File System Table used for mounting filesystems. You are a ways off just yet in having a filesystem on acd0 to mount. I am just a little worried that changing it to rw might wreck a cd (already burnt) one day. Since cp or mv to /cdrom won't work, I guess my fear is unjustified hey? The OS doesn't know how to write/append an ISO 9660 filesystem so there would be no possibility of attempting an accidental write to CDROM. -- 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: perl script failed at different stages
Tsu-Fan Cheng wrote: Hi, I guess this is not a REAL freebsd problem, but I am running a perl script on freebsd7.0/perl 5.10 system. This script failed with segmentation fault at different stages with different input files, and sometimes the script actually finishes and gives the reasonable output. So does this mean the script is fine, but others are at fault? e.g. memory.. or..?? any advice is welcome. If you suspect bad memory, best to replace w/ known good or test somewhere that is not a concern. Bad hardware and memory especially can cause many many different unexpected symptoms, and can be tricky to run down. -- Adam Vandemore Systems Administrator IMED Mobility (605) 498-1610 ___ 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: No route to host when trying to connect to FTP server on the Internet
On Apr 21, 2009, at 1:35 PM, Redd Vinylene wrote: I think I just got some help on IRC: Pulpie is it on the local network of your firewall and not this computer? me yes! Pulpie thats why you can't connect to it Suggestions on how to fix this problem using pf would be greatly appreciated though. Many thanks! The canonical method would be to set up split DNS, or even just add an /etc/hosts entry with the hostname listing the LAN IP rather than an external IP. -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Problems with Xorg after portupgrade
mv wrote: On Sun, 19 April 2009 03:14:35 Manolis Kiagias wrote: The default screen when not running a WM/DE is no longer the familiar screen pattern / X mouse pointer, but a black screen. Go figure... You maybe having a working X and not know it. I had the same issues starting and stopping X. I was looking at a pitch black screen and did not know if the server was running properly or not. After some digging around I found a new parameter which will produce the traditional stipple with cursor in the center of the screen: X -retro The above command plus the settings in xorg.conf about killing the server with Ctrl+Atl+BS (specified elsewhere in this thread) will produce a traditional startup and shutdown for X. Thank for all the useful tips Marek You can also use twm for testing. Have a look at http://www.freebsdgr.org/handbook-mine/x-config.html (soon to be integrated in the Handbook) ___ 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: Preventing ntpd from adjusting time (backwards)
On Tue, 21 Apr 2009 20:23:14 +0200 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote: On Tuesday 21 April 2009 19:31:33 RW wrote: On Tue, 21 Apr 2009 16:43:32 +0200 Mel Flynn mel.flynn+fbsd.questi...@mailing.thruhere.net wrote: On Tuesday 21 April 2009 16:20:52 RW wrote: The bottom line though, is that ntpdate_enable=yes solves the problem entirely, since the real problem is not the step, but the fact that it happens in the background, and after a delay. Care to expand on that? Dovecot won't stop if root issues a date command that sets time to the past, for example? I was assuming that since you're running ntpd you wouldn't be doing that. Right, then this works because ntpdate is started before dovecot in rcorder, like Tim Judd said else in thread. ntpdate and ntpd normally start consecutively, both way before Dovecot. The difference is that ntpdate runs in the foreground, blocking the boot-process for a fraction of a second, but ntpd forks-off into the background and takes a lot longer over making its initial correction. If you're dead set against using ntpdate, you could use the preferred ntpd -gnq in it's place, at the expense of about 10 seconds of extra boot time. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Customized Remote Install
I've done a lot of searching and maybe this capability doesn't exist, but I am looking to do this: I am at my company's HQ, we have a new field office that I am setting up a FreeBSD server. The technical knowledge at the site windows only, so I basically have someone I can have put a CD in a drive and power a machine on. My problem is that the default install of FreeBSD has password authentication turned off, and root SSH disabled. Being a small office, they don't have a IP KVM or some way for me to get to the box to configure it. My hope was that I could make an automated install CD/DVD that configured all the options I want AND change some base config files so I can actually get to the box (or install an SSH key). I know I can do the scripted sysinstall, but from what I could find I would need a floppy or additional CD to put the answer file on. I'm open to other options if someone has gone down this road before! Thanks! Scott Seekamp ___ 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: Customized Remote Install
On Tue, 21 Apr 2009 14:42:32 -0600, Scott Seekamp sseek...@risei.net wrote: My hope was that I could make an automated install CD/DVD that configured all the options I want AND change some base config files so I can actually get to the box (or install an SSH key). [...] I'm open to other options if someone has gone down this road before! I'd like to advertize a method that I think is very comfortable in such a setting. It's worth mentioning that this method usually requires (a) modern enough PCs or (b) you to know what is the hardware profile of the PC. The method works as follows: First create a FreeBSD as you want it to be on the clients. Install and configure everything as you intend. Then dump the created partitions onto a CD or DVD and create a simple script that: 1. initializes the client's hard disk 2. slices the disk and newfses the partitions 3. dumps the partition images onto the disks 4. reboots the machine into operating state. After this, you should be able to SSH into the client and change settings that need to be changed. You always have your reference machine at hand, because it's exactly installed and configured as the clients. Under controlled conditions, it's even possible to build the needed system in a virtualized environment. -- 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: FreeBSD's interaction with MS-DOS partitions
ms-dos partition. For example, I attempted to download a torrent with ctorrent. Works perfectly if I am saving to the bsd partition but my whole system freezes if I use the ms-dos partition. I mount it in /etc/fstab as /dev/ad0s2 /d msdosfs rw 0 0 Is this behaviour the result of the 0 0? no. it's a result of ms-dos fs driver which is just useful to do read/write, even this isn't high performance ;) mmap is probably buggy that's why rtorrent crash. i don't think anyone really optimized this, not much need anyway. ___ 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: Customized Remote Install
On Tue, Apr 21, 2009 at 11:51:32PM +0200, Polytropon wrote: On Tue, 21 Apr 2009 14:42:32 -0600, Scott Seekamp sseek...@risei.net wrote: My hope was that I could make an automated install CD/DVD that configured all the options I want AND change some base config files so I can actually get to the box (or install an SSH key). [...] I'm open to other options if someone has gone down this road before! I'd like to advertize a method that I think is very comfortable in such a setting. It's worth mentioning that this method usually requires (a) modern enough PCs or (b) you to know what is the hardware profile of the PC. The method works as follows: First create a FreeBSD as you want it to be on the clients. Install and configure everything as you intend. Then dump the created partitions onto a CD or DVD and create a simple script that: 1. initializes the client's hard disk 2. slices the disk and newfses the partitions 3. dumps the partition images onto the disks 4. reboots the machine into operating state. After this, you should be able to SSH into the client and change settings that need to be changed. This works very well. I have done essentially the same many times. The one thing missing is that you need to have something to set the network information -- hostname, IP address, gateway, netmask and name-server.These will be different for each machine. So, your script will have to accomodate this - read console input for these items and plug them in to the proper places before rebooting. jerry You always have your reference machine at hand, because it's exactly installed and configured as the clients. Under controlled conditions, it's even possible to build the needed system in a virtualized environment. -- 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 ___ 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: Sorting out owner and group permissions...
Hi, I understand your point. But since a application can modify it to a arbritary value there must be some way to keep the app from doing nasty stuff. FreeBSD has MAC implementations ;-))) Regards, --- Mr. Olli On Di, 2009-04-21 at 17:02 +0200, Mel Flynn wrote: On Tuesday 21 April 2009 15:13:47 Mister Olli wrote: no does not work, since using SSH / SFTP does not involve starting a shell. so umask settings don't work. Then you're using the wrong system for the task. The OS can't make assumptions about what the ownership/modes of a file should really be, if an application is telling it they should be different. This is why more mature FTP daemons allow modes/ownerships to be set on upload. The OS already: - gives a new file group of the containing directory so it is easy to create shared files in a shared directory - has a default umask that is world readable - allows changing a users umask The application (sftp) overrides all this and now you're expecting the OS to override that again. Don't think so ;) ___ 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: Encrypted slice with geli
Bill Moran said the following on 2009-04-21 14:41: In response to Bernt Hansson be...@bah.homeip.net: Giorgos Keramidas said the following on 2009-04-20 23:59: On Mon, 20 Apr 2009 21:38:54 +0200, Bernt Hansson be...@bah.homeip.net wrote: Hello list! I was thinking of makeing a slice encrypted with geli. My question is: does geli init -s 4096 /dev/ad* erase the data on the slice. The handbook didn't say yes or no, and I don't want to try without asking. No, No, what? does it erase the data or not. It depends on exactly what part of the process you're talking about My question is: does geli init -s 4096 /dev/ad* erase the data on the slice and it depends on exactly what you mean by erase. Destroy it so it's no longer aviable. Geli doesn't explicitly destroy your data at any point in the process. However, most HOWTOs I've ready will tell you at some step or another to overwrite the partition using dd and /dev/zero, which _does_ destroy the data. Yes. That much I do know. Also, even if you skip the dd step, geli will alter the partition in such a way that typical tools will not see the data. However, if you know your stuff, you can bypass normal tools and still read (part of?) the data. Not good. If your question is, I'm switching a partition to using geli, do I need to back up my data before doing so? the answer is YES! I do NOT want to backup the data unencrypted. But I want to keep the info on the slice. Then you need to copy it elsewhere, then copy it back after the slice is encrypted. Dont have the space for that. ___ 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: CD Burning
Christopher Chambers wrote: I have found that burning software is unable to detect my cdrom. I would assume that this is because acd0 is listed in fstab as read-only. I am just a little worried that changing it to rw might wreck a cd (already burnt) one day. Since cp or mv to /cdrom won't work, I guess my fear is unjustified hey? Here is a tutorial about CD-DVD Burning under FreeBSD: http://www.freebsdonline.com/content/view/535/517/ What burning software you use? ___ 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 usage analysis
Is there an easy way to analyze disk usage to determine which files and folders are taking up the most space? -- Christopher Chambers ccha...@interchange.ubc.ca ___ 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 usage analysis
Christopher Chambers writes: Is there an easy way to analyze disk usage to determine which files and folders are taking up the most space? If this isn't a FAQ, then search the mailing list archives. This question, or something leading to it like out of disk space, comes up regularly. 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: Disk usage analysis
Christopher Chambers wrote: Is there an easy way to analyze disk usage to determine which files and folders are taking up the most space? du -hd 1 | sort -n http://www.freebsd.org/cgi/man.cgi?query=duapropos=0sektion=0manpath=FreeBSD+7.1-RELEASE+and+Portsformat=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
Re: Disk usage analysis
On Tue, Apr 21, 2009 at 9:21 PM, Adam Vande More amvandem...@gmail.comwrote: Christopher Chambers wrote: Is there an easy way to analyze disk usage to determine which files and folders are taking up the most space? du -hd 1 | sort -n du -kd 1 | sort -rn Shows in ENV{BLOCKSIZE} the biggest directories first. Bound to be / always in this situation. :D ___ 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: Encrypted slice with geli
On Wed, Apr 22, 2009 at 02:42:11AM +0200, Bernt Hansson wrote: Bill Moran said the following on 2009-04-21 14:41: In response to Bernt Hansson be...@bah.homeip.net: Giorgos Keramidas said the following on 2009-04-20 23:59: On Mon, 20 Apr 2009 21:38:54 +0200, Bernt Hansson be...@bah.homeip.net wrote: Hello list! I was thinking of makeing a slice encrypted with geli. My question is: does geli init -s 4096 /dev/ad* erase the data on the slice. The handbook didn't say yes or no, and I don't want to try without asking. No, No, what? does it erase the data or not. It depends on exactly what part of the process you're talking about My question is: does geli init -s 4096 /dev/ad* erase the data on the slice It only uses the last sector to store the metadata. See geli(8). and it depends on exactly what you mean by erase. Destroy it so it's no longer aviable. Geli doesn't explicitly destroy your data at any point in the process. However, most HOWTOs I've ready will tell you at some step or another to overwrite the partition using dd and /dev/zero, which _does_ destroy the data. Yes. That much I do know. Also, even if you skip the dd step, geli will alter the partition in such a way that typical tools will not see the data. However, if you know your stuff, you can bypass normal tools and still read (part of?) the data. Not good. Hence the advice to overwrite the partition with zeros beforehand. If your question is, I'm switching a partition to using geli, do I need to back up my data before doing so? the answer is YES! I do NOT want to backup the data unencrypted. Then get an encrypted backup. E.g. a disk with a USB connection that you can encrypt and use it as back-up. If you want to convert a filesystem in-place, I don't think that's possible with the current tools. But it might be possible to create a tool to do that. That tool should do the following: initialize and attach the geli provider. (daXs1a is the unencrypted partition) (N is the number of sectors on that partition) for k=1 to N-1 do read sector k from device daXs1a write sector k to device daXs1a.eli done Note that this is kinda fragile. One botched sector and there will be trouble. It is also not optimized, because it will also encrypt sectors that aren't in use in the original filesystem. 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) pgpShRNZObJyF.pgp Description: PGP signature
Re: Customized Remote Install
On Tue, 21 Apr 2009 18:47:11 -0400, Jerry McAllister jerr...@msu.edu wrote: On Tue, Apr 21, 2009 at 11:51:32PM +0200, Polytropon wrote: On Tue, 21 Apr 2009 14:42:32 -0600, Scott Seekamp sseek...@risei.net wrote: My hope was that I could make an automated install CD/DVD that configured all the options I want AND change some base config files so I can actually get to the box (or install an SSH key). [...] I'm open to other options if someone has gone down this road before! I'd like to advertize a method that I think is very comfortable in such a setting. It's worth mentioning that this method usually requires (a) modern enough PCs or (b) you to know what is the hardware profile of the PC. The method works as follows: First create a FreeBSD as you want it to be on the clients. Install and configure everything as you intend. Then dump the created partitions onto a CD or DVD and create a simple script that: 1. initializes the client's hard disk 2. slices the disk and newfses the partitions 3. dumps the partition images onto the disks 4. reboots the machine into operating state. After this, you should be able to SSH into the client and change settings that need to be changed. This works very well. I just realize that I missed something: Better than dd, I think dump restore are the preferred tools to create the partition images. When you're done on your template system, umount its partitions (in SUM) and use dump to dump them into files. These files go to the installation DVD and are later on restored onto the (empty) partitions using the restore command. This will preserve any permissions and other file properties. I have done essentially the same many times. The one thing missing is that you need to have something to set the network information -- hostname, IP address, gateway, netmask and name-server.These will be different for each machine. So, your script will have to accomodate this - read console input for these items and plug them in to the proper places before rebooting. That's correct. I always used a kind of CHANGE THIS! items to do so, or, if none are given, they are automatically created so the system boots up and runs, but then again, require service afterwards. This can be made work this way: When the incomplete system is up and running, it mails the distant administrator (or contacts him in another way) requiring him to finish the settings. But I think it's the best solution to propmt for these specific settings at installation time (read, when the restore job is done, the partitions can be mounted -o rw and the files neccessary to be changed can be created or modified). The installation will then continue and finish. Of course, the dump restore method lacks a lot of bling, blitzen, eye candy, bells and whistles, but it honours the abstinence to such stuff with speed and easyness of use. But it's still neccessary to read (and understand) and press a few keys on the keyboard. :-) -- 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 usage analysis
On Tue, 21 Apr 2009 20:08:18 -0700, Christopher Chambers ccha...@interchange.ubc.ca wrote: Is there an easy way to analyze disk usage to determine which files and folders are taking up the most space? See man du. Just for terminology: In UNIX (so in FreeBSD), there are no folders. Folders are made of paper and reside in a cabinet. :-) These are called directories. You don't call files sheets of paper either, do you? :-) For a GUI solution, check out file browsers. Most of them have the ability to calculate the disk space occupation of a certain directory or subtree. For example, in the Midnight Commander, use PF9, Command, Show directory sizes. -- 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