Re: Uninstall Webmin
* Ruel Luchavez <[EMAIL PROTECTED]> [05-24-2008]: > Guys, how do you uninstall the setup of webmin (setu.sh)? i allready search > all the directory of > my webmin but i cant find the unistall.sh? setup.sh would have created uninstall.sh, but files/patch-aa disables this: /usr/ports/sysutils/webmin/files/patch-aa:+nouninstall="yes" Look in setup.sh and you can see the few commands executed by the uninstall script. -- Sahil Tandon <[EMAIL PROTECTED]> ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Ekiga/OPAL won't compile
Hello, I am trying to install Ekiga 2.0.11_3 on FreeBSD 7.0 via the ports. Ekiga depends on the OPAL libraries, which then give me the following error while compiling: - - - - [...] ===> ekiga-2.0.11_3 depends on shared library: opal_r - not found ===>Verifying install for opal_r in /usr/ports/net/opal ===> Building for opal-2.2.11 [...] /usr/ports/net/opal/work/opal-2.2.11/src/opal/connection.cxx: In constructor 'OpalConnection::OpalConnection(OpalCall&, OpalEndPoint&, const PString&)': /usr/ports/net/opal/work/opal-2.2.11/src/opal/connection.cxx:350: error: no matching function for call to 'PSafeObject::PSafeObject(OpalCall*)' /usr/local/include/ptlib/safecoll.h:165: note: candidates are: PSafeObject::PSafeObject() /usr/local/include/ptlib/safecoll.h:158: note: PSafeObject::PSafeObject(const PSafeObject&) gmake[1]: *** [/usr/ports/net/opal/work/opal-2.2.11/lib/obj_r/connection.o] Error 1 gmake[1]: *** Waiting for unfinished jobs gmake[1]: Leaving directory `/usr/ports/net/opal/work/opal-2.2.11' gmake: *** [optshared] Error 2 *** Error code 2 - - - - I fail to understand the cause of this error and therefore cannot resolve it. Could somebody please help? Thanks, Girish. -- Girish Kulkarni - Allahabad, India - http://girish.50webs.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: kernel debugging: seeing swap issues in 7.0
On Fri, May 23, 2008 at 2:08 PM, Kris Kennaway <[EMAIL PROTECTED]> wrote: > > You can try increasing the timeout by editing the relevant kernel > source, but if it's failing to reply to the I/O after 30 seconds then > something is drastically overloaded on your system. Well, not much is running, and I have recently built a new kernel and world in less time than it takes to get this one port upgraded. I think there is something else amiss. Should this really be soaking up 100Mb of RAM? PID USERNAME THR PRI NICE SIZERES STATETIME WCPU COMMAND 32272 root 1 -200 101M 70340K swread 3:04 0.93% cc1 I have filed a bug against gcc, per instructions. There seems to be an issue somewhere in py-gtk that is exacerbated by the low resources on this system. Thanks. -- Paul Beard / www.paulbeard.org/ <[EMAIL PROTECTED]/[EMAIL PROTECTED]> ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Use of Com1
I have a number of servers that used to run FreeBSD 6.2. On each of them the com1 port was connected via a NAS so that I could access the console remotely. All worked just fine. Then I replaced 2 of the servers with 2 new identical units and upgraded everything to FreeBSD 7.0. One of the new units works just fine. "echo xxx > /dev/ttyd0" works properly and the system console can be accessed remotely. The other new unit does not work. I can't find any difference in the software between them. The second one was actually made by running dump and restore from the first and then updating a few config files. The same command when run on the second machine just hangs. My initial thoughts were the cables connecting the units were different. However switching everything one at a time showed that the behavior was the same. The first unit always worked with both sets of cables etc. and the second never did. My next thought was that the com port itself had failed. I have no direct way to verify this, but I do have another server whose hardware was not changed. It was just upgraded from 6.2 to 7.0. Its com port worked under 6.2, but does not under 7.0. Hence, my third thought is there is some difference in a config file somewhere. I can't find it. The major/minor numbers are the same for the two new machine. Obviously the older one is different. Getty is running on all 3 with "std.9600 cons25 on". Ps shows that getty is running on all 3. Although I can't completely rule out hardware failure, I believe that there is something I have overlooked. Any ideas what it might be or how to do any more diagnostic work? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Pedigree Wood Crafts Keyless Mandrel
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Updated php, and apache segfaults on SIGHUP
Excellent suggestions. On May 20, 2008, at 12:42 PM, Sean C. Farley wrote: I meant the opposite. The latest port version of PHP has a bug on FreeBSD 7. Try it again with the previous patch. How do I do that with the ports collection? On May 20, 2008, at 12:45 PM, Claus Guttesen wrote: Try to compile it into php rather than a module. http://no.php.net/manual/en/mhash.installation.php Same as above -- is there an easy way to do that with the ports collection? an option I pass into portinstall/portupgrade? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Uninstall Webmin
Hi, Guys, how do you uninstall the setup of webmin (setu.sh)? i allready search all the directory of my webmin but i cant find the unistall.sh? any idea here? Cheers ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: /usr/src/Makefile instructions
On Fri, 23 May 2008, Oliver Fromme wrote: KAYVEN RIESE <[EMAIL PROTECTED]> wrote: > Tom Evans wrote: > > I've redirected this to questions@, as this seems more like a 'User > > question/technical support' rather than 'General technical discussion'. > > Please try to keep the mailing lists on topic. > > That list is too busy. I find I don't have to unsubscribe to > "hackers," and it doesn't seem as hard core to misinterpret > what "hackers" are, than say "ports" or "acpi" Well, "hackers" usually means developers, i.e. people hacking on the FreeBSD code. Therefore I'm afraid I have to agree with Tom: Your questions should better go to the questions list. ergo: because obviously I am a flumming idiot. I thought hacker was something you took eucalyptus fro. > I realized that "make delete-old" and "make delete-old-libs" > are both part of the "cannonical," I guess because I am going > RELENG_6_3 to RELENG_7 I always use "make delete-old", as instructed in the /usr/src/UPDATING file, and it has never bitten me. Please have a look at that file; the important part starts at the section titled "To rebuild everything". Actually, after composing this I kicked myself, because /usr/src/Makefile has clearly instructed me to do make delete-old after make installworld and I think I will throw caution to the wind and append -U to my subsequent mergemaster followed by make delete-old-libs > On that note, was I given misinformation when I was advised > that it would be impossible to upgrade RELENG_6_2 directly to > RELENG_7 ? "Nothing is impossible!", as Dr. Farnsworth from the Futurama series used to say. :-) Oh well. Water under the bridge. I expect to someday edit this to RELENG_7_1 or the like when freebsd.org says so and following the instructions in /usr/src/Makefile again. But seriously ... I think going from 6.2 to 7.0 should work fine. However, the official notion is that updates across major versions have to be supported only for the latest stable release. Any other configurations might work, but it's not guaranteed. If it fails, you're not expected to complain or ask for help, but instead try the officially supported way (i.e. first update to the latest stable on your existing branch, then update across the major version boundary). If that still fails, you may complain and ask for help. Interesting. No. Fascinitating. Captian Kirk, I believe this star will supernova in approximately 12 days, 13 hours, 34 minutes and 23.3425 seconds. Note that it is IMPORTANT to rebuild *all* of your ports when you update from 6.x to 7.x. (This holds true for any major version update.) If you don't do this, you will get library dependency collisions, i.e. port A uses libc.so.7 and depends on port B, but port B still links against the older libc.so.6. Things will break sooner or later. That's why you should rebuild *all* ports after updating to 7.x. (You can keep older ports only if you are absolutely sure that they are not part of any dependencies, and never will be.) My habit is to run cvsup standard-supfile followed by cvsup ports-supfile. IS that a dumb thing to do? In your previous mail you mentioned: > Things work, but dmesg has errors, Would you please tell us what those errors are? We might be able to help you, but only if you tell us. I told the ACPI folks and they told me nicely that my appropriate post was too much of a hassle to bother with. Some ding dong was attaching after the fact of the wing ding and the fact that the errors occured between the wing and the ding was irrelevant since the dong ding subsequent to the ding ding recalibrated the whosits in an adequate fashion before reaching single user mode. > and many ports fail and their makes Again: Please post messages and everything relevant to the problems. There are really people on these lists that are willing to help, but we need as much information as possible in order to be able to help. Best regards Oliver Well.. I reckon I mights a git up thah gumpshun whenis I's gonna get tootin' on sumptin that gits mah goat subsequently. -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' *--* Kayven Riese, BSCS, MS (Physiology and Biophysics) (415) 902 5513 cellular http://kayve.net Webmaster http://ChessYoga.org *--*___ freebsd-questions@freebsd.org mailing list http://
Re: /usr/src/Makefile instructions
On Fri, 23 May 2008, [EMAIL PROTECTED] wrote: On that note, was I given misinformation when I was advised that it would be impossible to upgrade RELENG_6_2 directly to RELENG_7 ? pcm/mixer.c /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/sndstat.c /usr/src/sys/modules/sound/sound/../../../dev/sound/pcm/sound.c /usr/src/sys/modules/sound/sound/../../../dev/sound/unit.c /usr/src/sys/module Close to implausible, perhaps? That would indeed be the case, unless you truly are longing for a major workout, either with mergemaster et al, or both with mergemaster and the ports. The former case, which assumes you don't have many ports installed, is often a no-brainer: install a fresh system. The latter case may be somewhat more complicated: install a fresh system for the least effort on your side, or go the update route if you need to keep your system up and usable during the process. awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h rm -f .depend mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq -I/usr/obj/usr/src/sys/GENERIC /usr/src/sys/modules/sym/../../dev/sym/sym_hipd.c ===> syscons (depend) ===> syscons/apm (depend) @ -> /usr/src/sys machine -> /usr/src/sys/i386/include rm -f .depend mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq -I/usr/obj/usr/src/sys/GENERIC /usr/src/sys/modules/syscons/apm/../../../dev/syscons/apm/apm_saver.c ===> syscons/blank (depend) @ -> /usr/src/sys machine -> /usr/src/sys/i386/include rm -f .depend mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq -I/usr/obj/usr/src/sys/GENERIC /usr/src/sys/modules/syscons/blank/../../../dev/syscons/blank/blank_saver.c ===> syscons/daemon (depend) @ -> /usr/src/sys machine -> /usr/src/sys/i386/include rm -f .depend mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq -I/usr/obj/usr/src/sys/GENERIC /usr/src/sys/modules/syscons/daemon/../../../dev/syscons/daemon/daemon_saver.c ===> syscons/dragon (depend) @ -> /usr/src/sys machine -> /usr/src/sys/i386/include rm -f .depend mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq -I/usr/obj/usr/src/sys/GENERIC /usr/src/sys/modules/syscons/dragon/../../../dev/syscons/dragon/dragon_saver.c ===> syscons/fade (depend) @ -> /usr/src/sys machine -> /usr/src/sys/i386/include rm -f .depend mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq -I/usr/obj/usr/src/sys/GENERIC /usr/src/sys/modules/syscons/fade/../../../dev/syscons/fade/fade_saver.c ===> syscons/fire (depend) @ -> /usr/src/sys machine -> /usr/src/sys/i386/include rm -f .depend mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq -I/usr/obj/usr/src/sys/GENERIC /usr/src/sys/modules/syscons/fire/../../../dev/syscons/fire/fire_saver.c ===> syscons/green (depend) @ -> /usr/src/sys machine -> /usr/src/sys/i386/include rm -f .depend mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq -I/usr/obj/usr/src/sys/GENERIC /usr/src/sys/modules/syscons/green/../../../dev/syscons/green/green_saver.c ===> syscons/logo (depend) @ -> /usr/src/sys machine -> /usr/src/sys/i386/include rm -f .depend mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq -I/usr/obj/usr/src/sys/GENERIC /usr/src/sys/modules/syscons/logo/../../../dev/syscons/logo/logo_saver.c /usr/src/sys/modules/syscons/logo/../../../dev/syscons/logo/logo.c I should note that I always took the update trail, and never regretted it afterwards (well, if only so slightly). For instance, my workstation lived through 5.2.1-R, 6.2-R, RELENG_6, and finally RELENG_7, all with the aid of cvsup. The process is straightforward, well-designed and easily executed (thanks to the developers), but problems often pop-up with ports (especially such messy ones as Gnome, etc) which take lots of time to correct. rm -f .depend mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq -I/usr/obj/usr/src/sys/GENERIC /usr/src/sys/modules/sysvipc/sysvshm/../../../kern/sysv_shm.c ===> ti (depend) @ -> /usr/src/sys machine -> /usr/src/sys/i386/include awk -f @/tools/makeobjops.awk @/kern/device_if.m -h awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h ln -sf /usr/obj/usr/src/sys/GENERIC/opt_ti.h opt_ti.h ln -sf /usr/obj/usr/src/sys/GENERIC/opt_zero.h opt_zero.h rm -f .depend mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq -I/usr/obj/usr/src/sys/GEN
Re: /usr/src/Makefile instructions
On Fri, 23 May 2008, [EMAIL PROTECTED] wrote: On that note, was I given misinformation when I was advised that it would be impossible to upgrade RELENG_6_2 directly to RELENG_7 ? Close to implausible, perhaps? That would indeed be the case, unless you truly are longing for a major workout, either with mergemaster et al, or both with mergemaster and the ports. The former case, which assumes you don't have many ports installed, is often a no-brainer: install a fresh system. The latter case may be somewhat more complicated: install a fresh system for the least effort on your side, or go the update route if you need to keep your system up and usable during the process. I didn't really understand that and I don't understand why I am a bad person for spamming my idiotic thoughts on the matter, but in any case this is moot because I am up an runing RELENG_6_3 and making kernel after editing the stable-supfiles RELENG_6_3 to RELENG_7 let's all cross our fingers that communication has just happened. I should note that I always took the update trail, and never regretted it afterwards (well, if only so slightly). For instance, my workstation lived through 5.2.1-R, 6.2-R, RELENG_6, and finally RELENG_7, all with the aid of cvsup. The process is straightforward, well-designed and easily executed (thanks to the developers), but problems often pop-up with ports (especially such messy ones as Gnome, etc) which take lots of time to correct. I am feeling better about cvsup and even mergemaster nowadays. Thank you very much for your support. So, in summary, a sane person should probably go with clean system update. Is that what I am doing? Umm.. maybe not. I have all these errors that I don't understand and that people ignore but I have a browser and a terminal, so I feel like a functioning pile of carbon compounds. P.S.: whoever replies next, it's safe to drop hackers@ from CC: anytime now Nah.. hackers needs the publicity! Kayven Riese, BSCS, MS (Physiology and Biophysics) [SorAlx] ridin' VS1400 *--* Kayven Riese, BSCS, MS (Physiology and Biophysics) (415) 902 5513 cellular http://kayve.net Webmaster http://ChessYoga.org *--* ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Bind DNS
On May 22, 2008, at 9:10 PM, Ruel Luchavez wrote: Hi ALL, Is it possible in BIND DNS to block images in a certain sites? like for example the popular friends site ( friendster), i want to block most images in that site so that client will be irritated that their images don't load perfectly. but s till they can visit their site? DNS is not the right level to be doing that unless you know that the images are actually served from a different server than the other content on the site (which is unlikely). An HTTP proxy, Squid in particular, will be the right tool. About a year ago, I saw a description where someone had put in a filter in Squid to blur or rotate all images. The screen shots of that where hilarious, but I can't remember exactly where this was posted. Cheers, -j ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: SVN Advice
Written by [EMAIL PROTECTED] on 05/19/08 06:05>> > Hello all, > > I'm seeking to set up an SVN repository on my home machine. I've come > across the following two guides: > > http://www.bsdguides.org/guides/freebsd/misc/subversion.php > > http://www.onlamp.com/pub/a/bsd/2007/09/27/subversion-for-bsd-with-all-the-bells-and-whistles.html > > The second one is certainly overkill for what I need (I just want to use > it to manage my personal projects, since I work remotely a lot). I'd > definitely like a password protected web interface though. My issue is > the following. In both guides (and in all the other ones I've come > across) Apache is compiled with options that I did not select when I > installed Apache a while ago. I'd rather not have to redo everything I've > set up with my web server. Is there any way I get include those modules > (namely WITH_BERKELEYDB) without having to recompile? Also, any advice > relating to setting up Subversion on FreeBSD in general. > > Appreciate the help, > > montag > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" For the repo, I usually use exclusively svn+ssh protocol and DSA keys for authentication. It's a lot simpler to just let ssh do authentication than it is to futz with wrapping subversion up in apache, you don't have to mess with a separate auth database, and you get security and authorization (which users can use what repositories) as a side effect. I usually make my repo owned by group svn, change permissions so the group has write access to the db, and invite my svn users to that group. Since svn+ssh is basically local access through an ssh tunnel, there's no service to configure, and I can immediate connect remotely. For a web interface, trac's repository browser is very nice. You can front it through fastcgi on apache or lighttpd. Trac has a nice wiki link feature that lets you link in to the repository browser. For example, [123] on any wiki page will be rendered as a link to the browser that shows information for changeset 123. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Lock order reversal submissions?
On Fri, May 23, 2008 at 05:26:29AM -0700, Tobias Hoellrich wrote: > Does anybody happen to know where I can submit lock order reversal > outputs (like the one below)? I don't want to spam freebsd-current and > http://sources.zabbadoz.net/freebsd/lor.html seems to have not been > updated in over a year now. > > Thanks - Tobias > > > This is from 8.0-CURRENT: Most have been reported 2^N times and are harmless. If any have not, then report them to the mailing list. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: kernel debugging: seeing swap issues in 7.0
On Fri, May 23, 2008 at 01:02:35PM -0700, paul beard wrote: > I see a lot of these as my system grinds to a halt. It never crashes > (I reboot it when it gets really boggy . . . > > > May 23 11:41:13 stinky kernel: swap_pager: indefinite wait buffer: > bufobj: 0, blkno: 49155, size: 4096 > May 23 11:41:21 stinky kernel: swap_pager: indefinite wait buffer: > bufobj: 0, blkno: 48905, size: 4096 > > This is the top of the kernel debug > > Unread portion of the kernel message buffer: > <118>May 23 12:48:46 stinky syslogd: exiting on signal 15 > Waiting (max 60 seconds) for system process `vnlru' to stop...done > Waiting (max 60 seconds) for system process `bufdaemon' to stop...done > Waiting (max 60 seconds) for system process `syncer' to stop... > Syncing disks, vnodes remaining...1 0 0 done > All buffers synced. > swap_pager: I/O error - pagein failed; blkno 35668,size 4096, error 5 > panic: swap_pager_force_pagein: read from swap failed > Uptime: 14h20m56s > Physical memory: 115 MB > Dumping 37 MB: 22 6 > #0 doadump () at pcpu.h:195 > 195 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); > > I have partition-based swap and swap files I set up after gcc was > running out of memory. > > Device: 1048576-blocks Used: > /dev/ad0s2b 139 0 > /dev/md0 128 0 > > Any ideas what I can do (besides buy more hardware)? You can try increasing the timeout by editing the relevant kernel source, but if it's failing to reply to the I/O after 30 seconds then something is drastically overloaded on your system. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Delaying mount of UFS filesystem in ZFS pool
I have a UFS filesystem inside a zpool: tank on /tank (zfs, local) /dev/zvol/tank/ufs on /mnt/ufs (ufs, local, acls) If I add that entry (/dev/zvol/tank/ufs) to /etc/fstab, it will try to mount as a critical filesystem on boot, however, because ZFS hasn't yet loaded, this fails and causes all sorts of fun for me. Currently I have that filesystem mounting via a cronjob that checks every minute if it's mounted.. definitely not ideal. I need this filesystem in /etc/fstab so I can setup quotas on it (if there is some other way to get quotas working, great, point me to a link or two). So what I'm thinking for a solution is to delay the mount of this filesystem until ZFS has loaded, but I'm not sure of a way to do this with the filesystem in /etc/fstab, and without extensive hacking to one or more rc scripts. Ideas? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
kernel debugging: seeing swap issues in 7.0
I see a lot of these as my system grinds to a halt. It never crashes (I reboot it when it gets really boggy . . . May 23 11:41:13 stinky kernel: swap_pager: indefinite wait buffer: bufobj: 0, blkno: 49155, size: 4096 May 23 11:41:21 stinky kernel: swap_pager: indefinite wait buffer: bufobj: 0, blkno: 48905, size: 4096 This is the top of the kernel debug Unread portion of the kernel message buffer: <118>May 23 12:48:46 stinky syslogd: exiting on signal 15 Waiting (max 60 seconds) for system process `vnlru' to stop...done Waiting (max 60 seconds) for system process `bufdaemon' to stop...done Waiting (max 60 seconds) for system process `syncer' to stop... Syncing disks, vnodes remaining...1 0 0 done All buffers synced. swap_pager: I/O error - pagein failed; blkno 35668,size 4096, error 5 panic: swap_pager_force_pagein: read from swap failed Uptime: 14h20m56s Physical memory: 115 MB Dumping 37 MB: 22 6 #0 doadump () at pcpu.h:195 195 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); I have partition-based swap and swap files I set up after gcc was running out of memory. Device: 1048576-blocks Used: /dev/ad0s2b 139 0 /dev/md0 128 0 Any ideas what I can do (besides buy more hardware)? -- Paul Beard / www.paulbeard.org/ <[EMAIL PROTECTED]/[EMAIL PROTECTED]> ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Your suggestions about this Dell configuration?
Hi VeeJay, On Fri, May 23, 2008 at 06:24:42PM +0200, VeeJay wrote: > > Hello Frank > > Really good points. I am really glad to have your thoughts. Regarding your > questions and comments, I have given some answers and a couple of questions > in *RED* colour. Please comment if you happen to manage some time during > weekend, Thanks! > > *Please continue...* > > On Thu, May 22, 2008 at 4:01 AM, Frank Shute <[EMAIL PROTECTED]> wrote: > > > On Wed, May 21, 2008 at 08:49:51AM +0200, VeeJay wrote: > > > > > > Hello friends, > > > > > > My employer is buying this Dell server and I would like to have your > > > opinion about the configuration. > > > > > > Requirements are: > > > 2 Websites with 3-4 million hits per month with video ads. > > > > If it's "3-4 million hits per month" as you've stated twice now, then > > your hardware is complete overkill. > > > > So I'll assume you mean 3-4 million hits a day for each site. > > > *No, its 3-4 million each site per month and we are having problem. Because, > either Apache or MySQL stops responding. I have following settings as > Performance:* If it's 3-4 million for each site per month, the hardware you are proposing to buy is complete overkill. As an earlier poster said, he managed that on a 486. What hardware and OS are you presently using? You have to determine what exactly is causing you problems and fix it. Then you probably don't have to buy new hardware. > ** > *# = > # Performance settings > # = > Timeout 300 > KeepAlive On > MaxKeepAliveRequests 100 > KeepAliveTimeout 15 > MinSpareServers 5 > MaxSpareServers 10 > StartServers 5 > MaxClients 256 > MaxRequestsPerChild 0* > > > > The performance of this hardware will depend on what *sort* of hits > > you get. Are a lot of them just for the homepage? Then just cache it. > > > > Is it static content? > > > *No, its dynamic contents, data is coming form Database.* > > > > > > > If you're getting lots of ad-hoc database queries and fetches/writes > > from/to disk, then your disks could get a thrashing. > > > > How big's your database? Being read from more than written to? How > > precious is the data? > > > *More than 20 million records and more than 1000 Tables.* > *And of course, data is always preciouse. :)* Is this just one database or a number of databases? Whatever, at a guess it looks like your data isn't normalised, although it depends to a large extent what the data is. Do you have such a thing as an entity/relationship diagram for your database(s)? Did you get a DBA to design and implement your database(s)? How long are your queries taking? If they're taking much more than a second, then you are going to start having a backlog of non-returned queries which are each tying up an httpd process, a PHP process and a mysql process and your machine will struggle to keep up even with the on average >1<2 hits per second. The way to fix queries that are taking too long can be numerous but a properly normalised database, cached regular queries and indexes can all help. This is why you need a DBA or you have to subscribe to the MySQL list and read the MySQL docs thoroughly - I believe the MySQL docs touch on tuning. Although they don't tell you how to design or normalise a database. You learn about that in Codd's and Date's books I believe. I learnt it at uni (but have largely forgotten it). Must read my course materials again. You could also have a locking problem i.e a table is locked for writing (I don't think MySQL does row-level locking) and other processes are being held up by the locked table. > > > > > How many of these hits are reading video ads? All of them? How many > > KBs are these awful ads? > > > *50% of users are going to see the Video Ads.* > ** > *Size would vary between 100KB to 2MB. * Here, you've got a problem. I'm on a 80KB/s DSL which is probably about average in the West, although there are plenty on dial-up. So to download the "ad" it would take me anywhere from over a second to half a minute. When I'm doing that, I'm tying up one of your Apache processes. In that (average) half minute say, you're going to have 40 odd hits, 20 of them downloading ads. So you need at least 21 httpd processes available. But (from above): MaxSpareServers 10 StartServers 5 you've only got 15 available max! But I wouldn't necessarily immediately increase the number of servers available, you could make things worse. After all, your machine is struggling to serve those 15. You have to find out why first. > > What bandwidth do you have to these servers? > *100 Mbps* 20 x 80KB/s = 12800Kbps = 12.8 Mbps You've got enough bandwidth. > > How you are going to get the best out of your hardware depends on > questions like these, so you have to analyse your Apache logs and tune > appropriately. > > Tuning Apache, mysql and PHP are all subjects in their own right. > > For FreeBSD, read tuning(7
Re: Trouble upgrading qt33 with portupgrade after package installation
> Ross Gohlke wrote: >> I have been running FreeBSD 6 successfully for over a year without >> installing any ports from packages. I have had great success using ports >> but sticking with make install clean/portupgrade. >> >> I recently decided to try running X11/KDE. I thought I would save some >> time and learn a new trick with pkg_add kde. >> >> Mixing the two confuses me because portversion does not report whether >> an >> installed port was compiled from source or copied from a package, and >> portupgrade hasn't worked on some packages. >> Here's the latest: >> >> portupgrade -vr qt > > > >> Stop in /usr/ports/x11-toolkits/qt33. >> ** Command failed [exit code 1]: /usr/bin/script -qa >> /tmp/portupgrade.12485.0 env UPGRADE_TOOL=portupgrade >> UPGRADE_PORT=qt-3.3.8_6 UPGRADE_PORT_VER=3.3.8_6 make >> ** Fix the problem and try again. >> ---> Build of x11-toolkits/qt33 ended at: Thu, 22 May 2008 16:53:59 >> -0500 >> (consumed 00:51:34) >> ---> Upgrade of x11-toolkits/qt33 ended at: Thu, 22 May 2008 16:53:59 >> -0500 (consumed 00:51:34) >> ---> ** Upgrade tasks 1: 0 done, 0 ignored, 0 skipped and 1 failed >> ---> Listing the results (+:done / -:ignored / *:skipped / !:failed) >> ! x11-toolkits/qt33 (qt-3.3.8_6)(linker error) >> ---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed >> ---> Session ended at: Thu, 22 May 2008 16:53:59 -0500 (consumed >> 00:51:47) >> >> >> Is there a particular port I need to reinstall from source to fix this, >> or >> another solution? >> >> Thanks. >> >> Ross Gohlke > > I've had that happen, no explanation why. I have had luck switching from > a pkg to a port by doing the following within the port you are upgrading. > > make deinstall > make clean > make reinstall > Then portupgrade will work with the port fine. There is the possibility > that you may need to remove the pkg using pkg delete and then Yes, but there were like, 50 packages affected. This is a tedious process, having to manually cd into each directory. Plus, how do you figure out which packages? I can't find a tool that tells me whether an installed port is binary or source. That would be nice! See my other post for my solution. Anyway, my main fear was that I messed up my ports tree in a way that would effect portupgrading essential software. Thankfully that doesn't seem to be the case. > X is big, I have not used X in years as all my > systems are servers, Why not run FreeBSD w/X on your desktop as well? I'm running KDE3 on a Powerbook G4 with Mac OS 10.4. It took me a while to configure it, but I really like Kate and Konsole. Firefox/Konqueror isn't a bad browser duo (don't forget elinks!). I don't plan to go back. > I generally use only ports if I don't install from > source. Someone with more experience than me might have a better answer. What is the relationship between ports and packages/binary and source? The Handbook seems to use the terms interchangably. The port*/pkg* commands handle both types. > Of course, if you follow my advice blindly your system may explode, or > worse ;^) I haven't had that happen in quite some time, and not ever from YOUR advice! > DAve > > PS, Denise says HOWDY! HOWDY back! Yay! Ross Gohlke ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
"The Complete FreeBSD": errata and addenda
The trouble with books is that you can't update them the way you can a web page or any other online documentation. The result is that most leading edge computer books are out of date almost before they are printed. Unfortunately, The Complete FreeBSD, published by O'Reilly, is no exception. Inevitably, a number of bugs and changes have surfaced. "The Complete FreeBSD" has been through a total of five editions, including its predecessor "Installing and Running FreeBSD". Two of these have been reprinted with corrections. I maintain a series of errata pages. Start at http://www.lemis.com/errata-4.html to find out how to get the errata information. Note also that the book has now been released for free download in PDF form. Instead of downloading the changed pages, you may prefer to download the entire book. See http://www.lemis.com/grog/Documentation/CFBSD/ for more information. Have you found a problem with the book, or maybe something confusing? Please let me know: I'm no longer constantly updating it, but I may be able to help Greg ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
How to get best results from FreeBSD-questions
How to get the best results from FreeBSD questions. === Last update $Date: 2005/08/10 02:21:44 $ This is a regular posting to the FreeBSD questions mailing list. If you got it in answer to a message you sent, it means that the sender thinks that at least one of the following things was wrong with your message: - You left out a subject line, or the subject line was not appropriate. - You formatted it in such a way that it was difficult to read. - You asked more than one unrelated question in one message. - You sent out a message with an incorrect date, time or time zone. - You sent out the same message more than once. - You sent an 'unsubscribe' message to FreeBSD-questions. If you have done any of these things, there is a good chance that you will get more than one copy of this message from different people. Read on, and your next message will be more successful. This document is also available on the web at http://www.lemis.com/questions.html. = Contents: I:Introduction II: How to unsubscribe from FreeBSD-questions III: Should I ask -questions or -hackers? IV: How to submit a question to FreeBSD-questions V:How to answer a question to FreeBSD-questions I: Introduction === This is a regular posting aimed to help both those seeking advice from FreeBSD-questions (the "newcomers"), and also those who answer the questions (the "hackers"). Note that the term "hacker" has nothing to do with breaking into other people's computers. The correct term for the latter activity is "cracker", but the popular press hasn't found out yet. The FreeBSD hackers disapprove strongly of cracking security, and have nothing to do with it. In the past, there has been some friction which stems from the different viewpoints of the two groups. The newcomers accused the hackers of being arrogant, stuck-up, and unhelpful, while the hackers accused the newcomers of being stupid, unable to read plain English, and expecting everything to be handed to them on a silver platter. Of course, there's an element of truth in both these claims, but for the most part these viewpoints come from a sense of frustration. In this document, I'd like to do something to relieve this frustration and help everybody get better results from FreeBSD-questions. In the following section, I recommend how to submit a question; after that, we'll look at how to answer one. II: How to unsubscribe from FreeBSD-questions == When you subscribed to FreeBSD-questions, you got a welcome message from [EMAIL PROTECTED] In this message, amongst other things, it told you how to unsubscribe. Here's a typical message: Welcome to the freebsd-questions@freebsd.org mailing list! If you ever want to unsubscribe or change your options (eg, switch to or from digest mode, change your password, etc.), visit your subscription page at: http://lists.freebsd.org/mailman/options/freebsd-questions/[EMAIL PROTECTED] (obviously, substitute your mail address for "[EMAIL PROTECTED]"). You can also make such adjustments via email by sending a message to: [EMAIL PROTECTED] with the word 'help' in the subject or body (don't include the quotes), and you will get back a message with instructions. You must know your password to change your options (including changing the password, itself) or to unsubscribe. Normally, Mailman will remind you of your freebsd.org mailing list passwords once every month, although you can disable this if you prefer. This reminder will also include instructions on how to unsubscribe or change your account options. There is also a button on your options page that will email your current password to you. Here's the general information for the list you've subscribed to, in case you don't already have it: FREEBSD-QUESTIONS User questions This is the mailing list for questions about FreeBSD. You should not send "how to" questions to the technical lists unless you consider the question to be pretty technical. Normally, unsubscribing is even simpler than the message suggests: you don't need to specify your mail ID unless it is different from the one which you specified when you subscribed. If Majordomo replies and tells you (incorrectly) that you're not on the list, this may mean one of two things: 1. You have changed your mail ID since you subscribed. That's where keeping the original message from majordomo comes in handy. For example, the sample message above shows my mail ID as [EMAIL PROTECTED] Since then, I have changed it to [EMAIL PROTECTED] If I were to try to remove [EMAIL PROTECTED] from the list, it would fail: I would have to specify the name with which I joined. 2. You're subscribed to a mailing list which is subscribed to Fr
Re: Trouble upgrading qt33 with portupgrade after package installation
Ross Gohlke wrote: I have been running FreeBSD 6 successfully for over a year without installing any ports from packages. I have had great success using ports but sticking with make install clean/portupgrade. I recently decided to try running X11/KDE. I thought I would save some time and learn a new trick with pkg_add kde. Mixing the two confuses me because portversion does not report whether an installed port was compiled from source or copied from a package, and portupgrade hasn't worked on some packages. Here's the latest: portupgrade -vr qt Stop in /usr/ports/x11-toolkits/qt33. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade.12485.0 env UPGRADE_TOOL=portupgrade UPGRADE_PORT=qt-3.3.8_6 UPGRADE_PORT_VER=3.3.8_6 make ** Fix the problem and try again. ---> Build of x11-toolkits/qt33 ended at: Thu, 22 May 2008 16:53:59 -0500 (consumed 00:51:34) ---> Upgrade of x11-toolkits/qt33 ended at: Thu, 22 May 2008 16:53:59 -0500 (consumed 00:51:34) ---> ** Upgrade tasks 1: 0 done, 0 ignored, 0 skipped and 1 failed ---> Listing the results (+:done / -:ignored / *:skipped / !:failed) ! x11-toolkits/qt33 (qt-3.3.8_6)(linker error) ---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed ---> Session ended at: Thu, 22 May 2008 16:53:59 -0500 (consumed 00:51:47) Is there a particular port I need to reinstall from source to fix this, or another solution? Thanks. Ross Gohlke I've had that happen, no explanation why. I have had luck switching from a pkg to a port by doing the following within the port you are upgrading. make deinstall make clean make reinstall Then portupgrade will work with the port fine. There is the possibility that you may need to remove the pkg using pkg delete and then do a fresh install from ports. X is big, I have not used X in years as all my systems are servers, I generally use only ports if I don't install from source. Someone with more experience than me might have a better answer. Of course, if you follow my advice blindly your system may explode, or worse ;^) DAve PS, Denise says HOWDY! -- In 50 years, our descendants will look back on the early years of the internet, and much like we now look back on men with rockets on their back and feathers glued to their arms, marvel that we had the intelligence to wipe the drool from our chins. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Your suggestions about this Dell configuration?
Hello Frank Really good points. I am really glad to have your thoughts. Regarding your questions and comments, I have given some answers and a couple of questions in *RED* colour. Please comment if you happen to manage some time during weekend, Thanks! *Please continue...* On Thu, May 22, 2008 at 4:01 AM, Frank Shute <[EMAIL PROTECTED]> wrote: > On Wed, May 21, 2008 at 08:49:51AM +0200, VeeJay wrote: > > > > Hello friends, > > > > My employer is buying this Dell server and I would like to have your > opinion > > about the configuration. > > > > Requirements are: > > 2 Websites with 3-4 million hits per month with video ads. > > If it's "3-4 million hits per month" as you've stated twice now, then > your hardware is complete overkill. > > So I'll assume you mean 3-4 million hits a day for each site. *No, its 3-4 million each site per month and we are having problem. Because, either Apache or MySQL stops responding. I have following settings as Performance:* ** *# = # Performance settings # = Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 MinSpareServers 5 MaxSpareServers 10 StartServers 5 MaxClients 256 MaxRequestsPerChild 0* > > > > > Operating System: > > *FreeBSD AMD647-STABBLE* > > I'd use 7.0-RELEASE. > > > > > Database: > > *PHP+MySQL with Apache* > > No problem. You should use Apache 2.*. *We will use Apache 2.** > > > > > > > Server Configuration: > > *PowerEdge? 6850 SCSI* > > > > Dual Core Intel(R) Xeon(R) Processor 7130M, 3.2GHz, 8MB L3 Cache, 800Mhz > FSB > > 1x Additional Dual Core Intel(R) Xeon(R) Processor 7130M, 3.2GHz, 8MB L3 > Cache, > > 800MHz FSB > > Slow FSB. I suppose they hope you hit the cache. Shouldn't matter > because your server is more likely to be disk bound rather than bus > bound. Changed Processor to: *PE 2950 III Quad Core Xeon X5450 (3.0GHz, 2x6MB, 1333MHz FSB)* *what do you think about E5450?* > > > > > 16GB 400MHz Dual Rank DDR2 Memory (8X2GB) > > Slow memory, to match the slow FSB :) But you've got >250MB per hit. > So use the excess to cache frequently accessed content. *We have changed it to:* *16GB (8x2GB Dual Rank DIMMs) 667MHz FBD* > > > C5 Drives attached to embedded PERC4ei, RAID 10 > > > > PERC 4/DC RAID controller (128MB cache) (1 intern and 1 extern Channel) > > (Should I use controller with Both Internal or Both External Channel? > What > > they do?) > > Supported according to a quick Google search. > > > > > 5 x 146GB SCSI Ultra320 (15000rpm) 1'' 80 pin harddrives > > "No name" or a brand? *We have changed the disks to :* *6 x 450GB SAS 15k 3.5" HD Hot Plug, (Hitachi Japan)* > > > > > > Chassis with support for 3.5'' SCSI Hard Drives > > > > Dell Remote Access Card 4 SERVER MANAGEMENT CARD > > Don't know if this will work. Most guys use a serial console/ssh for > management. > > > > > (I will have hot swappable drives & chassis) > > > > Thank you in advance. > > The performance of this hardware will depend on what *sort* of hits > you get. Are a lot of them just for the homepage? Then just cache it. > > Is it static content? *No, its dynamic contents, data is coming form Database.* > > > If you're getting lots of ad-hoc database queries and fetches/writes > from/to disk, then your disks could get a thrashing. > > How big's your database? Being read from more than written to? How > precious is the data? > *More than 20 million records and more than 1000 Tables.* *And of course, data is always preciouse. :)* > > How many of these hits are reading video ads? All of them? How many > KBs are these awful ads? > *50% of users are going to see the Video Ads.* ** *Size would vary between 100KB to 2MB. * What bandwidth do you have to these servers? *100 Mbps* How you are going to get the best out of your hardware depends on questions like these, so you have to analyse your Apache logs and tune appropriately. Tuning Apache, mysql and PHP are all subjects in their own right. For FreeBSD, read tuning(7). Are you running FreeBSD ATM? Then some numbers from iostat, top etc. would be useful in analysing how your new server is going to cope and how much spare capacity you'll have, but the numbers are dependent on how you've tuned it (if at all). Hope I've given you something to think about. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html -- Thanks! BR / vj ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Shell scripting - suppressing and eliminating error messages
Paul Schmehl wrote: > --On Tuesday, May 20, 2008 17:36:26 -0500 Paul Schmehl <[EMAIL PROTECTED]> > wrote: > > if ( ${BATCH} ); then > > [...] > > 1: not found > > Never mindforgot to use [ ] for test instead of ( ). If the value of $BATCH is always either 0 and 1, a neat trick is to define two shell functions: 0() { false; } 1() { true; } Then you can savely write: if ( $BATCH ); then Or even: if $BATCH; then Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "Clear perl code is better than unclear awk code; but NOTHING comes close to unclear perl code" (taken from comp.lang.awk FAQ) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: /usr/src/Makefile instructions
> On that note, was I given misinformation when I was advised > that it would be impossible to upgrade RELENG_6_2 directly to > RELENG_7 ? Close to implausible, perhaps? That would indeed be the case, unless you truly are longing for a major workout, either with mergemaster et al, or both with mergemaster and the ports. The former case, which assumes you don't have many ports installed, is often a no-brainer: install a fresh system. The latter case may be somewhat more complicated: install a fresh system for the least effort on your side, or go the update route if you need to keep your system up and usable during the process. I should note that I always took the update trail, and never regretted it afterwards (well, if only so slightly). For instance, my workstation lived through 5.2.1-R, 6.2-R, RELENG_6, and finally RELENG_7, all with the aid of cvsup. The process is straightforward, well-designed and easily executed (thanks to the developers), but problems often pop-up with ports (especially such messy ones as Gnome, etc) which take lots of time to correct. So, in summary, a sane person should probably go with clean system update. P.S.: whoever replies next, it's safe to drop hackers@ from CC: anytime now >Kayven Riese, BSCS, MS (Physiology and Biophysics) [SorAlx] ridin' VS1400 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Sed, shell and hexadecimal character codes
Karel Miklav wrote: > There's a tip in the FreeBSD fortunes database that says: > > > Want to strip UTF-8 BOM(Bye Order Mark) from given files? > > > > sed -e '1s/^\xef\xbb\xbf//' < bomfile > newfile FreeBSD's sed(1) doesn't support hexadecimal or octal sequences. I think even gnu sed doesn't support it, but you might try it yourself (/usr/ports/textprog/gsed). I don't know why that fortunes entry exist. It's wrong. > I can't make it work, and I can't find any other method to > work with hexa codes in scripts or on the command line so > I'm kind-a depressed :) I help myself with xxd now, but if > it is possible to avoid it, I'd like to hear about it. There is no standard for handling octal and hexadecimal sequences, unfortunately, so you have to consult the manual page to find out. For example, tr(1) supports octal sequences only (no hexadecimal), while awk(1) supports both. So the above line could be rewritten with awk: awk '{if(NR==1)sub(/^\xef\xbb\xbf/, "");print}' < bomfile > newfile Basically that's exactly the same instruction as the sed one above, but awk is a little more verbose: "1" in sed means that the following command should only affect the first line. That's what "if(NR==1)" does in awk. "s/OLD/NEW/" is the replacement command in sed. In awk it looks like "sub(/old/, "new")". Finally, sed prints all resulting lines by default, while awk has to be told with an explicit "print" command. (awk prints lines automatically only if there are no other commands at all.) Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: RAID 0+1
> -Original Message- > From: Nejc Škoberne [mailto:[EMAIL PROTECTED] > Sent: Friday, May 23, 2008 2:06 AM > To: Ted Mittelstaedt > Cc: 'User Questions' > Subject: Re: RAID 0+1 > > > Hey, > > > don't use gmirror and atacontrol at the same time. Use one or > the other. > > I don't. As I said: > > > Then I would merge the second > > slice of all 4 drives into a 0+1 array (first gstriping and > > then gmirroring them). I somehow succeeded this, but I also > > get a WARNING when booting the system: > > So I am gstriping first and then gmirroring the stripes. > And I am getting this warning message: > > >> WARNING: Expected rawoffset 0, found 63 > > I don't know if I should worry about this or not. > You mentioned you used atacontrol to create the array, that's not part of gmirror. However in any case, you are not done. What you need to do now is write some data to the array, then unplug one of the sata connectors to the drive. The array will go into fault mode. Then you need to add the disk back in and see if the array will accept it, or if the array ends up scotching everything. A mirror is no good if it can't actually survive a fault. I used to do this when selling servers to HP Proliants. I'd have a customer with me and go to one of our production, running HP servers, eject a drive from the array, give it to the customer for inspection, then plug it back in. Other than the red light appearing on the drive for a few minutes, the rebuild operation was entirely in hardware, the server wouldn't even blink. If your array can't do that, your just basically technically masterbating with your system to feel good - it is in actuality a completely worthless mirror setup. Ted ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Bind DNS
At 09:07 AM 5/23/2008, Steve Bertrand wrote: Derek Ragona wrote: At 09:10 PM 5/22/2008, Ruel Luchavez wrote: Hi ALL, Is it possible in BIND DNS to block images in a certain sites? like for example the popular friends site ( friendster), i want to block most images in that site so that client will be irritated that their images don't load perfectly. but s till they can visit their site? Any idea guys? thans define in your hosts any host or URL you want to block as the localhost, 127.0.0.1 You can google for whole host files to use to block a bunch of different annoying sites. I assumed by the OP's original message that this was a workplace-type environment, and figured that he wouldn't want to hand-manage this type of thing. Also, pardon my ignorance, but if you were to DNS redirect a domain name to a specific IP with BIND, wouldn't you have to create a DNS zone for each domain name? Steve no, you usually have /etc/nsswitch.conf set to check files before dns, so hosts is checked first. -Derek -- 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 "[EMAIL PROTECTED]"
Re: /usr/src/Makefile instructions
KAYVEN RIESE <[EMAIL PROTECTED]> wrote: > Tom Evans wrote: > > I've redirected this to questions@, as this seems more like a 'User > > question/technical support' rather than 'General technical discussion'. > > Please try to keep the mailing lists on topic. > > That list is too busy. I find I don't have to unsubscribe to > "hackers," and it doesn't seem as hard core to misinterpret > what "hackers" are, than say "ports" or "acpi" Well, "hackers" usually means developers, i.e. people hacking on the FreeBSD code. Therefore I'm afraid I have to agree with Tom: Your questions should better go to the questions list. > I realized that "make delete-old" and "make delete-old-libs" > are both part of the "cannonical," I guess because I am going > RELENG_6_3 to RELENG_7 I always use "make delete-old", as instructed in the /usr/src/UPDATING file, and it has never bitten me. Please have a look at that file; the important part starts at the section titled "To rebuild everything". > On that note, was I given misinformation when I was advised > that it would be impossible to upgrade RELENG_6_2 directly to > RELENG_7 ? "Nothing is impossible!", as Dr. Farnsworth from the Futurama series used to say. :-) But seriously ... I think going from 6.2 to 7.0 should work fine. However, the official notion is that updates across major versions have to be supported only for the latest stable release. Any other configurations might work, but it's not guaranteed. If it fails, you're not expected to complain or ask for help, but instead try the officially supported way (i.e. first update to the latest stable on your existing branch, then update across the major version boundary). If that still fails, you may complain and ask for help. Note that it is IMPORTANT to rebuild *all* of your ports when you update from 6.x to 7.x. (This holds true for any major version update.) If you don't do this, you will get library dependency collisions, i.e. port A uses libc.so.7 and depends on port B, but port B still links against the older libc.so.6. Things will break sooner or later. That's why you should rebuild *all* ports after updating to 7.x. (You can keep older ports only if you are absolutely sure that they are not part of any dependencies, and never will be.) In your previous mail you mentioned: > Things work, but dmesg has errors, Would you please tell us what those errors are? We might be able to help you, but only if you tell us. > and many ports fail and their makes Again: Please post messages and everything relevant to the problems. There are really people on these lists that are willing to help, but we need as much information as possible in order to be able to help. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: /usr/src/Makefile instructions
On Fri, 23 May 2008, Tom Evans wrote: On Fri, 2008-05-23 at 05:49 -0700, KAYVEN RIESE wrote: I've redirected this to questions@, as this seems more like a 'User question/technical support' rather than 'General technical discussion'. Please try to keep the mailing lists on topic. That list is too busy. I find I don't have to unsubscribe to "hackers," and it doesn't seem as hard core to misinterpret what "hackers" are, than say "ports" or "acpi" I realized that "make delete-old" and "make delete-old-libs" are both part of the "cannonical," I guess because I am going RELENG_6_3 to RELENG_7 On that note, was I given misinformation when I was advised that it would be impossible to upgrade RELENG_6_2 directly to RELENG_7 ? Cheers Tom *--* Kayven Riese, BSCS, MS (Physiology and Biophysics) (415) 902 5513 cellular http://kayve.net Webmaster http://ChessYoga.org *--* ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Bind DNS
Derek Ragona wrote: At 09:10 PM 5/22/2008, Ruel Luchavez wrote: Hi ALL, Is it possible in BIND DNS to block images in a certain sites? like for example the popular friends site ( friendster), i want to block most images in that site so that client will be irritated that their images don't load perfectly. but s till they can visit their site? Any idea guys? thans define in your hosts any host or URL you want to block as the localhost, 127.0.0.1 You can google for whole host files to use to block a bunch of different annoying sites. I assumed by the OP's original message that this was a workplace-type environment, and figured that he wouldn't want to hand-manage this type of thing. Also, pardon my ignorance, but if you were to DNS redirect a domain name to a specific IP with BIND, wouldn't you have to create a DNS zone for each domain name? Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Bind DNS
At 09:10 PM 5/22/2008, Ruel Luchavez wrote: Hi ALL, Is it possible in BIND DNS to block images in a certain sites? like for example the popular friends site ( friendster), i want to block most images in that site so that client will be irritated that their images don't load perfectly. but s till they can visit their site? Any idea guys? thans define in your hosts any host or URL you want to block as the localhost, 127.0.0.1 You can google for whole host files to use to block a bunch of different annoying sites. -Derek -- 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 "[EMAIL PROTECTED]"
Re: Bind DNS
are images on different serwer than rest of site? On Fri, 23 May 2008, Ruel Luchavez wrote: Hi ALL, Is it possible in BIND DNS to block images in a certain sites? like for example the popular friends site ( friendster), i want to block most images in that site so that client will be irritated that their images don't load perfectly. but s till they can visit their site? Any idea guys? thans ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Bind DNS
Is it possible in BIND DNS to block images in a certain sites? like for example the popular friends site ( friendster), i want to block most images in that site so that client will be irritated that their images don't load perfectly. but s till they can visit their site? Any idea guys? DNS is a name to address resolution protocol. It has no knowledge of web content. What you are after is some sort of web content filter. For home use, I use Squid and DansGuardian (both in ports). Still though, it's very difficult to block only *certain* images, and not others from a particular site. Regards, Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Lock order reversal submissions?
Does anybody happen to know where I can submit lock order reversal outputs (like the one below)? I don't want to spam freebsd-current and http://sources.zabbadoz.net/freebsd/lor.html seems to have not been updated in over a year now. Thanks - Tobias This is from 8.0-CURRENT: May 22 10:57:08 santafe kernel: lock order reversal: May 22 10:57:08 santafe kernel: 1st 0xc6768df4 devfs (devfs) @ /usr/src/sys/kern/vfs_subr.c:2044 May 22 10:57:08 santafe kernel: 2nd 0xc681cc94 devfsmount (devfsmount) @ /usr/src/sys/fs/devfs/devfs_vnops.c:293 May 22 10:57:08 santafe kernel: KDB: stack backtrace: May 22 10:57:08 santafe kernel: db_trace_self_wrapper(c0b28775,c63f9bb4,c07b908e,c0b2afd0,c681cc94,...) at db_trace_self_wrapper+0x26 May 22 10:57:08 santafe kernel: kdb_backtrace(c0b2afd0,c681cc94,c0b1be5e,c0b1be5e,c0b1be78,...) at kdb_backtrace+0x29 May 22 10:57:08 santafe kernel: witness_checkorder(c681cc94,9,c0b1be78,125,123,...) at witness_checkorder+0x6de May 22 10:57:08 santafe kernel: _sx_xlock(c681cc94,0,c0b1be78,125,c681cc94,...) at _sx_xlock+0x7d May 22 10:57:08 santafe kernel: devfs_allocv(c6858000,c686b000,c63f9c20,c6490d20,c6490dc4,...) at devfs_allocv+0x142 May 22 10:57:08 santafe kernel: devfs_root(c686b000,8,c0c9f334,c6490d20,4,...) at devfs_root+0x51 May 22 10:57:08 santafe kernel: set_rootvnode(c0c9f320,0,c0b30d78,5f6,c07f6a20,...) at set_rootvnode+0x2d May 22 10:57:08 santafe kernel: vfs_mountroot(c0c4c0d0,4,c0b20362,264,c63f9cc4,...) at vfs_mountroot+0x34c May 22 10:57:08 santafe kernel: start_init(0,c63f9d38,c0b21cf9,30d,c648ed0c,...) at start_init+0x65 May 22 10:57:08 santafe kernel: fork_exit(c0744e00,0,c63f9d38) at fork_exit+0xb8 May 22 10:57:08 santafe kernel: fork_trampoline() at fork_trampoline+0x8 May 22 10:57:08 santafe kernel: --- trap 0, eip = 0, esp = 0xc63f9d70, ebp = 0 --- May 22 10:57:08 santafe kernel: Trying to mount root from ufs:/dev/ad4s1a May 22 10:57:08 santafe kernel: lock order reversal: (sleepable after non-sleepable) May 22 10:57:08 santafe kernel: 1st 0xc68792c0 bufobj interlock (bufobj interlock) @ /usr/src/sys/kern/vfs_bio.c:2442 May 22 10:57:08 santafe kernel: 2nd 0xda4e5c80 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:2456 May 22 10:57:08 santafe kernel: KDB: stack backtrace: May 22 10:57:08 santafe kernel: db_trace_self_wrapper(c0b28775,c63f9790,c07b908e,c0b2afd0,da4e5c80,...) at db_trace_self_wrapper+0x26 May 22 10:57:08 santafe kernel: kdb_backtrace(c0b2afd0,da4e5c80,c0b2fd41,c0b2fd41,c0b2f2f0,...) at kdb_backtrace+0x29 May 22 10:57:08 santafe kernel: witness_checkorder(da4e5c80,9,c0b2f2f0,998,c0b24355,...) at witness_checkorder+0x6de May 22 10:57:08 santafe kernel: __lockmgr_args(da4e5c80,81900,c68792c0,c0b2fc9d,50,...) at __lockmgr_args+0x777 May 22 10:57:08 santafe kernel: getblk(c6879218,0,0,800,0,...) at getblk+0x153 May 22 10:57:08 santafe kernel: breadn(c6879218,0,0,800,0,...) at breadn+0x44 May 22 10:57:08 santafe kernel: bread(c6879218,0,0,800,0,...) at bread+0x4c May 22 10:57:08 santafe kernel: ffs_blkatoff(c6879218,0,0,0,c63f99a8,...) at ffs_blkatoff+0xd1 May 22 10:57:08 santafe kernel: ufs_lookup(c63f99ec,c6879218,c63f9b50,c6879218,c63f9a0c,...) at ufs_lookup+0x2e6 May 22 10:57:08 santafe kernel: VOP_CACHEDLOOKUP_APV(c0c025c0,c63f99ec,c63f9b50,c63f9b3c,c645e300,...) at VOP_CACHEDLOOKUP_APV+0xa5 May 22 10:57:08 santafe kernel: vfs_cache_lookup(c63f9a6c,c63f9a6c,50c,8,c6879218,...) at vfs_cache_lookup+0xd0 May 22 10:57:08 santafe kernel: VOP_LOOKUP_APV(c0c025c0,c63f9a6c,c0b30b26,1b0,c63f9b3c,...) at VOP_LOOKUP_APV+0xa5 May 22 10:57:08 santafe kernel: lookup(c63f9b24,c0b30b26,d8,c0,c645e42c,...) at lookup+0x57e May 22 10:57:08 santafe kernel: namei(c63f9b24,c63f9b28,c07b886c,c076fe5c,c0c9ebd0,...) at namei+0x44b May 22 10:57:08 santafe kernel: kern_unlinkat(c6490d20,ff9c,c0b311b5,1,c63f9c5c,...) at kern_unlinkat+0x46 May 22 10:57:08 santafe kernel: kern_unlink(c6490d20,c0b311b5,1,631,0,...) at kern_unlink+0x27 May 22 10:57:08 santafe kernel: vfs_mountroot_try(c0b3136f,c0b1f07b,c0b17ad8,1,c07f6a20,...) at vfs_mountroot_try+0x472 May 22 10:57:08 santafe kernel: vfs_mountroot(c0c4c0d0,4,c0b20362,264,c63f9cc4,...) at vfs_mountroot+0x40e May 22 10:57:08 santafe kernel: start_init(0,c63f9d38,c0b21cf9,30d,c648ed0c,...) at start_init+0x65 May 22 10:57:08 santafe kernel: fork_exit(c0744e00,0,c63f9d38) at fork_exit+0xb8 May 22 10:57:08 santafe kernel: fork_trampoline() at fork_trampoline+0x8 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Multiple instances of BIND at startup
Well, BIND is up to 28 published security advisories: http://www.isc.org/sw/bind/bind-security.php#matrix ...which not only have included cache poisoning (2003-0914), but many of them allowed for arbitrary code execution, often as root. Ok, then I'll ask the obvious... For those who are, or have been network ops within an Internet Service Provider environment, what DNS server do you recommend for reliability, functionality, and most importantly, ease of use so the helpdesk can make slight changes to client domains when required (hopefully without having to su to root). The latter point is why I went from BIND to TinyDNS (VegaDNS) in the first place, but it's seriously lacking with IPv6 support. Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Asus eee (was Re: G4 Quicksilver as Web Server?)
Matthias Apitz wrote: El día Wednesday, May 21, 2008 a las 07:44:31PM +0300, Manolis Kiagias escribió: ... - Note you can install either to SSD or an external SDHC. The SSD is somewhat faster though. (But you can get larger SDHCs). I am dual booting Linux and FreeBSD on mine right now. Linux is on the SSD and FreeBSD on an 8GB SDHC. In this Wiki page they show already a model 900 with up to 20 GByte SSD; maybe it's a good idea to go for this model, even if it is a bit more expensive (~400 euros): http://en.wikipedia.org/wiki/Eeepc matthias Yes, I am already planning to upgrade :) At this time, it is not available in Greece (though I have spotted a few on ebay). Even more important than the 20Gb SSD is the 9 inch display with a resolution of 1024x600. 800x480 is really small for anything more other than taking notes. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Asus eee (was Re: G4 Quicksilver as Web Server?)
El día Wednesday, May 21, 2008 a las 07:44:31PM +0300, Manolis Kiagias escribió: ... > - Note you can install either to SSD or an external SDHC. The SSD is > somewhat faster though. (But you can get larger SDHCs). I am dual > booting Linux and FreeBSD on mine right now. Linux is on the SSD and > FreeBSD on an 8GB SDHC. In this Wiki page they show already a model 900 with up to 20 GByte SSD; maybe it's a good idea to go for this model, even if it is a bit more expensive (~400 euros): http://en.wikipedia.org/wiki/Eeepc matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e <[EMAIL PROTECTED]> - w http://www.oclc.org/ http://www.UnixArea.de/ b http://gurucubano.blogspot.com/ «...una sola vez, que es cuanto basta si se trata de verdades definitivas.» «...only once, which is enough if it has todo with definite truth.» José Saramago, Historia del Cerca de Lisboa ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: RAID 0+1
Hey, don't use gmirror and atacontrol at the same time. Use one or the other. I don't. As I said: > Then I would merge the second > slice of all 4 drives into a 0+1 array (first gstriping and > then gmirroring them). I somehow succeeded this, but I also > get a WARNING when booting the system: So I am gstriping first and then gmirroring the stripes. And I am getting this warning message: WARNING: Expected rawoffset 0, found 63 I don't know if I should worry about this or not. Thanks, Nejc ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Samba in Webmin
Hi ALL, I have install FreeBSD 7.0 in a VM, after i finish installing it I then install the Webmin (GUI) followed by the SAMBA all goes well. My samba is working properly but when i visit the GUI of Webmin i cant see under the Server my Samba Window File Sharing (GUI). Is this the the new style of version 7.0 Freebsd? or I forgot something to see my Samba in Webmin GUI? HELP hereTHanks FreeBSD ROck...^o^ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
error:make:don't know how to make buildkernel.stop
For make buildkernel you must have source: src-sys src-base <<< I had the same problem. :-) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: devfs and scanner
Sébastien Morand <[EMAIL PROTECTED]> writes: >> Is the uscanner0 device also dealt with in /etc/devfs.rules ? >> > > I don't have such a file, is devd.conf the same purpose? No it isn't. /etc/devfs.conf deals with devices avaiable at boot time - cdrom drives etc devices that are plugged in and unplugged - usb gadgets like scanners :-) - are handled by /etc/devfs.rules So get rid of that entry in /etc/devfs.conf and insert the right thing in /etc/devfs.rules Mine looks like this:- [system=10] add path 'unlpt*' mode 0660 group cups add path 'ulpt*' mode 0660 group cups add path 'lpt*' mode 0660 group cups ## Glyn added these below add path 'da*' mode 0660 group operator add path 'uscanner*' mode 0660 group operator add path 'tap*' mode 0660 group operator You will want to change operator to scanner for your scanner group. That first line gives the ruleset a name and a number; then in /etc/rc.conf you should put the line devfs_system_ruleset="system" That should work after a reboot. atb Glyn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Perspective on ports for non-experts
I am a jack-of-all-trades, master of none sysadmin. There's a lot to love about FreeBSD, but ports take the cake. The procedures below work 99% of the time for virtually any software I need to run. I have never had a problem I couldn't quickly fix. I actually had to use portdowngrade once, and it worked! My normal ports routine is: % cd /usr/ports/ % portsnap fetch update % portsdb -u % portaudit -Fa % pico UPDATING % portversion -l '<' [OR] portversion -v |less % portupgrade -vr postfix % portupgrade -vr clamav If I'm installing a new port: % cd /usr/ports % make search name=postfix % cd mail/postfix % make install clean In my experience, if the instructions in the Handbook don't work, finding the workaround often involves hunting and pecking across the Internet, as well as learning new concepts and commands. I've never seen something like "An Introduction to make". I only recently learned how to retrieve the graphical configuration screen after an installation without deinstalling/reinstalling: % make configure Some of you will laugh, but some will know exactly what I'm talking about. Where should I have learned that? Please don't send me to man! The one thing I'm looking for in man pages is examples. I hardly ever find them. ## ## How to replace wrong binary packages with source packages I'm ready to run X11/KDE. It seems like the perfect time to learn how to use ports for binary packages, since X11/KDE are non-essential and will take a couple of days to compile and install. ## http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/packages-using.html % pkg_add -r kde3 Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/kde3.tbz: File unavailable (e.g., file not found, no access) pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/kde3.tbz' by URL So I used: % pkg_add -r ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages/Latest/kd3.tbz I think I should have used /packages-6-stable/. Instead I ended up with binaries for 7 (I guess). I don't understand the first thing about linking/dynamic compiling. All I know is I couldn't upgrade any of these packages using portupgrade. Here's an example: % portupgrade -vr qt ... /usr/bin/ld: warning: libz.so.4, needed by /usr/local/lib/libqt-mt.so, not found (try using -rpath or -rpath-link) I don't have a list of every binary package installed, but through a process of elimination I eventually weed out all the bad binaries: % pkg_deinstall -v qt This is better than make deinstall because it quits if there is a dependency rather than just reporting it. Run the same command for each package depending on qt, then run it on qt again. Keep running this command until it succeeds: % cd /usr/ports/x11/kde3 % make configure Use the warning messages to figure out which ports need to be removed. Is there a better way to rectify this situation? Ross Gohlke ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: devfs and scanner
Is the uscanner0 device also dealt with in /etc/devfs.rules ? I don't have such a file, is devd.conf the same purpose? Sebastien ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"