From vinny-mail-01+f.questions20090831 at palaceofretention.ca Tue Sep 1 01:21:44 2009 From: vinny-mail-01+f.questions20090831 at palaceofretention.ca (Vinny) Date: Tue Sep 1 01:21:52 2009 Subject: geli disk marked as dirty on normal shutdown/reboot Message-ID: <4A9C7371.2010600@palaceofretention.ca> Hi List, # uname -a FreeBSD the.palaceofretention.ca 7.1-RELEASE-p6 FreeBSD 7.1-RELEASE-p6 #0: Tue Jun 9 16:26:47 UTC 2009 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 I have a geli backed ufs file system: ===fstab=== # ad14.eli esata /dev/ufs/E1TB /edisks/esata0 ufs rw,noauto 2 2 I use a passphrase to attach it: # geli attach ad14 Enter passphrase: ** The provider shows up as ad14.eli as expected. The file system on it has a label of E1TB (as seen above). The command: # mount /dev/ufs/E1TB usually works fine. The problem is that if I restart the system normally, the file system on the provider ad14.eli, when reattached, is marked as dirty and I get the usual "operation not permitted" error. I have to run: # fsck -t ufs /dev/ad14.eli before I can mount it again. This is repeatable and occurs for more than just the one geli provider I use in this example. Am I missing something with respect to properly attaching a geli device? Do I need the '-d' option to detach at last close? Thanks for any help. Vinny From amvandemore at gmail.com Tue Sep 1 02:22:16 2009 From: amvandemore at gmail.com (Adam Vande More) Date: Tue Sep 1 02:22:24 2009 Subject: geli disk marked as dirty on normal shutdown/reboot In-Reply-To: <4A9C7371.2010600@palaceofretention.ca> References: <4A9C7371.2010600@palaceofretention.ca> Message-ID: <6201873e0908311922p440659a7u2ee66d7189ef8138@mail.gmail.com> On Mon, Aug 31, 2009 at 8:05 PM, Vinny < vinny-mail-01+f.questions20090831@palaceofretention.ca > wrote: > Hi List, > > # uname -a > FreeBSD the.palaceofretention.ca 7.1-RELEASE-p6 FreeBSD 7.1-RELEASE-p6 #0: > Tue Jun 9 16:26:47 UTC 2009 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC > i386 > > I have a geli backed ufs file system: > > ===fstab=== > # ad14.eli esata > /dev/ufs/E1TB /edisks/esata0 ufs rw,noauto 2 2 > > I use a passphrase to attach it: > > # geli attach ad14 > Enter passphrase: ** > > The provider shows up as ad14.eli as expected. The file system > on it has a label of E1TB (as seen above). > > The command: > > # mount /dev/ufs/E1TB > > usually works fine. > > The problem is that if I restart the system normally, the > file system on the provider ad14.eli, when reattached, is > marked as dirty and I get the usual "operation not permitted" > error. I have to run: > > # fsck -t ufs /dev/ad14.eli > > before I can mount it again. This is repeatable and occurs > for more than just the one geli provider I use in this example. > > Am I missing something with respect to properly attaching a > geli device? Do I need the '-d' option to detach at last > close? > > Thanks for any help. > Vinny > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > Usually I just umount before close. I don't get the need to fsck then. -- Adam Vande More From freebsd at edvax.de Tue Sep 1 02:38:07 2009 From: freebsd at edvax.de (Polytropon) Date: Tue Sep 1 02:38:14 2009 Subject: geli disk marked as dirty on normal shutdown/reboot In-Reply-To: <6201873e0908311922p440659a7u2ee66d7189ef8138@mail.gmail.com> References: <4A9C7371.2010600@palaceofretention.ca> <6201873e0908311922p440659a7u2ee66d7189ef8138@mail.gmail.com> Message-ID: <20090901043800.023fd5cd.freebsd@edvax.de> On Mon, 31 Aug 2009 21:22:14 -0500, Adam Vande More wrote: > Usually I just umount before close. I don't get the need to fsck then. You could add the umount command to /etc/rc.shutdown.local so the system would automatically umount the partition, even if you reboot. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From vinny-mail-01+f.questions20090831 at palaceofretention.ca Tue Sep 1 03:50:48 2009 From: vinny-mail-01+f.questions20090831 at palaceofretention.ca (Vinny) Date: Tue Sep 1 03:50:55 2009 Subject: geli disk marked as dirty on normal shutdown/reboot In-Reply-To: <20090901043800.023fd5cd.freebsd@edvax.de> References: <4A9C7371.2010600@palaceofretention.ca> <6201873e0908311922p440659a7u2ee66d7189ef8138@mail.gmail.com> <20090901043800.023fd5cd.freebsd@edvax.de> Message-ID: <4A9C9A14.3060209@palaceofretention.ca> Polytropon wrote: > On Mon, 31 Aug 2009 21:22:14 -0500, Adam Vande More wrote: >> Usually I just umount before close. I don't get the need to fsck then. Does this mean you observe the same behaviour? I.e. a geli-backed file system mounted and listed in the fstab is not properly unmounted at shutdown? > > You could add the umount command to /etc/rc.shutdown.local > so the system would automatically umount the partition, even > if you reboot. > It is my understanding that file systems listed in the /etc/fstab file are unmounted at system shutdown. Is this correct? If not, that would be a pretty big WTF?, if you ask me. From stark at mapper.nl Tue Sep 1 06:23:16 2009 From: stark at mapper.nl (Mark Stapper) Date: Tue Sep 1 06:23:24 2009 Subject: ZFS and DMA read error In-Reply-To: References: <4A9B731E.9050400@mapper.nl> Message-ID: <4A9CBDBB.3060403@mapper.nl> > > > > > Since it's all throwing errors at the same LBA, I'd run a SMART > diagnostics on the drive (i think it's port sysutils/smartmontools) > and see if it's showing errors too. Looks like a failing/failed drive > and I would recommend replacing it. I doubt (but you can try) > spinrite will help you when you get to this point. > Thought about that, will do that, after running zfs scrub. Weird thing is that zfs hasn't show any data/checksum errors. Does this mean successive reads were successful? > spinrite's website is at grc.com > People are REALLY pushing spinrite lately... I did get it though, just to try it. > > Hope you have backups or redundancy. No fun replacing data. > I have both :-). -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090901/fa933da5/signature.pgp From j.mckeown at ru.ac.za Tue Sep 1 06:41:06 2009 From: j.mckeown at ru.ac.za (Jonathan McKeown) Date: Tue Sep 1 06:41:14 2009 Subject: questions about FreeBSD In-Reply-To: <20090831150007.GF47604@gizmo.acns.msu.edu> References: <20090831150007.GF47604@gizmo.acns.msu.edu> Message-ID: <200909010841.00940.j.mckeown@ru.ac.za> On Monday 31 August 2009 17:00:07 Jerry McAllister wrote: > Same response. ? Do your homework. The nature of the OP's questions strongly suggested that we are doing his homework. I'm surprised so many people spoonfed the answers rather than pointing to resources like the handbook, as the first responder did. From artis.caune at gmail.com Tue Sep 1 08:19:37 2009 From: artis.caune at gmail.com (Artis Caune) Date: Tue Sep 1 08:19:44 2009 Subject: shell command line argument + parsing function In-Reply-To: References: Message-ID: <9e20d71e0909010119g387c3869pb61a59c8b3c73c5b@mail.gmail.com> 2009/8/31 Stefan Miklosovic : > hi, > > assuming I execute shell script like this > > $ ./script -c "hello world" > > I want to save "hello world" string to variable COMMENT in shell script. > > code: > > #!/bin/sh > > parse_cmdline() { > ? ?while [ $# -gt 0 ]; do > ? ? ? ?case "$1" in > ? ? ? ? ? ?-c) > ? ? ? ? ? ? ? ?shift > ? ? ? ? ? ? ? ?COMMENT="$1" > ? ? ? ? ? ? ? ?;; > ? ? ? ?esac > ? ? ? ?shift > ? ?done > } > > parse_cmdline $* > > echo $COMMENT > > exit 0 How about getopts builtin, so you can use: ./script -c "hello world" or ./script -c"hello world" or while getopts c: f; do case $f in c) COMMENT=$OPTARG ;; \?) echo 'usage: $0 [-c string]' exit 1 ;; esac done echo "COMMENT: $COMMENT" -- Artis Caune Everything should be made as simple as possible, but not simpler. From artis.caune at gmail.com Tue Sep 1 08:22:25 2009 From: artis.caune at gmail.com (Artis Caune) Date: Tue Sep 1 08:22:35 2009 Subject: Boot from RAIDZ in 8.0-BETA3? In-Reply-To: <4A99D308.6000806@polands.org> References: <4A99D308.6000806@polands.org> Message-ID: <9e20d71e0909010054k66410ab7y207939e82705fc8f@mail.gmail.com> 2009/8/30 Doug Poland : > Shutdown, remove ad0 from the virtual machine, > Power on and it see... > > > error 4 lba 4292979877 > error 4 lba 4292979883 > error 4 lba 4292979883 > error 4 lba 4292979882 > ZFS: i/o error - all block copies unavailable > Invalid format I had a similar problem on IBM x3650 with 6 sata disks. While testing zfs, I got kmem panic and after reboot same errors appeared. OpenSolaris does not allow to boot from raidz and there can be only one vdev in bootable pool, so I decided to make two pools if I need raidz or multiple vdevs: - one root pool (8G) (mirror disk0 disk1 ... disk5) - one for data and other fs (raidz disk0 disk1 ... disk5) -- Artis Caune Everything should be made as simple as possible, but not simpler. From tijl at ulyssis.org Tue Sep 1 11:13:06 2009 From: tijl at ulyssis.org (Tijl Coosemans) Date: Tue Sep 1 11:13:13 2009 Subject: Is ALSA support working in 72? In-Reply-To: <4A9C2B02.8010001@rawbw.com> References: <4A9C2B02.8010001@rawbw.com> Message-ID: <200909011310.32746.tijl@ulyssis.org> On Monday 31 August 2009 21:56:50 Yuri wrote: > I tried new skype-2.1.0.47 on FreBSD-72. (I have > linux-alsa-lib-1.0.10.3_2 installed.) > > Skype starts but gives the errors below when I try to make a voice call. > Previous versions of Skype came in OSS flavor but now it seems to be > dropped and it's only available for ALSA. > > Why would ALSA library fail? > > ----- errrors ----- > > ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0' > ALSA lib conf.c:3493:(_snd_config_evaluate) function > snd_func_card_driver returned error: No such device > ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings > ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_concat > returned error: No such device > ALSA lib confmisc.c:1072:(snd_func_refer) error evaluating name > ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_refer > returned error: No such device > ALSA lib conf.c:3962:(snd_config_expand) Evaluate error: No such device > ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default > ALSA lib confmisc.c:672:(snd_func_card_driver) cannot find card '0' > ALSA lib conf.c:3493:(_snd_config_evaluate) function > snd_func_card_driver returned error: No such device > ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings > ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_concat > returned error: No such device > ALSA lib confmisc.c:1072:(snd_func_refer) error evaluating name > ALSA lib conf.c:3493:(_snd_config_evaluate) function snd_func_refer > returned error: No such device > ALSA lib conf.c:3962:(snd_config_expand) Evaluate error: No such device > ALSA lib pcm.c:2099:(snd_pcm_open_noupdate) Unknown PCM default > /usr/ports/distfiles/skype_static-2.1.0.47/skype: relocation error: > /usr/ports/distfiles/skype_static-2.1.0.47/skype: symbol > snd_device_name_hint, version ALSA_0.9 not defined in file > libasound.so.2 with link time reference ALSA has never worked AFAIK. The library is only there for applications that link to it, but don't actually use it. It might be worth a try to install the alsa-plugins-oss RPM and then configure ALSA lib to use the FreeBSD OSS device. From gesbbb at yahoo.com Tue Sep 1 12:08:17 2009 From: gesbbb at yahoo.com (Jerry) Date: Tue Sep 1 12:08:25 2009 Subject: itunes on FreeBSD Message-ID: <20090901080815.16a9d5ce@scorpio.seibercom.net> I use itunes extensively on my Windows machines to download music. AFAIK, Apple does not make a version for linux/bsd, although I might be incorrect. I investigated Rhapsody ; however, there is no generic version of that available for linux/bsd either. Is anyone aware of a similar programs that works on FreeBSD? I am looking for a full featured program that works along the same lines as itunes. -- Jerry gesbbb@yahoo.com Any fool can criticize, condemn and complain and most fools do. Benjamin Franklin (1706 - 1790) From nealhogan at gmail.com Tue Sep 1 12:16:04 2009 From: nealhogan at gmail.com (Neal Hogan) Date: Tue Sep 1 12:16:12 2009 Subject: itunes on FreeBSD In-Reply-To: <20090901080815.16a9d5ce@scorpio.seibercom.net> References: <20090901080815.16a9d5ce@scorpio.seibercom.net> Message-ID: On Tue, Sep 1, 2009 at 7:08 AM, Jerry wrote: > I use itunes extensively on my Windows > machines to download music. AFAIK, Apple does not make a version for > linux/bsd, although I might be incorrect. > > I investigated Rhapsody ; > however, there is no generic version of that available for linux/bsd > either. > > Is anyone aware of a similar programs that works on FreeBSD? I am > looking for a full featured program that works along the same lines as > itunes. I've messed with Amarok and was able to get songs to and from an ipod. I haven't worked with it too much. It's been a while too. So, my advice would be dusty (If I have any). Also, there is gtkpod (I don' t know much about it). > > -- > Jerry > gesbbb@yahoo.com > > Any fool can criticize, condemn and complain and most fools do. > > ? ? ? ?Benjamin Franklin (1706 - 1790) > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > From andrewlylegould at gmail.com Tue Sep 1 13:31:29 2009 From: andrewlylegould at gmail.com (Andrew Gould) Date: Tue Sep 1 13:31:40 2009 Subject: itunes on FreeBSD In-Reply-To: <20090901080815.16a9d5ce@scorpio.seibercom.net> References: <20090901080815.16a9d5ce@scorpio.seibercom.net> Message-ID: On Tue, Sep 1, 2009 at 7:08 AM, Jerry wrote: > I use itunes extensively on my Windows > machines to download music. AFAIK, Apple does not make a version for > linux/bsd, although I might be incorrect. > > I investigated Rhapsody ; > however, there is no generic version of that available for linux/bsd > either. > > Is anyone aware of a similar programs that works on FreeBSD? I am > looking for a full featured program that works along the same lines as > itunes. > > -- > Jerry > gesbbb@yahoo.com > Try looking at these: Rhythmbox (Gnome; ports category: audio) http://projects.gnome.org/rhythmbox/ Banshee (uses mono; ports category: multimedia) http://banshee-project.org/ Amarok (KDE; ports category: audio) http://amarok.kde.org/ From stapleton.41 at gmail.com Tue Sep 1 13:44:11 2009 From: stapleton.41 at gmail.com (Jim) Date: Tue Sep 1 13:44:17 2009 Subject: 32 bit ports on an AMD64 system In-Reply-To: References: Message-ID: <80f4f2b20909010644j7962dc4cub71e725d083072ef@mail.gmail.com> > First, I hope that you have a good reason for doing this, because it > is going to be a PITA, and prone to all sorts of problems. [...] Unfortunately I do. The 32 bit stuff is *would be really nice, but not necessary*, but the ability to use extra memory *and* dynamically load kernel modules is a bit more important to me. > If you are just talking about unshadowed ports, you could try adding > something like the following to /etc/make.conf: > > .ifdef(32BIT) > PREFIX=/usr/local/32 > LOCALBASE=/usr/local/32 > LDCONFIG=/sbin/ldconfig -32 > CFLAGS+=-m32 > .endif > > and then wrapping your portupgrade, portmaster, or make commands with: > > env 32BIT=yes [insert rest of command here] > > If there is shadowing, you have to consider how to manage the > environment PATH so that you can actually run the 32-bit binary > executables without typing in fully-qualified pathnames every time, > and maybe also using LD_RUN_PATH or LD_LIBRARY_PATH so that the right > libraries are used --- you can see how problems crop up at every turn? I was thinking of leaving the standard paths alone, and setting up one or more [ba|c|]sh32 alias/scripts which would start up the appropriate shell, with 32-bit directories at the front of the path. I know I'll end up having both 32- and 64-bit of Python on my system (many of the main apps I use require python - but I also want to be able to use py-psyco), as well as a few copies of the various GUI toolkits in 32-bit. Thanks for the info, -Jim Stapleton -Jim Stapleton From mdc at prgmr.com Tue Sep 1 13:47:24 2009 From: mdc at prgmr.com (Michael David Crawford) Date: Tue Sep 1 13:47:32 2009 Subject: itunes on FreeBSD In-Reply-To: References: <20090901080815.16a9d5ce@scorpio.seibercom.net> Message-ID: <4A9D25E8.3080105@prgmr.com> I am working on a GPL audio application called Ogg Frog: http://www.oggfrog.com/free-music-software/ It isn't ready for release yet, but when it is released for sure I will support FreeBSD. I will set up a port for it that hopefully can be included with the official ports. The initial release will be little more than a player, but later releases will support CD ripping, encoding, CD burning and integration with portable players. While Ogg Frog itself will be GPL, the audio core will be MIT licensed and contributed to the ZooLib C++ cross-platform application framework, to eventually become a media framework for ZooLib, which previously hasn't had any media support. Video will come eventually, but not for quite a while. Mike -- Michael David Crawford mdc@prgmr.com prgmr.com - We Don't Assume You Are Stupid. Xen-Powered Virtual Private Servers: http://prgmr.com/xen From stapleton.41 at gmail.com Tue Sep 1 13:49:48 2009 From: stapleton.41 at gmail.com (Jim) Date: Tue Sep 1 13:49:55 2009 Subject: 32 bit ports on an AMD64 system In-Reply-To: <44zl9f27fr.fsf@be-well.ilk.org> References: <80f4f2b20908310628p5129acc1qdb98311136bb716e@mail.gmail.com> <20090831163334.GA18945@slackbox.xs4all.nl> <44zl9f27fr.fsf@be-well.ilk.org> Message-ID: <80f4f2b20909010649i369ebfbao428fd8450ea48c26@mail.gmail.com> > Also note that it is possible to have an i386 port-building jail on an > amd64 system. So, make/build/run a normal jail using the 64 bit os "world", add -m32 to the make.conf CFLAGS and CXXFLAGS, build stuff in the jail, and copy it to main (non-jailed) system, and run ldconfig on the library directories? I'd probably also change PREFIX/LOCALBASE to prevent the files from the ports from colling with the base system files when I copy them over. Thanks, -Jim Stapleton From claudiu.vasadi at gmail.com Tue Sep 1 13:53:06 2009 From: claudiu.vasadi at gmail.com (claudiu vasadi) Date: Tue Sep 1 13:53:13 2009 Subject: ifconfig -alias - removed wrong ip ? Message-ID: <4f760c6a0909010620u691e4e0et9e5d624443cc2a8f@mail.gmail.com> Hello guys, I have a 7.2-stable Freebsd running on a 2.66 Ghz 478 socket mobo with 1 GB DDR1 ram. I added another ip on my rl0 interface, brought it up, everything was fine (until i screwed it up :( ). I wanted then to remove the alias IP but i wrote a wrong command (ifconfig rl0 -alias) and since then I have no access to the box. I then turned to my vmware FreeBSD to reproduce the situation and I was stuned to find out that that command I wrote, removes the "normal" IP and not the alias one. OK, normaly (I think) i should be able to connect to the alias IP..... well, It's not the case 2 things here: 1.) Is it normal for the ifconfig rl0 -alias to remove the "normal" IP and not the alias one ? (I think that by this syntax it could be right but the parameter "-alias" is specified and the OS should know to remove the alias IP and not the normal IP) 2) I dnt really understand why am I not able to connect to the second (alias) ip? It seems that somehow it's dependant to the "normal" one I must say I was not really reading the handbook for the 2nd point here.... will do it now though PS: box is 3 countryes away from me so manual intervention is out of the question (although I have some sort of online-suport (If my 73 years old grandmother can be called that :)) ) ) From jerrymc at msu.edu Tue Sep 1 14:10:00 2009 From: jerrymc at msu.edu (Jerry McAllister) Date: Tue Sep 1 14:10:09 2009 Subject: questions about FreeBSD In-Reply-To: <200909010841.00940.j.mckeown@ru.ac.za> References: <20090831150007.GF47604@gizmo.acns.msu.edu> <200909010841.00940.j.mckeown@ru.ac.za> Message-ID: <20090901140603.GA53302@gizmo.acns.msu.edu> On Tue, Sep 01, 2009 at 08:41:00AM +0200, Jonathan McKeown wrote: > On Monday 31 August 2009 17:00:07 Jerry McAllister wrote: > > Same response. ? Do your homework. > > The nature of the OP's questions strongly suggested that we are doing his > homework. I'm surprised so many people spoonfed the answers rather than > pointing to resources like the handbook, as the first responder did. I and several others did both. Since this list is best when it is friendly, it seemed well to add some encouragement in the form of pointers. Good teachers give both clues as well as piont to sources. ////jerry > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > From bf1783 at googlemail.com Tue Sep 1 14:39:28 2009 From: bf1783 at googlemail.com (b. f.) Date: Tue Sep 1 14:39:35 2009 Subject: Fwd: 32 bit ports on an AMD64 system In-Reply-To: References: <80f4f2b20909010644j7962dc4cub71e725d083072ef@mail.gmail.com> Message-ID: >So, make/build/run a normal jail using the 64 bit os "world", add -m32 >to the make.conf CFLAGS and CXXFLAGS, build stuff in the jail, and >copy it to main (non-jailed) system, and run ldconfig on the library >directories? I'd probably also change PREFIX/LOCALBASE to prevent the >files from the ports from colling with the base system files when I >copy them over. Well, this would certainly help with building the ports safely. But I think we -- at least I was -- were thinking that you would actually leave them in the jail, and run them from the jailed environment, so there would be fewer run-time problems, and no work to transfer them over. Remember that you've got to ensure that there is no problem with run-time linking of shared libraries, some of which (in your current scheme) will have both 32-bit and 64-bit versions with the same soname. You can probably work around this problem as well, but it seems easier to leave them in the jail. b. From amvandemore at gmail.com Tue Sep 1 14:49:09 2009 From: amvandemore at gmail.com (Adam Vande More) Date: Tue Sep 1 14:49:15 2009 Subject: ifconfig -alias - removed wrong ip ? In-Reply-To: <4f760c6a0909010620u691e4e0et9e5d624443cc2a8f@mail.gmail.com> References: <4f760c6a0909010620u691e4e0et9e5d624443cc2a8f@mail.gmail.com> Message-ID: <6201873e0909010749m359888eby25e8d3aae9e1d36d@mail.gmail.com> On Tue, Sep 1, 2009 at 8:20 AM, claudiu vasadi wrote: > Hello guys, > > > I have a 7.2-stable Freebsd running on a 2.66 Ghz 478 socket mobo with 1 GB > DDR1 ram. > > I added another ip on my rl0 interface, brought it up, everything was fine > (until i screwed it up :( ). I wanted then to remove the alias IP but i > wrote a wrong command (ifconfig rl0 -alias) and since then I have no access > to the box. I then turned to my vmware FreeBSD to reproduce the situation > and I was stuned to find out that that command I wrote, removes the > "normal" > IP and not the alias one. OK, normaly (I think) i should be able to connect > to the alias IP..... well, It's not the case > > > 2 things here: > > 1.) Is it normal for the ifconfig rl0 -alias to remove the "normal" IP and > not the alias one ? (I think that by this syntax it could be right but the > parameter "-alias" is specified and the OS should know to remove the alias > IP and not the normal IP) > Yes > 2) I dnt really understand why am I not able to connect to the second > (alias) ip? It seems that somehow it's dependant to the "normal" one > Yup, you need to re-init networking to regain access. > > > I must say I was not really reading the handbook for the 2nd point here.... > will do it now though > > > > PS: box is 3 countryes away from me so manual intervention is out of the > question (although I have some sort of online-suport (If my 73 years old > grandmother can be called that :)) ) ) > probably easiest thing to do is have her reboot. Of course you can also have her type /etc/rc.d/netif restart assuming your /etc/rc.conf is set correctly. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > -- Adam Vande More From stapleton.41 at gmail.com Tue Sep 1 15:04:18 2009 From: stapleton.41 at gmail.com (Jim) Date: Tue Sep 1 15:04:25 2009 Subject: 32 bit ports on an AMD64 system In-Reply-To: References: <80f4f2b20909010644j7962dc4cub71e725d083072ef@mail.gmail.com> Message-ID: <80f4f2b20909010804s44b8f6bbpbae589eafe3022ef@mail.gmail.com> > Well, this would certainly help with building the ports safely. But I > think we -- at least I was -- were thinking that you would actually > leave them in the jail, and run them from the jailed environment, so > there would be fewer run-time problems, and no work to transfer them > over. Remember that you've got to ensure that there is no problem > with run-time linking of shared libraries, some of which (in your > current scheme) will have both 32-bit and 64-bit versions with the > same soname. You can probably work around this problem as well, but > it seems easier to leave them in the jail. > With only console stuff, that'd probably be fine, a jail wouldn't be much more tedious than the environment shuffling I'd need to run the 32 bit stuff, however I'll want to do some X11 stuff.. I know you can access X between different users on a machine, but can a jail'ed shell open a window on an X server running from the main machine? I'm not even sure what terms I would use for searching on how to get that working. Thanks, -Jim Stapleton From nvass9573 at gmx.com Tue Sep 1 15:42:32 2009 From: nvass9573 at gmx.com (Nikos Vassiliadis) Date: Tue Sep 1 15:42:39 2009 Subject: ifconfig -alias - removed wrong ip ? In-Reply-To: <6201873e0909010749m359888eby25e8d3aae9e1d36d@mail.gmail.com> References: <4f760c6a0909010620u691e4e0et9e5d624443cc2a8f@mail.gmail.com> <6201873e0909010749m359888eby25e8d3aae9e1d36d@mail.gmail.com> Message-ID: <4A9D40D3.3060308@gmx.com> Adam Vande More wrote: > On Tue, Sep 1, 2009 at 8:20 AM, claudiu vasadi wrote: >> 1.) Is it normal for the ifconfig rl0 -alias to remove the "normal" IP and >> not the alias one ? (I think that by this syntax it could be right but the >> parameter "-alias" is specified and the OS should know to remove the alias >> IP and not the normal IP) >> > Yes Yes, there is no difference between "normal" and alias IP. alias is the keyword used by the ifconfig utility to add an other IP address to an interface. All IP addresses bound to an interface are equivalent, I mean there is any hierarchy of importance of the addresses. "ifconfig int0 -alias" just happens to remove the first IP address. You really should use "ifconfig int0 delete 192.168.0.1" >> 2) I dnt really understand why am I not able to connect to the second >> (alias) ip? It seems that somehow it's dependant to the "normal" one >> > Yup, you need to re-init networking to regain access. Most probably, you rendered the default gateway unreachable with the removal of the IP. Nikos From rsmith at xs4all.nl Tue Sep 1 15:51:01 2009 From: rsmith at xs4all.nl (Roland Smith) Date: Tue Sep 1 15:51:08 2009 Subject: 32 bit ports on an AMD64 system In-Reply-To: <80f4f2b20909010644j7962dc4cub71e725d083072ef@mail.gmail.com> References: <80f4f2b20909010644j7962dc4cub71e725d083072ef@mail.gmail.com> Message-ID: <20090901155059.GA56945@slackbox.xs4all.nl> On Tue, Sep 01, 2009 at 09:44:10AM -0400, Jim wrote: > > First, I hope that you have a good reason for doing this, because it > > is going to be a PITA, and prone to all sorts of problems. [...] > > Unfortunately I do. The 32 bit stuff is *would be really nice, but not > necessary*, but the ability to use extra memory *and* dynamically load > kernel modules is a bit more important to me. All FreeBSD supported platforms can dynamically load native kernel modules, so why should that be a factor in choosing between i386 and amd64? 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) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090901/8d3d360a/attachment.pgp From jeremyhooks at googlemail.com Tue Sep 1 16:18:24 2009 From: jeremyhooks at googlemail.com (Jeremy Hooks) Date: Tue Sep 1 16:18:31 2009 Subject: questions about FreeBSD In-Reply-To: <159170.69145.qm@web65505.mail.ac4.yahoo.com> References: <20090831120031.3591A10656C0@hub.freebsd.org> <159170.69145.qm@web65505.mail.ac4.yahoo.com> Message-ID: 2009/8/31 James Phillips : ... >> I have some questions about FreeBSD. The questions I had in >> mind are: > > Such general questions imply "homework assignment." Indeed, I found "General features (at least three)? Firewall, GUI, Networking and so on." quite amusing. I am surprised he didn't include the marking scheme for us and his teacher's email address so that we could save him the bother of handing it in. > Somebody already replied with a link to the Handbook: It mainly covers installing and configuring FreeBSD. If that were the only response, he probably would have just printed the handbook out and handed it in - given the amount of effort he took to hide the fact that it was a home work question. That said, he *might* actually learn something about FreeBSD, which is probably more than can be said for the rest of his class. From knunke85 at gmail.com Tue Sep 1 16:33:05 2009 From: knunke85 at gmail.com (knunke) Date: Tue Sep 1 16:33:13 2009 Subject: Interrupt storm detected on "irq10:"; throttling interrupt source In-Reply-To: <9af66ccb0810151744m6dc9176cxcadecae2939ee05f@mail.gmail.com> References: <9af66ccb0810151744m6dc9176cxcadecae2939ee05f@mail.gmail.com> Message-ID: <25243620.post@talk.nabble.com> I'm having the same issue. It's FreeBSD on a Nokia530 Firewall. The message that keeps repeating over and over is "interrupt storm detected on "irq12:"; throttling interrupt source". Here's the vmstat -i interrupt total rate irq0: clk 31362 98 irq4: sio0 21362 67 irq6: cbb1 dc1 dc2 1 0 irq8: rtc 40020 126 irq11: dc4 dc7+ 1 0 irq12: cbb0 dc5 28456 89 irq14: ata0 32073 101 Total 153275 483 I have no idea what the + means next to IRQ11. I know of a couple of people that have this problem as well. Let me know if you need any other information. Thanks, Kurt Nunke nazir-2 wrote: > > Hi, > > I'm getting these on my HP-DL165 AMD Quad Qore > > interrupt storm detected on "irq10:"; throttling interrupt source > interrupt storm detected on "irq10:"; throttling interrupt source > interrupt storm detected on "irq10:"; throttling interrupt source > interrupt storm detected on "irq10:"; throttling interrupt source > > # uname -a > FreeBSD intra.umt 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 > 10:35:36 UTC 2008 > root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 > > # sysctl hw.model > hw.model: Quad-Core AMD Opteron(tm) Processor 2352 > > please advise ...TQ > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > -- View this message in context: http://www.nabble.com/Interrupt-storm-detected-on-%22irq10%3A%22--throttling-interrupt-source-tp20005328p25243620.html Sent from the freebsd-questions mailing list archive at Nabble.com. From stapleton.41 at gmail.com Tue Sep 1 16:40:40 2009 From: stapleton.41 at gmail.com (Jim) Date: Tue Sep 1 16:40:48 2009 Subject: 32 bit ports on an AMD64 system In-Reply-To: <20090901155059.GA56945@slackbox.xs4all.nl> References: <80f4f2b20909010644j7962dc4cub71e725d083072ef@mail.gmail.com> <20090901155059.GA56945@slackbox.xs4all.nl> Message-ID: <80f4f2b20909010940u460a7b81r6372f48690ac1246@mail.gmail.com> >> [...] but the ability to use extra memory *and* dynamically load >> kernel modules is a bit more important to me. > > All FreeBSD supported platforms can dynamically load native kernel modules, so > why should that be a factor in choosing between i386 and amd64? > > Roland I didn't specify just loading modules, but extra memory as well (the beyond 4GB addressable space). Using the options in i386 that allow you to access memory beyond 4GB, also eliminates the ability to dynamically load kernel modules. -Jim Stapleton From rsmith at xs4all.nl Tue Sep 1 16:50:08 2009 From: rsmith at xs4all.nl (Roland Smith) Date: Tue Sep 1 16:50:15 2009 Subject: 32 bit ports on an AMD64 system In-Reply-To: <80f4f2b20909010649i369ebfbao428fd8450ea48c26@mail.gmail.com> References: <80f4f2b20908310628p5129acc1qdb98311136bb716e@mail.gmail.com> <20090831163334.GA18945@slackbox.xs4all.nl> <44zl9f27fr.fsf@be-well.ilk.org> <80f4f2b20909010649i369ebfbao428fd8450ea48c26@mail.gmail.com> Message-ID: <20090901165006.GB56945@slackbox.xs4all.nl> On Tue, Sep 01, 2009 at 09:49:47AM -0400, Jim wrote: > > Also note that it is possible to have an i386 port-building jail on an > > amd64 system. > > > So, make/build/run a normal jail using the 64 bit os "world", add -m32 > to the make.conf CFLAGS and CXXFLAGS, build stuff in the jail, and > copy it to main (non-jailed) system, and run ldconfig on the library > directories? I'd probably also change PREFIX/LOCALBASE to prevent the > files from the ports from colling with the base system files when I > copy them over. The following post gives some more explanation. Essentially you're doing a cross-build: http://en.jnlin.org/2008/06/07/12/ 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) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090901/1e09784f/attachment.pgp From bf1783 at googlemail.com Tue Sep 1 17:39:42 2009 From: bf1783 at googlemail.com (b. f.) Date: Tue Sep 1 17:39:49 2009 Subject: 32 bit ports on an AMD64 system In-Reply-To: <80f4f2b20909010940u460a7b81r6372f48690ac1246@mail.gmail.com> References: <80f4f2b20909010644j7962dc4cub71e725d083072ef@mail.gmail.com> <20090901155059.GA56945@slackbox.xs4all.nl> <80f4f2b20909010940u460a7b81r6372f48690ac1246@mail.gmail.com> Message-ID: You've given some of your reasons for using amd64 -- but are your reasons for using 32-bit binaries on amd64 strong enough to make all of this worthwhile? Why not just use 64-bit binaries for all but the 32-bit-only ports? Sure, some 32-bit applications will actually run faster (the opposite is also often true) or use fewer resources, but is it worth the hassle? As for your earlier question, I haven't used multiple instances of X myself, either in or out of jails, but I have seen reports of others doing so, so I think it is possible, except perhaps in a few cases where hardware balks because the graphics driver isn't good enough. I guess you'll have to make some experiments. If you don't make provisions for running a 32-bit X, then is there much point to having, for example, 32-bit window managers, windowing toolkits, or GUIs? If you use a different LOCALBASE for 32-bit ports, you are going to have to use 32-bit versions of most trunk and branch ports. I still think a jail is your best bet -- after all, a "thin" jail, which reuses those portions of your system that don't need to be different inside the jail, is just a more thorough version of what you had hoped to accomplish with your 32-bit shell scripts. If you don't use a jail ... well, I have not tried to install a large number of 32-bit and 64-bit ports in parallel, so I am not sure if the default setup for our loader will make the appropriate distinctions between 32-bit and 64-bit versions of the same libraries depending upon the executables or libraries that need them, but I think that there is a good chance that it will not, and that you will have to do some extra work to make sure that it does. In the case that it does not, your only alternative is to either patch a large number of ports (very time-consuming and error-prone), or to add loader environment variables to your 32-bit shell scripts to make the loader look in the 32-bit library directories first, or to write a custom loader script to only load the appropriate libraries depending upon whether the executable or library that needs them is 32-bit or 64-bit. It would be nice to have this flexibility, but given the current state of the base system and infrastructure, it just seems like more trouble than it is worth. b. On 9/1/09, Jim wrote: >>> [...] but the ability to use extra memory *and* dynamically load >>> kernel modules is a bit more important to me. >> >> All FreeBSD supported platforms can dynamically load native kernel >> modules, so >> why should that be a factor in choosing between i386 and amd64? >> >> Roland > > I didn't specify just loading modules, but extra memory as well (the > beyond 4GB addressable space). Using the options in i386 that allow > you to access memory beyond 4GB, also eliminates the ability to > dynamically load kernel modules. > > -Jim Stapleton > From kingedgar at gmail.com Tue Sep 1 17:43:15 2009 From: kingedgar at gmail.com (Jason Garrett) Date: Tue Sep 1 17:43:21 2009 Subject: Boot from RAIDZ in 8.0-BETA3? In-Reply-To: <9e20d71e0909010054k66410ab7y207939e82705fc8f@mail.gmail.com> References: <4A99D308.6000806@polands.org> <9e20d71e0909010054k66410ab7y207939e82705fc8f@mail.gmail.com> Message-ID: <970380130909011043n3340f9b0k2cec2b0b58f6f414@mail.gmail.com> IMHO, unless you have a NEED to do this with the 8-BETA's I would not attempt. While I had this working in 8.0-BETA1 upon reboot I would loose data from entire mountpoints on the root pool. First it was /usr/ports, not a big deal. Then it was /var/db/pkg.. the system had no idea what was installed and what wasn't. This was a test machine, so no harm, no foul. I would definatley not recommend this AT ALL. Just my 2 cents, YMMV, etc. From bf1783 at googlemail.com Tue Sep 1 18:04:41 2009 From: bf1783 at googlemail.com (b. f.) Date: Tue Sep 1 18:04:48 2009 Subject: 32 bit ports on an AMD64 system In-Reply-To: References: <80f4f2b20909010644j7962dc4cub71e725d083072ef@mail.gmail.com> <20090901155059.GA56945@slackbox.xs4all.nl> <80f4f2b20909010940u460a7b81r6372f48690ac1246@mail.gmail.com> Message-ID: On 9/1/09, b. f. wrote: >. If you > don't use a jail ... well, I have not tried to install a large number > of 32-bit and 64-bit ports in parallel, so I am not sure if the > default setup for our loader will make the appropriate distinctions > between 32-bit and 64-bit versions of the same libraries depending > upon the executables or libraries that need them, but I think that > there is a good chance that it will not, and that you will have to do > some extra work to make sure that it does. In the case that it does > not, your only alternative is to either patch a large number of ports > (very time-consuming and error-prone), or to add loader environment > variables to your 32-bit shell scripts to make the loader look in the > 32-bit library directories first, or to write a custom loader script > to only load the appropriate libraries depending upon whether the > executable or library that needs them is 32-bit or 64-bit. It would Ok, so maybe I was a bit too pessimistic here, and the framework that is already in place to handle the 32-bit-only ports will suffice to deal with the case of parallel installs of 32-bit and 64-bit ports libraries as well, provided that ldconfig is invoked with the proper options when registering the libraries, so that the right hints are available, and the ports are built properly. If you are content to use 32-bit binaries on top of a 64-bit base system, try it out on a test case first -- some of the diagnostic environment variables listed in rtld(1) may help, along with ldd(1). It still seems like more trouble than it is worth to me, though. b. From pschmehl_lists at tx.rr.com Tue Sep 1 18:32:14 2009 From: pschmehl_lists at tx.rr.com (Paul Schmehl) Date: Tue Sep 1 18:32:20 2009 Subject: remove newlines from a file Message-ID: I found a sed tutorial once that did this, but I can't seem to find it again. I have a file with multiple lines, each of which contains a single ip followed by a /32 and a comma. I want to combine all those lines into a single line by removing all the newline characters at the end of each line. What's the best/most efficient way of doing that in a shell? -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. ******************************************* "It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead." Thomas Jefferson From mak at kolybabi.com Tue Sep 1 18:55:40 2009 From: mak at kolybabi.com (Mak Kolybabi) Date: Tue Sep 1 18:55:46 2009 Subject: remove newlines from a file In-Reply-To: References: Message-ID: <20090901185537.GA25956@brisbane.nepharia.org> On 2009-09-01 18:03, Paul Schmehl wrote: > I found a sed tutorial once that did this, but I can't seem to find it > again. I have a file with multiple lines, each of which contains a single > ip followed by a /32 and a comma. I want to combine all those lines into a > single line by removing all the newline characters at the end of each line. > > What's the best/most efficient way of doing that in a shell? Personally, I'd use: % tr -d '\n' < inputfile -- Matthew Anthony Kolybabi (Mak) () ASCII Ribbon Campaign | Against HTML e-mail /\ www.asciiribbon.org | Against proprietary extensions From bf1783 at googlemail.com Tue Sep 1 18:57:57 2009 From: bf1783 at googlemail.com (b. f.) Date: Tue Sep 1 18:58:04 2009 Subject: remove newlines from a file Message-ID: Paul Schmehl wrote: >I found a sed tutorial once that did this, but I can't seem to find it again. >I have a file with multiple lines, each of which contains a single ip followed >by a /32 and a comma. I want to combine all those lines into a single line by >removing all the newline characters at the end of each line. > >What's the best/most efficient way of doing that in a shell? paste(1)? b. From rjgonzale at estrads.com.ar Tue Sep 1 19:05:48 2009 From: rjgonzale at estrads.com.ar (Rodrigo Gonzalez) Date: Tue Sep 1 19:05:55 2009 Subject: remove newlines from a file In-Reply-To: References: Message-ID: <4A9D6A42.1010700@estrads.com.ar> On 09/01/2009 03:03 PM, Paul Schmehl wrote: > I found a sed tutorial once that did this, but I can't seem to find it > again. I have a file with multiple lines, each of which contains a > single ip followed by a /32 and a comma. I want to combine all those > lines into a single line by removing all the newline characters at the > end of each line. > > What's the best/most efficient way of doing that in a shell? > A simple solution could be using tr command tr -d '\012' < file > output_file From lists at bertram-scharpf.de Tue Sep 1 19:27:49 2009 From: lists at bertram-scharpf.de (Bertram Scharpf) Date: Tue Sep 1 19:27:57 2009 Subject: remove newlines from a file In-Reply-To: References: Message-ID: <20090901192747.GA18222@marge.bs.l> Hi, Am Dienstag, 01. Sep 2009, 18:03:19 +0000 schrieb Paul Schmehl: > I found a sed tutorial once that did this, but I can't seem to find it > again. I have a file with multiple lines, each of which contains a single > ip followed by a /32 and a comma. I want to combine all those lines into a > single line by removing all the newline characters at the end of each line. > > What's the best/most efficient way of doing that in a shell? Probably this: $ echo `cat ip-file` $ ipline=`cat ip-file` $ echo $ipline | wc -l Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de From dboner at aogsquid.ucsd.edu Tue Sep 1 19:28:10 2009 From: dboner at aogsquid.ucsd.edu (David Horwitt) Date: Tue Sep 1 19:28:23 2009 Subject: netbooks and sdhci Message-ID: <4A9D7336.3050909@aogsquid.ucsd.edu> I recently purchased an Asus Aspire One D250-1151, and am,overall, pleased with it (running 7,2-RELEASE). The alc ethernet is not supported in 7.2 (the ath0 wireless is), and I don't care about the video camera. The '5-in-1' media reader is, unfortunately for me, a USB device. (After some detective work, I determined that it uses a Reaktek RTS5101 or RTS5111). For my purposes (low level SDHC card access), I prefer hardware that is supported by the sdhci/mmc subsystem. So my question is: does anybody know _for sure_ of a hard-disk netbook with a media reader that uses the sdhci interface and is supported by FBSD 7.2 (supported = wireless,X,USB). $USD300 (like the AA1-D250) is the desired price point, but up to about $USD400 is OK (as is FBSD 8.0, if the hardware is right). If you have any pointers, please include the sub-model information, because if it's anything like the Asus, the hardware varies all over the place, and 'Aspire One' means less than 'D250' or 'AO150'. Thank you, David From pschmehl_lists at tx.rr.com Tue Sep 1 20:04:45 2009 From: pschmehl_lists at tx.rr.com (Paul Schmehl) Date: Tue Sep 1 20:04:52 2009 Subject: remove newlines from a file In-Reply-To: <20090901185537.GA25956@brisbane.nepharia.org> References: <20090901185537.GA25956@brisbane.nepharia.org> Message-ID: <744B6E6B195D8FF529A9281F@utd65257.utdallas.edu> --On Tuesday, September 01, 2009 13:55:37 -0500 Mak Kolybabi wrote: > > On 2009-09-01 18:03, Paul Schmehl wrote: >> I found a sed tutorial once that did this, but I can't seem to find it >> again. I have a file with multiple lines, each of which contains a single >> ip followed by a /32 and a comma. I want to combine all those lines into a >> single line by removing all the newline characters at the end of each line. >> >> What's the best/most efficient way of doing that in a shell? > > Personally, I'd use: > % tr -d '\n' < inputfile Personally, I like your solution. :-) -- Paul Schmehl, Senior Infosec Analyst As if it wasn't already obvious, my opinions are my own and not those of my employer. ******************************************* "It is as useless to argue with those who have renounced the use of reason as to administer medication to the dead." Thomas Jefferson From peo at intersonic.se Tue Sep 1 20:13:27 2009 From: peo at intersonic.se (Per olof Ljungmark) Date: Tue Sep 1 20:13:39 2009 Subject: memory usage displsy Message-ID: <4A9D8057.8020307@intersonic.se> Hello, What is a good way to find out how memory is used? Have a 6.4 box where memory is used by something but I fail to see what is using it - tried different switches to ps(1), tried the stat tools but a big chunk of memory does not show at all. A proper tool for analyzing memory usage "live", this is a production box? Thanks, From wmoran at potentialtech.com Tue Sep 1 20:29:33 2009 From: wmoran at potentialtech.com (Bill Moran) Date: Tue Sep 1 20:29:42 2009 Subject: memory usage displsy In-Reply-To: <4A9D8057.8020307@intersonic.se> References: <4A9D8057.8020307@intersonic.se> Message-ID: <20090901162931.d85ec256.wmoran@potentialtech.com> In response to Per olof Ljungmark : > > What is a good way to find out how memory is used? Have a 6.4 box where > memory is used by something but I fail to see what is using it - tried > different switches to ps(1), tried the stat tools but a big chunk of > memory does not show at all. > > A proper tool for analyzing memory usage "live", this is a production box? I've always been able to get what I need from top. You can do -o res to sort by resident memory usage, which helps. -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/ From dnelson at allantgroup.com Tue Sep 1 20:41:49 2009 From: dnelson at allantgroup.com (Dan Nelson) Date: Tue Sep 1 20:41:56 2009 Subject: memory usage displsy In-Reply-To: <20090901162931.d85ec256.wmoran@potentialtech.com> References: <4A9D8057.8020307@intersonic.se> <20090901162931.d85ec256.wmoran@potentialtech.com> Message-ID: <20090901204147.GC2855@dan.emsphone.com> In the last episode (Sep 01), Bill Moran said: > In response to Per olof Ljungmark : > > What is a good way to find out how memory is used? Have a 6.4 box where > > memory is used by something but I fail to see what is using it - tried > > different switches to ps(1), tried the stat tools but a big chunk of > > memory does not show at all. > > > > A proper tool for analyzing memory usage "live", this is a production > > box? > > I've always been able to get what I need from top. You can do -o res to > sort by resident memory usage, which helps. ps will sort by memory usage when given the -m flag. Also check ipcs -a to see if there are any sysv shared memory segments hanging arnound. If you don't see anything using the memory, where are you seeing that "something" is using it? -- Dan Nelson dnelson@allantgroup.com From jerrymc at msu.edu Tue Sep 1 20:45:53 2009 From: jerrymc at msu.edu (Jerry McAllister) Date: Tue Sep 1 20:46:00 2009 Subject: remove newlines from a file In-Reply-To: References: Message-ID: <20090901201454.GA54479@gizmo.acns.msu.edu> On Tue, Sep 01, 2009 at 06:03:19PM +0000, Paul Schmehl wrote: > I found a sed tutorial once that did this, but I can't seem to find it > again. I have a file with multiple lines, each of which contains a single > ip followed by a /32 and a comma. I want to combine all those lines into a > single line by removing all the newline characters at the end of each line. > > What's the best/most efficient way of doing that in a shell? Use tr(1) something like tr -d "[\n]" < inputfile > outputfile ////jerry > > -- > Paul Schmehl, Senior Infosec Analyst > As if it wasn't already obvious, my opinions > are my own and not those of my employer. > ******************************************* > "It is as useless to argue with those who have > renounced the use of reason as to administer > medication to the dead." Thomas Jefferson > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" From freebsd at optimis.net Tue Sep 1 20:51:58 2009 From: freebsd at optimis.net (George Davidovich) Date: Tue Sep 1 20:52:05 2009 Subject: remove newlines from a file In-Reply-To: References: Message-ID: <20090901205201.GA6126@marvin.optimis.net> On Tue, Sep 01, 2009 at 06:03:19PM +0000, Paul Schmehl wrote: > I found a sed tutorial once that did this, but I can't seem to find it > again. You're probably thinking of "Useful One-Line Scripts for Sed": http://sed.sourceforge.net/sed1line.txt A good follow-up: http://www.osnews.com/story/21004/Awk_and_Sed_One-Liners_Explained > I have a file with multiple lines, each of which contains a single ip > followed by a /32 and a comma. I want to combine all those lines into > a single line by removing all the newline characters at the end of > each line. > > What's the best/most efficient way of doing that in a shell? A sed solution would be sed -e :a -e '$!N; s/\n/ /; ta' my_file Other (easier to remember) solutions could include: tr -d '\n' < my_file tr '\n' ' ' < my_file echo $(cat my_file) # not so useless use of cat! paste -s my_file while read line; do joined="$joined $(echo $line)" done < my_file echo $joined Lots of options, of course. Even more with Perl. -- George From peo at intersonic.se Tue Sep 1 20:53:36 2009 From: peo at intersonic.se (Per olof Ljungmark) Date: Tue Sep 1 20:53:42 2009 Subject: memory usage displsy In-Reply-To: <20090901162931.d85ec256.wmoran@potentialtech.com> References: <4A9D8057.8020307@intersonic.se> <20090901162931.d85ec256.wmoran@potentialtech.com> Message-ID: <4A9D89CB.6060206@intersonic.se> Bill Moran wrote: > In response to Per olof Ljungmark : >> What is a good way to find out how memory is used? Have a 6.4 box where >> memory is used by something but I fail to see what is using it - tried >> different switches to ps(1), tried the stat tools but a big chunk of >> memory does not show at all. >> >> A proper tool for analyzing memory usage "live", this is a production box? > > I've always been able to get what I need from top. You can do -o res to > sort by resident memory usage, which helps. > Well, my problem is that if I add up all I *can* see in top or ps it never gets near the by now 3G plus memory shown as "Active". Maybe one gig is accounted for, From mdc at prgmr.com Tue Sep 1 21:19:27 2009 From: mdc at prgmr.com (Michael David Crawford) Date: Tue Sep 1 21:19:34 2009 Subject: memory usage displsy In-Reply-To: <4A9D89CB.6060206@intersonic.se> References: <4A9D8057.8020307@intersonic.se> <20090901162931.d85ec256.wmoran@potentialtech.com> <4A9D89CB.6060206@intersonic.se> Message-ID: <4A9D8FDB.9040908@prgmr.com> Per olof Ljungmark wrote: > Well, my problem is that if I add up all I *can* see in top or ps it > never gets near the by now 3G plus memory shown as "Active". Maybe one > gig is accounted for, I'm not that familiar with FreeBSD yet, but the kernel uses memory which might not be charged against any process. For example, to map some virtual memory requires memory to store the mappings in. Open files have kernel structures, as do filesystems. If top or ps were only to show userspace memory allocations, then you're right, a lot of memory would be unaccounted for. Mike -- Michael David Crawford mdc@prgmr.com prgmr.com - We Don't Assume You Are Stupid. Xen-Powered Virtual Private Servers: http://prgmr.com/xen From merfi_75 at bk.ru Tue Sep 1 22:09:13 2009 From: merfi_75 at bk.ru (=?koi8-r?Q?=E1=CC=C5=CB=D3=C5=CA_=ED=C9=C8=C1=CA=CC=CF=D7=C9=DE?=) Date: Tue Sep 1 22:17:54 2009 Subject: I want install qutim Message-ID: HI! My name is Alex I want install qutim , but he request: Found qt4-designer-4.4.1, but you need to upgrade to qt4-designer>=4.5.2. I tried install Qt 4.5.2 and recive errror installation Qt 4.5.2 on FreeBSD uname -a: 6.4-RELEASE FreeBSD 6.4-RELEASE #0: Wed Nov 26 11:43:51 UTC 2008 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 archive name for installation: qt-x11-opensource-src-4.5.2.tar.gz my action : tar -xvf qt-x11-opensource-src-4.5.2 cd qt-x11-opensource-src-4.5.2 ./configure ./configure Which edition of Qt do you want to use ? Type 'c' if you want to use the Commercial Edition. Type 'o' if you want to use the Open Source Edition. o This is the Qt/X11 Open Source Edition. You are licensed to use this software under the terms of the GNU General Public License (GPL) versions 3. You are also licensed to use this software under the terms of the Lesser GNU General Public License (LGPL) versions 2.1. Type '3' to view the GNU General Public License version 3. Type 'L' to view the Lesser GNU General Public License version 2.1. Type 'yes' to accept this license offer. Type 'no' to decline this license offer. Do you accept the terms of either license? yes ................................................... ................................................... Qt is now configured for building. Just run 'gmake'. Once everything is built, you must run 'gmake install'. Qt will be installed into /usr/local/Trolltech/Qt-4.5.2 To reconfigure, run 'gmake confclean' and 'configure'. I type # gmake ........................................................ ........................................................ In file included from ../../include/QtGui/private/qfont_p.h:1, from ../../include/QtGui/private/../../../src/gui/text/qfontengineglyphcache_p.h:60, from ../../include/QtGui/private/qfontengineglyphcache_p.h:1, from ../../include/QtGui/private/../../../src/gui/painting/qtextureglyphcache_p.h:61, from ../../include/QtGui/private/qtextureglyphcache_p.h:1, from ../../include/QtGui/private/../../../src/gui/painting/qpaintengine_raster_p.h:64, from ../../include/QtGui/private/qpaintengine_raster_p.h:1, from ../../include/QtGui/private/../../../src/gui/painting/qdrawhelper_mmx_p.h:58, from ../../include/QtGui/private/qdrawhelper_mmx_p.h:1, from painting/qdrawhelper_mmx.cpp:46: ../../include/QtGui/private/../../../src/gui/text/qfont_p.h:149: error: `ScriptCount' is not a member of `QUnicodeTables' I want install qutim , but he request: Found qt4-designer-4.4.1, but you need to upgrade to qt4-designer>=4.5.2. Help me please! From cristea.razvan at yahoo.com Tue Sep 1 22:29:11 2009 From: cristea.razvan at yahoo.com (Razvan Cristea) Date: Tue Sep 1 22:29:18 2009 Subject: webserver and natd Message-ID: <899670.61058.qm@web57505.mail.re1.yahoo.com> Hello, ? i have a webserver useing freebsd 7.2 and i user the same server to route internet to?a local network. the internet on the local network is working fine but the sites from the webserver are loading verry slow. ? i fave this configuration in rc.conf: ? firewall_enable="YES" firewall_type="open" firewall_logging="YES" gateway_enable="YES" natd_enable="YES" natd_interface="bce0" ? Can you please help me? Cu prietenie, Razvan Cristea ===================== http://www.adventube.ro ===================== From steve at ibctech.ca Tue Sep 1 22:35:22 2009 From: steve at ibctech.ca (Steve Bertrand) Date: Tue Sep 1 22:35:29 2009 Subject: remove newlines from a file In-Reply-To: <20090901205201.GA6126@marvin.optimis.net> References: <20090901205201.GA6126@marvin.optimis.net> Message-ID: <4A9DA1AB.8020102@ibctech.ca> George Davidovich wrote: > On Tue, Sep 01, 2009 at 06:03:19PM +0000, Paul Schmehl wrote: >> I found a sed tutorial once that did this, but I can't seem to find it >> again. > > You're probably thinking of "Useful One-Line Scripts for Sed": > > http://sed.sourceforge.net/sed1line.txt > > A good follow-up: > > http://www.osnews.com/story/21004/Awk_and_Sed_One-Liners_Explained > >> I have a file with multiple lines, each of which contains a single ip >> followed by a /32 and a comma. I want to combine all those lines into >> a single line by removing all the newline characters at the end of >> each line. >> >> What's the best/most efficient way of doing that in a shell? > > A sed solution would be > > sed -e :a -e '$!N; s/\n/ /; ta' my_file > > Other (easier to remember) solutions could include: > > tr -d '\n' < my_file > tr '\n' ' ' < my_file > > echo $(cat my_file) # not so useless use of cat! > > paste -s my_file > > while read line; do > joined="$joined $(echo $line)" > done < my_file > echo $joined > > Lots of options, of course. Even more with Perl. Yeah, how 'bout Perl: % perl -ne 's/\n/ /g; print;' < tests/ips.txt :) Steve -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3233 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090901/ea0cb251/smime.bin From steve at ibctech.ca Tue Sep 1 22:39:35 2009 From: steve at ibctech.ca (Steve Bertrand) Date: Tue Sep 1 22:39:42 2009 Subject: webserver and natd In-Reply-To: <899670.61058.qm@web57505.mail.re1.yahoo.com> References: <899670.61058.qm@web57505.mail.re1.yahoo.com> Message-ID: <4A9DA2A9.6020507@ibctech.ca> Razvan Cristea wrote: > Hello, > > i have a webserver useing freebsd 7.2 and i user the same server to route internet to a local network. > the internet on the local network is working fine but the sites from the webserver are loading verry slow. > > i fave this configuration in rc.conf: > > firewall_enable="YES" > firewall_type="open" > firewall_logging="YES" > gateway_enable="YES" > natd_enable="YES" > natd_interface="bce0" > > Can you please help me? Do you have a proper DNS name set up for the IP that the web server is running on? How are you accessing the web server... by name or IP? I'll assume that you are using Apache. What does the "ServerName" directive say? Steve -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3233 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090901/15e8be83/smime.bin From gibblertron at gmail.com Tue Sep 1 22:46:22 2009 From: gibblertron at gmail.com (patrick) Date: Tue Sep 1 22:46:29 2009 Subject: Mounting an NFS volume served by Mac OS X Message-ID: I'm wondering if anyone has had any success in mounting an NFS export from a Mac OS X machine on FreeBSD 7.2? When I try, I get: RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak The man page for exports on Mac OS X has: -sec=mechanism1:mechanism2... This option specifies one or more security mechanisms required for access to the exported directory. The security mechanisms currently supported are krb5p, krb5i, krb5, and sys. Multiple security mechanisms can be spec- ified as a colon separated list, and should be in the order of most preferred to least preferred. In the absence of this option, the security mechanism defaults to sys. My export does not specify this, so "sys" is what is being used. Not exactly sure what that means... I don't see any options in mount_nfs(8) on the FreeBSD side that has anything to do with authentication or security mechanisms... Any suggestions would be greatly appreciated! Thanks, Patrick From kurt.buff at gmail.com Tue Sep 1 22:56:32 2009 From: kurt.buff at gmail.com (Kurt Buff) Date: Tue Sep 1 22:56:40 2009 Subject: Daily security report oddity... Message-ID: I got a daily security run email from one of my machines on Monday morning, with the following entry: zmx1.zetron.com login failures: Aug 30 06:57:17 zmx1 su: BAD SU mlee to root on /dev/ttyp2 Aug 30 09:42:17 zmx1 su: BAD SU mlee to root on /dev/ttyp0 What's puzzling is that this account has been completely inactive for well over a year - this fellow is long gone, and I simply didn't clean it up - that's my bad, but that's not the puzzling part. I traced it down, and found out that he had not logged in on Sunday. The auth.log is, as you can see from the listing below, quite old. The entries referenced above are from two years ago. zmx1# ll /var/log/a* -rw------- 1 root wheel 71845 Sep 1 15:42 /var/log/auth.log -rw------- 1 root wheel 6087 Aug 29 2007 /var/log/auth.log.0.bz2 -rw------- 1 root wheel 5774 Aug 12 2007 /var/log/auth.log.1.bz2 -rw------- 1 root wheel 5795 Jul 24 2007 /var/log/auth.log.2.bz2 -rw------- 1 root wheel 6813 Jul 6 2007 /var/log/auth.log.3.bz2 So, a couple of questions: Why would the daily security run pick up something from *two years ago* and only report it again today? The machine hasn't been rebooted in a very long time, if that makes a difference. Is there any way to prevent something like this happening again - or perhaps can I force the entry of the year into the date field for the auth.log entries? Kurt From Fluffy at fluffy.khv.ru Tue Sep 1 23:05:19 2009 From: Fluffy at fluffy.khv.ru (Dima Panov) Date: Tue Sep 1 23:05:26 2009 Subject: I want install qutim In-Reply-To: References: Message-ID: <200909020954.28454.Fluffy@fluffy.khv.ru> On Wednesday 02 September 2009 06:57:48 ??????? ?????????? wrote: > HI! > My name is Alex > I want install qutim , but he request: Found qt4-designer-4.4.1, but you > need to upgrade to qt4-designer>=4.5.2. I tried install Qt 4.5.2 and > recive errror installation Qt 4.5.2 on FreeBSD > > uname -a: > 6.4-RELEASE FreeBSD 6.4-RELEASE #0: Wed Nov 26 11:43:51 UTC 2008 > root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 > > archive name for installation: > qt-x11-opensource-src-4.5.2.tar.gz > > my action : > tar -xvf qt-x11-opensource-src-4.5.2 > cd qt-x11-opensource-src-4.5.2 > ./configure > ./configure > Which edition of Qt do you want to use ? > > Type 'c' if you want to use the Commercial Edition. > Type 'o' if you want to use the Open Source Edition. > > o > > > This is the Qt/X11 Open Source Edition. > > You are licensed to use this software under the terms of > the GNU General Public License (GPL) versions 3. > You are also licensed to use this software under the terms of > the Lesser GNU General Public License (LGPL) versions 2.1. > > Type '3' to view the GNU General Public License version 3. > Type 'L' to view the Lesser GNU General Public License version 2.1. > Type 'yes' to accept this license offer. > Type 'no' to decline this license offer. > > Do you accept the terms of either license? yes > ................................................... > ................................................... > > Qt is now configured for building. Just run 'gmake'. > Once everything is built, you must run 'gmake install'. > Qt will be installed into /usr/local/Trolltech/Qt-4.5.2 > > To reconfigure, run 'gmake confclean' and 'configure'. > > I type > # gmake > > ........................................................ > ........................................................ > > > > In file included from ../../include/QtGui/private/qfont_p.h:1, > from > ../../include/QtGui/private/../../../src/gui/text/qfontengineglyphcache_p. > h:60, from ../../include/QtGui/private/qfontengineglyphcache_p.h:1, from > ../../include/QtGui/private/../../../src/gui/painting/qtextureglyphcache_p > .h:61, from ../../include/QtGui/private/qtextureglyphcache_p.h:1, from > ../../include/QtGui/private/../../../src/gui/painting/qpaintengine_raster_ > p.h:64, from ../../include/QtGui/private/qpaintengine_raster_p.h:1, from > ../../include/QtGui/private/../../../src/gui/painting/qdrawhelper_mmx_p.h: > 58, from ../../include/QtGui/private/qdrawhelper_mmx_p.h:1, from > painting/qdrawhelper_mmx.cpp:46: > ../../include/QtGui/private/../../../src/gui/text/qfont_p.h:149: error: > `ScriptCount' is not a member of `QUnicodeTables' > > > > > I want install qutim , but he request: Found qt4-designer-4.4.1, but you > need to upgrade to qt4-designer>=4.5.2. > > Help me please! > Please read about ports/packages upgrading first: http://www.freebsd.org/doc/ru/books/handbook/ports.html -- Dima "Red Fox" Panov @ Home | C73E 2B72 1FFD 61BD E206 1234 A626 76ED 93E3 B018 Khabarovsk, Russia | 2D30 2CCB 9984 130C 6F87 BAFC FB8B A09D D539 8F29 KDE@FreeBSD Team | FreeBSD committer since 10.08.2009 | FreeBSD since Sept 1995 Twitter.com:fluffy_khv | Skype:dima.panov | Jabber.org:fluffy.khv | ICQ:1745024 From racerx at makeworld.com Tue Sep 1 23:07:42 2009 From: racerx at makeworld.com (Chris) Date: Tue Sep 1 23:07:49 2009 Subject: Upgrading packages Message-ID: <20090901171553.446cdfa5@chris.makeworld.com> Greetings, Probably a long time discussed question: Updating a system is (or can be) done with freebsd-update. What is the suggested way of upgrading packages (not ports)? -- Best regards, Chris () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments "There's no place like 127.0.0.1" From nomadlogic at gmail.com Tue Sep 1 23:11:27 2009 From: nomadlogic at gmail.com (pete wright) Date: Tue Sep 1 23:11:34 2009 Subject: Mounting an NFS volume served by Mac OS X In-Reply-To: References: Message-ID: <57d710000909011550y5fa19a7ex821cf7ec9d6573f5@mail.gmail.com> On Tue, Sep 1, 2009 at 3:20 PM, patrick wrote: > I'm wondering if anyone has had any success in mounting an NFS export > from a Mac OS X machine on FreeBSD 7.2? When I try, I get: > > RPCPROG_MNT: RPC: Authentication error; why = Client credential too weak > > The man page for exports on Mac OS X has: > > ? ? -sec=mechanism1:mechanism2... This option specifies one or more > security mechanisms > ? ? required for access to the exported directory. ?The security > mechanisms currently > ? ? supported are krb5p, krb5i, krb5, and sys. ?Multiple security > mechanisms can be spec- > ? ? ified as a colon separated list, and should be in the order of > most preferred to > ? ? least preferred. ?In the absence of this option, the security > mechanism defaults to > ? ? sys. > > > My export does not specify this, so "sys" is what is being used. Not > exactly sure what that means... I don't see any options in > mount_nfs(8) on the FreeBSD side that has anything to do with > authentication or security mechanisms... > > Any suggestions would be greatly appreciated! > which version of NFS are you using on the server side, which version are you attempting to use on the client side. also, it may be helpful if you post your /etc/exports file from your server (or what ever configuration you are using on the OSX server) and your mount command that is failing. -pete -- pete wright www.nycbug.org From anti_spam256 at yahoo.ca Tue Sep 1 23:15:48 2009 From: anti_spam256 at yahoo.ca (James Phillips) Date: Tue Sep 1 23:15:55 2009 Subject: netbooks and sdhci In-Reply-To: <20090901221758.AFBB310656CB@hub.freebsd.org> Message-ID: <540010.39284.qm@web65516.mail.ac4.yahoo.com> > > Message: 26 > Date: Tue, 01 Sep 2009 12:17:10 -0700 > From: David Horwitt > Subject: netbooks and sdhci > To: freebsd-questions@freebsd.org, > freebsd-mobile@freebsd.org > Message-ID: <4A9D7336.3050909@aogsquid.ucsd.edu> > Content-Type: text/plain; charset=ISO-8859-1; > format=flowed > > I recently purchased an Asus Aspire One D250-1151, and > am,overall, > pleased with it (running 7,2-RELEASE). > The alc ethernet is not supported in 7.2 (the ath0 wireless > is), and I > don't care about the video camera. > > The '5-in-1' media reader is, unfortunately for me, a USB > device. (After > some detective work, I determined that > it uses a Reaktek RTS5101 or RTS5111). For my purposes (low > level SDHC > card access), I prefer hardware that is > supported by the sdhci/mmc subsystem. My initial assumption was that you are familiar with the specific type of device you are asking about. Then, I remembered I was tempted by the SD form-factor as well. I think you are asking for trouble because SD cards support "Content Protection for Recordable Media (CPRM)." One of the "features" is "'key revocation' technology built into each card." http://www.sdcard.org/developers/tech/ I also read that speed is hampered by the interface design because they wanted something they could patent, rather than just re-implementing SPI (Serial Peripheral Interface). The SD card Association has a what would have been a promising floppy replacement without those two deliberate design flaws. If you are aware of that and sill want a SDHC reader, I don't have any reason to stop you :) Regards, James Phillips > So my question is: does anybody know _for sure_ of a > hard-disk netbook > with a media reader that uses the sdhci interface > and is supported by FBSD 7.2 (supported = wireless,X,USB). __________________________________________________________________ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now http://ca.toolbar.yahoo.com. From steve at ibctech.ca Tue Sep 1 23:22:32 2009 From: steve at ibctech.ca (Steve Bertrand) Date: Tue Sep 1 23:23:34 2009 Subject: webserver and natd In-Reply-To: <681960.78981.qm@web57504.mail.re1.yahoo.com> References: <681960.78981.qm@web57504.mail.re1.yahoo.com> Message-ID: <4A9DACB9.3090905@ibctech.ca> Razvan Cristea wrote: > Razvan Cristea wrote: > > Hello, > > > > i have a webserver useing freebsd 7.2 and i user the same server > to route internet to a local network. > > the internet on the local network is working fine but the sites > from the webserver are loading verry slow. > > > > i fave this configuration in rc.conf: > > > > firewall_enable="YES" > > firewall_type="open" > > firewall_logging="YES" > > gateway_enable="YES" > > natd_enable="YES" > > natd_interface="bce0" > > > > Can you please help me? > > Do you have a proper DNS name set up for the IP that the web server is > running on? > > How are you accessing the web server... by name or IP? > > I'll assume that you are using Apache. What does the "ServerName" > directive say? > The webserver works just fine when the firewall is not enabeled. > But when i enabele any firewall the webserver seems to be overloaded > or something and loads the pages verry slow. > The problem is that natd is not working without firewall activated. > > i have apache (directadmin cpanel) It's been years since I've needed to use NAT, so unfortunately, I can't help here. I'm sure someone else will speak up. If nothing comes up in the next while, perhaps asking on -ipfw will help (but do not cross-post). Steve -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3233 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090901/777fa67d/smime.bin From freebsd at edvax.de Tue Sep 1 23:32:50 2009 From: freebsd at edvax.de (Polytropon) Date: Tue Sep 1 23:32:57 2009 Subject: Upgrading packages In-Reply-To: <20090901171553.446cdfa5@chris.makeworld.com> References: <20090901171553.446cdfa5@chris.makeworld.com> Message-ID: <20090902013247.a040bda9.freebsd@edvax.de> On Tue, 1 Sep 2009 17:15:53 -0500, Chris wrote: > Greetings, > > Probably a long time discussed question: > Updating a system is (or can be) done with freebsd-update. > What is the suggested way of upgrading packages (not ports)? There's at least portupgrade with the -P option that forces the use of packages. You can as well use pkg_add to perform an "upgrade-like" action, but you'll have to take care for more things manually. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From freebsd at edvax.de Tue Sep 1 23:45:16 2009 From: freebsd at edvax.de (Polytropon) Date: Tue Sep 1 23:45:23 2009 Subject: I want install qutim In-Reply-To: References: Message-ID: <20090902014514.f60dce0a.freebsd@edvax.de> On Tue, 01 Sep 2009 23:57:48 +0400, ??????? ?????????? wrote: > I want install qutim As it seems to me, qutIM isn't ported to FreeBSD yet. > I tried install Qt 4.5.2 and recive errror installation Qt 4.5.2 on FreeBSD > [...] > my action : > tar -xvf qt-x11-opensource-src-4.5.2 > cd qt-x11-opensource-src-4.5.2 > ./configure You don't need to do this on FreeBSD. Applications and libraries that are ported to FreeBSD are available via the Ports Collection: http://www.freebsd.org/doc/ru/books/handbook/ports.html So you first install Qt from ports or packages, then try do get the source of qutIM working. This would work like this: 1. Download the qutIM sources. 2. Extract them. 3. Run % ./configure (e. g. with needed parameters) % make % sudo make install But keep in mind that it's possible that the configure script doesn't honor the FreeBSD platform, so you won't be able to compile and install it. > I type > # gmake FreeBSD uses a different make program. As it seems, you try to compile a Linux program on FreeBSD...? > I want install qutim , but he request: Found qt4-designer-4.4.1, > but you need to upgrade to qt4-designer>=4.5.2. It's a dependency, as well as the Qt library, that you have to install prior to any compile attempt. A command like # pkg_add -r qt4-designer should do this, and even install all other needed dependencies, such as Qt itself. > Help me please! Check out FreeBSD's precompiled packages and the ports collection. Make sure the qutIM sources are compatible with FreeBSD's building tools. Finally, ask the developers of qutIM for a FreeBSD version. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From peo at intersonic.se Tue Sep 1 23:52:19 2009 From: peo at intersonic.se (Per olof Ljungmark) Date: Tue Sep 1 23:52:27 2009 Subject: memory usage displsy In-Reply-To: <20090901204147.GC2855@dan.emsphone.com> References: <4A9D8057.8020307@intersonic.se> <20090901162931.d85ec256.wmoran@potentialtech.com> <20090901204147.GC2855@dan.emsphone.com> Message-ID: <4A9DB3AE.1000400@intersonic.se> Dan Nelson wrote: > In the last episode (Sep 01), Bill Moran said: >> In response to Per olof Ljungmark : >>> What is a good way to find out how memory is used? Have a 6.4 box where >>> memory is used by something but I fail to see what is using it - tried >>> different switches to ps(1), tried the stat tools but a big chunk of >>> memory does not show at all. >>> >>> A proper tool for analyzing memory usage "live", this is a production >>> box? >> I've always been able to get what I need from top. You can do -o res to >> sort by resident memory usage, which helps. > > ps will sort by memory usage when given the -m flag. Also check ipcs -a to > see if there are any sysv shared memory segments hanging arnound. If you > don't see anything using the memory, where are you seeing that "something" > is using it? What I see is a slapd process using about 150M, then around a hundred imap processes 5-10M each. If the server is restarted, 70-80% will be free, now, after three months we're at 11% free loosing about 20% per month. The exact sum VSZ right now as shown by ps is 1073632k but top says Mem: 3111M Active, 311M Inact, 230M Wired, 144M Cache, 112M Buf, 27M Free Clearly something is grabbing memory and not releasing it. Stopping and starting various programs makes very little difference. No SYSV mem at all. Thanks, From peo at intersonic.se Wed Sep 2 00:00:22 2009 From: peo at intersonic.se (Per olof Ljungmark) Date: Wed Sep 2 00:00:29 2009 Subject: memory usage displsy In-Reply-To: <20090901204147.GC2855@dan.emsphone.com> References: <4A9D8057.8020307@intersonic.se> <20090901162931.d85ec256.wmoran@potentialtech.com> <20090901204147.GC2855@dan.emsphone.com> Message-ID: <4A9DB590.6080605@intersonic.se> Dan Nelson wrote: > In the last episode (Sep 01), Bill Moran said: >> In response to Per olof Ljungmark : >>> What is a good way to find out how memory is used? Have a 6.4 box where >>> memory is used by something but I fail to see what is using it - tried >>> different switches to ps(1), tried the stat tools but a big chunk of >>> memory does not show at all. >>> >>> A proper tool for analyzing memory usage "live", this is a production >>> box? >> I've always been able to get what I need from top. You can do -o res to >> sort by resident memory usage, which helps. > > ps will sort by memory usage when given the -m flag. Also check ipcs -a to > see if there are any sysv shared memory segments hanging arnound. If you > don't see anything using the memory, where are you seeing that "something" > is using it? > ...and here is top output after I stopped Postfix, slapd and Cyrus-IMAP. Still over 3G Active. last pid: 10278; load averages: 0.03, 0.02, 0.00 up 93+02:50:16 01:57:35 45 processes: 1 running, 44 sleeping CPU: 0.0% user, 0.0% nice, 0.0% system, 0.0% interrupt, 100% idle Mem: 3057M Active, 312M Inact, 228M Wired, 144M Cache, 112M Buf, 81M Free Swap: 4096M Total, 80K Used, 4096M Free PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND 647 root 4 20 0 3372K 1508K kserel 110:35 0.00% apcupsd 831 root 3 20 0 5008K 1920K kserel 58:48 0.00% bacula-fd 480 root 1 96 0 1416K 932K select 25:23 0.00% syslogd 596 bind 1 4 0 6400K 5160K kqread 23:05 0.00% named 709 root 1 96 0 2780K 1484K select 4:26 0.00% ntpd 661 root 1 4 0 3372K 1972K accept 0:53 0.00% saslauthd 660 root 1 20 0 3372K 1972K lockf 0:53 0.00% saslauthd 662 root 1 20 0 3372K 1972K lockf 0:53 0.00% saslauthd 659 root 1 20 0 3372K 1972K lockf 0:53 0.00% saslauthd 657 root 1 20 0 3372K 1972K lockf 0:52 0.00% saslauthd 913 root 1 8 0 1412K 900K nanslp 0:22 0.00% cron 91648 peo 1 96 0 11372K 7572K select 0:04 0.00% sshd 3419 nagios 1 96 0 1380K 960K select 0:01 0.00% nrpe2 91656 root 1 20 0 3880K 1952K pause 0:00 0.00% csh 10243 root 1 96 0 2516K 1604K RUN 0:00 0.00% top 95511 root 1 5 0 4120K 2156K ttyin 0:00 0.00% csh 95504 peo 1 96 0 6296K 2544K select 0:00 0.00% sshd 95502 root 1 4 0 6300K 2540K sbwait 0:00 0.00% sshd 91646 root 1 4 0 6300K 2476K sbwait 0:00 0.00% sshd 10223 root 1 4 0 6300K 2660K sbwait 0:00 0.00% sshd 10232 root 1 5 0 3880K 2044K ttyin 0:00 0.00% csh 91650 peo 1 20 0 3836K 1848K pause 0:00 0.00% csh 95506 peo 1 20 0 3940K 1916K pause 0:00 0.00% csh 10227 peo 1 20 0 3836K 1976K pause 0:00 0.00% csh 906 root 1 96 0 3552K 2016K select 0:00 0.00% sshd 10225 peo 1 96 0 6296K 2664K select 0:00 0.00% sshd 429 root 1 96 0 528K 284K select 0:00 0.00% devd 91654 peo 1 8 0 1804K 1112K wait 0:00 0.00% su 95510 peo 1 8 0 1804K 1168K wait 0:00 0.00% su 10231 peo 1 8 0 1804K 1244K wait 0:00 0.00% su 961 root 1 5 0 1352K 784K ttyin 0:00 0.00% getty 962 root 1 5 0 1352K 784K ttyin 0:00 0.00% getty 968 root 1 5 0 1352K 784K ttyin 0:00 0.00% getty 964 root 1 5 0 1352K 784K ttyin 0:00 0.00% getty 966 root 1 5 0 1352K 784K ttyin 0:00 0.00% getty 963 root 1 5 0 1352K 784K ttyin 0:00 0.00% getty 965 root 1 5 0 1352K 784K ttyin 0:00 0.00% getty 967 root 1 5 0 1352K 784K ttyin 0:00 0.00% getty 943 root 1 111 0 1444K 840K select 0:00 0.00% inetd 138 root 1 20 0 1260K 636K pause 0:00 0.00% adjkerntz From wblock at wonkity.com Wed Sep 2 00:20:58 2009 From: wblock at wonkity.com (Warren Block) Date: Wed Sep 2 00:21:05 2009 Subject: remove newlines from a file In-Reply-To: <4A9DA1AB.8020102@ibctech.ca> References: <20090901205201.GA6126@marvin.optimis.net> <4A9DA1AB.8020102@ibctech.ca> Message-ID: On Tue, 1 Sep 2009, Steve Bertrand wrote: > George Davidovich wrote: >> On Tue, Sep 01, 2009 at 06:03:19PM +0000, Paul Schmehl wrote: >>> I found a sed tutorial once that did this, but I can't seem to find it >>> again. >> >> You're probably thinking of "Useful One-Line Scripts for Sed": >> >> http://sed.sourceforge.net/sed1line.txt >> >> A good follow-up: >> >> http://www.osnews.com/story/21004/Awk_and_Sed_One-Liners_Explained >> >>> I have a file with multiple lines, each of which contains a single ip >>> followed by a /32 and a comma. I want to combine all those lines into >>> a single line by removing all the newline characters at the end of >>> each line. >>> >>> What's the best/most efficient way of doing that in a shell? >> >> A sed solution would be >> >> sed -e :a -e '$!N; s/\n/ /; ta' my_file >> >> Other (easier to remember) solutions could include: >> >> tr -d '\n' < my_file >> tr '\n' ' ' < my_file >> >> echo $(cat my_file) # not so useless use of cat! >> >> paste -s my_file >> >> while read line; do >> joined="$joined $(echo $line)" >> done < my_file >> echo $joined >> >> Lots of options, of course. Even more with Perl. > > Yeah, how 'bout Perl: > > % perl -ne 's/\n/ /g; print;' < tests/ips.txt perl -pe 'chomp' myfile is somewhat easier. Works with Ruby, too. -Warren Block * Rapid City, South Dakota USA From terry at sucked-in.com Wed Sep 2 00:22:32 2009 From: terry at sucked-in.com (Terry Sposato) Date: Wed Sep 2 00:22:39 2009 Subject: devel/pear port build failure Message-ID: <4A9DB69C.4080506@sucked-in.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I am having trouble building the devel/pear port. I have tried the following, rebuild all dependant ports (all of php etc.) - Extracted new ports tree, used portmaster, always returns the same error: [got][/usr/ports/devel/pear]# make install clean ===> Installing for pear-1.8.1 ===> pear-1.8.1 depends on file: /usr/local/include/php/main/php.h - found ===> pear-1.8.1 depends on file: /usr/local/lib/php/20060613/pcre.so - - found ===> pear-1.8.1 depends on file: /usr/local/lib/php/20060613/xml.so - - found ===> Generating temporary packing list ===> Checking if devel/pear already installed Bootstrapping Installer................... Using previously install ... ok Extracting installer.................. Using previously installed installer ... ok Preparing installer.................. Updating channel "doc.php.net" Channel "doc.php.net" is up to date Updating channel "pear.php.net" Channel "pear.php.net" is up to date Updating channel "pecl.php.net" Channel "pecl.php.net" is up to date Installing selected packages.................. Package: PEAR-stable.............................. already installed ... ok Package: Structures_Graph-stable.................. already installed ... ok Package: Archive_Tar-stable....................... already installed ... ok Package: Console_Getopt-stable.................... already installed ... ok *** Signal 11 Stop in /usr/ports/devel/pear. Anyone have this issue? Please reply to me directly as I am currently not on the list. Regards, Terry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqdtpwACgkQggJ6ImaGmQrs7ACfQt5A//Q7W1gom3jgmYzld4zP EZAAnj09mx+ybwM+Hhz5h7/0/Vo4Z95w =UO8G -----END PGP SIGNATURE----- From steve at ibctech.ca Wed Sep 2 00:59:55 2009 From: steve at ibctech.ca (Steve Bertrand) Date: Wed Sep 2 01:00:02 2009 Subject: remove newlines from a file In-Reply-To: References: <20090901205201.GA6126@marvin.optimis.net> <4A9DA1AB.8020102@ibctech.ca> Message-ID: <4A9DC38C.5090002@ibctech.ca> Warren Block wrote: > On Tue, 1 Sep 2009, Steve Bertrand wrote: >> George Davidovich wrote: >>> On Tue, Sep 01, 2009 at 06:03:19PM +0000, Paul Schmehl wrote: >>>> I found a sed tutorial once that did this, but I can't seem to find it >>>> again. >>> >>> You're probably thinking of "Useful One-Line Scripts for Sed": >>> >>> http://sed.sourceforge.net/sed1line.txt >>> >>> A good follow-up: >>> >>> http://www.osnews.com/story/21004/Awk_and_Sed_One-Liners_Explained >>> >>>> I have a file with multiple lines, each of which contains a single ip >>>> followed by a /32 and a comma. I want to combine all those lines into >>>> a single line by removing all the newline characters at the end of >>>> each line. >>>> >>>> What's the best/most efficient way of doing that in a shell? >>> >>> A sed solution would be >>> >>> sed -e :a -e '$!N; s/\n/ /; ta' my_file >>> >>> Other (easier to remember) solutions could include: >>> >>> tr -d '\n' < my_file >>> tr '\n' ' ' < my_file >>> >>> echo $(cat my_file) # not so useless use of cat! >>> >>> paste -s my_file >>> >>> while read line; do >>> joined="$joined $(echo $line)" >>> done < my_file >>> echo $joined >>> >>> Lots of options, of course. Even more with Perl. >> >> Yeah, how 'bout Perl: >> >> % perl -ne 's/\n/ /g; print;' < tests/ips.txt > > perl -pe 'chomp' myfile > > is somewhat easier. Niiiice golf... > Works with Ruby, too. Is Ruby Perl? ;) Steve -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3233 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090902/9dbdcf18/smime.bin From dnelson at allantgroup.com Wed Sep 2 03:16:35 2009 From: dnelson at allantgroup.com (Dan Nelson) Date: Wed Sep 2 03:16:41 2009 Subject: memory usage displsy In-Reply-To: <4A9DB3AE.1000400@intersonic.se> References: <4A9D8057.8020307@intersonic.se> <20090901162931.d85ec256.wmoran@potentialtech.com> <20090901204147.GC2855@dan.emsphone.com> <4A9DB3AE.1000400@intersonic.se> Message-ID: <20090902031626.GD2855@dan.emsphone.com> In the last episode (Sep 02), Per olof Ljungmark said: > Dan Nelson wrote: > > In the last episode (Sep 01), Bill Moran said: > >> In response to Per olof Ljungmark : > >>> What is a good way to find out how memory is used? Have a 6.4 box > >>> where memory is used by something but I fail to see what is using it - > >>> tried different switches to ps(1), tried the stat tools but a big > >>> chunk of memory does not show at all. > >>> > >>> A proper tool for analyzing memory usage "live", this is a production > >>> box? > >> > >> I've always been able to get what I need from top. You can do -o res to > >> sort by resident memory usage, which helps. > > > > ps will sort by memory usage when given the -m flag. Also check ipcs -a > > to see if there are any sysv shared memory segments hanging arnound. If > > you don't see anything using the memory, where are you seeing that > > "something" is using it? > > What I see is a slapd process using about 150M, then around a hundred imap > processes 5-10M each. If the server is restarted, 70-80% will be free, > now, after three months we're at 11% free loosing about 20% per month. > > The exact sum VSZ right now as shown by ps is 1073632k but top says > > Mem: 3111M Active, 311M Inact, 230M Wired, 144M Cache, 112M Buf, 27M Free > > Clearly something is grabbing memory and not releasing it. Disk cache, most likely. I would expect "Free" memory as reported by top to drop down to under 100MB a few hours after a system is rebooted. The difference between Active->Inact->Cache->Buf is more an indication of how long ago a particular page has been touched (and how much work it is to map the page back into a processes memory space), and doesn't really say what the block is being used for. If you are not actively swapping, there is no need for panic. Even a couple hundred MB of used swap is fine, as long as you're not constantly having to pull it back into memory. http://www.freebsd.org/doc/en/books/arch-handbook/vm.html has a good rundown of how the VM system works. -- Dan Nelson dnelson@allantgroup.com From af300wsm at gmail.com Wed Sep 2 04:41:25 2009 From: af300wsm at gmail.com (af300wsm@gmail.com) Date: Wed Sep 2 04:41:32 2009 Subject: having problems copying a dvd Message-ID: <0016e64cae6a217e26047290e16e@google.com> Hi, I'm trying to make a copy of a dvd that I have, video, using a technique that I gleaned from this list nearly two years ago that has always worked but now I'm having problems. (When I say always, please bear in mind that I don't do this every day or even frequently). You'll also see calls to dd. These were attempts at "last ditch effort." I usually just use the copy command (got it from a thread entitled, "copying a dvd video," from November of 07). If dd will work but I just forgot to get the block size right, what is that supposed to be. So, here's what I'm doing with the results. Any help is greatly appreciated because am at the point of pulling my hair out (which might have actually happened had I not shaved it off). [root@sniper ~]# cp /dev/acd0 /usr/local/dvds/biggest_loser.iso cp: /dev/acd0: Input/output error [root@sniper ~]# cp /dev/acd0t01 /usr/local/dvds/biggest_loser.iso cp: /dev/acd0t01: Input/output error [root@sniper ~]# dd if=/dev/acd0 of=/usr/local/dvds/biggest_loser.iso dd: /dev/acd0: Invalid argument 0+0 records in 0+0 records out 0 bytes transferred in 0.000115 secs (0 bytes/sec) [root@sniper ~]# dd if=/dev/acd0t01 of=/usr/local/dvds/biggest_loser.iso dd: /dev/acd0t01: Invalid argument 0+0 records in 0+0 records out 0 bytes transferred in 0.000111 secs (0 bytes/sec) Andy From racerx at makeworld.com Wed Sep 2 05:05:16 2009 From: racerx at makeworld.com (Chris) Date: Wed Sep 2 05:05:24 2009 Subject: Upgrading packages In-Reply-To: <20090902013247.a040bda9.freebsd@edvax.de> References: <20090901171553.446cdfa5@chris.makeworld.com> <20090902013247.a040bda9.freebsd@edvax.de> Message-ID: <20090902000514.2a17510c@chris.makeworld.com> On Wed, 2 Sep 2009 01:32:47 +0200 Polytropon wrote: > On Tue, 1 Sep 2009 17:15:53 -0500, Chris wrote: > > Greetings, > > > > Probably a long time discussed question: > > Updating a system is (or can be) done with freebsd-update. > > What is the suggested way of upgrading packages (not ports)? > > There's at least portupgrade with the -P option that forces the > use of packages. You can as well use pkg_add to perform an > "upgrade-like" action, but you'll have to take care for more > things manually. > > > From sysutils/bsdadminscripts - pkg_upgrade looks like what I am after. From the pkg_upgrade man page... PKG_UPGRADE(1) BSD Reference Manual PKG_UPGRADE(1) NAME pkg_upgrade - upgrade an installed package in-place SYNOPSIS pkg_upgrade [-afqsv] pkgname.cgz DESCRIPTION The pkg_upgrade command is used to upgrade an installed package in-place. If no other version of the package is installed and -a is not given, pkg_upgrade simply calls pkg_add(1). Otherwise, the installed package is deleted and the new version is added, keeping dependencies intact. The following command line options are supported: -a Ignore packages for which no older version is installed (auto). -f Force upgrading the package: Also upgrade if the exact same ver- sion is already installed, useful if you rebuilt a package from source. If a conflicting package other than an older version of the same package is installed, remove it. -q Don't print less important messages (quiet). -s Enable special treatment for shared libraries, see below (shlibs). -v Pass the -v flag to subprocesses for more verbose operation. SHARED LIBRARY SUPPORT pkg_upgrade has a special mode for upgrading shared library packages. Consider the following situation: You have installed a package foo that contains libfoo.so.1.0. Package bar is also installed and contains a binary that depends on this version of libfoo. Now you upgrade the foo package, the new version contains libfoo.so.2.0 instead. The other binary will no longer run. For this reason, systems like Debian split their library packages in two: the library itself and a "developer" package containing headers and so on. Instead, pkg_upgrade creates a "stub package" from the installed package. Basically, the installed package is split in two. The old li- braries are kept as a package named stub-pkgname while the rest is delet- ed and replaced by the new version. In the general case, this should work but you may still run into situa- tions where you will need to rebuild dependent packages from source. In any case, you can delete unused stub packages after you have rebuilt dependent packages. SEE ALSO pkg_add(1), pkg_create(1), pkg_delete(1), ports(7) -- Best regards, Chris () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments "There's no place like 127.0.0.1" From bsam at ipt.ru Wed Sep 2 05:17:11 2009 From: bsam at ipt.ru (Boris Samorodov) Date: Wed Sep 2 05:17:18 2009 Subject: Upgrading packages In-Reply-To: <20090901171553.446cdfa5@chris.makeworld.com> (Chris's message of "Tue, 1 Sep 2009 17:15:53 -0500") References: <20090901171553.446cdfa5@chris.makeworld.com> Message-ID: <67860391@bb.ipt.ru> On Tue, 1 Sep 2009 17:15:53 -0500 Chris wrote: > Probably a long time discussed question: > Updating a system is (or can be) done with freebsd-update. > What is the suggested way of upgrading packages (not ports)? The port sysutils/bsdadminscripts has a script pkg_upgrade to upgrade packages. -- WBR, Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve From rsmith at xs4all.nl Wed Sep 2 05:19:30 2009 From: rsmith at xs4all.nl (Roland Smith) Date: Wed Sep 2 05:19:38 2009 Subject: having problems copying a dvd In-Reply-To: <0016e64cae6a217e26047290e16e@google.com> References: <0016e64cae6a217e26047290e16e@google.com> Message-ID: <20090902051927.GA78814@slackbox.xs4all.nl> On Wed, Sep 02, 2009 at 04:41:24AM +0000, af300wsm@gmail.com wrote: > Hi, > > I'm trying to make a copy of a dvd that I have, video, using a technique > that I gleaned from this list nearly two years ago that has always worked > but now I'm having problems. (When I say always, please bear in mind that I > don't do this every day or even frequently). You'll also see calls to dd. > These were attempts at "last ditch effort." I usually just use the copy > command (got it from a thread entitled, "copying a dvd video," from > November of 07). If dd will work but I just forgot to get the block size > right, what is that supposed to be. My preferred technique is to use mplayer: mplayer dvd://1 -dumpstream -dumpfile dvd.mpg Be sure to play the DVD with mplayer to check which track is actually the movie. Usually it is track #1, but not always. After copying the stream, I tend to re-encode it for backup purposes with the H.264 video codec with MP3 sound, which makes it a lot smaller. The first step is to watch the mpeg and see if there are black stripes around the picture: mplayer -vf cropdetect dvd.mpg This will give you a continuous list of crop lines, e.g: [CROP] Crop area: X: 1..719 Y: 74..500 (-vf crop=704:416:10:80).0 Next step is to re-encode the mpeg file in two steps for enhanced quality, including the crop information, if any: mencoder title.mpg -ovc x264 \ -x264encopts subq=4:bframes=3:b_pyramid:weight_b:qp=18:threads=auto:pass=1 \ -idx -oac mp3lame -vf crop=704:416:10:80 -o /dev/null; \ mencoder title.mpg -ovc x264 -x264encopts \ subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:\ b_pyramid:weight_b:qp=18:threads=auto:pass=2 -vf crop=704:416:10:80 \ -idx -oac mp3lame -o title.avi; If you want to include a specific language or subtitle, don't forget to include the correct options for that; see the mplayer manual. 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) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090902/f7fff913/attachment.pgp From racerx at makeworld.com Wed Sep 2 05:25:20 2009 From: racerx at makeworld.com (Chris) Date: Wed Sep 2 05:25:28 2009 Subject: Upgrading packages In-Reply-To: <67860391@bb.ipt.ru> References: <20090901171553.446cdfa5@chris.makeworld.com> <67860391@bb.ipt.ru> Message-ID: <20090902002518.1c874530@chris.makeworld.com> On Wed, 02 Sep 2009 09:17:12 +0400 Boris Samorodov wrote: > On Tue, 1 Sep 2009 17:15:53 -0500 Chris wrote: > > > Probably a long time discussed question: > > Updating a system is (or can be) done with freebsd-update. > > What is the suggested way of upgrading packages (not ports)? > > The port sysutils/bsdadminscripts has a script pkg_upgrade > to upgrade packages. > Thanks - although, this seems a moot point if one sticks with RELEASE (until a point release that is I suppose). -- Best regards, Chris () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments "There's no place like 127.0.0.1" From freebsd at edvax.de Wed Sep 2 05:30:02 2009 From: freebsd at edvax.de (Polytropon) Date: Wed Sep 2 05:30:09 2009 Subject: having problems copying a dvd In-Reply-To: <0016e64cae6a217e26047290e16e@google.com> References: <0016e64cae6a217e26047290e16e@google.com> Message-ID: <20090902072959.231d0045.freebsd@edvax.de> On Wed, 02 Sep 2009 04:41:24 +0000, af300wsm@gmail.com wrote: > If dd will work but I just forgot to get the block size > right, what is that supposed to be. If you call dd without bs= parameter, the default of 512 is assumed. This may not be correct for video DVDs. You could try bs=1m, but I'm not sure what the correct block size for DVDs is... For copying them, I always felt comfortable with the vobcopy tool (for reading), and growisofs -dvd-compat (for writing). Both tools can be installed via ports or packages. > [root@sniper ~]# cp /dev/acd0 /usr/local/dvds/biggest_loser.iso ^^^^^^^^^^^^^^^^ Just a side note: I don't think /usr/local is a good place to store DVD images. Some path like /usr/home/dvds would be good. The /usr/local subtree is "reserved" for locally installed applications; see "man hier" for details. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From baerks at t-online.de Wed Sep 2 05:47:36 2009 From: baerks at t-online.de (Sabine Baer) Date: Wed Sep 2 05:47:43 2009 Subject: Mounting an NFS volume served by Mac OS X In-Reply-To: References: Message-ID: <20090902053141.GB1640@amd.catfish.ddns.org> On Tue, Sep 01, 2009 at 03:20:37PM -0700, patrick wrote: > I'm wondering if anyone has had any success in mounting an NFS export > from a Mac OS X machine on FreeBSD 7.2? amd$ ssh book@ibook Password: Last login: Tue Sep 1 18:36:19 2009 Welcome to Darwin! ibook:~ book$ uname -a Darwin ibook.catfish.ddns.org 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh powerpc ibook:~ book$ less /private/etc/exports /Users/book -alldirs amd /Volumes -alldirs amd ibook:~ book$ ps ax|grep nfs 198 ?? Ss 0:00.00 nfsiod -n 4 234 ?? Ss 0:00.01 nfsd-master 240 ?? S 0:00.00 nfsd-server [...] 1520 p2 S+ 0:00.01 grep nfs ibook:~ book$ exit logout [...] amd# mount /ibook amd# mount [...] ibook:/Users/book on /ibook (nfs) amd# [...] amd$ ls -l /ibook|less total 448 drwxr-xr-x 3 501 501 102 Mar 6 20:11 Anwendungsdaten drwx------ 16 501 501 544 Aug 15 23:22 Desktop [...] amd$ Works fine, as far as I experienced. I wrote that /private/etc/exports. It may not be the best way, just mt 2 Cent, Sabine Was glaubst du, was FAQ hei?t? F?llig Abstruser Quatsch? (Hauke Heidtmann in dcouln) From bsam at ipt.ru Wed Sep 2 05:50:05 2009 From: bsam at ipt.ru (Boris Samorodov) Date: Wed Sep 2 05:50:12 2009 Subject: Upgrading packages In-Reply-To: <20090902002518.1c874530@chris.makeworld.com> (Chris's message of "Wed, 2 Sep 2009 00:25:18 -0500") References: <20090901171553.446cdfa5@chris.makeworld.com> <67860391@bb.ipt.ru> <20090902002518.1c874530@chris.makeworld.com> Message-ID: <35693951@bb.ipt.ru> On Wed, 2 Sep 2009 00:25:18 -0500 Chris wrote: > On Wed, 02 Sep 2009 09:17:12 +0400 > Boris Samorodov wrote: > > On Tue, 1 Sep 2009 17:15:53 -0500 Chris wrote: > > > > > Probably a long time discussed question: > > > Updating a system is (or can be) done with freebsd-update. > > > What is the suggested way of upgrading packages (not ports)? > > > > The port sysutils/bsdadminscripts has a script pkg_upgrade > > to upgrade packages. > Thanks - although, this seems a moot point if one sticks with RELEASE > (until a point release that is I suppose). Packges are build for STABLE as well: ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/ -- WBR, Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve From racerx at makeworld.com Wed Sep 2 06:08:56 2009 From: racerx at makeworld.com (Chris) Date: Wed Sep 2 06:09:03 2009 Subject: Upgrading packages In-Reply-To: <35693951@bb.ipt.ru> References: <20090901171553.446cdfa5@chris.makeworld.com> <67860391@bb.ipt.ru> <20090902002518.1c874530@chris.makeworld.com> <35693951@bb.ipt.ru> Message-ID: <20090902010854.386d44d4@chris.makeworld.com> On Wed, 02 Sep 2009 09:50:08 +0400 Boris Samorodov wrote: > On Wed, 2 Sep 2009 00:25:18 -0500 Chris wrote: > > On Wed, 02 Sep 2009 09:17:12 +0400 > > Boris Samorodov wrote: > > > On Tue, 1 Sep 2009 17:15:53 -0500 Chris wrote: > > > > > > > Probably a long time discussed question: > > > > Updating a system is (or can be) done with freebsd-update. > > > > What is the suggested way of upgrading packages (not ports)? > > > > > > The port sysutils/bsdadminscripts has a script pkg_upgrade > > > to upgrade packages. > > > Thanks - although, this seems a moot point if one sticks with > > RELEASE (until a point release that is I suppose). > > Packges are build for STABLE as well: > ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/ > I do realize this however, if one stays with RELEASE (and not deal with the possible (I did say possible) headaches of a changing base system) then (as I read it from the Handbook) updating packages is moot. They won't change until the next point release. I'm just trying to determine the way I want to move back to FreeBSD and not repeat the episodes of upgrades due to installing ports. This turned out to be a weekly event that took the majority of my Friday nights. I admit that I have gotten spoiled with Linux updates (all binary - no issues, no breakage, and no dependency-hell like there used to be with Ports). Of course, I'm sure that dealing with Ports has improved in the 2 years I was on my "sabbatical", but I did get used to actually using and enjoying my puter (again, my biased view point on when I used to use FreeBSD). And now for the last question - I know there were issues mounting ext2 (128 bit) but have since been corrected. This is important to me in the short term. What version (I know the upcoming 8 will have it) now has the patch I have about that supports ext2/128 bit? If it's 7.2, I assume that updating the src should or would take care of it? Once I have recommitted back to FBSD, I would convert the drives that are currently ext3. I'm not trolling nor trying to start an OS war, just some questions I need to get clarity on before I wipe and install. If all my ducks are in a row, my transition back should be rather pleasant or at worse, not happen at all. Thanks for your time. -- Best regards, Chris () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments "There's no place like 127.0.0.1" From bsam at ipt.ru Wed Sep 2 06:41:59 2009 From: bsam at ipt.ru (Boris Samorodov) Date: Wed Sep 2 06:42:06 2009 Subject: Upgrading packages In-Reply-To: <20090902010854.386d44d4@chris.makeworld.com> (Chris's message of "Wed, 2 Sep 2009 01:08:54 -0500") References: <20090901171553.446cdfa5@chris.makeworld.com> <67860391@bb.ipt.ru> <20090902002518.1c874530@chris.makeworld.com> <35693951@bb.ipt.ru> <20090902010854.386d44d4@chris.makeworld.com> Message-ID: <53615301@bb.ipt.ru> On Wed, 2 Sep 2009 01:08:54 -0500 Chris wrote: > On Wed, 02 Sep 2009 09:50:08 +0400 > Boris Samorodov wrote: > > On Wed, 2 Sep 2009 00:25:18 -0500 Chris wrote: > > > Thanks - although, this seems a moot point if one sticks with > > > RELEASE (until a point release that is I suppose). > > > > Packges are build for STABLE as well: > > ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/ > I do realize this however, if one stays with RELEASE (and not deal with > the possible (I did say possible) headaches of a changing base system) > then (as I read it from the Handbook) updating packages is moot. They > won't change until the next point release. The thing is that those packages (called FreeBSD-stable-packages) can (and imo) should be used with RELEASE either. The ports tree is always HEAD. And -stable- for packages means only that they were build after -release- packages. -- WBR, Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve From j.mckeown at ru.ac.za Wed Sep 2 06:51:02 2009 From: j.mckeown at ru.ac.za (Jonathan McKeown) Date: Wed Sep 2 06:51:08 2009 Subject: remove newlines from a file Message-ID: <200909020850.58967.j.mckeown@ru.ac.za> [Arrrrgghh. To list this time] On Tuesday 01 September 2009 20:03:19 Paul Schmehl wrote: > I found a sed tutorial once that did this, but I can't seem to find it > again. I have a file with multiple lines, each of which contains a single > ip followed by a /32 and a comma. I want to combine all those lines into a > single line by removing all the newline characters at the end of each line. > > What's the best/most efficient way of doing that in a shell? I'd use rs(1). References: Message-ID: <4A9E1D63.8030101@mapper.nl> Kurt Buff wrote: > I got a daily security run email from one of my machines on Monday > morning, with the following entry: > > zmx1.zetron.com login failures: > Aug 30 06:57:17 zmx1 su: BAD SU mlee to root on /dev/ttyp2 > Aug 30 09:42:17 zmx1 su: BAD SU mlee to root on /dev/ttyp0 > > What's puzzling is that this account has been completely inactive for > well over a year - this fellow is long gone, and I simply didn't clean > it up - that's my bad, but that's not the puzzling part. > > I traced it down, and found out that he had not logged in on Sunday. > The auth.log is, as you can see from the listing below, quite old. The > entries referenced above are from two years ago. > > zmx1# ll /var/log/a* > -rw------- 1 root wheel 71845 Sep 1 15:42 /var/log/auth.log > -rw------- 1 root wheel 6087 Aug 29 2007 /var/log/auth.log.0.bz2 > -rw------- 1 root wheel 5774 Aug 12 2007 /var/log/auth.log.1.bz2 > -rw------- 1 root wheel 5795 Jul 24 2007 /var/log/auth.log.2.bz2 > -rw------- 1 root wheel 6813 Jul 6 2007 /var/log/auth.log.3.bz2 > > > So, a couple of questions: > > Why would the daily security run pick up something from *two years > ago* and only report it again today? The machine hasn't been rebooted > in a very long time, if that makes a difference. > > Is there any way to prevent something like this happening again - or > perhaps can I force the entry of the year into the date field for the > auth.log entries? > > Kurt > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Hello, If you look at the syntax of the logfile, you will see no year is listed. Most likely the whole file is parsed on security run. Since the logfile has been rotated the 30th of august 2007, it's very much possible you'll get all your messages all over again. Perhaps it's wise to rotate you logfiles once a year just in case... And it make no difference the machine hasn't been rebooted in a very long time... (define "very long time" ;-) http://uptimes-project.org/hosts/view/150 ) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090902/30f9317e/signature.pgp From d.forsyth at ru.ac.za Wed Sep 2 08:22:39 2009 From: d.forsyth at ru.ac.za (DA Forsyth) Date: Wed Sep 2 08:22:46 2009 Subject: portupgrade broken, and apr won't build Message-ID: <4A9E476D.13800.3D61987B@d.forsyth.ru.ac.za> Hiya all Something weird going on with portypgrade (and maybe ports in general) here. Somewhere between last months upgrade and this month, portupgrade has started to ignore ports that are reported by portversion as needing upgrading. The result is I have to force each one, one at a time. Big schlep. For example > portversion -v | grep samba samba-3.0.35,1 < needs updating (port has 3.0.36,1) > portupgrade -vr samba ---> Session started at: Wed, 02 Sep 2009 10:18:47 +0200 ** None has been installed or upgraded. ---> Session ended at: Wed, 02 Sep 2009 10:18:47 +0200 (consumed 00:00:00) The other thing is that devel/apr will not build. The make stops with this ... checking whether it is safe to define __EXTENSIONS__... yes checking for library containing strerror... none required checking whether system uses EBCDIC... no performing libtool configuration... ./configure: 9753: Syntax error: word unexpected (expecting ")") *** Error code 2 Stop in /usr/ports/devel/apr. *** Error code 1 Stop in /usr/ports/devel/apr. I cvsup every Monday morning. I tried the upgrades last week but got these failures and decided to wait a week and see if there are fixes. Apparently not. I also had to manually fix the openssl distfile (missing MD5 and SH256) so that it would actually download the missing patch and confirm it. I have never had so much trouble with the port system, who broke it? <-: Any ideas? -- DA Fo rsyth Network Supervisor Principal Technical Officer -- Institute for Water Research http://www.ru.ac.za/institutes/iwr/ From d.forsyth at ru.ac.za Wed Sep 2 08:48:29 2009 From: d.forsyth at ru.ac.za (DA Forsyth) Date: Wed Sep 2 08:48:36 2009 Subject: apr won't build Message-ID: <4A9E4D7A.12152.3D793AB6@d.forsyth.ru.ac.za> replyign to myself, sor tof, seems this fixes it http://www.mail-archive.com/freebsd-ports@freebsd.org/msg22758.html remove all old cruft from libtool15 if you have upgraded to libtool22 -- DA Fo rsyth Network Supervisor Principal Technical Officer -- Institute for Water Research http://www.ru.ac.za/institutes/iwr/ From info at hslsoft.com Wed Sep 2 09:00:05 2009 From: info at hslsoft.com (Hunter Systems) Date: Wed Sep 2 09:00:12 2009 Subject: SAM Service Asset Manager (Sept 09) Message-ID: <60B86230.1CA2BB2@Neville-PC> 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. From saifi.khan at datasynergy.org Wed Sep 2 09:49:12 2009 From: saifi.khan at datasynergy.org (Saifi Khan) Date: Wed Sep 2 09:49:20 2009 Subject: netbooks and sdhci In-Reply-To: <4A9D7336.3050909@aogsquid.ucsd.edu> References: <4A9D7336.3050909@aogsquid.ucsd.edu> Message-ID: On Tue, 1 Sep 2009, David Horwitt wrote: > > So my question is: does anybody know _for sure_ of a hard-disk netbook with a > media reader that uses the sdhci interface > and is supported by FBSD 7.2 (supported = wireless,X,USB). $USD300 (like the > AA1-D250) is the desired price point, but > up to about $USD400 is OK (as is FBSD 8.0, if the hardware is right). If you > have any pointers, please > include the sub-model information, because if it's anything like the Asus, the > hardware varies all over the place, and > 'Aspire One' means less than 'D250' or 'AO150'. > > Thank you, > David > Acer Aspire One D150. note 'Acer' ! is what i'd recommend. This is a hard-disk netbook. Here are the complete hardware and installation details http://www.twincling.org/node/451 The website http://www.acer.com/aspireone/about.html In India it costed me about INR 21,500 (or $430) in March 2009. YMMV. thanks Saifi. From racerx at makeworld.com Wed Sep 2 10:13:02 2009 From: racerx at makeworld.com (Chris) Date: Wed Sep 2 10:13:09 2009 Subject: Upgrading packages In-Reply-To: <53615301@bb.ipt.ru> References: <20090901171553.446cdfa5@chris.makeworld.com> <67860391@bb.ipt.ru> <20090902002518.1c874530@chris.makeworld.com> <35693951@bb.ipt.ru> <20090902010854.386d44d4@chris.makeworld.com> <53615301@bb.ipt.ru> Message-ID: <20090902051225.0f273d68@chris.makeworld.com> On Wed, 02 Sep 2009 10:42:02 +0400 Boris Samorodov wrote: > On Wed, 2 Sep 2009 01:08:54 -0500 Chris wrote: > > On Wed, 02 Sep 2009 09:50:08 +0400 > > Boris Samorodov wrote: > > > On Wed, 2 Sep 2009 00:25:18 -0500 Chris wrote: > > > > > Thanks - although, this seems a moot point if one sticks with > > > > RELEASE (until a point release that is I suppose). > > > > > > Packges are build for STABLE as well: > > > ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/ > > > I do realize this however, if one stays with RELEASE (and not deal > > with the possible (I did say possible) headaches of a changing base > > system) then (as I read it from the Handbook) updating packages is > > moot. They won't change until the next point release. > > The thing is that those packages (called FreeBSD-stable-packages) > can (and imo) should be used with RELEASE either. The ports tree > is always HEAD. And -stable- for packages means only that they > were build after -release- packages. > I'll paraphrase what you said as I understand you; Upgrading packages to a RELEASE system (by way of setting set PACKAGESITE to reflect: ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/) Would indeed keep them updated whereas the default PACKAGESITE setting would do nothing more then install the packages that were created at the time of RELEASE. So in short, Yes, there is a way I can run RELEASE while still getting updated packages using pkg_upgrade as long as I set PACKAGESITE. Now - I just need that last question answered about mounting ext2 and I'm off to install. -- Best regards, Chris () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments "There's no place like 127.0.0.1" From bsam at ipt.ru Wed Sep 2 11:15:29 2009 From: bsam at ipt.ru (Boris Samorodov) Date: Wed Sep 2 11:15:37 2009 Subject: Upgrading packages In-Reply-To: <20090902051225.0f273d68@chris.makeworld.com> (Chris's message of "Wed, 2 Sep 2009 05:12:25 -0500") References: <20090901171553.446cdfa5@chris.makeworld.com> <67860391@bb.ipt.ru> <20090902002518.1c874530@chris.makeworld.com> <35693951@bb.ipt.ru> <20090902010854.386d44d4@chris.makeworld.com> <53615301@bb.ipt.ru> <20090902051225.0f273d68@chris.makeworld.com> Message-ID: <10738892@bb.ipt.ru> On Wed, 2 Sep 2009 05:12:25 -0500 Chris wrote: > I'll paraphrase what you said as I understand you; > Upgrading packages to a RELEASE system (by way of setting set > PACKAGESITE to reflect: > ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7-stable/Latest/) > Would indeed keep them updated whereas the default PACKAGESITE setting > would do nothing more then install the packages that were created at the > time of RELEASE. > So in short, Yes, there is a way I can run RELEASE while still getting > updated packages using pkg_upgrade as long as I set PACKAGESITE. Correct. > Now - I just need that last question answered about mounting ext2 and > I'm off to install. Not me, sorry. -- WBR, Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve From gesbbb at yahoo.com Wed Sep 2 11:27:01 2009 From: gesbbb at yahoo.com (Jerry) Date: Wed Sep 2 11:27:11 2009 Subject: 'alias' + sudo Message-ID: <20090902072659.7829da56@scorpio.seibercom.net> I have set up several 'alias' definitions in my .bashrc file. They are honored when run as either a regular user or as root. However, when I prefix a command with 'sudo', the alias is no longer honored. In other words, the actual command is run;however, any flags that I was passing to it via 'alias' are lost. How can I circumvent this annoyance. Example, I often use 'pico' from within 'xterm'. I set up an alias that causes pico to use the mouse; i.e., pico -m which works fine as long as I do not prefix the command with 'sudo' -- Jerry gesbbb@yahoo.com I just need enough to tide me over until I need more. Bill Hoest From stapleton.41 at gmail.com Wed Sep 2 12:30:16 2009 From: stapleton.41 at gmail.com (Jim) Date: Wed Sep 2 12:30:24 2009 Subject: 32 bit ports on an AMD64 system In-Reply-To: References: <80f4f2b20909010644j7962dc4cub71e725d083072ef@mail.gmail.com> <20090901155059.GA56945@slackbox.xs4all.nl> <80f4f2b20909010940u460a7b81r6372f48690ac1246@mail.gmail.com> Message-ID: <80f4f2b20909020530w36ab8309k5595b5672e722579@mail.gmail.com> On Tue, Sep 1, 2009 at 1:39 PM, b. f. wrote: > You've given some of your reasons for using amd64 -- but are your > reasons for using 32-bit binaries on amd64 strong enough to make all > of this worthwhile? Why not just use 64-bit binaries for all but the > 32-bit-only ports? Sure, some 32-bit applications will actually run > faster (the opposite is also often true) or use fewer resources, but > is it worth the hassle? Mostly that's what I want to do. However I'd like to do some Python QT development with PyQT4, and would like to test the performance using py-psycho (i386 bit only). In that situation, I'm not sure if I'll have to install QT4 as 32 bit or not, likewise for X... It's a bit messy, but we'll see what happens. Thanks for all the advice and help, -Jim Stapleton From wmoran at potentialtech.com Wed Sep 2 12:33:50 2009 From: wmoran at potentialtech.com (Bill Moran) Date: Wed Sep 2 12:33:57 2009 Subject: memory usage displsy In-Reply-To: <4A9DB590.6080605@intersonic.se> References: <4A9D8057.8020307@intersonic.se> <20090901162931.d85ec256.wmoran@potentialtech.com> <20090901204147.GC2855@dan.emsphone.com> <4A9DB590.6080605@intersonic.se> Message-ID: <20090902083348.40c21529.wmoran@potentialtech.com> In response to Per olof Ljungmark : > Dan Nelson wrote: > > In the last episode (Sep 01), Bill Moran said: > >> In response to Per olof Ljungmark : > >>> What is a good way to find out how memory is used? Have a 6.4 box where > >>> memory is used by something but I fail to see what is using it - tried > >>> different switches to ps(1), tried the stat tools but a big chunk of > >>> memory does not show at all. > >>> > >>> A proper tool for analyzing memory usage "live", this is a production > >>> box? > >> I've always been able to get what I need from top. You can do -o res to > >> sort by resident memory usage, which helps. > > > > ps will sort by memory usage when given the -m flag. Also check ipcs -a to > > see if there are any sysv shared memory segments hanging arnound. If you > > don't see anything using the memory, where are you seeing that "something" > > is using it? > > > > ...and here is top output after I stopped Postfix, slapd and Cyrus-IMAP. > Still over 3G Active. You did not sort by res and there are only 40 processes showing, which means your output is truncated and may have truncated the problematic process. Please use "top -o res" to get the output sorted by memory usage, or don't truncate the output (former preferred). Also, please provide the output of "ipcs -a" -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/ From kstewart at owt.com Wed Sep 2 13:08:39 2009 From: kstewart at owt.com (Kent Stewart) Date: Wed Sep 2 13:08:47 2009 Subject: portupgrade broken, and apr won't build In-Reply-To: <4A9E476D.13800.3D61987B@d.forsyth.ru.ac.za> References: <4A9E476D.13800.3D61987B@d.forsyth.ru.ac.za> Message-ID: <200909020608.36523.kstewart@owt.com> On Wednesday 02 September 2009 01:22:37 am DA Forsyth wrote: > Hiya all > > Something weird going on with portypgrade (and maybe ports in > general) here. Somewhere between last months upgrade and this month, > portupgrade has started to ignore ports that are reported by > portversion as needing upgrading. The result is I have to force each > one, one at a time. Big schlep. > > For example > > > portversion -v | grep samba > > samba-3.0.35,1 < needs updating (port has 3.0.36,1) > > > portupgrade -vr samba > > ---> Session started at: Wed, 02 Sep 2009 10:18:47 +0200 > ** None has been installed or upgraded. > ---> Session ended at: Wed, 02 Sep 2009 10:18:47 +0200 (consumed > 00:00:00) > > The other thing is that devel/apr will not build. The make stops > with this > ... > checking whether it is safe to define __EXTENSIONS__... yes > checking for library containing strerror... none required > checking whether system uses EBCDIC... no > performing libtool configuration... > ./configure: 9753: Syntax error: word unexpected (expecting ")") > *** Error code 2 > > Stop in /usr/ports/devel/apr. > *** Error code 1 > > Stop in /usr/ports/devel/apr. > > I cvsup every Monday morning. I tried the upgrades last week but got > these failures and decided to wait a week and see if there are fixes. > Apparently not. I also had to manually fix the openssl distfile > (missing MD5 and SH256) so that it would actually download the > missing patch and confirm it. I have never had so much trouble with > the port system, who broke it? <-: > > Any ideas? My experience with portupgrade problems like this is that your INDEX-? and INDEX-?.db aren't being created properly after cvsuping. Portversion doesn't depend on them but portupgrade does. The INDEX-? that you download is always out of date. I use p5-FreeBSD-Portindex to keep them incrementally up todate, which is much faster then building the INDEX from scratch. After awhile, you have a mess and things don't build because the dependencies haven't been built. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html From peo at intersonic.se Wed Sep 2 13:32:39 2009 From: peo at intersonic.se (Per olof Ljungmark) Date: Wed Sep 2 13:32:46 2009 Subject: memory usage displsy In-Reply-To: <20090902083348.40c21529.wmoran@potentialtech.com> References: <4A9D8057.8020307@intersonic.se> <20090901162931.d85ec256.wmoran@potentialtech.com> <20090901204147.GC2855@dan.emsphone.com> <4A9DB590.6080605@intersonic.se> <20090902083348.40c21529.wmoran@potentialtech.com> Message-ID: <4A9E73F2.2000908@intersonic.se> Bill Moran wrote: > In response to Per olof Ljungmark : > >> Dan Nelson wrote: >>> In the last episode (Sep 01), Bill Moran said: >>>> In response to Per olof Ljungmark : >>>>> What is a good way to find out how memory is used? Have a 6.4 box where >>>>> memory is used by something but I fail to see what is using it - tried >>>>> different switches to ps(1), tried the stat tools but a big chunk of >>>>> memory does not show at all. >>>>> >>>>> A proper tool for analyzing memory usage "live", this is a production >>>>> box? >>>> I've always been able to get what I need from top. You can do -o res to >>>> sort by resident memory usage, which helps. >>> ps will sort by memory usage when given the -m flag. Also check ipcs -a to >>> see if there are any sysv shared memory segments hanging arnound. If you >>> don't see anything using the memory, where are you seeing that "something" >>> is using it? >>> >> ...and here is top output after I stopped Postfix, slapd and Cyrus-IMAP. >> Still over 3G Active. > > > > You did not sort by res and there are only 40 processes showing, which > means your output is truncated and may have truncated the problematic > process. > > Please use "top -o res" to get the output sorted by memory usage, or > don't truncate the output (former preferred). > > Also, please provide the output of "ipcs -a" > There was no more processes... ipcs -a Message Queues: T ID KEY MODE OWNER GROUP CREATOR CGROUP CBYTES QNUM QBYTES LSPID LRPID STIME RTIME CTIME Shared Memory: T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ CPID LPID ATIME DTIME CTIME Semaphores: T ID KEY MODE OWNER GROUP CREATOR CGROUP NSEMS OTIME CTIME From wmoran at potentialtech.com Wed Sep 2 13:43:44 2009 From: wmoran at potentialtech.com (Bill Moran) Date: Wed Sep 2 13:43:54 2009 Subject: memory usage displsy In-Reply-To: <4A9E73F2.2000908@intersonic.se> References: <4A9D8057.8020307@intersonic.se> <20090901162931.d85ec256.wmoran@potentialtech.com> <20090901204147.GC2855@dan.emsphone.com> <4A9DB590.6080605@intersonic.se> <20090902083348.40c21529.wmoran@potentialtech.com> <4A9E73F2.2000908@intersonic.se> Message-ID: <20090902094337.cb820a76.wmoran@potentialtech.com> In response to Per olof Ljungmark : > Bill Moran wrote: > > In response to Per olof Ljungmark : > > > >> Dan Nelson wrote: > >>> In the last episode (Sep 01), Bill Moran said: > >>>> In response to Per olof Ljungmark : > >>>>> What is a good way to find out how memory is used? Have a 6.4 box where > >>>>> memory is used by something but I fail to see what is using it - tried > >>>>> different switches to ps(1), tried the stat tools but a big chunk of > >>>>> memory does not show at all. > >>>>> > >>>>> A proper tool for analyzing memory usage "live", this is a production > >>>>> box? > >>>> I've always been able to get what I need from top. You can do -o res to > >>>> sort by resident memory usage, which helps. > >>> ps will sort by memory usage when given the -m flag. Also check ipcs -a to > >>> see if there are any sysv shared memory segments hanging arnound. If you > >>> don't see anything using the memory, where are you seeing that "something" > >>> is using it? > >>> > >> ...and here is top output after I stopped Postfix, slapd and Cyrus-IMAP. > >> Still over 3G Active. > > > > > > > > You did not sort by res and there are only 40 processes showing, which > > means your output is truncated and may have truncated the problematic > > process. > > > > Please use "top -o res" to get the output sorted by memory usage, or > > don't truncate the output (former preferred). > > > > Also, please provide the output of "ipcs -a" > > There was no more processes... >From your top output: > 45 processes: 1 running, 44 sleeping There were 40 processes listed, so there were 5 not shown. > ipcs -a OK, this verifies that nothing is tied up in shared memory. -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/ From lenzi.sergio at gmail.com Wed Sep 2 13:53:45 2009 From: lenzi.sergio at gmail.com (Sergio de Almeida Lenzi) Date: Wed Sep 2 13:53:52 2009 Subject: having problems copying a dvd In-Reply-To: <20090902051927.GA78814@slackbox.xs4all.nl> References: <0016e64cae6a217e26047290e16e@google.com> <20090902051927.GA78814@slackbox.xs4all.nl> Message-ID: <1251899620.8690.13.camel@localhost> Hello Thanks Roland for the parameters in the mplayer/mencoder... To make things easier.. I recomend to create a profile in the directory ~/.mplayer/mencoder.conf with the content: ========================================================= [pal] oac=lavc=yes ovc=lavc=yes lavcopts=vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=6000:vbitrate=4000 Lavcopts=keyint=15:trell=yes:mbd=2:precmp=2:subcmp=2:cmp=2:dia=-10 lavcopts=predia=-10:cbp=yes:mv0=yes:aspect=16/9 lavcopts=vqmin=1:lmin=1:dc=10:vstrict=0 lavcopts=acodec=ac3:abitrate=192 lavcopts=lumi_mask=0.2:dark_mask=0.15:scplx_mask=0.2:tcplx_mask=0.1 vf=scale=720:576,harddup=yes af=lavcresample=48000 mpegopts=format=dvd:tsaf=yes of=mpeg=yes srate=48000 channels=2 ofps=25 [pal_cinemascope] profile=pal vf=scale=720:432,expand=720:576,harddup=yes ========================================================== Or using the options from Roland.... extract the stream (as Roland said...) mplayer dvd://1 -dumpstream -dumpfile dvd.mpg crop detect... mplayer -vf cropdetect dvd.mpg and then finally encode with mencoder using the profile above and Roland's example... mencoder -profile pal -vf crop=704:416:10:80 dvd.mpg -o film.mpg the result will be a high definition video with 1024x576 PAL (25 fps) 16:9 aspect with audio AC3 192Kbps (plays using HDMI) in any dvd player... or in your computer. if the source (dvd.mpg) is in 2.35/1 ratio use -profile pal_cinemascope and mencoder will adjust the aspect for the video. From memberservice at vbv.com Wed Sep 2 13:59:35 2009 From: memberservice at vbv.com (Wal-Mart Services) Date: Wed Sep 2 13:59:48 2009 Subject: You have one new message from Wal-Mart Message-ID: <20090902084645.E1A6D02A36D398DE@vbv.com> You have been selected to access the Walm win a $150.00 gift certificate. Please [1]Click Here and complete the form to receive your reward. Thank you. This is an automated message. Please don' 0019362574-WMRTSRV. References 1. 3D"http://www.mathx.be/pag From mel.flynn+fbsd.questions at mailing.thruhere.net Wed Sep 2 14:24:42 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Wed Sep 2 14:25:02 2009 Subject: memory usage displsy In-Reply-To: <4A9D8FDB.9040908@prgmr.com> References: <4A9D8057.8020307@intersonic.se> <4A9D89CB.6060206@intersonic.se> <4A9D8FDB.9040908@prgmr.com> Message-ID: <200909021624.38655.mel.flynn+fbsd.questions@mailing.thruhere.net> On Tuesday 01 September 2009 23:19:23 Michael David Crawford wrote: > Per olof Ljungmark wrote: > > Well, my problem is that if I add up all I *can* see in top or ps it > > never gets near the by now 3G plus memory shown as "Active". Maybe one > > gig is accounted for, > > I'm not that familiar with FreeBSD yet, but the kernel uses memory which > might not be charged against any process. > > For example, to map some virtual memory requires memory to store the > mappings in. > > Open files have kernel structures, as do filesystems. > > If top or ps were only to show userspace memory allocations, then you're > right, a lot of memory would be unaccounted for. It doesn't for the Active to Free states. For individual processes, everything is shown that the process allocates. So for a file descriptor, an int would be allocated, where the kernel holds the real info. This is one cause for filled Active memory: a process polling multiple file descriptors, like a File Alteration Monitor under current desktops. The other, as Dan Nelson described, is file cache. If you want to be sure it's this, then reboot the machine and run: /etc/periodic/security/100.chksetuid You should see memory usage going up. If this causes a performance problem (i.e. You sometimes are subject to heavily increasing loads on a mailserver, that causes a lot of forks and file cache memory isn't unloaded fast enough), then you should either disable the security check or properly seperate data from binaries using partitions and mount data partitions with nosuid/noexec, so that these are omitted from the daily checks. -- Mel From peo at intersonic.se Wed Sep 2 15:13:56 2009 From: peo at intersonic.se (Per olof Ljungmark) Date: Wed Sep 2 15:14:07 2009 Subject: memory usage displsy In-Reply-To: <200909021624.38655.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <4A9D8057.8020307@intersonic.se> <4A9D89CB.6060206@intersonic.se> <4A9D8FDB.9040908@prgmr.com> <200909021624.38655.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: <4A9E8BB0.1020107@intersonic.se> Mel Flynn wrote: > On Tuesday 01 September 2009 23:19:23 Michael David Crawford wrote: >> Per olof Ljungmark wrote: >>> Well, my problem is that if I add up all I *can* see in top or ps it >>> never gets near the by now 3G plus memory shown as "Active". Maybe one >>> gig is accounted for, >> I'm not that familiar with FreeBSD yet, but the kernel uses memory which >> might not be charged against any process. >> >> For example, to map some virtual memory requires memory to store the >> mappings in. >> >> Open files have kernel structures, as do filesystems. >> >> If top or ps were only to show userspace memory allocations, then you're >> right, a lot of memory would be unaccounted for. > > It doesn't for the Active to Free states. For individual processes, everything > is shown that the process allocates. So for a file descriptor, an int would be > allocated, where the kernel holds the real info. > > This is one cause for filled Active memory: a process polling multiple file > descriptors, like a File Alteration Monitor under current desktops. > > The other, as Dan Nelson described, is file cache. If you want to be sure it's > this, then reboot the machine and run: > /etc/periodic/security/100.chksetuid > > You should see memory usage going up. If this causes a performance problem > (i.e. You sometimes are subject to heavily increasing loads on a mailserver, > that causes a lot of forks and file cache memory isn't unloaded fast enough), > then you should either disable the security check or properly seperate data > from binaries using partitions and mount data partitions with nosuid/noexec, > so that these are omitted from the daily checks. Thank you all for the informative answers, helped a lot to understand better what is going on. I cannot run 100.chksetuid on a production server but I will definitely do it on the testing one. Cheers, -- per From af300wsm at gmail.com Wed Sep 2 15:49:29 2009 From: af300wsm at gmail.com (Andrew Falanga) Date: Wed Sep 2 15:49:35 2009 Subject: having problems copying a dvd In-Reply-To: <1251899620.8690.13.camel@localhost> References: <0016e64cae6a217e26047290e16e@google.com> <20090902051927.GA78814@slackbox.xs4all.nl> <1251899620.8690.13.camel@localhost> Message-ID: <340a29540909020817v3b245ecdv21aed16460e690aa@mail.gmail.com> On Wed, Sep 2, 2009 at 7:53 AM, Sergio de Almeida Lenzi < lenzi.sergio@gmail.com> wrote: > Hello > > Thanks Roland for the parameters in the mplayer/mencoder... > > To make things easier.. I recomend to create a profile > in the directory ~/.mplayer/mencoder.conf with the content: > ========================================================= > [pal] > oac=lavc=yes > ovc=lavc=yes > lavcopts=vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=6000:vbitrate=4000 > Lavcopts=keyint=15:trell=yes:mbd=2:precmp=2:subcmp=2:cmp=2:dia=-10 > lavcopts=predia=-10:cbp=yes:mv0=yes:aspect=16/9 > lavcopts=vqmin=1:lmin=1:dc=10:vstrict=0 > lavcopts=acodec=ac3:abitrate=192 > lavcopts=lumi_mask=0.2:dark_mask=0.15:scplx_mask=0.2:tcplx_mask=0.1 > vf=scale=720:576,harddup=yes > af=lavcresample=48000 > mpegopts=format=dvd:tsaf=yes > of=mpeg=yes > srate=48000 > channels=2 > ofps=25 > > [pal_cinemascope] > profile=pal > vf=scale=720:432,expand=720:576,harddup=yes > ========================================================== > > Or using the options from Roland.... > extract the stream (as Roland said...) mplayer dvd://1 -dumpstream > -dumpfile dvd.mpg > crop detect... mplayer -vf cropdetect dvd.mpg > > and then finally encode with mencoder using the profile above and > Roland's example... > > mencoder -profile pal -vf crop=704:416:10:80 dvd.mpg -o film.mpg > > the result will be a high definition video with 1024x576 PAL (25 fps) > 16:9 aspect with audio AC3 192Kbps (plays using HDMI) > in any dvd player... or in your computer. > if the source (dvd.mpg) is in 2.35/1 ratio use -profile pal_cinemascope > and mencoder will adjust the aspect for the video. > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > To both, thanks a bunch for this information. This is awesome! I can't wait to install and try. -- A: Because it messes up the order in which people normally read text. Q: Why is it such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? From amvandemore at gmail.com Wed Sep 2 16:40:54 2009 From: amvandemore at gmail.com (Adam Vande More) Date: Wed Sep 2 16:41:01 2009 Subject: having problems copying a dvd In-Reply-To: <20090902051927.GA78814@slackbox.xs4all.nl> References: <0016e64cae6a217e26047290e16e@google.com> <20090902051927.GA78814@slackbox.xs4all.nl> Message-ID: <6201873e0909020940p2ccd37c8x6d2f36d4d6f07e85@mail.gmail.com> On Wed, Sep 2, 2009 at 12:19 AM, Roland Smith wrote: > On Wed, Sep 02, 2009 at 04:41:24AM +0000, af300wsm@gmail.com wrote: > > Hi, > > > > I'm trying to make a copy of a dvd that I have, video, using a technique > > that I gleaned from this list nearly two years ago that has always worked > > but now I'm having problems. (When I say always, please bear in mind that > I > > don't do this every day or even frequently). You'll also see calls to dd. > > These were attempts at "last ditch effort." I usually just use the copy > > command (got it from a thread entitled, "copying a dvd video," from > > November of 07). If dd will work but I just forgot to get the block size > > right, what is that supposed to be. > > My preferred technique is to use mplayer: > > mplayer dvd://1 -dumpstream -dumpfile dvd.mpg > > Be sure to play the DVD with mplayer to check which track is actually the > movie. Usually it is track #1, but not always. > > After copying the stream, I tend to re-encode it for backup purposes with > the > H.264 video codec with MP3 sound, which makes it a lot smaller. The first > step > is to watch the mpeg and see if there are black stripes around the picture: > > mplayer -vf cropdetect dvd.mpg > > This will give you a continuous list of crop lines, e.g: > [CROP] Crop area: X: 1..719 Y: 74..500 (-vf crop=704:416:10:80).0 > > Next step is to re-encode the mpeg file in two steps for enhanced quality, > including the crop information, if any: > > mencoder title.mpg -ovc x264 \ > -x264encopts subq=4:bframes=3:b_pyramid:weight_b:qp=18:threads=auto:pass=1 > \ > -idx -oac mp3lame -vf crop=704:416:10:80 -o /dev/null; \ > mencoder title.mpg -ovc x264 -x264encopts \ > subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:\ > b_pyramid:weight_b:qp=18:threads=auto:pass=2 -vf crop=704:416:10:80 \ > -idx -oac mp3lame -o title.avi; > > If you want to include a specific language or subtitle, don't forget to > include the correct options for that; see the mplayer manual. > > 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) > multimedia/transcode is good option as well. tccat will dump track vob without borders, use tcprobe to find track you wish to dump. -- Adam Vande More From kurt.buff at gmail.com Wed Sep 2 16:54:43 2009 From: kurt.buff at gmail.com (Kurt Buff) Date: Wed Sep 2 16:54:58 2009 Subject: Daily security report oddity... In-Reply-To: <4A9E1D63.8030101@mapper.nl> References: <4A9E1D63.8030101@mapper.nl> Message-ID: On Wed, Sep 2, 2009 at 00:23, Mark Stapper wrote: > Kurt Buff wrote: >> I got a daily security run email from one of my machines on Monday >> morning, with the following entry: >> >> ? ? ?zmx1.zetron.com login failures: >> ? ? ?Aug 30 06:57:17 zmx1 su: BAD SU mlee to root on /dev/ttyp2 >> ? ? ?Aug 30 09:42:17 zmx1 su: BAD SU mlee to root on /dev/ttyp0 >> >> What's puzzling is that this account has been completely inactive for >> well over a year - this fellow is long gone, and I simply didn't clean >> it up - that's my bad, but that's not the puzzling part. >> >> I traced it down, and found out that he had not logged in on Sunday. >> The auth.log is, as you can see from the listing below, quite old. The >> entries referenced above are from two years ago. >> >> ? ? ? zmx1# ll /var/log/a* >> ? ? ? -rw------- ?1 root ?wheel ?71845 Sep ?1 15:42 /var/log/auth.log >> ? ? ? -rw------- ?1 root ?wheel ? 6087 Aug 29 ?2007 /var/log/auth.log.0.bz2 >> ? ? ? -rw------- ?1 root ?wheel ? 5774 Aug 12 ?2007 /var/log/auth.log.1.bz2 >> ? ? ? -rw------- ?1 root ?wheel ? 5795 Jul 24 ?2007 /var/log/auth.log.2.bz2 >> ? ? ? -rw------- ?1 root ?wheel ? 6813 Jul ?6 ?2007 /var/log/auth.log.3.bz2 >> >> >> So, a couple of questions: >> >> Why would the daily security run pick up something from *two years >> ago* and only report it again today? The machine hasn't been rebooted >> in a very long time, if that makes a difference. >> >> Is there any way to prevent something like this happening again - or >> perhaps can I force the entry of the year into the date field for the >> auth.log entries? >> >> Kurt > > Hello, > > If you look at the syntax of the logfile, you will see no year is listed. > Most likely the whole file is parsed on security run. Since the logfile > has been rotated the 30th of august 2007, it's very much possible you'll > get all your messages all over again. > Perhaps it's wise to rotate you logfiles once a year just in case... > And it make no difference the machine hasn't been rebooted in a very > long time... (define "very long time" ;-) > http://uptimes-project.org/hosts/view/150 ) Heh. Well, for me a very long time is more than a year, because security patches for the OS will at some point mandate a reboot - and usually in less than a year. I suppose there's a way to do auth log rotation automagically - would that be sysutils/logrotate? Kurt From dnelson at allantgroup.com Wed Sep 2 17:03:04 2009 From: dnelson at allantgroup.com (Dan Nelson) Date: Wed Sep 2 17:03:12 2009 Subject: Daily security report oddity... In-Reply-To: References: <4A9E1D63.8030101@mapper.nl> Message-ID: <20090902170301.GE2855@dan.emsphone.com> In the last episode (Sep 02), Kurt Buff said: > On Wed, Sep 2, 2009 at 00:23, Mark Stapper wrote: > > Kurt Buff wrote: > >> I traced it down, and found out that he had not logged in on Sunday. > >> The auth.log is, as you can see from the listing below, quite old. The > >> entries referenced above are from two years ago. > >> > >> ? ? ? zmx1# ll /var/log/a* > >> ? ? ? -rw------- ?1 root ?wheel ?71845 Sep ?1 15:42 /var/log/auth.log > >> ? ? ? -rw------- ?1 root ?wheel ? 6087 Aug 29 ?2007 /var/log/auth.log.0.bz2 > >> ? ? ? -rw------- ?1 root ?wheel ? 5774 Aug 12 ?2007 /var/log/auth.log.1.bz2 > >> ? ? ? -rw------- ?1 root ?wheel ? 5795 Jul 24 ?2007 /var/log/auth.log.2.bz2 > >> ? ? ? -rw------- ?1 root ?wheel ? 6813 Jul ?6 ?2007 /var/log/auth.log.3.bz2 > >> > >> So, a couple of questions: > >> > >> Why would the daily security run pick up something from *two years ago* > >> and only report it again today? The machine hasn't been rebooted in a > >> very long time, if that makes a difference. > >> > >> Is there any way to prevent something like this happening again - or > >> perhaps can I force the entry of the year into the date field for the > >> auth.log entries? > > > > If you look at the syntax of the logfile, you will see no year is > > listed. Most likely the whole file is parsed on security run. Since > > the logfile has been rotated the 30th of august 2007, it's very much > > possible you'll get all your messages all over again. Perhaps it's wise > > to rotate you logfiles once a year just in case... And it make no > > difference the machine hasn't been rebooted in a very long time... > > (define "very long time" ;-) http://uptimes-project.org/hosts/view/150 ) > > Heh. Well, for me a very long time is more than a year, because > security patches for the OS will at some point mandate a reboot - and > usually in less than a year. > > I suppose there's a way to do auth log rotation automagically - would > that be sysutils/logrotate? The system already rotates auth.log. Just edit /etc/newsyslog.conf and add a date check to the line for auth.log. The default is to roll it when it hits 100KB, but if you add something like $M1D0 to the "when" column it'll rotate it monthly as well. -- Dan Nelson dnelson@allantgroup.com From kurt.buff at gmail.com Wed Sep 2 17:43:39 2009 From: kurt.buff at gmail.com (Kurt Buff) Date: Wed Sep 2 17:43:45 2009 Subject: Daily security report oddity... In-Reply-To: <20090902170301.GE2855@dan.emsphone.com> References: <4A9E1D63.8030101@mapper.nl> <20090902170301.GE2855@dan.emsphone.com> Message-ID: On Wed, Sep 2, 2009 at 10:03, Dan Nelson wrote: > In the last episode (Sep 02), Kurt Buff said: >> Heh. Well, for me a very long time is more than a year, because >> security patches for the OS will at some point mandate a reboot - and >> usually in less than a year. >> >> I suppose there's a way to do auth log rotation automagically - would >> that be sysutils/logrotate? > > The system already rotates auth.log. ?Just edit /etc/newsyslog.conf and add > a date check to the line for auth.log. ?The default is to roll it when it > hits 100KB, but if you add something like $M1D0 to the "when" column it'll > rotate it monthly as well. > > -- > ? ? ? ?Dan Nelson > ? ? ? ?dnelson@allantgroup.com That's exactly the clue I needed. Thanks, Dan. I'm looking at 'man newsyslog.conf' right now. Kurt From tajudd at gmail.com Wed Sep 2 19:06:29 2009 From: tajudd at gmail.com (Tim Judd) Date: Wed Sep 2 19:06:37 2009 Subject: 'alias' + sudo In-Reply-To: <20090902072659.7829da56@scorpio.seibercom.net> References: <20090902072659.7829da56@scorpio.seibercom.net> Message-ID: On 9/2/09, Jerry wrote: > I have set up several 'alias' definitions in my .bashrc file. They are > honored when run as either a regular user or as root. However, when I > prefix a command with 'sudo', the alias is no longer honored. In other > words, the actual command is run;however, any flags that I was passing > to it via 'alias' are lost. How can I circumvent this annoyance. > > Example, I often use 'pico' from within 'xterm'. I set up an alias that > causes pico to use the mouse; i.e., pico -m which works fine as long as > I do not prefix the command with 'sudo' > Because sudo calls the binary, via SUID on sudo. It doesn't pay attention to user profiles or rc files (like .bashrc). I don't use sudo, so I can't recommend past that. --TJ From jeronimocalvop at googlemail.com Wed Sep 2 19:26:47 2009 From: jeronimocalvop at googlemail.com (Jeronimo Calvo) Date: Wed Sep 2 19:26:55 2009 Subject: Error compiling KDE 3 Message-ID: Hi folks, Trying to compile KDE 3, I am getting the folliwing error... any ideas? ===> Installing for gnutls-2.8.3 ===> gnutls-2.8.3 depends on executable: pkg-config - found ===> Generating temporary packing list ===> Checking if security/gnutls already installed ===> An older version of security/gnutls is already installed (gnutls-2.6.4) You may wish to ``make deinstall'' and install this port again by ``make reinstall'' to upgrade it properly. If you really wish to overwrite the old port of security/gnutls without deleting it first, set the variable "FORCE_PKG_REGISTER" in your environment or the "make install" command line. *** Error code 1 Stop in /usr/ports/security/gnutls. *** Error code 1 Stop in /usr/ports/print/cups-client. *** Error code 1 Stop in /usr/ports/print/cups-client. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33. *** Error code 1 Stop in /usr/ports/x11-toolkits/qt33. *** Error code 1 Stop in /usr/ports/x11/kde3. From gesbbb at yahoo.com Wed Sep 2 19:28:23 2009 From: gesbbb at yahoo.com (Jerry) Date: Wed Sep 2 19:28:30 2009 Subject: 'alias' + sudo In-Reply-To: References: <20090902072659.7829da56@scorpio.seibercom.net> Message-ID: <20090902152821.6baf568c@scorpio.seibercom.net> On Wed, 2 Sep 2009 13:06:28 -0600 Tim Judd wrote: [snip] > Because sudo calls the binary, via SUID on sudo. It doesn't pay > attention to user profiles or rc files (like .bashrc). > > > I don't use sudo, so I can't recommend past that. In other words, sudo is not compatible with the bash 'alias' feature. Is that correct? I Googled and found several references to sudo and alias; however, no consensus on how to circumvent the problem. -- Jerry gesbbb@yahoo.com In response to President Obama's complaint that FOX News doesn't show enough Black and Hispanic people on their network, FOX has announced that they will now air "America's Most Wanted" TWICE a week. From ltcddats at nildram.co.uk Wed Sep 2 19:43:50 2009 From: ltcddats at nildram.co.uk (ltcddats@nildram.co.uk) Date: Wed Sep 2 19:43:56 2009 Subject: Error compiling KDE 3 In-Reply-To: References: Message-ID: <20090902204347.20e28947@davids-website.com> On Wed, 2 Sep 2009 19:26:46 +0000 Jeronimo Calvo wrote: > Hi folks, > > Trying to compile KDE 3, I am getting the folliwing error... > > any ideas? > > > ===> Installing for gnutls-2.8.3 > ===> gnutls-2.8.3 depends on executable: pkg-config - found > ===> Generating temporary packing list > ===> Checking if security/gnutls already installed > ===> An older version of security/gnutls is already installed > (gnutls-2.6.4) You may wish to ``make deinstall'' and install this > port again by ``make reinstall'' to upgrade it properly. > If you really wish to overwrite the old port of security/gnutls > without deleting it first, set the variable "FORCE_PKG_REGISTER" > in your environment or the "make install" command line. > *** Error code 1 > > Stop in /usr/ports/security/gnutls. > *** Error code 1 > > Stop in /usr/ports/print/cups-client. > *** Error code 1 > > Stop in /usr/ports/print/cups-client. > *** Error code 1 > > Stop in /usr/ports/x11-toolkits/qt33. > *** Error code 1 > > Stop in /usr/ports/x11-toolkits/qt33. > *** Error code 1 > > Stop in /usr/ports/x11/kde3. make install -DFORCE_PKG_REGISTER clean > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > From gesbbb at yahoo.com Wed Sep 2 20:03:38 2009 From: gesbbb at yahoo.com (Jerry) Date: Wed Sep 2 20:03:45 2009 Subject: Error compiling KDE 3 In-Reply-To: References: Message-ID: <20090902160336.70d2a4c4@scorpio.seibercom.net> On Wed, 2 Sep 2009 19:26:46 +0000 Jeronimo Calvo wrote: > Trying to compile KDE 3, I am getting the folliwing error... > > any ideas? > > > ===> Installing for gnutls-2.8.3 > ===> gnutls-2.8.3 depends on executable: pkg-config - found > ===> Generating temporary packing list > ===> Checking if security/gnutls already installed > ===> An older version of security/gnutls is already installed > (gnutls-2.6.4) You may wish to ``make deinstall'' and install this > port again by ``make reinstall'' to upgrade it properly. > If you really wish to overwrite the old port of security/gnutls > without deleting it first, set the variable "FORCE_PKG_REGISTER" > in your environment or the "make install" command line. cd /usr/ports/security/gnutls make deinstall && make reinstall && make distclean cd - make install -- Jerry gesbbb@yahoo.com It's sweet to be remembered, but it's often cheaper to be forgotten. From dnelson at allantgroup.com Wed Sep 2 20:06:50 2009 From: dnelson at allantgroup.com (Dan Nelson) Date: Wed Sep 2 20:06:57 2009 Subject: 'alias' + sudo In-Reply-To: <20090902152821.6baf568c@scorpio.seibercom.net> References: <20090902072659.7829da56@scorpio.seibercom.net> <20090902152821.6baf568c@scorpio.seibercom.net> Message-ID: <20090902200648.GF2855@dan.emsphone.com> In the last episode (Sep 02), Jerry said: > On Wed, 2 Sep 2009 13:06:28 -0600 > Tim Judd wrote: > > Because sudo calls the binary, via SUID on sudo. It doesn't pay > > attention to user profiles or rc files (like .bashrc). > > > > I don't use sudo, so I can't recommend past that. > > In other words, sudo is not compatible with the bash 'alias' feature. Is > that correct? I Googled and found several references to sudo and alias; > however, no consensus on how to circumvent the problem. sudo does not run root's shell at all; it directly runs whatever is given it on the commandline. Workarounds include creating an alias that includes sudo in it (alias rootpicom='sudo pico -m'), or creating a shell script that runs what your alias would have, so you can run "sudo picom": /usr/local/bin/picom #! /bin/sh pico -m "$@" -- Dan Nelson dnelson@allantgroup.com From kes-kes at yandex.ru Wed Sep 2 20:14:13 2009 From: kes-kes at yandex.ru (=?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?=) Date: Wed Sep 2 20:14:21 2009 Subject: Kernel panic Message-ID: <966459791.20090902231409@yandex.ru> ????????????, Freebsd-questions. Fatal trap 18: integer divide fault while in kernel mode cpuid = 0; apic id = 00 instruction pointer = 0x20:0xc0af79b5 stack pointer = 0x28:0xc1b55cb8 frame pointer = 0x28:0xc1b55cb8 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, IOPL = 0 current process = 11 (idle: cpu0) trap number = 18 panic: integer divide fault cpuid = 0 Uptime: 2h56m59s Physical memory: 115 MB Dumping 33 MB: 18 2 Reading symbols from /boot/kernel/ng_socket.ko...Reading symbols from /boot/kernel/ng_socket.ko.symbols...done. done. Loaded symbols for /boot/kernel/ng_socket.ko Reading symbols from /boot/kernel/ng_mppc.ko...Reading symbols from /boot/kernel/ng_mppc.ko.symbols...done. done. Loaded symbols for /boot/kernel/ng_mppc.ko Reading symbols from /boot/kernel/rc4.ko...Reading symbols from /boot/kernel/rc4.ko.symbols...done. done. Loaded symbols for /boot/kernel/rc4.ko Reading symbols from /boot/kernel/ng_iface.ko...Reading symbols from /boot/kernel/ng_iface.ko.symbols...done. done. Loaded symbols for /boot/kernel/ng_iface.ko Reading symbols from /boot/kernel/ng_ppp.ko...Reading symbols from /boot/kernel/ng_ppp.ko.symbols...done. done. Loaded symbols for /boot/kernel/ng_ppp.ko #0 doadump () at pcpu.h:196 196 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); reboot ~ Wed Sep 2 22:47 kes ttyp1 10.10.16.18 Wed Sep 2 22:29 - crash (00:17) kes ttyp0 10.10.16.18 Wed Sep 2 22:29 - crash (00:18) reboot ~ Wed Sep 2 22:27 kes ttyp0 10.10.16.18 Wed Sep 2 22:19 - crash (00:07) reboot ~ Wed Sep 2 22:19 kes ttyp0 10.10.16.18 Wed Sep 2 22:17 - crash (00:02) reboot ~ Wed Sep 2 22:09 reboot ~ Wed Sep 2 21:56 reboot ~ Wed Sep 2 21:46 reboot ~ Wed Sep 2 21:39 reboot ~ Wed Sep 2 21:34 reboot ~ Wed Sep 2 21:14 reboot ~ Wed Sep 2 21:05 reboot ~ Wed Sep 2 20:47 reboot ~ Wed Sep 2 20:41 reboot ~ Wed Sep 2 20:18 reboot ~ Wed Sep 2 18:51 reboot ~ Wed Sep 2 17:27 reboot ~ Wed Sep 2 14:29 reboot ~ Wed Sep 2 10:58 I have build latest 7.2 vpn# uname -a FreeBSD vpn.in 7.2-RELEASE-p3 FreeBSD 7.2-RELEASE-p3 #0: Mon Aug 31 23:57:36 EEST 2009 kes@vpn.in:/usr/obj/usr/src/sys/KES_KERN_v72 i386 That version is not stable??? -- ? ?????????, ??????? mailto:kes-kes@yandex.ru From lenzi.sergio at gmail.com Wed Sep 2 23:05:42 2009 From: lenzi.sergio at gmail.com (Sergio de Almeida Lenzi) Date: Wed Sep 2 23:05:50 2009 Subject: skype 2.1 beta for linux In-Reply-To: <20090902222407.GF82548@bsdcrew.de> References: <4A9EB91C.4060203@icyb.net.ua> <20090902222407.GF82548@bsdcrew.de> Message-ID: <1251932737.10025.5.camel@localhost> Em Qui, 2009-09-03 ?s 00:24 +0200, Martin Wilke escreveu: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Wed, Sep 02, 2009 at 09:27:40PM +0300, Andriy Gapon wrote: > > > > Just noticed this: > > http://www.skype.com/intl/en/download/skype/linux/ > > > > It doesn't work, this version missing the OSS support, > I talked to the guys we get later a oss version! > Interesting... in the site it says it uses pulseaudio... if it uses pulseaudio, will work with FreeBSD > - - Martin > > > > -- > > Andriy Gapon > > _______________________________________________ > > freebsd-emulation@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-emulation > > To unsubscribe, send any mail to "freebsd-emulation-unsubscribe@freebsd.org" > > > > - -- > > +-----------------------+-------------------------------+ > | PGP : 0xB1E6FCE9 | Jabber : miwi(at)BSDCrew.de | > | Skype : splash_111 | Mail : miwi(at)FreeBSD.org | > +-----------------------+-------------------------------+ > | Mess with the Best, Die like the Rest! | > +-----------------------+-------------------------------+ > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.11 (FreeBSD) > > iEYEARECAAYFAkqe8IcACgkQdLJIhLHm/OmkxACg00eR6eTBtWR6EbFPaEuciVRy > AgwAoNUiEBM3ZnDzFkIx52dBPQsqEaPk > =BS/5 > -----END PGP SIGNATURE----- > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" From kline at thought.org Wed Sep 2 23:44:05 2009 From: kline at thought.org (Gary Kline) Date: Wed Sep 2 23:44:12 2009 Subject: difficult-to-phrase question... Message-ID: <20090902234324.GA1735@thought.org> guys, (of either gender) here's one that is a bit difficult to figure out how to ask, but here's my first shot: i'm looking for a file what contains string "S". the filename in this case has a zillion letters, but that beside the point. i can use grep to find "S" and grep gives me the file[s] that have the string. now, is there any easy way of reading that file, or deleting or otherwise munging that file? nutshell is that every time i reboot (into kde), kde wastes time/cpu spawning unwanted whatever: versions of konqueror, kttsd, ksayit, &c. [[i found these files in ~/.kde/share/config/session, about 20, dated may, 09 to oct 08. rm'ing the bunch would get rid of the instantiate problem, but having a script to diddle with a found string "S" would be useful esp'ly if the filename of pathname were long. i'll mouse swipe the string and fname to prove my point. thanks for any help. gary ps: if scripting this is too grizzly i'll do it in C and do an inline post of src and example use. p4 16:18 [5058] rgr www.h-online ~/.kde/share/config/session ./konqueror_101be1a31b9d1000124363848400000011730067_1243656675_647947:12:ViewT0_URL[$e]=http://www.h-online.com/open/Google-Wave-The-instant-wiki-communicator--/news/113410 -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php 10% slice of my latest novel: http://www.thought.org/10pc From jon at radel.com Thu Sep 3 00:02:37 2009 From: jon at radel.com (Jon Radel) Date: Thu Sep 3 00:02:45 2009 Subject: difficult-to-phrase question... In-Reply-To: <20090902234324.GA1735@thought.org> References: <20090902234324.GA1735@thought.org> Message-ID: <4A9F078A.1050800@radel.com> Gary Kline wrote: > > guys, (of either gender) > > here's one that is a bit difficult to figure out how to ask, but > here's my first shot: > > i'm looking for a file what contains string "S". the filename > in this case has a zillion letters, but that beside the point. > > i can use grep to find "S" and grep gives me the file[s] that > have the string. now, is there any easy way of reading that > file, or deleting or otherwise munging that file? > > nutshell is that every time i reboot (into kde), kde wastes > time/cpu spawning unwanted whatever: versions of konqueror, kttsd, > ksayit, &c. [[i found these files in > ~/.kde/share/config/session, about 20, dated may, 09 to oct 08. > rm'ing the bunch would get rid of the instantiate problem, but > having a script to diddle with a found string "S" would be > useful esp'ly if the filename of pathname were long. > > i'll mouse swipe the string and fname to prove my point. > thanks for any help. > > gary > > ps: if scripting this is too grizzly i'll do it in C and do an > inline post of src and example use. > Do you mean something like rm `grep -l S *` or am I completely missing the point of what you're trying to do? -- --Jon Radel jon@radel.com -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3283 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090903/92a1baf2/smime.bin From freebsd at edvax.de Thu Sep 3 00:06:00 2009 From: freebsd at edvax.de (Polytropon) Date: Thu Sep 3 00:06:07 2009 Subject: difficult-to-phrase question... In-Reply-To: <20090902234324.GA1735@thought.org> References: <20090902234324.GA1735@thought.org> Message-ID: <20090903020557.2df7c6bf.freebsd@edvax.de> On Wed, 2 Sep 2009 16:43:30 -0700, Gary Kline wrote: > i'm looking for a file what contains string "S". the filename > in this case has a zillion letters, but that beside the point. > > i can use grep to find "S" and grep gives me the file[s] that > have the string. now, is there any easy way of reading that > file, or deleting or otherwise munging that file? I would suggest one of my favourite tools, the Midnight Commander, available via ports as misc/mc or misc/mc-lite - or from a package. First you run the find dialog, Meta-? (Esc, ?, if you don't have a Meta key). Enter file mask if needed, starting directory (usu- ally .) and "S" for the search string. Then a list with the items found will come up. In order to view a file from this list, press PF3 on a file. The viewer will automatically skip to where "S" has been found in the file. If you press ENTER on the file, it will be selected in one of the panels, and you can move or delete it. > ps: if scripting this is too grizzly i'll do it in C and do an > inline post of src and example use. If you exactly know what to do with the file, scripting might be the easiest solution. The more interaction, the less optimum it is. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From amvandemore at gmail.com Thu Sep 3 00:23:06 2009 From: amvandemore at gmail.com (Adam Vande More) Date: Thu Sep 3 00:23:13 2009 Subject: difficult-to-phrase question... In-Reply-To: <20090902234324.GA1735@thought.org> References: <20090902234324.GA1735@thought.org> Message-ID: <6201873e0909021723o124e75e5q72223989b138f395@mail.gmail.com> On Wed, Sep 2, 2009 at 6:43 PM, Gary Kline wrote: > > guys, (of either gender) > > here's one that is a bit difficult to figure out how to ask, but > here's my first shot: > > i'm looking for a file what contains string "S". the filename > in this case has a zillion letters, but that beside the point. > > i can use grep to find "S" and grep gives me the file[s] that > have the string. now, is there any easy way of reading that > file, or deleting or otherwise munging that file? > > nutshell is that every time i reboot (into kde), kde wastes > time/cpu spawning unwanted whatever: versions of konqueror, kttsd, > ksayit, &c. [[i found these files in > ~/.kde/share/config/session, about 20, dated may, 09 to oct 08. > rm'ing the bunch would get rid of the instantiate problem, but > having a script to diddle with a found string "S" would be > useful esp'ly if the filename of pathname were long. > > i'll mouse swipe the string and fname to prove my point. > thanks for any help. > > gary > > ps: if scripting this is too grizzly i'll do it in C and do an > inline post of src and example use. > > > > > p4 16:18 [5058] rgr www.h-online > ~/.kde/share/config/session > > ./konqueror_101be1a31b9d1000124363848400000011730067_1243656675_647947:12:ViewT0_URL[$e]= > http://www.h-online.com/open/Google-Wave-The-instant-wiki-communicator--/news/113410 > > Have you tried logging out of kde with those apps closed? -- Adam Vande More From freebsd at edvax.de Thu Sep 3 00:28:55 2009 From: freebsd at edvax.de (Polytropon) Date: Thu Sep 3 00:29:02 2009 Subject: 'alias' + sudo In-Reply-To: <20090902200648.GF2855@dan.emsphone.com> References: <20090902072659.7829da56@scorpio.seibercom.net> <20090902152821.6baf568c@scorpio.seibercom.net> <20090902200648.GF2855@dan.emsphone.com> Message-ID: <20090903022852.3223abec.freebsd@edvax.de> On Wed, 2 Sep 2009 15:06:48 -0500, Dan Nelson wrote: > sudo does not run root's shell at all; it directly runs whatever is given it > on the commandline. Another idea would to be to call sudo with the desired shell as argument (in order to inherit the aliases), followed by a command as argument to the shell (in order to execute a particular command), something like % sudo bash -c "my_command_alias" It may be possible that bash requires an additional argument to tell it to read ~/.bashrc when invoked in a non-interactive manner. Keep in mind that I haven't tried this solution because I don't use bash on a regular basis. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From lijimlee at gmail.com Thu Sep 3 00:36:25 2009 From: lijimlee at gmail.com (Ji) Date: Thu Sep 3 00:36:31 2009 Subject: got "invalid argument" error when using dd Message-ID: <8fd8f02c0909021708n73f2f454v22b6a14ed5c717a7@mail.gmail.com> Hi all, I am using FreeBSD-7.2-release-amd64. I got an got "invalid argument" error when using dd dd if=s1.image of=/dev/ad4s1 bs=1m dd: /dev/ad4s1: Invalid argument 12284+1 records in 12284+0 records out 12880707584 bytes transferred in 746.571300 secs (17253151 bytes/sec) echo $? 1 (s1.image is the image file of /dev/ad4s1 generated by "dd if=/dev/ad4s1 of=s1.image bs=1m" ahead. ) The error occurs at the moment that dd almost finishes. I don't quite understand the error, Can anybody enlighten me? Thanks. Ji From andrewlylegould at gmail.com Thu Sep 3 01:08:27 2009 From: andrewlylegould at gmail.com (Andrew Gould) Date: Thu Sep 3 01:08:34 2009 Subject: Error compiling KDE 3 In-Reply-To: <20090902160336.70d2a4c4@scorpio.seibercom.net> References: <20090902160336.70d2a4c4@scorpio.seibercom.net> Message-ID: On Wed, Sep 2, 2009 at 3:03 PM, Jerry wrote: > On Wed, 2 Sep 2009 19:26:46 +0000 > Jeronimo Calvo wrote: > >> Trying to compile KDE 3, I am getting the folliwing error... >> >> any ideas? >> >> >> ===> ?Installing for gnutls-2.8.3 >> ===> ? gnutls-2.8.3 depends on executable: pkg-config - found >> ===> ? Generating temporary packing list >> ===> ?Checking if security/gnutls already installed >> ===> ? An older version of security/gnutls is already installed >> (gnutls-2.6.4) You may wish to ``make deinstall'' and install this >> port again by ``make reinstall'' to upgrade it properly. >> ? ? ? If you really wish to overwrite the old port of security/gnutls >> ? ? ? without deleting it first, set the variable "FORCE_PKG_REGISTER" >> ? ? ? in your environment or the "make install" command line. > > cd /usr/ports/security/gnutls > make deinstall && make reinstall && make distclean > cd - > make install > > -- > Jerry > gesbbb@yahoo.com > The package list may have changed between version 2.6.4 and 2.8.3. I would recommend replacing "make deinstall", above, with: pkg_delete gnutls-2.6.4 Andrew From jerrry94087 at yahoo.com Thu Sep 3 04:41:37 2009 From: jerrry94087 at yahoo.com (jerry M) Date: Thu Sep 3 04:41:43 2009 Subject: Why /bin/sh doesn't like the line: if test "x$my_var" == "xyes"; then Message-ID: <423199.64505.qm@web110716.mail.gq1.yahoo.com> configure file got this line and it causes the message: test: xyes: unexpected operator But removing spaces around == or replacing == with = makes it to work. On Linux though this line works fine. Why spaces around == would cause failure? What is the version of /bin/sh currently used in 7.2? Where is it taken from? --version, -v, -version don't ever print version I guess due to FreeBSD policy of not versioning individual utilities. From freebsd at edvax.de Thu Sep 3 04:59:42 2009 From: freebsd at edvax.de (Polytropon) Date: Thu Sep 3 04:59:50 2009 Subject: Why /bin/sh doesn't like the line: if test "x$my_var" == "xyes"; then In-Reply-To: <423199.64505.qm@web110716.mail.gq1.yahoo.com> References: <423199.64505.qm@web110716.mail.gq1.yahoo.com> Message-ID: <20090903065938.9196791c.freebsd@edvax.de> On Thu, 3 Sep 2009 04:14:56 +0000 (GMT), jerry M wrote: > configure file got this line and it causes the message: test: xyes: unexpected operator > But removing spaces around == or replacing == with = makes it to work. Maybe those files are not intended to run on FreeBSD's standard Bourne shell? > On Linux though this line works fine. This may be due to the fact that on most Linusi, sh is bash. On FreeBSD, sh is a different shell than bash; it's the "original" Bourne shell. > Why spaces around == would cause failure? First of al, refer to "man test" for the string operators. The form "==" isn't mentioned there. s1 = s2 True if the strings s1 and s2 are identical. s1 != s2 True if the strings s1 and s2 are not identical. s1 < s2 True if string s1 comes before s2 based on the binary value of their characters. s1 > s2 True if string s1 comes after s2 based on the binary value of their characters. Furthermore, it's wise to enclose the variable names in curly brackets when used in a compositum. Your statement if test "x$my_var" == "xyes"; then would correctly read as follows: if test "x${my_var}" = "xyes"; then You can of course use [ instead of test, so it would be if [ "x${my_var}" = "xyes" ]; then > What > is the version of /bin/sh currently used in 7.2? Where is it taken > from? --version, -v, -version don't ever print version I guess due to > FreeBSD policy of not versioning individual utilities. FreeBSD's Bourne shell does not have GNU long options such as --version. According to the shell's manpage, -v is used for verbosity, and -version isn't even defined. Refer to "man sh" for more options. The parts of the base system (as in opposite to Linux where no real "the OS" does exist) usually have the version of the release, but to be more precise, the individual version can be obtained from the source code. It can be found in /usr/src/bin/sh. For example, I have @(#)main.c 8.6 (Berkeley) 5/28/95 $FreeBSD: src/bin/sh/main.c,v 1.29 2006/10/07 16:51:16 stefanf Exp $ in the source file main.c, and the Makefile indicates @(#)Makefile 8.4 (Berkeley) 5/5/95 $FreeBSD: src/bin/sh/Makefile,v 1.46 2006/04/17 17:55:11 schweikh Exp $ as its particular version number and date. The manual "man sh" includes this statement: The sh utility is the standard command interpreter for the system. The current version of sh is in the process of being changed to conform with the IEEE Std 1003.2 (``POSIX.2'') specification for the shell. This ver- sion has many features which make it appear similar in some respects to the Korn shell, but it is not a Korn shell clone like pdksh. Only fea- tures designated by POSIX, plus a few Berkeley extensions, are being incorporated into this shell. This man page is not intended to be a tutorial nor a complete specification of the shell. as well as This version of sh was rewritten in 1989 under the BSD license after the Bourne shell from AT&T System V Release 4 UNIX. It's important, especially for interoperability, to declare #/bin/sh only and ONLY if the script is for Bourne shell. If you're using bash specifics, use #!/usr/local/bin/bash instead. Keep in mind that you'll have to install bash (pkg_add -r bash) in this case. A tidy way of coding, such as using the curly brackets, is an important thing, too, as you can see. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From dnelson at allantgroup.com Thu Sep 3 05:14:02 2009 From: dnelson at allantgroup.com (Dan Nelson) Date: Thu Sep 3 05:14:09 2009 Subject: Why /bin/sh doesn't like the line: if test "x$my_var" == "xyes"; then In-Reply-To: <423199.64505.qm@web110716.mail.gq1.yahoo.com> References: <423199.64505.qm@web110716.mail.gq1.yahoo.com> Message-ID: <20090903051400.GG2855@dan.emsphone.com> In the last episode (Sep 03), jerry M said: > configure file got this line and it causes the message: test: xyes: > unexpected operator But removing spaces around == or replacing == with = > makes it to work. > > On Linux though this line works fine. > > Why spaces around == would cause failure? What is the version of /bin/sh > currently used in 7.2? Where is it taken from? --version, -v, -version > don't ever print version I guess due to FreeBSD policy of not versioning > individual utilities. == isn't a valid comparison operator for the test command. See the FreeBSD manpage, or the Posix docs: http://www.opengroup.org/onlinepubs/9699919799/toc.htm. You need to use =. Certain Linux distributions use bash as /bin/sh, which shortcuts the test command internally and allows bash extensions, even in bourne-shell mode. Debian and Ubuntu use dash instead of bash, and this script would fail on them as well. -- Dan Nelson dnelson@allantgroup.com From daniel at toomuchdata.se Thu Sep 3 09:21:06 2009 From: daniel at toomuchdata.se (Daniel Eriksson) Date: Thu Sep 3 09:21:13 2009 Subject: ZFS and DMA read error In-Reply-To: <4A9CBDBB.3060403@mapper.nl> References: <4A9B731E.9050400@mapper.nl> <4A9CBDBB.3060403@mapper.nl> Message-ID: <4F9C9299A10AE74E89EA580D14AA10A635E9C3@royal64.emp.zapto.org> Mark Stapper wrote: > People are REALLY pushing spinrite lately... I did get it though, just to try it. SpinRite is OK but it hasn't been updated in ages. It does not work on large drives. 250GB works, 1TB does not. Haven't tried it on 500GB drives. If I were you I would 'zpool offline ...' the offending drive, rewrite the entire drive with 'dd if=/dev/zero ...' and then run a SMART selftest on it using smartmontools ('smartctl -t long /dev/adX'). When you 'zpool online ...' the drive ZFS will resilver it for you. After doing all of this I would then run a 'zpool scrub ...'. If the scrub finishes without checksum errors and without any ATA-related errors the drive is probably in good enough condition to keep using, but watch out for more ATA errors. If the drive is dying it won't be long before it starts to generate more ATA errors. /Daniel Eriksson From stark at mapper.nl Thu Sep 3 09:43:11 2009 From: stark at mapper.nl (Mark Stapper) Date: Thu Sep 3 09:43:17 2009 Subject: ZFS and DMA read error In-Reply-To: <4F9C9299A10AE74E89EA580D14AA10A635E9C3@royal64.emp.zapto.org> References: <4A9B731E.9050400@mapper.nl> <4A9CBDBB.3060403@mapper.nl> <4F9C9299A10AE74E89EA580D14AA10A635E9C3@royal64.emp.zapto.org> Message-ID: <4A9F8F96.3090806@mapper.nl> > SpinRite is OK but it hasn't been updated in ages. It does not work on > large drives. 250GB works, 1TB does not. Haven't tried it on 500GB > drives. > So it will be useles in... well in this case it IS useles... > If I were you I would 'zpool offline ...' the offending drive, rewrite > the entire drive with 'dd if=/dev/zero ...' and then run a SMART > selftest on it using smartmontools ('smartctl -t long /dev/adX'). When > you 'zpool online ...' the drive ZFS will resilver it for you. After > doing all of this I would then run a 'zpool scrub ...'. If the scrub > finishes without checksum errors and without any ATA-related errors the > drive is probably in good enough condition to keep using, but watch out > for more ATA errors. If the drive is dying it won't be long before it > starts to generate more ATA errors. > Yeah, i did the long SMART selftest three times now, each of which it failed on the same LBA address. Did the scrub as well, took two hours, and no DMA errors were reported. Why would I want to clear my driver before I run these tests? I ordered a "spare" drive so I'll wait until it arrives, replace the faulty drive with this one by dd-ing data from one to the other (I have only 4 SATA ports so I can't do "zpool replace"). Or meybe I'll just swap them out and do "zpool scrub". I'm uncomfortable doing this though, because if any of the other drives fails/crashes/flips me off I'll have to restore from my backup which took two days to make... (which is the drawback of a gzipped zfs backup partition) Once I've replaced the drive I'll run hitachi's Drive Fitness Test on the (presumably) failing drive. Even if it doesn't generate any ATA errors during everyday use, the error it gave before, combined with the failing SMART self test disturbs me. I bought the drive 2 months ago, so my faith has gone. However, if it passes Hitachi's DFT my faith will be restored :-). Greetz, Mark -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090903/c13422f5/signature.pgp From odhiambo at gmail.com Thu Sep 3 10:07:29 2009 From: odhiambo at gmail.com (Odhiambo Washington) Date: Thu Sep 3 10:07:35 2009 Subject: webserver and natd In-Reply-To: <899670.61058.qm@web57505.mail.re1.yahoo.com> References: <899670.61058.qm@web57505.mail.re1.yahoo.com> Message-ID: <991123400909030307q65bd62cfk4af4352f2bd87b37@mail.gmail.com> On Wed, Sep 2, 2009 at 1:02 AM, Razvan Cristea wrote: > Hello, > > i have a webserver useing freebsd 7.2 and i user the same server to route > internet to a local network. > the internet on the local network is working fine but the sites from the > webserver are loading verry slow. > > i fave this configuration in rc.conf: > > firewall_enable="YES" > firewall_type="open" > firewall_logging="YES" > gateway_enable="YES" > natd_enable="YES" > natd_interface="bce0" > > Can you please help me? The server needs to "know itself" either via local DNS or via /etc/hosts So you may need entries in, say, /etc/hosts for every website running on it. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube From cristea.razvan at yahoo.com Thu Sep 3 10:36:08 2009 From: cristea.razvan at yahoo.com (Razvan Cristea) Date: Thu Sep 3 10:36:15 2009 Subject: webserver and natd In-Reply-To: <991123400909030307q65bd62cfk4af4352f2bd87b37@mail.gmail.com> Message-ID: <484912.17751.qm@web57512.mail.re1.yahoo.com> Solved. It's a bug in version 7.2 info here: http://groups.google.com/group/muc.lists.freebsd.stable/browse_thread/thread/35f137a0e43b3175/d317dc58af6d4be2 Cu prietenie, Razvan Cristea ===================== http://www.adventube.ro ===================== --- On Thu, 9/3/09, Odhiambo Washington wrote: From: Odhiambo Washington Subject: Re: webserver and natd To: "Razvan Cristea" Cc: freebsd-questions@freebsd.org Date: Thursday, September 3, 2009, 1:07 PM On Wed, Sep 2, 2009 at 1:02 AM, Razvan Cristea wrote: Hello, ? i have a webserver useing freebsd 7.2 and i user the same server to route internet to?a local network. the internet on the local network is working fine but the sites from the webserver are loading verry slow. ? i fave this configuration in rc.conf: ? firewall_enable="YES" firewall_type="open" firewall_logging="YES" gateway_enable="YES" natd_enable="YES" natd_interface="bce0" ? Can you please help me? The server needs to "know itself" either via local DNS or via /etc/hosts So you may need entries in, say, /etc/hosts for every website running on it. ? -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." ? ? ? ? ? ? ? -- Lucky Dube From artis.caune at gmail.com Thu Sep 3 10:39:16 2009 From: artis.caune at gmail.com (Artis Caune) Date: Thu Sep 3 10:39:22 2009 Subject: Boot from RAIDZ in 8.0-BETA3? In-Reply-To: <970380130909011043n3340f9b0k2cec2b0b58f6f414@mail.gmail.com> References: <4A99D308.6000806@polands.org> <9e20d71e0909010054k66410ab7y207939e82705fc8f@mail.gmail.com> <970380130909011043n3340f9b0k2cec2b0b58f6f414@mail.gmail.com> Message-ID: <9e20d71e0909030339p288051d1le296ae574b22597a@mail.gmail.com> 2009/9/1 Jason Garrett : > IMHO, unless you have a NEED to do this with the 8-BETA's I would not > attempt. While I had this working in 8.0-BETA1 upon reboot I would loose > data from entire mountpoints on the root pool. First it was /usr/ports, not > a big deal. Then it was /var/db/pkg.. the system had no idea what was > installed and what wasn't. This was a test machine, so no harm, no foul. I > would definatley not recommend this AT ALL. Maybe you just messed with wrong zfs option or in wrong order and your mountpoints are not lost, but not-mounted or over-mounted? It's a little bit tricky to get zfs-root working, some things can go wrong if installation is not automated. -- Artis Caune Everything should be made as simple as possible, but not simpler. From mail25 at bzerk.org Thu Sep 3 11:36:45 2009 From: mail25 at bzerk.org (Ruben de Groot) Date: Thu Sep 3 11:36:53 2009 Subject: Why /bin/sh doesn't like the line: if test "x$my_var" == "xyes"; then In-Reply-To: <20090903065938.9196791c.freebsd@edvax.de> References: <423199.64505.qm@web110716.mail.gq1.yahoo.com> <20090903065938.9196791c.freebsd@edvax.de> Message-ID: <20090903113637.GA78802@ei.bzerk.org> On Thu, Sep 03, 2009 at 06:59:38AM +0200, Polytropon typed: > > > What > > is the version of /bin/sh currently used in 7.2? Where is it taken > > from? --version, -v, -version don't ever print version I guess due to > > FreeBSD policy of not versioning individual utilities. > > FreeBSD's Bourne shell does not have GNU long options such > as --version. According to the shell's manpage, -v is used > for verbosity, and -version isn't even defined. Refer to > "man sh" for more options. > > The parts of the base system (as in opposite to Linux where no > real "the OS" does exist) usually have the version of the > release, but to be more precise, the individual version can be > obtained from the source code. It can be found in /usr/src/bin/sh. > For example, I have > > @(#)main.c 8.6 (Berkeley) 5/28/95 > $FreeBSD: src/bin/sh/main.c,v 1.29 2006/10/07 16:51:16 stefanf Exp $ > > in the source file main.c, and the Makefile indicates > > @(#)Makefile 8.4 (Berkeley) 5/5/95 > $FreeBSD: src/bin/sh/Makefile,v 1.46 2006/04/17 17:55:11 schweikh Exp $ > > as its particular version number and date. Also, versions of all individual source files are usually displayed by ident(1): nih# ident /bin/sh /bin/sh: $FreeBSD: src/lib/csu/i386-elf/crti.S,v 1.7.20.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/lib/csu/i386-elf/crtn.S,v 1.6.20.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/lib/csu/common/crtbrand.c,v 1.4.20.1.6.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/lib/csu/i386-elf/crt1.c,v 1.15.8.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/alias.c,v 1.20.8.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/arith.y,v 1.21.2.1.4.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/arith_lex.l,v 1.24.8.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/cd.c,v 1.35.2.1.4.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/bltin/echo.c,v 1.14.28.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/error.c,v 1.26.8.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/eval.c,v 1.54.2.1.4.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/exec.c,v 1.31.8.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/expand.c,v 1.51.2.2.4.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/histedit.c,v 1.29.8.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/input.c,v 1.23.8.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/jobs.c,v 1.72.8.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/mail.c,v 1.14.8.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/main.c,v 1.29.8.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/memalloc.c,v 1.27.8.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/miscbltin.c,v 1.35.2.1.2.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/mystring.c,v 1.13.28.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/options.c,v 1.25.2.2.4.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/output.c,v 1.20.8.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/parser.c,v 1.58.2.1.4.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/redir.c,v 1.26.28.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/show.c,v 1.23.8.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/test/test.c,v 1.53.20.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/trap.c,v 1.32.8.1 2009/04/15 03:14:26 kensmith Exp $ $FreeBSD: src/bin/sh/var.c,v 1.37.8.1 2009/04/15 03:14:26 kensmith Exp $ Ruben From stanb at panix.com Thu Sep 3 11:48:59 2009 From: stanb at panix.com (stan) Date: Thu Sep 3 11:49:06 2009 Subject: What invokes cricket on FreeBSD Message-ID: <20090903114857.GA635@teddy.fas.com> I have inherited a system that uses Cricket on FreeBSD to do some data collection. I have set this up myself in the distnat past, but this time I asked a contractor to set it up. I no longer have access to this contractor, and the toher day, we shut down the system this was running on, and when we rebooted the system, cricket id not resume collecting data. I don't see anyhting in /usr/local/etc/rc.d to start it up, nor do I see anything in /etc/crontag. I don't seen any processes owned by cricket running. In FreeBSD, how is this process noramally invoked? -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From lists at bertram-scharpf.de Thu Sep 3 11:50:22 2009 From: lists at bertram-scharpf.de (Bertram Scharpf) Date: Thu Sep 3 11:50:32 2009 Subject: Why /bin/sh doesn't like the line: if test "x$my_var" == "xyes"; then In-Reply-To: <423199.64505.qm@web110716.mail.gq1.yahoo.com> References: <423199.64505.qm@web110716.mail.gq1.yahoo.com> Message-ID: <20090903115018.GA21032@marge.bs.l> Hi, Am Donnerstag, 03. Sep 2009, 04:14:56 +0000 schrieb jerry M: > configure file got this line and it causes the message: test: > xyes: unexpected operator But removing spaces around == or > replacing == with = makes it to work. > > On Linux though this line works fine. As `man test' describes, the /bin/test executable does not recognize a == operator. Neither in `sh' nor in `bash' the `test' executable will be called (unless written as /bin/test). In both cases it is a builtin command. The Sh builtin works like the `test' executable; the Bash builtin recognizes ==. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de From stanb at panix.com Thu Sep 3 12:25:34 2009 From: stanb at panix.com (stan) Date: Thu Sep 3 12:25:40 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <20090903114857.GA635@teddy.fas.com> References: <20090903114857.GA635@teddy.fas.com> Message-ID: <20090903122532.GA1604@teddy.fas.com> On Thu, Sep 03, 2009 at 07:48:57AM -0400, stan wrote: > I have inherited a system that uses Cricket on FreeBSD to do some data > collection. I have set this up myself in the distnat past, but this time I > asked a contractor to set it up. I no longer have access to this > contractor, and the toher day, we shut down the system this was running on, > and when we rebooted the system, cricket id not resume collecting data. > > I don't see anyhting in /usr/local/etc/rc.d to start it up, nor do I see > anything in /etc/crontag. I don't seen any processes owned by cricket > running. > > In FreeBSD, how is this process noramally invoked? Sorry to reply to my own message, but I have more data. I did find -rw------- 1 root wheel 288 Jan 12 2009 /var/cron/tabs/cricke Which is, I am failry certain, what is _intended_ to invoke the cricket process. However, acording to the cricket logs, the last time I have an entry is Aug 29th, which was when the machine was shut down. So, I decided to try running this command by hand. Now, to do so I need to be the cricket user, so I tried to su - cricket. I was told that this user was not avaialble. Looking in /etc/passwd. I found that this users shell was listed as /usr/sbin/nologin. I edited /etc/paswd to change this to /nin/sh, but I still get the smae error message when I try to su to that user. What do I need to change to be able to su to this suer, and might this be the reason tha it's crontab entry is notbeing run? -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From m.seaman at infracaninophile.co.uk Thu Sep 3 12:43:33 2009 From: m.seaman at infracaninophile.co.uk (Matthew Seaman) Date: Thu Sep 3 12:43:41 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <20090903122532.GA1604@teddy.fas.com> References: <20090903114857.GA635@teddy.fas.com> <20090903122532.GA1604@teddy.fas.com> Message-ID: <4A9FB9E3.6060207@infracaninophile.co.uk> stan wrote: > On Thu, Sep 03, 2009 at 07:48:57AM -0400, stan wrote: >> I have inherited a system that uses Cricket on FreeBSD to do some data >> collection. I have set this up myself in the distnat past, but this time I >> asked a contractor to set it up. I no longer have access to this >> contractor, and the toher day, we shut down the system this was running on, >> and when we rebooted the system, cricket id not resume collecting data. >> >> I don't see anyhting in /usr/local/etc/rc.d to start it up, nor do I see >> anything in /etc/crontag. I don't seen any processes owned by cricket >> running. >> >> In FreeBSD, how is this process noramally invoked? > > Sorry to reply to my own message, but I have more data. I did find > > -rw------- 1 root wheel 288 Jan 12 2009 /var/cron/tabs/cricke > > Which is, I am failry certain, what is _intended_ to invoke the cricket > process. However, acording to the cricket logs, the last time I have an > entry is Aug 29th, which was when the machine was shut down. So, I decided > to try running this command by hand. Now, to do so I need to be the cricket > user, so I tried to su - cricket. I was told that this user was not > avaialble. Looking in /etc/passwd. I found that this users shell was listed > as /usr/sbin/nologin. I edited /etc/paswd to change this to /nin/sh, but I > still get the smae error message when I try to su to that user. > > What do I need to change to be able to su to this suer, and might this be > the reason tha it's crontab entry is notbeing run? Try: # su -m cricket although the best way to examine and/or modify that user's crontab is: # crontab -e -u cricket The cricket user not having a usable shell should not stop cron(8) from running jobs, as it defaults to using /bin/sh or else the value of any SHELL= line in the crontab for running the specified jobs. 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090903/4e529099/signature.pgp From gesbbb at yahoo.com Thu Sep 3 12:57:01 2009 From: gesbbb at yahoo.com (Jerry) Date: Thu Sep 3 12:57:14 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <20090903122532.GA1604@teddy.fas.com> References: <20090903114857.GA635@teddy.fas.com> <20090903122532.GA1604@teddy.fas.com> Message-ID: <20090903085659.419bebfb@scorpio.seibercom.net> On Thu, 3 Sep 2009 08:25:32 -0400 stan wrote: > On Thu, Sep 03, 2009 at 07:48:57AM -0400, stan wrote: > > I have inherited a system that uses Cricket on FreeBSD to do some > > data collection. I have set this up myself in the distnat past, but > > this time I asked a contractor to set it up. I no longer have > > access to this contractor, and the toher day, we shut down the > > system this was running on, and when we rebooted the system, > > cricket id not resume collecting data. > > > > I don't see anyhting in /usr/local/etc/rc.d to start it up, nor do > > I see anything in /etc/crontag. I don't seen any processes owned by > > cricket running. > > > > In FreeBSD, how is this process noramally invoked? > > Sorry to reply to my own message, but I have more data. I did find > > -rw------- 1 root wheel 288 Jan 12 2009 /var/cron/tabs/cricke > > Which is, I am failry certain, what is _intended_ to invoke the > cricket process. However, acording to the cricket logs, the last time > I have an entry is Aug 29th, which was when the machine was shut > down. So, I decided to try running this command by hand. Now, to do > so I need to be the cricket user, so I tried to su - cricket. I was > told that this user was not avaialble. Looking in /etc/passwd. I > found that this users shell was listed as /usr/sbin/nologin. I > edited /etc/paswd to change this to /nin/sh, but I still get the smae > error message when I try to su to that user. > > What do I need to change to be able to su to this suer, and might > this be the reason tha it's crontab entry is notbeing run? There is no native port for Cricket on FreeBSD; however, I did find this URL: http://cricket.sourceforge.net/support/doc/beginner.html Perhaps if might be of some assistance. -- Jerry gesbbb@yahoo.com If you sow your wild oats, hope for a crop failure. From bennett at cs.niu.edu Thu Sep 3 13:00:52 2009 From: bennett at cs.niu.edu (Scott Bennett) Date: Thu Sep 3 13:01:01 2009 Subject: cc -march questions Message-ID: <200909031300.n83D0aJj013596@mp.cs.niu.edu> What exactly does "cc -march=prescott" enable cc to do? Does it include instruction scheduling for the pipeline structure of the Prescott CPUs? Does it include other options, e.g., "-mmmx -msse -msse2 -msse3"? Thanks in advance for any information on the above! Scott Bennett, Comm. ASMELG, CFIAG ********************************************************************** * Internet: bennett at cs.niu.edu * *--------------------------------------------------------------------* * "A well regulated and disciplined militia, is at all times a good * * objection to the introduction of that bane of all free governments * * -- a standing army." * * -- Gov. John Hancock, New York Journal, 28 January 1790 * ********************************************************************** From stanb at panix.com Thu Sep 3 13:14:14 2009 From: stanb at panix.com (stan) Date: Thu Sep 3 13:14:21 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <20090903085659.419bebfb@scorpio.seibercom.net> References: <20090903114857.GA635@teddy.fas.com> <20090903122532.GA1604@teddy.fas.com> <20090903085659.419bebfb@scorpio.seibercom.net> Message-ID: <20090903131412.GA3053@teddy.fas.com> On Thu, Sep 03, 2009 at 08:56:59AM -0400, Jerry wrote: > On Thu, 3 Sep 2009 08:25:32 -0400 > stan wrote: > > > On Thu, Sep 03, 2009 at 07:48:57AM -0400, stan wrote: > > > I have inherited a system that uses Cricket on FreeBSD to do some > > > data collection. I have set this up myself in the distnat past, but > > > this time I asked a contractor to set it up. I no longer have > > > access to this contractor, and the toher day, we shut down the > > > system this was running on, and when we rebooted the system, > > > cricket id not resume collecting data. > > > > > > I don't see anyhting in /usr/local/etc/rc.d to start it up, nor do > > > I see anything in /etc/crontag. I don't seen any processes owned by > > > cricket running. > > > > > > In FreeBSD, how is this process noramally invoked? > > > > Sorry to reply to my own message, but I have more data. I did find > > > > -rw------- 1 root wheel 288 Jan 12 2009 /var/cron/tabs/cricke > > > > Which is, I am failry certain, what is _intended_ to invoke the > > cricket process. However, acording to the cricket logs, the last time > > I have an entry is Aug 29th, which was when the machine was shut > > down. So, I decided to try running this command by hand. Now, to do > > so I need to be the cricket user, so I tried to su - cricket. I was > > told that this user was not avaialble. Looking in /etc/passwd. I > > found that this users shell was listed as /usr/sbin/nologin. I > > edited /etc/paswd to change this to /nin/sh, but I still get the smae > > error message when I try to su to that user. > > > > What do I need to change to be able to su to this suer, and might > > this be the reason tha it's crontab entry is notbeing run? > > There is no native port for Cricket on FreeBSD; however, I did find > this URL: http://cricket.sourceforge.net/support/doc/beginner.html > Interersting, I have the following directory /usr/ports/net-mgmt/cricket -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From stanb at panix.com Thu Sep 3 13:15:24 2009 From: stanb at panix.com (stan) Date: Thu Sep 3 13:15:31 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <4A9FB9E3.6060207@infracaninophile.co.uk> References: <20090903114857.GA635@teddy.fas.com> <20090903122532.GA1604@teddy.fas.com> <4A9FB9E3.6060207@infracaninophile.co.uk> Message-ID: <20090903131522.GB3053@teddy.fas.com> On Thu, Sep 03, 2009 at 01:43:15PM +0100, Matthew Seaman wrote: > stan wrote: > > On Thu, Sep 03, 2009 at 07:48:57AM -0400, stan wrote: > >> I have inherited a system that uses Cricket on FreeBSD to do some data > >> collection. I have set this up myself in the distnat past, but this time I > >> asked a contractor to set it up. I no longer have access to this > >> contractor, and the toher day, we shut down the system this was running on, > >> and when we rebooted the system, cricket id not resume collecting data. > >> > >> I don't see anyhting in /usr/local/etc/rc.d to start it up, nor do I see > >> anything in /etc/crontag. I don't seen any processes owned by cricket > >> running. > >> > >> In FreeBSD, how is this process noramally invoked? > > > > Sorry to reply to my own message, but I have more data. I did find > > > > -rw------- 1 root wheel 288 Jan 12 2009 /var/cron/tabs/cricke > > > > Which is, I am failry certain, what is _intended_ to invoke the cricket > > process. However, acording to the cricket logs, the last time I have an > > entry is Aug 29th, which was when the machine was shut down. So, I decided > > to try running this command by hand. Now, to do so I need to be the cricket > > user, so I tried to su - cricket. I was told that this user was not > > avaialble. Looking in /etc/passwd. I found that this users shell was listed > > as /usr/sbin/nologin. I edited /etc/paswd to change this to /nin/sh, but I > > still get the smae error message when I try to su to that user. > > > > What do I need to change to be able to su to this suer, and might this be > > the reason tha it's crontab entry is notbeing run? > > Try: > > # su -m cricket > Thanks, hw dose that differ from just plain "su" that is without the - that causes the new users environemt to be invoked? -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From stanb at panix.com Thu Sep 3 13:22:58 2009 From: stanb at panix.com (stan) Date: Thu Sep 3 13:23:05 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <4A9FB9E3.6060207@infracaninophile.co.uk> References: <20090903114857.GA635@teddy.fas.com> <20090903122532.GA1604@teddy.fas.com> <4A9FB9E3.6060207@infracaninophile.co.uk> Message-ID: <20090903132256.GA3270@teddy.fas.com> On Thu, Sep 03, 2009 at 01:43:15PM +0100, Matthew Seaman wrote: > stan wrote: > > On Thu, Sep 03, 2009 at 07:48:57AM -0400, stan wrote: > >> I have inherited a system that uses Cricket on FreeBSD to do some data > >> collection. I have set this up myself in the distnat past, but this time I > >> asked a contractor to set it up. I no longer have access to this > >> contractor, and the toher day, we shut down the system this was running on, > >> and when we rebooted the system, cricket id not resume collecting data. > >> > >> I don't see anyhting in /usr/local/etc/rc.d to start it up, nor do I see > >> anything in /etc/crontag. I don't seen any processes owned by cricket > >> running. > >> > >> In FreeBSD, how is this process noramally invoked? > > > > Sorry to reply to my own message, but I have more data. I did find > > > > -rw------- 1 root wheel 288 Jan 12 2009 /var/cron/tabs/cricke > > > > Which is, I am failry certain, what is _intended_ to invoke the cricket > > process. However, acording to the cricket logs, the last time I have an > > entry is Aug 29th, which was when the machine was shut down. So, I decided > > to try running this command by hand. Now, to do so I need to be the cricket > > user, so I tried to su - cricket. I was told that this user was not > > avaialble. Looking in /etc/passwd. I found that this users shell was listed > > as /usr/sbin/nologin. I edited /etc/paswd to change this to /nin/sh, but I > > still get the smae error message when I try to su to that user. > > > > What do I need to change to be able to su to this suer, and might this be > > the reason tha it's crontab entry is notbeing run? > > Try: > > # su -m cricket > > although the best way to examine and/or modify that user's crontab > is: > > # crontab -e -u cricket > OK, I was able to execute the cricket collector caoomand bu using the su - format, and it ran corectly. Cany anyone sugest what to check to see why cron is not executing this command? I see no evidence of it's running in either the cricket logs' or cron's logs. Thanks. -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From tfcheng at gmail.com Thu Sep 3 13:27:14 2009 From: tfcheng at gmail.com (Tsu-Fan Cheng) Date: Thu Sep 3 13:27:20 2009 Subject: bookkeeping software Message-ID: Hi, I am looking for a port on 7.2R that can do general small family bookkeeping, I am not running gnome or kde, does anyone have any recommendation? thank you!! TFC From amvandemore at gmail.com Thu Sep 3 13:31:26 2009 From: amvandemore at gmail.com (Adam Vande More) Date: Thu Sep 3 13:31:32 2009 Subject: bookkeeping software In-Reply-To: References: Message-ID: <6201873e0909030631o46db807aw806c6ee5abde90fa@mail.gmail.com> On Thu, Sep 3, 2009 at 8:27 AM, Tsu-Fan Cheng wrote: > Hi, > I am looking for a port on 7.2R that can do general small family > bookkeeping, I am not running gnome or kde, does anyone have any > recommendation? thank you!! > > > TFC > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > I used sql-ledger, but I may be more inclined to use /usr/ports/finance/ledgersmb now as it's a more open community. -- Adam Vande More From stanb at panix.com Thu Sep 3 13:33:37 2009 From: stanb at panix.com (stan) Date: Thu Sep 3 13:33:43 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <20090903132256.GA3270@teddy.fas.com> References: <20090903114857.GA635@teddy.fas.com> <20090903122532.GA1604@teddy.fas.com> <4A9FB9E3.6060207@infracaninophile.co.uk> <20090903132256.GA3270@teddy.fas.com> Message-ID: <20090903133335.GA3884@teddy.fas.com> On Thu, Sep 03, 2009 at 09:22:56AM -0400, stan wrote: > On Thu, Sep 03, 2009 at 01:43:15PM +0100, Matthew Seaman wrote: > > stan wrote: > > > On Thu, Sep 03, 2009 at 07:48:57AM -0400, stan wrote: > > >> I have inherited a system that uses Cricket on FreeBSD to do some data > > >> collection. I have set this up myself in the distnat past, but this time I > > >> asked a contractor to set it up. I no longer have access to this > > >> contractor, and the toher day, we shut down the system this was running on, > > >> and when we rebooted the system, cricket id not resume collecting data. > > >> > > >> I don't see anyhting in /usr/local/etc/rc.d to start it up, nor do I see > > >> anything in /etc/crontag. I don't seen any processes owned by cricket > > >> running. > > >> > > >> In FreeBSD, how is this process noramally invoked? > > > > > > Sorry to reply to my own message, but I have more data. I did find > > > > > > -rw------- 1 root wheel 288 Jan 12 2009 /var/cron/tabs/cricke > > > > > > Which is, I am failry certain, what is _intended_ to invoke the cricket > > > process. However, acording to the cricket logs, the last time I have an > > > entry is Aug 29th, which was when the machine was shut down. So, I decided > > > to try running this command by hand. Now, to do so I need to be the cricket > > > user, so I tried to su - cricket. I was told that this user was not > > > avaialble. Looking in /etc/passwd. I found that this users shell was listed > > > as /usr/sbin/nologin. I edited /etc/paswd to change this to /nin/sh, but I > > > still get the smae error message when I try to su to that user. > > > > > > What do I need to change to be able to su to this suer, and might this be > > > the reason tha it's crontab entry is notbeing run? > > > > Try: > > > > # su -m cricket > > > > although the best way to examine and/or modify that user's crontab > > is: > > > > # crontab -e -u cricket > > > > OK, I was able to execute the cricket collector caoomand bu using the su - > format, and it ran corectly. > > Cany anyone sugest what to check to see why cron is not executing this > command? I see no evidence of it's running in either the cricket logs' or > cron's logs. > > Thanks. > Repkying to my own message again :-( OK, I found in the cron man page the following: Before running a command from a per-account crontab file, cron checks the status of the account with pam(3) and skips the command if the account is unavailable, e.g., locked out or expired. So, now the question is, how do I unlock that user? -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From stanb at panix.com Thu Sep 3 13:41:10 2009 From: stanb at panix.com (stan) Date: Thu Sep 3 13:41:16 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <20090903133335.GA3884@teddy.fas.com> References: <20090903114857.GA635@teddy.fas.com> <20090903122532.GA1604@teddy.fas.com> <4A9FB9E3.6060207@infracaninophile.co.uk> <20090903132256.GA3270@teddy.fas.com> <20090903133335.GA3884@teddy.fas.com> Message-ID: <20090903134107.GA3930@teddy.fas.com> On Thu, Sep 03, 2009 at 09:33:35AM -0400, stan wrote: > On Thu, Sep 03, 2009 at 09:22:56AM -0400, stan wrote: > > On Thu, Sep 03, 2009 at 01:43:15PM +0100, Matthew Seaman wrote: > > > stan wrote: > > > > On Thu, Sep 03, 2009 at 07:48:57AM -0400, stan wrote: > > > >> I have inherited a system that uses Cricket on FreeBSD to do some data > > > >> collection. I have set this up myself in the distnat past, but this time I > > > >> asked a contractor to set it up. I no longer have access to this > > > >> contractor, and the toher day, we shut down the system this was running on, > > > >> and when we rebooted the system, cricket id not resume collecting data. > > > >> > > > >> I don't see anyhting in /usr/local/etc/rc.d to start it up, nor do I see > > > >> anything in /etc/crontag. I don't seen any processes owned by cricket > > > >> running. > > > >> > > > >> In FreeBSD, how is this process noramally invoked? > > > > > > > > Sorry to reply to my own message, but I have more data. I did find > > > > > > > > -rw------- 1 root wheel 288 Jan 12 2009 /var/cron/tabs/cricke > > > > > > > > Which is, I am failry certain, what is _intended_ to invoke the cricket > > > > process. However, acording to the cricket logs, the last time I have an > > > > entry is Aug 29th, which was when the machine was shut down. So, I decided > > > > to try running this command by hand. Now, to do so I need to be the cricket > > > > user, so I tried to su - cricket. I was told that this user was not > > > > avaialble. Looking in /etc/passwd. I found that this users shell was listed > > > > as /usr/sbin/nologin. I edited /etc/paswd to change this to /nin/sh, but I > > > > still get the smae error message when I try to su to that user. > > > > > > > > What do I need to change to be able to su to this suer, and might this be > > > > the reason tha it's crontab entry is notbeing run? > > > > > > Try: > > > > > > # su -m cricket > > > > > > although the best way to examine and/or modify that user's crontab > > > is: > > > > > > # crontab -e -u cricket > > > > > > > OK, I was able to execute the cricket collector caoomand bu using the su - > > format, and it ran corectly. > > > > Cany anyone sugest what to check to see why cron is not executing this > > command? I see no evidence of it's running in either the cricket logs' or > > cron's logs. > > > > Thanks. > > > Repkying to my own message again :-( > > > OK, I found in the cron man page the following: > > Before running a command from a per-account crontab file, cron > checks the status of the account with pam(3) and skips the command if > the account is unavailable, e.g., locked out or expired. > > So, now the question is, how do I unlock that user? > This gets strnager. I found the pw cammand, which should do thatm but: pnoc# pw unlock cricket pw: user 'cricket' is not locked So, how come: pnoc# su - cricket This account is currently not available. -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From freebsd at qeng-ho.org Thu Sep 3 14:02:40 2009 From: freebsd at qeng-ho.org (Arthur Chance) Date: Thu Sep 3 14:02:48 2009 Subject: ZFS and DMA read error In-Reply-To: <4A9F8F96.3090806@mapper.nl> References: <4A9B731E.9050400@mapper.nl> <4A9CBDBB.3060403@mapper.nl> <4F9C9299A10AE74E89EA580D14AA10A635E9C3@royal64.emp.zapto.org> <4A9F8F96.3090806@mapper.nl> Message-ID: <4A9FCC7E.3070209@qeng-ho.org> Mark Stapper wrote: [snip] > I ordered a "spare" drive so I'll wait until it arrives, replace the > faulty drive with this one by dd-ing data from one to the other (I have > only 4 SATA ports so I can't do "zpool replace"). zpool replace has two forms zpool replace pool old-device new-device and zpool replace pool device The latter is for when you pull the old drive and put the new one on the same {S,P}ATA port because you've no free ports. I did that a couple of weeks ago when one of my raidz drives fried (in its warranty period!) and it worked like a dream. I did a zpool replace and then a zpool scrub to make sure everything was OK because of this section of the zpool man page: Scrubbing and resilvering are very similar operations. The differ- ence is that resilvering only examines data that ZFS knows to be out of date (for example, when attaching a new device to a mirror or replacing an existing device), whereas scrubbing examines all data to discover silent errors due to hardware faults or disk fail- ure. From mel.flynn+fbsd.questions at mailing.thruhere.net Thu Sep 3 14:22:47 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Thu Sep 3 14:22:53 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <20090903134107.GA3930@teddy.fas.com> References: <20090903114857.GA635@teddy.fas.com> <20090903133335.GA3884@teddy.fas.com> <20090903134107.GA3930@teddy.fas.com> Message-ID: <200909031622.43318.mel.flynn+fbsd.questions@mailing.thruhere.net> On Thursday 03 September 2009 15:41:07 stan wrote: > On Thu, Sep 03, 2009 at 09:33:35AM -0400, stan wrote: > > On Thu, Sep 03, 2009 at 09:22:56AM -0400, stan wrote: > > > On Thu, Sep 03, 2009 at 01:43:15PM +0100, Matthew Seaman wrote: > > > > stan wrote: > > > > > On Thu, Sep 03, 2009 at 07:48:57AM -0400, stan wrote: > > > > >> I have inherited a system that uses Cricket on FreeBSD to do some > > > > >> data collection. I have set this up myself in the distnat past, > > > > >> but this time I asked a contractor to set it up. I no longer have > > > > >> access to this contractor, and the toher day, we shut down the > > > > >> system this was running on, and when we rebooted the system, > > > > >> cricket id not resume collecting data. > > > > >> > > > > >> I don't see anyhting in /usr/local/etc/rc.d to start it up, nor do > > > > >> I see anything in /etc/crontag. I don't seen any processes owned > > > > >> by cricket running. > > > > >> > > > > >> In FreeBSD, how is this process noramally invoked? > > > > > > > > > > Sorry to reply to my own message, but I have more data. I did find > > > > > > > > > > -rw------- 1 root wheel 288 Jan 12 2009 /var/cron/tabs/cricke > > > > > > > > > > Which is, I am failry certain, what is _intended_ to invoke the > > > > > cricket process. However, acording to the cricket logs, the last > > > > > time I have an entry is Aug 29th, which was when the machine was > > > > > shut down. So, I decided to try running this command by hand. Now, > > > > > to do so I need to be the cricket user, so I tried to su - cricket. > > > > > I was told that this user was not avaialble. Looking in > > > > > /etc/passwd. I found that this users shell was listed as > > > > > /usr/sbin/nologin. I edited /etc/paswd to change this to /nin/sh, > > > > > but I still get the smae error message when I try to su to that > > > > > user. > > > > > > > > > > What do I need to change to be able to su to this suer, and might > > > > > this be the reason tha it's crontab entry is notbeing run? > > > > > > > > Try: > > > > > > > > # su -m cricket > > > > > > > > although the best way to examine and/or modify that user's crontab > > > > is: > > > > > > > > # crontab -e -u cricket > > > > > > OK, I was able to execute the cricket collector caoomand bu using the > > > su - format, and it ran corectly. > > > > > > Cany anyone sugest what to check to see why cron is not executing this > > > command? I see no evidence of it's running in either the cricket logs' > > > or cron's logs. > > > > > > Thanks. > > > > Repkying to my own message again :-( > > > > > > OK, I found in the cron man page the following: > > > > Before running a command from a per-account crontab file, cron > > checks the status of the account with pam(3) and skips the command if > > the account is unavailable, e.g., locked out or expired. > > > > So, now the question is, how do I unlock that user? > > This gets strnager. I found the pw cammand, which should do thatm but: > > pnoc# pw unlock cricket > pw: user 'cricket' is not locked > > So, how come: > > pnoc# su - cricket > This account is currently not available. Cause cricket doesn't have a valid home directory. However, you can simply copy the /var/cron/tabs/cricket to /tmp. Remove the time colums, then run: su -m cricket /usr/bin/env -i HOME=/nonexistent PATH=/bin:/usr/bin \ /bin/sh /tmp/cricket That's the best approximation of how cron runs the commands. If you don't see anything in the cron logs however, it may be an issue with the timestamps specified not yielding any runs. Then it would help to see the actual crontab file. -- Mel From dmw at coder.cl Thu Sep 3 14:28:11 2009 From: dmw at coder.cl (Daniel Molina Wegener) Date: Thu Sep 3 14:28:19 2009 Subject: cc -march questions In-Reply-To: <200909031300.n83D0aJj013596@mp.cs.niu.edu> References: <200909031300.n83D0aJj013596@mp.cs.niu.edu> Message-ID: 2009/9/3 Scott Bennett > What exactly does "cc -march=prescott" enable cc to do? Does it > include > instruction scheduling for the pipeline structure of the Prescott CPUs? > Does > it include other options, e.g., "-mmmx -msse -msse2 -msse3"? > Thanks in advance for any information on the above! > According to the GCC manual page, it enables MMX, SSE, SSE2 and SSE3 instruction set support. Try: $ man 1 gcc /prescott Best Regards, DMW > > > Scott Bennett, Comm. ASMELG, CFIAG > ********************************************************************** > * Internet: bennett at cs.niu.edu * > *--------------------------------------------------------------------* > * "A well regulated and disciplined militia, is at all times a good * > * objection to the introduction of that bane of all free governments * > * -- a standing army." * > * -- Gov. John Hancock, New York Journal, 28 January 1790 * > ********************************************************************** > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > From stanb at panix.com Thu Sep 3 14:42:30 2009 From: stanb at panix.com (stan) Date: Thu Sep 3 14:42:37 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <200909031622.43318.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <20090903114857.GA635@teddy.fas.com> <20090903133335.GA3884@teddy.fas.com> <20090903134107.GA3930@teddy.fas.com> <200909031622.43318.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: <20090903144228.GA5919@teddy.fas.com> On Thu, Sep 03, 2009 at 04:22:43PM +0200, Mel Flynn wrote: > On Thursday 03 September 2009 15:41:07 stan wrote: > > On Thu, Sep 03, 2009 at 09:33:35AM -0400, stan wrote: > > > On Thu, Sep 03, 2009 at 09:22:56AM -0400, stan wrote: > > > > On Thu, Sep 03, 2009 at 01:43:15PM +0100, Matthew Seaman wrote: > > > > > stan wrote: > > > > > > On Thu, Sep 03, 2009 at 07:48:57AM -0400, stan wrote: > > > > > >> I have inherited a system that uses Cricket on FreeBSD to do some > > > > > >> data collection. I have set this up myself in the distnat past, > > > > > >> but this time I asked a contractor to set it up. I no longer have > > > > > >> access to this contractor, and the toher day, we shut down the > > > > > >> system this was running on, and when we rebooted the system, > > > > > >> cricket id not resume collecting data. > > > > > >> > > > > > >> I don't see anyhting in /usr/local/etc/rc.d to start it up, nor do > > > > > >> I see anything in /etc/crontag. I don't seen any processes owned > > > > > >> by cricket running. > > > > > >> > > > > > >> In FreeBSD, how is this process noramally invoked? > > > > > > > > > > > > Sorry to reply to my own message, but I have more data. I did find > > > > > > > > > > > > -rw------- 1 root wheel 288 Jan 12 2009 /var/cron/tabs/cricke > > > > > > > > > > > > Which is, I am failry certain, what is _intended_ to invoke the > > > > > > cricket process. However, acording to the cricket logs, the last > > > > > > time I have an entry is Aug 29th, which was when the machine was > > > > > > shut down. So, I decided to try running this command by hand. Now, > > > > > > to do so I need to be the cricket user, so I tried to su - cricket. > > > > > > I was told that this user was not avaialble. Looking in > > > > > > /etc/passwd. I found that this users shell was listed as > > > > > > /usr/sbin/nologin. I edited /etc/paswd to change this to /nin/sh, > > > > > > but I still get the smae error message when I try to su to that > > > > > > user. > > > > > > > > > > > > What do I need to change to be able to su to this suer, and might > > > > > > this be the reason tha it's crontab entry is notbeing run? > > > > > > > > > > Try: > > > > > > > > > > # su -m cricket > > > > > > > > > > although the best way to examine and/or modify that user's crontab > > > > > is: > > > > > > > > > > # crontab -e -u cricket > > > > > > > > OK, I was able to execute the cricket collector caoomand bu using the > > > > su - format, and it ran corectly. > > > > > > > > Cany anyone sugest what to check to see why cron is not executing this > > > > command? I see no evidence of it's running in either the cricket logs' > > > > or cron's logs. > > > > > > > > Thanks. > > > > > > Repkying to my own message again :-( > > > > > > > > > OK, I found in the cron man page the following: > > > > > > Before running a command from a per-account crontab file, cron > > > checks the status of the account with pam(3) and skips the command if > > > the account is unavailable, e.g., locked out or expired. > > > > > > So, now the question is, how do I unlock that user? > > > > This gets strnager. I found the pw cammand, which should do thatm but: > > > > pnoc# pw unlock cricket > > pw: user 'cricket' is not locked > > > > So, how come: > > > > pnoc# su - cricket > > This account is currently not available. > > Cause cricket doesn't have a valid home directory. However, you can simply > copy the /var/cron/tabs/cricket to /tmp. Remove the time colums, then run: > su -m cricket /usr/bin/env -i HOME=/nonexistent PATH=/bin:/usr/bin \ > /bin/sh /tmp/cricket > > That's the best approximation of how cron runs the commands. If you don't see > anything in the cron logs however, it may be an issue with the timestamps > specified not yielding any runs. Then it would help to see the actual crontab > file. Hmm, but I think it does : pnoc# grep cricket /etc/passwd cricket:*:141:80:Cricket Monitoring User:/usr/local/cricket:/usr/sbin/nologin and pnoc# ls -ld /usr/local/cricket drwxr-xr-x 7 cricket www 512 Apr 8 16:41 /usr/local/cricket As far as cron logs, I am _now_ gettting an entry that looks like cron is executing the collector: Sep 3 10:40:00 pnoc /usr/sbin/cron[80979]: (cricket) CMD (/usr/local/cricket/cricket/collect-subtrees normal) But, still not getting anything in cricket's logs: ls: No match. pnoc# ls -l /usr/local/cricket/*logs total 2812 -rw-r--r-- 1 cricket www 74098 Sep 3 09:17 normal.0 The 9:17 time is from a manual run of the collector. I must admit, I am not certain waht to check next. Thanks for the help! -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From gesbbb at yahoo.com Thu Sep 3 14:42:59 2009 From: gesbbb at yahoo.com (Jerry) Date: Thu Sep 3 14:43:06 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <20090903134107.GA3930@teddy.fas.com> References: <20090903114857.GA635@teddy.fas.com> <20090903122532.GA1604@teddy.fas.com> <4A9FB9E3.6060207@infracaninophile.co.uk> <20090903132256.GA3270@teddy.fas.com> <20090903133335.GA3884@teddy.fas.com> <20090903134107.GA3930@teddy.fas.com> Message-ID: <20090903104257.547e05ce@scorpio.seibercom.net> On Thu, 3 Sep 2009 09:41:07 -0400 stan wrote: > On Thu, Sep 03, 2009 at 09:33:35AM -0400, stan wrote: > > On Thu, Sep 03, 2009 at 09:22:56AM -0400, stan wrote: > > > On Thu, Sep 03, 2009 at 01:43:15PM +0100, Matthew Seaman wrote: > > > > stan wrote: > > > > > On Thu, Sep 03, 2009 at 07:48:57AM -0400, stan wrote: > > > > >> I have inherited a system that uses Cricket on FreeBSD to do > > > > >> some data collection. I have set this up myself in the > > > > >> distnat past, but this time I asked a contractor to set it > > > > >> up. I no longer have access to this contractor, and the > > > > >> toher day, we shut down the system this was running on, and > > > > >> when we rebooted the system, cricket id not resume > > > > >> collecting data. > > > > >> > > > > >> I don't see anyhting in /usr/local/etc/rc.d to start it up, > > > > >> nor do I see anything in /etc/crontag. I don't seen any > > > > >> processes owned by cricket running. > > > > >> > > > > >> In FreeBSD, how is this process noramally invoked? > > > > > > > > > > Sorry to reply to my own message, but I have more data. I did > > > > > find > > > > > > > > > > -rw------- 1 root wheel 288 Jan 12 > > > > > 2009 /var/cron/tabs/cricke > > > > > > > > > > Which is, I am failry certain, what is _intended_ to invoke > > > > > the cricket process. However, acording to the cricket logs, > > > > > the last time I have an entry is Aug 29th, which was when the > > > > > machine was shut down. So, I decided to try running this > > > > > command by hand. Now, to do so I need to be the cricket user, > > > > > so I tried to su - cricket. I was told that this user was not > > > > > avaialble. Looking in /etc/passwd. I found that this users > > > > > shell was listed as /usr/sbin/nologin. I edited /etc/paswd to > > > > > change this to /nin/sh, but I still get the smae error > > > > > message when I try to su to that user. > > > > > > > > > > What do I need to change to be able to su to this suer, and > > > > > might this be the reason tha it's crontab entry is notbeing > > > > > run? > > > > > > > > Try: > > > > > > > > # su -m cricket > > > > > > > > although the best way to examine and/or modify that user's > > > > crontab is: > > > > > > > > # crontab -e -u cricket > > > > > > > > > > OK, I was able to execute the cricket collector caoomand bu using > > > the su - format, and it ran corectly. > > > > > > Cany anyone sugest what to check to see why cron is not executing > > > this command? I see no evidence of it's running in either the > > > cricket logs' or cron's logs. > > > > > > Thanks. > > > > > Repkying to my own message again :-( > > > > > > OK, I found in the cron man page the following: > > > > Before running a command from a per-account crontab file, cron > > checks the status of the account with pam(3) and skips the command > > if the account is unavailable, e.g., locked out or expired. > > > > So, now the question is, how do I unlock that user? > > > This gets strnager. I found the pw cammand, which should do thatm but: > > pnoc# pw unlock cricket > pw: user 'cricket' is not locked > > So, how come: > > pnoc# su - cricket > This account is currently not available. Something appears to be broken. You might try a new installation. The port creates the user and group if it does not exist. 1) pkg-delete -dfv cricket-1.0.5_5 2) Use pw to delete any reference to cricket 3) Then install cricket via the port -- Jerry gesbbb@yahoo.com We are upping our standards ... so up yours. Pat Paulsen for President, 1988 From milu at dat.pl Thu Sep 3 14:52:32 2009 From: milu at dat.pl (Maciej Milewski) Date: Thu Sep 3 14:52:38 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <20090903122532.GA1604@teddy.fas.com> References: <20090903114857.GA635@teddy.fas.com> <20090903122532.GA1604@teddy.fas.com> Message-ID: <200909031652.24359.milu@dat.pl> Dnia czwartek, 3 wrze?nia 2009 o 14:25:32 stan napisa?(a): > Now, to do so I need to be the cricket > user, so I tried to su - cricket. I was told that this user was not > avaialble. Looking in /etc/passwd. I found that this users shell was listed > as /usr/sbin/nologin. I edited /etc/paswd to change this to /nin/sh, but I > still get the smae error message when I try to su to that user. > > What do I need to change to be able to su to this suer, and might this be > the reason tha it's crontab entry is notbeing run? Do not edit /etcpasswd to change shell. Use command: chpass -s /bin/shell username Or if you really want to do it manually rebuild it through pwd_mkdb. More info as always in excelent FreeBSD manpages. Regards, Maciej Milewski From danielby at slightlystrange.org Thu Sep 3 15:11:12 2009 From: danielby at slightlystrange.org (Daniel Bye) Date: Thu Sep 3 15:11:18 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <20090903104257.547e05ce@scorpio.seibercom.net> References: <20090903114857.GA635@teddy.fas.com> <20090903122532.GA1604@teddy.fas.com> <4A9FB9E3.6060207@infracaninophile.co.uk> <20090903132256.GA3270@teddy.fas.com> <20090903133335.GA3884@teddy.fas.com> <20090903134107.GA3930@teddy.fas.com> <20090903104257.547e05ce@scorpio.seibercom.net> Message-ID: <20090903151058.GB67705@torus.slightlystrange.org> On Thu, Sep 03, 2009 at 10:42:57AM -0400, Jerry wrote: > On Thu, 3 Sep 2009 09:41:07 -0400 > stan wrote: > > > OK, I found in the cron man page the following: > > > > > > Before running a command from a per-account crontab file, cron > > > checks the status of the account with pam(3) and skips the command > > > if the account is unavailable, e.g., locked out or expired. > > > > > > So, now the question is, how do I unlock that user? > > > > > This gets strnager. I found the pw cammand, which should do thatm but: > > > > pnoc# pw unlock cricket > > pw: user 'cricket' is not locked > > > > So, how come: > > > > pnoc# su - cricket > > This account is currently not available. > > Something appears to be broken. You might try a new installation. The > port creates the user and group if it does not exist. No, this is the expected behaviour when an account has /sbin/nologin as its shell. Matthew has already offered a solution to this problem, several replies ago. As root: # su -m cricket Which will give you a basic prompt belonging to cricket. Then: $ crontab -e Or, in one command, as root: # crontab -u cricket -e In either case, you shoule be left with an editor session in which you can create or modify user cricket's crontab. If not, tell us the error message. Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090903/15fb7aca/attachment.pgp From service at vonage.com Thu Sep 3 15:16:17 2009 From: service at vonage.com (Vonage) Date: Thu Sep 3 15:16:24 2009 Subject: Your Vonage Account Message-ID: <20090903155917.9315197A1D72C44F@vonage.com> Dear Vonage (SM) Customer: Thank you card from potenti Fraud Protection Pro Vonage wants to ensure that you are aware of the charges be appearing on your Credit Card statement and receive your authorization to allow such ch If you do not approve of these charg credit card is being charged by Vonage p immediately at 1-800-266-0026. To ensure that there is no disruption in your service please login to your V [1]https://secure.vonage.com/vonage-web/publi If we do not receive this form within five(5) days your se be suspended and sent to our fraud department for further investi gation. Regards, Vonage References 1. 3D"http://secure.vonage.com.webaccount.dashboard.59=/ From mel.flynn+fbsd.questions at mailing.thruhere.net Thu Sep 3 15:31:49 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Thu Sep 3 15:31:55 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <20090903144228.GA5919@teddy.fas.com> References: <20090903114857.GA635@teddy.fas.com> <200909031622.43318.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090903144228.GA5919@teddy.fas.com> Message-ID: <200909031731.45563.mel.flynn+fbsd.questions@mailing.thruhere.net> On Thursday 03 September 2009 16:42:28 stan wrote: > On Thu, Sep 03, 2009 at 04:22:43PM +0200, Mel Flynn wrote: > > On Thursday 03 September 2009 15:41:07 stan wrote: > > > On Thu, Sep 03, 2009 at 09:33:35AM -0400, stan wrote: > > > > On Thu, Sep 03, 2009 at 09:22:56AM -0400, stan wrote: > > > > > On Thu, Sep 03, 2009 at 01:43:15PM +0100, Matthew Seaman wrote: > > > > > > stan wrote: > > > > > > > On Thu, Sep 03, 2009 at 07:48:57AM -0400, stan wrote: > > > > > > >> I have inherited a system that uses Cricket on FreeBSD to do > > > > > > >> some data collection. I have set this up myself in the distnat > > > > > > >> past, but this time I asked a contractor to set it up. I no > > > > > > >> longer have access to this contractor, and the toher day, we > > > > > > >> shut down the system this was running on, and when we rebooted > > > > > > >> the system, cricket id not resume collecting data. > > > > > > >> > > > > > > >> I don't see anyhting in /usr/local/etc/rc.d to start it up, > > > > > > >> nor do I see anything in /etc/crontag. I don't seen any > > > > > > >> processes owned by cricket running. > > > > > > >> > > > > > > >> In FreeBSD, how is this process noramally invoked? > > > > > > > > > > > > > > Sorry to reply to my own message, but I have more data. I did > > > > > > > find > > > > > > > > > > > > > > -rw------- 1 root wheel 288 Jan 12 2009 > > > > > > > /var/cron/tabs/cricke > > > > > > > > > > > > > > Which is, I am failry certain, what is _intended_ to invoke the > > > > > > > cricket process. However, acording to the cricket logs, the > > > > > > > last time I have an entry is Aug 29th, which was when the > > > > > > > machine was shut down. So, I decided to try running this > > > > > > > command by hand. Now, to do so I need to be the cricket user, > > > > > > > so I tried to su - cricket. I was told that this user was not > > > > > > > avaialble. Looking in /etc/passwd. I found that this users > > > > > > > shell was listed as /usr/sbin/nologin. I edited /etc/paswd to > > > > > > > change this to /nin/sh, but I still get the smae error message > > > > > > > when I try to su to that user. > > > > > > > > > > > > > > What do I need to change to be able to su to this suer, and > > > > > > > might this be the reason tha it's crontab entry is notbeing > > > > > > > run? > > > > > > > > > > > > Try: > > > > > > > > > > > > # su -m cricket > > > > > > > > > > > > although the best way to examine and/or modify that user's > > > > > > crontab is: > > > > > > > > > > > > # crontab -e -u cricket > > > > > > > > > > OK, I was able to execute the cricket collector caoomand bu using > > > > > the su - format, and it ran corectly. > > > > > > > > > > Cany anyone sugest what to check to see why cron is not executing > > > > > this command? I see no evidence of it's running in either the > > > > > cricket logs' or cron's logs. > > > > > > > > > > Thanks. > > > > > > > > Repkying to my own message again :-( > > > > > > > > > > > > OK, I found in the cron man page the following: > > > > > > > > Before running a command from a per-account crontab file, cron > > > > checks the status of the account with pam(3) and skips the command > > > > if the account is unavailable, e.g., locked out or expired. > > > > > > > > So, now the question is, how do I unlock that user? > > > > > > This gets strnager. I found the pw cammand, which should do thatm but: > > > > > > pnoc# pw unlock cricket > > > pw: user 'cricket' is not locked > > > > > > So, how come: > > > > > > pnoc# su - cricket > > > This account is currently not available. > > > > Cause cricket doesn't have a valid home directory. However, you can > > simply copy the /var/cron/tabs/cricket to /tmp. Remove the time colums, > > then run: su -m cricket /usr/bin/env -i HOME=/nonexistent > > PATH=/bin:/usr/bin \ /bin/sh /tmp/cricket > > > > That's the best approximation of how cron runs the commands. If you don't > > see anything in the cron logs however, it may be an issue with the > > timestamps specified not yielding any runs. Then it would help to see the > > actual crontab file. > > Hmm, but I think it does : > > pnoc# grep cricket /etc/passwd > cricket:*:141:80:Cricket Monitoring > User:/usr/local/cricket:/usr/sbin/nologin /usr/sbin/nologin. I guess you edited master.passwd and didn't use the proper tools (vipw or run pwd_mkdb after using a plain editor). > As far as cron logs, I am _now_ gettting an entry that looks like cron is > executing the collector: > > Sep 3 10:40:00 pnoc /usr/sbin/cron[80979]: (cricket) CMD > (/usr/local/cricket/cricket/collect-subtrees normal) > > But, still not getting anything in cricket's logs: > > ls: No match. > pnoc# ls -l /usr/local/cricket/*logs > total 2812 > -rw-r--r-- 1 cricket www 74098 Sep 3 09:17 normal.0 > > The 9:17 time is from a manual run of the collector. > > I must admit, I am not certain waht to check next. Run: su -m cricket /usr/bin/env -i HOME=/usr/local/cricket PATH=/bin:/usr/bin /usr/local/cricket/cricket/collect-subtrees normal Then check output. -- Mel From mel.flynn+fbsd.questions at mailing.thruhere.net Thu Sep 3 15:35:16 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Thu Sep 3 15:35:42 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <20090903104257.547e05ce@scorpio.seibercom.net> References: <20090903114857.GA635@teddy.fas.com> <20090903134107.GA3930@teddy.fas.com> <20090903104257.547e05ce@scorpio.seibercom.net> Message-ID: <200909031735.14195.mel.flynn+fbsd.questions@mailing.thruhere.net> On Thursday 03 September 2009 16:42:57 Jerry wrote: > Something appears to be broken. You might try a new installation. Please.....wipe and reload is only common in broken OS implementations and certainly problems with a task scheduler rarely (if ever) call for extremities like this, nor does it provide any guarantee the problem will be solved by it. -- Mel From faust64 at gmail.com Thu Sep 3 15:35:56 2009 From: faust64 at gmail.com (=?ISO-8859-1?Q?Samuel_Mart=EDn_Moro?=) Date: Thu Sep 3 15:36:03 2009 Subject: Making bootable USB keys Message-ID: Hello I'm having some troubles, trying to create bootable USB keys. I found (freebsd-hackers ML archives) a script, supposed to create the bootable image from my iso file. But, it still don't boot... (I may do it wrong) In details: -We distribute a FreeBSD (4.7, 5.4, 6.2 and 7.2) "custom" server. -We burn our install CD (and, in a few, our USB sticks) on a Ferdora 9 (sorry...) -USB sticks must contain a FAT32 partition (we'ld like to provide doc for windows users) Well, my english isn't so great... so I'll post my code (more understandable) --maker.sh-- #!/bin/sh ISO_DIR=/r00t ISO_PFIX=r00t VERSION=5.9.3.0 ISO_FILE=$ISO_DIR/$ISO_PFIX-$VERSION.img DEVICE= TMPDOC=/mnt/tmpdoc DOCDIR=/root/samuel/docdir ERR= SFX= MBR=/root/samuel/mbr BT1=/root/samuel/boot1 BT2=/root/samuel/boot2 if [ -e "$1" ]; then DEVICE=$1 elif [ "$1" -a -e "/dev/$1" ]; then DEVICE=/dev/$1 elif [ "$1" ]; then echo "$0: incorrect device specified" >&2 exit else echo "$0: must specify device" >&2 exit fi for i in `mount | cut -d ' ' -f 1` do if [ "`echo $i | grep $DEVICE`" ]; then echo "$0: $i already mounted" >&2 echo " umount it manually or choose an other drive" >&2 exit fi done if [ -e "$TMPDOC" -a -d "$TMPDOC" ]; then echo "$0: removing $TMPDOC directory" >&2 rm -rf $TMPDOC elif [ -e "$TMPDOC" ]; then mv $TMPDOC $TMPDOC.old echo "$0: moved $TMPDOC to $TMPDOC.old" >&2 fi mkdir $TMPDOC if [ "$2" ]; then echo $2 | grep "\.img$" >/dev/null || SFX=".img" fi if [ -e "$2$SFX" ]; then ISO_FILE=$2$SFX elif [ "$2" -a -e "$ISO_DIR/$2$SFX" ]; then ISO_FILE=$ISO_DIR/$2 elif [ "$2" -a -e "$ISO_DIR/$ISO_PFIX-$2$SFX" ]; then ISO_FILE="$ISO_DIR/$ISO_PFX-$2$SFX" else echo "$0: will use default file \`$ISO_FILE'" >&2 echo " as system image source" >&2 fi if [ -e "$ISO_FILE" ]; then MSize=`ls -l $ISO_FILE | awk '{print $5}'` else echo "$0: $ISO_FILE doesn't exist!" >&2 rm -rf $TMPDOC exit fi if [ -z "$MSize" -o "$MSize" -lt 1 ]; then echo "$0: bad image size (size=$MSize)" >&2 rm -rf $TMPDOC exit fi while : do echo " [ Working on $DEVICE ]" echo -n " determining device geometry " infos=`fdisk -l $DEVICE 2>/dev/null | grep "[0-9]* heads"` ident=`fdisk -l $DEVICE 2>/dev/null | awk '/Disk identifier/{print $3}'` csz=`fdisk -l $DEVICE 2>/dev/null | awk '/Units = cylinders /{print $7}'` eval `echo $infos | awk '{print "hpc=" $1 " sec=" $3 " cyl=" $5}'` if [ -z "$hpc" -o -z "$sec" -o -z "$cyl" -o -z "$csz" ]; then echo " [ FAIL ]" echo "$0: can't get infos for device $DEVICE" >&2 rm -rf $TMPDOC exit fi echo " [ OK ]" echo -n " initializing partition table " # dd if=/dev/zero of=$DEVICE bs=$csz count=1 >/dev/null 2>&1 dd if=$BT1 of=$DEVICE >/dev/null 2>&1 round=128 tocyl=`expr $hpc '*' $sec '*' $csz` ret=`expr $MSize % $tocyl` MSize=`expr $MSize / $tocyl` test "$ret" -eq "0" || MSize=`expr $MSize + 1` s2len=$MSize s2off=`expr $cyl - $s2len - 1` s1len=`expr $s2off - 1` s1off=1 sfdisk -DLqf $DEVICE >/dev/null 2>&1 </dev/null 2>&1 mkdosfs -i 42424242 -n "Docs" -F 32 ${DEVICE}1 >/dev/null 2>&1 mount -t vfat ${DEVICE}1 $TMPDOC || ERR=1 if [ "$ERR" ]; then echo " [ FAIL ]" echo "$0: unable to mount ${DEVICE}1 on $TMPDOC" rm -rf $TMPDOC exit fi echo " [ OK ]" echo -n " copying documentation files " cp -rp $DOCDIR/* $TMPDOC/ >/dev/null 2>&1 || ERR=2 if [ "$ERR" ]; then echo " [ FAIL ]" echo "$0: unable to copy doc files" ERR= fi umount ${DEVICE}1 echo " [ OK ]" echo -n " copying system " dd if=$ISO_FILE of=${DEVICE}2 status=noxfer >/dev/null 2>&1 echo " [ OK ]" mbrsig $DEVICE 2>&1 | awk '{print " marking device with serial " $3 }' echo " [ Device ready! ]" echo "" echo -n " Create new USB key ? [Y/N] : " && read i test "$i" = "Y" -o "$i" = "y" -o "$i" = "O" -o "$i" = "o" || i= test -z "$i" && echo " [ leaving ]" && break echo " Please, remove current USB key, insert new one and press enter" read i done rmdir $TMPDOC --EOF-- So, this is a "USB stick generator" I'm working on. It seems to work. (I've not tested everything, but the basis is OK) The stick is correctly parted. The documentation is copied. My only problem is that it still don't wan't to boot... At the beginning, I was trying to paste my ISO file directly in ${DEVICE}2 Then, I found the following shell script, which is supposed to make my bootable image from my ISO file I changed 2/3 things, but some of you may recognize it anyway: --ISOtoIMG.sh-- #!/bin/sh MAKEFS=makefs MKLABEL=bsdlabel BSDTAR=tar DD="dd status=noxfer" make_freebsd_image() { local tree=$1 local imagefile=$2 local boot1=${tree}/boot/boot1 local boot2=${tree}/boot/boot2 echo "convert tree $tree image $imagefile" ${MAKEFS} -t ffs -o bsize=4096 -o fsize=512 -f 50 ${imagefile} ${tree} >/dev/null 2>&1 ${MKLABEL} -w -f ${imagefile} auto >/dev/null 2>&1 ${MKLABEL} -f ${imagefile} 2>/dev/null | sed -e '/ c:/{p;s/c:/a:/;}' | \ ${MKLABEL} -R -f ${imagefile} /dev/stdin >/dev/null 2>&1 ${DD} if=${boot1} of=${imagefile} conv=notrunc >/dev/null 2>&1 ${DD} if=${boot2} iseek=1 ibs=276 2>/dev/null | \ ${DD} of=${imagefile} oseek=1 obs=788 conv=notrunc >/dev/null 2>&1 } extract_image() { [ -f $1 ] || return local tmp="${tree}.tree" [ -e ${tmp} ] && rm -rf ${tmp} mkdir -p $tmp echo "extracting $tree in $tmp" (cd $tmp && ${BSDTAR} xf $tree) tree=$tmp } if [ -z "$1" ]; then echo "$0: usage" >&2 echo " $0 {ISO_input} | {system_root IMG_output}" >&2 exit fi tree=`realpath $1` [ "$2" ] && image=`realpath $2` || image=`echo $tree | sed "s/.iso/.img/"` extract_image $tree make_freebsd_image $tree $image [ -d "$tmp" ] && (chmod -R +w $tmp && rm -rf $tmp) --EOF-- This seems to work, too... I'm just surprised: root@granit:~/samuel# l -h /r00t/r00t-5.9.3.0* -rw-r--r-- 1 root root 566M 2009-09-03 15:29 /r00t/r00t-5.9.3.0.img -rw-r--r-- 1 root root 526M 2009-08-08 06:58 /r00t/r00t-5.9.3.0.iso new file is 40M heavier than our iso image... Also, in the first script, I tried to do the first dd (initializing ${DEVICE}) with: - if=$MBR - if=$BT1 - if=$BT2 - if=/dev/zero none of that worked... So. Does someone understand what am I doing wrong?! Thanks for you help! Samuel Mart?n Moro CamTrace {EPITECH.} tek4 From faust64 at gmail.com Thu Sep 3 15:50:06 2009 From: faust64 at gmail.com (=?ISO-8859-1?Q?Samuel_Mart=EDn_Moro?=) Date: Thu Sep 3 15:50:20 2009 Subject: Making bootable USB keys In-Reply-To: References: Message-ID: hello. again. btw: my .img file is 0-filled in its 512 first bytes... i downloaded the 8-0-BETA3-???.img, it starts with EB3C. and I think each .img file start like that, right ? thanks Samuel Mart?n Moro CamTrace {EPITECH.} tek4 On Thu, Sep 3, 2009 at 5:35 PM, Samuel Mart?n Moro wrote: > > Hello > > I'm having some troubles, trying to create bootable USB keys. > I found (freebsd-hackers ML archives) a script, supposed to create the > bootable image from my iso file. > But, it still don't boot... (I may do it wrong) > > In details: > -We distribute a FreeBSD (4.7, 5.4, 6.2 and 7.2) "custom" server. > -We burn our install CD (and, in a few, our USB sticks) on a Ferdora 9 > (sorry...) > -USB sticks must contain a FAT32 partition (we'ld like to provide doc for > windows users) > > Well, my english isn't so great... so I'll post my code (more > understandable) > > --maker.sh-- > #!/bin/sh > ISO_DIR=/r00t > ISO_PFIX=r00t > VERSION=5.9.3.0 > ISO_FILE=$ISO_DIR/$ISO_PFIX-$VERSION.img > DEVICE= > TMPDOC=/mnt/tmpdoc > DOCDIR=/root/samuel/docdir > ERR= > SFX= > MBR=/root/samuel/mbr > BT1=/root/samuel/boot1 > BT2=/root/samuel/boot2 > > if [ -e "$1" ]; then > DEVICE=$1 > elif [ "$1" -a -e "/dev/$1" ]; then > DEVICE=/dev/$1 > elif [ "$1" ]; then > echo "$0: incorrect device specified" >&2 > exit > else > echo "$0: must specify device" >&2 > exit > fi > for i in `mount | cut -d ' ' -f 1` > do > if [ "`echo $i | grep $DEVICE`" ]; then > echo "$0: $i already mounted" >&2 > echo " umount it manually or choose an other drive" >&2 > exit > fi > done > > if [ -e "$TMPDOC" -a -d "$TMPDOC" ]; then > echo "$0: removing $TMPDOC directory" >&2 > rm -rf $TMPDOC > elif [ -e "$TMPDOC" ]; then > mv $TMPDOC $TMPDOC.old > echo "$0: moved $TMPDOC to $TMPDOC.old" >&2 > fi > mkdir $TMPDOC > > if [ "$2" ]; then > echo $2 | grep "\.img$" >/dev/null || SFX=".img" > fi > > if [ -e "$2$SFX" ]; then > ISO_FILE=$2$SFX > elif [ "$2" -a -e "$ISO_DIR/$2$SFX" ]; then > ISO_FILE=$ISO_DIR/$2 > elif [ "$2" -a -e "$ISO_DIR/$ISO_PFIX-$2$SFX" ]; then > ISO_FILE="$ISO_DIR/$ISO_PFX-$2$SFX" > else > echo "$0: will use default file \`$ISO_FILE'" >&2 > echo " as system image source" >&2 > fi > if [ -e "$ISO_FILE" ]; then > MSize=`ls -l $ISO_FILE | awk '{print $5}'` > else > echo "$0: $ISO_FILE doesn't exist!" >&2 > rm -rf $TMPDOC > exit > fi > if [ -z "$MSize" -o "$MSize" -lt 1 ]; then > echo "$0: bad image size (size=$MSize)" >&2 > rm -rf $TMPDOC > exit > fi > > while : > do > echo " [ Working on $DEVICE ]" > > echo -n " determining device geometry " > infos=`fdisk -l $DEVICE 2>/dev/null | grep "[0-9]* heads"` > ident=`fdisk -l $DEVICE 2>/dev/null | awk '/Disk identifier/{print > $3}'` > csz=`fdisk -l $DEVICE 2>/dev/null | awk '/Units = cylinders /{print > $7}'` > eval `echo $infos | awk '{print "hpc=" $1 " sec=" $3 " cyl=" $5}'` > if [ -z "$hpc" -o -z "$sec" -o -z "$cyl" -o -z "$csz" ]; then > echo " [ FAIL ]" > echo "$0: can't get infos for device $DEVICE" >&2 > rm -rf $TMPDOC > exit > fi > echo " [ OK ]" > > echo -n " initializing partition table " > # dd if=/dev/zero of=$DEVICE bs=$csz count=1 >/dev/null 2>&1 > dd if=$BT1 of=$DEVICE >/dev/null 2>&1 > round=128 > tocyl=`expr $hpc '*' $sec '*' $csz` > ret=`expr $MSize % $tocyl` > MSize=`expr $MSize / $tocyl` > test "$ret" -eq "0" || MSize=`expr $MSize + 1` > s2len=$MSize > s2off=`expr $cyl - $s2len - 1` > s1len=`expr $s2off - 1` > s1off=1 > sfdisk -DLqf $DEVICE >/dev/null 2>&1 < $s1off $s1len b > $s2off $s2len a5 * > EOF > echo " [ OK ]" > > echo -n " formatting FAT32 partition " > dd if=/dev/zero of=${DEVICE}1 bs=$csz count=1 >/dev/null 2>&1 > mkdosfs -i 42424242 -n "Docs" -F 32 ${DEVICE}1 >/dev/null 2>&1 > mount -t vfat ${DEVICE}1 $TMPDOC || ERR=1 > if [ "$ERR" ]; then > echo " [ FAIL ]" > echo "$0: unable to mount ${DEVICE}1 on $TMPDOC" > rm -rf $TMPDOC > exit > fi > echo " [ OK ]" > > echo -n " copying documentation files " > cp -rp $DOCDIR/* $TMPDOC/ >/dev/null 2>&1 || ERR=2 > if [ "$ERR" ]; then > echo " [ FAIL ]" > echo "$0: unable to copy doc files" > ERR= > fi > umount ${DEVICE}1 > echo " [ OK ]" > > echo -n " copying system " > dd if=$ISO_FILE of=${DEVICE}2 status=noxfer >/dev/null 2>&1 > echo " [ OK ]" > > mbrsig $DEVICE 2>&1 | awk '{print " marking device with serial " $3 > }' > echo " [ Device ready! ]" > echo "" > echo -n " Create new USB key ? [Y/N] : " && read i > test "$i" = "Y" -o "$i" = "y" -o "$i" = "O" -o "$i" = "o" || i= > test -z "$i" && echo " [ leaving ]" && break > echo " Please, remove current USB key, insert new one and press enter" > read i > done > rmdir $TMPDOC > --EOF-- > > So, this is a "USB stick generator" I'm working on. > It seems to work. (I've not tested everything, but the basis is OK) > The stick is correctly parted. > The documentation is copied. > My only problem is that it still don't wan't to boot... > > At the beginning, I was trying to paste my ISO file directly in ${DEVICE}2 > Then, I found the following shell script, which is supposed to make my > bootable image from my ISO file > I changed 2/3 things, but some of you may recognize it anyway: > > --ISOtoIMG.sh-- > #!/bin/sh > MAKEFS=makefs > MKLABEL=bsdlabel > BSDTAR=tar > DD="dd status=noxfer" > > make_freebsd_image() > { > local tree=$1 > local imagefile=$2 > local boot1=${tree}/boot/boot1 > local boot2=${tree}/boot/boot2 > > echo "convert tree $tree image $imagefile" > ${MAKEFS} -t ffs -o bsize=4096 -o fsize=512 -f 50 ${imagefile} ${tree} > >/dev/null 2>&1 > ${MKLABEL} -w -f ${imagefile} auto >/dev/null 2>&1 > ${MKLABEL} -f ${imagefile} 2>/dev/null | sed -e '/ c:/{p;s/c:/a:/;}' | \ > ${MKLABEL} -R -f ${imagefile} /dev/stdin >/dev/null 2>&1 > ${DD} if=${boot1} of=${imagefile} conv=notrunc >/dev/null 2>&1 > ${DD} if=${boot2} iseek=1 ibs=276 2>/dev/null | \ > ${DD} of=${imagefile} oseek=1 obs=788 conv=notrunc >/dev/null 2>&1 > } > > extract_image() > { > [ -f $1 ] || return > local tmp="${tree}.tree" > [ -e ${tmp} ] && rm -rf ${tmp} > mkdir -p $tmp > echo "extracting $tree in $tmp" > (cd $tmp && ${BSDTAR} xf $tree) > tree=$tmp > } > > if [ -z "$1" ]; then > echo "$0: usage" >&2 > echo " $0 {ISO_input} | {system_root IMG_output}" >&2 > exit > fi > tree=`realpath $1` > [ "$2" ] && image=`realpath $2` || image=`echo $tree | sed "s/.iso/.img/"` > extract_image $tree > make_freebsd_image $tree $image > [ -d "$tmp" ] && (chmod -R +w $tmp && rm -rf $tmp) > --EOF-- > > This seems to work, too... > I'm just surprised: > root@granit:~/samuel# l -h /r00t/r00t-5.9.3.0* > -rw-r--r-- 1 root root 566M 2009-09-03 15:29 /r00t/r00t-5.9.3.0.img > -rw-r--r-- 1 root root 526M 2009-08-08 06:58 /r00t/r00t-5.9.3.0.iso > new file is 40M heavier than our iso image... > > Also, in the first script, I tried to do the first dd (initializing > ${DEVICE}) with: > - if=$MBR > - if=$BT1 > - if=$BT2 > - if=/dev/zero > none of that worked... > > So. > Does someone understand what am I doing wrong?! > > > Thanks for you help! > > Samuel Mart?n Moro > CamTrace > {EPITECH.} tek4 > > From mel.flynn+fbsd.questions at mailing.thruhere.net Thu Sep 3 15:54:41 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Thu Sep 3 15:54:47 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <20090903154453.GA7688@teddy.fas.com> References: <20090903114857.GA635@teddy.fas.com> <200909031731.45563.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090903154453.GA7688@teddy.fas.com> Message-ID: <200909031754.37681.mel.flynn+fbsd.questions@mailing.thruhere.net> On Thursday 03 September 2009 17:44:53 stan wrote: > On Thu, Sep 03, 2009 at 05:31:45PM +0200, Mel Flynn wrote: > > On Thursday 03 September 2009 16:42:28 stan wrote: > > > On Thu, Sep 03, 2009 at 04:22:43PM +0200, Mel Flynn wrote: > > > > On Thursday 03 September 2009 15:41:07 stan wrote: > > > > > On Thu, Sep 03, 2009 at 09:33:35AM -0400, stan wrote: > > > > > > On Thu, Sep 03, 2009 at 09:22:56AM -0400, stan wrote: > > > > > > > On Thu, Sep 03, 2009 at 01:43:15PM +0100, Matthew Seaman wrote: > > > > > > > > stan wrote: > > > > > > > > > On Thu, Sep 03, 2009 at 07:48:57AM -0400, stan wrote: > > > > > > > > >> I have inherited a system that uses Cricket on FreeBSD to > > > > > > > > >> do some data collection. I have set this up myself in the > > > > > > > > >> distnat past, but this time I asked a contractor to set it > > > > > > > > >> up. I no longer have access to this contractor, and the > > > > > > > > >> toher day, we shut down the system this was running on, > > > > > > > > >> and when we rebooted the system, cricket id not resume > > > > > > > > >> collecting data. > > > > > > > > >> > > > > > > > > >> I don't see anyhting in /usr/local/etc/rc.d to start it > > > > > > > > >> up, nor do I see anything in /etc/crontag. I don't seen > > > > > > > > >> any processes owned by cricket running. > > > > > > > > >> > > > > > > > > >> In FreeBSD, how is this process noramally invoked? > > > > > > > > > > > > > > > > > > Sorry to reply to my own message, but I have more data. I > > > > > > > > > did find > > > > > > > > > > > > > > > > > > -rw------- 1 root wheel 288 Jan 12 2009 > > > > > > > > > /var/cron/tabs/cricke > > > > > > > > > > > > > > > > > > Which is, I am failry certain, what is _intended_ to invoke > > > > > > > > > the cricket process. However, acording to the cricket logs, > > > > > > > > > the last time I have an entry is Aug 29th, which was when > > > > > > > > > the machine was shut down. So, I decided to try running > > > > > > > > > this command by hand. Now, to do so I need to be the > > > > > > > > > cricket user, so I tried to su - cricket. I was told that > > > > > > > > > this user was not avaialble. Looking in /etc/passwd. I > > > > > > > > > found that this users shell was listed as > > > > > > > > > /usr/sbin/nologin. I edited /etc/paswd to change this to > > > > > > > > > /nin/sh, but I still get the smae error message when I try > > > > > > > > > to su to that user. > > > > > > > > > > > > > > > > > > What do I need to change to be able to su to this suer, and > > > > > > > > > might this be the reason tha it's crontab entry is notbeing > > > > > > > > > run? > > > > > > > > > > > > > > > > Try: > > > > > > > > > > > > > > > > # su -m cricket > > > > > > > > > > > > > > > > although the best way to examine and/or modify that user's > > > > > > > > crontab is: > > > > > > > > > > > > > > > > # crontab -e -u cricket > > > > > > > > > > > > > > OK, I was able to execute the cricket collector caoomand bu > > > > > > > using the su - format, and it ran corectly. > > > > > > > > > > > > > > Cany anyone sugest what to check to see why cron is not > > > > > > > executing this command? I see no evidence of it's running in > > > > > > > either the cricket logs' or cron's logs. > > > > > > > > > > > > > > Thanks. > > > > > > > > > > > > Repkying to my own message again :-( > > > > > > > > > > > > > > > > > > OK, I found in the cron man page the following: > > > > > > > > > > > > Before running a command from a per-account crontab file, cron > > > > > > checks the status of the account with pam(3) and skips the > > > > > > command if the account is unavailable, e.g., locked out or > > > > > > expired. > > > > > > > > > > > > So, now the question is, how do I unlock that user? > > > > > > > > > > This gets strnager. I found the pw cammand, which should do thatm > > > > > but: > > > > > > > > > > pnoc# pw unlock cricket > > > > > pw: user 'cricket' is not locked > > > > > > > > > > So, how come: > > > > > > > > > > pnoc# su - cricket > > > > > This account is currently not available. > > > > > > > > Cause cricket doesn't have a valid home directory. However, you can > > > > simply copy the /var/cron/tabs/cricket to /tmp. Remove the time > > > > colums, then run: su -m cricket /usr/bin/env -i HOME=/nonexistent > > > > PATH=/bin:/usr/bin \ /bin/sh /tmp/cricket > > > > > > > > That's the best approximation of how cron runs the commands. If you > > > > don't see anything in the cron logs however, it may be an issue with > > > > the timestamps specified not yielding any runs. Then it would help to > > > > see the actual crontab file. > > > > > > Hmm, but I think it does : > > > > > > pnoc# grep cricket /etc/passwd > > > cricket:*:141:80:Cricket Monitoring > > > User:/usr/local/cricket:/usr/sbin/nologin > > > > /usr/sbin/nologin. I guess you edited master.passwd and didn't use the > > proper tools (vipw or run pwd_mkdb after using a plain editor). > > > > > As far as cron logs, I am _now_ gettting an entry that looks like cron > > > is executing the collector: > > > > > > Sep 3 10:40:00 pnoc /usr/sbin/cron[80979]: (cricket) CMD > > > (/usr/local/cricket/cricket/collect-subtrees normal) > > > > > > But, still not getting anything in cricket's logs: > > > > > > ls: No match. > > > pnoc# ls -l /usr/local/cricket/*logs > > > total 2812 > > > -rw-r--r-- 1 cricket www 74098 Sep 3 09:17 normal.0 > > > > > > The 9:17 time is from a manual run of the collector. > > > > > > I must admit, I am not certain waht to check next. > > > > Run: > > su -m cricket /usr/bin/env -i HOME=/usr/local/cricket PATH=/bin:/usr/bin > > /usr/local/cricket/cricket/collect-subtrees normal > > OK, this is just slightly over my head, so let me be very specific about > what I did: > > su -m cricket > /usr/bin/env -i Just run the command above as one line, this does nothing. Check some manpages while you're at it: man env man su man 5 crontab It's almost certainly a PATH issue if what you did worked and setting the PATH in the crontab file should fix it. Why it worked before, is probably not worth investigating. -- Mel From rsmith at xs4all.nl Thu Sep 3 16:00:33 2009 From: rsmith at xs4all.nl (Roland Smith) Date: Thu Sep 3 16:00:40 2009 Subject: bookkeeping software In-Reply-To: References: Message-ID: <20090903160031.GA36547@slackbox.xs4all.nl> On Thu, Sep 03, 2009 at 09:27:12AM -0400, Tsu-Fan Cheng wrote: > Hi, > I am looking for a port on 7.2R that can do general small family > bookkeeping, I am not running gnome or kde, does anyone have any > recommendation? thank you!! Have a look at finance/gnucash. 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) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090903/f844dff1/attachment.pgp From dyioulos at firstbhph.com Thu Sep 3 16:35:39 2009 From: dyioulos at firstbhph.com (Dimitri Yioulos) Date: Thu Sep 3 16:35:46 2009 Subject: Making bootable USB keys In-Reply-To: References: Message-ID: <200909031219.57856.dyioulos@firstbhph.com> On Thursday 03 September 2009 11:35:34 am Samuel Mart?n Moro wrote: > Hello > > I'm having some troubles, trying to create > bootable USB keys. I found (freebsd-hackers ML > archives) a script, supposed to create the > bootable image from my iso file. > But, it still don't boot... (I may do it wrong) > > In details: > -We distribute a FreeBSD (4.7, 5.4, 6.2 and > 7.2) "custom" server. -We burn our install CD > (and, in a few, our USB sticks) on a Ferdora 9 > (sorry...) > -USB sticks must contain a FAT32 partition > (we'ld like to provide doc for windows users) > > Well, my english isn't so great... so I'll post > my code (more understandable) > > --maker.sh-- > #!/bin/sh > ISO_DIR=/r00t > ISO_PFIX=r00t > VERSION=5.9.3.0 > ISO_FILE=$ISO_DIR/$ISO_PFIX-$VERSION.img > DEVICE= > TMPDOC=/mnt/tmpdoc > DOCDIR=/root/samuel/docdir > ERR= > SFX= > MBR=/root/samuel/mbr > BT1=/root/samuel/boot1 > BT2=/root/samuel/boot2 > > if [ -e "$1" ]; then > DEVICE=$1 > elif [ "$1" -a -e "/dev/$1" ]; then > DEVICE=/dev/$1 > elif [ "$1" ]; then > echo "$0: incorrect device specified" >&2 > exit > else > echo "$0: must specify device" >&2 > exit > fi > for i in `mount | cut -d ' ' -f 1` > do > if [ "`echo $i | grep $DEVICE`" ]; then > echo "$0: $i already mounted" >&2 > echo " umount it manually or > choose an other drive" >&2 exit > fi > done > > if [ -e "$TMPDOC" -a -d "$TMPDOC" ]; then > echo "$0: removing $TMPDOC directory" >&2 > rm -rf $TMPDOC > elif [ -e "$TMPDOC" ]; then > mv $TMPDOC $TMPDOC.old > echo "$0: moved $TMPDOC to $TMPDOC.old" >&2 > fi > mkdir $TMPDOC > > if [ "$2" ]; then > echo $2 | grep "\.img$" >/dev/null || > SFX=".img" fi > > if [ -e "$2$SFX" ]; then > ISO_FILE=$2$SFX > elif [ "$2" -a -e "$ISO_DIR/$2$SFX" ]; then > ISO_FILE=$ISO_DIR/$2 > elif [ "$2" -a -e "$ISO_DIR/$ISO_PFIX-$2$SFX" > ]; then ISO_FILE="$ISO_DIR/$ISO_PFX-$2$SFX" > else > echo "$0: will use default file > \`$ISO_FILE'" >&2 echo " as system > image source" >&2 fi > if [ -e "$ISO_FILE" ]; then > MSize=`ls -l $ISO_FILE | awk '{print $5}'` > else > echo "$0: $ISO_FILE doesn't exist!" >&2 > rm -rf $TMPDOC > exit > fi > if [ -z "$MSize" -o "$MSize" -lt 1 ]; then > echo "$0: bad image size (size=$MSize)" >&2 > rm -rf $TMPDOC > exit > fi > > while : > do > echo " [ Working on $DEVICE ]" > > echo -n " determining device geometry " > infos=`fdisk -l $DEVICE 2>/dev/null | grep > "[0-9]* heads"` ident=`fdisk -l $DEVICE > 2>/dev/null | awk '/Disk identifier/{print > $3}'` csz=`fdisk -l $DEVICE 2>/dev/null | awk > '/Units = cylinders /{print $7}'` > eval `echo $infos | awk '{print "hpc=" $1 " > sec=" $3 " cyl=" $5}'` if [ -z "$hpc" -o -z > "$sec" -o -z "$cyl" -o -z "$csz" ]; then echo " > [ FAIL ]" > echo "$0: can't get infos for device > $DEVICE" >&2 rm -rf $TMPDOC > exit > fi > echo " [ OK ]" > > echo -n " initializing partition table " > # dd if=/dev/zero of=$DEVICE bs=$csz count=1 > >/dev/null 2>&1 dd if=$BT1 of=$DEVICE > >/dev/null 2>&1 round=128 > tocyl=`expr $hpc '*' $sec '*' $csz` > ret=`expr $MSize % $tocyl` > MSize=`expr $MSize / $tocyl` > test "$ret" -eq "0" || MSize=`expr $MSize + > 1` s2len=$MSize > s2off=`expr $cyl - $s2len - 1` > s1len=`expr $s2off - 1` > s1off=1 > sfdisk -DLqf $DEVICE >/dev/null 2>&1 < $s1off $s1len b > $s2off $s2len a5 * > EOF > echo " [ OK ]" > > echo -n " formatting FAT32 partition " > dd if=/dev/zero of=${DEVICE}1 bs=$csz > count=1 >/dev/null 2>&1 mkdosfs -i 42424242 -n > "Docs" -F 32 ${DEVICE}1 >/dev/null 2>&1 mount > -t vfat ${DEVICE}1 $TMPDOC || ERR=1 if [ "$ERR" > ]; then > echo " [ FAIL ]" > echo "$0: unable to mount ${DEVICE}1 on > $TMPDOC" rm -rf $TMPDOC > exit > fi > echo " [ OK ]" > > echo -n " copying documentation files " > cp -rp $DOCDIR/* $TMPDOC/ >/dev/null 2>&1 > || ERR=2 if [ "$ERR" ]; then > echo " [ FAIL ]" > echo "$0: unable to copy doc files" > ERR= > fi > umount ${DEVICE}1 > echo " [ OK ]" > > echo -n " copying system " > dd if=$ISO_FILE of=${DEVICE}2 status=noxfer > >/dev/null 2>&1 echo " [ OK ]" > > mbrsig $DEVICE 2>&1 | awk '{print " > marking device with serial " $3 }' > echo " [ Device ready! ]" > echo "" > echo -n " Create new USB key ? [Y/N] : > " && read i test "$i" = "Y" -o "$i" = "y" -o > "$i" = "O" -o "$i" = "o" || i= test -z "$i" && > echo " [ leaving ]" && break echo " Please, > remove current USB key, insert new one and > press enter" read i > done > rmdir $TMPDOC > --EOF-- > > So, this is a "USB stick generator" I'm working > on. It seems to work. (I've not tested > everything, but the basis is OK) The stick is > correctly parted. > The documentation is copied. > My only problem is that it still don't wan't to > boot... > > At the beginning, I was trying to paste my ISO > file directly in ${DEVICE}2 Then, I found the > following shell script, which is supposed to > make my bootable image from my ISO file > I changed 2/3 things, but some of you may > recognize it anyway: > > --ISOtoIMG.sh-- > #!/bin/sh > MAKEFS=makefs > MKLABEL=bsdlabel > BSDTAR=tar > DD="dd status=noxfer" > > make_freebsd_image() > { > local tree=$1 > local imagefile=$2 > local boot1=${tree}/boot/boot1 > local boot2=${tree}/boot/boot2 > > echo "convert tree $tree image $imagefile" > ${MAKEFS} -t ffs -o bsize=4096 -o fsize=512 > -f 50 ${imagefile} ${tree} > > >/dev/null 2>&1 > > ${MKLABEL} -w -f ${imagefile} auto >/dev/null > 2>&1 ${MKLABEL} -f ${imagefile} 2>/dev/null | > sed -e '/ c:/{p;s/c:/a:/;}' | \ ${MKLABEL} -R > -f ${imagefile} /dev/stdin >/dev/null 2>&1 > ${DD} if=${boot1} of=${imagefile} conv=notrunc > >/dev/null 2>&1 ${DD} if=${boot2} iseek=1 > ibs=276 2>/dev/null | \ ${DD} of=${imagefile} > oseek=1 obs=788 conv=notrunc >/dev/null 2>&1 } > > extract_image() > { > [ -f $1 ] || return > local tmp="${tree}.tree" > [ -e ${tmp} ] && rm -rf ${tmp} > mkdir -p $tmp > echo "extracting $tree in $tmp" > (cd $tmp && ${BSDTAR} xf $tree) > tree=$tmp > } > > if [ -z "$1" ]; then > echo "$0: usage" >&2 > echo " $0 {ISO_input} | {system_root > IMG_output}" >&2 exit > fi > tree=`realpath $1` > [ "$2" ] && image=`realpath $2` || image=`echo > $tree | sed "s/.iso/.img/"` extract_image $tree > make_freebsd_image $tree $image > [ -d "$tmp" ] && (chmod -R +w $tmp && rm -rf > $tmp) --EOF-- > > This seems to work, too... > I'm just surprised: > root@granit:~/samuel# l -h /r00t/r00t-5.9.3.0* > -rw-r--r-- 1 root root 566M 2009-09-03 15:29 > /r00t/r00t-5.9.3.0.img -rw-r--r-- 1 root root > 526M 2009-08-08 06:58 /r00t/r00t-5.9.3.0.iso > new file is 40M heavier than our iso image... > > Also, in the first script, I tried to do the > first dd (initializing ${DEVICE}) with: > - if=$MBR > - if=$BT1 > - if=$BT2 > - if=/dev/zero > none of that worked... > > So. > Does someone understand what am I doing wrong?! > > > Thanks for you help! > > Samuel Mart?n Moro > CamTrace > {EPITECH.} tek4 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freeb >sd-questions To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" Might want to try UNetbootin. Dimitri -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From stark at mapper.nl Thu Sep 3 17:06:20 2009 From: stark at mapper.nl (Mark Stapper) Date: Thu Sep 3 17:06:27 2009 Subject: ZFS and DMA read error In-Reply-To: <4A9FCC7E.3070209@qeng-ho.org> References: <4A9B731E.9050400@mapper.nl> <4A9CBDBB.3060403@mapper.nl> <4F9C9299A10AE74E89EA580D14AA10A635E9C3@royal64.emp.zapto.org> <4A9F8F96.3090806@mapper.nl> <4A9FCC7E.3070209@qeng-ho.org> Message-ID: <4A9FF77D.6080504@mapper.nl> Arthur Chance wrote: > Mark Stapper wrote: > [snip] >> I ordered a "spare" drive so I'll wait until it arrives, replace the >> faulty drive with this one by dd-ing data from one to the other (I have >> only 4 SATA ports so I can't do "zpool replace"). > > zpool replace has two forms > > zpool replace pool old-device new-device > > and > > zpool replace pool device > > The latter is for when you pull the old drive and put the new one on > the same {S,P}ATA port because you've no free ports. I did that a > couple of weeks ago when one of my raidz drives fried (in its warranty > period!) and it worked like a dream. I did a zpool replace and then a > zpool scrub to make sure everything was OK because of this section of > the zpool man page: > > Scrubbing and resilvering are very similar operations. The differ- > ence is that resilvering only examines data that ZFS knows to be > out of date (for example, when attaching a new device to a mirror > or replacing an existing device), whereas scrubbing examines all > data to discover silent errors due to hardware faults or disk fail- > ure. > Thanks for the tip. I'll be sure to try that. From ohartman at zedat.fu-berlin.de Thu Sep 3 18:09:30 2009 From: ohartman at zedat.fu-berlin.de (O. Hartmann) Date: Thu Sep 3 18:09:39 2009 Subject: Lighttpd: (mod_fastcgi.c.1742) connect failed: Connection refused on unix:/tmp/lighttpd-fastcgi-php.socket Message-ID: <4AA002B2.5060108@zedat.fu-berlin.de> I deleted accidentally /usr/local/lib on a server but I was able to reinstall most of the software we need manually. After installing php5, several php5-XXX add ons and lighttpd, I get the appended error. The configuration for lighttpd is stuck with the same as before the accident. spawn_fastcgi ist installed as well as other php5 stuff. I'm helpless, Does anyone have any idea what's going wrong? Box is running FreeBSD 8.0-BETA3/AMD64 with compiled world of today. Software has been taken from ports within the past two days, so it should be up to date. Regards, Oliver P.S. Please respond also to my eMail address, thank you very much. 2009-09-03 19:47:49: (mod_access.c.135) -- mod_access_uri_handler called 2009-09-03 19:47:49: (mod_fastcgi.c.3644) handling it in mod_fastcgi 2009-09-03 19:47:49: (mod_fastcgi.c.1742) connect failed: Connection refused on unix:/tmp/lighttpd-fastcgi-php.socket-7 2009-09-03 19:47:49: (mod_fastcgi.c.2943) backend died; we'll disable it for 5 seconds and send the request to another backend instead: reconnects: 0 load: 1 2009-09-03 19:47:49: (mod_fastcgi.c.2481) unexpected end-of-file (perhaps the fastcgi process died): pid: 20516 socket: unix:/tmp/lighttpd-fastcgi-php.socket-7 2009-09-03 19:47:49: (mod_fastcgi.c.3299) response not received, request sent: 1010 on socket: unix:/tmp/lighttpd-fastcgi-php.socket-7 for /refdb/index.php , closing connection 2009-09-03 19:47:49: (response.c.126) Response-Header: HTTP/1.1 500 Internal Server Error Content-Type: text/html Content-Length: 369 Date: Thu, 03 Sep 2009 17:47:49 GMT Server: Lighttpd From stanb at panix.com Thu Sep 3 19:02:43 2009 From: stanb at panix.com (stan) Date: Thu Sep 3 19:02:51 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <200909031754.37681.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <20090903114857.GA635@teddy.fas.com> <200909031731.45563.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090903154453.GA7688@teddy.fas.com> <200909031754.37681.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: <20090903190241.GA13402@teddy.fas.com> On Thu, Sep 03, 2009 at 05:54:37PM +0200, Mel Flynn wrote: > On Thursday 03 September 2009 17:44:53 stan wrote: > > On Thu, Sep 03, 2009 at 05:31:45PM +0200, Mel Flynn wrote: > > > On Thursday 03 September 2009 16:42:28 stan wrote: > > > > On Thu, Sep 03, 2009 at 04:22:43PM +0200, Mel Flynn wrote: > > > > > On Thursday 03 September 2009 15:41:07 stan wrote: > > > > > > On Thu, Sep 03, 2009 at 09:33:35AM -0400, stan wrote: > > > > > > > On Thu, Sep 03, 2009 at 09:22:56AM -0400, stan wrote: > > > > > > > > On Thu, Sep 03, 2009 at 01:43:15PM +0100, Matthew Seaman wrote: > > > > > > > > > stan wrote: > > > > > > > > > > On Thu, Sep 03, 2009 at 07:48:57AM -0400, stan wrote: > > > > > > > > > >> I have inherited a system that uses Cricket on FreeBSD to > > > > > > > > > >> do some data collection. I have set this up myself in the > > > > > > > > > >> distnat past, but this time I asked a contractor to set it > > > > > > > > > >> up. I no longer have access to this contractor, and the > > > > > > > > > >> toher day, we shut down the system this was running on, > > > > > > > > > >> and when we rebooted the system, cricket id not resume > > > > > > > > > >> collecting data. > > > > > > > > > >> > > > > > > > > > >> I don't see anyhting in /usr/local/etc/rc.d to start it > > > > > > > > > >> up, nor do I see anything in /etc/crontag. I don't seen > > > > > > > > > >> any processes owned by cricket running. > > > > > > > > > >> > > > > > > > > > >> In FreeBSD, how is this process noramally invoked? > > > > > > > > > > > > > > > > > > > > Sorry to reply to my own message, but I have more data. I > > > > > > > > > > did find > > > > > > > > > > > > > > > > > > > > -rw------- 1 root wheel 288 Jan 12 2009 > > > > > > > > > > /var/cron/tabs/cricke > > > > > > > > > > > > > > > > > > > > Which is, I am failry certain, what is _intended_ to invoke > > > > > > > > > > the cricket process. However, acording to the cricket logs, > > > > > > > > > > the last time I have an entry is Aug 29th, which was when > > > > > > > > > > the machine was shut down. So, I decided to try running > > > > > > > > > > this command by hand. Now, to do so I need to be the > > > > > > > > > > cricket user, so I tried to su - cricket. I was told that > > > > > > > > > > this user was not avaialble. Looking in /etc/passwd. I > > > > > > > > > > found that this users shell was listed as > > > > > > > > > > /usr/sbin/nologin. I edited /etc/paswd to change this to > > > > > > > > > > /nin/sh, but I still get the smae error message when I try > > > > > > > > > > to su to that user. > > > > > > > > > > > > > > > > > > > > What do I need to change to be able to su to this suer, and > > > > > > > > > > might this be the reason tha it's crontab entry is notbeing > > > > > > > > > > run? > > > > > > > > > > > > > > > > > > Try: > > > > > > > > > > > > > > > > > > # su -m cricket > > > > > > > > > > > > > > > > > > although the best way to examine and/or modify that user's > > > > > > > > > crontab is: > > > > > > > > > > > > > > > > > > # crontab -e -u cricket > > > > > > > > > > > > > > > > OK, I was able to execute the cricket collector caoomand bu > > > > > > > > using the su - format, and it ran corectly. > > > > > > > > > > > > > > > > Cany anyone sugest what to check to see why cron is not > > > > > > > > executing this command? I see no evidence of it's running in > > > > > > > > either the cricket logs' or cron's logs. > > > > > > > > > > > > > > > > Thanks. > > > > > > > > > > > > > > Repkying to my own message again :-( > > > > > > > > > > > > > > > > > > > > > OK, I found in the cron man page the following: > > > > > > > > > > > > > > Before running a command from a per-account crontab file, cron > > > > > > > checks the status of the account with pam(3) and skips the > > > > > > > command if the account is unavailable, e.g., locked out or > > > > > > > expired. > > > > > > > > > > > > > > So, now the question is, how do I unlock that user? > > > > > > > > > > > > This gets strnager. I found the pw cammand, which should do thatm > > > > > > but: > > > > > > > > > > > > pnoc# pw unlock cricket > > > > > > pw: user 'cricket' is not locked > > > > > > > > > > > > So, how come: > > > > > > > > > > > > pnoc# su - cricket > > > > > > This account is currently not available. > > > > > > > > > > Cause cricket doesn't have a valid home directory. However, you can > > > > > simply copy the /var/cron/tabs/cricket to /tmp. Remove the time > > > > > colums, then run: su -m cricket /usr/bin/env -i HOME=/nonexistent > > > > > PATH=/bin:/usr/bin \ /bin/sh /tmp/cricket > > > > > > > > > > That's the best approximation of how cron runs the commands. If you > > > > > don't see anything in the cron logs however, it may be an issue with > > > > > the timestamps specified not yielding any runs. Then it would help to > > > > > see the actual crontab file. > > > > > > > > Hmm, but I think it does : > > > > > > > > pnoc# grep cricket /etc/passwd > > > > cricket:*:141:80:Cricket Monitoring > > > > User:/usr/local/cricket:/usr/sbin/nologin > > > > > > /usr/sbin/nologin. I guess you edited master.passwd and didn't use the > > > proper tools (vipw or run pwd_mkdb after using a plain editor). > > > > > > > As far as cron logs, I am _now_ gettting an entry that looks like cron > > > > is executing the collector: > > > > > > > > Sep 3 10:40:00 pnoc /usr/sbin/cron[80979]: (cricket) CMD > > > > (/usr/local/cricket/cricket/collect-subtrees normal) > > > > > > > > But, still not getting anything in cricket's logs: > > > > > > > > ls: No match. > > > > pnoc# ls -l /usr/local/cricket/*logs > > > > total 2812 > > > > -rw-r--r-- 1 cricket www 74098 Sep 3 09:17 normal.0 > > > > > > > > The 9:17 time is from a manual run of the collector. > > > > > > > > I must admit, I am not certain waht to check next. > > > > > > Run: > > > su -m cricket /usr/bin/env -i HOME=/usr/local/cricket PATH=/bin:/usr/bin > > > /usr/local/cricket/cricket/collect-subtrees normal > > > > OK, this is just slightly over my head, so let me be very specific about > > what I did: > > > > su -m cricket > > /usr/bin/env -i > > Just run the command above as one line, this does nothing. Check some manpages > while you're at it: > man env > man su > man 5 crontab > > It's almost certainly a PATH issue if what you did worked and setting the PATH > in the crontab file should fix it. Why it worked before, is probably not worth > investigating. This is just strange. I have moved /usr/local/cricket/cricket/collect-subtrees to /usr/local/cricket/cricket/collect-subtrees.pl and createed the following shell script as /usr/local/cricket/cricket/collect-subtrees pnoc# cat collect-subtrees #!/bin/sh echo STARTED >> /tmp/stan which perl >> /tmp/stan /usr/local/cricket/cricket/collect-subtrees.pl normal >> /tmp/stan echo Done >> /tmp/stan /tmp stan contains: pnoc# cat /tmp/stan STARTED /usr/bin/perl Done STARTED /usr/bin/perl Done So, cron is invoking the correct command, and perl can be found, but the original collect_subtrees perl script silently dies. I am convinced it's an environemt probkl`lem, I am just uncertain how to determine what. -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From perrin at apotheon.com Thu Sep 3 19:14:10 2009 From: perrin at apotheon.com (Chad Perrin) Date: Thu Sep 3 19:14:17 2009 Subject: bookkeeping software In-Reply-To: References: Message-ID: <20090903190539.GA19664@kokopelli.hydra> On Thu, Sep 03, 2009 at 09:27:12AM -0400, Tsu-Fan Cheng wrote: > Hi, > I am looking for a port on 7.2R that can do general small family > bookkeeping, I am not running gnome or kde, does anyone have any > recommendation? thank you!! I find that finance/homebank is great for simple home finance accounting. It's definitely not the sort of thing you'd want to use for tax return preparation, but it works fine for tracking budgets and accounts. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] Perrin's Principle of Exclusion: The strength of any system is inversely proportional to the restrictions on the power of tools allowed to the general public by that system. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090903/a4e6d29b/attachment.pgp From faust64 at gmail.com Thu Sep 3 19:25:09 2009 From: faust64 at gmail.com (=?ISO-8859-1?Q?Samuel_Mart=EDn_Moro?=) Date: Thu Sep 3 19:25:16 2009 Subject: Making bootable USB keys In-Reply-To: <200909031219.57856.dyioulos@firstbhph.com> References: <200909031219.57856.dyioulos@firstbhph.com> Message-ID: I've already been told. But didn't tried it yet, my servers haven't X. I'll take a look on a test computer. But in the end, everything'll have to be done in the shellscript. Samuel Mart?n Moro CamTrace {EPITECH.} tek4 On Thu, Sep 3, 2009 at 6:19 PM, Dimitri Yioulos wrote: > On Thursday 03 September 2009 11:35:34 am Samuel > Mart?n Moro wrote: > > Hello > > > > I'm having some troubles, trying to create > > bootable USB keys. I found (freebsd-hackers ML > > archives) a script, supposed to create the > > bootable image from my iso file. > > But, it still don't boot... (I may do it wrong) > > > > In details: > > -We distribute a FreeBSD (4.7, 5.4, 6.2 and > > 7.2) "custom" server. -We burn our install CD > > (and, in a few, our USB sticks) on a Ferdora 9 > > (sorry...) > > -USB sticks must contain a FAT32 partition > > (we'ld like to provide doc for windows users) > > > > Well, my english isn't so great... so I'll post > > my code (more understandable) > > > > --maker.sh-- > > #!/bin/sh > > ISO_DIR=/r00t > > ISO_PFIX=r00t > > VERSION=5.9.3.0 > > ISO_FILE=$ISO_DIR/$ISO_PFIX-$VERSION.img > > DEVICE= > > TMPDOC=/mnt/tmpdoc > > DOCDIR=/root/samuel/docdir > > ERR= > > SFX= > > MBR=/root/samuel/mbr > > BT1=/root/samuel/boot1 > > BT2=/root/samuel/boot2 > > > > if [ -e "$1" ]; then > > DEVICE=$1 > > elif [ "$1" -a -e "/dev/$1" ]; then > > DEVICE=/dev/$1 > > elif [ "$1" ]; then > > echo "$0: incorrect device specified" >&2 > > exit > > else > > echo "$0: must specify device" >&2 > > exit > > fi > > for i in `mount | cut -d ' ' -f 1` > > do > > if [ "`echo $i | grep $DEVICE`" ]; then > > echo "$0: $i already mounted" >&2 > > echo " umount it manually or > > choose an other drive" >&2 exit > > fi > > done > > > > if [ -e "$TMPDOC" -a -d "$TMPDOC" ]; then > > echo "$0: removing $TMPDOC directory" >&2 > > rm -rf $TMPDOC > > elif [ -e "$TMPDOC" ]; then > > mv $TMPDOC $TMPDOC.old > > echo "$0: moved $TMPDOC to $TMPDOC.old" >&2 > > fi > > mkdir $TMPDOC > > > > if [ "$2" ]; then > > echo $2 | grep "\.img$" >/dev/null || > > SFX=".img" fi > > > > if [ -e "$2$SFX" ]; then > > ISO_FILE=$2$SFX > > elif [ "$2" -a -e "$ISO_DIR/$2$SFX" ]; then > > ISO_FILE=$ISO_DIR/$2 > > elif [ "$2" -a -e "$ISO_DIR/$ISO_PFIX-$2$SFX" > > ]; then ISO_FILE="$ISO_DIR/$ISO_PFX-$2$SFX" > > else > > echo "$0: will use default file > > \`$ISO_FILE'" >&2 echo " as system > > image source" >&2 fi > > if [ -e "$ISO_FILE" ]; then > > MSize=`ls -l $ISO_FILE | awk '{print $5}'` > > else > > echo "$0: $ISO_FILE doesn't exist!" >&2 > > rm -rf $TMPDOC > > exit > > fi > > if [ -z "$MSize" -o "$MSize" -lt 1 ]; then > > echo "$0: bad image size (size=$MSize)" >&2 > > rm -rf $TMPDOC > > exit > > fi > > > > while : > > do > > echo " [ Working on $DEVICE ]" > > > > echo -n " determining device geometry " > > infos=`fdisk -l $DEVICE 2>/dev/null | grep > > "[0-9]* heads"` ident=`fdisk -l $DEVICE > > 2>/dev/null | awk '/Disk identifier/{print > > $3}'` csz=`fdisk -l $DEVICE 2>/dev/null | awk > > '/Units = cylinders /{print $7}'` > > eval `echo $infos | awk '{print "hpc=" $1 " > > sec=" $3 " cyl=" $5}'` if [ -z "$hpc" -o -z > > "$sec" -o -z "$cyl" -o -z "$csz" ]; then echo " > > [ FAIL ]" > > echo "$0: can't get infos for device > > $DEVICE" >&2 rm -rf $TMPDOC > > exit > > fi > > echo " [ OK ]" > > > > echo -n " initializing partition table " > > # dd if=/dev/zero of=$DEVICE bs=$csz count=1 > > >/dev/null 2>&1 dd if=$BT1 of=$DEVICE > > >/dev/null 2>&1 round=128 > > tocyl=`expr $hpc '*' $sec '*' $csz` > > ret=`expr $MSize % $tocyl` > > MSize=`expr $MSize / $tocyl` > > test "$ret" -eq "0" || MSize=`expr $MSize + > > 1` s2len=$MSize > > s2off=`expr $cyl - $s2len - 1` > > s1len=`expr $s2off - 1` > > s1off=1 > > sfdisk -DLqf $DEVICE >/dev/null 2>&1 < > $s1off $s1len b > > $s2off $s2len a5 * > > EOF > > echo " [ OK ]" > > > > echo -n " formatting FAT32 partition " > > dd if=/dev/zero of=${DEVICE}1 bs=$csz > > count=1 >/dev/null 2>&1 mkdosfs -i 42424242 -n > > "Docs" -F 32 ${DEVICE}1 >/dev/null 2>&1 mount > > -t vfat ${DEVICE}1 $TMPDOC || ERR=1 if [ "$ERR" > > ]; then > > echo " [ FAIL ]" > > echo "$0: unable to mount ${DEVICE}1 on > > $TMPDOC" rm -rf $TMPDOC > > exit > > fi > > echo " [ OK ]" > > > > echo -n " copying documentation files " > > cp -rp $DOCDIR/* $TMPDOC/ >/dev/null 2>&1 > > || ERR=2 if [ "$ERR" ]; then > > echo " [ FAIL ]" > > echo "$0: unable to copy doc files" > > ERR= > > fi > > umount ${DEVICE}1 > > echo " [ OK ]" > > > > echo -n " copying system " > > dd if=$ISO_FILE of=${DEVICE}2 status=noxfer > > >/dev/null 2>&1 echo " [ OK ]" > > > > mbrsig $DEVICE 2>&1 | awk '{print " > > marking device with serial " $3 }' > > echo " [ Device ready! ]" > > echo "" > > echo -n " Create new USB key ? [Y/N] : > > " && read i test "$i" = "Y" -o "$i" = "y" -o > > "$i" = "O" -o "$i" = "o" || i= test -z "$i" && > > echo " [ leaving ]" && break echo " Please, > > remove current USB key, insert new one and > > press enter" read i > > done > > rmdir $TMPDOC > > --EOF-- > > > > So, this is a "USB stick generator" I'm working > > on. It seems to work. (I've not tested > > everything, but the basis is OK) The stick is > > correctly parted. > > The documentation is copied. > > My only problem is that it still don't wan't to > > boot... > > > > At the beginning, I was trying to paste my ISO > > file directly in ${DEVICE}2 Then, I found the > > following shell script, which is supposed to > > make my bootable image from my ISO file > > I changed 2/3 things, but some of you may > > recognize it anyway: > > > > --ISOtoIMG.sh-- > > #!/bin/sh > > MAKEFS=makefs > > MKLABEL=bsdlabel > > BSDTAR=tar > > DD="dd status=noxfer" > > > > make_freebsd_image() > > { > > local tree=$1 > > local imagefile=$2 > > local boot1=${tree}/boot/boot1 > > local boot2=${tree}/boot/boot2 > > > > echo "convert tree $tree image $imagefile" > > ${MAKEFS} -t ffs -o bsize=4096 -o fsize=512 > > -f 50 ${imagefile} ${tree} > > > > >/dev/null 2>&1 > > > > ${MKLABEL} -w -f ${imagefile} auto >/dev/null > > 2>&1 ${MKLABEL} -f ${imagefile} 2>/dev/null | > > sed -e '/ c:/{p;s/c:/a:/;}' | \ ${MKLABEL} -R > > -f ${imagefile} /dev/stdin >/dev/null 2>&1 > > ${DD} if=${boot1} of=${imagefile} conv=notrunc > > >/dev/null 2>&1 ${DD} if=${boot2} iseek=1 > > ibs=276 2>/dev/null | \ ${DD} of=${imagefile} > > oseek=1 obs=788 conv=notrunc >/dev/null 2>&1 } > > > > extract_image() > > { > > [ -f $1 ] || return > > local tmp="${tree}.tree" > > [ -e ${tmp} ] && rm -rf ${tmp} > > mkdir -p $tmp > > echo "extracting $tree in $tmp" > > (cd $tmp && ${BSDTAR} xf $tree) > > tree=$tmp > > } > > > > if [ -z "$1" ]; then > > echo "$0: usage" >&2 > > echo " $0 {ISO_input} | {system_root > > IMG_output}" >&2 exit > > fi > > tree=`realpath $1` > > [ "$2" ] && image=`realpath $2` || image=`echo > > $tree | sed "s/.iso/.img/"` extract_image $tree > > make_freebsd_image $tree $image > > [ -d "$tmp" ] && (chmod -R +w $tmp && rm -rf > > $tmp) --EOF-- > > > > This seems to work, too... > > I'm just surprised: > > root@granit:~/samuel# l -h /r00t/r00t-5.9.3.0* > > -rw-r--r-- 1 root root 566M 2009-09-03 15:29 > > /r00t/r00t-5.9.3.0.img -rw-r--r-- 1 root root > > 526M 2009-08-08 06:58 /r00t/r00t-5.9.3.0.iso > > new file is 40M heavier than our iso image... > > > > Also, in the first script, I tried to do the > > first dd (initializing ${DEVICE}) with: > > - if=$MBR > > - if=$BT1 > > - if=$BT2 > > - if=/dev/zero > > none of that worked... > > > > So. > > Does someone understand what am I doing wrong?! > > > > > > Thanks for you help! > > > > Samuel Mart?n Moro > > CamTrace > > {EPITECH.} tek4 > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freeb > >sd-questions To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@freebsd.org" > > > Might want to try UNetbootin. > > Dimitri > > -- > 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-unsubscribe@freebsd.org" > From mel.flynn+fbsd.questions at mailing.thruhere.net Thu Sep 3 20:10:17 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Thu Sep 3 20:10:31 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <20090903190241.GA13402@teddy.fas.com> References: <20090903114857.GA635@teddy.fas.com> <200909031754.37681.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090903190241.GA13402@teddy.fas.com> Message-ID: <200909032210.14047.mel.flynn+fbsd.questions@mailing.thruhere.net> On Thursday 03 September 2009 21:02:41 stan wrote: > pnoc# cat collect-subtrees > #!/bin/sh > > echo STARTED >> /tmp/stan > which perl >> /tmp/stan > /usr/local/cricket/cricket/collect-subtrees.pl normal >> /tmp/stan > echo Done >> /tmp/stan > > /tmp stan contains: > > pnoc# cat /tmp/stan > STARTED > /usr/bin/perl > Done > STARTED > /usr/bin/perl > Done > > So, cron is invoking the correct command, and perl can be found, but the > original collect_subtrees perl script silently dies. > > I am convinced it's an environemt probkl`lem, I am just uncertain how to > determine what. I'm not anymore. I'm putting 1 cent on a broken /usr/bin/perl symlink (perl upgrade gone bonkers, f.e. done with ro mounted /usr) and another cent on the perl script using system() function, with pathless commands (that is environment). file /usr/bin/perl should report if the symlink is broken. -- Mel From stanb at panix.com Thu Sep 3 20:23:49 2009 From: stanb at panix.com (stan) Date: Thu Sep 3 20:23:56 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <200909032210.14047.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <20090903114857.GA635@teddy.fas.com> <200909031754.37681.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090903190241.GA13402@teddy.fas.com> <200909032210.14047.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: <20090903202347.GA16108@teddy.fas.com> On Thu, Sep 03, 2009 at 10:10:13PM +0200, Mel Flynn wrote: > On Thursday 03 September 2009 21:02:41 stan wrote: > > > pnoc# cat collect-subtrees > > #!/bin/sh > > > > echo STARTED >> /tmp/stan > > which perl >> /tmp/stan > > /usr/local/cricket/cricket/collect-subtrees.pl normal >> /tmp/stan > > echo Done >> /tmp/stan > > > > /tmp stan contains: > > > > pnoc# cat /tmp/stan > > STARTED > > /usr/bin/perl > > Done > > STARTED > > /usr/bin/perl > > Done > > > > So, cron is invoking the correct command, and perl can be found, but the > > original collect_subtrees perl script silently dies. > > > > I am convinced it's an environemt probkl`lem, I am just uncertain how to > > determine what. > > I'm not anymore. I'm putting 1 cent on a broken /usr/bin/perl symlink (perl > upgrade gone bonkers, f.e. done with ro mounted /usr) and another cent on the > perl script using system() function, with pathless commands (that is > environment). > file /usr/bin/perl should report if the symlink is broken. pnoc# file /usr/bin/perl /usr/bin/perl: symbolic link to `/usr/local/bin/perl5.8.9' pnoc# ls /usr/local/bin/perl5.8.9 /usr/local/bin/perl5.8.9 You did see where I had the replacement shell script for collect_subtrees do a perl --version into the logfile, right? To me, that's pretty convincing evidence that perl works. Plus, remeber that I can execute the collect_subtree perl script sucesfy`ully whenI su to the cricket user. -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From kline at thought.org Thu Sep 3 20:44:00 2009 From: kline at thought.org (Gary Kline) Date: Thu Sep 3 20:44:07 2009 Subject: difficult-to-phrase question... In-Reply-To: <4A9F078A.1050800@radel.com> References: <20090902234324.GA1735@thought.org> <4A9F078A.1050800@radel.com> Message-ID: <20090903204343.GA5708@thought.org> On Wed, Sep 02, 2009 at 08:02:18PM -0400, Jon Radel wrote: > Gary Kline wrote: > > > > guys, (of either gender) > > > > here's one that is a bit difficult to figure out how to ask, but > > here's my first shot: > > > > i'm looking for a file what contains string "S". the filename > > in this case has a zillion letters, but that beside the point. > > > > i can use grep to find "S" and grep gives me the file[s] that > > have the string. now, is there any easy way of reading that > > file, or deleting or otherwise munging that file? > > > > nutshell is that every time i reboot (into kde), kde wastes > > time/cpu spawning unwanted whatever: versions of konqueror, kttsd, > > ksayit, &c. [[i found these files in > > ~/.kde/share/config/session, about 20, dated may, 09 to oct 08. > > rm'ing the bunch would get rid of the instantiate problem, but > > having a script to diddle with a found string "S" would be > > useful esp'ly if the filename of pathname were long. > > > > i'll mouse swipe the string and fname to prove my point. > > thanks for any help. > > > > gary > > > > ps: if scripting this is too grizzly i'll do it in C and do an > > inline post of src and example use. > > > > Do you mean something like > > rm `grep -l S *` Or, more specifically, maybe $ cmd `grep -lr "S" *` [??] I'll try that on the string I was looking for. Polytropon, I have only the vaguest clue what your suggestion was, sorry. To Adam, yeah, I have indeed removed these surplus kde apps, but the session file is still there each time. So the apps are reinstantianted every time. --I'm going to blow them away. gary > > or am I completely missing the point of what you're trying to do? > > -- > > --Jon Radel > jon@radel.com -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php 10% slice of my latest novel: http://www.thought.org/10pc From wblock at wonkity.com Thu Sep 3 20:45:54 2009 From: wblock at wonkity.com (Warren Block) Date: Thu Sep 3 20:46:03 2009 Subject: What invokes cricket on FreeBSD Message-ID: > On Thursday 03 September 2009 21:02:41 stan wrote: > > > pnoc# cat collect-subtrees > > #!/bin/sh > > > > echo STARTED >> /tmp/stan > > which perl >> /tmp/stan > > /usr/local/cricket/cricket/collect-subtrees.pl normal >> /tmp/stan > > echo Done >> /tmp/stan > > > > /tmp stan contains: > > > > pnoc# cat /tmp/stan > > STARTED > > /usr/bin/perl > > Done > > STARTED > > /usr/bin/perl > > Done That 'which perl' may not really help any, since collect-subtrees runs perl from /usr/local/bin/perl. Although I'd expect an error if /usr/local/bin/perl was missing. You could change your test script to see: /usr/bin/perl /usr/local/cricket/cricket/collect-subtrees.pl -Warren Block * Rapid City, South Dakota USA From stanb at panix.com Thu Sep 3 21:05:17 2009 From: stanb at panix.com (stan) Date: Thu Sep 3 21:05:24 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: References: Message-ID: <20090903210516.GA17399@teddy.fas.com> On Thu, Sep 03, 2009 at 02:45:52PM -0600, Warren Block wrote: > >On Thursday 03 September 2009 21:02:41 stan wrote: > > > >> pnoc# cat collect-subtrees > >> #!/bin/sh > >> > >> echo STARTED >> /tmp/stan > >> which perl >> /tmp/stan > >> /usr/local/cricket/cricket/collect-subtrees.pl normal >> /tmp/stan > >> echo Done >> /tmp/stan > >> > >> /tmp stan contains: > >> > >> pnoc# cat /tmp/stan > >> STARTED > >> /usr/bin/perl > >> Done > >> STARTED > >> /usr/bin/perl > >> Done > > That 'which perl' may not really help any, since collect-subtrees runs > perl from /usr/local/bin/perl. > > Although I'd expect an error if /usr/local/bin/perl was missing. You > could change your test script to see: > > /usr/bin/perl /usr/local/cricket/cricket/collect-subtrees.pl > > -Warren Block * Rapid City, South Dakota USA Here is the new test script: #!/bin/sh echo started >> /tmp/stan /usr/bin/perl --version >> /tmp/stan echo "++++++" >> /tmp/stan /usr/bin/perl /usr/local/cricket/cricket/collect-subtrees.pl normal >> /tmp/stan echo "++++++" >> /tmp/stan echo done >> /tmp/stan And, here is tthe outptu file: pnoc# cat /tmp/stan started This is perl, v5.8.9 built for i386-freebsd-64int (with 1 registered patch, see perl -V for more detail) Copyright 1987-2008, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. ++++++ ++++++ done When I su - to cricket. and run the collector, it takes a minute or so to run, and generates a lot of output to the screen. Also, wgen I do that, it's Cricket's logfile gets updated. Run from cron the logfile never changes. -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From stanb at panix.com Thu Sep 3 21:11:29 2009 From: stanb at panix.com (stan) Date: Thu Sep 3 21:11:36 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: References: Message-ID: <20090903205216.GA17111@teddy.fas.com> On Thu, Sep 03, 2009 at 02:45:52PM -0600, Warren Block wrote: > >On Thursday 03 September 2009 21:02:41 stan wrote: > > > >> pnoc# cat collect-subtrees > >> #!/bin/sh > >> > >> echo STARTED >> /tmp/stan > >> which perl >> /tmp/stan > >> /usr/local/cricket/cricket/collect-subtrees.pl normal >> /tmp/stan > >> echo Done >> /tmp/stan > >> > >> /tmp stan contains: > >> > >> pnoc# cat /tmp/stan > >> STARTED > >> /usr/bin/perl > >> Done > >> STARTED > >> /usr/bin/perl > >> Done > > That 'which perl' may not really help any, since collect-subtrees runs > perl from /usr/local/bin/perl. > Actually no: #!/usr/bin/perl -w That's the first line in collect-subtrees. And did you see when I added "perl --version" to the test script? But, I will try your sugestion, and report back. Thanks for the ehlp. -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From mel.flynn+fbsd.questions at mailing.thruhere.net Thu Sep 3 21:41:32 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Thu Sep 3 21:41:39 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <20090903202347.GA16108@teddy.fas.com> References: <20090903114857.GA635@teddy.fas.com> <200909032210.14047.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090903202347.GA16108@teddy.fas.com> Message-ID: <200909032341.28748.mel.flynn+fbsd.questions@mailing.thruhere.net> On Thursday 03 September 2009 22:23:47 stan wrote: > On Thu, Sep 03, 2009 at 10:10:13PM +0200, Mel Flynn wrote: > > On Thursday 03 September 2009 21:02:41 stan wrote: > > > pnoc# cat collect-subtrees > > > #!/bin/sh > > > > > > echo STARTED >> /tmp/stan > > > which perl >> /tmp/stan > > > /usr/local/cricket/cricket/collect-subtrees.pl normal >> /tmp/stan > > > echo Done >> /tmp/stan > > > > > > /tmp stan contains: > > > > > > pnoc# cat /tmp/stan > > > STARTED > > > /usr/bin/perl > > > Done > > > STARTED > > > /usr/bin/perl > > > Done > > > > > > So, cron is invoking the correct command, and perl can be found, but > > > the original collect_subtrees perl script silently dies. > > > > > > I am convinced it's an environemt probkl`lem, I am just uncertain how > > > to determine what. > > > > I'm not anymore. I'm putting 1 cent on a broken /usr/bin/perl symlink > > (perl upgrade gone bonkers, f.e. done with ro mounted /usr) and another > > cent on the perl script using system() function, with pathless commands > > (that is environment). Ok, one liner: su -m cricket env -i HOME=/usr/local/cricket PATH=/bin:/usr/bin \ /usr/local/cricket/cricket/collect-subtrees.pl normal I've downloaded the 1.0.5 version, but can't quickly see where that would go wrong with this script. touch is in /usr/bin, so that should work. Any cron messages in /var/mail/cricket? -- Mel From wblock at wonkity.com Thu Sep 3 21:44:44 2009 From: wblock at wonkity.com (Warren Block) Date: Thu Sep 3 21:44:51 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <20090903205216.GA17111@teddy.fas.com> References: <20090903205216.GA17111@teddy.fas.com> Message-ID: On Thu, 3 Sep 2009, stan wrote: > On Thu, Sep 03, 2009 at 02:45:52PM -0600, Warren Block wrote: >>> On Thursday 03 September 2009 21:02:41 stan wrote: >>> >>>> pnoc# cat collect-subtrees >>>> #!/bin/sh >>>> >>>> echo STARTED >> /tmp/stan >>>> which perl >> /tmp/stan >>>> /usr/local/cricket/cricket/collect-subtrees.pl normal >> /tmp/stan >>>> echo Done >> /tmp/stan >>>> >>>> /tmp stan contains: >>>> >>>> pnoc# cat /tmp/stan >>>> STARTED >>>> /usr/bin/perl >>>> Done >>>> STARTED >>>> /usr/bin/perl >>>> Done >> >> That 'which perl' may not really help any, since collect-subtrees runs >> perl from /usr/local/bin/perl. >> > > Actually no: > > #!/usr/bin/perl -w > > That's the first line in collect-subtrees. I was looking at the port version of cricket. /usr/ports/net-mgmt/cricket/work/cricket-1.0.5/collect-subtrees starts with #!/usr/local/bin/perl -w ... -Warren Block * Rapid City, South Dakota USA From yuri at rawbw.com Thu Sep 3 23:13:49 2009 From: yuri at rawbw.com (Yuri) Date: Thu Sep 3 23:13:55 2009 Subject: How to make netboot "copy" of an existent system? Message-ID: <4AA04DAA.2010902@rawbw.com> I have a spare machine that lacks hard drive. Is there an easy setup that would allow me to boot it via netboot and to be a "mirror" of another existing system: root and home directories should be NFS mounted from an existing system. In other words it should be just like the other system except for disks are NFS-mapped. Yuri From mel.flynn+fbsd.questions at mailing.thruhere.net Thu Sep 3 23:34:09 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Thu Sep 3 23:34:17 2009 Subject: 'alias' + sudo In-Reply-To: <20090902072659.7829da56@scorpio.seibercom.net> References: <20090902072659.7829da56@scorpio.seibercom.net> Message-ID: <200909040134.05992.mel.flynn+fbsd.questions@mailing.thruhere.net> On Wednesday 02 September 2009 13:26:59 Jerry wrote: > I have set up several 'alias' definitions in my .bashrc file. They are > honored when run as either a regular user or as root. However, when I > prefix a command with 'sudo', the alias is no longer honored. In other > words, the actual command is run;however, any flags that I was passing > to it via 'alias' are lost. How can I circumvent this annoyance. > > Example, I often use 'pico' from within 'xterm'. I set up an alias that > causes pico to use the mouse; i.e., pico -m which works fine as long as > I do not prefix the command with 'sudo' alias spico='/usr/local/bin/sudo pico -m' and be done with it. -- Mel From sakison at gmail.com Thu Sep 3 23:49:34 2009 From: sakison at gmail.com (Alan Shearer) Date: Thu Sep 3 23:49:40 2009 Subject: Logging failed attempts Message-ID: <159f04570909031625t16245fb9se24ee023566870c1@mail.gmail.com> Howdy, I was curious if there was a way to setup logging of *failed* attempts to login to a PPTP Server hosted on freebsd 7? I can only see successful logins. On a similar note is there a way to log successful and failed attempts to SSH into freebsd? Thanks for the help! Alan From agus.262 at gmail.com Thu Sep 3 23:52:44 2009 From: agus.262 at gmail.com (Agus) Date: Thu Sep 3 23:52:51 2009 Subject: Reverse Proxy /Proxy Pass Message-ID: Hi guys, What server, application do u know/recommend me for using as a ProxyPass / Reverse Proxy... The idea is to forward all requests to port 80 to this server and then from here according to the vhost send it to the actual server... For now i only need proxying.. dont think cacheing will be possible so im just looking for a pretty fast, light and stable app to do this on a freebsd 7... Thanks and ihope to hear some cool recommendations.. hehe Cheers, A From gesbbb at yahoo.com Fri Sep 4 00:10:38 2009 From: gesbbb at yahoo.com (Jerry) Date: Fri Sep 4 00:10:45 2009 Subject: 'alias' + sudo In-Reply-To: <200909040134.05992.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <20090902072659.7829da56@scorpio.seibercom.net> <200909040134.05992.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: <20090903201036.36486533@scorpio.seibercom.net> On Fri, 4 Sep 2009 01:34:05 +0200 Mel Flynn wrote: > alias spico='/usr/local/bin/sudo pico -m' and be done with it. That is what I am currently doing; however,there are other commands that I want to use that are not available when used via sudo without modifying the alias. I did not realize that sudo had such a limitation. -- Jerry gesbbb@yahoo.com Recursion is the root of computation since it trades description for time. From mel.flynn+fbsd.questions at mailing.thruhere.net Fri Sep 4 00:12:47 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Fri Sep 4 00:13:08 2009 Subject: Reverse Proxy /Proxy Pass In-Reply-To: References: Message-ID: <200909040212.44397.mel.flynn+fbsd.questions@mailing.thruhere.net> On Friday 04 September 2009 01:20:46 Agus wrote: > What server, application do u know/recommend me for using as a > ProxyPass / Reverse Proxy... > > The idea is to forward all requests to port 80 to this server and then > from here according to the vhost send it to the actual server... For > now i only need proxying.. dont think cacheing will be possible so im > just looking for a pretty fast, light and stable app to do this on a > freebsd 7... > > Thanks and ihope to hear some cool recommendations.. hehe If lightweight, go with www/nginx. Features, go with www/squid or apache+mod_proxy. -- Mel From kline at thought.org Fri Sep 4 00:24:50 2009 From: kline at thought.org (Gary Kline) Date: Fri Sep 4 00:24:57 2009 Subject: difficult-to-phrase question... In-Reply-To: <20090903020557.2df7c6bf.freebsd@edvax.de> References: <20090902234324.GA1735@thought.org> <20090903020557.2df7c6bf.freebsd@edvax.de> Message-ID: <20090904002440.GA23859@thought.org> On Thu, Sep 03, 2009 at 02:05:57AM +0200, Polytropon wrote: > On Wed, 2 Sep 2009 16:43:30 -0700, Gary Kline wrote: > > i'm looking for a file what contains string "S". the filename > > in this case has a zillion letters, but that beside the point. > > > > i can use grep to find "S" and grep gives me the file[s] that > > have the string. now, is there any easy way of reading that > > file, or deleting or otherwise munging that file? > > I would suggest one of my favourite tools, the Midnight Commander, > available via ports as misc/mc or misc/mc-lite - or from a > package. > > First you run the find dialog, Meta-? (Esc, ?, if you don't have > a Meta key). Enter file mask if needed, starting directory (usu- > ally .) and "S" for the search string. Then a list with the items > found will come up. > > In order to view a file from this list, press PF3 on a file. The > viewer will automatically skip to where "S" has been found in the > file. If you press ENTER on the file, it will be selected in one > of the panels, and you can move or delete it. > > > > > ps: if scripting this is too grizzly i'll do it in C and do an > > inline post of src and example use. > > If you exactly know what to do with the file, scripting might be > the easiest solution. The more interaction, the less optimum it > is. :-) you're right. originally, i was thinking of simplr /bin/rm. find a string, and move that file into some junk file or just remove it. then i thought about viewing it with more|vi. or cp'ing the file. etc. mv seems to have already been invented!! gary > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php 10% slice of my latest novel: http://www.thought.org/10pc From mel.flynn+fbsd.questions at mailing.thruhere.net Fri Sep 4 01:58:30 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Fri Sep 4 01:58:37 2009 Subject: 'alias' + sudo In-Reply-To: <20090903201036.36486533@scorpio.seibercom.net> References: <20090902072659.7829da56@scorpio.seibercom.net> <200909040134.05992.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090903201036.36486533@scorpio.seibercom.net> Message-ID: <200909040358.25774.mel.flynn+fbsd.questions@mailing.thruhere.net> On Friday 04 September 2009 02:10:36 Jerry wrote: > On Fri, 4 Sep 2009 01:34:05 +0200 > > Mel Flynn wrote: > > alias spico='/usr/local/bin/sudo pico -m' and be done with it. > > That is what I am currently doing; however,there are other commands > that I want to use that are not available when used via sudo without > modifying the alias. I did not realize that sudo had such a limitation. It doesn't. alias has the limitation. As far as alias is concerned, a command is the first thing on the command line, and for good reason, as you don't want it to look further along the command line and attempt to expand everything. So the shell only changes the command that is really run, when the first word matches an alias. Sudo or any app for that matter, never knew it was run through an alias. However.....reading through the bash manpage: If the last character of the alias value is a blank, then the next command word following the alias is also checked for alias expansion. So.....: $ alias sudo='/usr/local/bin/sudo ' $ alias pico='vim --version' $ sudo pico VIM - Vi IMproved 7.2 (2008 Aug 9, compiled Jul 21 2009 13:22:46) Included patches: 1-6, 8-35, 37-48, 50-70, 73, 75-87, 90-92, 94-100, 102-137, 139-149, 151-171, 173-190, 192-193, 195-203, 206-209 However....be aware of the consequences. If someone compromises your account, then setting: alias ls='/tmp/mkroot' and you running: sudo ls He just got root. -- Mel From fbsd1 at a1poweruser.com Fri Sep 4 04:31:18 2009 From: fbsd1 at a1poweruser.com (Fbsd1) Date: Fri Sep 4 04:31:25 2009 Subject: Making bootable USB keys In-Reply-To: References: Message-ID: <4AA09809.1050402@a1poweruser.com> Samuel Mart?n Moro wrote: > Hello > > I'm having some troubles, trying to create bootable USB keys. > I found (freebsd-hackers ML archives) a script, supposed to create the > bootable image from my iso file. > But, it still don't boot... (I may do it wrong) > > In details: > -We distribute a FreeBSD (4.7, 5.4, 6.2 and 7.2) "custom" server. > -We burn our install CD (and, in a few, our USB sticks) on a Ferdora 9 > (sorry...) > -USB sticks must contain a FAT32 partition (we'ld like to provide doc for > windows users) > > Well, my english isn't so great... so I'll post my code (more > understandable) > clip ---- I have same problem with getting a usb stick to boot. After much testing with different sticks and PC combinations have come to this conclusion. When usb hardware first can out they were created for usb 1.0 standard and at that same period PC's where using software drivers for usb support and the PC's bio's boot selection did not include option to boot from usb disk. As usb devices became more popular PC manufactures started adding USB firmware to their motherboards for usb 2.0 standard. From my research into usb 2.0 it only supports data recording and does not support booting function. About 2007 usb 2.2 standard came out and it supports an usb memory stick as bootable. In 2008 some manufactures of motherboards added usb 2.2 standard to their motherboards and bio's selection to boot from memory stick. To be bootable the first file on the the stick has to be the boot image. Haveing a ms fat partition first on the stick will never work unless you fill it with an bootable ms/windows or ms/dos system or the same kind of setup found on the cdrom1 release cd. Only usb 2.2 memory sticks are bootable on newer PC's that have usb 2.2 firmware on their motherboards and matching Bio's with selection for booting from usb 2.2 memory sticks. Please note that bio's booting selection for booting from USB disk is different than booting selection for booting from usb memory stick. I have posted many posts on this list about this subject and have not received any posts contrary to the above statement. The pending 8.0 release has a complete rewrite of the USB code and a new stick.img is being generated as part of the release install distribution's. I can dd the 8.0-stick.img file to an 2.0 stick and it never boots, but do the same thing to a 2.2 stick and it boots on all 3 of my PC manufactured since June 2008. Final Conclusion: Booting from a USB memory stick successfully is totally dependent on using new start-of-the-art hardware. From bennett at cs.niu.edu Fri Sep 4 05:11:51 2009 From: bennett at cs.niu.edu (Scott Bennett) Date: Fri Sep 4 05:13:29 2009 Subject: cc -march questions Message-ID: <200909040510.n845AsPU024402@mp.cs.niu.edu> On Thu, 3 Sep 2009 10:28:09 -0400 Daniel Molina Wegener wrote: >2009/9/3 Scott Bennett > >> What exactly does "cc -march=prescott" enable cc to do? Does it >> include >> instruction scheduling for the pipeline structure of the Prescott CPUs? >> Does >> it include other options, e.g., "-mmmx -msse -msse2 -msse3"? >> Thanks in advance for any information on the above! >> > >According to the GCC manual page, it enables MMX, SSE, SSE2 and SSE3 >instruction set support. > >Try: >$ man 1 gcc >/prescott > Thanks much for your reply. This is very bizarre. I think I've looked at that page at least 50 times in the past few years and somehow never saw those lines. Sigh. :-} I've had CPUTYPE=prescott in my /etc/make.conf for a long time now, and I recently installed math/atlas-devel. I wonder if specifying CPUTYPE=prescott may have caused it to choose the wrong components to include in the final version of libalapack. If so, then I should rebuild it without CPUTYPE=prescott. Scott Bennett, Comm. ASMELG, CFIAG ********************************************************************** * Internet: bennett at cs.niu.edu * *--------------------------------------------------------------------* * "A well regulated and disciplined militia, is at all times a good * * objection to the introduction of that bane of all free governments * * -- a standing army." * * -- Gov. John Hancock, New York Journal, 28 January 1790 * ********************************************************************** From modulok at gmail.com Fri Sep 4 05:21:00 2009 From: modulok at gmail.com (Modulok) Date: Fri Sep 4 05:21:07 2009 Subject: SANE epson.conf vs. epson2.conf Message-ID: <64c038660909032220xd97c8e0p8b2719c6dd4b7511@mail.gmail.com> There are two SANE backend configuration files for epson scanners, 'epson.conf' and 'epson2.conf'. How do I know which one to use for any given epson scanner? Does it matter? "The scanner model used was the EPSON Perfection 1650, so we know the scanner will use the epson2 backend." How did we know that? Thanks. -Modulok- From agus.262 at gmail.com Fri Sep 4 06:34:17 2009 From: agus.262 at gmail.com (Agus) Date: Fri Sep 4 06:34:23 2009 Subject: Reverse Proxy /Proxy Pass In-Reply-To: <200909040212.44397.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <200909040212.44397.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: 2009/9/3 Mel Flynn : > On Friday 04 September 2009 01:20:46 Agus wrote: > >> What server, application do u know/recommend me for using as a >> ProxyPass / Reverse Proxy... >> >> The idea is to forward all requests to port 80 to this server and then >> from here according to the vhost send it to the actual server... For >> now i only need proxying.. dont think cacheing will be possible so im >> just looking for a pretty fast, light and stable app to do this on a >> freebsd 7... >> >> Thanks and ihope to hear some cool recommendations.. hehe > > If lightweight, go with www/nginx. Features, go with www/squid or > apache+mod_proxy. > -- > Mel > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Thanks Mel.... Yes im looking for a light, fast one for now..... no need to cache and weird redirections... so.. will follow your reco i think Thanks, From =?utf-8?b?4LmE4Lie4Lij4Lix4LiKIA==?= Fri Sep 4 06:36:32 2009 From: =?utf-8?b?4LmE4Lie4Lij4Lix4LiKIA==?= (=?utf-8?b?4LmE4Lie4Lij4Lix4LiKIA==?=) Date: Fri Sep 4 06:36:40 2009 Subject: blogtk remove \n\r Message-ID: <20090904131742.868640e7x5u2y6ti@webmail.tint.or.th> hi sirs, i face problems about posting into blog using blogtk. it seems that blogtk chanages all hard <br /> into space. every time i edit my blog i have to manually added <br /> at some point in the text which is not quite comfortable. would anyone here has some hints on this kind of problem? thanks indeed for any helps and hints. with best regards, psr -- ???? ?????????? ????? ????????? http://makham.blogspot.com ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From faust64 at gmail.com Fri Sep 4 07:51:58 2009 From: faust64 at gmail.com (=?ISO-8859-1?Q?Samuel_Mart=EDn_Moro?=) Date: Fri Sep 4 07:52:06 2009 Subject: Making bootable USB keys In-Reply-To: <4AA09809.1050402@a1poweruser.com> References: <4AA09809.1050402@a1poweruser.com> Message-ID: In fact, we provide the servers and the keys. So we're sure everything will work. And also, our install CD is already able to create this kind of USB stick. It was a former co-worker who did it. I started mine looking its. But most of used commands haven't exact equivalent under linux (and I fucking hate sfdisk and counting in cylinders!) Here's an example of a generated stick: h2g2:~# fdisk da0 ******* Working on device /dev/da0 ******* parameters extracted from in-core disklabel are: cylinders=493 heads=255 sectors/track=63 (16065 blks/cyl) parameters to be used for BIOS calculations are: cylinders=493 heads=255 sectors/track=63 (16065 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT) start 63, size 6602652 (3223 Meg), flag 0 beg: cyl 0/ head 1/ sector 1; end: cyl 410/ head 254/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 6602715, size 1317330 (643 Meg), flag 80 (active) beg: cyl 411/ head 0/ sector 1; end: cyl 492/ head 254/ sector 63 The data for partition 3 is: The data for partition 4 is: h2g2:~# Samuel Mart?n Moro CamTrace {EPITECH.} tek4 On Fri, Sep 4, 2009 at 6:31 AM, Fbsd1 wrote: > Samuel Mart?n Moro wrote: > >> Hello >> >> I'm having some troubles, trying to create bootable USB keys. >> I found (freebsd-hackers ML archives) a script, supposed to create the >> bootable image from my iso file. >> But, it still don't boot... (I may do it wrong) >> >> In details: >> -We distribute a FreeBSD (4.7, 5.4, 6.2 and 7.2) "custom" server. >> -We burn our install CD (and, in a few, our USB sticks) on a Ferdora 9 >> (sorry...) >> -USB sticks must contain a FAT32 partition (we'ld like to provide doc for >> windows users) >> >> Well, my english isn't so great... so I'll post my code (more >> understandable) >> >> > clip ---- > > I have same problem with getting a usb stick to boot. After much testing > with different sticks and PC combinations have come to this conclusion. > > When usb hardware first can out they were created for usb 1.0 standard and > at that same period PC's where using software drivers for usb support and > the PC's bio's boot selection did not include option to boot from usb disk. > As usb devices became more popular PC manufactures started adding USB > firmware to their motherboards for usb 2.0 standard. From my research into > usb 2.0 it only supports data recording and does not support booting > function. About 2007 usb 2.2 standard came out and it supports an usb memory > stick as bootable. In 2008 some manufactures of motherboards added usb 2.2 > standard to their motherboards and bio's selection to boot from memory > stick. > > To be bootable the first file on the the stick has to be the boot image. > Haveing a ms fat partition first on the stick will never work unless you > fill it with an bootable ms/windows or ms/dos system or the same kind of > setup found on the cdrom1 release cd. > > Only usb 2.2 memory sticks are bootable on newer PC's that have usb 2.2 > firmware on their motherboards and matching Bio's with selection for booting > from usb 2.2 memory sticks. Please note that bio's booting selection for > booting from USB disk is different than booting selection for booting from > usb memory stick. I have posted many posts on this list about this subject > and have not received any posts contrary to the above statement. > > The pending 8.0 release has a complete rewrite of the USB code and a new > stick.img is being generated as part of the release install distribution's. > I can dd the 8.0-stick.img file to an 2.0 stick and it never boots, but do > the same thing to a 2.2 stick and it boots on all 3 of my PC manufactured > since June 2008. > > Final Conclusion: Booting from a USB memory stick successfully is totally > dependent on using new start-of-the-art hardware. > > > > > > > > From mel.flynn+fbsd.questions at mailing.thruhere.net Fri Sep 4 08:39:19 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Fri Sep 4 08:39:26 2009 Subject: KDE3 --> KDE4 In-Reply-To: <200908261250.00903.motoom@xs4all.nl> References: <200908261250.00903.motoom@xs4all.nl> Message-ID: <200909041039.16301.mel.flynn+fbsd.questions@mailing.thruhere.net> On Wednesday 26 August 2009 12:50:00 Michiel Overtoom wrote: > I never understood the need for transparent windows. If you're working in > a window you want to concentrate on its contents, not on stuff that's > happening beneath it. It breaks the flow. I think it's indicative of the > ritalin-generation of teens who can't concentrate for two minutes and need > to constantly tweet about nonsense. Geez, I'm getting old ;-) I felt the same way initially. However, I'm not old enough yet, to remember I can get used to things and now that I have, it doesn't bother me and at times it's convenient (f.e. when repositioning windows). Still, it's easy to turn off. I'm also using the "Flip Switch" to alt-tab windows, which is much more pleasant then having to read sometimes missing window titles/icons in a list. I can definitely do without Kontact's aggregation of message lists, other then that, after tweaking it, can't say that I miss KDE 3, even though I had the initial shocker you experienced. I also did a fair amount of tweaking after the first KDE3 install and I can't honestly remember if I took longer then or now. -- Mel From modulok at gmail.com Fri Sep 4 09:03:36 2009 From: modulok at gmail.com (Modulok) Date: Fri Sep 4 09:03:43 2009 Subject: SANE configuration ... ideas? Message-ID: <64c038660909040203i586520aauc0299041c1d839d3@mail.gmail.com> I want a scanner. I found one I like. I then checked the SANE 'Supported Scanners' list. My scanner is there: "Perfection V300 Photo USB 0x04b8/0x0131 good requires DFSG non-free esci-interpreter-gt-f720
overseas version of the GT-F620" I'm not sure what the 'requires DFSG...' business is about, but lets get it working on FreeBSD. I followed the handbook section on scanners. After installing a few ports and tweaking a config file let's see if 'scanimage' knows about it: scanimage -L device `epson:libusb:/dev/usb3:/dev/ugen0' is a Epson flatbed scanner Yay! Let's scan something: scanimage -d epson:libusb:/dev/usb3:/dev/ugen0 > foo.pnm scanimage: rounded value of br-x from -32768 to 0 scanimage: rounded value of br-y from -32768 to 0 scanimage: sane_start: Invalid argument Maybe the backend just doesn't set a reasonable defaults for the image width/height? Let's try it manually! scanimage -x 640 -y 480 -d epson:libusb:/dev/usb3:/dev/ugen0 > foo.pnm scanimage: rounded value of br-x from 640 to -32768 scanimage: rounded value of br-y from 480 to -32768 scanimage: sane_start: Invalid argument Somewhere, something is horribly wrong. Maybe it has to do with that 'requires DFSG non-free esci-interpreter-gt-f720' business. What is that? Where do I get it and how do I use it? ... and more importantly, how do I go about getting this scanner to work? I'm willing to read and tweak, but I'm not sure what I'm supposed to tweak anymore. Thanks! -Modulok- From faust64 at gmail.com Fri Sep 4 10:13:50 2009 From: faust64 at gmail.com (=?ISO-8859-1?Q?Samuel_Mart=EDn_Moro?=) Date: Fri Sep 4 10:13:56 2009 Subject: Making bootable USB keys In-Reply-To: References: <4AA09809.1050402@a1poweruser.com> Message-ID: Hello So, for the hexdump problem (files that begin differently), I found that status=noxfer isn't a correct dd option on FreeBSD... (yeah, and writting scripts with `>/dev/null 2>&1' isn't such a good idea...) I tested back, it failed again. I used a generated stick (by our FreeBSD script) to compare with mine. da0 (mine) / da1 (good) da0s2 and da1s2 are (nearly) the same for 8192b (the start of daXs2a) then, da0s2a is: 00001e80 00 00 00 04 00 ff ff ff ff 2f 7c 5c 2d 00 00 00 |........./|\-...| 00001e90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00002000 00 00 00 00 00 00 00 00 20 00 00 00 30 00 00 00 |........ ...0...| 00002010 38 00 00 00 48 00 00 00 00 00 00 00 ff ff ff ff |8...H...........| 00002020 b9 db a0 4a 58 af 11 00 7e a8 11 00 2b 00 00 00 |...JX...~...+...| and da1s2a is: 00001e80 00 00 00 04 00 ff ff ff ff 2f 7c 5c 2d 00 00 00 |........./|\-...| 00001e90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00002000 72 32 45 69 a2 45 71 4b d3 2c f5 2e e9 82 28 cd |r2Ei.EqK.,....(.| 00002010 b6 d4 02 b1 e2 34 51 36 76 c5 b5 22 4a 0e 4b aa |.....4Q6v.."J.K.| 00002020 b5 54 71 3e a5 c7 36 8a 52 b9 77 a9 18 6c f3 e9 |.Tq>..6.R.w..l..| I searched into my generated file, there's no "r2Ei". I'll post updates. (But if you can help ... ^^) Thanks! Samuel Mart?n Moro CamTrace {EPITECH.} tek4 On Fri, Sep 4, 2009 at 9:51 AM, Samuel Mart?n Moro wrote: > In fact, we provide the servers and the keys. > So we're sure everything will work. > > And also, our install CD is already able to create this kind of USB stick. > It was a former co-worker who did it. > I started mine looking its. But most of used commands haven't exact > equivalent under linux (and I fucking hate sfdisk and counting in > cylinders!) > > Here's an example of a generated stick: > h2g2:~# fdisk da0 > ******* Working on device /dev/da0 ******* > parameters extracted from in-core disklabel are: > cylinders=493 heads=255 sectors/track=63 (16065 blks/cyl) > > parameters to be used for BIOS calculations are: > cylinders=493 heads=255 sectors/track=63 (16065 blks/cyl) > > Media sector size is 512 > Warning: BIOS sector numbering starts with sector 1 > Information from DOS bootblock is: > The data for partition 1 is: > sysid 11 (0x0b),(DOS or Windows 95 with 32 bit FAT) > start 63, size 6602652 (3223 Meg), flag 0 > beg: cyl 0/ head 1/ sector 1; > end: cyl 410/ head 254/ sector 63 > The data for partition 2 is: > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 6602715, size 1317330 (643 Meg), flag 80 (active) > beg: cyl 411/ head 0/ sector 1; > end: cyl 492/ head 254/ sector 63 > The data for partition 3 is: > > The data for partition 4 is: > > h2g2:~# > > > > Samuel Mart?n Moro > CamTrace > {EPITECH.} tek4 > > > > On Fri, Sep 4, 2009 at 6:31 AM, Fbsd1 wrote: > >> Samuel Mart?n Moro wrote: >> >>> Hello >>> >>> I'm having some troubles, trying to create bootable USB keys. >>> I found (freebsd-hackers ML archives) a script, supposed to create the >>> bootable image from my iso file. >>> But, it still don't boot... (I may do it wrong) >>> >>> In details: >>> -We distribute a FreeBSD (4.7, 5.4, 6.2 and 7.2) "custom" server. >>> -We burn our install CD (and, in a few, our USB sticks) on a Ferdora 9 >>> (sorry...) >>> -USB sticks must contain a FAT32 partition (we'ld like to provide doc for >>> windows users) >>> >>> Well, my english isn't so great... so I'll post my code (more >>> understandable) >>> >>> >> clip ---- >> >> I have same problem with getting a usb stick to boot. After much testing >> with different sticks and PC combinations have come to this conclusion. >> >> When usb hardware first can out they were created for usb 1.0 standard and >> at that same period PC's where using software drivers for usb support and >> the PC's bio's boot selection did not include option to boot from usb disk. >> As usb devices became more popular PC manufactures started adding USB >> firmware to their motherboards for usb 2.0 standard. From my research into >> usb 2.0 it only supports data recording and does not support booting >> function. About 2007 usb 2.2 standard came out and it supports an usb memory >> stick as bootable. In 2008 some manufactures of motherboards added usb 2.2 >> standard to their motherboards and bio's selection to boot from memory >> stick. >> >> To be bootable the first file on the the stick has to be the boot image. >> Haveing a ms fat partition first on the stick will never work unless you >> fill it with an bootable ms/windows or ms/dos system or the same kind of >> setup found on the cdrom1 release cd. >> >> Only usb 2.2 memory sticks are bootable on newer PC's that have usb 2.2 >> firmware on their motherboards and matching Bio's with selection for booting >> from usb 2.2 memory sticks. Please note that bio's booting selection for >> booting from USB disk is different than booting selection for booting from >> usb memory stick. I have posted many posts on this list about this subject >> and have not received any posts contrary to the above statement. >> >> The pending 8.0 release has a complete rewrite of the USB code and a new >> stick.img is being generated as part of the release install distribution's. >> I can dd the 8.0-stick.img file to an 2.0 stick and it never boots, but do >> the same thing to a 2.2 stick and it boots on all 3 of my PC manufactured >> since June 2008. >> >> Final Conclusion: Booting from a USB memory stick successfully is totally >> dependent on using new start-of-the-art hardware. >> >> >> >> >> >> >> >> > From ruel.freebsd at gmail.com Fri Sep 4 07:03:21 2009 From: ruel.freebsd at gmail.com (Ruel Luchavez) Date: Fri Sep 4 11:20:26 2009 Subject: Samba PDC with LDAP backend In-Reply-To: <20090720105128.GA88495@ei.bzerk.org> References: <57200BF94E69E54880C9BB1AF714BBCB5DEA71@w2003s01.double-l.local> <200907200835.n6K8ZZ7D001753@banyan.cs.ait.ac.th> <20090720105553.a665479b.freebsd@edvax.de> <200907201017.n6KAHBmE003738@banyan.cs.ait.ac.th> <20090720105128.GA88495@ei.bzerk.org> Message-ID: On Mon, Jul 20, 2009 at 6:51 PM, Ruben de Groot wrote: > On Mon, Jul 20, 2009 at 06:22:50PM +0800, Ruel Luchavez typed: > > > > But to some one out their who has an idea to this > > > > you are very much WELCOME....:-) > > I think this was mentioned before, but did you have to edit > /usr/local/etc/smbldap-tools/smbldap.conf and > /usr/local/etc/smbldap-tools/smbldap_bind.conf > > Ruben > > Wewwwww...after a long weeks of searching I finally solve my own problem.. Lucky for me.. But, I have one question left.. How do you join the Windows xp client on the domain? Is there another tweak must be done? -- Regards, rHueL Happy BSD user... Country:Philippines From wblock at wonkity.com Fri Sep 4 12:29:48 2009 From: wblock at wonkity.com (Warren Block) Date: Fri Sep 4 12:29:56 2009 Subject: SANE configuration ... ideas? In-Reply-To: <64c038660909040203i586520aauc0299041c1d839d3@mail.gmail.com> References: <64c038660909040203i586520aauc0299041c1d839d3@mail.gmail.com> Message-ID: On Fri, 4 Sep 2009, Modulok wrote: > I want a scanner. I found one I like. I then checked the SANE > 'Supported Scanners' list. My scanner is there: > > "Perfection V300 Photo USB 0x04b8/0x0131 good requires DFSG non-free > esci-interpreter-gt-f720
overseas version of the GT-F620" > > I'm not sure what the 'requires DFSG...' business is about Possibly the scanner requires a firmware download. The Handbook scanner example shows how to do that, but I think it's more involved with that scanner. It appears that Luigi Rizzo ported the required software; see http://www.avasys.jp/cgi-bin/lx/bbs/en/scanner-bbs/hyperbbs.cgi?mode=view;Code=5072 and the link to his port http://info.iet.unipi.it/~luigi/FreeBSD/20081230-epkowa-port.tgz -Warren Block * Rapid City, South Dakota USA From doconnor at gsoft.com.au Fri Sep 4 14:06:59 2009 From: doconnor at gsoft.com.au (Daniel O'Connor) Date: Fri Sep 4 14:07:07 2009 Subject: Making bootable USB keys In-Reply-To: References: Message-ID: <200909042308.56900.doconnor@gsoft.com.au> WARNING: This e-mail has been altered by MIMEDefang. Following this paragraph are indications of the actual changes made. For more information about your site's MIMEDefang policy, contact Postmaster . For more information about MIMEDefang, see: http://www.roaringpenguin.com/mimedefang/enduser.php3 An attachment named makeusb.sh was removed from this document as it constituted a security hazard. If you require this document, please contact the sender and arrange an alternate means of receiving it. -------------- next part -------------- Skipped content of type multipart/signed From doconnor at gsoft.com.au Fri Sep 4 14:27:59 2009 From: doconnor at gsoft.com.au (Daniel O'Connor) Date: Fri Sep 4 14:28:11 2009 Subject: Making bootable USB keys In-Reply-To: <200909042308.56900.doconnor@gsoft.com.au> References: <200909042308.56900.doconnor@gsoft.com.au> Message-ID: <200909042357.50470.doconnor@gsoft.com.au> On Fri, 4 Sep 2009, Daniel O'Connor wrote: > WARNING: This e-mail has been altered by MIMEDefang. Following this > paragraph are indications of the actual changes made. For more > information about your site's MIMEDefang policy, contact > Postmaster . For more information about > MIMEDefang, see: > > http://www.roaringpenguin.com/mimedefang/enduser.php3 > > An attachment named makeusb.sh was removed from this document as it > constituted a security hazard. If you require this document, please > contact the sender and arrange an alternate means of receiving it. Oops try this http://www.gsoft.com.au/~doconnor/makeusb.sh -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 188 bytes Desc: This is a digitally signed message part. Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090904/672d42a1/attachment.pgp From stanb at panix.com Fri Sep 4 14:28:09 2009 From: stanb at panix.com (stan) Date: Fri Sep 4 14:28:24 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <200909032341.28748.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <20090903114857.GA635@teddy.fas.com> <200909032210.14047.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090903202347.GA16108@teddy.fas.com> <200909032341.28748.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: <20090904142807.GA5339@teddy.fas.com> On Thu, Sep 03, 2009 at 11:41:28PM +0200, Mel Flynn wrote: > On Thursday 03 September 2009 22:23:47 stan wrote: > > On Thu, Sep 03, 2009 at 10:10:13PM +0200, Mel Flynn wrote: > > > On Thursday 03 September 2009 21:02:41 stan wrote: > > > > pnoc# cat collect-subtrees > > > > #!/bin/sh > > > > > > > > echo STARTED >> /tmp/stan > > > > which perl >> /tmp/stan > > > > /usr/local/cricket/cricket/collect-subtrees.pl normal >> /tmp/stan > > > > echo Done >> /tmp/stan > > > > > > > > /tmp stan contains: > > > > > > > > pnoc# cat /tmp/stan > > > > STARTED > > > > /usr/bin/perl > > > > Done > > > > STARTED > > > > /usr/bin/perl > > > > Done > > > > > > > > So, cron is invoking the correct command, and perl can be found, but > > > > the original collect_subtrees perl script silently dies. > > > > > > > > I am convinced it's an environemt probkl`lem, I am just uncertain how > > > > to determine what. > > > > > > I'm not anymore. I'm putting 1 cent on a broken /usr/bin/perl symlink > > > (perl upgrade gone bonkers, f.e. done with ro mounted /usr) and another > > > cent on the perl script using system() function, with pathless commands > > > (that is environment). > > Ok, one liner: > su -m cricket env -i HOME=/usr/local/cricket PATH=/bin:/usr/bin \ > /usr/local/cricket/cricket/collect-subtrees.pl normal > > I've downloaded the 1.0.5 version, but can't quickly see where that would go > wrong with this script. touch is in /usr/bin, so that should work. > Any cron messages in /var/mail/cricket? I am away from work today, and won't be back till Tuesday. I can't access this from home. I will try your test then. The only messages that are getting to /var/log/cron is just the one saying that the task was executed. -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From mel.flynn+fbsd.questions at mailing.thruhere.net Fri Sep 4 15:04:24 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Fri Sep 4 15:04:31 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <20090904142807.GA5339@teddy.fas.com> References: <20090903114857.GA635@teddy.fas.com> <200909032341.28748.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090904142807.GA5339@teddy.fas.com> Message-ID: <200909041704.19865.mel.flynn+fbsd.questions@mailing.thruhere.net> On Friday 04 September 2009 16:28:07 stan wrote: > On Thu, Sep 03, 2009 at 11:41:28PM +0200, Mel Flynn wrote: > > On Thursday 03 September 2009 22:23:47 stan wrote: > > > On Thu, Sep 03, 2009 at 10:10:13PM +0200, Mel Flynn wrote: > > > > On Thursday 03 September 2009 21:02:41 stan wrote: > > > > > pnoc# cat collect-subtrees > > > > > #!/bin/sh > > > > > > > > > > echo STARTED >> /tmp/stan > > > > > which perl >> /tmp/stan > > > > > /usr/local/cricket/cricket/collect-subtrees.pl normal >> /tmp/stan > > > > > echo Done >> /tmp/stan > > > > > > > > > > /tmp stan contains: > > > > > > > > > > pnoc# cat /tmp/stan > > > > > STARTED > > > > > /usr/bin/perl > > > > > Done > > > > > STARTED > > > > > /usr/bin/perl > > > > > Done > > > > > > > > > > So, cron is invoking the correct command, and perl can be found, > > > > > but the original collect_subtrees perl script silently dies. > > > > > > > > > > I am convinced it's an environemt probkl`lem, I am just uncertain > > > > > how to determine what. > > > > > > > > I'm not anymore. I'm putting 1 cent on a broken /usr/bin/perl symlink > > > > (perl upgrade gone bonkers, f.e. done with ro mounted /usr) and > > > > another cent on the perl script using system() function, with > > > > pathless commands (that is environment). > > > > Ok, one liner: > > su -m cricket env -i HOME=/usr/local/cricket PATH=/bin:/usr/bin \ > > /usr/local/cricket/cricket/collect-subtrees.pl normal > > > > I've downloaded the 1.0.5 version, but can't quickly see where that would > > go wrong with this script. touch is in /usr/bin, so that should work. Any > > cron messages in /var/mail/cricket? > > I am away from work today, and won't be back till Tuesday. I can't access > this from home. > > I will try your test then. The only messages that are getting to > /var/log/cron is just the one saying that the task was executed. Yea, the error messages end up in /var/mail/$USER or MAILTO variable if set in crontab. /var/log/maillog should have some tell tales. -- Mel From freebsd at optimis.net Fri Sep 4 15:50:13 2009 From: freebsd at optimis.net (George Davidovich) Date: Fri Sep 4 15:50:19 2009 Subject: 'alias' + sudo In-Reply-To: <20090903201036.36486533@scorpio.seibercom.net> References: <20090902072659.7829da56@scorpio.seibercom.net> <200909040134.05992.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090903201036.36486533@scorpio.seibercom.net> Message-ID: <20090904155011.GA13136@marvin.optimis.net> On Thu, Sep 03, 2009 at 08:10:36PM -0400, Jerry wrote: > On Fri, 4 Sep 2009 01:34:05 +0200 Mel Flynn wrote: > > > alias spico='/usr/local/bin/sudo pico -m' and be done with it. Instead of an extra alias, why not export $VISUAL or $EDITOR, and rely on sudoedit(8)? > That is what I am currently doing; however,there are other commands > that I want to use that are not available when used via sudo without > modifying the alias. I did not realize that sudo had such a > limitation. It's not a "limitation". It's a feature. ;-) Re-read the sudo manpage. I'd be surprised if most of your aliases would ever require root privileges, and are anything but one-off shortcuts for your personal use. For those that do, I'd suggest replacing them with a function (or script) that tests for root privileges (using something like id(1)), and invokes sudo when appropriate. Otherwise, you may want to consider using 'su -m'. That will your current environment unmodified and all your existing aliases will remain available for use. -- George From af.gourmet at videotron.ca Fri Sep 4 16:04:46 2009 From: af.gourmet at videotron.ca (PJ) Date: Fri Sep 4 16:04:52 2009 Subject: conky, anyone? Message-ID: <4AA13A9D.3030007@videotron.ca> Anybody have any luck with installing conky on 7.2? I get errors when configured with or without xmms2: with - file xmmxclient.4 not found without - conky.h:67:18: error: bmpx.h: no such file of directory... TIA From randy.belk at gmail.com Fri Sep 4 16:30:01 2009 From: randy.belk at gmail.com (Randy Belk) Date: Fri Sep 4 16:30:12 2009 Subject: 'alias' + sudo In-Reply-To: <20090904155011.GA13136@marvin.optimis.net> References: <20090902072659.7829da56@scorpio.seibercom.net> <200909040134.05992.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090903201036.36486533@scorpio.seibercom.net> <20090904155011.GA13136@marvin.optimis.net> Message-ID: <946140ad0909040859k519ddfcar5230e745966daec1@mail.gmail.com> On Fri, Sep 4, 2009 at 10:50 AM, George Davidovich wrote: > On Thu, Sep 03, 2009 at 08:10:36PM -0400, Jerry wrote: >> On Fri, 4 Sep 2009 01:34:05 +0200 Mel Flynn wrote: >> >> > alias spico='/usr/local/bin/sudo pico -m' and be done with it. > > Instead of an extra alias, why not export $VISUAL or $EDITOR, and rely > on sudoedit(8)? > >> That is what I am currently doing; however,there are other commands >> that I want to use that are not available when used via sudo without >> modifying the alias. I did not realize that sudo had such a >> limitation. > > It's not a "limitation". ?It's a feature. ?;-) ?Re-read the sudo > manpage. > > I'd be surprised if most of your aliases would ever require root > privileges, and are anything but one-off shortcuts for your personal > use. > > For those that do, I'd suggest replacing them with a function (or > script) that tests for root privileges (using something like id(1)), and > invokes sudo when appropriate. > > Otherwise, you may want to consider using 'su -m'. ?That will your > current environment unmodified and all your existing aliases will remain > available for use. > > -- > George > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > There is a way for what you are wanting to do. Make an alias for sudo that looks like this "sudo='sudo -E (Your default shell)" Since I use zsh my alias looks like this sudo='sudo -E zsh' It perserves all of your aliases, paths, and everything else . -- - Amiga, The Computer for the creative Mind! - UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity. - People who hate Microsoft Windows use Linux but people who love UNIX use BSD. From pb at ludd.ltu.se Fri Sep 4 18:12:56 2009 From: pb at ludd.ltu.se (Peter B) Date: Fri Sep 4 18:13:03 2009 Subject: One MAC, two IP with DHCP (dhclient) how? Message-ID: <200909041802.n84I2YYC028296@sister.ludd.ltu.se> In an enviroment where the ethernet network interface is connected to a public ethernet network (internet). And a IPv4 address assignment scheme is static. One can simple add primary IP by: ifconfig inet 1.2.3.4 And an additional aliases with: ifconfig inet 1.2.3.5 alias This alias IP can then be used within a jail(8) enviroment. So far all is perfectly fine. But in an enviroment where the primary IP is retrieved or set with DHCP by using: dhclient How does one request an additional IP beside the primary one ..? Setting an alias directly with ifconfig won't work because the upstream network won't route it. Should one set an explicit xid or Client ID somehow? and how is that done in such case? (option dhcp-client-identifier data-string; in dhclient.conf) From nightrecon at hotmail.com Fri Sep 4 18:17:28 2009 From: nightrecon at hotmail.com (Michael Powell) Date: Fri Sep 4 18:17:35 2009 Subject: cc -march questions References: <200909040510.n845AsPU024402@mp.cs.niu.edu> Message-ID: Scott Bennett wrote: > On Thu, 3 Sep 2009 10:28:09 -0400 Daniel Molina Wegener > > wrote: >>2009/9/3 Scott Bennett >> >>> What exactly does "cc -march=prescott" enable cc to do? Does it >>> include >>> instruction scheduling for the pipeline structure of the Prescott CPUs? >>> Does >>> it include other options, e.g., "-mmmx -msse -msse2 -msse3"? >>> Thanks in advance for any information on the above! >>> >> >>According to the GCC manual page, it enables MMX, SSE, SSE2 and SSE3 >>instruction set support. >> >>Try: >>$ man 1 gcc >>/prescott >> > Thanks much for your reply. This is very bizarre. I think I've > looked > at that page at least 50 times in the past few years and somehow never saw > those lines. Sigh. :-} > I've had CPUTYPE=prescott in my /etc/make.conf for a long time now, > and I recently installed math/atlas-devel. I wonder if specifying > CPUTYPE=prescott may have caused it to choose the wrong components to > include in the final version of libalapack. If so, then I should rebuild > it without CPUTYPE=prescott. > If you do: dmesg | grep Features you will get a list of what the processor supports. You may then examine the /usr/src/share/mk/bsd.cpu.mk file looking for a match. Yes it is somewhat arcane to read, but it does list all. Notice it refers to CPUTYPE. I usually use a line such as CPUTYPE?= athlon in my make.conf. Been doing it like this for years and never had any problem. And, of course, let's not forget the MAN pages :-) YMMV -Mike From Andre.Albsmeier at siemens.com Fri Sep 4 19:06:21 2009 From: Andre.Albsmeier at siemens.com (Andre Albsmeier) Date: Fri Sep 4 19:06:29 2009 Subject: Freebsd Built-in vacation program does not auto reply In-Reply-To: <490628.66452.qm@web52201.mail.re2.yahoo.com> References: <490628.66452.qm@web52201.mail.re2.yahoo.com> Message-ID: <20090904184321.GA5684@curry.mchp.siemens.de> On Thu, 16-Apr-2009 at 18:00:26 +0000, lyd mc wrote: > Hi guys, > > Why Freebsd built-in vacation program (/usr/bin/vacation) does not auto reply? > > I am using fresh installed Freebsd7.0 and 7.1. here is my configs. Did you solve the problem already? I had a similar issue and tracked it down to a really strange compiler bug... -Andre > > Under the home directory of the user (alydio.mc) > > .forward > ??? \alydio.mc, "|/usr/bin/vacation alydio.mc" > > .vacation.msg > ?? Subject: On vacation message > ?? From: alydio.mc@mydomain.com > ?? I'm on vacation and will not be reading my mail for a while. > ? Your mail will be dealt with when I return. > . > from postfix/sendmail logs: > > ...sniff > ?(delivered to command: /usr/bin/vacation alydio.mc) > > after this nothing will happened... no errors.... no warnings...? > > However the one I installed from ports (/usr/local/bin/vacation) works fine. > > > I want to use the freebsd base vacation program.? > > Please help. > > Thank you, > alydiomc > > > -- Micro$oft: When will your system crash today? From JMutaguchi at enticelabs.com Fri Sep 4 19:45:36 2009 From: JMutaguchi at enticelabs.com (Jun Mutaguchi) Date: Fri Sep 4 19:45:43 2009 Subject: Advertisement Inquiry Message-ID: <14FED03E6FBE1B4D91A1F3A2F8C9739C01CF6592A5@SBS.enticelabs.local> Hello, My name is Jun from EnticeLabs, and we are interested in advertising on networkattacheddatastorage.com. Could you tell me who to contact? Thanks for your time, Jun Mutaguchi EnticeLabs, Inc. From h.skuhra at gmail.com Fri Sep 4 20:39:38 2009 From: h.skuhra at gmail.com (Herbert J. Skuhra) Date: Fri Sep 4 20:40:12 2009 Subject: conky, anyone? In-Reply-To: <4AA13A9D.3030007@videotron.ca> References: <4AA13A9D.3030007@videotron.ca> Message-ID: 2009/9/4 PJ : > Anybody have any luck with installing conky on 7.2? > I get errors when configured with or without xmms2: > with - file xmmxclient.4 not found > without - conky.h:67:18: error: bmpx.h: no such file of directory... > TIA Error 1: Apply attached patch Error 2: disable BMPX support. Neither multimedia/bmpx nor sysutils/conky installs/includes bmpx.h. - Herbert -------------- next part -------------- A non-text attachment was scrubbed... Name: conky.diff Type: application/octet-stream Size: 468 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090904/4f96311c/conky.obj From stanb at panix.com Fri Sep 4 21:28:08 2009 From: stanb at panix.com (stan) Date: Fri Sep 4 21:28:15 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <200909041704.19865.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <20090903114857.GA635@teddy.fas.com> <200909032341.28748.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090904142807.GA5339@teddy.fas.com> <200909041704.19865.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: <20090904212806.GA15488@teddy.fas.com> On Fri, Sep 04, 2009 at 05:04:19PM +0200, Mel Flynn wrote: > On Friday 04 September 2009 16:28:07 stan wrote: > > On Thu, Sep 03, 2009 at 11:41:28PM +0200, Mel Flynn wrote: > > > On Thursday 03 September 2009 22:23:47 stan wrote: > > > > On Thu, Sep 03, 2009 at 10:10:13PM +0200, Mel Flynn wrote: > > > > > On Thursday 03 September 2009 21:02:41 stan wrote: > > > > > > pnoc# cat collect-subtrees > > > > > > #!/bin/sh > > > > > > > > > > > > echo STARTED >> /tmp/stan > > > > > > which perl >> /tmp/stan > > > > > > /usr/local/cricket/cricket/collect-subtrees.pl normal >> /tmp/stan > > > > > > echo Done >> /tmp/stan > > > > > > > > > > > > /tmp stan contains: > > > > > > > > > > > > pnoc# cat /tmp/stan > > > > > > STARTED > > > > > > /usr/bin/perl > > > > > > Done > > > > > > STARTED > > > > > > /usr/bin/perl > > > > > > Done > > > > > > > > > > > > So, cron is invoking the correct command, and perl can be found, > > > > > > but the original collect_subtrees perl script silently dies. > > > > > > > > > > > > I am convinced it's an environemt probkl`lem, I am just uncertain > > > > > > how to determine what. > > > > > > > > > > I'm not anymore. I'm putting 1 cent on a broken /usr/bin/perl symlink > > > > > (perl upgrade gone bonkers, f.e. done with ro mounted /usr) and > > > > > another cent on the perl script using system() function, with > > > > > pathless commands (that is environment). > > > > > > Ok, one liner: > > > su -m cricket env -i HOME=/usr/local/cricket PATH=/bin:/usr/bin \ > > > /usr/local/cricket/cricket/collect-subtrees.pl normal > > > > > > I've downloaded the 1.0.5 version, but can't quickly see where that would > > > go wrong with this script. touch is in /usr/bin, so that should work. Any > > > cron messages in /var/mail/cricket? > > > > I am away from work today, and won't be back till Tuesday. I can't access > > this from home. > > > > I will try your test then. The only messages that are getting to > > /var/log/cron is just the one saying that the task was executed. > Yea, the error messages end up in /var/mail/$USER or MAILTO variable if set in > crontab. /var/log/maillog should have some tell tales. OK, I am thinking that I have a ,forward file in crickets hme directtory. I will check. -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From af.gourmet at videotron.ca Fri Sep 4 22:40:39 2009 From: af.gourmet at videotron.ca (PJ) Date: Fri Sep 4 22:40:47 2009 Subject: conky, anyone? In-Reply-To: References: <4AA13A9D.3030007@videotron.ca> Message-ID: <4AA19769.8060907@videotron.ca> Herbert J. Skuhra wrote: > 2009/9/4 PJ : > >> Anybody have any luck with installing conky on 7.2? >> I get errors when configured with or without xmms2: >> with - file xmmxclient.4 not found >> without - conky.h:67:18: error: bmpx.h: no such file of directory... >> TIA >> > > Error 1: Apply attached patch > > Error 2: disable BMPX support. Neither multimedia/bmpx nor > sysutils/conky installs/includes bmpx.h. > Thanks, Herbert, I got rid of the all the dependencies except for the last three in the configure options and now it installed. Didn't need the dependencies as I never use them... should have learned from that dumb cat that died from curiosity. ;-) PJ From agus.262 at gmail.com Sat Sep 5 07:55:55 2009 From: agus.262 at gmail.com (Agus) Date: Sat Sep 5 07:56:02 2009 Subject: Reverse Proxy /Proxy Pass In-Reply-To: <200909040212.44397.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <200909040212.44397.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: 2009/9/3 Mel Flynn : > On Friday 04 September 2009 01:20:46 Agus wrote: > >> What server, application do u know/recommend me for using as a >> ProxyPass / Reverse Proxy... >> >> The idea is to forward all requests to port 80 to this server and then >> from here according to the vhost send it to the actual server... For >> now i only need proxying.. dont think cacheing will be possible so im >> just looking for a pretty fast, light and stable app to do this on a >> freebsd 7... >> >> Thanks and ihope to hear some cool recommendations.. hehe > > If lightweight, go with www/nginx. Features, go with www/squid or > apache+mod_proxy. > -- > Mel > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Thanks Mel... Now i've been reading a little and found that cherokee maybe a very good alternative also.... I also found that the performance will variate according to the syscall the server uses... i read about poll,etc.... how to know which syscalls does the servers support and which one is better/fastest? I will continue looking for this... Thanks a lot, Agusitn From uchimata at c7f.de Sat Sep 5 09:04:40 2009 From: uchimata at c7f.de (Matthias Luft) Date: Sat Sep 5 09:04:47 2009 Subject: Making bootable USB keys In-Reply-To: <200909031219.57856.dyioulos@firstbhph.com> References: <200909031219.57856.dyioulos@firstbhph.com> Message-ID: <4A9FF3FB.4030208@c7f.de> Dimitri Yioulos wrote: > Might want to try UNetbootin. There is also a similar script -- but the related tutorial is a german one: http://wiki.bsdforen.de/howto/cd_iso_to_usb so long, Matthias -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 7380 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090905/a92235f8/smime.bin From kes-kes at yandex.ru Sat Sep 5 09:57:54 2009 From: kes-kes at yandex.ru (=?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?=) Date: Sat Sep 5 09:58:02 2009 Subject: How to correct *Failed sysctlbyname("net.inet.ip.fw.tables_max")* Message-ID: <1961641315.20090905125746@yandex.ru> Hi vpn# ipfw table 12 list ipfw: Failed sysctlbyname("net.inet.ip.fw.tables_max") vpn# sysctl -a | grep net.inet.ip.fw net.inet.ip.fw.dyn_keepalive: 1 net.inet.ip.fw.dyn_short_lifetime: 5 net.inet.ip.fw.dyn_udp_lifetime: 10 net.inet.ip.fw.dyn_rst_lifetime: 1 net.inet.ip.fw.dyn_fin_lifetime: 1 net.inet.ip.fw.dyn_syn_lifetime: 20 net.inet.ip.fw.dyn_ack_lifetime: 300 net.inet.ip.fw.static_count: 46 net.inet.ip.fw.dyn_max: 4096 net.inet.ip.fw.dyn_count: 0 net.inet.ip.fw.curr_dyn_buckets: 256 net.inet.ip.fw.dyn_buckets: 256 net.inet.ip.fw.default_rule: 65535 net.inet.ip.fw.verbose_limit: 0 net.inet.ip.fw.verbose: 1 net.inet.ip.fw.debug: 1 net.inet.ip.fw.one_pass: 0 net.inet.ip.fw.autoinc_step: 100 net.inet.ip.fw.enable: 1 vpn# uname -a FreeBSD vpn.in 7.1-RELEASE-p7 FreeBSD 7.1-RELEASE-p7 #1: Sat Sep 5 00:26:18 EEST 2009 kes@vpn.in:/usr/obj/usr/src/sys/KES_KERN_v71 i386 I just upgrade from 7.0. Sources are RELENG_7_1 Hot to solve this problem? -- ? ?????????, ??????? mailto:kes-kes@yandex.ru From modulok at gmail.com Sat Sep 5 16:33:05 2009 From: modulok at gmail.com (Modulok) Date: Sat Sep 5 16:33:12 2009 Subject: Is there such thing as a 'soft checksum' tool? Message-ID: <64c038660909050933h25a91edcw56688993f5557ad2@mail.gmail.com> List, I'm not even sure such a tool exists, but it's worth asking: I'm looking for a pseudo-checksum tool for use with catalogging images. For example, a strict checksum algorithm, like the sha family, will produce a dramatically different checksum for two files which differ by only a single bit. I'm looking for something where two images images, which are similar, get a proportionally similar checksum. When I speak of similarities I'm referring to their image patterns. i.e two images of differing sizes, which are otherwise identical, would produce very similar checksums. So the closer the checksums are, the more similar two given images are. Does anyone know of anything like this? -Modulok- From mel.flynn+fbsd.questions at mailing.thruhere.net Sat Sep 5 17:03:32 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Sat Sep 5 17:03:39 2009 Subject: Reverse Proxy /Proxy Pass In-Reply-To: References: <200909040212.44397.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: <200909051903.29244.mel.flynn+fbsd.questions@mailing.thruhere.net> On Saturday 05 September 2009 09:55:54 Agus wrote: > 2009/9/3 Mel Flynn : > > On Friday 04 September 2009 01:20:46 Agus wrote: > >> What server, application do u know/recommend me for using as a > >> ProxyPass / Reverse Proxy... > >> > >> The idea is to forward all requests to port 80 to this server and then > >> from here according to the vhost send it to the actual server... For > >> now i only need proxying.. dont think cacheing will be possible so im > >> just looking for a pretty fast, light and stable app to do this on a > >> freebsd 7... > >> > >> Thanks and ihope to hear some cool recommendations.. hehe > > > > If lightweight, go with www/nginx. Features, go with www/squid or > > apache+mod_proxy. > > -- > > Mel > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@freebsd.org" > > Thanks Mel... Now i've been reading a little and found that cherokee > maybe a very good alternative also.... I also found that the > performance will variate according to the syscall the server uses... i > read about poll,etc.... how to know which syscalls does the servers > support and which one is better/fastest? kqueue is preferred on *BSD, since it's able to aggregate multiple filter matches into one event if they happen to occur in a close time frame. This reduces copyout from kernel to userland. It also used to be true that poll is a busywait, but I think that has been corrected. If you're interested, the original design document for kqueue is available here: http://people.freebsd.org/~jlemon/papers/kqueue.pdf -- Mel From corky1951 at comcast.net Sat Sep 5 18:16:07 2009 From: corky1951 at comcast.net (Charlie Kester) Date: Sat Sep 5 18:16:14 2009 Subject: Is there such thing as a 'soft checksum' tool? In-Reply-To: <64c038660909050933h25a91edcw56688993f5557ad2@mail.gmail.com> References: <64c038660909050933h25a91edcw56688993f5557ad2@mail.gmail.com> Message-ID: <20090905181603.GA387@comcast.net> On Sat 05 Sep 2009 at 09:33:03 PDT Modulok wrote: >List, > >I'm not even sure such a tool exists, but it's worth asking: > >I'm looking for a pseudo-checksum tool for use with catalogging >images. For example, a strict checksum algorithm, like the sha family, >will produce a dramatically different checksum for two files which >differ by only a single bit. I'm looking for something where two >images images, which are similar, get a proportionally similar >checksum. When I speak of similarities I'm referring to their image >patterns. i.e two images of differing sizes, which are otherwise >identical, would produce very similar checksums. So the closer the >checksums are, the more similar two given images are. > >Does anyone know of anything like this? libpuzzle might be what you're looking for. There's a tool called ftwin that uses libpuzzle to find duplicate or only-slightly-modified files. http://libpuzzle.pureftpd.org/project/libpuzzle http://jok.is-a-geek.net/ftwin.php Both of these are in the portstree. ;-) From freebsd-questions at k-moeller.dk Sun Sep 6 00:08:02 2009 From: freebsd-questions at k-moeller.dk (=?ISO-8859-1?Q?Kalle_M=F8ller?=) Date: Sun Sep 6 00:08:09 2009 Subject: Logging failed attempts In-Reply-To: <159f04570909031625t16245fb9se24ee023566870c1@mail.gmail.com> References: <159f04570909031625t16245fb9se24ee023566870c1@mail.gmail.com> Message-ID: <8250ac3f0909051708yb690270j9755f4b9d72b8241@mail.gmail.com> About the SSH.. Have a look in /var/log/auth.log looks like what your looking for On Fri, Sep 4, 2009 at 1:25 AM, Alan Shearer wrote: > Howdy, > > I was curious if there was a way to setup logging of *failed* attempts to > login to a PPTP Server hosted on freebsd 7? I can only see successful > logins. > > On a similar note is there a way to log successful and failed attempts to > SSH into freebsd? > > Thanks for the help! > Alan > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > -- Med Venlig Hilsen Kalle R. M?ller From lumiwa at gmail.com Sun Sep 6 00:21:22 2009 From: lumiwa at gmail.com (ajtiM) Date: Sun Sep 6 00:21:30 2009 Subject: portmaster --check-depends Message-ID: <200909051921.12759.lumiwa@gmail.com> When I run portmaster --check-depends I got: Checking kde-3.5.10_2 ===>>> @pkgdep wavpack-4.50.1 is listed as a dependency ===>>> but there is no installed version ===>>> Delete this dependency data? [n] Checking kdegraphics-3.5.10_4 ===>>> @pkgdep portaudio-18.1_2 is listed as a dependency ===>>> but there is no installed version ===>>> Delete this dependency data? [n] Checking kmplayer-0.10.0c_3,2 ===>>> @pkgdep lirc-0.8.0_2 is listed as a dependency ===>>> but there is no installed version ===>>> Delete this dependency data? [n] Checking mencoder-0.99.11_4 ===>>> @pkgdep lirc-0.8.0_2 is listed as a dependency ===>>> but there is no installed version ===>>> Delete this dependency data? [n] mplayerplug-in-3.55_3 ===>>> @pkgdep lirc-0.8.0_2 is listed as a dependency ===>>> but there is no installed version ===>>> Delete this dependency data? [n] I have all three ports installed and I reinstalled them again but the problem is here still. What is wrong, please? Thanks. -- Mitja ----- http://starikarp.redbubble.com From kline at thought.org Sun Sep 6 00:36:59 2009 From: kline at thought.org (Gary Kline) Date: Sun Sep 6 00:37:06 2009 Subject: is there a way of usinf greo to find 3 or 4 blank lines? Message-ID: <20090906003651.GA7388@thought.org> in my manuscript, i have many places where i'ved used several newlines to indicate a jump in time, or topic, or mood, or <>. i have lost these vertical spacing in all but my original draft. can i use grep somehow to find these extra newlines? if not grep, then sed, ed, or what?! tia, gary -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php From vogelke+unix at pobox.com Sun Sep 6 01:21:41 2009 From: vogelke+unix at pobox.com (Karl Vogel) Date: Sun Sep 6 01:21:54 2009 Subject: Can anyone reproduce this Samba problem? In-Reply-To: (message from John W on Wed, 26 Aug 2009 21:54:02 -0700) Message-ID: <20090906011215.CA0BDB7DD@kev.msw.wpafb.af.mil> >> On Wed, 26 Aug 2009 21:54:02 -0700, >> John W said: J> I have been trying to set up a 'dropbox' Samba share on FreeBSD, but am J> not having luck. I went back and forth on the Samba ML for a bit, and J> now I'm trying to determine if I am seeing FreeBSD-specific bad J> behavior. http://www.theopensourcerer.com/2008/04/17/a-shared-drop-box-using-samba/ has some suggestions that might help. -- Karl Vogel I don't speak for the USAF or my company :-{8 Person who is unhappy with the results of her breast-enlargement surgery. --Dave Barry's emoticons From vogelke+unix at pobox.com Sun Sep 6 01:21:41 2009 From: vogelke+unix at pobox.com (Karl Vogel) Date: Sun Sep 6 01:21:55 2009 Subject: Is there such thing as a 'soft checksum' tool? In-Reply-To: <64c038660909050933h25a91edcw56688993f5557ad2@mail.gmail.com> (message from Modulok on Sat, 5 Sep 2009 10:33:03 -0600) Message-ID: <20090906012107.E2731B7DD@kev.msw.wpafb.af.mil> >> On Sat, 5 Sep 2009 10:33:03 -0600, >> Modulok said: M> I'm looking for a pseudo-checksum tool for use with cataloging images. M> For example, a strict checksum algorithm, like the sha family, will M> produce a dramatically different checksum for two files which differ by M> only a single bit. I'm looking for something where two images, which M> are similar, get a proportionally similar checksum. This works pretty well with text, but I don't know about images. http://ixazon.dynip.com/~cmeclax/nilsimsa.html What's a nilsimsa code? A nilsimsa code is something like a hash, but unlike hashes, a small change in the message results in a small change in the nilsimsa code. Such a function is called a locality-sensitive hash. -- Karl Vogel I don't speak for the USAF or my company Garlic gum is not funny. --written on blackboard by Bart Simpson From jaymax36 at gmail.com Sun Sep 6 02:34:21 2009 From: jaymax36 at gmail.com (jaymax) Date: Sun Sep 6 02:34:29 2009 Subject: Inconsistency in root partition size Message-ID: <25314145.post@talk.nabble.com> I apparently have open file handles in my / partitions. It was partitioned at 512 Mb size, used about 150Mb df shows Filesystem Size Used Avail Capacity Mounted on /dev/ad0s1a 496M 492M -36M 108% / alert condition output /: write failed, filesystem is full and a constant stream of error messages to console ______ I ran lsof which produced a list of 2083 files Randomly selected portions produced the composite below COMMAND PID USER FD TYPE DEVICE SIZE/OFF NLINK NODE NAME init 1 root cwd VDIR 0,96 1024 2 / init 1 root txt VREG 0,96 474576 41282 /sbin/init adjkerntz 147 root cwd VDIR 0,96 1024 2 / adjkerntz 147 root rtd VDIR 0,96 1024 2 / adjkerntz 147 root 0u VBAD (revoked) adjkerntz 147 root 1u VBAD (revoked) devd 254 root txt VREG 0,96 262516 41258 /sbin/devd devd 254 root 0u VCHR 0,24 0t0 24 /dev/null syslogd 292 root txt VREG 0,96 41908 231 /lib/libutil.so.5 syslogd 292 root txt VREG 0,96 877604 236 /lib/libc.so.6 amd 413 root txt VREG 0,96 136984 808 /libexec/ld-elf.so.1 amd 413 root txt VREG 0,96 877604 236 /lib/libc.so.6 amd 413 root 0u VCHR 0,24 0t0 24 /dev/null nfsd 457 root txt VREG 0,96 877604 236 /lib/libc.so.6 nfsd 457 root 0u VCHR 0,24 0t0 24 /dev/null usbd 484 root txt VREG 0,101 14964 3653493 /usr/sbin/usbd smbd 500 root txt VREG 0,101 121414 1941471 /usr/local/lib/libcups.so.2 smbd 500 root txt VREG 0,101 445658 3535409 /usr/local/lib/compat/pkg/libgnutls.so.12 nmbd 502 root txt VREG 0,101 445658 3535409 /usr/local/lib/compat/pkg/libgnutls.so.12 nmbd 502 root txt VREG 0,101 340795 1941251 /usr/local/lib/libgcrypt.so.13 httpd 504 root txt VREG 0,96 28676 225 /lib/libcrypt.so.3 httpd 504 root txt VREG 0,96 877604 236 /lib/libc.so.6 httpd 508 nobody 15w VREG 0,101 1272700 2340767 /usr/local/apache/logs/error_log httpd 512 root txt VREG 0,101 952544 966860 /usr/local/apache2/bin/httpd httpd 512 root txt VREG 0,96 136984 808 /libexec/ld-elf.so.1 httpd 512 root txt VREG 0,96 98120 227 /lib/libm.so.4 httpd 512 root txt VREG 0,101 280725 966866 /usr/local/apache2/lib/libaprutil-1.so.3 httpd 512 root txt VREG 0,101 157398 1942626 /usr/local/lib/libexpat.so.6 httpd 512 root txt VREG 0,101 423490 966861 /usr/local/apache2/lib/libapr-1.so.3 httpd 512 root txt VREG 0,96 28676 225 /lib/libcrypt.so.3 httpd 512 root txt VREG 0,101 140112 3653763 /usr/lib/libpthread.so.2 httpd 512 root txt VREG 0,96 877604 236 /lib/libc.so.6 httpd 512 root txt VREG 0,101 355787 1941402 /usr/local/lib/libapr-1.so.0 httpd 512 root txt VREG 0,101 22323 966665 /usr/local/apache2/modules/mod_authn_file.so httpd 512 root txt VREG 0,101 22612 966666 /usr/local/apache2/modules/mod_authn_dbm.so httpd 512 root 20w VREG 0,101 274254 966466 /usr/local/apache2/logs/error_log rwhod 548 daemon txt VREG 0,101 10912 3653467 /usr/sbin/rwhod rwhod 548 daemon txt VREG 0,96 136984 808 /libexec/ld-elf.so.1 httpd 570 nobody txt VREG 0,101 23956 966670 /usr/local/apache2/modules/mod_authz_host.so httpd 570 nobody txt VREG 0,101 26206 966671 /usr/local/apache2/modules/mod_authz_groupfile.so httpd 570 nobody txt VREG 0,101 20770 966672 /usr/local/apache2/modules/mod_authz_user.so sshd 586 root txt VREG 0,101 168488 3651348 /usr/sbin/sshd sshd 586 root txt VREG 0,96 136984 808 /libexec/ld-elf.so.1 sendmail 591 root txt VREG 0,101 27812 3653790 /usr/lib/libwrap.so.4 sendmail 591 root txt VREG 0,101 184752 3653852 /usr/lib/libssl.so.4 cron 614 root txt VREG 0,101 30748 3653316 /usr/sbin/cron cron 614 root txt VREG 0,96 136984 808 /libexec/ld-elf.so.1 moused 717 root txt VREG 0,101 32480 3653390 /usr/sbin/moused moused 717 root txt VREG 0,96 136984 808 /libexec/ld-elf.so.1 inetd 739 root rtd VDIR 0,96 1024 2 / inetd 739 root txt VREG 0,101 37744 3653353 /usr/sbin/inetd login 755 root rtd VDIR 0,96 1024 2 / login 755 root txt VREG 0,101 17616 3654261 /usr/bin/login login 755 root 1u VCHR 0,57 0t142402 57 /dev/ttyv0 login 755 root 2u VCHR 0,57 0t142402 57 /dev/ttyv0 getty 759 root rtd VDIR 0,96 1024 2 / getty 759 root txt VREG 0,101 20160 3653523 /usr/libexec/getty csh 769 root txt VREG 0,96 280512 263 /bin/tcsh csh 769 root txt VREG 0,96 136984 808 /libexec/ld-elf.so.1 httpd 18932 nobody 2w VREG 0,101 1272700 2340767 /usr/local/apache/logs/error_log httpd 18932 nobody 3 0xc27cd1f8 file struct, ty=0, op=0xc08bfbe0 httpd 18932 nobody 15w VREG 0,101 1272700 2340767 /usr/local/apache/logs/error_log sshd 19204 root txt VREG 0,96 60672 247 /lib/libz.so.3 sshd 19204 root txt VREG 0,101 27812 3653790 /usr/lib/libwrap.so.4 csh 19206 root txt VREG 0,96 280512 263 /bin/tcsh csh 19206 root txt VREG 0,96 136984 808 /libexec/ld-elf.so.1 httpd 19551 nobody 1w VCHR 0,24 0t0 24 /dev/null httpd 19551 nobody 2w VREG 0,101 1272700 2340767 /usr/local/apache/logs/error_log httpd 19551 nobody 3 0xc2823af8 file struct, ty=0, op=0xc08bfbe0 httpd 19551 nobody 15w VREG 0,101 1272700 2340767 /usr/local/apache/logs/error_log sendmail 31437 root cwd VDIR 0,96 512 3439 /var/spool/mqueue sendmail 31437 root rtd VDIR 0,96 1024 2 / lsof 32545 root txt VREG 0,96 877604 236 /lib/libc.so.6 lsof 32545 root 0u VCHR 0,90 0t173796 90 /dev/ttyp0 lsof 32545 root 1u VCHR 0,90 0t173796 90 /dev/ttyp0 lsof 32545 root 2u VCHR 0,90 0t173796 90 /dev/ttyp0 lsof 32545 root 3r VCHR 0,22 0t0 22 /dev/mem lsof 32545 root 6u PIPE 0xc25b18b0 0 ->0xc25b17f8 lsof 32545 root 7u PIPE 0xc25b14c8 16384 ->0xc25b1580 Can't really identify lines I can say does not belong so I don't have any rational basis to kill any process. All seems legit! Rebooting does not correct the descrepancy What should I do to proceed cron is set to rotatate log files # lsof +L1 => COMMAND PID USER FD TYPE DEVICE SIZE/OFF NLINK NODE NAME syslogd 290 root 13w VREG 0,96 61 0 3491 / (/dev/ad0s1a) syslogd 290 root 14w VREG 0,96 1487 0 3482 / (/dev/ad0s1a) syslogd 290 root 16w VREG 0,96 61 0 3487 / (/dev/ad0s1a) syslogd 290 root 17w VREG 0,96 61 0 3493 / (/dev/ad0s1a) syslogd 290 root 19w VREG 0,96 61 0 3486 / (/dev/ad0s1a) syslogd 290 root 20w VREG 0,96 61 0 3492 / (/dev/ad0s1a) syslogd 290 root 21w VREG 0,96 61 0 3490 / (/dev/ad0s1a) smbd 498 root txt-r VREG 0,96 696 0 3511 / (/dev/ad0s1a) smbd 498 root 6ww VREG 0,96 20 0 3505 / (/dev/ad0s1a) smbd 498 root 7ur VREG 0,96 696 0 3511 / (/dev/ad0s1a) smbd 498 root 8ur VREG 0,96 696 0 3512 / (/dev/ad0s1a) nmbd 500 root txt-r VREG 0,96 696 0 3511 / (/dev/ad0s1a) nmbd 500 root 3w VREG 0,96 4092 0 3513 / (/dev/ad0s1a) nmbd 500 root 4ww VREG 0,96 20 0 3506 / (/dev/ad0s1a) nmbd 500 root 5ur VREG 0,96 696 0 3511 / (/dev/ad0s1a) nmbd 500 root 12ur VREG 0,96 696 0 3515 / (/dev/ad0s1a) sendmail 589 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 589 root 7wW VREG 0,96 43 0 3518 / (/dev/ad0s1a) sendmail 593 smmsp cwd VDIR 0,96 0 0 3442 / (/dev/ad0s1a) sendmail 593 smmsp 4wW VREG 0,96 0 0 3538 / (/dev/ad0s1a) sendmail 22547 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 22771 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 23316 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 28813 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 29319 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 30746 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 31123 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 32645 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 34334 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 35676 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 36103 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 36618 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 37766 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 37963 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 38061 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 38390 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 38407 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 38472 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 38542 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 38689 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 39727 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) sendmail 39738 root cwd VDIR 0,96 0 0 3439 / (/dev/ad0s1a) var is a soft link to /usr/var, /tmp has it own partition I am at wits end in knowing what to remove to solve this problem Thanks for any suggestions -- View this message in context: http://www.nabble.com/Inconsistency-in-root-partition-size-tp25314145p25314145.html Sent from the freebsd-questions mailing list archive at Nabble.com. From fbsd1 at a1poweruser.com Sun Sep 6 04:57:49 2009 From: fbsd1 at a1poweruser.com (Fbsd1) Date: Sun Sep 6 04:57:58 2009 Subject: Making bootable USB keys In-Reply-To: References: <4AA09809.1050402@a1poweruser.com> Message-ID: <4AA3413E.60506@a1poweruser.com> Samuel Mart?n Moro wrote: > In fact, we provide the servers and the keys. > So we're sure everything will work. > > And also, our install CD is already able to create this kind of USB stick. I am just curious. What manufacture / model and GB size of USB stick are you using? When you plug the USB stick into a FreeBSD system what version of the USB standard is used in the firmware on the USB stick (1.0, 2.0 or 2.2)? The firmware USB version standard used by the stick is displayed when the stick is first plugged into a Freebsd release 7.2 From mel.flynn+fbsd.questions at mailing.thruhere.net Sun Sep 6 08:05:43 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Sun Sep 6 08:05:50 2009 Subject: Inconsistency in root partition size In-Reply-To: <25314145.post@talk.nabble.com> References: <25314145.post@talk.nabble.com> Message-ID: <200909060958.11114.mel.flynn+fbsd.questions@mailing.thruhere.net> On Sunday 06 September 2009 04:34:20 jaymax wrote: > I apparently have open file handles in my / partitions. > It was partitioned at 512 Mb size, used about 150Mb > df shows > Filesystem Size Used Avail Capacity Mounted on > /dev/ad0s1a 496M 492M -36M 108% / > adjkerntz 147 root 0u VBAD > (revoked) adjkerntz 147 root 1u VBAD > Can't really identify lines I can say does not belong so I don't have any > rational basis to kill any process. All seems legit! > > Rebooting does not correct the descrepancy For one, you could've used fstat -f / to reduce the noise. Secondly, since rebooting does not help, open files are not the cause. Rather the VBAD up there. Do an fsck -y. Chances are your file system got filled, a hardware write error occurred and the kernel could therefore not return the space to the disk. If you still have logs, I would grep for WRITE_DMA in /var/log/messages. -- Mel From jaymax36 at gmail.com Sun Sep 6 10:18:00 2009 From: jaymax36 at gmail.com (jaymax) Date: Sun Sep 6 10:18:07 2009 Subject: Inconsistency in root partition size In-Reply-To: <200909060958.11114.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <25314145.post@talk.nabble.com> <200909060958.11114.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: <25316313.post@talk.nabble.com> Mel Flynn-2 wrote: > > On Sunday 06 September 2009 04:34:20 jaymax wrote: >> I apparently have open file handles in my / partitions. >> It was partitioned at 512 Mb size, used about 150Mb >> df shows >> Filesystem Size Used Avail Capacity Mounted on >> /dev/ad0s1a 496M 492M -36M 108% / > >> adjkerntz 147 root 0u VBAD >> (revoked) adjkerntz 147 root 1u VBAD > > >> Can't really identify lines I can say does not belong so I don't have any >> rational basis to kill any process. All seems legit! >> >> Rebooting does not correct the descrepancy > > For one, you could've used fstat -f / to reduce the noise. Secondly, since You were correct fstat -f / showed no open files handles rebooting does not help, open files are not the cause. Rather the VBAD up > there. Do an fsck -y. Chances are your file system got filled, a hardware > write error occurred and the kernel could therefore not return the space > to > the disk. > If you still have logs, I would grep for WRITE_DMA in > ran fsck on / mounted partition, is that reasonable or possible, since it is / or do I have to use a livefs disk like Fixit or Frenzy for this # fsck -vy -B /dev/ad0s1a start / wait fsck_ufs -y -F /dev/ad0s1a start / wait fsck_ufs -y -B /dev/ad0s1a /: write failed, filesystem is full CANNOT CREATE SNAPSHOT //.snap/fsck_snapshot: No space left on device ** /dev/ad0s1a (NO WRITE) ** Last Mounted on / ** Root file system ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts UNREF FILE I=3417 OWNER=root MODE=100400 SIZE=0 MTIME=Sep 6 02:41 2009 RECONNECT? no CLEAR? no UNREF FILE I=3495 OWNER=root MODE=140666 SIZE=0 MTIME=Sep 5 01:17 2009 CLEAR? no UNREF FILE I=3524 OWNER=root MODE=100644 SIZE=154 MTIME=Sep 5 01:23 2009 RECONNECT? no CLEAR? no ** Phase 5 - Check Cyl groups FREE BLK COUNT(S) WRONG IN SUPERBLK SALVAGE? no 16849 files, 251849 used, 1966 free (1966 frags, 0 blocks, 0.8% fragmentation) ----- # grep -in WRITE_DMA /var/log/messages Yielded nothing either Rebooted - came back up with the same condition. On rebooting, doesn't the system run fsck -y before mounting the disks Still stuck, at least we have eliminated the "open file handler" belief Thanks -- View this message in context: http://www.nabble.com/Inconsistency-in-root-partition-size-tp25314145p25316313.html Sent from the freebsd-questions mailing list archive at Nabble.com. From mel.flynn+fbsd.questions at mailing.thruhere.net Sun Sep 6 10:38:38 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Sun Sep 6 10:38:45 2009 Subject: Inconsistency in root partition size In-Reply-To: <25316313.post@talk.nabble.com> References: <25314145.post@talk.nabble.com> <200909060958.11114.mel.flynn+fbsd.questions@mailing.thruhere.net> <25316313.post@talk.nabble.com> Message-ID: <200909061238.32832.mel.flynn+fbsd.questions@mailing.thruhere.net> On Sunday 06 September 2009 12:17:59 jaymax wrote: > ran fsck on / mounted partition, is that reasonable or possible, since it > is / or do I have to use a livefs disk like Fixit or Frenzy for this No, single user mode. Root partition in single user mode can be fsck'd and repaired if mounted ro in single user. The system does fsck -p by default, which skips partitions marked clean. Since you can shutdown cleanly, nothing will happen. Have a look at /etc/defaults/rc.conf for setting different behaviors by overriding the defaults in /etc/rc.conf. -- Mel From smithi at nimnet.asn.au Sun Sep 6 13:37:59 2009 From: smithi at nimnet.asn.au (Ian Smith) Date: Sun Sep 6 13:38:22 2009 Subject: How to correct *Failed sysctlbyname("net.inet.ip.fw.tables_max")* In-Reply-To: <20090905120021.9BA271065816@hub.freebsd.org> References: <20090905120021.9BA271065816@hub.freebsd.org> Message-ID: <20090906232257.N89278@sola.nimnet.asn.au> In freebsd-questions Digest, Vol 274, Issue 12, Message 18 On Sat, 5 Sep 2009 12:57:46 +0300 ??????? ??????? wrote: > vpn# ipfw table 12 list > ipfw: Failed sysctlbyname("net.inet.ip.fw.tables_max") > vpn# sysctl -a | grep net.inet.ip.fw > net.inet.ip.fw.dyn_keepalive: 1 > net.inet.ip.fw.dyn_short_lifetime: 5 > net.inet.ip.fw.dyn_udp_lifetime: 10 > net.inet.ip.fw.dyn_rst_lifetime: 1 > net.inet.ip.fw.dyn_fin_lifetime: 1 > net.inet.ip.fw.dyn_syn_lifetime: 20 > net.inet.ip.fw.dyn_ack_lifetime: 300 > net.inet.ip.fw.static_count: 46 > net.inet.ip.fw.dyn_max: 4096 > net.inet.ip.fw.dyn_count: 0 > net.inet.ip.fw.curr_dyn_buckets: 256 > net.inet.ip.fw.dyn_buckets: 256 > net.inet.ip.fw.default_rule: 65535 > net.inet.ip.fw.verbose_limit: 0 > net.inet.ip.fw.verbose: 1 > net.inet.ip.fw.debug: 1 > net.inet.ip.fw.one_pass: 0 > net.inet.ip.fw.autoinc_step: 100 > net.inet.ip.fw.enable: 1 > vpn# uname -a > FreeBSD vpn.in 7.1-RELEASE-p7 FreeBSD 7.1-RELEASE-p7 #1: Sat Sep 5 00:26:18 EEST 2009 kes@vpn.in:/usr/obj/usr/src/sys/KES_KERN_v71 i386 > > I just upgrade from 7.0. > Sources are RELENG_7_1 Kes, perhaps your kernel and userland sources may be out of synch? I haven't hunted through CVS, but located a message in ipfw@ from Ganbold with a patch proposing to add that very sysctl to ip_fw2.c dated 1st September 2008 .. was that before or after 7.1-RELEASE? Happy hunting, Ian From hsmtkk at gmail.com Sun Sep 6 14:11:14 2009 From: hsmtkk at gmail.com (Hashimoto) Date: Sun Sep 6 14:11:21 2009 Subject: Clock delays in FreeBSD guest VM on VirtualBox Message-ID: <6bae2c430909060711m3c57adfej33014f84cb23874@mail.gmail.com> Hello. I am running several FreeBSD(8.0-BETA3) guest VMs on VirtualBox on OpenSolaris. On all hosts, I am configuring & running ntpd. However, only one host (naming HostX) can sync the clock. All hosts except for HostX cannot sync the clock. (The time delays about 10 minutes in an hour.) What's the cause of this problem? Regards. /etc/rc.conf ntpd_enable="YES" ntpd_sync_on_start="YES" /etc/ntp.conf (default config file) server 0.freebsd.pool.ntp.org iburst maxpoll 9 server 1.freebsd.pool.ntp.org iburst maxpoll 9 server 2.freebsd.pool.ntp.org iburst maxpoll 9 -- Kouki Hashimoto hsmtkk@gmail.com From cwhiteh at onetel.com Sun Sep 6 15:19:05 2009 From: cwhiteh at onetel.com (Chris Whitehouse) Date: Sun Sep 6 15:19:12 2009 Subject: how to display pkg-message Message-ID: <4AA3D2E7.9070409@onetel.com> Hello Could someone remind of the make target for showing messages which are displayed when installing ports please. I thought it was some variant of make showinfo but I can't find one that works. I am assuming that if /files/pkg-message.in exists the this make target would show a result. thanks Chris From freebsd-questions at k-moeller.dk Sun Sep 6 15:59:39 2009 From: freebsd-questions at k-moeller.dk (=?ISO-8859-1?Q?Kalle_M=F8ller?=) Date: Sun Sep 6 15:59:46 2009 Subject: how to display pkg-message In-Reply-To: <4AA3D2E7.9070409@onetel.com> References: <4AA3D2E7.9070409@onetel.com> Message-ID: <8250ac3f0909060829j8b47ca9t72fdd3cf5820635a@mail.gmail.com> Looking for that feature to :) On Sun, Sep 6, 2009 at 5:19 PM, Chris Whitehouse wrote: > Hello > > Could someone remind of the make target for showing messages which are > displayed when installing ports please. I thought it was some variant of > make showinfo but I can't find one that works. I am assuming that if > /files/pkg-message.in exists the this make target would show a > result. > > thanks > > Chris > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > -- Med Venlig Hilsen Kalle R. M?ller From randy.belk at gmail.com Sun Sep 6 17:25:59 2009 From: randy.belk at gmail.com (Randy Belk) Date: Sun Sep 6 17:26:06 2009 Subject: how to display pkg-message In-Reply-To: <946140ad0909061021g1d0ca8daie78502f71c009ddf@mail.gmail.com> References: <4AA3D2E7.9070409@onetel.com> <8250ac3f0909060829j8b47ca9t72fdd3cf5820635a@mail.gmail.com> <946140ad0909061021g1d0ca8daie78502f71c009ddf@mail.gmail.com> Message-ID: <946140ad0909061025j4c4763afm5b389d8fcafe81af@mail.gmail.com> On Sun, Sep 6, 2009 at 12:21 PM, Randy Belk wrote: > On Sun, Sep 6, 2009 at 10:29 AM, Kalle > M?ller wrote: >> Looking for that feature to :) >> >> On Sun, Sep 6, 2009 at 5:19 PM, Chris Whitehouse wrote: >> >>> Hello >>> >>> Could someone remind of the make target for showing messages which are >>> displayed when installing ports please. I thought it was some variant of >>> make showinfo but I can't find one that works. I am assuming that if >>> /files/pkg-message.in exists the this make target would show a >>> result. >>> >>> thanks >>> >>> Chris >>> _______________________________________________ >>> freebsd-questions@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>> To unsubscribe, send any mail to " >>> freebsd-questions-unsubscribe@freebsd.org" >>> >> >> >> >> -- >> >> Med Venlig Hilsen >> >> Kalle R. M?ller >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >> This is explained in the pkg_info man page. To Show the install-message file for the installed package postfix-2.6.3,1 you would enter "pkg_info -D -x postfix | less" Please read the man page! Also install ports-mgmt/bpkg, it's an awsome utility -- - Amiga, The Computer for the creative Mind! - UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity. - People who hate Microsoft Windows use Linux but people who love UNIX use BSD. -- - Amiga, The Computer for the creative Mind! - UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity. - People who hate Microsoft Windows use Linux but people who love UNIX use BSD. From m.seaman at infracaninophile.co.uk Sun Sep 6 17:27:44 2009 From: m.seaman at infracaninophile.co.uk (Matthew Seaman) Date: Sun Sep 6 17:27:51 2009 Subject: how to display pkg-message In-Reply-To: <4AA3D2E7.9070409@onetel.com> References: <4AA3D2E7.9070409@onetel.com> Message-ID: <4AA3F0FE.2060806@infracaninophile.co.uk> Chris Whitehouse wrote: > Could someone remind of the make target for showing messages which are > displayed when installing ports please. I thought it was some variant of > make showinfo but I can't find one that works. I am assuming that if > /files/pkg-message.in exists the this make target would show a > result. Once the port is installed, you can do: % pkg_info -Dx portname What is probably less known is that if you have the package tarball, you can run pkg_info on it *without* it being installed: % pkg_info -D ./portname.tbz There isn't a specific make target for displaying pkg-message -- it's generally done as part of the post-install: target, but that target also typically runs any of the scripts that should be bundled with the pkg. That's things like creating a UID to own files or processes, which is not necessarily something you would want to happen when just trying to see some messages. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090906/b7f76c0f/signature.pgp From freebsd-questions-local at be-well.ilk.org Sun Sep 6 17:34:25 2009 From: freebsd-questions-local at be-well.ilk.org (Lowell Gilbert) Date: Sun Sep 6 17:34:36 2009 Subject: Is there such thing as a 'soft checksum' tool? In-Reply-To: <64c038660909050933h25a91edcw56688993f5557ad2@mail.gmail.com> (modulok@gmail.com's message of "Sat\, 5 Sep 2009 10\:33\:03 -0600") References: <64c038660909050933h25a91edcw56688993f5557ad2@mail.gmail.com> Message-ID: <44skf0c6zq.fsf@lowell-desk.lan> Modulok writes: > I'm not even sure such a tool exists, but it's worth asking: > > I'm looking for a pseudo-checksum tool for use with catalogging > images. For example, a strict checksum algorithm, like the sha family, > will produce a dramatically different checksum for two files which > differ by only a single bit. I'm looking for something where two > images images, which are similar, get a proportionally similar > checksum. When I speak of similarities I'm referring to their image > patterns. i.e two images of differing sizes, which are otherwise > identical, would produce very similar checksums. So the closer the > checksums are, the more similar two given images are. > > Does anyone know of anything like this? It turns out this is a remarkably hard problem. You can look at p5-Image-Compare, but be prepared to experiment before trusting the results. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ From randy.belk at gmail.com Sun Sep 6 17:44:12 2009 From: randy.belk at gmail.com (Randy Belk) Date: Sun Sep 6 17:44:19 2009 Subject: how to display pkg-message In-Reply-To: <8250ac3f0909060829j8b47ca9t72fdd3cf5820635a@mail.gmail.com> References: <4AA3D2E7.9070409@onetel.com> <8250ac3f0909060829j8b47ca9t72fdd3cf5820635a@mail.gmail.com> Message-ID: <946140ad0909061021g1d0ca8daie78502f71c009ddf@mail.gmail.com> On Sun, Sep 6, 2009 at 10:29 AM, Kalle M?ller wrote: > Looking for that feature to :) > > On Sun, Sep 6, 2009 at 5:19 PM, Chris Whitehouse wrote: > >> Hello >> >> Could someone remind of the make target for showing messages which are >> displayed when installing ports please. I thought it was some variant of >> make showinfo but I can't find one that works. I am assuming that if >> /files/pkg-message.in exists the this make target would show a >> result. >> >> thanks >> >> Chris >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to " >> freebsd-questions-unsubscribe@freebsd.org" >> > > > > -- > > Med Venlig Hilsen > > Kalle R. M?ller > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > This is explained in the pkg_info man page. To Show the install-message file for the installed package postfix-2.6.3,1 you would enter "pkg_info -D -x postfix | less" Please read the man page! Also install ports-mgmt/bpkg, it's an awsome utility -- - Amiga, The Computer for the creative Mind! - UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity. - People who hate Microsoft Windows use Linux but people who love UNIX use BSD. From cwhiteh at onetel.com Sun Sep 6 18:18:41 2009 From: cwhiteh at onetel.com (Chris Whitehouse) Date: Sun Sep 6 18:18:47 2009 Subject: how to display pkg-message In-Reply-To: <946140ad0909061021g1d0ca8daie78502f71c009ddf@mail.gmail.com> References: <4AA3D2E7.9070409@onetel.com> <8250ac3f0909060829j8b47ca9t72fdd3cf5820635a@mail.gmail.com> <946140ad0909061021g1d0ca8daie78502f71c009ddf@mail.gmail.com> Message-ID: <4AA3FCFE.7000008@onetel.com> Randy Belk wrote: > On Sun, Sep 6, 2009 at 10:29 AM, Kalle > M?ller wrote: >> Looking for that feature to :) >> >> On Sun, Sep 6, 2009 at 5:19 PM, Chris Whitehouse wrote: >> >>> Hello >>> >>> Could someone remind of the make target for showing messages which are >>> displayed when installing ports please. I thought it was some variant of >>> make showinfo but I can't find one that works. I am assuming that if >>> /files/pkg-message.in exists the this make target would show a >>> result. >>> >>> thanks >>> >>> Chris >>> _______________________________________________ >>> freebsd-questions@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>> To unsubscribe, send any mail to " >>> freebsd-questions-unsubscribe@freebsd.org" >>> >> >> >> -- >> >> Med Venlig Hilsen >> >> Kalle R. M?ller >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >> > > > This is explained in the pkg_info man page. > > To Show the install-message file for the installed package > postfix-2.6.3,1 you would enter "pkg_info -D -x postfix | less" > > Please read the man page! Also install ports-mgmt/bpkg, it's an awsome utility > > Thanks for the info. I read man ports, quite a lot of bsd.ports.mk plus list archives and google but because I was so convinced it was a make target I didn't think of pkg_info. It all makes sense now. What's more next time I forget I will be able to look up my own post :) Thanks Matthew S for the tip about tarballs too. cheers Chris From mel.flynn+fbsd.questions at mailing.thruhere.net Sun Sep 6 18:55:36 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Sun Sep 6 18:55:43 2009 Subject: how to display pkg-message In-Reply-To: <4AA3FCFE.7000008@onetel.com> References: <4AA3D2E7.9070409@onetel.com> <946140ad0909061021g1d0ca8daie78502f71c009ddf@mail.gmail.com> <4AA3FCFE.7000008@onetel.com> Message-ID: <200909062055.31041.mel.flynn+fbsd.questions@mailing.thruhere.net> On Sunday 06 September 2009 20:18:38 Chris Whitehouse wrote: > Thanks for the info. I read man ports, quite a lot of bsd.ports.mk plus > list archives If you want to see the dynamically generated pkg-message of a *port*, before building/installing it (f.e. to identify what gotchas there are), use the following: make -C /usr/ports/category/portname WRKDIR=/tmp apply-slist && cat /tmp/pkg- message -- Mel From cdr.nil at gmail.com Sun Sep 6 20:40:07 2009 From: cdr.nil at gmail.com (Mark Willson) Date: Sun Sep 6 20:40:15 2009 Subject: is there a way of usinf greo to find 3 or 4 blank lines? In-Reply-To: <20090906003651.GA7388@thought.org> References: <20090906003651.GA7388@thought.org> Message-ID: Gary Kline wrote: > in my manuscript, i have many places where i'ved used several > newlines to indicate a jump in time, or topic, or mood, or > <>. i have lost these vertical spacing in all but my > original draft. can i use grep somehow to find these extra newlines? > > > if not grep, then sed, ed, or what?! > > tia, > > gary > > > Gary, If I understand your question correctly (by no means certain), the following may help. This is an awk script, which will print out the lines in the source file at which it finds more than three consecutive empty lines. BEGIN { ncnt = 0 } /^ *$/ { ncnt++; if (ncnt > 3) {print "Emphasis at: " NR; ncnt = 0;} next; } {ncnt = 0;} You can invoke this (assuming the awk source in is a file called "em.awk" and your original manuscript is in a file called "manuscript") by: $ awk -f em.awk manuscript -mark From mak at kolybabi.com Sun Sep 6 20:44:14 2009 From: mak at kolybabi.com (Mak Kolybabi) Date: Sun Sep 6 20:44:21 2009 Subject: is there a way of usinf greo to find 3 or 4 blank lines? In-Reply-To: <20090906003651.GA7388@thought.org> References: <20090906003651.GA7388@thought.org> Message-ID: <20090906204412.GA28721@brisbane.nepharia.org> On 2009-09-05 17:36, Gary Kline wrote: > in my manuscript, i have many places where i'ved used several newlines to > indicate a jump in time, or topic, or mood, or <>. i have lost these > vertical spacing in all but my original draft. can i use grep somehow to find > these extra newlines? > > if not grep, then sed, ed, or what?! Sed has the ability to pull into the current line the next line, appended and separated by a "\n" character. It's hard to use correctly, I've found, and my simple demo: sed -e '/^$/{N;N;N; s/^\n\n\n$/===4 blank lines==/; }' Does not quite work as I'd hoped. But hopefully it's enough to get you started. -- Matthew Anthony Kolybabi (Mak) () ASCII Ribbon Campaign | Against HTML e-mail /\ www.asciiribbon.org | Against proprietary extensions From cwhiteh at onetel.com Sun Sep 6 21:13:35 2009 From: cwhiteh at onetel.com (Chris Whitehouse) Date: Sun Sep 6 21:13:41 2009 Subject: how to display pkg-message In-Reply-To: <200909062055.31041.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <4AA3D2E7.9070409@onetel.com> <946140ad0909061021g1d0ca8daie78502f71c009ddf@mail.gmail.com> <4AA3FCFE.7000008@onetel.com> <200909062055.31041.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: <4AA425F6.9020508@onetel.com> Mel Flynn wrote: > On Sunday 06 September 2009 20:18:38 Chris Whitehouse wrote: > >> Thanks for the info. I read man ports, quite a lot of bsd.ports.mk plus >> list archives > > If you want to see the dynamically generated pkg-message of a *port*, before > building/installing it (f.e. to identify what gotchas there are), use the > following: > > make -C /usr/ports/category/portname WRKDIR=/tmp apply-slist && cat /tmp/pkg- > message That's exactly what I was trying to do though the other replies gave me an alternative way. thanks very much Chris From kline at thought.org Sun Sep 6 23:23:06 2009 From: kline at thought.org (Gary Kline) Date: Sun Sep 6 23:23:13 2009 Subject: is there a way of usinf greo to find 3 or 4 blank lines? In-Reply-To: References: <20090906003651.GA7388@thought.org> Message-ID: <20090906232300.GA11209@thought.org> On Sun, Sep 06, 2009 at 08:11:48PM +0100, Mark Willson wrote: > Gary Kline wrote: > >in my manuscript, i have many places where i'ved used several > >newlines to indicate a jump in time, or topic, or mood, or > ><>. i have lost these vertical spacing in all but my > >original draft. can i use grep somehow to find these extra newlines? > > > > > >if not grep, then sed, ed, or what?! > > > >tia, > > > >gary > > > > > > > Gary, > > If I understand your question correctly (by no means certain), the > following may help. This is an awk script, which will print out the > lines in the source file at which it finds more than three consecutive > empty lines. > > BEGIN { > ncnt = 0 > } > /^ *$/ { > ncnt++; > if (ncnt > 3) > {print "Emphasis at: " NR; > ncnt = 0;} > next; > } > {ncnt = 0;} > > You can invoke this (assuming the awk source in is a file called > "em.awk" and your original manuscript is in a file called "manuscript") by: > > $ awk -f em.awk manuscript > > -mark Yes, this works just fine. I findthat there are about 130 places that I need to track... --yeah, i did over-do it in the time-breaks in my story. Is there a way of printing the string/line in the `manuscript' file along with the line number? I'm well into a copyedit of the manuscript and would rather not start over! thanks for this. gary > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php From kline at thought.org Sun Sep 6 23:33:42 2009 From: kline at thought.org (Gary Kline) Date: Sun Sep 6 23:33:51 2009 Subject: is there a way of usinf greo to find 3 or 4 blank lines? In-Reply-To: <20090906204412.GA28721@brisbane.nepharia.org> References: <20090906003651.GA7388@thought.org> <20090906204412.GA28721@brisbane.nepharia.org> Message-ID: <20090906233335.GB11209@thought.org> On Sun, Sep 06, 2009 at 03:44:13PM -0500, Mak Kolybabi wrote: > On 2009-09-05 17:36, Gary Kline wrote: > > in my manuscript, i have many places where i'ved used several newlines to > > indicate a jump in time, or topic, or mood, or <>. i have lost these > > vertical spacing in all but my original draft. can i use grep somehow to find > > these extra newlines? > > > > if not grep, then sed, ed, or what?! > > Sed has the ability to pull into the current line the next line, appended and > separated by a "\n" character. It's hard to use correctly, I've found, and my > simple demo: > > sed -e '/^$/{N;N;N; s/^\n\n\n$/===4 blank lines==/; }' > > Does not quite work as I'd hoped. But hopefully it's enough to get you started. > Thanks, Mak. iT really *is* more difficult that grep can handle. I could catch the three newlines in C, but the string/line above the break would be painful unless i kept a linked list of linenumbers. too much like work:-) gary > -- > Matthew Anthony Kolybabi (Mak) > > > () ASCII Ribbon Campaign | Against HTML e-mail > /\ www.asciiribbon.org | Against proprietary extensions > -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php From nlandys at gmail.com Mon Sep 7 00:27:09 2009 From: nlandys at gmail.com (Nerius Landys) Date: Mon Sep 7 00:28:02 2009 Subject: wireless: host access point w/ WAP help! Message-ID: <560f92640909061727o5e8ce3b2k9248e28fe878f58a@mail.gmail.com> I am following the Handbook instructions for setting up a FreeBSD wireless host access point: http://www.freebsd.org/doc/en/books/handbook/network-wireless.html root@speedy# dmesg | grep ath ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) ath0: mem 0xff8f0000-0xff8fffff irq 21 at device 0.0 on pci1 ath0: [ITHREAD] ath0: WARNING: using obsoleted if_watchdog interface ath0: Ethernet address: 00:02:6f:61:e6:7d ath0: mac 7.9 phy 4.5 radio 5.6 ath0: ath_chan_set: unable to reset channel 6 (2437 Mhz, flags 0x490 hal flags 0x150), hal status 12 root@speedy# ifconfig ath0 list caps ath0=6783edcf I am able to set up an access point with no authentication or encryption. I verified this by connecting to my FreeBSD router from a Windows [wireless] laptop computer over SSH. It seems that the minute I try to turn WAP on (based on the instructions in the Handbook), things stop working. The steps I follow to enable WAP (after verifying that the host access point is working without encryption) are based on the instructions in the Handbook, and are as follows: 1. Create /etc/hostapd.conf: interface=ath0 debug=1 ctrl_interface=/var/run/hostapd ctrl_interface_group=wheel ssid=speedy.i wpa=1 wpa_passphrase=xxx3xxx3 wpa_key_mgmt=WPA-PSK wpa_pairwise=CCMP TKIP 2. Add this line to /etc/rc.conf: hostapd_enable="YES" 3. Execute "/etc/rc.d/hostapd forcestart". I realize this is only needed for changes to take effect before rebooting the system. I also tried rebooting (with the line in rc.conf) but the results are the same. With WAP "enabled" (following the three steps above), my Windows laptop does not scan to find the "speedy.i" access point. Also, here are some things output by "ifconfig ath0" before and after I follow these steps to enable WAP: BEFORE ENABLING WAP (without hostapd): nlandys@speedy# ifconfig ath0 ath0: flags=8843 metric 0 mtu 1500 ether 00:02:6f:61:e6:7d inet 192.168.1.254 netmask 0xffffff00 broadcast 192.168.1.255 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: associated ssid speedy.i channel 1 (2412 Mhz 11g) bssid 00:02:6f:61:e6:7d authmode OPEN privacy OFF txpower 31.5 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi11g 7 roam:rate11g 5 protmode CTS burst dtimperiod 1 AFTER ENABLING WAP (with hostapd): root@speedy# ifconfig ath0 ath0: flags=8802 metric 0 mtu 1500 ether 00:02:6f:61:e6:7d inet 192.168.1.254 netmask 0xffffff00 broadcast 192.168.1.255 media: IEEE 802.11 Wireless Ethernet autoselect mode 11g status: no carrier ssid speedy.i channel 1 (2412 Mhz 11g) authmode AUTO privacy OFF txpower 31.5 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi11g 7 roam:rate11g 5 protmode CTS burst dtimperiod 1 The output from "ifconfig ath0" above after WAP has been enabled differs significantly from the sample output in the Handbook. One more important thing. I look at processes from top and I see nothing running that corresponds to hostapd. Is this a daemon? I also did the following: root@speedy# find /var | grep -i hostapd And it returns nothing. Does /var/run/hostapd need to exist as a directory for things to work? From nlandys at gmail.com Mon Sep 7 00:42:19 2009 From: nlandys at gmail.com (Nerius Landys) Date: Mon Sep 7 00:42:26 2009 Subject: wireless: host access point w/ WAP help! In-Reply-To: <560f92640909061727o5e8ce3b2k9248e28fe878f58a@mail.gmail.com> References: <560f92640909061727o5e8ce3b2k9248e28fe878f58a@mail.gmail.com> Message-ID: <560f92640909061742ve9eb6eoa06eed3332b329df@mail.gmail.com> I was brave enough to find out that logging on hostapd was going to /var/log/messages. I see this there after trying to start hostapd using the /etc/rc.d/ script: Sep 6 17:39:12 speedy kernel: ieee80211_load_module: load the wlan_xauth module by hand for now. Sep 6 17:39:12 speedy hostapd: ath0: DRIVER Error enabling WPA/802.1X! Am looking into it now, doing google searches. From nlandys at gmail.com Mon Sep 7 00:51:33 2009 From: nlandys at gmail.com (Nerius Landys) Date: Mon Sep 7 00:51:40 2009 Subject: wireless: host access point w/ WAP help! In-Reply-To: <560f92640909061742ve9eb6eoa06eed3332b329df@mail.gmail.com> References: <560f92640909061727o5e8ce3b2k9248e28fe878f58a@mail.gmail.com> <560f92640909061742ve9eb6eoa06eed3332b329df@mail.gmail.com> Message-ID: <560f92640909061751v7533810ckb1df17a3dfcea5d5@mail.gmail.com> I added this to /boot/loader.conf: wlan_xauth_load="YES" After a complete reboot of my system I get this line in /var/log/messages: Sep 6 17:46:47 speedy kernel: ath0: ath_chan_set: unable to reset channel 6 (2437 Mhz, flags 0x490 hal flags 0x150), hal status 12 Not sure if this is something to worry about. From kline at thought.org Mon Sep 7 01:06:09 2009 From: kline at thought.org (Gary Kline) Date: Mon Sep 7 01:06:16 2009 Subject: is there a way of usinf greo to find 3 or 4 blank lines? In-Reply-To: <20090906232300.GA11209@thought.org> References: <20090906003651.GA7388@thought.org> <20090906232300.GA11209@thought.org> Message-ID: <20090907010602.GA11657@thought.org> On Sun, Sep 06, 2009 at 04:23:01PM -0700, Gary Kline wrote: > On Sun, Sep 06, 2009 at 08:11:48PM +0100, Mark Willson wrote: > > Gary Kline wrote: > > >in my manuscript, i have many places where i'ved used several > > >newlines to indicate a jump in time, or topic, or mood, or > > ><>. i have lost these vertical spacing in all but my > > >original draft. can i use grep somehow to find these extra newlines? > > > > > > > > >if not grep, then sed, ed, or what?! > > > > > >tia, > > > > > >gary > > > > > > > > > > > Gary, > > > > If I understand your question correctly (by no means certain), the > > following may help. This is an awk script, which will print out the > > lines in the source file at which it finds more than three consecutive > > empty lines. > > > > BEGIN { > > ncnt = 0 > > } > > /^ *$/ { > > ncnt++; > > if (ncnt > 3) > > {print "Emphasis at: " NR; > > ncnt = 0;} > > next; > > } > > {ncnt = 0;} > > > > You can invoke this (assuming the awk source in is a file called > > "em.awk" and your original manuscript is in a file called "manuscript") by: > > > > $ awk -f em.awk manuscript > > > > -mark > > > Yes, this works just fine. I findthat there are about 130 places that I need to > track... --yeah, i did over-do it in the time-breaks in my story. > > Is there a way of printing the string/line in the `manuscript' file along with the line > number? I'm well into a copyedit of the manuscript and would rather not start over! > > thanks for this. > :wq Sorry:: sounds a bit moronic:: not print the blank line/newline! but print the NR-1-th line. > -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php From tajudd at gmail.com Mon Sep 7 02:12:46 2009 From: tajudd at gmail.com (Tim Judd) Date: Mon Sep 7 02:12:52 2009 Subject: Clock delays in FreeBSD guest VM on VirtualBox In-Reply-To: <6bae2c430909060711m3c57adfej33014f84cb23874@mail.gmail.com> References: <6bae2c430909060711m3c57adfej33014f84cb23874@mail.gmail.com> Message-ID: On 9/6/09, Hashimoto wrote: > Hello. > > I am running several FreeBSD(8.0-BETA3) guest VMs > on VirtualBox on OpenSolaris. > On all hosts, I am configuring & running ntpd. > > However, only one host (naming HostX) can sync the clock. > All hosts except for HostX cannot sync the clock. > (The time delays about 10 minutes in an hour.) > What's the cause of this problem? > Regards. > > /etc/rc.conf > ntpd_enable="YES" > ntpd_sync_on_start="YES" > > /etc/ntp.conf (default config file) > server 0.freebsd.pool.ntp.org iburst maxpoll 9 > server 1.freebsd.pool.ntp.org iburst maxpoll 9 > server 2.freebsd.pool.ntp.org iburst maxpoll 9 > > -- > Kouki Hashimoto > hsmtkk@gmail.com Timing problems can be due to kern.hz The older kern.hz was set to 100, and now it's set at 1000 The hardware clock may need adjusting, see sysctl kern.timecounter.choice Only one that seems relatively current is installing the vmtools with vmware hypervisor. Said tools even support guest shutdown and the rest. I would say without tools support, you have slim possible chances to synchronize timings, and timing problems will keep you guessing. From jaymax36 at gmail.com Mon Sep 7 02:24:08 2009 From: jaymax36 at gmail.com (jaymax) Date: Mon Sep 7 02:24:16 2009 Subject: Inconsistency in root partition size In-Reply-To: <200909061238.32832.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <25314145.post@talk.nabble.com> <200909060958.11114.mel.flynn+fbsd.questions@mailing.thruhere.net> <25316313.post@talk.nabble.com> <200909061238.32832.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: <25324178.post@talk.nabble.com> Mel Flynn-2 wrote: > > > No, single user mode. Root partition in single user mode can be fsck'd and > repaired if mounted ro in single user. The system does fsck -p by default, > which skips partitions marked clean. Since you can shutdown cleanly, > nothing > will happen. > Have a look at /etc/defaults/rc.conf for setting different behaviors by > overriding the defaults in /etc/rc.conf. > In single user mode I ran fsck -vy / there were a few Salvages along the way Rebooted but the condition remained unchanged. rebooted again in single user mode ran fsck -vy /dev/ad0s1a everything seemed clear - no salvage operation Normal reboot, but discrepancy still persits Hope we have not reached a checkmate! from the logs the only things discernable, were dmesg => > ad0: 39083MB at ata0-master UDMA100 > ad1: 76345MB at ata0-slave UDMA100 > acd0: CDROM at ata1-master UDMA33 > acd1: DVDR at ata1-slave UDMA33 > ad4: 381554MB at ata2-master UDMA100 > Trying to mount root from ufs:/dev/ad0s1a > WARNING: /usr was not properly dismounted > WARNING: /disk02 was not properly dismounted > WARNING: /disk03 was not properly dismounted > from /var/all.log the record for today Earlier mount attempt # grep -in ad0s1a all.log 143:Sep 6 02:23:41 mach_1 kernel: Trying to mount root from ufs:/dev/ad0s1a 158:Sep 6 02:23:41 mach_1 kernel: /dev/ad0s1a: DEFER FOR BACKGROUND CHECKING 472:Sep 6 02:25:02 mach_1 fsck: /dev/ad0s1a: CANNOT CREATE SNAPSHOT //.snap/fsck_snapshot: No space left on device 474:Sep 6 02:25:02 mach_1 fsck: /dev/ad0s1a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. 985:Sep 6 03:11:21 mach_1 kernel: Trying to mount root from ufs:/dev/ad0s1a 1000:Sep 6 03:11:21 mach_1 kernel: /dev/ad0s1a: DEFER FOR BACKGROUND CHECKING 1315:Sep 6 03:13:08 mach_1 fsck: /dev/ad0s1a: CANNOT CREATE SNAPSHOT //.snap/fsck_snapshot: No space left on device 1317:Sep 6 03:13:08 mach_1 fsck: /dev/ad0s1a: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. last mount 6311:Sep 6 17:39:33 mach_1 kernel: Trying to mount root from ufs:/dev/ad0s1a 6325:Sep 6 17:39:33 mach_1 kernel: /dev/ad0s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS 6326:Sep 6 17:39:33 mach_1 kernel: /dev/ad0s1a: clean, 1982 free (1966 frags, 2 blocks, 0.8% fragmentation) 6772:Sep 6 17:51:19 mach_1 kernel: Trying to mount root from ufs:/dev/ad0s1a 6786:Sep 6 17:51:19 mach_1 kernel: /dev/ad0s1a: FILE SYSTEM CLEAN; SKIPPING CHECKS 6787:Sep 6 17:51:19 mach_1 kernel: /dev/ad0s1a: clean, 1968 free (1968 frags, 0 blocks, 0.8% fragmentation) and df -k => df -k Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s1a 507630 503694 -36674 108% / Don't know if the above can show anything Could this be a kernel issue, tuning etc? Thanks! -- View this message in context: http://www.nabble.com/Inconsistency-in-root-partition-size-tp25314145p25324178.html Sent from the freebsd-questions mailing list archive at Nabble.com. From amvandemore at gmail.com Mon Sep 7 03:08:53 2009 From: amvandemore at gmail.com (Adam Vande More) Date: Mon Sep 7 03:09:00 2009 Subject: Inconsistency in root partition size In-Reply-To: <25324178.post@talk.nabble.com> References: <25314145.post@talk.nabble.com> <200909060958.11114.mel.flynn+fbsd.questions@mailing.thruhere.net> <25316313.post@talk.nabble.com> <200909061238.32832.mel.flynn+fbsd.questions@mailing.thruhere.net> <25324178.post@talk.nabble.com> Message-ID: <6201873e0909062008y4624d3d4y5eca6e21c82f4624@mail.gmail.com> Sun, Sep 6, 2009 at 9:24 PM, jaymax wrote: > > > > Mel Flynn-2 wrote: > > > > > > No, single user mode. Root partition in single user mode can be fsck'd > and > > repaired if mounted ro in single user. The system does fsck -p by > default, > > which skips partitions marked clean. Since you can shutdown cleanly, > > nothing > > will happen. > > Have a look at /etc/defaults/rc.conf for setting different behaviors by > > overriding the defaults in /etc/rc.conf. > > > > In single user mode I ran fsck -vy / > there were a few Salvages along the way > Rebooted but the condition remained unchanged. > rebooted again in single user mode ran fsck -vy /dev/ad0s1a > everything seemed clear - no salvage operation > Normal reboot, but discrepancy still persits > > Hope we have not reached a checkmate! > > from the logs the only things discernable, were > dmesg => > > > > ad0: 39083MB at ata0-master UDMA100 > > ad1: 76345MB at ata0-slave UDMA100 > > acd0: CDROM at ata1-master UDMA33 > > acd1: DVDR at ata1-slave UDMA33 > > ad4: 381554MB at ata2-master UDMA100 > > Trying to mount root from ufs:/dev/ad0s1a > > WARNING: /usr was not properly dismounted > > WARNING: /disk02 was not properly dismounted > > WARNING: /disk03 was not properly dismounted > > > > from /var/all.log the record for today > > Earlier mount attempt > > # grep -in ad0s1a all.log > 143:Sep 6 02:23:41 mach_1 kernel: Trying to mount root from > ufs:/dev/ad0s1a > 158:Sep 6 02:23:41 mach_1 kernel: /dev/ad0s1a: DEFER FOR BACKGROUND > CHECKING > 472:Sep 6 02:25:02 mach_1 fsck: /dev/ad0s1a: CANNOT CREATE SNAPSHOT > //.snap/fsck_snapshot: No space left on device > 474:Sep 6 02:25:02 mach_1 fsck: /dev/ad0s1a: UNEXPECTED INCONSISTENCY; RUN > fsck MANUALLY. > 985:Sep 6 03:11:21 mach_1 kernel: Trying to mount root from > ufs:/dev/ad0s1a > 1000:Sep 6 03:11:21 mach_1 kernel: /dev/ad0s1a: DEFER FOR BACKGROUND > CHECKING > 1315:Sep 6 03:13:08 mach_1 fsck: /dev/ad0s1a: CANNOT CREATE SNAPSHOT > //.snap/fsck_snapshot: No space left on device > 1317:Sep 6 03:13:08 mach_1 fsck: /dev/ad0s1a: UNEXPECTED INCONSISTENCY; > RUN > fsck MANUALLY. > > > last mount > > > 6311:Sep 6 17:39:33 mach_1 kernel: Trying to mount root from > ufs:/dev/ad0s1a > 6325:Sep 6 17:39:33 mach_1 kernel: /dev/ad0s1a: FILE SYSTEM CLEAN; > SKIPPING > CHECKS > 6326:Sep 6 17:39:33 mach_1 kernel: /dev/ad0s1a: clean, 1982 free (1966 > frags, 2 blocks, 0.8% fragmentation) > 6772:Sep 6 17:51:19 mach_1 kernel: Trying to mount root from > ufs:/dev/ad0s1a > 6786:Sep 6 17:51:19 mach_1 kernel: /dev/ad0s1a: FILE SYSTEM CLEAN; > SKIPPING > CHECKS > 6787:Sep 6 17:51:19 mach_1 kernel: /dev/ad0s1a: clean, 1968 free (1968 > frags, 0 blocks, 0.8% fragmentation) > > > and > df -k => > df -k > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad0s1a 507630 503694 -36674 108% / > > Don't know if the above can show anything > Could this be a kernel issue, tuning etc? > > Thanks! > -- > > ufs by default keeps a certain portion in reserve for use by root. 8% is the standard amount I believe so that capacity reading is technically valid. On rare occasion, I've had to run fsck multiple times. you may wish to try this also, w/ no reboot in between. -- Adam Vande More From mdc at prgmr.com Mon Sep 7 03:09:57 2009 From: mdc at prgmr.com (Michael David Crawford) Date: Mon Sep 7 03:10:05 2009 Subject: Is there such thing as a 'soft checksum' tool? In-Reply-To: <20090906012107.E2731B7DD@kev.msw.wpafb.af.mil> References: <20090906012107.E2731B7DD@kev.msw.wpafb.af.mil> Message-ID: <4AA47981.1090103@prgmr.com> > M> I'm looking for a pseudo-checksum tool for use with cataloging images. I've seen such tools advertised, but they were proprietary products and only worked on windows. One way you could approach it might be to use a blur filter to blur each of your images, and then to compare the blurred images. Small differences in individual pixels would be blurred away. Mike -- Michael David Crawford mdc@prgmr.com prgmr.com - We Don't Assume You Are Stupid. Xen-Powered Virtual Private Servers: http://prgmr.com/xen From jaymax36 at gmail.com Mon Sep 7 06:10:56 2009 From: jaymax36 at gmail.com (jaymax) Date: Mon Sep 7 06:11:02 2009 Subject: Inconsistency in root partition size In-Reply-To: <6201873e0909062008y4624d3d4y5eca6e21c82f4624@mail.gmail.com> References: <25314145.post@talk.nabble.com> <200909060958.11114.mel.flynn+fbsd.questions@mailing.thruhere.net> <25316313.post@talk.nabble.com> <200909061238.32832.mel.flynn+fbsd.questions@mailing.thruhere.net> <25324178.post@talk.nabble.com> <6201873e0909062008y4624d3d4y5eca6e21c82f4624@mail.gmail.com> Message-ID: <25325443.post@talk.nabble.com> Galactic_Dominator wrote: > > Sun, Sep 6, 2009 at 9:24 PM, jaymax wrote: > > >> >> Mel Flynn-2 wrote: >> > > > -- >> >> ufs by default keeps a certain portion in reserve for use by root. 8% is > the standard amount I believe so that capacity reading is technically > valid. On rare occasion, I've had to run fsck multiple times. you may > wish > to try this also, w/ no reboot in between. > > > I ran fsck -vy 10 times, status unchanged > > Is there somewhere I can find a listing of files and directories that are > supposed to be at the / level? if there is perchance some bizarre file, > that du is not accounting for. > > Thanks! > > -- > Adam Vande More > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > -- View this message in context: http://www.nabble.com/Inconsistency-in-root-partition-size-tp25314145p25325443.html Sent from the freebsd-questions mailing list archive at Nabble.com. From jaymax36 at gmail.com Mon Sep 7 06:12:07 2009 From: jaymax36 at gmail.com (jaymax) Date: Mon Sep 7 06:12:14 2009 Subject: Inconsistency in root partition size Message-ID: <25325443.post@talk.nabble.com> Galactic_Dominator wrote: > > Sun, Sep 6, 2009 at 9:24 PM, jaymax wrote: > > >> >> Mel Flynn-2 wrote: >> > > > -- >> >> ufs by default keeps a certain portion in reserve for use by root. 8% is > the standard amount I believe so that capacity reading is technically > valid. On rare occasion, I've had to run fsck multiple times. you may > wish > to try this also, w/ no reboot in between. > I ran fsck -vy 10 times, status unchanged Is there somewhere I can find a listing of files and directories that are supposed to be at the / level? if there is perchance some bizarre file, that du is not accounting for. Thanks! -- Adam Vande More _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- View this message in context: http://www.nabble.com/Inconsistency-in-root-partition-size-tp25314145p25325443.html Sent from the freebsd-questions mailing list archive at Nabble.com. From freebsd-questions at k-moeller.dk Mon Sep 7 06:55:45 2009 From: freebsd-questions at k-moeller.dk (=?ISO-8859-1?Q?Kalle_M=F8ller?=) Date: Mon Sep 7 06:55:53 2009 Subject: is there a way of usinf greo to find 3 or 4 blank lines? In-Reply-To: <20090906003651.GA7388@thought.org> References: <20090906003651.GA7388@thought.org> Message-ID: <8250ac3f0909062355g69a1cf5cj847e84aaee79b0c2@mail.gmail.com> I know its not in commandline, but in vim (maybe even vi) you could just /\n\n\n This would find new lines... And you could jump between them with n.. and :set ruler so you can find linenumber On Sun, Sep 6, 2009 at 2:36 AM, Gary Kline wrote: > > in my manuscript, i have many places where i'ved used several > newlines to indicate a > jump in time, or topic, or mood, or <>. i have lost these > vertical spacing > in all but my original draft. can i use grep somehow to find these > extra newlines? > > if not grep, then sed, ed, or what?! > > tia, > > gary > > > > -- > Gary Kline kline@thought.org http://www.thought.org Public Service > Unix > http://jottings.thought.org http://transfinite.thought.org > The 5.67a release of Jottings: http://jottings.thought.org/index.php > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > -- Med Venlig Hilsen Kalle R. M?ller From cdr.nil at gmail.com Mon Sep 7 07:07:03 2009 From: cdr.nil at gmail.com (Mark Willson) Date: Mon Sep 7 07:07:10 2009 Subject: is there a way of usinf greo to find 3 or 4 blank lines? In-Reply-To: <20090907010602.GA11657@thought.org> References: <20090906003651.GA7388@thought.org> <20090906232300.GA11209@thought.org> <20090907010602.GA11657@thought.org> Message-ID: Gary Kline wrote: >> Yes, this works just fine. I findthat there are about 130 places that I need to >> track... --yeah, i did over-do it in the time-breaks in my story. >> >> Is there a way of printing the string/line in the `manuscript' file along with the line >> number? I'm well into a copyedit of the manuscript and would rather not start over! >> >> thanks for this. >> > :wq > > Sorry:: sounds a bit moronic:: not print the blank line/newline! but print the > NR-1-th line. Gary, The following version should do what you want: BEGIN { ncnt = 0 prev = "BOF" } /^ *$/ { ncnt++; if (ncnt > 3) { print "Emphasis at " NR ": " prev; prev = "-multiple-" ncnt = 0; } next; } {ncnt = 0; prev = $0} -mark From freebsd at edvax.de Mon Sep 7 07:14:45 2009 From: freebsd at edvax.de (Polytropon) Date: Mon Sep 7 07:14:51 2009 Subject: Inconsistency in root partition size In-Reply-To: <25325443.post@talk.nabble.com> References: <25325443.post@talk.nabble.com> Message-ID: <20090907091442.f011d137.freebsd@edvax.de> On Sun, 6 Sep 2009 23:12:07 -0700 (PDT), jaymax wrote: > Is there somewhere I can find a listing of files and directories that are > supposed to be at the / level? if there is perchance some bizarre file, that > du is not accounting for. You can of course read "man hier" to obtain information about the file system hierarchy. In settings where partitions are used to separate functional parts of the hierarchy, there's often not much stuff that goes into /, because / is primarily reserved for the basic system and the mountpoints; things like /tmp, /var, /usr and /home go to different partitions. Check the content of /boot. Maybe you have more than one kernel image and module files in there. You can as well use # du -sch / with only / mounted to get a first impression which subtrees do occupy how much disk space. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From parv at pair.com Mon Sep 7 08:28:46 2009 From: parv at pair.com (parv@pair.com) Date: Mon Sep 7 08:28:53 2009 Subject: Is there such thing as a 'soft checksum' tool? In-Reply-To: <44skf0c6zq.fsf@lowell-desk.lan> References: <64c038660909050933h25a91edcw56688993f5557ad2@mail.gmail.com> <44skf0c6zq.fsf@lowell-desk.lan> Message-ID: <20090907083112.GA2787@holstein.holy.cow> in message <44skf0c6zq.fsf@lowell-desk.lan>, wrote Lowell Gilbert thusly... > > Modulok writes: (I am replyin to Lowell's reply for I do not have OP.) > > I'm not even sure such a tool exists, but it's worth asking: > > > > I'm looking for a pseudo-checksum tool for use with catalogging > > images. For example, a strict checksum algorithm, like the sha > > family, will produce a dramatically different checksum for two > > files which differ by only a single bit. I'm looking for > > something where two images images, which are similar, get a > > proportionally similar checksum. When I speak of similarities > > I'm referring to their image patterns. i.e two images of > > differing sizes, which are otherwise identical, would produce > > very similar checksums. So the closer the checksums are, the > > more similar two given images are. > > > > Does anyone know of anything like this? See if this ... http://www.stonehenge.com/merlyn/LinuxMag/col50.html ... fits. - parv -- From daniel at toomuchdata.se Mon Sep 7 08:40:09 2009 From: daniel at toomuchdata.se (Daniel Eriksson) Date: Mon Sep 7 08:40:17 2009 Subject: ZFS and DMA read error In-Reply-To: <4A9F8F96.3090806@mapper.nl> References: <4A9B731E.9050400@mapper.nl> <4A9CBDBB.3060403@mapper.nl> <4F9C9299A10AE74E89EA580D14AA10A635E9C3@royal64.emp.zapto.org> <4A9F8F96.3090806@mapper.nl> Message-ID: <4F9C9299A10AE74E89EA580D14AA10A635E9C8@royal64.emp.zapto.org> Mark Stapper wrote: > Yeah, i did the long SMART selftest three times now, each of which it > failed on the same LBA address. I assume 'smartctl -a /dev/adX' reports that the read test failed at LBA XXX something? > Why would I want to clear my driver before I run these tests? In this case it's not really clearing the drive you are aiming for, it is to write to every sector. If you have a failed sector (which you do), writing to it will force the drive firmware to remap the sector. As far as I know, most drives will not remap an unreadable sector until it is written to. /Daniel Eriksson From tmende at optusnet.com.au Mon Sep 7 08:44:56 2009 From: tmende at optusnet.com.au (Tom Mende) Date: Mon Sep 7 08:45:03 2009 Subject: Opera 10.00 (native) & flash Message-ID: <20090907184454.fa9c4d99.tmende@optusnet.com.au> Running on 7.2-RELEASE, Opera 10.00 build 4585 (native) and would like to view flash enabled websites. Anyone with a howto? Have googled extensively and followed a variety of methods all unsuccessful to date. Like to here from someone who has it running? Cheers, -- Tom Mende From stark at mapper.nl Mon Sep 7 10:41:08 2009 From: stark at mapper.nl (Mark Stapper) Date: Mon Sep 7 10:41:14 2009 Subject: ZFS and DMA read error In-Reply-To: <4F9C9299A10AE74E89EA580D14AA10A635E9C8@royal64.emp.zapto.org> References: <4A9B731E.9050400@mapper.nl> <4A9CBDBB.3060403@mapper.nl> <4F9C9299A10AE74E89EA580D14AA10A635E9C3@royal64.emp.zapto.org> <4A9F8F96.3090806@mapper.nl> <4F9C9299A10AE74E89EA580D14AA10A635E9C8@royal64.emp.zapto.org> Message-ID: <4AA4D4C9.3050707@mapper.nl> Daniel Eriksson wrote: > Mark Stapper wrote: > > >> Yeah, i did the long SMART selftest three times now, each of which it >> failed on the same LBA address. >> > > I assume 'smartctl -a /dev/adX' reports that the read test failed at LBA > XXX something? > Indeed it does. Always with the same LBA code/sector/address or whichever. > >> Why would I want to clear my driver before I run these tests? >> > > In this case it's not really clearing the drive you are aiming for, it > is to write to every sector. If you have a failed sector (which you do), > writing to it will force the drive firmware to remap the sector. As far > as I know, most drives will not remap an unreadable sector until it is > written to. > So I see. Could this be why I haven't had any read errors anymore? (After the zpool scrub that is) > /Daniel Eriksson > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090907/7bd76cd0/signature.pgp From wtf.jlaine at gmail.com Mon Sep 7 10:45:27 2009 From: wtf.jlaine at gmail.com (Jeff Laine) Date: Mon Sep 7 10:45:34 2009 Subject: Opera 10.00 (native) & flash In-Reply-To: <20090907184454.fa9c4d99.tmende@optusnet.com.au> References: <20090907184454.fa9c4d99.tmende@optusnet.com.au> Message-ID: <20090907104518.GA38234@free.bsd.loc> On Mon,07-09-2009 [18:44:54], Tom Mende wrote: > Running on 7.2-RELEASE, Opera 10.00 build 4585 (native) and would like to view flash enabled websites. Anyone with a howto? Have googled extensively and followed a variety of methods all unsuccessful to date. Like to here from someone who has it running? > > Cheers, > -- > Tom Mende > _______________________________________________ Hi, I'm using graphics/gnash. It works good enough to watch youtube clips at least. Ok for both ffox and opera. -- Best regards, Jeff | "Nobody wants to say how this works. | | Maybe nobody knows ..." | | Xorg.conf(5) | From daniel at toomuchdata.se Mon Sep 7 11:02:37 2009 From: daniel at toomuchdata.se (Daniel Eriksson) Date: Mon Sep 7 11:02:44 2009 Subject: ZFS and DMA read error In-Reply-To: <4AA4D4C9.3050707@mapper.nl> References: <4A9B731E.9050400@mapper.nl> <4A9CBDBB.3060403@mapper.nl> <4F9C9299A10AE74E89EA580D14AA10A635E9C3@royal64.emp.zapto.org> <4A9F8F96.3090806@mapper.nl> <4F9C9299A10AE74E89EA580D14AA10A635E9C8@royal64.emp.zapto.org> <4AA4D4C9.3050707@mapper.nl> Message-ID: <4F9C9299A10AE74E89EA580D14AA10A635E9C9@royal64.emp.zapto.org> Mark Stapper wrote: > So I see. Could this be why I haven't had any read errors anymore? > (After the zpool scrub that is) Possibly, but in that case the SMART selftest should pass also. Have you tried a selftest after you did the scrub? /Daniel Eriksson From gesbbb at yahoo.com Mon Sep 7 11:14:31 2009 From: gesbbb at yahoo.com (Jerry) Date: Mon Sep 7 11:14:37 2009 Subject: Opera 10.00 (native) & flash In-Reply-To: <20090907104518.GA38234@free.bsd.loc> References: <20090907184454.fa9c4d99.tmende@optusnet.com.au> <20090907104518.GA38234@free.bsd.loc> Message-ID: <20090907071429.59cab032@scorpio.seibercom.net> On Mon, 7 Sep 2009 14:45:18 +0400 Jeff Laine wrote: > On Mon,07-09-2009 [18:44:54], Tom Mende wrote: > > Running on 7.2-RELEASE, Opera 10.00 build 4585 (native) and would > > like to view flash enabled websites. Anyone with a howto? Have > > googled extensively and followed a variety of methods all > > unsuccessful to date. Like to here from someone who has it running? > > I'm using graphics/gnash. It works good enough to watch youtube clips > at least. Ok for both ffox and opera. I don't think that readily addresses the OP's question. I personally have never gotten 'flash', or most other add-ons to work Opera. It is one of the main reasons that I discourage others from using it. It suffers even worse on a Windows machine. RoboForm does not work with the Opera browser. Opera has a closed architecture that does not allow third party browser extensions. I would strongly advocate the use of another browser. -- Jerry gesbbb@yahoo.com Necessity has no law. St. Augustine From modulok at gmail.com Mon Sep 7 11:16:04 2009 From: modulok at gmail.com (Modulok) Date: Mon Sep 7 11:16:11 2009 Subject: Is there such thing as a 'soft checksum' tool? In-Reply-To: <20090907083112.GA2787@holstein.holy.cow> References: <64c038660909050933h25a91edcw56688993f5557ad2@mail.gmail.com> <44skf0c6zq.fsf@lowell-desk.lan> <20090907083112.GA2787@holstein.holy.cow> Message-ID: <64c038660909070416y285e0fddv42a43a7c127d4a74@mail.gmail.com> >> Modulok writes: >> > I'm not even sure such a tool exists, but it's worth asking: >> > >> > I'm looking for a pseudo-checksum tool for use with catalogging >> > images. For example, a strict checksum algorithm, like the sha >> > family, will produce a dramatically different checksum for two >> > files which differ by only a single bit. I'm looking for >> > something where two images images, which are similar, get a >> > proportionally similar checksum. When I speak of similarities >> > I'm referring to their image patterns. i.e two images of >> > differing sizes, which are otherwise identical, would produce >> > very similar checksums. So the closer the checksums are, the >> > more similar two given images are. >> > >> > Does anyone know of anything like this? > > See if this ... > > http://www.stonehenge.com/merlyn/LinuxMag/col50.html > > > ... fits. > > > - parv *laughs* It makes me feel pretty good after reading how Mr.Schwartz went about it. Before I got any replies I started to think about how I'd do it and began to sketch out an algorithm on the kitchen floor. (Largest black-board in my house.) The general approach was pretty much the same; Recursive bucketing of pixels and generating averaged values down to a user-defined finite limit. Thanks to all who have replied thus far! -Modulok- From gesbbb at yahoo.com Mon Sep 7 11:29:34 2009 From: gesbbb at yahoo.com (Jerry) Date: Mon Sep 7 11:29:41 2009 Subject: Replacing linux_base-fc-4_14 with linux_base-f10-10_1 Message-ID: <20090907072932.6cc2e4d2@scorpio.seibercom.net> I presently have linux_base-fc-4_14 installed on a FreeBSD-7.2 machine. Would there be any benefit installing linux_base-f10-10_1 instead? I believe I have to remove the linux_base-fc-4_14 installation first. Are there any pitfalls, etc? I assume I would have to rebuild any ports that depended on the older version after installing the newer one. What version is the default for FreeBSD-8.0 that will soon be released? -- Jerry gesbbb@yahoo.com In time, every post tends to be occupied by an employee who is incompetent to carry out its duties. Dr. L. J. Peter From bsam at ipt.ru Mon Sep 7 11:59:29 2009 From: bsam at ipt.ru (Boris Samorodov) Date: Mon Sep 7 11:59:37 2009 Subject: Replacing linux_base-fc-4_14 with linux_base-f10-10_1 In-Reply-To: <20090907072932.6cc2e4d2@scorpio.seibercom.net> (Jerry's message of "Mon, 7 Sep 2009 07:29:32 -0400") References: <20090907072932.6cc2e4d2@scorpio.seibercom.net> Message-ID: <67796224@bb.ipt.ru> On Mon, 7 Sep 2009 07:29:32 -0400 Jerry wrote: > I presently have linux_base-fc-4_14 installed on a FreeBSD-7.2 machine. > Would there be any benefit installing linux_base-f10-10_1 instead? I If it works for you, don't touch it. ;-) As for benefits: . use supported linux distributions (with security updates, etc.); . hardware acceleration _may_ work (strange but at some cases it works but not at others: googleearth works for me but has been reported by someone not to work). > believe I have to remove the linux_base-fc-4_14 installation first. Are > there any pitfalls, etc? I assume I would have to rebuild any ports > that depended on the older version after installing the newer one. There is some info at /usr/ports/UPDATING. > What version is the default for FreeBSD-8.0 that will soon be released? FreeBSD-8 uses linux -f10- infrastructure ports. -- WBR, Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve From roys1012 at gmail.com Mon Sep 7 12:16:43 2009 From: roys1012 at gmail.com (Roy Stuivenberg) Date: Mon Sep 7 12:16:50 2009 Subject: language dutch spell check evolution Message-ID: <1252325713.1219.8.camel@rs-unix.roycs.nl> Hello, Does anyone have a clue how I can change language to dutch in Evolution for spelling check? Default is now English, and that's my only option so it seems --> (7.2-stable & gnome2, English) Regards, Roy Stuivenberg. From mel.flynn+fbsd.questions at mailing.thruhere.net Mon Sep 7 12:41:55 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Mon Sep 7 12:42:02 2009 Subject: Inconsistency in root partition size In-Reply-To: <25324178.post@talk.nabble.com> References: <25314145.post@talk.nabble.com> <200909061238.32832.mel.flynn+fbsd.questions@mailing.thruhere.net> <25324178.post@talk.nabble.com> Message-ID: <200909071441.49763.mel.flynn+fbsd.questions@mailing.thruhere.net> On Monday 07 September 2009 04:24:07 jaymax wrote: > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad0s1a 507630 503694 -36674 108% / > > Don't know if the above can show anything It is of course entirely possible at this point, that the disk *is* full. Could you show: du -sxh / from single user mode, without anything mounted? That would ensure that the offending file is not hiding behind a mountpoint. Like: /usr/hiding_here. -- Mel From mel.flynn+fbsd.questions at mailing.thruhere.net Mon Sep 7 12:51:28 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Mon Sep 7 12:51:35 2009 Subject: Is there such thing as a 'soft checksum' tool? In-Reply-To: <4AA47981.1090103@prgmr.com> References: <20090906012107.E2731B7DD@kev.msw.wpafb.af.mil> <4AA47981.1090103@prgmr.com> Message-ID: <200909071451.24123.mel.flynn+fbsd.questions@mailing.thruhere.net> On Monday 07 September 2009 05:09:53 Michael David Crawford wrote: > > M> I'm looking for a pseudo-checksum tool for use with cataloging images. > > I've seen such tools advertised, but they were proprietary products and > only worked on windows. > > One way you could approach it might be to use a blur filter to blur each > of your images, and then to compare the blurred images. Small > differences in individual pixels would be blurred away. Did you guys miss Charlie Kester's message? And the above does not work, because of compression anyway. Just because you think of an image as a bitmap, does not mean it's stored as such. -- Mel From mel.flynn+fbsd.questions at mailing.thruhere.net Mon Sep 7 13:03:16 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Mon Sep 7 13:03:22 2009 Subject: wireless: host access point w/ WAP help! In-Reply-To: <560f92640909061727o5e8ce3b2k9248e28fe878f58a@mail.gmail.com> References: <560f92640909061727o5e8ce3b2k9248e28fe878f58a@mail.gmail.com> Message-ID: <200909071503.10989.mel.flynn+fbsd.questions@mailing.thruhere.net> Hi, 0) Always mention OS version, bonus points for uname -a. On Monday 07 September 2009 02:27:04 Nerius Landys wrote: > I am following the Handbook instructions for setting up a FreeBSD > wireless host access point: > http://www.freebsd.org/doc/en/books/handbook/network-wireless.html > > root@speedy# dmesg | grep ath > ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) > ath0: mem 0xff8f0000-0xff8fffff irq 21 at device 0.0 on pci1 > ath0: [ITHREAD] > ath0: WARNING: using obsoleted if_watchdog interface > ath0: Ethernet address: 00:02:6f:61:e6:7d > ath0: mac 7.9 phy 4.5 radio 5.6 > ath0: ath_chan_set: unable to reset channel 6 (2437 Mhz, flags 0x490 > hal flags 0x150), hal status 12 I read you got it working so far, but if you want this resolved or diagnosed, the uname -a is mandatory and an ident /boot/kernel/if_ath.ko as well. -- Mel From mel.flynn+fbsd.questions at mailing.thruhere.net Mon Sep 7 13:15:09 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Mon Sep 7 13:15:15 2009 Subject: Opera 10.00 (native) & flash In-Reply-To: <20090907071429.59cab032@scorpio.seibercom.net> References: <20090907184454.fa9c4d99.tmende@optusnet.com.au> <20090907104518.GA38234@free.bsd.loc> <20090907071429.59cab032@scorpio.seibercom.net> Message-ID: <200909071515.03658.mel.flynn+fbsd.questions@mailing.thruhere.net> On Monday 07 September 2009 13:14:29 Jerry wrote: > Opera has a closed architecture that does not allow > third party browser extensions. For one, there are widgets. For two, it still supports the nsplugin interface. For three, some people argue that allowing extensions access to local disk, network threads and pretty much everything in the browser, including the ability to fight wars with competing products[1], is less preferable. [1] -- Mel From stark at mapper.nl Mon Sep 7 13:48:15 2009 From: stark at mapper.nl (Mark Stapper) Date: Mon Sep 7 13:48:22 2009 Subject: ZFS and DMA read error In-Reply-To: <4F9C9299A10AE74E89EA580D14AA10A635E9C9@royal64.emp.zapto.org> References: <4A9B731E.9050400@mapper.nl> <4A9CBDBB.3060403@mapper.nl> <4F9C9299A10AE74E89EA580D14AA10A635E9C3@royal64.emp.zapto.org> <4A9F8F96.3090806@mapper.nl> <4F9C9299A10AE74E89EA580D14AA10A635E9C8@royal64.emp.zapto.org> <4AA4D4C9.3050707@mapper.nl> <4F9C9299A10AE74E89EA580D14AA10A635E9C9@royal64.emp.zapto.org> Message-ID: <4AA50F08.3060200@mapper.nl> Daniel Eriksson wrote: > Mark Stapper wrote: > > >> So I see. Could this be why I haven't had any read errors anymore? >> (After the zpool scrub that is) >> > > Possibly, but in that case the SMART selftest should pass also. Have you > tried a selftest after you did the scrub? > > /Daniel Eriksson > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > multiple times -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090907/b9ad2893/signature.pgp From stark at mapper.nl Mon Sep 7 13:53:39 2009 From: stark at mapper.nl (Mark Stapper) Date: Mon Sep 7 13:53:47 2009 Subject: language dutch spell check evolution In-Reply-To: <1252325713.1219.8.camel@rs-unix.roycs.nl> References: <1252325713.1219.8.camel@rs-unix.roycs.nl> Message-ID: <4AA5104C.6090904@mapper.nl> Roy Stuivenberg wrote: > Hello, > > Does anyone have a clue how I can change language to dutch in Evolution > for spelling check? Default is now English, and that's my only option > so it seems --> (7.2-stable & gnome2, English) > > Regards, > > Roy Stuivenberg. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > You should install the dutch aspell dictionary: textproc/nl-aspell Groeten, Mark -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090907/924e9c3a/signature.pgp From gesbbb at yahoo.com Mon Sep 7 13:54:30 2009 From: gesbbb at yahoo.com (Jerry) Date: Mon Sep 7 13:54:36 2009 Subject: Opera 10.00 (native) & flash In-Reply-To: <200909071515.03658.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <20090907184454.fa9c4d99.tmende@optusnet.com.au> <20090907104518.GA38234@free.bsd.loc> <20090907071429.59cab032@scorpio.seibercom.net> <200909071515.03658.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: <20090907095427.3055470f@scorpio.seibercom.net> On Mon, 7 Sep 2009 15:15:02 +0200 Mel Flynn wrote: > For one, there are widgets. For two, it still supports > the nsplugin interface. For three, some people argue > that allowing extensions access to local disk, network > threads and pretty much everything in the browser, > including the ability to fight wars with competing > products[1], is less preferable. Then again, there are those who are not as paranoid as others. In any case, Opera (and I have not tried the 10 version) is IMHO, not as serviceable as many competing alternative browsers. However, if it meets your needs, then so be it. Please, do not CC me as I am subscribed to this list. I don't need two copies of the same post. -- Jerry gesbbb@yahoo.com If you're constantly being mistreated, you're cooperating with the treatment. From mexas at bristol.ac.uk Mon Sep 7 14:15:57 2009 From: mexas at bristol.ac.uk (Anton Shterenlikht) Date: Mon Sep 7 14:16:05 2009 Subject: xorg: (EE) XKB: No components provided for device Virtual core keyboard Message-ID: <20090907141534.GA76273@mech-cluster241.men.bris.ac.uk> This has probably been discussed many times already, but I just cannot find any relevant advice on the net. On 8.0-beta2 i386 with intel 845M chip and xf86-video-intel-2.7.1 when I try to login into xdm login prompt, the login and passwd are accepted, I get a black screen for a second and then I get back again to the xdm login prompt. In /var/log/xdm.log I get (EE) XKB: No components provided for device Virtual core keyboard I've updated to full x11/xorg port. All my ports are up to date. My xorg.conf is below. Please advise many thanks ################################################# > cat /etc/X11/xorg.conf Section "ServerLayout" Identifier "X.org Configured" Screen 0 "Screen0" 0 0 Option "DontZap" "false" EndSection #Section "Module" # Load "freetype" #EndSection Section "Files" ModulePath "/usr/local/lib/xorg/modules" FontPath "/usr/local/lib/X11/fonts/misc/" FontPath "/usr/local/lib/X11/fonts/TTF/" FontPath "/usr/local/lib/X11/fonts/OTF" FontPath "/usr/local/lib/X11/fonts/Type1/" FontPath "/usr/local/lib/X11/fonts/100dpi/" FontPath "/usr/local/lib/X11/fonts/75dpi/" FontPath "/usr/local/lib/X11/fonts/bitstream-vera/" FontPath "/usr/local/lib/X11/fonts/cyrillic/" EndSection Section "Monitor" Identifier "Monitor0" EndSection Section "Device" ### Available Driver options are:- ### Values: : integer, : float, : "True"/"False", ### : "String", : " Hz/kHz/MHz" ### [arg]: arg optional #Option "NoAccel" # [] #Option "SWcursor" # [] #Option "ColorKey" # #Option "CacheLines" # #Option "Dac6Bit" # [] #Option "DRI" # [] #Option "NoDDC" # [] #Option "ShowCache" # [] #Option "XvMCSurfaces" # #Option "PageFlip" # [] #Option "AccelMethod" "UXA" Identifier "Card0" Driver "intel" VendorName "Intel Corporation" BoardName "82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device" BusID "PCI:0:2:0" EndSection Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" SubSection "Display" Viewport 0 0 Depth 32 EndSubSection EndSection -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 331 5924 From mail25 at bzerk.org Mon Sep 7 07:38:09 2009 From: mail25 at bzerk.org (Ruben de Groot) Date: Mon Sep 7 14:55:00 2009 Subject: Samba PDC with LDAP backend In-Reply-To: <200909040743.n847h0n4030375@banyan.cs.ait.ac.th> References: <20090720105553.a665479b.freebsd@edvax.de> <200907201017.n6KAHBmE003738@banyan.cs.ait.ac.th> <20090720105128.GA88495@ei.bzerk.org> <200909040743.n847h0n4030375@banyan.cs.ait.ac.th> Message-ID: <20090907073751.GA21033@ei.bzerk.org> On Fri, Sep 04, 2009 at 02:43:00PM +0700, Olivier Nicole typed: > Hi Ruel, > > > But, I have one question left.. > > How do you join the Windows xp client on the domain? Is there another tweak > > must be done? > > The same way a PC would join any samba domain. > > The PC joining Samba does not know that Samba is using LDAP or > anything else for authentication, so the PC talks to Samba the way it > always does/did. > > (I managed, with some effort, to replace one Samba server > authenticating to Unix /etc/passwd, by a Samba server authenticating > with LDAP, without the XP clients noticing, that is nothing at all to > be done on XP). Yes, I have a script that does precisely this (read master.passwd, smbpasswd and group and create an LDIF to import into LDAP. This is now being used for the migration of 1200 samba servers from backend=smbpasswd to backend=ldapsam. Most important things is preserving the SID's (net getlocalsid) and group mappings (net groupmap list). Windows clients will not notice any difference. Ruben From kes-kes at yandex.ru Mon Sep 7 16:12:06 2009 From: kes-kes at yandex.ru (=?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?=) Date: Mon Sep 7 16:12:14 2009 Subject: How to correct *Failed sysctlbyname("net.inet.ip.fw.tables_max")* In-Reply-To: <20090906232257.N89278@sola.nimnet.asn.au> References: <20090905120021.9BA271065816@hub.freebsd.org> <20090906232257.N89278@sola.nimnet.asn.au> Message-ID: <917946712.20090907191159@yandex.ru> ????????????, Ian. ?? ?????? 6 ???????? 2009 ?., 16:37:56: IS> In freebsd-questions Digest, Vol 274, Issue 12, Message 18 IS> On Sat, 5 Sep 2009 12:57:46 +0300 ??????? ??????? wrote: >> vpn# ipfw table 12 list >> ipfw: Failed sysctlbyname("net.inet.ip.fw.tables_max") >> vpn# sysctl -a | grep net.inet.ip.fw >> net.inet.ip.fw.dyn_keepalive: 1 >> net.inet.ip.fw.dyn_short_lifetime: 5 >> net.inet.ip.fw.dyn_udp_lifetime: 10 >> net.inet.ip.fw.dyn_rst_lifetime: 1 >> net.inet.ip.fw.dyn_fin_lifetime: 1 >> net.inet.ip.fw.dyn_syn_lifetime: 20 >> net.inet.ip.fw.dyn_ack_lifetime: 300 >> net.inet.ip.fw.static_count: 46 >> net.inet.ip.fw.dyn_max: 4096 >> net.inet.ip.fw.dyn_count: 0 >> net.inet.ip.fw.curr_dyn_buckets: 256 >> net.inet.ip.fw.dyn_buckets: 256 >> net.inet.ip.fw.default_rule: 65535 >> net.inet.ip.fw.verbose_limit: 0 >> net.inet.ip.fw.verbose: 1 >> net.inet.ip.fw.debug: 1 >> net.inet.ip.fw.one_pass: 0 >> net.inet.ip.fw.autoinc_step: 100 >> net.inet.ip.fw.enable: 1 >> vpn# uname -a >> FreeBSD vpn.in 7.1-RELEASE-p7 FreeBSD 7.1-RELEASE-p7 #1: Sat Sep 5 00:26:18 EEST 2009 kes@vpn.in:/usr/obj/usr/src/sys/KES_KERN_v71 i386 >> >> I just upgrade from 7.0. >> Sources are RELENG_7_1 IS> Kes, perhaps your kernel and userland sources may be out of synch? IS> I haven't hunted through CVS, but located a message in ipfw@ from IS> Ganbold with a patch proposing to add that very sysctl to ip_fw2.c IS> dated 1st September 2008 .. was that before or after 7.1-RELEASE? IS> Happy hunting, Ian I have just updated: kes# cat cvsup-src.conf *default host=cvsup7.FreeBSD.org *default base=/var/db *default prefix=/usr *default release=cvs tag=RELENG_7_1 *default delete use-rel-suffix *default compress src-all #cvsup -g -L 2 /usr/local/etc/cvsup/cvsup-src.conf Then make buildkernel KERNCONF=KES_KERN_v71 make installkernel KERNCONF=KES_KERN_v71 -- ? ?????????, ??????? mailto:kes-kes@yandex.ru From freminlins at gmail.com Mon Sep 7 18:50:49 2009 From: freminlins at gmail.com (Freminlins) Date: Mon Sep 7 18:51:00 2009 Subject: Opera 10.00 (native) & flash In-Reply-To: <20090907071429.59cab032@scorpio.seibercom.net> References: <20090907184454.fa9c4d99.tmende@optusnet.com.au> <20090907104518.GA38234@free.bsd.loc> <20090907071429.59cab032@scorpio.seibercom.net> Message-ID: 2009/9/7 Jerry > I don't think that readily addresses the OP's question. I personally > have never gotten 'flash', or most other add-ons to work Opera. It is > one of the main reasons that I discourage others from using it. It > suffers even worse on a Windows machine. RoboForm does not work with > the Opera browser. Opera has a closed architecture that does not allow > third party browser extensions > Sorry, but that is just bollocks. Opera and Flash work perfectly well on Windows and Solaris (yep, there's a native plugin). And Flash is a third party plugin, i.e. it is not provided by Opera. If Adobe doesn't provide a native Flash plugin for FreeBSD that is not Opera's fault. > I would strongly advocate the use of another browser. And still there is no native FreeBSD plugin. If you can't get it to work you should ask for some help. Jerry > gesbbb@yahoo.com > MF. From jaymax36 at gmail.com Mon Sep 7 18:54:52 2009 From: jaymax36 at gmail.com (jaymax) Date: Mon Sep 7 18:55:00 2009 Subject: Inconsistency in root partition size In-Reply-To: <20090907091442.f011d137.freebsd@edvax.de> References: <25314145.post@talk.nabble.com> <200909060958.11114.mel.flynn+fbsd.questions@mailing.thruhere.net> <25316313.post@talk.nabble.com> <200909061238.32832.mel.flynn+fbsd.questions@mailing.thruhere.net> <25324178.post@talk.nabble.com> <6201873e0909062008y4624d3d4y5eca6e21c82f4624@mail.gmail.com> <25325443.post@talk.nabble.com> <20090907091442.f011d137.freebsd@edvax.de> Message-ID: <25334820.post@talk.nabble.com> Polytropon wrote: > > > You can of course read "man hier" to obtain information about > the file system hierarchy. In settings where partitions are > used to separate functional parts of the hierarchy, there's > often not much stuff that goes into /, because / is primarily > reserved for the basic system and the mountpoints; things > like /tmp, /var, /usr and /home go to different partitions. > > Check the content of /boot. Maybe you have more than one > kernel image and module files in there. You can as well use > > # du -sch / > > with only / mounted to get a first impression which subtrees > do occupy how much disk space. > > mach_1# df -k > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad0s1a 507630 407384 59636 87% / > devfs 1 1 0 100% /dev > /dev/ad0s1e 505646 14212 450984 3% /tmp > /dev/ad0s1f 36205990 25759138 7550374 77% /usr > /dev/ad1s1e 74696394 9836586 58884098 14% /disk02 > /dev/ad4s1d 376405390 252115006 94177954 73% /disk03 > devfs 1 1 0 100% /usr/var/named/dev > mach_1# cd / > mach_1# du -xhc > 2.0K ./.snap > 2.0K ./disk02 > 2.0K ./disk03 > 2.0K ./tmp > 2.0K ./usr > 512B ./dev > 2.0K ./cdrom1 > 2.1M ./stand > 3.1M ./etc > 2.0K ./cdrom > 902K ./bin > 21M ./boot > 3.2M ./lib > 270K ./libexec > 2.0K ./mnt > 2.0K ./proc > 2.0K ./dist > 7.8M ./root > 3.3M ./sbin > 2.0K ./.mozilla > 2.0K ./net > 2.0K ./WARD2V1 > 2.0K ./ORIN > 2.0K ./WARA > 2.0K ./ORNUSR > 2.0K ./WARD3V1 > 2.0K ./ORND02 > 2.0K ./WARUSR > 1.2M ./package > 2.0K ./service > 4.0K ./lost+found > 43M . > 43M total > Do these look normal or average, compare total with df - k output of /dev/ad0s1a I don't quite know what next to do -- View this message in context: http://www.nabble.com/Inconsistency-in-root-partition-size-tp25314145p25334820.html Sent from the freebsd-questions mailing list archive at Nabble.com. From mel.flynn+fbsd.questions at mailing.thruhere.net Mon Sep 7 19:12:32 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Mon Sep 7 19:12:38 2009 Subject: Inconsistency in root partition size In-Reply-To: <25334820.post@talk.nabble.com> References: <25314145.post@talk.nabble.com> <20090907091442.f011d137.freebsd@edvax.de> <25334820.post@talk.nabble.com> Message-ID: <200909072112.14374.mel.flynn+fbsd.questions@mailing.thruhere.net> On Monday 07 September 2009 20:54:51 jaymax wrote: > > mach_1# df -k > > Filesystem 1K-blocks Used Avail Capacity Mounted on > > /dev/ad0s1a 507630 407384 59636 87% / > > devfs 1 1 0 100% /dev > > /dev/ad0s1e 505646 14212 450984 3% /tmp > > /dev/ad0s1f 36205990 25759138 7550374 77% /usr > > /dev/ad1s1e 74696394 9836586 58884098 14% /disk02 > > /dev/ad4s1d 376405390 252115006 94177954 73% /disk03 > > devfs 1 1 0 100% /usr/var/named/dev > > mach_1# cd / > > mach_1# du -xhc > > 43M total > > Do these look normal or average, compare total with df - k output of > /dev/ad0s1a > I don't quite know what next to do Did you do the du without anything mounted? Cause you have the df output with mounts. If you can't find the missing space, then I suggest making a backup of / with dump(8), booting from livefs and restoring the dump. The dump should not be in the 390M range, rather in the 40-50M range. -- Mel From david at vizion2000.net Mon Sep 7 19:49:46 2009 From: david at vizion2000.net (David Southwell) Date: Mon Sep 7 19:49:53 2009 Subject: "turn authentication on" -- a simple how to please!! Message-ID: <200909072049.42122.david@vizion2000.net> My mailserver uses postfix and has a number of virtual domains. I am getting the following difficulties on delivery of legitimate emails to remote addresses failing with a request to tun authentication on. I am comparatively new to managing mailservers. Could someone please tell me what I need to do. My searches on google seem to give me long explanations of what is meant to happen but I cannot find simple instructions on how to fulfill the requirements!! dns1# fgrep abc /var/log/maillog Sep 7 17:01:59 dns1 postfix/smtp[86489]: 179BE34D41D: to=, relay=mail.abc.org.uk[xxx.xxx.xxx.xxx]:25, delay=2.2, delays=2/0/0.15/0.03, dsn=5.0.0, status=bounced (host mail.abc.org.uk[xxx.xxx.xxx.xxx] said: 550 Please turn authentication on (in reply to RCPT TO command)) dns1# Thanks in advance david From frank.wissmann41 at web.de Mon Sep 7 19:58:28 2009 From: frank.wissmann41 at web.de (Frank Wissmann) Date: Mon Sep 7 19:58:35 2009 Subject: Problems with module cx88 Message-ID: <4AA56577.7050608@web.de> Hi, folks! Having installed a TV-card (WinTV HVR-1100) I now want to use it. there are currently two problems: 1. When I boot into KDE 3.5.10, my artsd is not starting giving the message: "Can't open /dev/dsp - operation not permitted" This is happening till I installed and loaded (via /boot/loader.conf) the modules under /usr/ports/multimedia/cx88. Are there any conflicts known which can be solved? 2. When I try to capture a video from my old tape-recorder with the command cx88 -d /dev/cx88video0 -f name_of_movie.m2t -x /home/frank/cx88.xml I get the following message: [cx88] Warning: the -f option is deprecated; please instead use -u with a file:// URL prefix [cx88] Unable to create cx88 video driver What does that mean? I thought I had installed the drivers with the port. Can anybody point me to any web resource? I still found http://corona.homeunix.net/cx88wiki but it doesn't seem to fit my needs. Greetings Frank From mel.flynn+fbsd.questions at mailing.thruhere.net Mon Sep 7 20:12:08 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Mon Sep 7 20:12:15 2009 Subject: "turn authentication on" -- a simple how to please!! In-Reply-To: <200909072049.42122.david@vizion2000.net> References: <200909072049.42122.david@vizion2000.net> Message-ID: <200909072212.04284.mel.flynn+fbsd.questions@mailing.thruhere.net> On Monday 07 September 2009 21:49:42 David Southwell wrote: > My mailserver uses postfix and has a number of virtual domains. I am > getting the following difficulties on delivery of legitimate emails to > remote addresses failing with a request to tun authentication on. Normally this shouldn't occur if you are relaying yourself. Remote mail servers should not have authentication on for outside mail. This would only be the case if the remote postmaster considers his mailserver private and does not want to receive mail from unknown people. Therefore, this should only happen if your relay via your ISP using the relay_host parameter in main.cf. > I am > comparatively new to managing mailservers. Could someone please tell me > what I need to do. My searches on google seem to give me long explanations > of what is meant to happen but I cannot find simple instructions on how to > fulfill the requirements!! > > dns1# fgrep abc /var/log/maillog > Sep 7 17:01:59 dns1 postfix/smtp[86489]: 179BE34D41D: > to=, > relay=mail.abc.org.uk[xxx.xxx.xxx.xxx]:25, delay=2.2, delays=2/0/0.15/0.03, > dsn=5.0.0, status=bounced (host mail.abc.org.uk[xxx.xxx.xxx.xxx] said: 550 > Please turn authentication on (in reply to RCPT TO command)) > dns1# Let us know what's not simple about this: http://www.postfix.org/SASL_README.html#client_sasl -- Mel From gesbbb at yahoo.com Mon Sep 7 20:39:22 2009 From: gesbbb at yahoo.com (Jerry) Date: Mon Sep 7 20:39:29 2009 Subject: "turn authentication on" -- a simple how to please!! In-Reply-To: <200909072049.42122.david@vizion2000.net> References: <200909072049.42122.david@vizion2000.net> Message-ID: <20090907163920.149f1b17@scorpio.seibercom.net> On Mon, 7 Sep 2009 20:49:42 +0100 David Southwell wrote: > My mailserver uses postfix and has a number of virtual domains. I am > getting the following difficulties on delivery of legitimate emails > to remote addresses failing with a request to tun authentication on. > I am comparatively new to managing mailservers. Could someone please > tell me what I need to do. My searches on google seem to give me long > explanations of what is meant to happen but I cannot find simple > instructions on how to fulfill the requirements!! > > dns1# fgrep abc /var/log/maillog > Sep 7 17:01:59 dns1 postfix/smtp[86489]: 179BE34D41D: > to=, > relay=mail.abc.org.uk[xxx.xxx.xxx.xxx]:25, delay=2.2, > delays=2/0/0.15/0.03, dsn=5.0.0, status=bounced (host > mail.abc.org.uk[xxx.xxx.xxx.xxx] said: 550 Please turn authentication > on (in reply to RCPT TO command)) dns1# You question is probably better suited for the Postfix forum: http://www.postfix.com/ In any case, you will need to post the output of: postconf -n Alternately, you can use: postfinger, available at: http://ftp.wl0.org/SOURCES/postfinger You could also try reading the information at: http://www.postfix.com/DEBUG_README.html -- Jerry gesbbb@yahoo.com As well look for a needle in a bottle of hay. Miguel de Cervantes From eitanadlerlist at gmail.com Mon Sep 7 21:14:38 2009 From: eitanadlerlist at gmail.com (Eitan Adler) Date: Mon Sep 7 21:14:44 2009 Subject: ACPI - works for wireless fails for mouse Message-ID: On my laptop when I boot with ACPI enabled my wireless card works but my mouse fails a few seconds after starting moused or X. If I boot without ACPI my mouse works but the wireless card fails. Is it possible to disable ACPI for the mouse and only the mouse (/dev/psm0, IRQ 12, glidepoint type)? OS == FreeBSD 8.0 BETA2 I'm currently stuck with a sub-par internet connection so if this has been covered by the handbook or google I appologize. From fsb at thefsb.org Mon Sep 7 21:47:16 2009 From: fsb at thefsb.org (Tom Worster) Date: Mon Sep 7 21:47:23 2009 Subject: "me" in ipfw rules - does it include aliases? Message-ID: the ipfw man page says: me matches any IP address configured on an interface in the system. which suggests that if i code my rules using "me" then when i add an alias ip address to an interface with ifconfig, these "me" rules will immediately work for the newly added address as they do for other addresses. is that correct? - tom From kline at thought.org Mon Sep 7 23:05:54 2009 From: kline at thought.org (Gary Kline) Date: Mon Sep 7 23:06:01 2009 Subject: is there a way of usinf greo to find 3 or 4 blank lines? In-Reply-To: References: <20090906003651.GA7388@thought.org> <20090906232300.GA11209@thought.org> <20090907010602.GA11657@thought.org> Message-ID: <20090907230548.GA15330@thought.org> On Mon, Sep 07, 2009 at 08:06:51AM +0100, Mark Willson wrote: > Gary Kline wrote: > >> Yes, this works just fine. I findthat there are about 130 places > >> that I need to > >> track... --yeah, i did over-do it in the time-breaks in my story. > >> > >> Is there a way of printing the string/line in the `manuscript' file > >> along with the line > >> number? I'm well into a copyedit of the manuscript and would rather > >> not start over! > >> > >> thanks for this. > >> > >:wq > > > > Sorry:: sounds a bit moronic:: not print the blank line/newline! > > but print the > > NR-1-th line. > > Gary, > > The following version should do what you want: > > BEGIN { > ncnt = 0 > prev = "BOF" > } > /^ *$/ { > ncnt++; > if (ncnt > 3) { > print "Emphasis at " NR ": " prev; > prev = "-multiple-" > ncnt = 0; > } > next; > } > {ncnt = 0; prev = $0} > > -mark It does! outstanding.... thanks again, gary > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php From jaymax36 at gmail.com Mon Sep 7 23:06:21 2009 From: jaymax36 at gmail.com (jaymax) Date: Mon Sep 7 23:06:28 2009 Subject: Inconsistency in root partition size In-Reply-To: <200909072112.14374.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <25314145.post@talk.nabble.com> <200909060958.11114.mel.flynn+fbsd.questions@mailing.thruhere.net> <25316313.post@talk.nabble.com> <200909061238.32832.mel.flynn+fbsd.questions@mailing.thruhere.net> <25324178.post@talk.nabble.com> <6201873e0909062008y4624d3d4y5eca6e21c82f4624@mail.gmail.com> <25325443.post@talk.nabble.com> <20090907091442.f011d137.freebsd@edvax.de> <25334820.post@talk.nabble.com> <200909072112.14374.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: <25337689.post@talk.nabble.com> Mel Flynn-2 wrote: > > On Monday 07 September 2009 20:54:51 jaymax wrote: > Thanks, will do a new dump, one question - how can one determine that the dumpfile produced is good? -- View this message in context: http://www.nabble.com/Inconsistency-in-root-partition-size-tp25314145p25337689.html Sent from the freebsd-questions mailing list archive at Nabble.com. From kline at thought.org Mon Sep 7 23:15:39 2009 From: kline at thought.org (Gary Kline) Date: Mon Sep 7 23:17:05 2009 Subject: is there a way of usinf greo to find 3 or 4 blank lines? In-Reply-To: <8250ac3f0909062355g69a1cf5cj847e84aaee79b0c2@mail.gmail.com> References: <20090906003651.GA7388@thought.org> <8250ac3f0909062355g69a1cf5cj847e84aaee79b0c2@mail.gmail.com> Message-ID: <20090907231533.GB15330@thought.org> On Mon, Sep 07, 2009 at 08:55:44AM +0200, Kalle M?ller wrote: > I know its not in commandline, but in vim (maybe even vi) you could just > /\n\n\n > > This would find new lines... And you could jump between them with n.. > > and :set ruler so you can find linenumber > DIdn't think of this, but it doesn't seem to work in vi or vim. i think i've got vim set to vi-mode. anyway, the awk script that mark willson posted works. next time i'll put in something like XXXXXBREAKXXXXX for my v-breaks. gary > On Sun, Sep 6, 2009 at 2:36 AM, Gary Kline wrote: > > > > > in my manuscript, i have many places where i'ved used several > > newlines to indicate a > > jump in time, or topic, or mood, or <>. i have lost these > > vertical spacing > > in all but my original draft. can i use grep somehow to find these > > extra newlines? > > > > if not grep, then sed, ed, or what?! > > > > tia, > > > > gary > > > > > > > > -- > > Gary Kline kline@thought.org http://www.thought.org Public Service > > Unix > > http://jottings.thought.org http://transfinite.thought.org > > The 5.67a release of Jottings: http://jottings.thought.org/index.php > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to " > > freebsd-questions-unsubscribe@freebsd.org" > > > > > > -- > > Med Venlig Hilsen > > Kalle R. M?ller -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php From mahlerrd at yahoo.com Tue Sep 8 00:13:45 2009 From: mahlerrd at yahoo.com (Richard Mahlerwein) Date: Tue Sep 8 00:13:51 2009 Subject: Inconsistency in root partition size In-Reply-To: <25337689.post@talk.nabble.com> Message-ID: <676868.78379.qm@web51007.mail.re2.yahoo.com> --- On Mon, 9/7/09, jaymax wrote: >From: jaymax >Subject: Re: Inconsistency in root partition size >To: freebsd-questions@freebsd.org >Date: Monday, September 7, 2009, 7:06 PM > >Mel Flynn-2 wrote: >> >> On Monday 07 September 2009 20:54:51 jaymax wrote: >> > >Thanks, will do a new dump, one question - how can one determine that the >dumpfile produced is good? >-- I've always found a test restore works wonders for the peace of my mind. Two types: cd restore -Nrf To test that it all "appears" it ought to restore.? Then, cd restore -if To confirm a few files restore properly completely. YMMV, and obviously check man restore! -Rich From rwmaillists at googlemail.com Tue Sep 8 00:49:15 2009 From: rwmaillists at googlemail.com (RW) Date: Tue Sep 8 00:49:21 2009 Subject: Error compiling KDE 3 In-Reply-To: References: <20090902160336.70d2a4c4@scorpio.seibercom.net> Message-ID: <20090908014907.271dd347@gumby.homeunix.com> On Wed, 2 Sep 2009 20:08:26 -0500 Andrew Gould wrote: > On Wed, Sep 2, 2009 at 3:03 PM, Jerry wrote: > > cd /usr/ports/security/gnutls > > make deinstall && make reinstall && make distclean > > cd - > > make install > > > > -- > > Jerry > > gesbbb@yahoo.com > > > > The package list may have changed between version 2.6.4 and 2.8.3. I > would recommend replacing "make deinstall", above, with: > > pkg_delete gnutls-2.6.4 There's no significant difference between "make deinstall" and pkg_delete - the last time I checked there was only one port that didn't use the default "make deinstall" target, which calls "pkg_delete -f". Usually this kind of thing happens because files moved between ports, and the best thing is to remove all of the affected ports before upgrading. Normally there's an UPDATING entry advising this. The FORCE_PKG_REGISTER method is a bit of cludge, but I gather it also works for this kind of build problem. I guess it allows a repeat install when a package has lost files due to a transient conflict. From rwmaillists at googlemail.com Tue Sep 8 00:56:17 2009 From: rwmaillists at googlemail.com (RW) Date: Tue Sep 8 00:56:24 2009 Subject: difficult-to-phrase question... In-Reply-To: <20090902234324.GA1735@thought.org> References: <20090902234324.GA1735@thought.org> Message-ID: <20090908015612.778b4b1a@gumby.homeunix.com> On Wed, 2 Sep 2009 16:43:30 -0700 Gary Kline wrote: > > i can use grep to find "S" and grep gives me the file[s] that > have the string. now, is there any easy way of reading that > file, or deleting or otherwise munging that file? > > nutshell is that every time i reboot (into kde), kde wastes > time/cpu spawning unwanted whatever: versions of konqueror, > kttsd, ksayit, Wouldn't you be better-off just turning-off session management, and using autostart instead From kline at thought.org Tue Sep 8 01:34:20 2009 From: kline at thought.org (Gary Kline) Date: Tue Sep 8 01:34:27 2009 Subject: difficult-to-phrase question... In-Reply-To: <20090908015612.778b4b1a@gumby.homeunix.com> References: <20090902234324.GA1735@thought.org> <20090908015612.778b4b1a@gumby.homeunix.com> Message-ID: <20090908013414.GE15330@thought.org> On Tue, Sep 08, 2009 at 01:56:12AM +0100, RW wrote: > On Wed, 2 Sep 2009 16:43:30 -0700 > Gary Kline wrote: > > > > > i can use grep to find "S" and grep gives me the file[s] that > > have the string. now, is there any easy way of reading that > > file, or deleting or otherwise munging that file? > > > > nutshell is that every time i reboot (into kde), kde wastes > > time/cpu spawning unwanted whatever: versions of konqueror, > > kttsd, ksayit, > > Wouldn't you be better-off just turning-off session management, and > using autostart instead sounds like a good idea; how do i accomplish this? also, what if i have a konqueror running and sites running and the power goes out. sometimes i want the apps to restart, not usually. is it possible to save Some programs state and let others go? gary ps: i'm new to kde/gnome, but here on tao [freebsd] have mostly kde[3] going. some cli tools, like mutt, are almost sacred. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php From mikel.king at olivent.com Tue Sep 8 01:48:13 2009 From: mikel.king at olivent.com (Mikel King) Date: Tue Sep 8 01:48:20 2009 Subject: beta-testers needed Message-ID: <884E4535-42B4-4038-88D9-0DDDBE9BBF72@olivent.com> Looking for a few volunteers to help test drive the BSD News Networks' new site. If you are interested in becoming a beta-tester and helping out please email me directly off list. Regards, Mikel King CEO, Olivent Technologies Senior Editor, Daemon News Columnist, BSD Magazine 6 Alpine Court, Medford, NY 11763 skype:mikel.king http://olivent.com http://mikelking.com http://twitter.com/mikelking From jaymax36 at gmail.com Tue Sep 8 02:14:56 2009 From: jaymax36 at gmail.com (jaymax) Date: Tue Sep 8 02:15:03 2009 Subject: Inconsistency in root partition size In-Reply-To: <200909072112.14374.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <25314145.post@talk.nabble.com> <200909060958.11114.mel.flynn+fbsd.questions@mailing.thruhere.net> <25316313.post@talk.nabble.com> <200909061238.32832.mel.flynn+fbsd.questions@mailing.thruhere.net> <25324178.post@talk.nabble.com> <6201873e0909062008y4624d3d4y5eca6e21c82f4624@mail.gmail.com> <25325443.post@talk.nabble.com> <20090907091442.f011d137.freebsd@edvax.de> <25334820.post@talk.nabble.com> <200909072112.14374.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: <25338956.post@talk.nabble.com> Mel Flynn-2 wrote: > > On Monday 07 September 2009 20:54:51 jaymax wrote: > > Did you do the du without anything mounted? Cause you have the df output > with > mounts. > If you can't find the missing space, then I suggest making a backup of / > with > dump(8), booting from livefs and restoring the dump. The dump should not > be in > the 390M range, rather in the 40-50M range. > Disconnected my drives, except for system root, then du is not found mach_1# whereis du > du: /usr/bin/du /usr/share/man/man1/du.1.gz /usr/src/usr.bin/du > could have done a 'umount' but results would have been the same, so I think. Did a backup (dump) of /, file produced in 400Mb range dump -0Lauf /disk03/dump/root2.dump /dev/ad0s1a dumpfile size > mach_1# ls -l /disk03/dump/root2.dump > -rw-r--r-- 1 root wheel 426956800 Sep 7 16:31 /disk03/dump/root2.dump > > > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad0s1a 507630 407754 59266 87% / > Compared with > du -xhc / > 44M total > So I decided to do a listing of files in the dump > restore -tf /disk03/dump/root2.dump > rootrestore-0.lst > To my surprise rootrestore-0.lst contains a whole listings of ./usr/ files ex. > 2926 ./usr/include/bsnmp/snmpmod.h > 2927 ./usr/include/bsnmp/snmp_atm.h > Now /usr is on a separate and distinct partition > /dev/ad0s1f 36205990 25765232 7544280 77% /usr > Hope someone can make some sense of this. -- View this message in context: http://www.nabble.com/Inconsistency-in-root-partition-size-tp25314145p25338956.html Sent from the freebsd-questions mailing list archive at Nabble.com. From nlandys at gmail.com Tue Sep 8 03:18:54 2009 From: nlandys at gmail.com (Nerius Landys) Date: Tue Sep 8 03:19:00 2009 Subject: wireless: host access point w/ WAP help! In-Reply-To: <200909071503.10989.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <560f92640909061727o5e8ce3b2k9248e28fe878f58a@mail.gmail.com> <200909071503.10989.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: <560f92640909072018t1c5a614fy9c0292e8383b83d9@mail.gmail.com> > 0) Always mention OS version, bonus points for uname -a. nlandys@speedy# uname -a FreeBSD speedy.i 7.1-RELEASE-p7 FreeBSD 7.1-RELEASE-p7 #0: Thu Aug 6 06:05:47 PDT 2009 root@speedy.i:/usr/obj/usr/src/sys/GENERIC i386 >> root@speedy# dmesg | grep ath >> ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) >> ath0: mem 0xff8f0000-0xff8fffff irq 21 at device 0.0 on pci1 >> ath0: [ITHREAD] >> ath0: WARNING: using obsoleted if_watchdog interface >> ath0: Ethernet address: 00:02:6f:61:e6:7d >> ath0: mac 7.9 phy 4.5 radio 5.6 >> ath0: ath_chan_set: unable to reset channel 6 (2437 Mhz, flags 0x490 >> hal flags 0x150), hal status 12 > > I read you got it working so far, but if you want this resolved or diagnosed, > the uname -a is mandatory and an ident /boot/kernel/if_ath.ko as well. nlandys@speedy# ident /boot/kernel/if_ath.ko /boot/kernel/if_ath.ko: $FreeBSD: src/sys/dev/ath/if_ath.c,v 1.177.2.2.2.1 2008/11/25 02:59:29 kensmith Exp $ $FreeBSD: src/sys/dev/ath/if_ath_pci.c,v 1.19.6.1 2008/11/25 02:59:29 kensmith Exp $ I guess the only real problem remaining is this message in /var/log/messages: Sep 6 17:46:47 speedy kernel: ath0: ath_chan_set: unable to reset channel 6 (2437 Mhz, flags 0x490 hal flags 0x150), hal status 12 Everything is working though. From kline at thought.org Tue Sep 8 04:52:10 2009 From: kline at thought.org (Gary Kline) Date: Tue Sep 8 04:52:17 2009 Subject: how to get rid of a character, 0x80? Message-ID: <20090908045202.GA16556@thought.org> anybody know why getchar() doesn't see 0x80 == 0200? if getchar() is limited to 7-bit characters, what then? % od -c file shows me that every character fits into 8 bits, so getwchar() is the next thing. but doesn't getwchar grab wide-chars only: 16 bits? tia, guys, gary -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php From alydiomc at yahoo.com Tue Sep 8 05:46:35 2009 From: alydiomc at yahoo.com (lyd mc) Date: Tue Sep 8 05:46:42 2009 Subject: Freebsd Built-in vacation program does not auto reply In-Reply-To: <20090904184321.GA5684@curry.mchp.siemens.de> Message-ID: <894509.23736.qm@web52206.mail.re2.yahoo.com> Hi Andre, I haven't solve it yet. I use the one in the ports tree (/usr/ports/mail/vacation) as my work around. Now I use sieve script for vacation notice. Do you have a patch? May be I can use it in the future... Thanks. Best Regards, alyd --- On Sat, 9/5/09, Andre Albsmeier wrote: From: Andre Albsmeier Subject: Re: Freebsd Built-in vacation program does not auto reply To: "lyd mc" Cc: freebsd-questions@freebsd.org Date: Saturday, September 5, 2009, 2:43 AM On Thu, 16-Apr-2009 at 18:00:26 +0000, lyd mc wrote: > Hi guys, > > Why Freebsd built-in vacation program (/usr/bin/vacation) does not auto reply? > > I am using fresh installed Freebsd7.0 and 7.1. here is my configs. Did you solve the problem already? I had a similar issue and tracked it down to a really strange compiler bug... ??? -Andre > > Under the home directory of the user (alydio.mc) > > .forward > ??? \alydio.mc, "|/usr/bin/vacation alydio.mc" > > .vacation.msg > ?? Subject: On vacation message > ?? From: alydio.mc@mydomain.com > ?? I'm on vacation and will not be reading my mail for a while. > ? Your mail will be dealt with when I return. > . > from postfix/sendmail logs: > > ...sniff > ?(delivered to command: /usr/bin/vacation alydio.mc) > > after this nothing will happened... no errors.... no warnings...? > > However the one I installed from ports (/usr/local/bin/vacation) works fine. > > > I want to use the freebsd base vacation program.? > > Please help. > > Thank you, > alydiomc > > >? ? ??? -- Micro$oft: When will your system crash today? From Andre.Albsmeier at siemens.com Tue Sep 8 05:48:46 2009 From: Andre.Albsmeier at siemens.com (Andre Albsmeier) Date: Tue Sep 8 05:48:53 2009 Subject: Freebsd Built-in vacation program does not auto reply In-Reply-To: <894509.23736.qm@web52206.mail.re2.yahoo.com> References: <20090904184321.GA5684@curry.mchp.siemens.de> <894509.23736.qm@web52206.mail.re2.yahoo.com> Message-ID: <20090908054844.GA37983@curry.mchp.siemens.de> [Please do not topquote] On Tue, 08-Sep-2009 at 05:19:53 +0000, lyd mc wrote: > Hi Andre, > > I haven't solve it yet. I use the one in the ports tree (/usr/ports/mail/vacation) as my work around. > > Now I use sieve script for vacation notice. > > Do you have a patch? May be I can use it in the future... Thanks. No, I have a workaround. Do you have the sources to compile vacation yourself? Can you recompile it without -O2 -fno-strict-aliasing and try again? And then recompile it with -O2 and try this again? -Andre > > Best Regards, > > alyd > > --- On Sat, 9/5/09, Andre Albsmeier wrote: > > From: Andre Albsmeier > Subject: Re: Freebsd Built-in vacation program does not auto reply > To: "lyd mc" > Cc: freebsd-questions@freebsd.org > Date: Saturday, September 5, 2009, 2:43 AM > > On Thu, 16-Apr-2009 at 18:00:26 +0000, lyd mc wrote: > > Hi guys, > > > > Why Freebsd built-in vacation program (/usr/bin/vacation) does not auto reply? > > > > I am using fresh installed Freebsd7.0 and 7.1. here is my configs. > > Did you solve the problem already? I had a similar issue and > tracked it down to a really strange compiler bug... > > ??? -Andre > > > > > Under the home directory of the user (alydio.mc) > > > > .forward > > ??? \alydio.mc, "|/usr/bin/vacation alydio.mc" > > > > .vacation.msg > > ?? Subject: On vacation message > > ?? From: alydio.mc@mydomain.com > > ?? I'm on vacation and will not be reading my mail for a while. > > ? Your mail will be dealt with when I return. > > . > > from postfix/sendmail logs: > > > > ...sniff > > ?(delivered to command: /usr/bin/vacation alydio.mc) > > > > after this nothing will happened... no errors.... no warnings...? > > > > However the one I installed from ports (/usr/local/bin/vacation) works fine. > > > > > > I want to use the freebsd base vacation program.? > > > > Please help. > > > > Thank you, > > alydiomc > > > > > >? ? ??? > > -- > Micro$oft: When will your system crash today? > > > > -- Linux is only free if your time is worthless. From stark at mapper.nl Tue Sep 8 06:00:36 2009 From: stark at mapper.nl (Mark Stapper) Date: Tue Sep 8 06:00:43 2009 Subject: how to get rid of a character, 0x80? In-Reply-To: <20090908045202.GA16556@thought.org> References: <20090908045202.GA16556@thought.org> Message-ID: <4AA5F2FB.8080006@mapper.nl> Gary Kline wrote: > anybody know why getchar() doesn't see 0x80 == 0200? if getchar() > is limited to 7-bit characters, what then? > > % od -c file > > shows me that every character fits into 8 bits, so getwchar() is the next thing. > but doesn't getwchar grab wide-chars only: 16 bits? > > tia, guys, > > gary > > > > Hello, First of, this isn't really a BSD question. Second, if you have an example code we might be able to help. Presumably, you want to read a capital C with cedille? (0x80 128 ?) Example from: http://www.cplusplus.com/reference/clibrary/cstdio/getchar/ compiled on FreeBSD 7.2 with gcc 4.2.1 output: " Enter text. Include a dot ('.') in a sentence to exit: sfeo sfeo ?sdfa ?sdfa " besides.. 0x80!=0200 it's 0200 octal which is 128 decimal... Might be why it doesn't work for you. Greetz, Mark -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090908/c1b6cc79/signature-0001.pgp From nvass9573 at gmx.com Tue Sep 8 06:59:06 2009 From: nvass9573 at gmx.com (Nikos Vassiliadis) Date: Tue Sep 8 06:59:13 2009 Subject: "me" in ipfw rules - does it include aliases? In-Reply-To: References: Message-ID: <4AA600AF.9030701@gmx.com> Tom Worster wrote: > the ipfw man page says: > > me matches any IP address configured on an interface in the system. > > which suggests that if i code my rules using "me" then when i add an alias > ip address to an interface with ifconfig, these "me" rules will immediately > work for the newly added address as they do for other addresses. > is that correct? Yes, the "me" keyword is expanded to whatever IP address is assigned on any interface in the system. It's updated whenever an IP address is added to or removed from an interface. Use the simple ruleset bellow to test it yourself: lab# ipfw list 00100 allow ip from me to me 65535 deny ip from any to any add alias & ping alias => success remove alias & ping alias => failure It's a really useful keyword, yet it's not panacea. When using it, one has to think the possibility of an attacker who uses "me" addresses. Use some interface checking as well in your ruleset... Nikos From perryh at pluto.rain.com Tue Sep 8 08:11:08 2009 From: perryh at pluto.rain.com (perryh@pluto.rain.com) Date: Tue Sep 8 08:11:15 2009 Subject: Is there such thing as a 'soft checksum' tool? In-Reply-To: <200909071451.24123.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <20090906012107.E2731B7DD@kev.msw.wpafb.af.mil> <4AA47981.1090103@prgmr.com> <200909071451.24123.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: <4aa6100e.tHFPjmIiNAiRpJ+f%perryh@pluto.rain.com> Mel Flynn wrote: > On Monday 07 September 2009 05:09:53 Michael David Crawford wrote: > > > M> I'm looking for a pseudo-checksum tool for use with > > > M> cataloging images. > > One way you could approach it might be to use a blur filter ... > > Small differences in individual pixels would be blurred away. > ... the above does not work, because of compression anyway. > Just because you think of an image as a bitmap, does not mean > it's stored as such. Certainly it is the decompressed payloads of the JPEG etc. files that are to be compared, rather than the files themselves. It would never have occurred to me that anyone participating in the discussion might have thought otherwise. However, thinking about this inquiry and JPEG in the same sentence has given me an idea that might help the OP: JPEG is a "lossy" compression, with the degree of loss related to the chosen image quality, so two "similar" images might become identical -- or at least more similar -- if compressed to a sufficiently low quality using the JPEG algorithm. From abuse at unsl.edu.ar Tue Sep 8 08:48:29 2009 From: abuse at unsl.edu.ar (System Anti-Virus Administrator) Date: Tue Sep 8 08:48:37 2009 Subject: policy-violation found in sent message "" In-Reply-To: <12523981047911386@inter11> References: <12523981047911386@inter11> Message-ID: Attention: freebsd-questions@freebsd.org A policy-violation was found in an Email message you sent. This Email scanner intercepted it and stopped the entire message reaching its destination. The policy-violation was reported to be: SCR files not allowed per Company security policy Please contact your IT support personnel with any queries regarding this policy. Your message was sent with the following envelope: MAIL FROM: freebsd-questions@freebsd.org RCPT TO: gifavier@unsl.edu.ar ... and with the following headers: --- MAILFROM: freebsd-questions@freebsd.org RCPTTO: gifavier@unsl.edu.ar IP-Addr: 113.22.65.102 Received: from unknown (HELO freebsd.org) (113.22.65.102) by inter11.unsl.edu.ar with SMTP; 8 Sep 2009 04:21:44 -0400 From: freebsd-questions@freebsd.org To: gifavier@unsl.edu.ar Subject: Date: Tue, 8 Sep 2009 15:21:37 +0700 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0011_C7647978.0EBC1B21" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 --- From alydiomc at yahoo.com Tue Sep 8 09:06:28 2009 From: alydiomc at yahoo.com (lyd mc) Date: Tue Sep 8 09:06:36 2009 Subject: Freebsd Built-in vacation program does not auto reply In-Reply-To: <20090908085427.GA41575@curry.mchp.siemens.de> Message-ID: <523914.26215.qm@web52201.mail.re2.yahoo.com> Hi Andre, I use CFLAGS=-O2. Best regards, Alyd --- On Tue, 9/8/09, Andre Albsmeier wrote: From: Andre Albsmeier Subject: Re: Freebsd Built-in vacation program does not auto reply To: "lyd mc" Cc: "Andre Albsmeier" Date: Tuesday, September 8, 2009, 4:54 PM On Tue, 08-Sep-2009 at 01:49:18 -0700, lyd mc wrote: > Hi Andre, Hi, > > WOW! Its working now! Great. What CFLAGS line have you got now? -O2 or nothing? Would you mind posting a short note to freebsd-questions regarding this? My intention is to make a bug report but people will probably laugh at me if I haven't at least another person to confirm this. ??? -Andre > > Here is my logs... > > Sep? 8 16:35:07 MAIL postfix/pickup[60602]: C6147BDC6D: uid=2003 from= > Sep? 8 16:35:07 MAIL postfix/cleanup[60710]: C6147BDC6D: message-id=<20090908083507.C6147BDC6D@mail.xxxxxxxx.com> > Sep? 8 16:35:07 MAIL postfix/qmgr[60603]: C6147BDC6D: from=, size=347, nrcpt=1 (queue active) > Sep? 8 16:35:07 MAIL postfix/local[60712]: C6147BDC6D: to=, orig_to=, relay=local, delay=0.03, delays=0.02/0.01/0/0, dsn=2.0.0, status=sent (delivered to maildir) > Sep? 8 16:35:07 MAIL postfix/pickup[60602]: D02A5BDC70: uid=1001 from= > Sep? 8 16:35:07 MAIL postfix/cleanup[60710]: D02A5BDC70: message-id=<20090908083507.D02A5BDC70@mail.xxxxxxxx.com> > > Postfix deliver to vacation > > Sep? 8 16:35:07 MAIL postfix/local[60712]: C6147BDC6D: to=, orig_to=, relay=local, delay=0.05, delays=0.02/0.01/0/0.02, dsn=2.0.0, status=sent (delivered to command: /usr/bin/vacation alyd.mc) > Sep? 8 16:35:07 MAIL postfix/qmgr[60603]: C6147BDC6D: removed > > vacation send back notification > > Sep? 8 16:35:07 MAIL postfix/qmgr[60603]: D02A5BDC70: from=, size=475, nrcpt=1 (queue active) > Sep? 8 16:35:07 MAIL postfix/local[60712]: D02A5BDC70: to=, relay=local, delay=0.01, delays=0/0/0/0, dsn=2.0.0, status=sent (delivered to maildir) > Sep? 8 16:35:07 MAIL postfix/qmgr[60603]: D02A5BDC70: removed > > Thank you very much! > > Alyd > > > > >? ? ??? From michaelgrunewald at yahoo.fr Tue Sep 8 09:34:33 2009 From: michaelgrunewald at yahoo.fr (=?ISO-8859-1?Q?Micha=EBl_Gr=FCnewald?=) Date: Tue Sep 8 09:34:39 2009 Subject: Is there such thing as a 'soft checksum' tool? In-Reply-To: <4aa6100e.tHFPjmIiNAiRpJ+f%perryh@pluto.rain.com> References: <20090906012107.E2731B7DD@kev.msw.wpafb.af.mil> <4AA47981.1090103@prgmr.com> <200909071451.24123.mel.flynn+fbsd.questions@mailing.thruhere.net> <4aa6100e.tHFPjmIiNAiRpJ+f%perryh@pluto.rain.com> Message-ID: <4AA61E1D.6070807@yahoo.fr> perryh@pluto.rain.com wrote: > Mel Flynn wrote: > > However, thinking about this inquiry and JPEG in the same sentence > has given me an idea that might help the OP: JPEG is a "lossy" > compression, with the degree of loss related to the chosen image > quality, so two "similar" images might become identical -- or at > least more similar -- if compressed to a sufficiently low quality > using the JPEG algorithm. This seems to be an excellent idea. A similar approach can (successfully) be used to let a computer recognize songs through a micrOphone: the incoming signal is transformmed to MP3 at a rather low quality, which provides a sort of fingerprint of the input. The quality factors shall be adujsted adequately for this application: there is a tradeoff between stability (noise insensitivity) and separation to find. The case of images is much more complicated if one wishes to recognize the same image at two different scales. -- Cheers, Micha?l From lists at bertram-scharpf.de Tue Sep 8 12:06:58 2009 From: lists at bertram-scharpf.de (Bertram Scharpf) Date: Tue Sep 8 12:07:09 2009 Subject: how to get rid of a character, 0x80? In-Reply-To: <4AA5F2FB.8080006@mapper.nl> References: <20090908045202.GA16556@thought.org> <4AA5F2FB.8080006@mapper.nl> Message-ID: <20090908120654.GB18404@marge.bs.l> Hi, Am Dienstag, 08. Sep 2009, 08:00:27 +0200 schrieb Mark Stapper: > Gary Kline wrote: > > anybody know why getchar() doesn't see 0x80 == 0200? > > Presumably, you want to read a capital C with cedille? (0x80 128 ?) "\x80" is a nonbreakable space in iso8859-1/-15. (And a Euro sign in Windows-1252). Who uses cp437/cp850 on BSD? > besides.. 0x80!=0200 $ ruby -e 'puts 0x80, 0200' 128 128 Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de From cdr.nil at gmail.com Tue Sep 8 12:17:10 2009 From: cdr.nil at gmail.com (Mark Willson) Date: Tue Sep 8 12:17:17 2009 Subject: is there a way of usinf greo to find 3 or 4 blank lines? In-Reply-To: <20090907230548.GA15330@thought.org> References: <20090906003651.GA7388@thought.org> <20090906232300.GA11209@thought.org> <20090907010602.GA11657@thought.org> <20090907230548.GA15330@thought.org> Message-ID: Gary Kline wrote: > On Mon, Sep 07, 2009 at 08:06:51AM +0100, Mark Willson wrote: >> The following version should do what you want: >> >> BEGIN { >> ncnt = 0 >> prev = "BOF" >> } >> /^ *$/ { >> ncnt++; >> if (ncnt > 3) { >> print "Emphasis at " NR ": " prev; >> prev = "-multiple-" >> ncnt = 0; >> } >> next; >> } >> {ncnt = 0; prev = $0} >> >> -mark > > > It does! outstanding.... > > thanks again, > > gary > Gary, No problem. Glad I could help. -mark From Andre.Albsmeier at siemens.com Tue Sep 8 12:25:42 2009 From: Andre.Albsmeier at siemens.com (Andre Albsmeier) Date: Tue Sep 8 12:25:49 2009 Subject: Freebsd Built-in vacation program does not auto reply In-Reply-To: <20090904184321.GA5684@curry.mchp.siemens.de> References: <490628.66452.qm@web52201.mail.re2.yahoo.com> <20090904184321.GA5684@curry.mchp.siemens.de> Message-ID: <20090908121500.GA43979@curry.mchp.siemens.de> On Fri, 04-Sep-2009 at 20:43:21 +0200, Andre Albsmeier wrote: > On Thu, 16-Apr-2009 at 18:00:26 +0000, lyd mc wrote: > > Hi guys, > > > > Why Freebsd built-in vacation program (/usr/bin/vacation) does not auto reply? > > > > I am using fresh installed Freebsd7.0 and 7.1. here is my configs. > > Did you solve the problem already? I had a similar issue and > tracked it down to a really strange compiler bug... In fact it's no compiler bug (I only discovered it by changing the compiler options) but a problem in vacation.c. -Andre From jon at radel.com Tue Sep 8 12:43:59 2009 From: jon at radel.com (Jon Radel) Date: Tue Sep 8 12:44:07 2009 Subject: how to get rid of a character, 0x80? In-Reply-To: <4AA5F2FB.8080006@mapper.nl> References: <20090908045202.GA16556@thought.org> <4AA5F2FB.8080006@mapper.nl> Message-ID: <4AA65182.6020200@radel.com> Mark Stapper wrote: > besides.. 0x80!=0200 > it's 0200 octal which is 128 decimal... > Might be why it doesn't work for you. Don't mess with his head. ;-) 0200 = 0x80 = 128 200 octal = 80 hex = 128 decimal -- --Jon Radel jon@radel.com -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3283 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090908/2a8bee59/smime.bin From rwmaillists at googlemail.com Tue Sep 8 13:00:28 2009 From: rwmaillists at googlemail.com (RW) Date: Tue Sep 8 13:00:42 2009 Subject: difficult-to-phrase question... In-Reply-To: <20090908013414.GE15330@thought.org> References: <20090902234324.GA1735@thought.org> <20090908015612.778b4b1a@gumby.homeunix.com> <20090908013414.GE15330@thought.org> Message-ID: <20090908140023.2820c507@gumby.homeunix.com> On Mon, 7 Sep 2009 18:34:15 -0700 Gary Kline wrote: > On Tue, Sep 08, 2009 at 01:56:12AM +0100, RW wrote: > > Wouldn't you be better-off just turning-off session management, and > > using autostart instead > > > > sounds like a good idea; how do i accomplish this? The Session Manager in "Control Center" lets you turn it off, and you can drag application icons into ~/.kde/Autostart to have them autostart instead. > also, > what if i have a konqueror running and sites running and the power > goes out. sometimes i want the apps to restart, not usually. is it > possible to save Some programs state and let others go? The Session Manager lets you exempt applications, but I'm not sure if you can distinguish konqueror browsers from file managers though. In other browsers crash recovery works independently of session management, I think you probably do need it with konqueror but I'm not sure. From stanb at panix.com Tue Sep 8 13:05:40 2009 From: stanb at panix.com (stan) Date: Tue Sep 8 13:05:46 2009 Subject: What invokes cricket on FreeBSD In-Reply-To: <200909041704.19865.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <20090903114857.GA635@teddy.fas.com> <200909032341.28748.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090904142807.GA5339@teddy.fas.com> <200909041704.19865.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: <20090908130537.GA18048@teddy.fas.com> On Fri, Sep 04, 2009 at 05:04:19PM +0200, Mel Flynn wrote: > On Friday 04 September 2009 16:28:07 stan wrote: > > On Thu, Sep 03, 2009 at 11:41:28PM +0200, Mel Flynn wrote: > > > On Thursday 03 September 2009 22:23:47 stan wrote: > > > > On Thu, Sep 03, 2009 at 10:10:13PM +0200, Mel Flynn wrote: > > > > > On Thursday 03 September 2009 21:02:41 stan wrote: > > > > > > pnoc# cat collect-subtrees > > > > > > #!/bin/sh > > > > > > > > > > > > echo STARTED >> /tmp/stan > > > > > > which perl >> /tmp/stan > > > > > > /usr/local/cricket/cricket/collect-subtrees.pl normal >> /tmp/stan > > > > > > echo Done >> /tmp/stan > > > > > > > > > > > > /tmp stan contains: > > > > > > > > > > > > pnoc# cat /tmp/stan > > > > > > STARTED > > > > > > /usr/bin/perl > > > > > > Done > > > > > > STARTED > > > > > > /usr/bin/perl > > > > > > Done > > > > > > > > > > > > So, cron is invoking the correct command, and perl can be found, > > > > > > but the original collect_subtrees perl script silently dies. > > > > > > > > > > > > I am convinced it's an environemt probkl`lem, I am just uncertain > > > > > > how to determine what. > > > > > > > > > > I'm not anymore. I'm putting 1 cent on a broken /usr/bin/perl symlink > > > > > (perl upgrade gone bonkers, f.e. done with ro mounted /usr) and > > > > > another cent on the perl script using system() function, with > > > > > pathless commands (that is environment). > > > > > > Ok, one liner: > > > su -m cricket env -i HOME=/usr/local/cricket PATH=/bin:/usr/bin \ > > > /usr/local/cricket/cricket/collect-subtrees.pl normal > > > > > > I've downloaded the 1.0.5 version, but can't quickly see where that would > > > go wrong with this script. touch is in /usr/bin, so that should work. Any > > > cron messages in /var/mail/cricket? > > > > I am away from work today, and won't be back till Tuesday. I can't access > > this from home. > > > > I will try your test then. The only messages that are getting to > > /var/log/cron is just the one saying that the task was executed. > Yea, the error messages end up in /var/mail/$USER or MAILTO variable if set in > crontab. /var/log/maillog should have some tell tales. That turned out to be the information I needed to solve theproblem. I had told my contractor to put a .forward in every non user uer'es account (such as Cricket), and he had not done that. had he done that I would have gotten the needed inforamtion, when I first brought the system abck up. Turns out there was a lockfile, and Cricket was emailing me, asking me to remove it if it was satle :-( Removing it solved the mystery. Thanks for all the help, everyone!! Subtree normal is currently being processed. If this is a mistake, use "rm /tmp/cricket-subtree-normal" to unlock it. -- One of the main causes of the fall of the roman empire was that, lacking zero, they had no way to indicate successful termination of their C programs. From spamchannel at gmail.com Tue Sep 8 13:34:28 2009 From: spamchannel at gmail.com (Jim White) Date: Tue Sep 8 13:34:36 2009 Subject: how to get rid of a character, 0x80? In-Reply-To: <4AA65182.6020200@radel.com> References: <20090908045202.GA16556@thought.org> <4AA5F2FB.8080006@mapper.nl> <4AA65182.6020200@radel.com> Message-ID: <9ca8670b0909080602ud2e4c0bq819251db916b6d3b@mail.gmail.com> On Tue, Sep 8, 2009 at 7:43 AM, Jon Radel wrote: > Mark Stapper wrote: > > besides.. 0x80!=0200 >> it's 0200 octal which is 128 decimal... >> Might be why it doesn't work for you. >> > > Don't mess with his head. ;-) > > 0200 = 0x80 = 128 > > 200 octal = 80 hex = 128 decimal > > -- > > --Jon Radel > jon@radel.com > You may want to check if your char type is signed. If it is (and it just happens to be 8 bits wide), (char)128 is a negative value. From fsb at thefsb.org Tue Sep 8 14:15:40 2009 From: fsb at thefsb.org (Tom Worster) Date: Tue Sep 8 14:15:50 2009 Subject: "me" in ipfw rules - does it include aliases? In-Reply-To: <4AA600AF.9030701@gmx.com> Message-ID: On 9/8/09 2:58 AM, "Nikos Vassiliadis" wrote: > Tom Worster wrote: >> the ipfw man page says: >> >> me matches any IP address configured on an interface in the system. >> >> which suggests that if i code my rules using "me" then when i add an alias >> ip address to an interface with ifconfig, these "me" rules will immediately >> work for the newly added address as they do for other addresses. > >> is that correct? > > Yes, the "me" keyword is expanded to whatever IP address is > assigned on any interface in the system. It's updated whenever > an IP address is added to or removed from an interface. Use the > simple ruleset bellow to test it yourself: > > lab# ipfw list > 00100 allow ip from me to me > 65535 deny ip from any to any > > add alias & ping alias => success > remove alias & ping alias => failure > > It's a really useful keyword, yet it's not panacea. When > using it, one has to think the possibility of an attacker > who uses "me" addresses. Use some interface checking as > well in your ruleset... > > Nikos thanks, nikos. my rules were all written with "me" and my apache config didn't mention any ip addresses so i went ahead and cut over service from a primary server to its hot standby by removing the external ip address on the primary and adding it as an alias to the standby's external interface. both servers are attached to the same upstream ethernet bridge (not necessarily the most reliable network config, i know) and it worked well. i'm interested in your other comment about the risks of using "me". for the best possible security, i'll post my ruleset here for y'all to review ... or maybe not :-) From nvass9573 at gmx.com Tue Sep 8 15:13:05 2009 From: nvass9573 at gmx.com (Nikos Vassiliadis) Date: Tue Sep 8 15:13:13 2009 Subject: "me" in ipfw rules - does it include aliases? In-Reply-To: References: Message-ID: <4AA67477.2030902@gmx.com> Tom Worster wrote: > > thanks, nikos. > You're welcome. > > i'm interested in your other comment about the risks of using "me". All I am saying is that you have to take care of "attacks" which use "me" addresses. Packets with source address a "me" address coming from a network interface, AKA spoofed packets. Apparently a "me" source address cannot come from a wire[1], right? It's not a great risk, but you better filter them out. Also, it is very possible that such attacks are not applicable to your network. Or not. I am just pointing the possible false sense of security when using rules which match "me" addresses. Just be sure that "me" is really your firewall and not somebody else... for the > best possible security, i'll post my ruleset here for y'all to review ... or > maybe not :-) You better not:) [1] by the word wire, I mean every non-loopback interface Nikos From fsb at thefsb.org Tue Sep 8 16:44:30 2009 From: fsb at thefsb.org (Tom Worster) Date: Tue Sep 8 16:44:37 2009 Subject: GEOM: the secondary GPT table is corrupt Message-ID: i'm using gmirror on a server box here at home without understanding how geom works in any detail. i probably followed the handbook chapter 19.4 but it was a while ago. i'm wondering if there's a way to clear these warnings in boot logs: ad4: 715404MB at ata2-master SATA150 GEOM: ad4: the secondary GPT table is corrupt or invalid. GEOM: ad4: using the primary only -- recovery suggested. ad6: 715404MB at ata3-master SATA150 GEOM: ad6: the secondary GPT table is corrupt or invalid. GEOM: ad6: using the primary only -- recovery suggested. GEOM_MIRROR: Device mirror/gm0 launched (2/2). GEOM: mirror/gm0: the secondary GPT table is corrupt or invalid. GEOM: mirror/gm0: using the primary only -- recovery suggested. GEOM_LABEL: Label for provider mirror/gm0p1 is msdosfs/EFI. Trying to mount root from ufs:/dev/mirror/gm0s1a GEOM_LABEL: Label msdosfs/EFI removed. the array seems to be fine, according to gmirror status. googling around, it seems these warnings indicate shoddy initial setup of the disks and there's no clear answer how to sort these matters out. any advice? -tom From mikel.king at olivent.com Tue Sep 8 18:44:28 2009 From: mikel.king at olivent.com (Mikel King) Date: Tue Sep 8 18:44:36 2009 Subject: Invitation to help test the BSD News Network... Message-ID: Although I have received a very good response, I am still looking for a handful of beta testers as well as some volunteers to help tweak the installation. If you are interested in helping build the BSD News Network then contact me directly off list. Regards, Mikel King CEO, Olivent Technologies Senior Editor, Daemon News Columnist, BSD Magazine 6 Alpine Court, Medford, NY 11763 o: 631.627.3055 skype:mikel.king http://olivent.com http://mikelking.com http://twitter.com/mikelking From kline at thought.org Tue Sep 8 19:21:45 2009 From: kline at thought.org (Gary Kline) Date: Tue Sep 8 19:21:52 2009 Subject: how to get rid of a character, 0x80? In-Reply-To: <9ca8670b0909080602ud2e4c0bq819251db916b6d3b@mail.gmail.com> References: <20090908045202.GA16556@thought.org> <4AA5F2FB.8080006@mapper.nl> <4AA65182.6020200@radel.com> <9ca8670b0909080602ud2e4c0bq819251db916b6d3b@mail.gmail.com> Message-ID: <20090908192138.GA19288@thought.org> On Tue, Sep 08, 2009 at 08:02:06AM -0500, Jim White wrote: > On Tue, Sep 8, 2009 at 7:43 AM, Jon Radel wrote: > > > Mark Stapper wrote: > > > > besides.. 0x80!=0200 > >> it's 0200 octal which is 128 decimal... > >> Might be why it doesn't work for you. > >> > > > > Don't mess with his head. ;-) > > > > 0200 = 0x80 = 128 > > > > 200 octal = 80 hex = 128 decimal > > Yup :-) > > > > --Jon Radel > > jon@radel.com > > > > You may want to check if your char type is signed. If it is (and it just > happens to be 8 bits wide), (char)128 is a negative value. I used int ch, not char ch; Also, just found some throwaway code that [of course] never gets pitched, and found the for chars >= 128, it's a wide character. while (( ch = getwc(stdin)) != WEOF) { if (ch == L'\xe2') { if ((ch1 = getwc(stdin)) == L'\x80') { printf("'"); /* check for and swallow last of the trio */ if ((ch2 = getwc(stdin)) == L'\x90') { continue; } } } else { putchar (ch); } } I wrote the above to get rid of openoffice TXT that was still cluttered with the trio of wide characters that output one apostrophe. Last night I used pdftotext to translate a pdf file; it was cluttered with a slew of ^L's, which == '\014', and wound up with a greater slew of in more [less] and vi. Nutshell, the file was fubar'd. gary -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php From herbert.raimund at gmx.net Tue Sep 8 19:50:11 2009 From: herbert.raimund at gmx.net (herbs) Date: Tue Sep 8 19:50:18 2009 Subject: ath(4) Atheros AR9285 support In-Reply-To: <4AA65ABE.4000207@lazybytes.org> References: <4AA65ABE.4000207@lazybytes.org> Message-ID: <20090908195516.GA8398@greencat.langhans.com.pl> I had serious problems using the port hal in combination with an Atheros WiFi card. Maybe disable hal and try again? Cheers herb langhans On Tue, Sep 08, 2009 at 05:23:10PM +0400, Sergey Vinogradov wrote: > Hi, > Just wanted to know, if there will be any Atheros AR9285 support in > ath(4) driver in nearest future? I've got my ASUS Eee 1005HA with one of > these wireless adapters, and it doesn't seem to be working. > > -- > wbr, > Boo > -- ******* Herbert Langhans, Warschau ******* Sprachtraining Langhans ******* http://www.langhans.com.pl ******* herbert at langhans.com.pl ******* NIP 526-229-61-51 ******* Regon 014911759 ******* Tel. 603 341 441 From boogie at lazybytes.org Tue Sep 8 20:20:19 2009 From: boogie at lazybytes.org (Sergey Vinogradov) Date: Tue Sep 8 20:20:25 2009 Subject: ath(4) Atheros AR9285 support In-Reply-To: <20090908195516.GA8398@greencat.langhans.com.pl> References: <4AA65ABE.4000207@lazybytes.org> <20090908195516.GA8398@greencat.langhans.com.pl> Message-ID: <4AA6B894.5090904@lazybytes.org> herbs wrote: > I had serious problems using the port hal in combination with an Atheros > WiFi card. Maybe disable hal and try again? > > Cheers > herb langhans > > On Tue, Sep 08, 2009 at 05:23:10PM +0400, Sergey Vinogradov wrote: >> Hi, >> Just wanted to know, if there will be any Atheros AR9285 support in >> ath(4) driver in nearest future? I've got my ASUS Eee 1005HA with one of >> these wireless adapters, and it doesn't seem to be working. >> >> -- >> wbr, >> Boo >> > > > It's a fresh install, nothing but base system and GENERIC kernel installed. -- wbr, Boo -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090908/2ed401d7/signature.pgp From mel.flynn+fbsd.questions at mailing.thruhere.net Tue Sep 8 20:38:26 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Tue Sep 8 20:38:32 2009 Subject: Inconsistency in root partition size In-Reply-To: <25338956.post@talk.nabble.com> References: <25314145.post@talk.nabble.com> <200909072112.14374.mel.flynn+fbsd.questions@mailing.thruhere.net> <25338956.post@talk.nabble.com> Message-ID: <200909082238.22862.mel.flynn+fbsd.questions@mailing.thruhere.net> On Tuesday 08 September 2009 04:14:55 jaymax wrote: > > restore -tf /disk03/dump/root2.dump > rootrestore-0.lst > > To my surprise rootrestore-0.lst contains a whole listings of ./usr/ files > ex. > > > 2926 ./usr/include/bsnmp/snmpmod.h > > 2927 ./usr/include/bsnmp/snmp_atm.h > > Now /usr is on a separate and distinct partition > > > /dev/ad0s1f 36205990 25765232 7544280 77% /usr > > Hope someone can make some sense of this. This is exactly what I figured. Some files are hiding behind a mount point. The got there most likely, cause you did make installworld without /usr mounted, which would happen if you have the FreeBSD source tree on a different location, reboot into single user mode, only mount the source tree and do installworld. To repair, reboot into single user. Run the following commands: fsck -y / mount -u -o rw / rm -rf /usr/* exit This should delete the offending files. -- Mel From agus.262 at gmail.com Tue Sep 8 21:17:27 2009 From: agus.262 at gmail.com (Agus) Date: Tue Sep 8 21:17:35 2009 Subject: Reverse Proxy /Proxy Pass In-Reply-To: <200909051903.29244.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <200909040212.44397.mel.flynn+fbsd.questions@mailing.thruhere.net> <200909051903.29244.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: 2009/9/5 Mel Flynn : > On Saturday 05 September 2009 09:55:54 Agus wrote: >> 2009/9/3 Mel Flynn : >> > On Friday 04 September 2009 01:20:46 Agus wrote: >> >> What server, application do u know/recommend me for using as a >> >> ProxyPass / Reverse Proxy... >> >> >> >> The idea is to forward all requests to port 80 to this server and then >> >> from here according to the vhost send it to the actual server... For >> >> now i only need proxying.. dont think cacheing will be possible so im >> >> just looking for a pretty fast, light and stable app to do this on a >> >> freebsd 7... >> >> >> >> Thanks and ihope to hear some cool recommendations.. hehe >> > >> > If lightweight, go with www/nginx. Features, go with www/squid or >> > apache+mod_proxy. >> > -- >> > Mel >> > _______________________________________________ >> > freebsd-questions@freebsd.org mailing list >> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> > To unsubscribe, send any mail to >> > "freebsd-questions-unsubscribe@freebsd.org" >> >> Thanks Mel... Now i've been reading a little and found that cherokee >> maybe a very good alternative also.... I also found that the >> performance will variate according to the syscall the server uses... i >> read about poll,etc.... how to know which syscalls does the servers >> support and which one is better/fastest? > > kqueue is preferred on *BSD, since it's able to aggregate multiple filter > matches into one event if they happen to occur in a close time frame. This > reduces copyout from kernel to userland. It also used to be true that poll is > a busywait, but I think that has been corrected. > > If you're interested, the original design document for kqueue is available > here: > http://people.freebsd.org/~jlemon/papers/kqueue.pdf > -- > Mel > Greatt.. sorry for the late response.. i was on vacations in a place with no internet... hehe... on the second day i was cryinggg.. haha thanks so much for the explanation and link... will read that and try to understand a bit ... hehe Cheers, AR From miklosovic.freebsd at gmail.com Tue Sep 8 22:42:19 2009 From: miklosovic.freebsd at gmail.com (Stefan Miklosovic) Date: Tue Sep 8 22:42:26 2009 Subject: setquota + geli Message-ID: hi, I would like to set some quotas with setquota on crypted disk with geli, but if I want to do so -> /etc/fstab /dev/ad0s2f.eli /home ufs rw,noatime,userquota,groupquota 2 2 /etc/rc.conf enable_quotas="YES" I can edit quotas by edquota, but with setquota command it is impossible ~# setquota -u -f /dev/ad0s2f.eli -bh10000 stewe setquota : /dev/ad0s2f.eli is not a valid filesystem. does setquota support encrypted disks? what should I do? thank you From psteele at maxiscale.com Tue Sep 8 22:51:30 2009 From: psteele at maxiscale.com (Peter Steele) Date: Tue Sep 8 22:52:03 2009 Subject: Using mdconfig for swap space Message-ID: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> Are there any advantages to using mdconfig and creating a virtual disk for swap space as opposed to having a designated swap partition? For example, I could do something like this: mdconfig -a -t swap -f /var/swap0 -s 4g swapon -a /dev/md0 to add 4G to the system swap space backed by the file /var/swap0. How would this compare to repartitioning my hard drive and adding a new 4GB swap partition? From cswiger at mac.com Tue Sep 8 23:00:27 2009 From: cswiger at mac.com (Chuck Swiger) Date: Tue Sep 8 23:00:36 2009 Subject: Using mdconfig for swap space In-Reply-To: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> Message-ID: <7EDDD18F-A0BA-4BFF-8C98-FC6D38187B9E@mac.com> Hi, Peter-- On Sep 8, 2009, at 2:51 PM, Peter Steele wrote: > Are there any advantages to using mdconfig and creating a virtual > disk for swap space as opposed to having a designated swap > partition? For example, I could do something like this: > > mdconfig -a -t swap -f /var/swap0 -s 4g > swapon -a /dev/md0 > > to add 4G to the system swap space backed by the file /var/swap0. > How would this compare to repartitioning my hard drive and adding a > new 4GB swap partition? First, using -f means using -t vnode. Secondly, swapping directly to a swap partition is mildly faster than having to navigate through the filesystem layers to do swapfile based swapping. Other platforms have chosen to go with the dynamically created and deleted swapfiles (under /var/vm/swapfile0, 1, etc for example) to allow the system to adjust the amount of disk used for swapspace dynamically. With disk space costing a matter of a few cents per gigabyte nowadays, setting up a dedicated swap partition and just letting it do it's thing is much easier than trying to fiddle around with alternatives, IMHO, but you're welcome to experiment and see whether you end up with something which is actually better for your circumstances.... Regards, -- -Chuck From amvandemore at gmail.com Tue Sep 8 23:02:37 2009 From: amvandemore at gmail.com (Adam Vande More) Date: Tue Sep 8 23:02:44 2009 Subject: Using mdconfig for swap space In-Reply-To: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> Message-ID: <6201873e0909081602r4f8620a7jcab70703977d5ee9@mail.gmail.com> On Tue, Sep 8, 2009 at 4:51 PM, Peter Steele wrote: > Are there any advantages to using mdconfig and creating a virtual disk for > swap space as opposed to having a designated swap partition? For example, I > could do something like this: > > mdconfig -a -t swap -f /var/swap0 -s 4g > swapon -a /dev/md0 > > to add 4G to the system swap space backed by the file /var/swap0. How would > this compare to repartitioning my hard drive and adding a new 4GB swap > partition? > > In general, this is not a good idea. Your system will ideally not use swap space at all, and if it's using it a lot then it could sure use the extra ram consumed by the md drive instead of in swap. Most likely to slow your system down, not speed it up. If you're going to do anything, it's best to keep swap on a separate disk, or on the outer part of disk. -- Adam Vande More From jerrymc at msu.edu Tue Sep 8 23:57:17 2009 From: jerrymc at msu.edu (Jerry McAllister) Date: Tue Sep 8 23:57:24 2009 Subject: Using mdconfig for swap space In-Reply-To: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> Message-ID: <20090908235259.GB19173@gizmo.acns.msu.edu> On Tue, Sep 08, 2009 at 04:51:20PM -0500, Peter Steele wrote: > Are there any advantages to using mdconfig and creating a virtual disk for swap space as opposed to having a designated swap partition? For example, I could do something like this: Unless I am missing something basic here, it seems like a bad idea to me - to carve out and use up some memory to use as extra storage for processes that need more memory that you have taken away to give to swap. That is self defeating. In addition, one use of swap is to write dumps to if there is a crash. If you put it in memory, it is gone when you reboot. ////jerry > > mdconfig -a -t swap -f /var/swap0 -s 4g > swapon -a /dev/md0 > > to add 4G to the system swap space backed by the file /var/swap0. How would this compare to repartitioning my hard drive and adding a new 4GB swap partition? > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > From rwmaillists at googlemail.com Wed Sep 9 00:03:33 2009 From: rwmaillists at googlemail.com (RW) Date: Wed Sep 9 00:03:40 2009 Subject: Using mdconfig for swap space In-Reply-To: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> Message-ID: <20090909010323.29631089@gumby.homeunix.com> On Tue, 8 Sep 2009 16:51:20 -0500 Peter Steele wrote: > Are there any advantages to using mdconfig and creating a virtual > disk for swap space as opposed to having a designated swap partition? > For example, I could do something like this: > > mdconfig -a -t swap -f /var/swap0 -s 4g > swapon -a /dev/md0 FWIW that's already supported by adding swapfile="/var/swap0" to rc.conf Your arguments are wrong BTW "-t swap" creates a device *backed* by swap. And the size comes from the size of the supplied file - which you typically create with dd. From jaymax36 at gmail.com Wed Sep 9 00:24:43 2009 From: jaymax36 at gmail.com (jaymax) Date: Wed Sep 9 00:24:49 2009 Subject: Inconsistency in root partition size In-Reply-To: <200909082238.22862.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <25314145.post@talk.nabble.com> <200909060958.11114.mel.flynn+fbsd.questions@mailing.thruhere.net> <25316313.post@talk.nabble.com> <200909061238.32832.mel.flynn+fbsd.questions@mailing.thruhere.net> <25324178.post@talk.nabble.com> <6201873e0909062008y4624d3d4y5eca6e21c82f4624@mail.gmail.com> <25325443.post@talk.nabble.com> <20090907091442.f011d137.freebsd@edvax.de> <25334820.post@talk.nabble.com> <200909072112.14374.mel.flynn+fbsd.questions@mailing.thruhere.net> <25338956.post@talk.nabble.com> <200909082238.22862.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: <25356456.post@talk.nabble.com> Mel Flynn-2 wrote: > > > This is exactly what I figured. Some files are hiding behind a mount > point. > The got there most likely, cause you did make installworld without /usr > mounted, which would happen if you have the FreeBSD source tree on a > different > location, reboot into single user mode, only mount the source tree and do > installworld. > > To repair, reboot into single user. Run the following commands: > fsck -y / > mount -u -o rw / > rm -rf /usr/* > exit > > This should delete the offending files. > Thanks, you have been a tremendous help That was precisely the problem and solution, the capacity from df-k is back down to 10% thanks again with your permission I'd like to post your advise on the FreeBSD Forum, of course with credits =) -- View this message in context: http://www.nabble.com/Inconsistency-in-root-partition-size-tp25314145p25356456.html Sent from the freebsd-questions mailing list archive at Nabble.com. From eitanadlerlist at gmail.com Wed Sep 9 05:26:14 2009 From: eitanadlerlist at gmail.com (Eitan Adler) Date: Wed Sep 9 05:26:21 2009 Subject: metadata is incorrect - freebsd-update Message-ID: When I try to update to 8.0-BETA3 using freebsd-update I get a gunzip problem like: metadata iscorrupt I tried to remove /var/db/freebsd-update/files/* but I get the same error message Is this a client side problem or a server problem? If the former how do I fix it? From cyb. at gmx.net Wed Sep 9 06:07:50 2009 From: cyb. at gmx.net (Andreas Rudisch) Date: Wed Sep 9 06:07:57 2009 Subject: metadata is incorrect - freebsd-update In-Reply-To: References: Message-ID: <20090909080743.cef775fb.cyb.@gmx.net> On Wed, 9 Sep 2009 05:26:13 +0000 Eitan Adler wrote: > When I try to update to 8.0-BETA3 Try Beta4 instead. http://lists.freebsd.org/pipermail/freebsd-stable/2009-September/051801.html Andreas -- GnuPG key : 0x2A573565 | http://www.gnupg.org/howtos/de/ Fingerprint: 925D 2089 0BF9 8DE5 9166 33BB F0FD CD37 2A57 3565 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090909/6dc179a9/attachment.pgp From tajudd at gmail.com Wed Sep 9 06:47:14 2009 From: tajudd at gmail.com (Tim Judd) Date: Wed Sep 9 06:47:21 2009 Subject: Custom ISOs Message-ID: I'm not sure if this is normal or not, but I'm getting <5.0KB/sec for two separate downloads each download speed for both the XFCE and Gnome DVD ISOs. I am aware that the site is sitting on wikidot.com, and not on dev-urandom.com anymore, I was wondering if there's a better place I can grab them from. I have someone interested in BSD, and was trying to download all options and let him pick. With this download, it'll take a day or more to download it, then the time to meet up with this guy. Any light shed on the slow downloads? Thanks again, Manolis for ALL your hard work, it is very much appreciated. --Tim From sonicy at otenet.gr Wed Sep 9 06:55:19 2009 From: sonicy at otenet.gr (Manolis Kiagias) Date: Wed Sep 9 06:55:29 2009 Subject: Custom ISOs In-Reply-To: References: Message-ID: <4AA75154.4080206@otenet.gr> Tim Judd wrote: > I'm not sure if this is normal or not, but I'm getting <5.0KB/sec for > two separate downloads each download speed for both the XFCE and Gnome > DVD ISOs. > > Weird... > I am aware that the site is sitting on wikidot.com, and not on > dev-urandom.com anymore, I was wondering if there's a better place I > can grab them from. I have someone interested in BSD, and was trying > to download all options and let him pick. > > Not really. Only the web pages are on wikidot, the files are still hosted in dev-urandom.com > With this download, it'll take a day or more to download it, then > the time to meet up with this guy. > > > Any light shed on the slow downloads? > > Don't know, but if it is not resolved I'll ping Glen Barber who owns this space. I can't test the speed right now myself but will do later and report back. I do have some alternate space as well, so if the worse comes to the worst, I could upload one of the ISOs there. It is currently mostly full but I believe I can trash some things. > Thanks again, Manolis for ALL your hard work, it is very much appreciated. > > Thanks Tim, I thoroughly enjoyed creating this stuff. From danielby at slightlystrange.org Wed Sep 9 10:57:34 2009 From: danielby at slightlystrange.org (Daniel Bye) Date: Wed Sep 9 10:57:41 2009 Subject: Using mdconfig for swap space In-Reply-To: <20090908235259.GB19173@gizmo.acns.msu.edu> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> <20090908235259.GB19173@gizmo.acns.msu.edu> Message-ID: <20090909105707.GA27941@torus.slightlystrange.org> On Tue, Sep 08, 2009 at 07:52:59PM -0400, Jerry McAllister wrote: > On Tue, Sep 08, 2009 at 04:51:20PM -0500, Peter Steele wrote: > > > Are there any advantages to using mdconfig and creating a virtual disk for swap space as opposed to having a designated swap partition? For example, I could do something like this: > > Unless I am missing something basic here, it seems like a bad idea to > me - to carve out and use up some memory to use as extra storage for > processes that need more memory that you have taken away to give to swap. > That is self defeating. > > In addition, one use of swap is to write dumps to if there is a crash. > If you put it in memory, it is gone when you reboot. He's talking about using a swap file, rather than a dedicated partition on the disk, not in RAM! Although it is slightly slower, as Chuck has already pointed out, it might, in certain circumstances, be a somewhat more convenient solution than repartitioning/reinstalling the whole system. And as RW has said, the facility already exists and can be enabled with a couple of knobs in /etc/rc.conf. Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090909/622d5737/attachment.pgp From no-spam at people.net.au Wed Sep 9 12:47:50 2009 From: no-spam at people.net.au (Ian) Date: Wed Sep 9 12:47:57 2009 Subject: Error building net-snmp port Message-ID: <200909092151.07703.no-spam@people.net.au> I've been building a new 7.2-RELEASE server, putting it into service on Friday. I did a portsnap & updated all the ports to the latest version, but was unable to upgrade /usr/ports/net-mgmt/net-snmp - see below for output: ===> Building for net-snmp-5.4.2.1_5 making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/snmplib making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent/helpers making all in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent/mibgroup /bin/sh ../../libtool --mode=compile cc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -O -pipe -Ufreebsd7 -Dfreebsd7=freebsd7 -DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.9/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/local/lib/perl5/5.8.9/mach/CORE -c -o mibII/tcpTable.lo mibII/tcpTable.c cc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -O -pipe -Ufreebsd7 -Dfreebsd7=freebsd7 -DAPPLLIB_EXP=/usr/local/lib/perl5/5.8.9/BSDPAN -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/local/lib/perl5/5.8.9/mach/CORE -c mibII/tcpTable.c -fPIC -DPIC -o mibII/.libs/tcpTable.o mibII/tcpTable.c: In function 'tcpTable_load': mibII/tcpTable.c:748: error: dereferencing pointer to incomplete type mibII/tcpTable.c:750: error: dereferencing pointer to incomplete type mibII/tcpTable.c:750: error: invalid application of 'sizeof' to incomplete type 'struct xinpgen' mibII/tcpTable.c:754: error: dereferencing pointer to incomplete type mibII/tcpTable.c:758: error: dereferencing pointer to incomplete type mibII/tcpTable.c:763: error: dereferencing pointer to incomplete type *** Error code 1 Stop in /usr/ports/net-mgmt/net-snmp/work/net-snmp-5.4.2.1/agent/mibgroup. *** Error code 1 I tried everything I could think of to fix it - removed CPUTYPE from /etc/make.conf, ran make config & de-selected IPV6 support, did a make dist clean and let it fetch the source file again, did a make deinstall but it still stopped at the same point. It was installed as a dependency of nut. Any idea how to fix this? Cheers, Ian -- gpg key: http://home.swiftdsl.com.au/~imoore/no-spam.asc -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part. Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090909/f94de50b/attachment.pgp From psteele at maxiscale.com Wed Sep 9 13:07:52 2009 From: psteele at maxiscale.com (Peter Steele) Date: Wed Sep 9 13:07:59 2009 Subject: Using mdconfig for swap space In-Reply-To: <20090909105707.GA27941@torus.slightlystrange.org> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> <20090908235259.GB19173@gizmo.acns.msu.edu> <20090909105707.GA27941@torus.slightlystrange.org> Message-ID: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EC0A@MBX03.exg5.exghost.com> Thanks for the responses. The reason I'm looking at doing this is that we have increased memory on our platform from 4GB to 8GB and therefore have to increase swap space from 8GB to 16GB. We have enough space in our /var partition that we could add a swap file there and not have to touch the existing partition layout. I like the simplicity of the swap file approach, but we have an application that is very sensitive to I/O performance and I'm a little wary what this could mean. QA I know would have a field day in trying to pound the system with all sorts of stress tests. I think a dedicated swap partition is probably a safer option. Peter -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Daniel Bye Sent: Wednesday, September 09, 2009 3:57 AM To: 'freebsd-questions@freebsd.org' Subject: Re: Using mdconfig for swap space On Tue, Sep 08, 2009 at 07:52:59PM -0400, Jerry McAllister wrote: > On Tue, Sep 08, 2009 at 04:51:20PM -0500, Peter Steele wrote: > > > Are there any advantages to using mdconfig and creating a virtual disk for swap space as opposed to having a designated swap partition? For example, I could do something like this: > > Unless I am missing something basic here, it seems like a bad idea to > me - to carve out and use up some memory to use as extra storage for > processes that need more memory that you have taken away to give to swap. > That is self defeating. > > In addition, one use of swap is to write dumps to if there is a crash. > If you put it in memory, it is gone when you reboot. He's talking about using a swap file, rather than a dedicated partition on the disk, not in RAM! Although it is slightly slower, as Chuck has already pointed out, it might, in certain circumstances, be a somewhat more convenient solution than repartitioning/reinstalling the whole system. And as RW has said, the facility already exists and can be enabled with a couple of knobs in /etc/rc.conf. Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ From mel.flynn+fbsd.questions at mailing.thruhere.net Wed Sep 9 14:37:35 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Wed Sep 9 14:37:42 2009 Subject: Using mdconfig for swap space In-Reply-To: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EC0A@MBX03.exg5.exghost.com> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> <20090909105707.GA27941@torus.slightlystrange.org> <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EC0A@MBX03.exg5.exghost.com> Message-ID: <200909091637.32031.mel.flynn+fbsd.questions@mailing.thruhere.net> On Wednesday 09 September 2009 15:07:37 Peter Steele wrote: > Thanks for the responses. The reason I'm looking at doing this is that we > have increased memory on our platform from 4GB to 8GB and therefore have to > increase swap space from 8GB to 16GB. No you don't. It's advised, but not mandatory. > We have enough space in our /var > partition that we could add a swap file there and not have to touch the > existing partition layout. I like the simplicity of the swap file approach, > but we have an application that is very sensitive to I/O performance and > I'm a little wary what this could mean. QA I know would have a field day in > trying to pound the system with all sorts of stress tests. I think a > dedicated swap partition is probably a safer option. Any I/O bound application suffers from any kind of swap. You would do better to first establish how this application suffers once you start swapping. If your machine needs more then or even close to 8GB of swap, I doubt the applications are responsive to begin with. With 8GB of memory, it's probably better to have 2GB of swap, so that offending applications are killed off sooner and the machine is able to recover sooner. But - I'm assuming this is a server, for a multimedia machine - editing large images or videos - more swap is beneficial as inactive images/videos can be swapped out. -- Mel From psteele at maxiscale.com Wed Sep 9 14:58:18 2009 From: psteele at maxiscale.com (Peter Steele) Date: Wed Sep 9 14:58:24 2009 Subject: Using mdconfig for swap space In-Reply-To: <20090909165005.089ae704@suszko.eu> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> <20090908235259.GB19173@gizmo.acns.msu.edu> <20090909105707.GA27941@torus.slightlystrange.org> <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EC0A@MBX03.exg5.exghost.com> <20090909165005.089ae704@suszko.eu> Message-ID: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EC62@MBX03.exg5.exghost.com> >Nowadays having swap twice as RAM is not necessary. If your system wasn't swapping much in the past you can safely stay with 4G in my opinion... extending it to 16G >would be waste of space :) I won't bore you with the details but in fact our application *does* require this much swap space, but not for the typical reasons. It's a side effect of how our application works and we thought we could make use of an image file for the extra swap rather than repartitioning, but I've read too many warnings against going this route so I've decided to stick with increasing the size of the swap partition. From jerrymc at msu.edu Wed Sep 9 15:03:42 2009 From: jerrymc at msu.edu (Jerry McAllister) Date: Wed Sep 9 15:03:51 2009 Subject: Using mdconfig for swap space In-Reply-To: <20090909105707.GA27941@torus.slightlystrange.org> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> <20090908235259.GB19173@gizmo.acns.msu.edu> <20090909105707.GA27941@torus.slightlystrange.org> Message-ID: <20090909145922.GB22253@gizmo.acns.msu.edu> On Wed, Sep 09, 2009 at 11:57:07AM +0100, Daniel Bye wrote: > On Tue, Sep 08, 2009 at 07:52:59PM -0400, Jerry McAllister wrote: > > On Tue, Sep 08, 2009 at 04:51:20PM -0500, Peter Steele wrote: > > > > > Are there any advantages to using mdconfig and creating a virtual disk for swap space as opposed to having a designated swap partition? For example, I could do something like this: > > > > Unless I am missing something basic here, it seems like a bad idea to > > me - to carve out and use up some memory to use as extra storage for > > processes that need more memory that you have taken away to give to swap. > > That is self defeating. > > > > In addition, one use of swap is to write dumps to if there is a crash. > > If you put it in memory, it is gone when you reboot. > > He's talking about using a swap file, rather than a dedicated partition on > the disk, not in RAM! Although it is slightly slower, as Chuck has already > pointed out, it might, in certain circumstances, be a somewhat more > convenient solution than repartitioning/reinstalling the whole system. > > And as RW has said, the facility already exists and can be enabled with a > couple of knobs in /etc/rc.conf. I understand using a file and making it in to swapspace. I have used that a couple of times when I needed to add some swap space temporarily. But isn't the command he is trying to use (mdconfig) for creating a memory filesystem - eg use a chunk of memory and make a file from it (then use it for swap or whatever)? That is in RAM. ////jerry > > Dan > > -- > Daniel Bye > _ > ASCII ribbon campaign ( ) > - against HTML, vCards and X > - proprietary attachments in e-mail / \ From freebsd-questions-local at be-well.ilk.org Wed Sep 9 15:11:44 2009 From: freebsd-questions-local at be-well.ilk.org (Lowell Gilbert) Date: Wed Sep 9 15:11:51 2009 Subject: Using mdconfig for swap space In-Reply-To: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EC62@MBX03.exg5.exghost.com> (Peter Steele's message of "Wed, 9 Sep 2009 09:58:09 -0500") References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> <20090908235259.GB19173@gizmo.acns.msu.edu> <20090909105707.GA27941@torus.slightlystrange.org> <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EC0A@MBX03.exg5.exghost.com> <20090909165005.089ae704@suszko.eu> <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EC62@MBX03.exg5.exghost.com> Message-ID: <441vmgw3td.fsf@be-well.ilk.org> Peter Steele writes: >>Nowadays having swap twice as RAM is not necessary. If your system >>wasn't swapping much in the past you can safely stay with 4G in my >>opinion... extending it to 16G would be waste of space :) > > I won't bore you with the details but in fact our application *does* > require this much swap space, but not for the typical reasons. It's a > side effect of how our application works and we thought we could make > use of an image file for the extra swap rather than repartitioning, > but I've read too many warnings against going this route so I've > decided to stick with increasing the size of the swap partition. It's easy to *try* the swap files. Then measure the performance. If the behaviour is really as specific to your custom application as you indicate, then general advice may not apply either. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ From maciej at suszko.eu Wed Sep 9 15:16:59 2009 From: maciej at suszko.eu (Maciej Suszko) Date: Wed Sep 9 15:17:06 2009 Subject: Using mdconfig for swap space In-Reply-To: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EC0A@MBX03.exg5.exghost.com> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> <20090908235259.GB19173@gizmo.acns.msu.edu> <20090909105707.GA27941@torus.slightlystrange.org> <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EC0A@MBX03.exg5.exghost.com> Message-ID: <20090909165005.089ae704@suszko.eu> Peter Steele wrote: > Thanks for the responses. The reason I'm looking at doing this is > that we have increased memory on our platform from 4GB to 8GB and > therefore have to increase swap space from 8GB to 16GB. We have > enough space in our /var partition that we could add a swap file > there and not have to touch the existing partition layout. I like the > simplicity of the swap file approach, but we have an application that > is very sensitive to I/O performance and I'm a little wary what this > could mean. QA I know would have a field day in trying to pound the > system with all sorts of stress tests. I think a dedicated swap > partition is probably a safer option. Nowadays having swap twice as RAM is not necessary. If your system wasn't swapping much in the past you can safely stay with 4G in my opinion... extending it to 16G would be waste of space :) -- regards, Maciej Suszko. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090909/d748fa83/signature.pgp From freebsd-questions-local at be-well.ilk.org Wed Sep 9 15:23:16 2009 From: freebsd-questions-local at be-well.ilk.org (Lowell Gilbert) Date: Wed Sep 9 15:23:23 2009 Subject: Using mdconfig for swap space In-Reply-To: <20090909145922.GB22253@gizmo.acns.msu.edu> (Jerry McAllister's message of "Wed, 9 Sep 2009 10:59:23 -0400") References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> <20090908235259.GB19173@gizmo.acns.msu.edu> <20090909105707.GA27941@torus.slightlystrange.org> <20090909145922.GB22253@gizmo.acns.msu.edu> Message-ID: <44tyzcuopp.fsf@be-well.ilk.org> Jerry McAllister writes: > On Wed, Sep 09, 2009 at 11:57:07AM +0100, Daniel Bye wrote: > >> On Tue, Sep 08, 2009 at 07:52:59PM -0400, Jerry McAllister wrote: >> > On Tue, Sep 08, 2009 at 04:51:20PM -0500, Peter Steele wrote: >> > >> > > Are there any advantages to using mdconfig and creating a virtual disk for swap space as opposed to having a designated swap partition? For example, I could do something like this: >> > >> > Unless I am missing something basic here, it seems like a bad idea to >> > me - to carve out and use up some memory to use as extra storage for >> > processes that need more memory that you have taken away to give to swap. >> > That is self defeating. >> > >> > In addition, one use of swap is to write dumps to if there is a crash. >> > If you put it in memory, it is gone when you reboot. >> >> He's talking about using a swap file, rather than a dedicated partition on >> the disk, not in RAM! Although it is slightly slower, as Chuck has already >> pointed out, it might, in certain circumstances, be a somewhat more >> convenient solution than repartitioning/reinstalling the whole system. >> >> And as RW has said, the facility already exists and can be enabled with a >> couple of knobs in /etc/rc.conf. > > I understand using a file and making it in to swapspace. I have used that > a couple of times when I needed to add some swap space temporarily. But > isn't the command he is trying to use (mdconfig) for creating a memory > filesystem - eg use a chunk of memory and make a file from it (then use it > for swap or whatever)? That is in RAM. Not necessarily. What he wants is the '-t vnode' option for mdconfig(8). -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ From psteele at maxiscale.com Wed Sep 9 15:41:10 2009 From: psteele at maxiscale.com (Peter Steele) Date: Wed Sep 9 15:41:18 2009 Subject: Using mdconfig for swap space In-Reply-To: <441vmgw3td.fsf@be-well.ilk.org> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> <20090908235259.GB19173@gizmo.acns.msu.edu> <20090909105707.GA27941@torus.slightlystrange.org> <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EC0A@MBX03.exg5.exghost.com> <20090909165005.089ae704@suszko.eu> <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EC62@MBX03.exg5.exghost.com> <441vmgw3td.fsf@be-well.ilk.org> Message-ID: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EC89@MBX03.exg5.exghost.com> >It's easy to *try* the swap files. Then measure the performance. >If the behaviour is really as specific to your custom application as you indicate, then general advice may not apply either. In fact, after discussing this with the team, we are going to do exactly that. We'll allocate an extra 8GB of swap space through an image file and let QA run their stress tests to see how things behave. That's the only way to know for sure if this will work for us. Thanks for the feedback. Peter From danielby at slightlystrange.org Wed Sep 9 15:48:12 2009 From: danielby at slightlystrange.org (Daniel Bye) Date: Wed Sep 9 15:48:20 2009 Subject: Using mdconfig for swap space In-Reply-To: <20090909145922.GB22253@gizmo.acns.msu.edu> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> <20090908235259.GB19173@gizmo.acns.msu.edu> <20090909105707.GA27941@torus.slightlystrange.org> <20090909145922.GB22253@gizmo.acns.msu.edu> Message-ID: <20090909154655.GA96342@torus.slightlystrange.org> On Wed, Sep 09, 2009 at 10:59:23AM -0400, Jerry McAllister wrote: > On Wed, Sep 09, 2009 at 11:57:07AM +0100, Daniel Bye wrote: > > > On Tue, Sep 08, 2009 at 07:52:59PM -0400, Jerry McAllister wrote: > > > On Tue, Sep 08, 2009 at 04:51:20PM -0500, Peter Steele wrote: > > > > > > > Are there any advantages to using mdconfig and creating a virtual disk for swap space as opposed to having a designated swap partition? For example, I could do something like this: > > > > > > Unless I am missing something basic here, it seems like a bad idea to > > > me - to carve out and use up some memory to use as extra storage for > > > processes that need more memory that you have taken away to give to swap. > > > That is self defeating. > > > > > > In addition, one use of swap is to write dumps to if there is a crash. > > > If you put it in memory, it is gone when you reboot. > > > > He's talking about using a swap file, rather than a dedicated partition on > > the disk, not in RAM! Although it is slightly slower, as Chuck has already > > pointed out, it might, in certain circumstances, be a somewhat more > > convenient solution than repartitioning/reinstalling the whole system. > > > > And as RW has said, the facility already exists and can be enabled with a > > couple of knobs in /etc/rc.conf. > > I understand using a file and making it in to swapspace. I have used that > a couple of times when I needed to add some swap space temporarily. But > isn't the command he is trying to use (mdconfig) for creating a memory > filesystem - eg use a chunk of memory and make a file from it (then use it > for swap or whatever)? That is in RAM. No, with the -t vnode and -f options, he'd actually be creating a file-backed memory disk. The terminology can be a little confusing, but in this instance the file wouldn't be loaded into RAM, but would instead be treated as any other disk-like device. It's exactly the same approach as used by /etc/rc.d/addswap, which gets its configuration from $swapfile set in /etc/rc.conf. Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090909/324b1194/attachment.pgp From jerrymc at msu.edu Wed Sep 9 15:58:33 2009 From: jerrymc at msu.edu (Jerry McAllister) Date: Wed Sep 9 15:58:40 2009 Subject: Using mdconfig for swap space In-Reply-To: <44tyzcuopp.fsf@be-well.ilk.org> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> <20090908235259.GB19173@gizmo.acns.msu.edu> <20090909105707.GA27941@torus.slightlystrange.org> <20090909145922.GB22253@gizmo.acns.msu.edu> <44tyzcuopp.fsf@be-well.ilk.org> Message-ID: <20090909155414.GA22575@gizmo.acns.msu.edu> On Wed, Sep 09, 2009 at 11:23:14AM -0400, Lowell Gilbert wrote: > Jerry McAllister writes: > > > On Wed, Sep 09, 2009 at 11:57:07AM +0100, Daniel Bye wrote: > > > >> On Tue, Sep 08, 2009 at 07:52:59PM -0400, Jerry McAllister wrote: > >> > On Tue, Sep 08, 2009 at 04:51:20PM -0500, Peter Steele wrote: > >> > > >> > > Are there any advantages to using mdconfig and creating a virtual disk for swap space as opposed to having a designated swap partition? For example, I could do something like this: > >> > > >> > Unless I am missing something basic here, it seems like a bad idea to > >> > me - to carve out and use up some memory to use as extra storage for > >> > processes that need more memory that you have taken away to give to swap. > >> > That is self defeating. > >> > > >> > In addition, one use of swap is to write dumps to if there is a crash. > >> > If you put it in memory, it is gone when you reboot. > >> > >> He's talking about using a swap file, rather than a dedicated partition on > >> the disk, not in RAM! Although it is slightly slower, as Chuck has already > >> pointed out, it might, in certain circumstances, be a somewhat more > >> convenient solution than repartitioning/reinstalling the whole system. > >> > >> And as RW has said, the facility already exists and can be enabled with a > >> couple of knobs in /etc/rc.conf. > > > > I understand using a file and making it in to swapspace. I have used that > > a couple of times when I needed to add some swap space temporarily. But > > isn't the command he is trying to use (mdconfig) for creating a memory > > filesystem - eg use a chunk of memory and make a file from it (then use it > > for swap or whatever)? That is in RAM. > > Not necessarily. What he wants is the '-t vnode' option for mdconfig(8). Hmmm. Haven't dealt with that before. Still seems like either a regular file or a dedicated partition would be best. ////jerry > > -- > Lowell Gilbert, embedded/networking software engineer, Boston area > http://be-well.ilk.org/~lowell/ From savage at savage.za.org Wed Sep 9 15:59:55 2009 From: savage at savage.za.org (Chris Knipe) Date: Wed Sep 9 16:00:04 2009 Subject: 7.2-RELEASE kbdmux Message-ID: <04eb01ca3163$68ce6300$3a6b2900$@za.org> Hi, I've just checked out 7.2-RELEASE from CVS. My build world was successful, but I am failing on compiling the stock standard GENERIC kernel that comes out of CVS. ===> kbdmux (all) cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/GENERIC/opt_global.h -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -g -I/usr/obj/usr/src/sys/GENERIC -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/src/sys/modules/kbdmux/../../dev/kbdmux/kbdmux.c /usr/src/sys/modules/kbdmux/../../dev/kbdmux/kbdmux.c:127:8: error: macro names must be identifiers /usr/src/sys/modules/kbdmux/../../dev/kbdmux/kbdmux.c: In function 'kbdmux_kbd_event': /usr/src/sys/modules/kbdmux/../../dev/kbdmux/kbdmux.c:261: warning: implicit declaration of function 'KBDMUX_CHECK_CHAR' /usr/src/sys/modules/kbdmux/../../dev/kbdmux/kbdmux.c:261: warning: nested extern declaration of 'KBDMUX_CHECK_CHAR' *** Error code 1 This is a stock standard cvsup'ed machine, nothing changed, altered, added, or removed. Any help appreciated. -- Chris. From jerrymc at msu.edu Wed Sep 9 16:01:17 2009 From: jerrymc at msu.edu (Jerry McAllister) Date: Wed Sep 9 16:01:23 2009 Subject: Using mdconfig for swap space In-Reply-To: <20090909154655.GA96342@torus.slightlystrange.org> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> <20090908235259.GB19173@gizmo.acns.msu.edu> <20090909105707.GA27941@torus.slightlystrange.org> <20090909145922.GB22253@gizmo.acns.msu.edu> <20090909154655.GA96342@torus.slightlystrange.org> Message-ID: <20090909155657.GB22575@gizmo.acns.msu.edu> On Wed, Sep 09, 2009 at 04:46:56PM +0100, Daniel Bye wrote: > On Wed, Sep 09, 2009 at 10:59:23AM -0400, Jerry McAllister wrote: > > On Wed, Sep 09, 2009 at 11:57:07AM +0100, Daniel Bye wrote: > > > > > On Tue, Sep 08, 2009 at 07:52:59PM -0400, Jerry McAllister wrote: > > > > On Tue, Sep 08, 2009 at 04:51:20PM -0500, Peter Steele wrote: > > > > > > > > > Are there any advantages to using mdconfig and creating a virtual disk for swap space as opposed to having a designated swap partition? For example, I could do something like this: > > > > > > > > Unless I am missing something basic here, it seems like a bad idea to > > > > me - to carve out and use up some memory to use as extra storage for > > > > processes that need more memory that you have taken away to give to swap. > > > > That is self defeating. > > > > > > > > In addition, one use of swap is to write dumps to if there is a crash. > > > > If you put it in memory, it is gone when you reboot. > > > > > > He's talking about using a swap file, rather than a dedicated partition on > > > the disk, not in RAM! Although it is slightly slower, as Chuck has already > > > pointed out, it might, in certain circumstances, be a somewhat more > > > convenient solution than repartitioning/reinstalling the whole system. > > > > > > And as RW has said, the facility already exists and can be enabled with a > > > couple of knobs in /etc/rc.conf. > > > > I understand using a file and making it in to swapspace. I have used that > > a couple of times when I needed to add some swap space temporarily. But > > isn't the command he is trying to use (mdconfig) for creating a memory > > filesystem - eg use a chunk of memory and make a file from it (then use it > > for swap or whatever)? That is in RAM. > > No, with the -t vnode and -f options, he'd actually be creating > a file-backed memory disk. The terminology can be a little confusing, but > in this instance the file wouldn't be loaded into RAM, but would instead > be treated as any other disk-like device. It's exactly the same approach > as used by /etc/rc.d/addswap, which gets its configuration from $swapfile > set in /etc/rc.conf. I see that now, but it seems like the long way around to get to what you get with a swapon. Oh well. ////jerry > > Dan > > -- > Daniel Bye > _ > ASCII ribbon campaign ( ) > - against HTML, vCards and X > - proprietary attachments in e-mail / \ From drew at mykitchentable.net Wed Sep 9 16:15:35 2009 From: drew at mykitchentable.net (Drew Tomlinson) Date: Wed Sep 9 16:15:42 2009 Subject: Regex Help - Greedy vs. Non-Greedy Message-ID: <4AA7D49D.8090002@mykitchentable.net> I'm trying to do a search and replace in vim. I have lines like this: http://site1/dir/; http://site2/dir/;LastName, FirstName;Phone; http://site3/dir/;LastName, FirstName; http://site4/dir/; I'm want to match "http:*" and stop matching at the first ";". My basic regex is: /http:.\+;/ But it's matching *all* the semi-colons. Thus I've Googled and tried various incatations to try and make my regex "non-greedy" but I can't seem to come up with the correct combination. How can I write a regex that stops matching at the first semi-colon? Thanks, Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com From danielby at slightlystrange.org Wed Sep 9 16:22:46 2009 From: danielby at slightlystrange.org (Daniel Bye) Date: Wed Sep 9 16:22:53 2009 Subject: Regex Help - Greedy vs. Non-Greedy In-Reply-To: <4AA7D49D.8090002@mykitchentable.net> References: <4AA7D49D.8090002@mykitchentable.net> Message-ID: <20090909162146.GB96342@torus.slightlystrange.org> On Wed, Sep 09, 2009 at 09:15:25AM -0700, Drew Tomlinson wrote: > I'm trying to do a search and replace in vim. I have lines like this: > http://site1/dir/; > http://site2/dir/;LastName, FirstName;Phone; > http://site3/dir/;LastName, FirstName; > http://site4/dir/; > > I'm want to match "http:*" and stop matching at the first ";". My basic > regex is: > > /http:.\+;/ > > But it's matching *all* the semi-colons. Thus I've Googled and tried > various incatations to try and make my regex "non-greedy" but I can't > seem to come up with the correct combination. > > How can I write a regex that stops matching at the first semi-colon? Tested in vi, not vim: /http:[^;]*/ Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090909/cc52fa42/attachment.pgp From mel.flynn+fbsd.questions at mailing.thruhere.net Wed Sep 9 16:27:00 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Wed Sep 9 16:27:07 2009 Subject: Regex Help - Greedy vs. Non-Greedy In-Reply-To: <4AA7D49D.8090002@mykitchentable.net> References: <4AA7D49D.8090002@mykitchentable.net> Message-ID: <200909091826.57212.mel.flynn+fbsd.questions@mailing.thruhere.net> On Wednesday 09 September 2009 18:15:25 Drew Tomlinson wrote: > I'm trying to do a search and replace in vim. I have lines like this: > http://site1/dir/; > http://site2/dir/;LastName, FirstName;Phone; > http://site3/dir/;LastName, FirstName; > http://site4/dir/; > > I'm want to match "http:*" and stop matching at the first ";". My basic > regex is: > > /http:.\+;/ > > But it's matching *all* the semi-colons. Thus I've Googled and tried > various incatations to try and make my regex "non-greedy" but I can't > seem to come up with the correct combination. > > How can I write a regex that stops matching at the first semi-colon? AFAIK, there's no greediness modifier in vim regex. However, you can use character classes to solve your problem: %s/http:[^;]\+/foo/g -- Mel From drew at mykitchentable.net Wed Sep 9 16:32:42 2009 From: drew at mykitchentable.net (Drew Tomlinson) Date: Wed Sep 9 16:32:48 2009 Subject: Regex Help - Greedy vs. Non-Greedy In-Reply-To: <20090909162146.GB96342@torus.slightlystrange.org> References: <4AA7D49D.8090002@mykitchentable.net> <20090909162146.GB96342@torus.slightlystrange.org> Message-ID: <4AA7D89C.4020706@mykitchentable.net> Daniel Bye wrote: > On Wed, Sep 09, 2009 at 09:15:25AM -0700, Drew Tomlinson wrote: > >> I'm trying to do a search and replace in vim. I have lines like this: >> http://site1/dir/; >> http://site2/dir/;LastName, FirstName;Phone; >> http://site3/dir/;LastName, FirstName; >> http://site4/dir/; >> >> I'm want to match "http:*" and stop matching at the first ";". My basic >> regex is: >> >> /http:.\+;/ >> >> But it's matching *all* the semi-colons. Thus I've Googled and tried >> various incatations to try and make my regex "non-greedy" but I can't >> seem to come up with the correct combination. >> >> How can I write a regex that stops matching at the first semi-colon? >> > > Tested in vi, not vim: > > /http:[^;]*/ > > Dan > Thanks for your reply. I tried it in vim (or more specifically, gvim 7.2) and your example matches all semi-colons. However in vi, it does stop at the first semi-colon as you say. Can anyone please explain the difference? Thanks, Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com From drew at mykitchentable.net Wed Sep 9 16:36:51 2009 From: drew at mykitchentable.net (Drew Tomlinson) Date: Wed Sep 9 16:36:58 2009 Subject: Regex Help - Greedy vs. Non-Greedy In-Reply-To: <4AA7D89C.4020706@mykitchentable.net> References: <4AA7D49D.8090002@mykitchentable.net> <20090909162146.GB96342@torus.slightlystrange.org> <4AA7D89C.4020706@mykitchentable.net> Message-ID: <4AA7D997.5040605@mykitchentable.net> Drew Tomlinson wrote: > Daniel Bye wrote: >> On Wed, Sep 09, 2009 at 09:15:25AM -0700, Drew Tomlinson wrote: >> >>> I'm trying to do a search and replace in vim. I have lines like this: >>> http://site1/dir/; >>> http://site2/dir/;LastName, FirstName;Phone; >>> http://site3/dir/;LastName, FirstName; >>> http://site4/dir/; >>> >>> I'm want to match "http:*" and stop matching at the first ";". My >>> basic regex is: >>> >>> /http:.\+;/ >>> >>> But it's matching *all* the semi-colons. Thus I've Googled and >>> tried various incatations to try and make my regex "non-greedy" but >>> I can't seem to come up with the correct combination. >>> >>> How can I write a regex that stops matching at the first semi-colon? >>> >> >> Tested in vi, not vim: >> >> /http:[^;]*/ >> >> Dan >> > > Thanks for your reply. I tried it in vim (or more specifically, gvim > 7.2) and your example matches all semi-colons. However in vi, it does > stop at the first semi-colon as you say. > > Can anyone please explain the difference? > > Thanks, > > Drew > Never mind. My mistake. The above does work in gvim. I had a "." (dot) after http:. Thanks Mel & Dan! Cheers, Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com From arab at tangerine-army.co.uk Wed Sep 9 16:56:12 2009 From: arab at tangerine-army.co.uk (Graeme Dargie) Date: Wed Sep 9 16:56:19 2009 Subject: System crashed need some help troubleshooting Message-ID: <01FB8F39BAD0BD49A6D0DA8F78973929573F@Mercury.galaxy.lan.lcl> Hi All, I have a server in the house that has been running away fine, I noticed today that it had rebooted 17hours or so ago, looking a little further it also looks like it had rebooted around 23hours previously. panic: kmem_malloc(131072): kmem_map too small: 505761792 total allocated cpuid = 0 Uptime: 23h56m0s Physical memory: 4017 MB Dumping 1149 MB: 1134 1118 1102 1086 1070 1054 1038 1022 1006 990 974 958 942 926 910 894 878 862 846 830 814 798 782 766 750 734 718 702 686 670 654 638 622 I found the above in the /var/log/dmesg.yesterday I could use some advice on how to troubleshoot on what is going on with this machine. Regards Graeme From rjhjr0 at gmail.com Wed Sep 9 17:00:36 2009 From: rjhjr0 at gmail.com (Bob Hall) Date: Wed Sep 9 17:00:44 2009 Subject: Regex Help - Greedy vs. Non-Greedy In-Reply-To: <4AA7D49D.8090002@mykitchentable.net> References: <4AA7D49D.8090002@mykitchentable.net> Message-ID: <20090909165450.GA1610@stainmore> On Wed, Sep 09, 2009 at 09:15:25AM -0700, Drew Tomlinson wrote: > I'm trying to do a search and replace in vim. I have lines like this: > http://site1/dir/; > http://site2/dir/;LastName, FirstName;Phone; > http://site3/dir/;LastName, FirstName; > http://site4/dir/; > > I'm want to match "http:*" and stop matching at the first ";". My basic > regex is: > > /http:.\+;/ Use "{-}" in place of "+". /http:.\{-};/ From jeronimocalvop at googlemail.com Wed Sep 9 17:10:14 2009 From: jeronimocalvop at googlemail.com (Jeronimo Calvo) Date: Wed Sep 9 17:10:20 2009 Subject: VirtualBox not opening... from 7.2 STABLE, (GUI KDE 3.5) Message-ID: Hi Folks!! I did compile VirtualBox, and followed the instructions under http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/virtualization-host.html But I am getting following error when launched from the terminal: > # VirtualBox > No protocol specified > Failed to open the X11 display! When used the Icon created on System>VirtualBox (Using KDE 3.5) Using uname -a: > FreeBSD 7.2-STABLE FreeBSD 7.2-STABLE #1: Sat Aug 29 15:04:29 UTC 2009 root@:/usr/obj/usr/src/sys/GENERIC amd64 Seems to open for few secs... and suddenly disappears... Any ideas? From mlfreebsd at streamingedge.com Wed Sep 9 17:46:22 2009 From: mlfreebsd at streamingedge.com (Jacques Manukyan) Date: Wed Sep 9 17:46:29 2009 Subject: setquota + geli In-Reply-To: References: Message-ID: <4AA7E541.4030600@streamingedge.com> Stefan Miklosovic wrote: > hi, > > I would like to set some quotas with setquota > on crypted disk with geli, but if I want to do so -> > > /etc/fstab > /dev/ad0s2f.eli /home ufs > rw,noatime,userquota,groupquota 2 2 > > /etc/rc.conf > enable_quotas="YES" > > I can edit quotas by edquota, but with setquota command it is impossible > > ~# setquota -u -f /dev/ad0s2f.eli -bh10000 stewe > setquota : /dev/ad0s2f.eli is not a valid filesystem. > Doing the following should work just fine: ~# setquota -u -f /home -bh10000 stewe > does setquota support encrypted disks? > what should I do? > > thank you > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Setquota supports any UFS based file system it doesn't matter that the disk is encrypted or not. Just run the above command and it should work. -- Jacques Manukyan From freebsd at optimis.net Wed Sep 9 17:46:48 2009 From: freebsd at optimis.net (George Davidovich) Date: Wed Sep 9 17:46:55 2009 Subject: Regex Help - Greedy vs. Non-Greedy In-Reply-To: <4AA7D49D.8090002@mykitchentable.net> References: <4AA7D49D.8090002@mykitchentable.net> Message-ID: <20090909174647.GA65123@marvin.optimis.net> On Wed, Sep 09, 2009 at 09:15:25AM -0700, Drew Tomlinson wrote: > I'm trying to do a search and replace in vim. I have lines like this: > http://site1/dir/; > http://site2/dir/;LastName, FirstName;Phone; > http://site3/dir/;LastName, FirstName; > http://site4/dir/; > > I'm want to match "http:*" and stop matching at the first ";". My basic > regex is: > > /http:.\+;/ > > But it's matching *all* the semi-colons. Thus I've Googled and tried > various incatations to try and make my regex "non-greedy" but I can't > seem to come up with the correct combination. LOL. Do yourself a favour and stop "Googling". Vim has a built-in help system. To access help for regular expressions: :help regexp :he regexp :he r[TAB] ... and search for non-greedy (or just scroll down). > How can I write a regex that stops matching at the first semi-colon? You've already received a few answers, but I'll add one that may be even better -- rely on external programs instead. Vim can be a bit clunky at times. The simplest and most typical usage would be :[range] !command If using Perl $ perldoc -h $ perldoc -q regex -- George From noc at hdk5.net Wed Sep 9 18:16:15 2009 From: noc at hdk5.net (Al Plant) Date: Wed Sep 9 18:16:22 2009 Subject: Custom ISOs In-Reply-To: <4AA75154.4080206@otenet.gr> References: <4AA75154.4080206@otenet.gr> Message-ID: <4AA7F0ED.4080609@hdk5.net> Manolis Kiagias wrote: > Tim Judd wrote: >> I'm not sure if this is normal or not, but I'm getting <5.0KB/sec for >> two separate downloads each download speed for both the XFCE and Gnome >> DVD ISOs. >> >> > > Weird... >> I am aware that the site is sitting on wikidot.com, and not on >> dev-urandom.com anymore, I was wondering if there's a better place I >> can grab them from. I have someone interested in BSD, and was trying >> to download all options and let him pick. >> >> > > Not really. Only the web pages are on wikidot, the files are still > hosted in dev-urandom.com > >> With this download, it'll take a day or more to download it, then >> the time to meet up with this guy. >> >> >> Any light shed on the slow downloads? >> >> > Don't know, but if it is not resolved I'll ping Glen Barber who owns > this space. > I can't test the speed right now myself but will do later and report back. > > I do have some alternate space as well, so if the worse comes to the > worst, I could upload one of the ISOs there. It is currently mostly full > but I believe I can trash some things. > >> Thanks again, Manolis for ALL your hard work, it is very much appreciated. >> >> > > Thanks Tim, I thoroughly enjoyed creating this stuff. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > ########## Aloha, Download was fine from here in Hawaii when I have used it in the past. I have a 1.5 DSL circuit down. Hawaii is not the fastest place on the planet usually. I would check Tim's provider side. I know of several mainland friends who have slow cable TV lines. Hope you find the issue and can get it resolved. ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 6.* - 7.* - 8.* + < email: noc@hdk5.net > "All that's really worth doing is what we do for others."- Lewis Carrol From mkhitrov at gmail.com Wed Sep 9 18:44:56 2009 From: mkhitrov at gmail.com (Maxim Khitrov) Date: Wed Sep 9 18:45:03 2009 Subject: Correct way to configure an IP range for firewall Message-ID: <26ddd1750909091144x447fb4bt93e4bdc56d7a9202@mail.gmail.com> Hello all, A quick question - I have a /29 block of IPs that needs to be handled by a firewall I'm setting up. Two addresses are lost to broadcast and network, one is the ISP gateway, so we end up with 5 usable IPs that can be assigned to the external interface. The question is how to do this correctly? I want only one of the addresses assigned to the firewall itself, another will be used as the public nat address for all hosts on the lan. Remaining three addresses will be used as bidirectional nat for servers. Am I correct in assuming that I just need to add four ifconfig_vr0_alias[0-3] lines to rc.conf? What happens if in the future we get a much bigger IP block, is there a more efficient way of accomplishing the same thing? I don't actually want the firewall to consider itself the final destination for any of the additional IPs, it just needs to pass them to pf for nat and filtering. - Max From sonicy at otenet.gr Wed Sep 9 18:45:21 2009 From: sonicy at otenet.gr (Manolis Kiagias) Date: Wed Sep 9 18:45:28 2009 Subject: Custom ISOs In-Reply-To: <4AA7F0ED.4080609@hdk5.net> References: <4AA75154.4080206@otenet.gr> <4AA7F0ED.4080609@hdk5.net> Message-ID: <4AA7F7BE.1090906@otenet.gr> Al Plant wrote: > Manolis Kiagias wrote: >> Tim Judd wrote: >>> I'm not sure if this is normal or not, but I'm getting <5.0KB/sec for >>> two separate downloads each download speed for both the XFCE and Gnome >>> DVD ISOs. >>> >>> >> >> Weird... >>> I am aware that the site is sitting on wikidot.com, and not on >>> dev-urandom.com anymore, I was wondering if there's a better place I >>> can grab them from. I have someone interested in BSD, and was trying >>> to download all options and let him pick. >>> >>> >> >> Not really. Only the web pages are on wikidot, the files are still >> hosted in dev-urandom.com >> >>> With this download, it'll take a day or more to download it, then >>> the time to meet up with this guy. >>> >>> >>> Any light shed on the slow downloads? >>> >>> >> Don't know, but if it is not resolved I'll ping Glen Barber who owns >> this space. >> I can't test the speed right now myself but will do later and report >> back. >> >> I do have some alternate space as well, so if the worse comes to the >> worst, I could upload one of the ISOs there. It is currently mostly full >> but I believe I can trash some things. >> >>> Thanks again, Manolis for ALL your hard work, it is very much >>> appreciated. >>> >>> >> >> Thanks Tim, I thoroughly enjoyed creating this stuff. >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" >> > ########## > > Aloha, > > Download was fine from here in Hawaii when I have used it in the past. > > I have a 1.5 DSL circuit down. Hawaii is not the fastest place on the > planet usually. I would check Tim's provider side. I know of several > mainland friends who have slow cable TV lines. > > Hope you find the issue and can get it resolved. > And I can confirm that it maxes out my connection here. From m.seaman at infracaninophile.co.uk Wed Sep 9 19:03:46 2009 From: m.seaman at infracaninophile.co.uk (Matthew Seaman) Date: Wed Sep 9 19:03:54 2009 Subject: Correct way to configure an IP range for firewall In-Reply-To: <26ddd1750909091144x447fb4bt93e4bdc56d7a9202@mail.gmail.com> References: <26ddd1750909091144x447fb4bt93e4bdc56d7a9202@mail.gmail.com> Message-ID: <4AA7FC04.4040508@infracaninophile.co.uk> Maxim Khitrov wrote: > Am I correct in assuming that I just need to add four > ifconfig_vr0_alias[0-3] lines to rc.conf? What happens if in the > future we get a much bigger IP block, is there a more efficient way of > accomplishing the same thing? I don't actually want the firewall to > consider itself the final destination for any of the additional IPs, > it just needs to pass them to pf for nat and filtering. Assuming your assigned network is 192.0.2.24/29: ipv4_addrs_vr0="192.0.2.25-30" See rc.conf(5) for details. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090909/198fad8a/signature.pgp From noc at hdk5.net Wed Sep 9 19:14:48 2009 From: noc at hdk5.net (Al Plant) Date: Wed Sep 9 19:15:05 2009 Subject: Correct way to configure an IP range for firewall In-Reply-To: <26ddd1750909091144x447fb4bt93e4bdc56d7a9202@mail.gmail.com> References: <26ddd1750909091144x447fb4bt93e4bdc56d7a9202@mail.gmail.com> Message-ID: <4AA7FEA6.70603@hdk5.net> Maxim Khitrov wrote: > Hello all, > > A quick question - I have a /29 block of IPs that needs to be handled > by a firewall I'm setting up. Two addresses are lost to broadcast and > network, one is the ISP gateway, so we end up with 5 usable IPs that > can be assigned to the external interface. The question is how to do > this correctly? > > I want only one of the addresses assigned to the firewall itself, > another will be used as the public nat address for all hosts on the > lan. Remaining three addresses will be used as bidirectional nat for > servers. > > Am I correct in assuming that I just need to add four > ifconfig_vr0_alias[0-3] lines to rc.conf? What happens if in the > future we get a much bigger IP block, is there a more efficient way of > accomplishing the same thing? I don't actually want the firewall to > consider itself the final destination for any of the additional IPs, > it just needs to pass them to pf for nat and filtering. > > - Max > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Aloha Max, What you have sounds like an ATM ( Asynchronous Transfer Mode ) circuit. I have one here that is for three servers a desktop and one spare IP. I got the setup from Michael Paoli at cal.berkely.edu in California. With setup I had to put firewalls (PF) on the three servers facing the internet and the desktop as well. There are 2 references I used for this firewall setup. Absolute FerrBSD - M. Lucas Pg. 273 and bsdly.bet Peter Hansteen. Both are on this list. If you would like to see the three sheets on how I set this up I can fax them to you or email. The setup for more IP's should be scalable but the IP's and default route would change I would think. You could keep using /29 ATM blocks and increase in increments with different IP's most likely with out changing the first ones. ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 6.* - 7.* - 8.* + < email: noc@hdk5.net > "All that's really worth doing is what we do for others."- Lewis Carrol From tajudd at gmail.com Wed Sep 9 20:23:10 2009 From: tajudd at gmail.com (Tim Judd) Date: Wed Sep 9 20:23:17 2009 Subject: Custom ISOs In-Reply-To: <4AA7F7BE.1090906@otenet.gr> References: <4AA75154.4080206@otenet.gr> <4AA7F0ED.4080609@hdk5.net> <4AA7F7BE.1090906@otenet.gr> Message-ID: On 9/9/09, Manolis Kiagias wrote: > Al Plant wrote: >> Manolis Kiagias wrote: >>> Tim Judd wrote: >>>> I'm not sure if this is normal or not, but I'm getting <5.0KB/sec for >>>> two separate downloads each download speed for both the XFCE and Gnome >>>> DVD ISOs. >>>> >>>> >>> >>> Weird... >>>> I am aware that the site is sitting on wikidot.com, and not on >>>> dev-urandom.com anymore, I was wondering if there's a better place I >>>> can grab them from. I have someone interested in BSD, and was trying >>>> to download all options and let him pick. >>>> >>>> >>> >>> Not really. Only the web pages are on wikidot, the files are still >>> hosted in dev-urandom.com >>> >>>> With this download, it'll take a day or more to download it, then >>>> the time to meet up with this guy. >>>> >>>> >>>> Any light shed on the slow downloads? >>>> >>>> >>> Don't know, but if it is not resolved I'll ping Glen Barber who owns >>> this space. >>> I can't test the speed right now myself but will do later and report >>> back. >>> >>> I do have some alternate space as well, so if the worse comes to the >>> worst, I could upload one of the ISOs there. It is currently mostly full >>> but I believe I can trash some things. >>> >>>> Thanks again, Manolis for ALL your hard work, it is very much >>>> appreciated. >>>> >>>> >>> >>> Thanks Tim, I thoroughly enjoyed creating this stuff. >>> _______________________________________________ >>> freebsd-questions@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>> To unsubscribe, send any mail to >>> "freebsd-questions-unsubscribe@freebsd.org" >>> >> ########## >> >> Aloha, >> >> Download was fine from here in Hawaii when I have used it in the past. >> >> I have a 1.5 DSL circuit down. Hawaii is not the fastest place on the >> planet usually. I would check Tim's provider side. I know of several >> mainland friends who have slow cable TV lines. >> >> Hope you find the issue and can get it resolved. >> > > And I can confirm that it maxes out my connection here. Apparently was just a temp thing -- it looks like it had finished in ~40 minutes, but I started the download, wrote the mail, and then went to bed. Apparently it normalized. Sorry for the disruption. --TJ From bahamasfranks at gmail.com Wed Sep 9 20:46:44 2009 From: bahamasfranks at gmail.com (Steve Franks) Date: Wed Sep 9 20:46:51 2009 Subject: netbooks for freebsd? In-Reply-To: <20090825183947.GC1087@ideapad.piggybox> References: <447CAEF2-AA07-49E9-9E81-891FA7C23422@forestinformatics.com> <20090825183947.GC1087@ideapad.piggybox> Message-ID: <539c60b90909091346m1a004d0dq2076a591c676f372@mail.gmail.com> > I like my s10e too - but remember I don't have native wireless, I'm using ndis. There are also some acpi glitches which the currently available patch only partially resolves. re: acpi patch: Fascinating - now it reboots instead of hanging....gonna try current one of these days... As far as ditching ndis, I got one of these, and I'm quite happy with it: OxfordTEC.com Detailed Invoice: https://www.oxfordtec.com/us/account_history_info.php?order_id=XYZPDQ 1 x SparkLAN WPEA-165G miniPCI Wireless card - Atheros AR5006EG AR2423A mini PCI-E, mPCIe adapter (WPEA165G-S0) = $24.95 Best, Steve From kline at thought.org Wed Sep 9 21:08:42 2009 From: kline at thought.org (Gary Kline) Date: Wed Sep 9 21:08:48 2009 Subject: are there any notebooks with mouse-sticks? Message-ID: <20090909210833.GA23467@thought.org> I'm looking for a small computer, 7-10" screen that has a ThinkPad-like stick to act as the mouse. Pref'ly, no touch-pad. The ASUS and just about every other notebook-size device has this kind of scratch-n-sniff pad; unfortunately, it looks as tho my palm would go there. (I *did* see a separate mouse [and other add-ons] for the EEE; that might be a work around.) Any clues? gary ps: just thought i'd ask here first... . -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php From merfi_75 at bk.ru Wed Sep 9 21:39:05 2009 From: merfi_75 at bk.ru (=?koi8-r?Q?=E1=CC=C5=CB=D3=C5=CA_=ED=C9=C8=C1=CA=CC=CF=D7=C9=DE?=) Date: Wed Sep 9 22:47:34 2009 Subject: Sound in FreeBSD Message-ID: I want play *.mp3 in to FreeBSD My system data uname -a: 6.4-RELEASE FreeBSD 6.4-RELEASE #0: Wed Nov 26 11:43:51 UTC 2008 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 my sound driver: snd_hda $ cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: at memory 0xf3020000 irq 22 kld snd_hda [20071129_0050] (1p/1r/1v channels duplex default) pcm1: at memory 0xf1010000 irq 17 kld snd_hda [20071129_0050] (mixer only) my steps for auto load : 1 ee /boot/loader.conf #Sound Driver snd_hda_load="YES" (man snd_hda) 2 reboot 3 login 4 kldstat result kldstat: Id Refs Address Size Name 1 7 0xc0400000 7c89e8 kernel 2 1 0xc0bc9000 5c894 acpi.ko 3 1 0xc8dcc000 2000 fire_saver.ko 4 1 0xc948a000 12000 snd_hda.ko 5 1 0xc949c000 1d000 sound.ko sound driver was loader I run X server: startx and....... the sound is not present Next i press Ctrl+Alt+Backspace (down X) Manually I do an unloading and loading $ kldunload snd_hda $ kldload snd_hda After these actions all works Why the such occurs Thanks From glen.j.barber at gmail.com Wed Sep 9 22:52:11 2009 From: glen.j.barber at gmail.com (Glen Barber) Date: Wed Sep 9 22:52:43 2009 Subject: Sound in FreeBSD In-Reply-To: References: Message-ID: <4ad871310909091552l1a5bf8ddi4d11d46ad1d269b5@mail.gmail.com> Hi. 2009/9/9 ??????? ?????????? : > I want play *.mp3 in to FreeBSD > > My system data > uname -a: > ?6.4-RELEASE FreeBSD 6.4-RELEASE #0: Wed Nov 26 11:43:51 UTC 2008 ? ? root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC ?i386 > > my sound driver: > ? ?snd_hda > > ? ?$ cat /dev/sndstat > ? ?FreeBSD Audio Driver (newpcm) > ? ?Installed devices: > ? ?pcm0: at memory 0xf3020000 irq 22 kld snd_hda ? [20071129_0050] (1p/1r/1v channels duplex default) > pcm1: at memory 0xf1010000 irq 17 kld snd_hda [20071129_0050] (mixer only) > > my steps for auto load : > ?1 ee /boot/loader.conf > ? ?#Sound Driver > ? ?snd_hda_load="YES" (man snd_hda) > ?2 reboot > ?3 login > ?4 kldstat > ? ?result kldstat: > Id Refs Address ? ?Size ? ? Name > ?1 ? ?7 0xc0400000 7c89e8 ? kernel > ?2 ? ?1 0xc0bc9000 5c894 ? ?acpi.ko > ?3 ? ?1 0xc8dcc000 2000 ? ? fire_saver.ko > ?4 ? ?1 0xc948a000 12000 ? ?snd_hda.ko > ?5 ? ?1 0xc949c000 1d000 ? ?sound.ko > > sound driver was loader > > I run X server: startx > ?and....... the sound is not present > > Next i press Ctrl+Alt+Backspace (down X) > > Manually I do an unloading and loading > ? $ kldunload snd_hda > ? $ kldload snd_hda > > After these actions all works > > Why the such occurs > Thanks > > What is the output of mixer(8) before and after X is started? Also, what window manager / desktop environment are you using? -- Glen Barber From perrin at apotheon.com Wed Sep 9 22:57:14 2009 From: perrin at apotheon.com (Chad Perrin) Date: Wed Sep 9 22:57:20 2009 Subject: are there any notebooks with mouse-sticks? In-Reply-To: <20090909210833.GA23467@thought.org> References: <20090909210833.GA23467@thought.org> Message-ID: <20090909225711.GA16843@kokopelli.hydra> On Wed, Sep 09, 2009 at 02:08:36PM -0700, Gary Kline wrote: > > I'm looking for a small computer, 7-10" screen that has a ThinkPad-like stick > to act as the mouse. Pref'ly, no touch-pad. The ASUS and just about every other > notebook-size device has this kind of scratch-n-sniff pad; unfortunately, it looks > as tho my palm would go there. (I *did* see a separate mouse [and other add-ons] > for the EEE; that might be a work around.) I sympathize with your desire for a trackpoint (instead of a touchpad), and this is one reason I keep getting ThinkPads for my laptops. Unfortunately, I don't know of any "netbooks" that come with trackpoints. I hope you get an answer on this list so I'll get one as well (with the obvious preference for FreeBSD, or at least *some* BSD Unix, compatibility). -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] Quoth Philip Machanick: "caution: if you write code like this, immediately after you are fired the person assigned to maintaining your code after you leave will resign" -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090909/79f33680/attachment.pgp From noc at hdk5.net Thu Sep 10 00:50:03 2009 From: noc at hdk5.net (Al Plant) Date: Thu Sep 10 00:50:10 2009 Subject: are there any notebooks with mouse-sticks? In-Reply-To: <20090909225711.GA16843@kokopelli.hydra> References: <20090909210833.GA23467@thought.org> <20090909225711.GA16843@kokopelli.hydra> Message-ID: <4AA84D39.9020105@hdk5.net> Chad Perrin wrote: > On Wed, Sep 09, 2009 at 02:08:36PM -0700, Gary Kline wrote: >> I'm looking for a small computer, 7-10" screen that has a ThinkPad-like stick >> to act as the mouse. Pref'ly, no touch-pad. The ASUS and just about every other >> notebook-size device has this kind of scratch-n-sniff pad; unfortunately, it looks >> as tho my palm would go there. (I *did* see a separate mouse [and other add-ons] >> for the EEE; that might be a work around.) > > I sympathize with your desire for a trackpoint (instead of a touchpad), > and this is one reason I keep getting ThinkPads for my laptops. > Unfortunately, I don't know of any "netbooks" that come with trackpoints. > I hope you get an answer on this list so I'll get one as well (with the > obvious preference for FreeBSD, or at least *some* BSD Unix, > compatibility). > Aloha Gary, The HP Mini 1000 has a pad and it is not good. If I accidentally brush it with a finger it acts as a click same as the mouse buttons do. I think this is a terrible feature. ( No way to kill it either I checked. )I thought it was because I have large hands, but Julie has trouble too so she brought out a USB wireless logitech mouse from her stash of stuff and it works fine. Good Luck... ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 6.* - 7.* - 8.* + < email: noc@hdk5.net > "All that's really worth doing is what we do for others."- Lewis Carrol From noc at hdk5.net Thu Sep 10 02:02:24 2009 From: noc at hdk5.net (Al Plant) Date: Thu Sep 10 02:02:30 2009 Subject: DVD-R not recording .iso Message-ID: <4AA85E2E.6010808@hdk5.net> Aloha, on FreeBSD 8 Current I have installed growisofs. I want to burn a DVD R of /path/7.2-RELEASE-p1-i386-disc1.iso . #growisofs -dvd-compat -Z /dev/cd0=/path/7.2-RELEASE-p1-i386-disc1.iso . Got this from FreeBSD handbook. Get no such file or directory error. Whats wrong with the syntax? Is this the correct way to copy an .iso onto a DVD-R for installs? Or can I just use burncd like somebody on the BSD forum said they did? ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 6.* - 7.* - 8.* + < email: noc@hdk5.net > "All that's really worth doing is what we do for others."- Lewis Carrol From amvandemore at gmail.com Thu Sep 10 02:12:44 2009 From: amvandemore at gmail.com (Adam Vande More) Date: Thu Sep 10 02:12:50 2009 Subject: DVD-R not recording .iso In-Reply-To: <4AA85E2E.6010808@hdk5.net> References: <4AA85E2E.6010808@hdk5.net> Message-ID: <6201873e0909091912g8e953eo674db5ffd3dd3972@mail.gmail.com> On Wed, Sep 9, 2009 at 9:02 PM, Al Plant wrote: > Aloha, > > on FreeBSD 8 Current > > I have installed growisofs. I want to burn a DVD R of > /path/7.2-RELEASE-p1-i386-disc1.iso . > > #growisofs -dvd-compat -Z /dev/cd0=/path/7.2-RELEASE-p1-i386-disc1.iso . > > Got this from FreeBSD handbook. Get no such file or directory error. Whats > wrong with the syntax? > > Is this the correct way to copy an .iso onto a DVD-R for installs? > > Or can I just use burncd like somebody on the BSD forum said they did? > > ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 > do you have this in /boot/loader.conf? atapicam_load="YES" -- Adam Vande More From chris at monochrome.org Thu Sep 10 02:35:04 2009 From: chris at monochrome.org (Chris Hill) Date: Thu Sep 10 02:35:12 2009 Subject: DVD-R not recording .iso In-Reply-To: <4AA85E2E.6010808@hdk5.net> References: <4AA85E2E.6010808@hdk5.net> Message-ID: On Wed, 9 Sep 2009, Al Plant wrote: > Aloha, > > on FreeBSD 8 Current > > I have installed growisofs. I want to burn a DVD R of > /path/7.2-RELEASE-p1-i386-disc1.iso . > > #growisofs -dvd-compat -Z /dev/cd0=/path/7.2-RELEASE-p1-i386-disc1.iso . > > Got this from FreeBSD handbook. Get no such file or directory error. Whats > wrong with the syntax? Caveats about anything I say: 1) I'm using 7.2, and b) I'm using +R media. Nothing is wrong with the syntax, although your command above says the ISO file is in a directory called /path. Does the directory exist? Is the ISO in that directory? Permissions OK on everything? Does /dev/cd0 point to your burner? And as Adam said, make sure you have atapicam loaded. I'm also assuming that dot at the end of your line is a period at the end of your sentence, and not part of the command you issued. > Is this the correct way to copy an .iso onto a DVD-R for installs? It burns the ISO to the disk as a premastered disk, which is what you want in this situation. If you wanted to just copy the ISO as a file, you'd replace the = sign with a space. > Or can I just use burncd like somebody on the BSD forum said they did? I have no idea what somebody on the BSD forum said :^) HTH. Hang loose. -- Chris Hill chris@monochrome.org ** [ Busy Expunging <|> ] From alex at mailinglist.ahhyes.net Thu Sep 10 03:03:49 2009 From: alex at mailinglist.ahhyes.net (Alex R) Date: Thu Sep 10 03:03:56 2009 Subject: 7.2-RELEASE/amd64 - weird stuff in dmesg Message-ID: <4AA86C90.7030908@mailinglist.ahhyes.net> Hi everyone, I was wondering whether anyone could shed some light on the following messages I am seeing in dmesg: -------------------- <<33>>aarrpp:: uunnkknnoowwnn hhaarrddwwaarree aaddddress format (0x0000) ress format (0x0000) arp: unakrnpo:w nu nhkanrodwwna rhea raddwdarrees sa dfdorremsast f(o0rxm0a0t0 0()0 x 0000) aanrkpn:o wunn khnaorwdnw ahraer dawdadrree sasd dfroersmsa tf o(r0mxat0 0(00x000)0 0 ) arp: unknown hardware address format (0xarp:0 7u0n0k)n o wn hardware address format (0x0700) aarrpp:: uunnkknnoowwnn hhaarrddwwaarree aaddddrreessss ffoorrmmaatt ((00xx00770000)) -------------------------- Any ideas whats with the jumbled/double letters? Is there something wrong with the machine or is it a bug in the OS? I have seen similar symptoms on SMP enabled boxes when shutting down if 2 processes call kprintf() or printf() at the same time, it results in garbled output. Should i turn a blind eye to this? From kline at thought.org Thu Sep 10 03:07:44 2009 From: kline at thought.org (Gary Kline) Date: Thu Sep 10 03:07:52 2009 Subject: are there any notebooks with mouse-sticks? In-Reply-To: <4AA84D39.9020105@hdk5.net> References: <20090909210833.GA23467@thought.org> <20090909225711.GA16843@kokopelli.hydra> <4AA84D39.9020105@hdk5.net> Message-ID: <20090910030736.GA24330@thought.org> On Wed, Sep 09, 2009 at 02:50:01PM -1000, Al Plant wrote: > Chad Perrin wrote: > >On Wed, Sep 09, 2009 at 02:08:36PM -0700, Gary Kline wrote: > >>I'm looking for a small computer, 7-10" screen that has a ThinkPad-like > >>stick > >>to act as the mouse. Pref'ly, no touch-pad. The ASUS and just about > >>every other > >>notebook-size device has this kind of scratch-n-sniff pad; unfortunately, > >>it looks > >>as tho my palm would go there. (I *did* see a separate mouse [and other > >>add-ons] > >>for the EEE; that might be a work around.) > > > >I sympathize with your desire for a trackpoint (instead of a touchpad), > >and this is one reason I keep getting ThinkPads for my laptops. > >Unfortunately, I don't know of any "netbooks" that come with trackpoints. > >I hope you get an answer on this list so I'll get one as well (with the > >obvious preference for FreeBSD, or at least *some* BSD Unix, > >compatibility). > > > Aloha Gary, > > The HP Mini 1000 has a pad and it is not good. If I accidentally brush > it with a finger it acts as a click same as the mouse buttons do. I > think this is a terrible feature. ( No way to kill it either I checked. > )I thought it was because I have large hands, but Julie has trouble too > so she brought out a USB wireless logitech mouse from her stash of stuff > and it works fine. > Aloha Al [and Chad also], I fat-finger any of these mico-telephone keys[!]; it's worse yet if my finger spasms or even twitches. Really, with one hand, my hand has to go smack in the middle of these small computers. Which is where the touch pads are according to the pix. Are you saying that you can use your HP with the wireless mouse and still miss the pad most of the time? I checked out the ASUS extras, including the mouse and optical drive. Anybody on-list know if the EE touchpad can be completely disabled via the hardware setup/config? gary > Good Luck... > > ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 > + http://hawaiidakine.com + http://freebsdinfo.org + > + http://aloha50.net - Supporting - FreeBSD 6.* - 7.* - 8.* + > < email: noc@hdk5.net > > "All that's really worth doing is what we do for others."- Lewis Carrol > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php From noc at hdk5.net Thu Sep 10 03:27:13 2009 From: noc at hdk5.net (Al Plant) Date: Thu Sep 10 03:27:20 2009 Subject: are there any notebooks with mouse-sticks? In-Reply-To: <20090910030736.GA24330@thought.org> References: <20090909210833.GA23467@thought.org> <20090909225711.GA16843@kokopelli.hydra> <4AA84D39.9020105@hdk5.net> <20090910030736.GA24330@thought.org> Message-ID: <4AA87210.8070306@hdk5.net> Gary Kline wrote: > On Wed, Sep 09, 2009 at 02:50:01PM -1000, Al Plant wrote: >> Chad Perrin wrote: >>> On Wed, Sep 09, 2009 at 02:08:36PM -0700, Gary Kline wrote: >>>> I'm looking for a small computer, 7-10" screen that has a ThinkPad-like >>>> stick >>>> to act as the mouse. Pref'ly, no touch-pad. The ASUS and just about >>>> every other >>>> notebook-size device has this kind of scratch-n-sniff pad; unfortunately, >>>> it looks >>>> as tho my palm would go there. (I *did* see a separate mouse [and other >>>> add-ons] >>>> for the EEE; that might be a work around.) >>> I sympathize with your desire for a trackpoint (instead of a touchpad), >>> and this is one reason I keep getting ThinkPads for my laptops. >>> Unfortunately, I don't know of any "netbooks" that come with trackpoints. >>> I hope you get an answer on this list so I'll get one as well (with the >>> obvious preference for FreeBSD, or at least *some* BSD Unix, >>> compatibility). >>> >> Aloha Gary, >> >> The HP Mini 1000 has a pad and it is not good. If I accidentally brush >> it with a finger it acts as a click same as the mouse buttons do. I >> think this is a terrible feature. ( No way to kill it either I checked. >> )I thought it was because I have large hands, but Julie has trouble too >> so she brought out a USB wireless logitech mouse from her stash of stuff >> and it works fine. >> > > Aloha Al [and Chad also], > > I fat-finger any of these mico-telephone keys[!]; it's worse yet if > my finger spasms or even twitches. Really, with one hand, my hand > has to go smack in the middle of these small computers. Which is > where the touch pads are according to the pix. > > Are you saying that you can use your HP with the wireless mouse and > still miss the pad most of the time? > > I checked out the ASUS extras, including the mouse and optical drive. > Anybody on-list know if the EE touchpad can be completely disabled > via the hardware setup/config? > > gary > > > >> Good Luck... >> >> ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 >> + http://hawaiidakine.com + http://freebsdinfo.org + >> + http://aloha50.net - Supporting - FreeBSD 6.* - 7.* - 8.* + >> < email: noc@hdk5.net > >> "All that's really worth doing is what we do for others."- Lewis Carrol >> >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > Aloha, I dont use the keypad at all. Keys and Mouse only. The HP Mini touchpad is centered below the keyboard, but the keyboard had regular sized keys which is good. I think if you have a wireless mouse on any of them you could cover the touchpad with something like card stock or plastic so the pressure or proximity of a hand would not set it off. It is really bad that you cant turn off the feature that causes the false clicks etc. Have fun... ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 6.* - 7.* - 8.* + < email: noc@hdk5.net > "All that's really worth doing is what we do for others."- Lewis Carrol From kline at thought.org Thu Sep 10 06:03:28 2009 From: kline at thought.org (Gary Kline) Date: Thu Sep 10 06:03:36 2009 Subject: are there any notebooks with mouse-sticks? In-Reply-To: <4AA87210.8070306@hdk5.net> References: <20090909210833.GA23467@thought.org> <20090909225711.GA16843@kokopelli.hydra> <4AA84D39.9020105@hdk5.net> <20090910030736.GA24330@thought.org> <4AA87210.8070306@hdk5.net> Message-ID: <20090910060322.GA24818@thought.org> On Wed, Sep 09, 2009 at 05:27:12PM -1000, Al Plant wrote: > Gary Kline wrote: > > > Aloha, > I dont use the keypad at all. Keys and Mouse only. > > The HP Mini touchpad is centered below the keyboard, but the keyboard > had regular sized keys which is good. I think if you have a wireless > mouse on any of them you could cover the touchpad with something like > card stock or plastic so the pressure or proximity of a hand would not > set it off. > > It is really bad that you cant turn off the feature that causes the > false clicks etc. > well, i'd be willing to cut the wire to the touchpad--or have somebody do it. thing is, getting the schematics might just about be impossible... . > Have fun... yup; life is a bowl of yuks, right? :-) > > ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 > + http://hawaiidakine.com + http://freebsdinfo.org + > + http://aloha50.net - Supporting - FreeBSD 6.* - 7.* - 8.* + > < email: noc@hdk5.net > > "All that's really worth doing is what we do for others."- Lewis Carrol > -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php From freebsd at edvax.de Thu Sep 10 08:25:11 2009 From: freebsd at edvax.de (Polytropon) Date: Thu Sep 10 08:25:18 2009 Subject: VirtualBox not opening... from 7.2 STABLE, (GUI KDE 3.5) In-Reply-To: References: Message-ID: <20090910102508.f7aac2f1.freebsd@edvax.de> On Wed, 9 Sep 2009 17:10:11 +0000, Jeronimo Calvo wrote: > But I am getting following error when launched from the terminal: > > > # VirtualBox > > No protocol specified > > Failed to open the X11 display! Of course. You are trying to write to the X display as root, but the display belongs to !root (non-root user, i. e. you). There's a quick, but very unelegant way to solve this problem: # setenv DISPLAY :0.0 # VirtualBox The program should then run. If your root shell is a different one than the standard C shell, have a look at its manpage about how to modify environment variables. You need DISPLAY to point at the local device, which is :0.0 in this case. There are better ways, such as using xauth. > When used the Icon created on System>VirtualBox (Using KDE 3.5) > [...] > Seems to open for few secs... and suddenly disappears... Maybe it has to be run as root? In general, it's not a good idea to run X applications as root. > Any ideas? I can only provide some quite generic advices, because I never used VirtualBox. :-( -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From freebsd at edvax.de Thu Sep 10 08:29:27 2009 From: freebsd at edvax.de (Polytropon) Date: Thu Sep 10 08:29:35 2009 Subject: are there any notebooks with mouse-sticks? In-Reply-To: <20090909210833.GA23467@thought.org> References: <20090909210833.GA23467@thought.org> Message-ID: <20090910102925.1ea9ffd3.freebsd@edvax.de> On Wed, 9 Sep 2009 14:08:36 -0700, Gary Kline wrote: > > I'm looking for a small computer, 7-10" screen that has a ThinkPad-like stick > to act as the mouse. This "stick" is called a TrackPoint, as far as I remember. It has been common in portable computers built by IB and Toshiba. > Pref'ly, no touch-pad. Sadly, you will find mostly that (crap) in "modern" devices... > The ASUS and just about every other > notebook-size device has this kind of scratch-n-sniff pad; [...] Nice name. Other names: Fingerprint sensor and coffee cup warmer. :-) > Any clues? Look for IBM / Lenovo, maybe they still employ this fantastic and easy to use pointing device. Allthough it would completely make sense to use a Trackpoint for netbook class computers (litte real estate consumption, minimal moving from "hand in typing position" to "hand in pointing position"), it seems that the worst solution always prevails. I haven't seen Trackpoints on "modern" stuff yet, and I'm quite about thinking that it doesn't exist anymore. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From freebsd at edvax.de Thu Sep 10 08:42:07 2009 From: freebsd at edvax.de (Polytropon) Date: Thu Sep 10 08:42:14 2009 Subject: DVD-R not recording .iso In-Reply-To: References: <4AA85E2E.6010808@hdk5.net> Message-ID: <20090910104205.e68909c7.freebsd@edvax.de> On Wed, 9 Sep 2009 22:33:27 -0400 (EDT), Chris Hill wrote: > On Wed, 9 Sep 2009, Al Plant wrote: > > > Aloha, > > > > on FreeBSD 8 Current > > > > I have installed growisofs. I want to burn a DVD R of > > /path/7.2-RELEASE-p1-i386-disc1.iso . > > > > #growisofs -dvd-compat -Z /dev/cd0=/path/7.2-RELEASE-p1-i386-disc1.iso . > > > > Got this from FreeBSD handbook. Get no such file or directory error. Whats > > wrong with the syntax? > > Nothing is wrong with the syntax, although your command above says the ISO > file is in a directory called /path. Does the directory exist? Is the ISO > in that directory? Permissions OK on everything? Does /dev/cd0 point to > your burner? And as Adam said, make sure you have atapicam loaded. The nampage of growisofs lists /dev/dvd in its EXAMPLES section. That's why I'm using link cd0 dvd in /etc/devfs.conf, so you can easily use the examples for your own command purposes. Note that for accessing the ATAPICAM facility, it may be neccessary to have at least +w for group (operator) for the /dev/cd and the /dev/pass device the DVD writer is refered by. Use the camcontrol command to check: % camcontrol devlist at scbus2 target 0 lun 0 (cd0,pass1) % ll /dev/cd0 /dev/pass1 crw-rw-r-- 1 root operator 0, 116 Sep 10 10:10 /dev/cd0 crw-rw---- 1 root operator 0, 115 Sep 10 10:10 /dev/pass1 % ll /dev/dvd lrwxr-xr-x 1 root wheel 3 Sep 10 10:10 /dev/dvd@ -> cd0 > > Is this the correct way to copy an .iso onto a DVD-R for installs? > > It burns the ISO to the disk as a premastered disk, which is what you want > in this situation. If you wanted to just copy the ISO as a file, you'd > replace the = sign with a space. In the last case you mentioned, growisofs would create an ISO-9660 file systen on the DVD which then contains one .iso file. That's possible, but won't create the result the OP wanted, I think. > > Or can I just use burncd like somebody on the BSD forum said they did? > > I have no idea what somebody on the BSD forum said :^) The burncd command usually refers to burning CDs, not DVDs, allthough it may be possible that it can be used for DVDs, too. But I'm not familiar with it anymore, because I use growisofs for DVDs and cdrecord / cdrdao for CDs; both of them use the ATAPICAM facility. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From alexbestms at math.uni-muenster.de Thu Sep 10 10:09:27 2009 From: alexbestms at math.uni-muenster.de (Alexander Best) Date: Thu Sep 10 10:09:34 2009 Subject: device nodes in usb2 stack Message-ID: i was wondering why some device nodes appear as regular files under /dev (like ulpt or da e.g.) and some don't? if i attach my usb dongle device i get this dmesg output: ugen1.2: at usbus1 ubt0: on usbus1 but no device node gets created under /dev. however the following lines i have in my /etc/devd.conf work just as expected: # When a USB Bluetooth dongle appears activate it attach 100 { device-name "ubt[0-9]+"; action "/etc/rc.d/bluetooth quietstart $device-name"; action "/usr/local/bin/obexapp -r /var/spool/obex -s -C1"; }; detach 100 { device-name "ubt[0-9]+"; action "/etc/rc.d/bluetooth quietstop $device-name"; action "/usr/bin/killall obexapp"; }; the device works perfectly, but i'm still wondering why no device node gets created in /dev. i always thought one of the main unix philosophies was: "everything is a file!". cheers. alex From mkhitrov at gmail.com Thu Sep 10 12:19:01 2009 From: mkhitrov at gmail.com (Maxim Khitrov) Date: Thu Sep 10 12:19:07 2009 Subject: Correct way to configure an IP range for firewall In-Reply-To: <4AA7FC04.4040508@infracaninophile.co.uk> References: <26ddd1750909091144x447fb4bt93e4bdc56d7a9202@mail.gmail.com> <4AA7FC04.4040508@infracaninophile.co.uk> Message-ID: <26ddd1750909100518m59de30a4vaffc4e946780e812@mail.gmail.com> On Wed, Sep 9, 2009 at 3:03 PM, Matthew Seaman wrote: > Maxim Khitrov wrote: > >> Am I correct in assuming that I just need to add four >> ifconfig_vr0_alias[0-3] lines to rc.conf? What happens if in the >> future we get a much bigger IP block, is there a more efficient way of >> accomplishing the same thing? I don't actually want the firewall to >> consider itself the final destination for any of the additional IPs, >> it just needs to pass them to pf for nat and filtering. > > Assuming your assigned network is 192.0.2.24/29: > > ipv4_addrs_vr0="192.0.2.25-30" > > See rc.conf(5) for details. > > ? ? ? ?Cheers, > > ? ? ? ?Matthew Thanks! I looked through /etc/defaults/rc.conf and somehow missed ipv4_addrs. So if I understand the man page correctly, a single ipv4_addrs_vr0="x.x.x.9-13/29" line can replace both the aliases and the one ifconfig_vr0 line. Is that correct? I'm not certain because the man page states that "an ifconfig_ variable is also assumed to exist for each value of interface," but everything seems to be working fine without it. - Max From pyp125 at gmail.com Thu Sep 10 13:02:01 2009 From: pyp125 at gmail.com (Ley) Date: Thu Sep 10 13:02:08 2009 Subject: About DHCP Message-ID: I heared that freebsd will boots very slow if enables dhcp. Is that true? I am a adsl user and I can not get a certain IP, how can I make freebsd boots fast? From wmoran at potentialtech.com Thu Sep 10 13:16:35 2009 From: wmoran at potentialtech.com (Bill Moran) Date: Thu Sep 10 13:16:42 2009 Subject: About DHCP In-Reply-To: References: Message-ID: <20090910091633.a220e2c3.wmoran@potentialtech.com> In response to Ley : > I heared that freebsd will boots very slow if enables dhcp. Is that true? I > am a adsl user and I can not get a certain IP, how can I make freebsd boots > fast? If DHCP makes the system boot slowly, then it's not FreeBSD's fault. DHCP addresses are acquired very quickly if the DHCP server is working properly and not overloaded. Even with a slow DHCP server, I've seldom seen it take longer than a few seconds. What is your usage case that this is such a concern? -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/ From jeronimocalvop at googlemail.com Thu Sep 10 14:12:11 2009 From: jeronimocalvop at googlemail.com (Jeronimo Calvo) Date: Thu Sep 10 14:12:17 2009 Subject: VirtualBox not opening... from 7.2 STABLE, (GUI KDE 3.5) In-Reply-To: <20090910102508.f7aac2f1.freebsd@edvax.de> References: <20090910102508.f7aac2f1.freebsd@edvax.de> Message-ID: Great!! I will try running the app as a regular user, as I did add myself on the virtualbox group... Should be alright from there... I'll let u know as soon as i finish my portupgrade -a (thats taking year and a half) lol Thanks!!! 2009/9/10 Polytropon : > On Wed, 9 Sep 2009 17:10:11 +0000, Jeronimo Calvo wrote: >> But I am getting following error when launched from the terminal: >> >> > # VirtualBox >> > No protocol specified >> > Failed to open the X11 display! > > Of course. You are trying to write to the X display as root, but > the display belongs to !root (non-root user, i. e. you). > > There's a quick, but very unelegant way to solve this problem: > > ? ? ? ?# setenv DISPLAY :0.0 > ? ? ? ?# VirtualBox > > The program should then run. If your root shell is a different > one than the standard C shell, have a look at its manpage about > how to modify environment variables. > > You need DISPLAY to point at the local device, which is :0.0 in > this case. > > There are better ways, such as using xauth. > > > >> When used the Icon created on System>VirtualBox (Using KDE 3.5) >> [...] >> Seems to open for few secs... and suddenly disappears... > > Maybe it has to be run as root? In general, it's not a good idea > to run X applications as root. > > > >> Any ideas? > > I can only provide some quite generic advices, because I never > used VirtualBox. :-( > > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > From mailing at ekomedya.com Thu Sep 10 15:18:41 2009 From: mailing at ekomedya.com (=?utf-8?Q?Eko_Bilgisayar_ve_=C4=B0leti=C5=9Fim_Hizmetleri_Ltd=2E_=C5=9Eti?=) Date: Thu Sep 10 15:19:49 2009 Subject: Turkey Calling You To Visit - The Trade SHOW- In Las Vegas Message-ID: <01c380c2472b8f450e7360446ab41a5e@localhost.localdomain> [http://www.turkeycalling.us] [http://www.turkeycalling.us] [http://www.turkeycalling.us] [http://www.turkeycalling.us/turkey-fam/turkeyfam.htm] Global Access Travel invites you to the Tradeshow in Las Vegas on September 13-15, 2009. Please visit us to get more information about our organization and services at our booth. If you fill the registration form or leave the business card when you visit us at our booth, you might be lucky visitor who is going to win our daily draw prize; Free inspection trip to Turkey. Yasal Uyar?; Bu e-posta, sadece adreste belirtilen kisi veya kurulusun kullanimini hedeflemekte olup,mesajda yer alan bilgiler kisiye ozel ve gizli olabilir, yasalar ya da anlasmalar geregi ?c?nc? kisiler ile paylasilmasi m?mk?n olmayabilir.Mesaji alan kisi, mesajin g?nderilmek istendigi kisi veya kurulus degilse,bu mesaji yaymak,dagitmak veya kopyalamak yasaktir Mesaj tarafiniza yanlislikla ulasmissa l?tfen mesaji geri g?nderiniz ve sisteminizden siliniz. Global Access Travel bu mesajin icerigi ile ilgili olarak hicbir hukuksal sorumlulugu kabul etmez Disclaimer This e-mail communication is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and that may not be made public by law or agreement. If the recipient of this message is not the intended recipient or entity, you are hereby notified that any further dissemination, distribution or copying of this information is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete it from your system. The Global Access Traveldoes not accept legal responsibility for the contents of this message. Yasal Uyar?; Bu e-posta, sadece adreste belirtilen kisi veya kurulusun kullanimini hedeflemekte olup,mesajda yer alan bilgiler kisiye ozel ve gizli olabilir, yasalar ya da anlasmalar geregi ?c?nc? kisiler ile paylasilmasi m?mk?n olmayabilir.Mesaji alan kisi, mesajin g?nderilmek istendigi kisi veya kurulus degilse,bu mesaji yaymak,dagitmak veya kopyalamak yasaktir Mesaj tarafiniza yanlislikla ulasmissa l?tfen mesaji geri g?nderiniz ve sisteminizden siliniz. Global Access Travel bu mesajin icerigi ile ilgili olarak hicbir hukuksal sorumlulugu kabul etmez Disclaimer This e-mail communication is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and that may not be made public by law or agreement. If the recipient of this message is not the intended recipient or entity, you are hereby notified that any further dissemination, distribution or copying of this information is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete it from your system. The Global Access Traveldoes not accept legal responsibility for the contents of this message. Yasal Uyar?; Bu e-posta, sadece adreste belirtilen kisi veya kurulusun kullanimini hedeflemekte olup,mesajda yer alan bilgiler kisiye ozel ve gizli olabilir, yasalar ya da anlasmalar geregi ?c?nc? kisiler ile paylasilmasi m?mk?n olmayabilir.Mesaji alan kisi, mesajin g?nderilmek istendigi kisi veya kurulus degilse,bu mesaji yaymak,dagitmak veya kopyalamak yasaktir Mesaj tarafiniza yanlislikla ulasmissa l?tfen mesaji geri g?nderiniz ve sisteminizden siliniz. Global Access Travel bu mesajin icerigi ile ilgili olarak hicbir hukuksal sorumlulugu kabul etmez Disclaimer This e-mail communication is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and that may not be made public by law or agreement. If the recipient of this message is not the intended recipient or entity, you are hereby notified that any further dissemination, distribution or copying of this information is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete it from your system. The Global Access Traveldoes not accept legal responsibility for the contents of this message. This message was sent by: TURKEY CALLING YOU TO VISIT "THE TRADE SHOW" IN LAS VEGAS, N?zhetiye Cad, istanbul, Besiktas 34357, Turkey Manage your subscription: http://app.icontact.com/icp/mmail-mprofile.pl?r=47622558&l=82253&s=TXZM&m=587775&c=305227 From info at manualshark.org Thu Sep 10 15:25:13 2009 From: info at manualshark.org (Arvin Zuberbuehler) Date: Thu Sep 10 15:25:19 2009 Subject: Sites using FreeBSD Message-ID: Hi there, Is there a chance to get listed under "Sites using FreeBSD" http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/nutshell.html#INTRODUCTION-NUTSHELL-USERS? Or are there any possibilities for advertisements on any pages of http://www.freebsd.org/ ? Please give me a short feedback. Arvin From perrin at apotheon.com Thu Sep 10 16:51:34 2009 From: perrin at apotheon.com (Chad Perrin) Date: Thu Sep 10 16:51:41 2009 Subject: are there any notebooks with mouse-sticks? In-Reply-To: <20090910102925.1ea9ffd3.freebsd@edvax.de> References: <20090909210833.GA23467@thought.org> <20090910102925.1ea9ffd3.freebsd@edvax.de> Message-ID: <20090910165129.GA20641@kokopelli.hydra> On Thu, Sep 10, 2009 at 10:29:25AM +0200, Polytropon wrote: > On Wed, 9 Sep 2009 14:08:36 -0700, Gary Kline wrote: > > > > I'm looking for a small computer, 7-10" screen that has a ThinkPad-like stick > > to act as the mouse. > > This "stick" is called a TrackPoint, as far as I remember. It has been > common in portable computers built by IB and Toshiba. I assume that IB was meant to be IBM. Lenovo bought IBM's PC division a few years ago, and now produces ThinkPads -- which come with trackpoints. > > > Pref'ly, no touch-pad. > > Sadly, you will find mostly that (crap) in "modern" devices... I just turn off the touchpad in my ThinkPad's BIOS/CMOS settings. That's pretty much the *first* thing I do with a new ThinkPad, before I even install a halfway decent operating system on it. I have a tendency to accidentaly move the mouse around while typing, otherwise. > > > The ASUS and just about every other > > notebook-size device has this kind of scratch-n-sniff pad; [...] > > Nice name. Other names: Fingerprint sensor and coffee cup warmer. :-) Yeah . . . how warm the touchpad gets is a pretty good heuristic measure of how hot the laptop is running, at least on my ThinkPad. > > > Any clues? > > Look for IBM / Lenovo, maybe they still employ this fantastic and > easy to use pointing device. Allthough it would completely make sense > to use a Trackpoint for netbook class computers (litte real estate > consumption, minimal moving from "hand in typing position" to "hand > in pointing position"), it seems that the worst solution always > prevails. I haven't seen Trackpoints on "modern" stuff yet, and I'm > quite about thinking that it doesn't exist anymore. Unfortunately, the OP was asking about netbook-sized computers, and last I checked the only netbooks offered by Lenovo are IdeaPads -- which are exactly like ThinkPads, except the construction is a little cheaper and the pointing device is always a touchpad. Otherwise, however, I second the motion: ThinkPads are generally held to a higher standard of quality than the rest of the laptops in the PC world, tend to be well-supported by open source operating systems, and come with trackpoints. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] Quoth Philip Machanick: "caution: if you write code like this, immediately after you are fired the person assigned to maintaining your code after you leave will resign" -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090910/25480b1d/attachment.pgp From m.seaman at infracaninophile.co.uk Thu Sep 10 17:25:22 2009 From: m.seaman at infracaninophile.co.uk (Matthew Seaman) Date: Thu Sep 10 17:25:30 2009 Subject: Correct way to configure an IP range for firewall In-Reply-To: <26ddd1750909100518m59de30a4vaffc4e946780e812@mail.gmail.com> References: <26ddd1750909091144x447fb4bt93e4bdc56d7a9202@mail.gmail.com> <4AA7FC04.4040508@infracaninophile.co.uk> <26ddd1750909100518m59de30a4vaffc4e946780e812@mail.gmail.com> Message-ID: <4AA9367A.5070208@infracaninophile.co.uk> Maxim Khitrov wrote: > On Wed, Sep 9, 2009 at 3:03 PM, Matthew > Seaman wrote: >> Maxim Khitrov wrote: >> >>> Am I correct in assuming that I just need to add four >>> ifconfig_vr0_alias[0-3] lines to rc.conf? What happens if in the >>> future we get a much bigger IP block, is there a more efficient way of >>> accomplishing the same thing? I don't actually want the firewall to >>> consider itself the final destination for any of the additional IPs, >>> it just needs to pass them to pf for nat and filtering. >> Assuming your assigned network is 192.0.2.24/29: >> >> ipv4_addrs_vr0="192.0.2.25-30" >> >> See rc.conf(5) for details. >> >> Cheers, >> >> Matthew > > Thanks! I looked through /etc/defaults/rc.conf and somehow missed > ipv4_addrs. So if I understand the man page correctly, a single > ipv4_addrs_vr0="x.x.x.9-13/29" line can replace both the aliases and > the one ifconfig_vr0 line. Is that correct? I'm not certain because > the man page states that "an ifconfig_ variable is also > assumed to exist for each value of interface," but everything seems to > be working fine without it. Correct. However, the only things you can set with ipv4_addrs_ifX are IP numbers and netmasks. If you want to use DHCP or WPA or to fix the port to a particular duplex setting or to toggle various other controller specific settings, then the ifconfig_ifX{,_aliasY} variables are your friends. You can combine both variable forms for configuring the same interface, although this works best if you do all alias IP setup using ipv4_addrs_ifX and just use ifconfig_ifX to set general properties on the interface. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090910/7365107c/signature.pgp From mdc at prgmr.com Thu Sep 10 17:55:01 2009 From: mdc at prgmr.com (Michael David Crawford) Date: Thu Sep 10 17:55:10 2009 Subject: What I'd Like To See In A Netbook In-Reply-To: <20090910165129.GA20641@kokopelli.hydra> References: <20090909210833.GA23467@thought.org> <20090910102925.1ea9ffd3.freebsd@edvax.de> <20090910165129.GA20641@kokopelli.hydra> Message-ID: <4AA93D6A.2050704@prgmr.com> Just in case there are any netbook manufacturers listening in, or employees of such manufacturers: What I'd really like to see is a netbook with a regular size screen. I've been shopping around some, and have so far been unable to find what I desire. What I mean by that is that I want a notebook with a low-power, inexpensive processor and modest memory. That will work fine if one runs an operating system such as FreeBSD. But I want at least a fourteen inch screen, preferably fifteen inch. The best advice anyone has been able to give me is to buy a "budget" laptop, or an older model, perhaps used. The older Apple PowerPC laptops are the closest to what I want. What I want to do with this "big netbook" is to troll community websites while hanging out at cafes, as well as working on my own websites, which are predominantly text - lots of essays and articles. I used to have a twelve inch Apple iBook, and it did work for me, but I now vastly prefer my fifteen inch MacBook Pro. The problem with the MacBook Pro is that it is a very expensive unit, it is the main source of my livelihood, and I fear it being damaged or stolen if I use it to troll all those community websites using the WiFi at Starbucks. So what I want is a second notebook just for cafe use, so I can leave my MacBook Pro at home. This "big netbook" needs to be inexpensive enough that it wouldn't be that big a deal if it were stolen, or seriously damaged. Just viewing web pages or writing in a text editor shouldn't require a lot of CPU power or memory. It wouldn't need CD/DVD or floppy drives. It wouldn't need Bluetooth, just 802.11 networking. It wouldn't need a webcam built into the lid. It wouldn't need a very big hard drive. Because the electronics would be low-power, it wouldn't need a fan. An Atom or ARM processor would be just fine for such a unit. If it were running FreeBSD or Linux, I expect that 512 MB would be *far* more than enough memory. I'm pretty sure that if someone were to actually produce such a "big netbook", there would be lots more potential customers than just myself. I have actually considered purchasing one of the netbooks of today, but after looking them over, I have to say that their tiny screens would be very disruptive to my writing Muse. Thank You All For Humouring Me On This. Mike -- Michael David Crawford mdc@prgmr.com prgmr.com - We Don't Assume You Are Stupid. Xen-Powered Virtual Private Servers: http://prgmr.com/xen From afmcc at btinternet.com Thu Sep 10 18:15:19 2009 From: afmcc at btinternet.com (Tony McC) Date: Thu Sep 10 18:15:26 2009 Subject: DVD drive not detected Message-ID: <20090910191518.2e681b82@elena> Hello, I am currently using 8.0-BETA4 amd64 and I noticed yesterday that my PC's internal DVD reader/writer is not detected at boot time. I'm not sure whether or not this was the case with BETA3 since I don't use the drive all that often. It was certainly working ok with 7.2-STABLE though. I have copied and pasted the messages from dmesg.boot below, in case that is of help in diagnosing the problem. If I remember correctly, it used to appear as /dev/acd0. Thanks in advance for any suggestions. Tony dmesg.boot ---------- Copyright (c) 1992-2009 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 8.0-BETA4 #11: Wed Sep 9 10:55:38 BST 2009 root@elena.home:/usr/obj/usr/src/sys/ELENA Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz (3000.00-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x1067a Stepping = 10 Features=0xbfebfbff Features2=0x408e3fd AMD Features=0x20000800 AMD Features2=0x1 TSC: P-state invariant real memory = 4294967296 (4096 MB) avail memory = 4112650240 (3922 MB) ACPI APIC Table: <071508 APIC1340> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: <071508 RSDT1340> on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of fee00000, 1000 (3) failed acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, cff00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 0.1 (no driver attached) pci0: at device 1.0 (no driver attached) pci0: at device 1.1 (no driver attached) pci0: at device 1.2 (no driver attached) pci0: at device 1.3 (no driver attached) pci0: at device 1.4 (no driver attached) pci0: at device 1.5 (no driver attached) pci0: at device 1.6 (no driver attached) pci0: at device 2.0 (no driver attached) isab0: port 0x4f00-0x4fff at device 3.0 on pci0 isa0: on isab0 pci0: at device 3.1 (no driver attached) pci0: at device 3.2 (no driver attached) pci0: at device 3.3 (no driver attached) pci0: at device 3.4 (no driver attached) ohci0: mem 0xf9f7f000-0xf9f7ffff irq 22 at device 4.0 on pci0 ohci0: [ITHREAD] usbus0: on ohci0 ehci0: mem 0xf9f7ec00-0xf9f7ecff irq 23 at device 4.1 on pci0 ehci0: [ITHREAD] usbus1: EHCI version 1.0 usbus1: on ehci0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 8.0 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] hdac0: mem 0xf9f78000-0xf9f7bfff irq 20 at device 9.0 on pci0 hdac0: HDA Driver Revision: 20090624_0136 hdac0: [ITHREAD] pcib1: at device 10.0 on pci0 pci1: on pcib1 pcib2: at device 11.0 on pci0 pci2: on pcib2 vgapci0: port 0xec00-0xec7f mem 0xfd000000-0xfdffffff,0xd0000000-0xdfffffff,0xfa000000-0xfbffffff irq 16 at device 0.0 on pci2 pcib3: at device 12.0 on pci0 pci3: on pcib3 pcib4: at device 13.0 on pci0 pci4: on pcib4 atapci1: port 0xd480-0xd487,0xd400-0xd403,0xd080-0xd087,0xd000-0xd003,0xcc00-0xcc0f mem 0xf9f7c000-0xf9f7dfff irq 21 at device 14.0 on pci0 atapci1: [ITHREAD] atapci1: AHCI v1.10 controller with 4 3Gbps ports, PM supported ata2: on atapci1 ata2: [ITHREAD] ata3: on atapci1 ata3: [ITHREAD] ata4: on atapci1 ata4: [ITHREAD] ata5: on atapci1 ata5: [ITHREAD] nfe0: port 0xc880-0xc887 mem 0xf9f77000-0xf9f77fff,0xf9f7e800-0xf9f7e8ff,0xf9f7e400-0xf9f7e40f irq 22 at device 15.0 on pci0 miibus0: on nfe0 rlphy0: PHY 1 on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto nfe0: Ethernet address: 00:24:21:1d:e3:e3 nfe0: [FILTER] nfe0: [FILTER] nfe0: [FILTER] nfe0: [FILTER] nfe0: [FILTER] nfe0: [FILTER] nfe0: [FILTER] nfe0: [FILTER] acpi_button0: on acpi0 uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart0: [FILTER] atrtc0: port 0x70-0x71 irq 8 on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: [ITHREAD] psm0: model MouseMan+, device ID 0 cpu0: on acpi0 ACPI Warning: Incorrect checksum in table [OEMB] - BC, should be BB 20090521 tbutils-275 coretemp0: on cpu0 est0: on cpu0 p4tcc0: on cpu0 cpu1: on acpi0 coretemp1: on cpu1 est1: on cpu1 p4tcc1: on cpu1 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ppc0: cannot reserve I/O port range Timecounters tick every 1.000 msec usbus0: 12Mbps Full Speed USB v1.0 usbus1: 480Mbps High Speed USB v2.0 ad4: 476940MB at ata2-master SATA300 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ad6: 476940MB at ata3-master SATA300 uhub0: 8 ports with 8 removable, self powered hdac0: HDA Codec #0: Realtek ALC888 pcm0: at cad 0 nid 1 on hdac0 pcm1: at cad 0 nid 1 on hdac0 pcm2: at cad 0 nid 1 on hdac0 SMP: AP CPU #1 Launched! Root mount waiting for: usbus1 Root mount waiting for: usbus1 Root mount waiting for: usbus1 uhub1: 8 ports with 8 removable, self powered Root mount waiting for: usbus1 ugen0.2: at usbus0 ulpt0: on usbus0 ulpt0: using bi-directional mode ugen1.2: at usbus1 umass0: on usbus1 umass0: SCSI over Bulk-Only; quirks = 0x0000 Root mount waiting for: usbus1 umass0:3:0:-1: Attached to scbus3 Root mount waiting for: usbus1 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-4 device da0: 40.000MB/s transfers da0: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C) Trying to mount root from ufs:/dev/ad6s1a WARNING: / was not properly dismounted ugen0.3: at usbus0 WARNING: /home was not properly dismounted WARNING: /tmp was not properly dismounted WARNING: /usr was not properly dismounted WARNING: /var was not properly dismounted From jerrymc at msu.edu Thu Sep 10 18:16:34 2009 From: jerrymc at msu.edu (Jerry McAllister) Date: Thu Sep 10 18:16:42 2009 Subject: What I'd Like To See In A Netbook In-Reply-To: <4AA93D6A.2050704@prgmr.com> References: <20090909210833.GA23467@thought.org> <20090910102925.1ea9ffd3.freebsd@edvax.de> <20090910165129.GA20641@kokopelli.hydra> <4AA93D6A.2050704@prgmr.com> Message-ID: <20090910175854.GA27659@gizmo.acns.msu.edu> On Thu, Sep 10, 2009 at 10:54:50AM -0700, Michael David Crawford wrote: > Just in case there are any netbook manufacturers listening in, or > employees of such manufacturers: > > What I'd really like to see is a netbook with a regular size screen. > I've been shopping around some, and have so far been unable to find what > I desire. > > What I mean by that is that I want a notebook with a low-power, > inexpensive processor and modest memory. That will work fine if one > runs an operating system such as FreeBSD. > > But I want at least a fourteen inch screen, preferably fifteen inch. That ain't a netbook. That is a fullsize laptop. ////jerry > > The best advice anyone has been able to give me is to buy a "budget" > laptop, or an older model, perhaps used. The older Apple PowerPC > laptops are the closest to what I want. > > What I want to do with this "big netbook" is to troll community websites > while hanging out at cafes, as well as working on my own websites, > which are predominantly text - lots of essays and articles. > > I used to have a twelve inch Apple iBook, and it did work for me, but I > now vastly prefer my fifteen inch MacBook Pro. The problem with the > MacBook Pro is that it is a very expensive unit, it is the main source > of my livelihood, and I fear it being damaged or stolen if I use it to > troll all those community websites using the WiFi at Starbucks. > > So what I want is a second notebook just for cafe use, so I can leave my > MacBook Pro at home. This "big netbook" needs to be inexpensive enough > that it wouldn't be that big a deal if it were stolen, or seriously damaged. > > Just viewing web pages or writing in a text editor shouldn't require a > lot of CPU power or memory. It wouldn't need CD/DVD or floppy drives. > It wouldn't need Bluetooth, just 802.11 networking. It wouldn't need a > webcam built into the lid. It wouldn't need a very big hard drive. > Because the electronics would be low-power, it wouldn't need a fan. > > An Atom or ARM processor would be just fine for such a unit. If it were > running FreeBSD or Linux, I expect that 512 MB would be *far* more than > enough memory. > > I'm pretty sure that if someone were to actually produce such a "big > netbook", there would be lots more potential customers than just myself. > I have actually considered purchasing one of the netbooks of today, > but after looking them over, I have to say that their tiny screens would > be very disruptive to my writing Muse. > > Thank You All For Humouring Me On This. > > Mike > -- > Michael David Crawford > mdc@prgmr.com > > prgmr.com - We Don't Assume You Are Stupid. > > Xen-Powered Virtual Private Servers: http://prgmr.com/xen > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" From freebsd-questions-local at be-well.ilk.org Thu Sep 10 18:34:46 2009 From: freebsd-questions-local at be-well.ilk.org (Lowell Gilbert) Date: Thu Sep 10 18:34:53 2009 Subject: What I'd Like To See In A Netbook In-Reply-To: <4AA93D6A.2050704@prgmr.com> (Michael David Crawford's message of "Thu, 10 Sep 2009 10:54:50 -0700") References: <20090909210833.GA23467@thought.org> <20090910102925.1ea9ffd3.freebsd@edvax.de> <20090910165129.GA20641@kokopelli.hydra> <4AA93D6A.2050704@prgmr.com> Message-ID: <44ab12mywr.fsf@be-well.ilk.org> Michael David Crawford writes: > Just in case there are any netbook manufacturers listening in, or > employees of such manufacturers: > > What I'd really like to see is a netbook with a regular size > screen. I've been shopping around some, and have so far been unable to > find what I desire. > > What I mean by that is that I want a notebook with a low-power, > inexpensive processor and modest memory. That will work fine if one > runs an operating system such as FreeBSD. > > But I want at least a fourteen inch screen, preferably fifteen inch. You're not likely to see anything like that until something new happens in display technology. The screen, small as it is, is already most of the parts cost of those netbook units, so putting a big screen on one would make it as expensive as a low-end "real" notebook. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ From jaymax36 at gmail.com Thu Sep 10 21:14:56 2009 From: jaymax36 at gmail.com (jaymax) Date: Thu Sep 10 21:15:13 2009 Subject: Upgrading 6.0 to 6.x... without /var Message-ID: <25391151.post@talk.nabble.com> I have a 6.0 installation without a /var slice. Instead I have a soft link of /usr/var to a /var@ file. Now I am attempting an upgrade to 6.4 and getting an error condition. I am using Disk 1 of the 6.4 distro >> Upgrade [Upgrade an existing system] >> All [All system sources. binaries and X-Windows System] >> added Ports and mount points. System goes through its fsck-ffs -y routines on /mnt/dev/* devices. =>> Error Messages [i] "Error mounting /mnt/dev ad0as1e on /mnt/usr : Input/output error" [ii] "Error mounting /mnt/dev ad0as1f on /mnt/usr : Input/output error" Then tries to a form a holographic shell asks for directory to save current /etc?, prompts with /var/tmp/etc, I changed it to "/usr/tmp2/etc" => "Unable to backup your /etc int /usr/tmp2/etc. Do you want to continue anyway?" Opt'd out w/ a No! selection. Could this problem result from the absence of a /var partition ? Is there an alt. Strategy for a 6.0 =>6.4 upgrade, while maintaining all the previous custom and configuration files? -- View this message in context: http://www.nabble.com/Upgrading-6.0-to-6.x...-without--var-tp25391151p25391151.html Sent from the freebsd-questions mailing list archive at Nabble.com. From kline at thought.org Thu Sep 10 21:50:30 2009 From: kline at thought.org (Gary Kline) Date: Thu Sep 10 21:50:38 2009 Subject: are there any notebooks with mouse-sticks? In-Reply-To: <20090910102925.1ea9ffd3.freebsd@edvax.de> References: <20090909210833.GA23467@thought.org> <20090910102925.1ea9ffd3.freebsd@edvax.de> Message-ID: <20090910215020.GA27299@thought.org> On Thu, Sep 10, 2009 at 10:29:25AM +0200, Polytropon wrote: > On Wed, 9 Sep 2009 14:08:36 -0700, Gary Kline wrote: > > > > I'm looking for a small computer, 7-10" screen that has a ThinkPad-like stick > > to act as the mouse. > > This "stick" is called a TrackPoint, as far as I remember. It has been > common in portable computers built by IB and Toshiba. > i think you're right. ibm came up with some advertising name that fit. better than "clit" , :-), lol, ..... LOL. yes, i do laugh at my own jokes now and then. > > > > Pref'ly, no touch-pad. > > Sadly, you will find mostly that (crap) in "modern" devices... > it's on my wife's new dell laptop. last time i tried to use it i couldn't get the hang of it. at any rate, it is in the way of where my hand would be. ---this, fwiw, is why i bought the last thinkpad, 3.0GHZ with just the trackpoint and the three horizontal bars. those work. well, for me. ... > > > > The ASUS and just about every other > > notebook-size device has this kind of scratch-n-sniff pad; [...] > > Nice name. Other names: Fingerprint sensor and coffee cup warmer. :-) > :-) damn small coffee cup, eh? > > > > Any clues? > > Look for IBM / Lenovo, maybe they still employ this fantastic and > easy to use pointing device. Allthough it would completely make sense > to use a Trackpoint for netbook class computers (litte real estate > consumption, minimal moving from "hand in typing position" to "hand > in pointing position"), it seems that the worst solution always > prevails. I haven't seen Trackpoints on "modern" stuff yet, and I'm > quite about thinking that it doesn't exist anymore. > i thought i saw the red bottom [top] of the trackpoint in the newer thinkpads. the chinese probably went with the deafault [t'pad]. but the pointer dev would take up the least realestate. and especially on the notebook-sized laptops that would seem significant. oh::: how about the $100 laptops for kids? what was it? one-laptop-per-child? did ``the market'' force them to go belly-up? i'll google around and see if they got skrewd. gary > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php From kline at thought.org Thu Sep 10 23:07:11 2009 From: kline at thought.org (Gary Kline) Date: Thu Sep 10 23:07:18 2009 Subject: are there any notebooks with mouse-sticks? In-Reply-To: <20090910165129.GA20641@kokopelli.hydra> References: <20090909210833.GA23467@thought.org> <20090910102925.1ea9ffd3.freebsd@edvax.de> <20090910165129.GA20641@kokopelli.hydra> Message-ID: <20090910230704.GB27299@thought.org> On Thu, Sep 10, 2009 at 10:51:29AM -0600, Chad Perrin wrote: > On Thu, Sep 10, 2009 at 10:29:25AM +0200, Polytropon wrote: > > On Wed, 9 Sep 2009 14:08:36 -0700, Gary Kline wrote: > > > > > > I'm looking for a small computer, 7-10" screen that has a ThinkPad-like stick > > > to act as the mouse. > > > > This "stick" is called a TrackPoint, as far as I remember. It has been > > common in portable computers built by IB and Toshiba. > > I assume that IB was meant to be IBM. Lenovo bought IBM's PC division a > few years ago, and now produces ThinkPads -- which come with trackpoints. > super! > > > > > > Pref'ly, no touch-pad. > > > > Sadly, you will find mostly that (crap) in "modern" devices... > > I just turn off the touchpad in my ThinkPad's BIOS/CMOS settings. That's > pretty much the *first* thing I do with a new ThinkPad, before I even > install a halfway decent operating system on it. I have a tendency to > accidentaly move the mouse around while typing, otherwise. > BIOS. That's what i couldn't remember. so you still *can* toggle the laptop pointer on/off. in my long-defunt 600E i could plug in an external mouse and off the t'point. good to know you can turn off the pad and still use the other pointing device. :-D > > > > > > The ASUS and just about every other > > > notebook-size device has this kind of scratch-n-sniff pad; [...] > > > > Nice name. Other names: Fingerprint sensor and coffee cup warmer. :-) > > Yeah . . . how warm the touchpad gets is a pretty good heuristic measure > of how hot the laptop is running, at least on my ThinkPad. > > > > > > > Any clues? > > > > Look for IBM / Lenovo, maybe they still employ this fantastic and > > easy to use pointing device. Allthough it would completely make sense > > to use a Trackpoint for netbook class computers (litte real estate > > consumption, minimal moving from "hand in typing position" to "hand > > in pointing position"), it seems that the worst solution always > > prevails. I haven't seen Trackpoints on "modern" stuff yet, and I'm > > quite about thinking that it doesn't exist anymore. > > Unfortunately, the OP was asking about netbook-sized computers, and last > I checked the only netbooks offered by Lenovo are IdeaPads -- which are > exactly like ThinkPads, except the construction is a little cheaper and > the pointing device is always a touchpad. hm. if i can go into the bios of this ideapad and disable the t'pad; then use a wireless mouse, that would work. my plans are to build a text-to-speech computer. kde has a bunch of tools that are very useable. vi has -- or used to have -- the ability to store abbrv that would expand as typed. you type "tht"; vi outputs "that" gary > > Otherwise, however, I second the motion: ThinkPads are generally held to > a higher standard of quality than the rest of the laptops in the PC > world, tend to be well-supported by open source operating systems, and > come with trackpoints. > > -- > Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] > Quoth Philip Machanick: "caution: if you write code like this, > immediately after you are fired the person assigned to maintaining your > code after you leave will resign" -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php From a_romolo at hotmail.com Thu Sep 10 23:21:42 2009 From: a_romolo at hotmail.com (Rom Albuquerque) Date: Thu Sep 10 23:21:49 2009 Subject: Problem installing FreeBSD 7.1 RELEASE. Message-ID: Hi. I'm having trouble installing 7.1 release. The details of my system : Motherboard : EliteGroup (A740GM-M) RAM : 3G DDR2 800Mhz CPU : AMD Athlon 64 x2 Dual Core processor Disk : WD 500GB SATA DVD : Samsung DVD/Writer "Super Write Master" Primary OS : Windows XP sp3 I'll list the problems and the attempts I've tried to get around them. Problem #1 The CD/DVD drive can not be mounted by sysinstall. =================================================== I have a SAMSUNG DVD writer drive attached to my ATAPI IDE interface. I have a WD 500GB SATA Drive attached to my SATA interface. The system boots off the CD, runs sysintall. I'm able to allocate storage for the FREEBSD partition and then create the individual slices for the default file systems. (/, swap, /var, /tmp, /usr) When choosing the instalation media as CD/DVD, an error message saying that the CD/DVD drive was not found pops up. I've tried every option on the boot program, they all fail to load the CD/DVD drive and can't proceed with the instalation. I've tried changing the DVD drive to a nother CD/RW drive attached to the same ATAPI controller, the problem persist as before, no change. This leads me to my next attempt to install the system from a disk PARTITION. Problem #2 Unable to mount the disk partiton at the time of install. ========================================================= Ok, I've created a new extended partition with Partition Magic to hold the contents of the install CD. This new partition sits third on the list as follows : a) NTFS partition with my XP installation b) FreeBSD partiton where the system will be installed. c) The new FAT partiton where the contents of the FREEBSD cd is copied into the directory named E:\FREEBSD. I've copied the entire CD to this new partition. Back to sysinstall, when choosing the new instalation media "Install from DOS partition" I get an error message saying "Unable to mount /dev/ad8s3 to /dist", and the problem of not finding the DOS partition where the contents of the FREEBSD cd were copied to continues, keeping me from progressing with the install. The next attempt was trying to install from a filesystem. When selecting this option, a dialog "from sysinstall" pops up asking to list the complete path name of where the FREEBSD files were copied to this disk partition. I enter /dev/ad8s3:/FREEBSD and an error message saying that "it can not find the disk partition" comes up keeping me from progressing with the install. I've looked at the FreeBSD handbook online, but could not find further details about installing the system from a disk partition. Any pointers as to what proper measures to take to try to get past this problem. ? Can someone suggest some other way to get the system installed. ? Oh, I've also tried PC-BSD, but that stops right away with an error message of "Error loading image" since it can not find the CD/DVD drive again. I'll appreciated if you can provide further details of how to proceed, point me to the direction where I can get more details. Your response is greatly appreciated. --Rom a_romolo@hotmail.com _________________________________________________________________ Windows Live: Keep your friends up to date with what you do online. http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_online:082009 From perrin at apotheon.com Thu Sep 10 23:32:00 2009 From: perrin at apotheon.com (Chad Perrin) Date: Thu Sep 10 23:32:07 2009 Subject: are there any notebooks with mouse-sticks? In-Reply-To: <20090910230704.GB27299@thought.org> References: <20090909210833.GA23467@thought.org> <20090910102925.1ea9ffd3.freebsd@edvax.de> <20090910165129.GA20641@kokopelli.hydra> <20090910230704.GB27299@thought.org> Message-ID: <20090910233157.GB21716@kokopelli.hydra> On Thu, Sep 10, 2009 at 04:07:04PM -0700, Gary Kline wrote: > On Thu, Sep 10, 2009 at 10:51:29AM -0600, Chad Perrin wrote: > > > > I just turn off the touchpad in my ThinkPad's BIOS/CMOS settings. That's > > pretty much the *first* thing I do with a new ThinkPad, before I even > > install a halfway decent operating system on it. I have a tendency to > > accidentaly move the mouse around while typing, otherwise. > > > > > BIOS. That's what i couldn't remember. so you still *can* > toggle the laptop pointer on/off. in my long-defunt 600E > i could plug in an external mouse and off the t'point. good to > know you can turn off the pad and still use the other pointing > device. Yes, you can -- otherwise, I'd be highly irritated with laptops in general. > > > > Unfortunately, the OP was asking about netbook-sized computers, and last > > I checked the only netbooks offered by Lenovo are IdeaPads -- which are > > exactly like ThinkPads, except the construction is a little cheaper and > > the pointing device is always a touchpad. > > > hm. if i can go into the bios of this ideapad and disable the > t'pad; then use a wireless mouse, that would work. my plans are > to build a text-to-speech computer. kde has a bunch of tools > that are very useable. vi has -- or used to have -- the ability > to store abbrv that would expand as typed. you type "tht"; vi > outputs "that" I hope that works out for you, then. It wouldn't really work for me, since I want a trackpoint -- which is why I haven't gotten a Lenovo laptop with an NVIDIA adapter (since they tend to only put those in IdeaPads, and not ThinkPads, which are left with ATI graphics adapters instead). . . . and yes, you can still do that with vi (and Vim). -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] Quoth Philip Machanick: "caution: if you write code like this, immediately after you are fired the person assigned to maintaining your code after you leave will resign" -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090910/19af95d8/attachment.pgp From randi at freebsd.org Thu Sep 10 23:58:06 2009 From: randi at freebsd.org (Randi Harper) Date: Thu Sep 10 23:58:14 2009 Subject: Problem installing FreeBSD 7.1 RELEASE. In-Reply-To: References: Message-ID: On Thu, Sep 10, 2009 at 4:09 PM, Rom Albuquerque wrote: > > > > > Hi. I'm having trouble installing 7.1 release. > > The details of my system : > > Motherboard : EliteGroup (A740GM-M) > RAM : 3G DDR2 800Mhz > CPU : AMD Athlon 64 x2 Dual Core processor > Disk : WD 500GB SATA > DVD : Samsung DVD/Writer "Super Write Master" > Primary OS : Windows XP sp3 > > > I'll list the problems and the attempts I've tried to get around them. > > > Problem #1 > > The CD/DVD drive can not be mounted by sysinstall. > =================================================== > > I have a SAMSUNG DVD writer drive attached to my ATAPI IDE interface. > I have a WD 500GB SATA Drive attached to my SATA interface. > > The system boots off the CD, runs sysintall. > > I'm able to allocate storage for the FREEBSD partition and then create the > individual slices for the default file systems. (/, swap, /var, /tmp, /usr) > > When choosing the instalation media as CD/DVD, an error message saying that > the > CD/DVD drive was not found pops up. > > I've tried every option on the boot program, they all fail to load the > CD/DVD drive > and can't proceed with the instalation. > > I've tried changing the DVD drive to a nother CD/RW drive attached to the > same ATAPI > controller, the problem persist as before, no change. > > > This leads me to my next attempt to install the system from a disk > PARTITION. > > Problem #2 > > Unable to mount the disk partiton at the time of install. > ========================================================= > > Ok, I've created a new extended partition with Partition Magic to hold the > contents > of the install CD. > > This new partition sits third on the list as follows : > > a) NTFS partition with my XP installation > b) FreeBSD partiton where the system will be installed. > c) The new FAT partiton where the contents of the FREEBSD cd is copied > into the > directory named E:\FREEBSD. > > I've copied the entire CD to this new partition. > > Back to sysinstall, when choosing the new instalation media "Install from > DOS partition" > > I get an error message saying "Unable to mount /dev/ad8s3 to /dist", and > the problem > of not finding the DOS partition where the contents of the FREEBSD cd were > copied to > continues, keeping me from progressing with the install. > > The next attempt was trying to install from a filesystem. > > When selecting this option, a dialog "from sysinstall" pops up asking to > list the > complete path name of where the FREEBSD files were copied to this disk > partition. > > I enter /dev/ad8s3:/FREEBSD and an error message saying that "it can not > find the > disk partition" comes up keeping me from progressing with the install. > > I've looked at the FreeBSD handbook online, but could not find further > details about > installing the system from a disk partition. > > > Any pointers as to what proper measures to take to try to get past this > problem. ? > > Can someone suggest some other way to get the system installed. ? > > Oh, I've also tried PC-BSD, but that stops right away with an error message > of > "Error loading image" since it can not find the CD/DVD drive again. > > > I'll appreciated if you can provide further details of how to proceed, > point me to the > direction where I can get more details. > > Your response is greatly appreciated. > > > > > --Rom > > a_romolo@hotmail.com > > > > _________________________________________________________________ > Windows Live: Keep your friends up to date with what you do online. > > http://windowslive.com/Campaign/SocialNetworking?ocid=PID23285::T:WLMTAGL:ON:WL:en-US:SI_SB_online:082009_______________________________________________ > freebsd-questions@freebsd.orgmailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > When the installation CD is booting, can you see if your CDROM drive is being detected as acd0? Another option might be to try installing from USB. Go into the options menu, enable debugging, and try the install again - either from the CDROM drive or the DOS partition. Switch to the next terminal over, and you should see some more verbose output as to what's going wrong. -- randi From jalmberg at identry.com Fri Sep 11 02:59:06 2009 From: jalmberg at identry.com (John Almberg) Date: Fri Sep 11 02:59:13 2009 Subject: reducing size of apache instances Message-ID: <4AA9BCF0.6040003@identry.com> My Apache 2.2 instances are running about 18 Meg each. I've been thinking about doing something to trim these down, and I think tomorrow is the day to take action. They are getting out of hand. I've done a bit of research on this. I think the way to get started is to eliminate unused modules. Problem is, I know which ones I need, since I purposefully added them. I *don't* know which ones I don't need, if you see what I mean, since I inherited them from the default configuration. I assume that some are critical to the basic operation of Apache. I am hoping I can google a list of these tomorrow. Obviously these I'll have to live with. But what about the set that is left after I remove the ones the system needs, and the ones I need? How do I know which ones I can safely turn off? All I can think of is a trial and error process (i.e., turn them off one by one and see if anything breaks.) Is there a better way? -- John From perrin at apotheon.com Fri Sep 11 03:49:17 2009 From: perrin at apotheon.com (Chad Perrin) Date: Fri Sep 11 03:49:24 2009 Subject: linux-pango won't install Message-ID: <20090911034913.GA22437@kokopelli.hydra> For some reason, the x11-toolkits/linux-pango port won't install on my FreeBSD 7.2 system. When I try, I get the following: [Gathering depends for x11-toolkits/linux-pango ...................................................... done] ---> Installing 'linux-pango-1.10.2_3' from a port (x11-toolkits/linux-pango) ---> Building '/usr/ports/x11-toolkits/linux-pango' ===> Cleaning for linux-pango-1.10.2_3 ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall20090910-66072-gzj01-0 env make ** Fix the problem and try again. ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! x11-toolkits/linux-pango (unknown build error) How can I fix this? My Google and FreeBSD documentation searches have proven fruitless. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] Quoth Paul Graham: "SUVs are gross because they're the solution to a gross problem. (How to make minivans look more masculine.)" -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090911/cf49fdbe/attachment.pgp From cswiger at mac.com Fri Sep 11 04:02:23 2009 From: cswiger at mac.com (Chuck Swiger) Date: Fri Sep 11 04:02:30 2009 Subject: reducing size of apache instances In-Reply-To: <4AA9BCF0.6040003@identry.com> References: <4AA9BCF0.6040003@identry.com> Message-ID: <8B2B554B-AF9A-4389-A76E-151DF8943807@mac.com> On Sep 10, 2009, at 7:58 PM, John Almberg wrote: > My Apache 2.2 instances are running about 18 Meg each. I've been > thinking about doing something to trim these down, and I think > tomorrow is the day to take action. They are getting out of hand. > [ ... ] > But what about the set that is left after I remove the ones the > system needs, and the ones I need? How do I know which ones I can > safely turn off? All I can think of is a trial and error process > (i.e., turn them off one by one and see if anything breaks.) > > Is there a better way? Yes. Figure out which modules you actually need, and only enable those. What modules you are using should be reasonably clear from the access and error logs-- you should be able to see which URLs you are serving, and hence which modules were involved. Regards, -- -Chuck From linda.messerschmidt at gmail.com Fri Sep 11 04:40:52 2009 From: linda.messerschmidt at gmail.com (Linda Messerschmidt) Date: Fri Sep 11 04:41:00 2009 Subject: reducing size of apache instances In-Reply-To: <4AA9BCF0.6040003@identry.com> References: <4AA9BCF0.6040003@identry.com> Message-ID: <237c27100909102140l6bdf3b4fm9078530495cc5b29@mail.gmail.com> On Thu, Sep 10, 2009 at 10:58 PM, John Almberg wrote: > I assume that some are critical to the basic operation of Apache. I am > hoping I can google a list of these tomorrow. Obviously these I'll have to > live with. This is a pretty short list, and Apache won't start without them. > All I can think of is a trial and error process (i.e., turn them off one by > one and see if anything breaks.) > > Is there a better way? Other than those core modules you mentioned above, one of the most distinguishing characteristics of modules is that they define config directives that you then use. I would recommend that you walk through your configs and determine which module each and every directive comes from. To a reasonable degree of accuracy, that will give you the list of modules that are really in use. Naturally you'll find some exception(s), but this will get you very close without a lot of trial-and-error downtime. From alex at mailinglist.ahhyes.net Fri Sep 11 05:03:41 2009 From: alex at mailinglist.ahhyes.net (Alex R) Date: Fri Sep 11 05:03:48 2009 Subject: 7.2-RELEASE/amd64 - weird stuff in dmesg In-Reply-To: <4AA86C90.7030908@mailinglist.ahhyes.net> References: <4AA86C90.7030908@mailinglist.ahhyes.net> Message-ID: <4AA9DA28.6080301@mailinglist.ahhyes.net> Any ideas??? Anyone?? Alex R wrote: > Hi everyone, > > I was wondering whether anyone could shed some light on the following > messages I am seeing in dmesg: > > -------------------- > > <<33>>aarrpp:: uunnkknnoowwnn hhaarrddwwaarree aaddddress format > (0x0000) > ress format (0x0000) > arp: unakrnpo:w nu nhkanrodwwna rhea raddwdarrees sa dfdorremsast > f(o0rxm0a0t0 0()0 > x > 0000) > aanrkpn:o wunn khnaorwdnw ahraer dawdadrree sasd dfroersmsa tf > o(r0mxat0 0(00x000)0 > 0 > ) > arp: unknown hardware address format (0xarp:0 7u0n0k)n > o > wn hardware address format (0x0700) > aarrpp:: uunnkknnoowwnn hhaarrddwwaarree aaddddrreessss > ffoorrmmaatt ((00xx00770000)) > > -------------------------- > > Any ideas whats with the jumbled/double letters? Is there something > wrong with the machine or is it a bug in the OS? I have seen similar > symptoms on SMP enabled boxes when shutting down if 2 processes call > kprintf() or printf() at the same time, it results in garbled output. > > Should i turn a blind eye to this? > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > From eitanadlerlist at gmail.com Fri Sep 11 06:34:26 2009 From: eitanadlerlist at gmail.com (Eitan Adler) Date: Fri Sep 11 06:34:33 2009 Subject: Mouse fails with ACPI enabled 8-B4 Message-ID: If I boot with ACPI enabled and then either start X or moused the mouse will appear to work for a few moments and then cease to proccess any input (as tested by moused verbose output, xev, and failure of the mouse to move). This happens on 8.0 BETA 4 If I boot without ACPI the mouse works. Any ideas on how to fix? From gaz at gbmail.biz Fri Sep 11 07:12:29 2009 From: gaz at gbmail.biz (Gareth Brown) Date: Fri Sep 11 07:12:36 2009 Subject: reducing size of apache instances In-Reply-To: <4AA9BCF0.6040003@identry.com> References: <4AA9BCF0.6040003@identry.com> Message-ID: <4AA9F174.3060607@gbmail.biz> Here's a few you can disable: mod_status, mod_info (both give extra unnecessary info about server) and mod_include (allows include statements in html files). These aren't recommended anyway unless you really need them as they create some level of security concern. mod_userdir is only needed if you are allowing users to have webpages from home directories mod_ssl, only if you're going to use ssl mod_rewrite only if you will be rewriting webpage names to something else mod_auth_basic and mod_auth_digest only if you're going to add http authentication to any of your webpages John Almberg wrote: My Apache 2.2 instances are running about 18 Meg each. I've been thinking about doing something to trim these down, and I think tomorrow is the day to take action. They are getting out of hand. I've done a bit of research on this. I think the way to get started is to eliminate unused modules. Problem is, I know which ones I need, since I purposefully added them. I *don't* know which ones I don't need, if you see what I mean, since I inherited them from the default configuration. I assume that some are critical to the basic operation of Apache. I am hoping I can google a list of these tomorrow. Obviously these I'll have to live with. But what about the set that is left after I remove the ones the system needs, and the ones I need? How do I know which ones I can safely turn off? All I can think of is a trial and error process (i.e., turn them off one by one and see if anything breaks.) Is there a better way? -- John _______________________________________________ [1]freebsd-questions@freebsd.org mailing list [2]http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [3]"freebsd-questions-unsubscribe@freebsd.org" References 1. mailto:freebsd-questions@freebsd.org 2. http://lists.freebsd.org/mailman/listinfo/freebsd-questions 3. mailto:freebsd-questions-unsubscribe@freebsd.org From soman.abhijit at gmail.com Fri Sep 11 07:18:05 2009 From: soman.abhijit at gmail.com (Abhi) Date: Fri Sep 11 07:18:12 2009 Subject: FreeBSD 7.x with Lenovo Thinkpad SL500 or T400 Message-ID: Hola, Has anybody tried FreeBSD 7.x on Lenovo Thinkpads SL500 or T400? Thanks, Abhijit -- (if hungry? (eat) (sleep)) From Albert.Shih at obspm.fr Fri Sep 11 07:23:02 2009 From: Albert.Shih at obspm.fr (Albert Shih) Date: Fri Sep 11 07:23:15 2009 Subject: 7.2-RELEASE/amd64 - weird stuff in dmesg In-Reply-To: <4AA9DA28.6080301@mailinglist.ahhyes.net> References: <4AA86C90.7030908@mailinglist.ahhyes.net> <4AA9DA28.6080301@mailinglist.ahhyes.net> Message-ID: <20090911072258.GA32289@obspm.fr> Le 11/09/2009 ? 15:03:36+1000, Alex R a ?crit > Any ideas??? Anyone?? No. But I got this kind of message since 7.0. Do you have ?no classic? network ? Regards. JAS -- Albert SHIH SIO batiment 15 Observatoire de Paris Meudon 5 Place Jules Janssen 92195 Meudon Cedex T?l?phone : 01 45 07 76 26/06 86 69 95 71 Heure local/Local time: Ven 11 sep 2009 09:21:42 CEST From guru at unixarea.de Fri Sep 11 07:30:25 2009 From: guru at unixarea.de (Matthias Apitz) Date: Fri Sep 11 07:30:32 2009 Subject: FreeBSD commands... refcard Message-ID: <20090911073027.GA2399@current.Sisis.de> Hello, In some Linux mailing list of Cuba I'm subscribed to, I just stumbled over this Debian GNU/Linux Reference Card: http://xinocat.com/refcard/ which is available in many languages. This would be very helpfull for my wife which 'must' ( :-)) run FreeBSD on her laptop. Is there something like this for FreeBSD, and even in Spanish? Thanks matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ People who hate Microsoft Windows use Linux but people who love UNIX use FreeBSD. From mail25 at bzerk.org Fri Sep 11 08:04:38 2009 From: mail25 at bzerk.org (Ruben de Groot) Date: Fri Sep 11 08:04:47 2009 Subject: Sites using FreeBSD In-Reply-To: References: Message-ID: <20090911080431.GA83589@ei.bzerk.org> On Thu, Sep 10, 2009 at 04:56:34PM +0200, Arvin Zuberbuehler typed: > Hi there, > > Is there a chance to get listed under "Sites using FreeBSD" > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/nutshell.html#INTRODUCTION-NUTSHELL-USERS? > Or are there any possibilities for advertisements on any pages of > http://www.freebsd.org/ > ? > > Please give me a short feedback. Try a donation: http://www.freebsdfoundation.org/donate/sponsors.shtml Ruben From mail25 at bzerk.org Fri Sep 11 08:12:43 2009 From: mail25 at bzerk.org (Ruben de Groot) Date: Fri Sep 11 08:12:56 2009 Subject: Upgrading 6.0 to 6.x... without /var In-Reply-To: <25391151.post@talk.nabble.com> References: <25391151.post@talk.nabble.com> Message-ID: <20090911081238.GB83589@ei.bzerk.org> On Thu, Sep 10, 2009 at 02:14:55PM -0700, jaymax typed: > > > I have a 6.0 installation without a /var slice. Instead I have a soft link > of /usr/var to a /var@ file. Now I am attempting an upgrade to 6.4 and > getting an error condition. I am using Disk 1 of the 6.4 distro >> Upgrade > [Upgrade an existing system] >> All [All system sources. binaries and > X-Windows System] >> added Ports and mount points. System goes through its > fsck-ffs -y routines on /mnt/dev/* devices. > =>> Error Messages > [i] "Error mounting /mnt/dev ad0as1e on /mnt/usr : Input/output error" > [ii] "Error mounting /mnt/dev ad0as1f on /mnt/usr : Input/output error" ^^^^^^^ While entirely possible, this is not a "normal" partitioning scheme. You should post some more about your configuration (fstab, dmesg) before this can be analysed. > Could this problem result from the absence of a /var partition ? I doubt it. Something else is fishy her ;) > Is there an alt. Strategy for a 6.0 =>6.4 upgrade, while maintaining all the > previous custom and configuration files? There's allways the csup - buildworld - kernel - installworld source upgrade path. Ruben From perrin at apotheon.com Fri Sep 11 08:54:13 2009 From: perrin at apotheon.com (Chad Perrin) Date: Fri Sep 11 08:54:20 2009 Subject: FreeBSD 7.x with Lenovo Thinkpad SL500 or T400 In-Reply-To: References: Message-ID: <20090911085410.GA23217@kokopelli.hydra> On Fri, Sep 11, 2009 at 12:25:25PM +0530, Abhi wrote: > Hola, > Has anybody tried FreeBSD 7.x on Lenovo Thinkpads SL500 or T400? Alas, though I tried, I could not convince my girlfriend that installing FreeBSD on her T500 would be worth the sacrifice of *not* getting to run WoW, since (unlike Ubuntu, which is what she used instead) the proprietary ATI driver doesn't work so well with FreeBSD. Anyway . . . while I have not tried installing FreeBSD on an SL500 or a T400 either, I suspect support would be decent -- as long as you don't need 3D graphics support good enough for WoW. That's just my educated guess, and not confirmation, though. Hopefully someone else can give a more definitive response. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] Quoth Antoine de Saint-Exupery: "A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away." -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090911/afb53955/attachment.pgp From sonicy at otenet.gr Fri Sep 11 09:21:45 2009 From: sonicy at otenet.gr (Manolis Kiagias) Date: Fri Sep 11 09:21:52 2009 Subject: FreeBSD commands... refcard In-Reply-To: <20090911073027.GA2399@current.Sisis.de> References: <20090911073027.GA2399@current.Sisis.de> Message-ID: <4AAA16A5.5080405@otenet.gr> Matthias Apitz wrote: > Hello, > > In some Linux mailing list of Cuba I'm subscribed to, I just stumbled > over this Debian GNU/Linux Reference Card: http://xinocat.com/refcard/ > which is available in many languages. This would be very helpfull for my > wife which 'must' ( :-)) run FreeBSD on her laptop. Is there something > like this for FreeBSD, and even in Spanish? Thanks > > matthias > It wouldn't be difficult to do something similar. Looking at the Greek version of the debian card, most commands are basic ones with similar function in FreeBSD. We could replace the apt-get section with commands from the ports system and pkg_* and the /etc/init.d/ section with /etc/rc.d and /usr/local/etc/rc.d. I'll try to make up an initial English version this weekend. From guru at unixarea.de Fri Sep 11 09:48:02 2009 From: guru at unixarea.de (Matthias Apitz) Date: Fri Sep 11 09:48:11 2009 Subject: FreeBSD commands... refcard In-Reply-To: <4AAA16A5.5080405@otenet.gr> References: <20090911073027.GA2399@current.Sisis.de> <4AAA16A5.5080405@otenet.gr> Message-ID: <20090911094804.GA3259@current.Sisis.de> El d?a Friday, September 11, 2009 a las 12:21:41PM +0300, Manolis Kiagias escribi?: > Matthias Apitz wrote: > > Hello, > > > > In some Linux mailing list of Cuba I'm subscribed to, I just stumbled > > over this Debian GNU/Linux Reference Card: http://xinocat.com/refcard/ > > which is available in many languages. This would be very helpfull for my > > wife which 'must' ( :-)) run FreeBSD on her laptop. Is there something > > like this for FreeBSD, and even in Spanish? Thanks > > > > matthias > > > > It wouldn't be difficult to do something similar. Looking at the Greek > version of the debian card, most commands are basic ones with similar > function in FreeBSD. We could replace the apt-get section with commands > from the ports system and pkg_* and the /etc/init.d/ section with > /etc/rc.d and /usr/local/etc/rc.d. > > I'll try to make up an initial English version this weekend. That would be very fine; please, can you describe also what software from the ports one must use for "Of course, you may alter the reference card to you needs and create a cusomised refcard. You need to apt-get install the following packages first: docbook-xsl, pdfjam, pdftk, po4a, xmlroff, poppler-utils, and xsltproc." I'd be more than happy to make a Spanish and German translation of it. matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ People who hate Microsoft Windows use Linux but people who love UNIX use FreeBSD. From jamesoff at gmail.com Fri Sep 11 10:32:56 2009 From: jamesoff at gmail.com (James Seward) Date: Fri Sep 11 10:33:03 2009 Subject: FreeBSD commands... refcard In-Reply-To: <20090911073027.GA2399@current.Sisis.de> References: <20090911073027.GA2399@current.Sisis.de> Message-ID: <720051dc0909110302p243fd9b2j138025fc11dab3d6@mail.gmail.com> On Fri, Sep 11, 2009 at 8:30 AM, Matthias Apitz wrote: > In some Linux mailing list of Cuba I'm subscribed to, I just stumbled > over this Debian GNU/Linux Reference Card: http://xinocat.com/refcard/ > which is available in many languages. This would be very helpfull for my > wife which 'must' ( :-)) run FreeBSD on her laptop. Is there something > like this for FreeBSD, and even in Spanish? Thanks Not quite the same, but have a look at the Rosetta Stone for Unix: http://bhami.com/rosetta.html /JMS From danielby at slightlystrange.org Fri Sep 11 10:40:31 2009 From: danielby at slightlystrange.org (Daniel Bye) Date: Fri Sep 11 10:40:39 2009 Subject: linux-pango won't install In-Reply-To: <20090911034913.GA22437@kokopelli.hydra> References: <20090911034913.GA22437@kokopelli.hydra> Message-ID: <20090911104025.GA23566@torus.slightlystrange.org> On Thu, Sep 10, 2009 at 09:49:13PM -0600, Chad Perrin wrote: > For some reason, the x11-toolkits/linux-pango port won't install on my > FreeBSD 7.2 system. When I try, I get the following: > > [Gathering depends for x11-toolkits/linux-pango ...................................................... done] > ---> Installing 'linux-pango-1.10.2_3' from a port (x11-toolkits/linux-pango) > ---> Building '/usr/ports/x11-toolkits/linux-pango' > ===> Cleaning for linux-pango-1.10.2_3 > ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall20090910-66072-gzj01-0 env make > ** Fix the problem and try again. > ** Listing the failed packages (-:ignored / *:skipped / !:failed) > ! x11-toolkits/linux-pango (unknown build error) > > How can I fix this? My Google and FreeBSD documentation searches have > proven fruitless. I remember having the devil's own job upgrading this a while ago. Try running the install manually - portinstall tends to obscure the real error message, making it harder to track down the specific problem. Doing it manually should at least let you see what's going wrong! Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090911/90080a64/attachment.pgp From m.seaman at infracaninophile.co.uk Fri Sep 11 10:49:39 2009 From: m.seaman at infracaninophile.co.uk (Matthew Seaman) Date: Fri Sep 11 10:49:47 2009 Subject: linux-pango won't install In-Reply-To: <20090911104025.GA23566@torus.slightlystrange.org> References: <20090911034913.GA22437@kokopelli.hydra> <20090911104025.GA23566@torus.slightlystrange.org> Message-ID: <4AAA2B35.4010309@infracaninophile.co.uk> Daniel Bye wrote: > On Thu, Sep 10, 2009 at 09:49:13PM -0600, Chad Perrin wrote: >> For some reason, the x11-toolkits/linux-pango port won't install on my >> FreeBSD 7.2 system. When I try, I get the following: >> >> [Gathering depends for x11-toolkits/linux-pango ...................................................... done] >> ---> Installing 'linux-pango-1.10.2_3' from a port (x11-toolkits/linux-pango) >> ---> Building '/usr/ports/x11-toolkits/linux-pango' >> ===> Cleaning for linux-pango-1.10.2_3 >> ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall20090910-66072-gzj01-0 env make >> ** Fix the problem and try again. >> ** Listing the failed packages (-:ignored / *:skipped / !:failed) >> ! x11-toolkits/linux-pango (unknown build error) >> >> How can I fix this? My Google and FreeBSD documentation searches have >> proven fruitless. > > I remember having the devil's own job upgrading this a while ago. Try > running the install manually - portinstall tends to obscure the real > error message, making it harder to track down the specific problem. Doing > it manually should at least let you see what's going wrong! > > Dan > Perhaps this will prove enlightening: significant-gravitas-shortfall:~:% portaudit -a Affected package: linux-f8-pango-1.18.4_1 Type of problem: pango -- integer overflow. Reference: 1 problem(s) in your installed packages found. You are advised to update or deinstall the affected package(s) immediately. 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090911/4850fcf2/signature.pgp From bruce at cran.org.uk Fri Sep 11 10:51:03 2009 From: bruce at cran.org.uk (Bruce Cran) Date: Fri Sep 11 10:51:09 2009 Subject: 7.2-RELEASE/amd64 - weird stuff in dmesg In-Reply-To: <4AA86C90.7030908@mailinglist.ahhyes.net> References: <4AA86C90.7030908@mailinglist.ahhyes.net> Message-ID: <20090911115110.000076ce@unknown> On Thu, 10 Sep 2009 13:03:44 +1000 Alex R wrote: > Hi everyone, > > I was wondering whether anyone could shed some light on the following > messages I am seeing in dmesg: > > -------------------- > > <<33>>aarrpp:: uunnkknnoowwnn hhaarrddwwaarree aaddddress format > (0x0000) ress format (0x0000) > arp: unakrnpo:w nu nhkanrodwwna rhea raddwdarrees sa dfdorremsast > f(o0rxm0a0t0 0()0 > x > 0000) > aanrkpn:o wunn khnaorwdnw ahraer dawdadrree sasd dfroersmsa > tf o(r0mxat0 0(00x000)0 > 0 > ) > arp: unknown hardware address format (0xarp:0 7u0n0k)n > o > wn hardware address format (0x0700) > aarrpp:: uunnkknnoowwnn hhaarrddwwaarree aaddddrreessss > ffoorrmmaatt ((00xx00770000)) > > -------------------------- > > Any ideas whats with the jumbled/double letters? Is there something > wrong with the machine or is it a bug in the OS? I have seen similar > symptoms on SMP enabled boxes when shutting down if 2 processes call > kprintf() or printf() at the same time, it results in garbled output. > Should i turn a blind eye to this? Yes :) It's a known issue that the kernel printf isn't locked so messages get mixed up like that. In 8.0 the PRINTF_BUFR_SIZE option has been added which should fix it. -- Bruce From danielby at slightlystrange.org Fri Sep 11 10:57:29 2009 From: danielby at slightlystrange.org (Daniel Bye) Date: Fri Sep 11 10:57:36 2009 Subject: linux-pango won't install In-Reply-To: <4AAA2B35.4010309@infracaninophile.co.uk> References: <20090911034913.GA22437@kokopelli.hydra> <20090911104025.GA23566@torus.slightlystrange.org> <4AAA2B35.4010309@infracaninophile.co.uk> Message-ID: <20090911105718.GB23566@torus.slightlystrange.org> On Fri, Sep 11, 2009 at 11:49:25AM +0100, Matthew Seaman wrote: > Daniel Bye wrote: > > On Thu, Sep 10, 2009 at 09:49:13PM -0600, Chad Perrin wrote: > >> For some reason, the x11-toolkits/linux-pango port won't install on my > >> FreeBSD 7.2 system. When I try, I get the following: > >> > >> [Gathering depends for x11-toolkits/linux-pango ...................................................... done] > >> ---> Installing 'linux-pango-1.10.2_3' from a port (x11-toolkits/linux-pango) > >> ---> Building '/usr/ports/x11-toolkits/linux-pango' > >> ===> Cleaning for linux-pango-1.10.2_3 > >> ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall20090910-66072-gzj01-0 env make > >> ** Fix the problem and try again. > >> ** Listing the failed packages (-:ignored / *:skipped / !:failed) > >> ! x11-toolkits/linux-pango (unknown build error) > >> > >> How can I fix this? My Google and FreeBSD documentation searches have > >> proven fruitless. > > > > I remember having the devil's own job upgrading this a while ago. Try > > running the install manually - portinstall tends to obscure the real > > error message, making it harder to track down the specific problem. Doing > > it manually should at least let you see what's going wrong! > > > > Dan > > > > Perhaps this will prove enlightening: > > significant-gravitas-shortfall:~:% portaudit -a > Affected package: linux-f8-pango-1.18.4_1 > Type of problem: pango -- integer overflow. > Reference: > > 1 problem(s) in your installed packages found. > > You are advised to update or deinstall the affected package(s) immediately. Ah yes, now I remember! I recently upgraded to 8-BETA* which uses f10 by default, and the f10 linux pango doesn't seem to have that problem. Perhaps that's how I ended up "fixing" it... Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090911/725c6ea5/attachment.pgp From gesbbb at yahoo.com Fri Sep 11 11:08:52 2009 From: gesbbb at yahoo.com (Jerry) Date: Fri Sep 11 11:08:59 2009 Subject: linux-pango won't install In-Reply-To: <4AAA2B35.4010309@infracaninophile.co.uk> References: <20090911034913.GA22437@kokopelli.hydra> <20090911104025.GA23566@torus.slightlystrange.org> <4AAA2B35.4010309@infracaninophile.co.uk> Message-ID: <20090911070849.559fa992@scorpio.seibercom.net> On Fri, 11 Sep 2009 11:49:25 +0100 Matthew Seaman wrote: > Daniel Bye wrote: > > On Thu, Sep 10, 2009 at 09:49:13PM -0600, Chad Perrin wrote: > >> For some reason, the x11-toolkits/linux-pango port won't install > >> on my FreeBSD 7.2 system. When I try, I get the following: > >> > >> [Gathering depends for > >> x11-toolkits/linux-pango ...................................................... > >> done] ---> Installing 'linux-pango-1.10.2_3' from a port > >> (x11-toolkits/linux-pango) ---> Building > >> '/usr/ports/x11-toolkits/linux-pango' ===> Cleaning for > >> linux-pango-1.10.2_3 ** Command failed [exit code > >> 1]: /usr/bin/script -qa /tmp/portinstall20090910-66072-gzj01-0 env > >> make ** Fix the problem and try again. ** Listing the failed > >> packages (-:ignored / *:skipped / !:failed) ! > >> x11-toolkits/linux-pango (unknown build error) > >> > >> How can I fix this? My Google and FreeBSD documentation searches > >> have proven fruitless. > > > > I remember having the devil's own job upgrading this a while ago. > > Try running the install manually - portinstall tends to obscure the > > real error message, making it harder to track down the specific > > problem. Doing it manually should at least let you see what's going > > wrong! > > > > Dan > > > > Perhaps this will prove enlightening: > > significant-gravitas-shortfall:~:% portaudit -a > Affected package: linux-f8-pango-1.18.4_1 > Type of problem: pango -- integer overflow. > Reference: > > > 1 problem(s) in your installed packages found. > > You are advised to update or deinstall the affected package(s) > immediately. If you still want to install the port, you could just add this to the /etc/make.conf file: # Pango .if $(.CURDIR:M*/x11-toolkits/linux-pango) DISABLE_VULNERABILITIES=yes .endif -- Jerry gesbbb@yahoo.com Go climb a gravity well. From andrei693 at gmail.com Fri Sep 11 11:50:57 2009 From: andrei693 at gmail.com (Andrei Brezan) Date: Fri Sep 11 11:51:05 2009 Subject: amavisd-new "status=deferred (lost connection with 127.0.0.1[127.0.0.1] while sending end of data -- message may be sent more than once)" in maillog issue Message-ID: <4AAA34CE.9060104@gmail.com> Hello list, I have a strange behaviour from my postfix config using amavisd-new with clamav. I have 4 messages in queue all deffered with the same problem: lost connection with 127.0.0.1. This is what i get from amavisd with log_level=5 in debug.log: *snip* Sep 11 14:15:47 mail amavis[46602]: (46602-01) run_command: [47011] /usr/local/bin/file p001 p002 p003 &1 Sep 11 14:15:47 mail amavis[47011]: (46602-01) open_on_specific_fd: target fd0 closing, to become < /dev/null Sep 11 14:15:47 mail amavis[47011]: (46602-01) open_on_specific_fd: target fd1 closing, to become > &=15 Sep 11 14:15:47 mail amavis[47011]: (46602-01) open_on_specific_fd: target fd1 dup2 from fd15 > &=15 Sep 11 14:15:47 mail amavis[47011]: (46602-01) open_on_specific_fd: source fd15 closed Sep 11 14:15:47 mail amavis[47011]: (46602-01) open_on_specific_fd: target fd2 closing, to become > &1 Sep 11 14:15:47 mail amavis[47011]: (46602-01) open_on_specific_fd: target fd2 dup2 from fd1 > &1 Sep 11 14:15:47 mail amavis[46602]: (46602-01) result line from file(1): p001: ASCII news text\n Sep 11 14:15:47 mail amavis[46602]: (46602-01) lookup_re("ASCII news text") matches key "(?i-xsm:^(ASCII|text)\b)", result="asc" Sep 11 14:15:47 mail amavis[46602]: (46602-01) lookup [map_full_type_to_short_type] => true, "ASCII news text" matches, result="asc", matching_key="(?i-xsm:^(ASCII|text)\\b)" Sep 11 14:15:47 mail amavis[46602]: (46602-01) File-type of p001: ASCII news text; (asc) Sep 11 14:15:47 mail amavis[46602]: (46602-01) result line from file(1): p002: Microsoft Office Document Microsoft Word Document\n Sep 11 14:15:47 mail amavis[46602]: (46602-01) lookup_re("Microsoft Office Document Microsoft Word Document") matches key "(?i-xsm:^Microsoft Office Document\b)", result="doc" Sep 11 14:15:47 mail amavis[46602]: (46602-01) lookup [map_full_type_to_short_type] => true, "Microsoft Office Document Microsoft Word Document" matches, result="doc", matching_key="(?i-xsm:^Microsoft Office Document\\b)" Sep 11 14:15:47 mail amavis[46602]: (46602-01) File-type of p002: Microsoft Office Document Microsoft Word Document; (doc) Sep 11 14:15:47 mail amavis[46602]: (46602-01) result line from file(1): p003: Microsoft Office Document Microsoft Word Document\n Sep 11 14:15:47 mail amavis[46602]: (46602-01) lookup_re("Microsoft Office Document Microsoft Word Document") matches key "(?i-xsm:^Microsoft Office Document\b)", result="doc" Sep 11 14:15:47 mail amavis[46602]: (46602-01) lookup [map_full_type_to_short_type] => true, "Microsoft Office Document Microsoft Word Document" matches, result="doc", matching_key="(?i-xsm:^Microsoft Office Document\\b)" Sep 11 14:15:47 mail amavis[46602]: (46602-01) File-type of p003: Microsoft Office Document Microsoft Word Document; (doc) Sep 11 14:15:47 mail amavis[46602]: (46602-01) do_ascii: Decoding part p001 Sep 11 14:15:47 mail amavis[46602]: (46602-01) do_ascii: Setting sigaction handler, was 0 Sep 11 14:15:47 mail amavis[46602]: (46602-01) timer set to 320 s (was 480 s) Sep 11 14:15:47 mail amavis[46593]: Net::Server: Starting "1" children Sep 11 14:15:47 mail amavis[47012]: Net::Server: Child Preforked (47012) Sep 11 14:15:47 mail amavis[47012]: entered child_init_hook Sep 11 14:15:47 mail amavis[47012]: SpamControl: init_child on SpamAssassin done And at ~ the same time i get: pid 46602 (perl), uid 106: exited on signal 11. Don't know what to do with those 4 messages and why they are stuck in queue. I've tried sendig other messages and they get delivered ok. If someone can elighten me pls do so. Thank you. From ivoras at freebsd.org Fri Sep 11 12:09:06 2009 From: ivoras at freebsd.org (Ivan Voras) Date: Fri Sep 11 12:09:13 2009 Subject: reducing size of apache instances In-Reply-To: <4AA9BCF0.6040003@identry.com> References: <4AA9BCF0.6040003@identry.com> Message-ID: John Almberg wrote: > My Apache 2.2 instances are running about 18 Meg each. I've been > thinking about doing something to trim these down, and I think tomorrow > is the day to take action. They are getting out of hand. > > I've done a bit of research on this. I think the way to get started is > to eliminate unused modules. Problem is, I know which ones I need, since There is another thing you can try. Judging from the process size you've given it looks like you are not using PHP or a similar Apache module. Also, you didn't specify anything so I assume you are using the default configuration, which operates in "prefork" mode - MPM_PREFORK, which means a separate process is forked for every request. If all of this is true, you can trivially switch to the worker-threaded MPM in which every Apache process (which will be of comparable size to the one you currently have) will handle a large number of request. In effect, instead of e.g. 50 Apache processes active for 50 connections, you will have 2-3 Apache processes. Enable WITH_MPM=worker in /etc/make.conf to enable this. From alexbestms at math.uni-muenster.de Fri Sep 11 12:16:50 2009 From: alexbestms at math.uni-muenster.de (Alexander Best) Date: Fri Sep 11 12:16:57 2009 Subject: grabbing files from "SVN ViewVC browser" Message-ID: hi there, just wanted to ask if there's a way to actually download files via the "SVN ViewVC browser"? right now i'm using "SVN DAV tree" for downloads and "SVN ViewVC browser" to track changes, do diffs, etc. cheers. alex From lists at bertram-scharpf.de Fri Sep 11 12:25:44 2009 From: lists at bertram-scharpf.de (Bertram Scharpf) Date: Fri Sep 11 12:25:54 2009 Subject: Nice/priority and disk access Message-ID: <20090911122540.GA20408@marge.bs.l> Hi, as the man page tells, `nice' alters the scheduling priority. Is there a way to reduce a processes priority for hard disk access? Thanks in advance. Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de From andrei693 at gmail.com Fri Sep 11 13:14:18 2009 From: andrei693 at gmail.com (Andrei Brezan) Date: Fri Sep 11 13:14:26 2009 Subject: [SOLVED] amavisd-new "status=deferred (lost connection with 127.0.0.1[127.0.0.1] while sending end of data -- message may be sent more than once)" in maillog issue In-Reply-To: <4AAA34CE.9060104@gmail.com> References: <4AAA34CE.9060104@gmail.com> Message-ID: <4AAA4D2D.6060400@gmail.com> Andrei Brezan wrote: > Hello list, > > I have a strange behaviour from my postfix config using amavisd-new with > clamav. I have 4 messages in queue all deffered with the same problem: > lost connection with 127.0.0.1. > > This is what i get from amavisd with log_level=5 in debug.log: > > *snip* > Sep 11 14:15:47 mail amavis[46602]: (46602-01) run_command: [47011] > /usr/local/bin/file p001 p002 p003 &1 > Sep 11 14:15:47 mail amavis[47011]: (46602-01) open_on_specific_fd: > target fd0 closing, to become < /dev/null > Sep 11 14:15:47 mail amavis[47011]: (46602-01) open_on_specific_fd: > target fd1 closing, to become > &=15 > Sep 11 14:15:47 mail amavis[47011]: (46602-01) open_on_specific_fd: > target fd1 dup2 from fd15 > &=15 > Sep 11 14:15:47 mail amavis[47011]: (46602-01) open_on_specific_fd: > source fd15 closed > Sep 11 14:15:47 mail amavis[47011]: (46602-01) open_on_specific_fd: > target fd2 closing, to become > &1 > Sep 11 14:15:47 mail amavis[47011]: (46602-01) open_on_specific_fd: > target fd2 dup2 from fd1 > &1 > Sep 11 14:15:47 mail amavis[46602]: (46602-01) result line from file(1): > p001: ASCII news text\n > Sep 11 14:15:47 mail amavis[46602]: (46602-01) lookup_re("ASCII news > text") matches key "(?i-xsm:^(ASCII|text)\b)", result="asc" > Sep 11 14:15:47 mail amavis[46602]: (46602-01) lookup > [map_full_type_to_short_type] => true, "ASCII news text" matches, > result="asc", matching_key="(?i-xsm:^(ASCII|text)\\b)" > Sep 11 14:15:47 mail amavis[46602]: (46602-01) File-type of p001: ASCII > news text; (asc) > Sep 11 14:15:47 mail amavis[46602]: (46602-01) result line from file(1): > p002: Microsoft Office Document Microsoft Word Document\n > Sep 11 14:15:47 mail amavis[46602]: (46602-01) lookup_re("Microsoft > Office Document Microsoft Word Document") matches key > "(?i-xsm:^Microsoft Office Document\b)", result="doc" > Sep 11 14:15:47 mail amavis[46602]: (46602-01) lookup > [map_full_type_to_short_type] => true, "Microsoft Office Document > Microsoft Word Document" matches, result="doc", > matching_key="(?i-xsm:^Microsoft Office Document\\b)" > Sep 11 14:15:47 mail amavis[46602]: (46602-01) File-type of p002: > Microsoft Office Document Microsoft Word Document; (doc) > Sep 11 14:15:47 mail amavis[46602]: (46602-01) result line from file(1): > p003: Microsoft Office Document Microsoft Word Document\n > Sep 11 14:15:47 mail amavis[46602]: (46602-01) lookup_re("Microsoft > Office Document Microsoft Word Document") matches key > "(?i-xsm:^Microsoft Office Document\b)", result="doc" > Sep 11 14:15:47 mail amavis[46602]: (46602-01) lookup > [map_full_type_to_short_type] => true, "Microsoft Office Document > Microsoft Word Document" matches, result="doc", > matching_key="(?i-xsm:^Microsoft Office Document\\b)" > Sep 11 14:15:47 mail amavis[46602]: (46602-01) File-type of p003: > Microsoft Office Document Microsoft Word Document; (doc) > Sep 11 14:15:47 mail amavis[46602]: (46602-01) do_ascii: Decoding part p001 > Sep 11 14:15:47 mail amavis[46602]: (46602-01) do_ascii: Setting > sigaction handler, was 0 > Sep 11 14:15:47 mail amavis[46602]: (46602-01) timer set to 320 s (was > 480 s) > Sep 11 14:15:47 mail amavis[46593]: Net::Server: Starting "1" children > Sep 11 14:15:47 mail amavis[47012]: Net::Server: Child Preforked (47012) > Sep 11 14:15:47 mail amavis[47012]: entered child_init_hook > Sep 11 14:15:47 mail amavis[47012]: SpamControl: init_child on > SpamAssassin done > > And at ~ the same time i get: > pid 46602 (perl), uid 106: exited on signal 11. > > Don't know what to do with those 4 messages and why they are stuck in > queue. I've tried sendig other messages and they get delivered ok. > > If someone can elighten me pls do so. > > Thank you. > After googling around a bit more i found out that is something related to uulib code. All i had to do is comment out the entries with do_ascii in amavisd.conf. Here's the post where i found this: http://www.mail-archive.com/amavis-user@lists.sourceforge.net/msg14374.html P.S. Sorry about the noise and too long subj :) From ivoras at freebsd.org Fri Sep 11 13:21:05 2009 From: ivoras at freebsd.org (Ivan Voras) Date: Fri Sep 11 13:21:12 2009 Subject: Nice/priority and disk access In-Reply-To: <20090911122540.GA20408@marge.bs.l> References: <20090911122540.GA20408@marge.bs.l> Message-ID: Bertram Scharpf wrote: > Hi, > > > as the man page tells, `nice' alters the scheduling priority. > Is there a way to reduce a processes priority for hard disk > access? No. From jalmberg at identry.com Fri Sep 11 13:58:31 2009 From: jalmberg at identry.com (John Almberg) Date: Fri Sep 11 13:58:37 2009 Subject: reducing size of apache instances In-Reply-To: References: <4AA9BCF0.6040003@identry.com> Message-ID: <4AAA577A.8070103@identry.com> Ivan Voras wrote: > There is another thing you can try. Judging from the process size you've > given it looks like you are not using PHP or a similar Apache module. > Also, you didn't specify anything so I assume you are using the default > configuration, which operates in "prefork" mode - MPM_PREFORK, which > means a separate process is forked for every request. > > If all of this is true, you can trivially switch to the worker-threaded > MPM in which every Apache process (which will be of comparable size to > the one you currently have) will handle a large number of request. In > effect, instead of e.g. 50 Apache processes active for 50 connections, > you will have 2-3 Apache processes. > > Enable WITH_MPM=worker in /etc/make.conf to enable this. I am using PHP, in fact. I've listed all the loaded modules below, and marked the ones I added with an '*'. I need the proxy modules because I use Apache as a front end for Mongrel. BTW, this is Apache 2.2 on FreeBSD 7.1 This WITH_MPM=worker sounds interesting. I'll have to read up on it. I guess there is some downside to enabling it, like slower performance? -- John Loaded Modules: core_module (static) mpm_prefork_module (static) http_module (static) so_module (static) authn_file_module (shared) authn_dbm_module (shared) authn_anon_module (shared) authn_default_module (shared) authn_alias_module (shared) authz_host_module (shared) authz_groupfile_module (shared) authz_user_module (shared) authz_dbm_module (shared) authz_owner_module (shared) authz_default_module (shared) auth_basic_module (shared) auth_digest_module (shared) file_cache_module (shared) cache_module (shared) disk_cache_module (shared) dumpio_module (shared) include_module (shared) filter_module (shared) charset_lite_module (shared) deflate_module (shared) log_config_module (shared) logio_module (shared) env_module (shared) mime_magic_module (shared) cern_meta_module (shared) expires_module (shared) headers_module (shared) usertrack_module (shared) unique_id_module (shared) setenvif_module (shared) version_module (shared) *proxy_module (shared) *proxy_http_module (shared) *proxy_balancer_module (shared) *ssl_module (shared) mime_module (shared) *dav_module (shared) status_module (shared) autoindex_module (shared) asis_module (shared) info_module (shared) cgi_module (shared) dav_fs_module (shared) vhost_alias_module (shared) negotiation_module (shared) dir_module (shared) imagemap_module (shared) actions_module (shared) speling_module (shared) userdir_module (shared) alias_module (shared) *rewrite_module (shared) *php5_module (shared) Syntax OK From alexus at gmail.com Fri Sep 11 14:16:05 2009 From: alexus at gmail.com (alexus) Date: Fri Sep 11 14:16:11 2009 Subject: ipnat proxy port ftp ftp/tcp Message-ID: <6ae50c2d0909110650q25be793cobf3050060b9a97b1@mail.gmail.com> I'm straggling to get my FTP to work I'm running jail on my FreeBSD with proftpd and I use ipnat to forward any requests to my box to that jail for that service this is what i put inside of my ipnat.conf rdr bce0 64.237.55.65/27 -> lama proxy port ftp ftp/tcp 64.237.55.65/27 this is my public range lama is my jail's name when I get connected I get something like this when I do ipnat -l RDR 64.237.55.83 21 <- -> 64.237.55.83 21 [216.203.43.254 50532] proxy ftp/6 use -11 flags 0 proto 6 flags 0 bytes 2824 pkts 24 data YES size 344 FTP Proxy: passok: 0 Client: seq b4b3b64d (ack b4b3b64d) len 6 junk 0 cmds 0 buf [FEAT\015\012\012p\015\012\000] Server: seq 970af81b (ack 970af8dc) len 193 junk 0 cmds 211 buf [211 End\015\012e;\012 MLST modify*;perm*;size*;type*;unique*;UNIX\000] and on my client I get this mbp:~ alexus$ ftp 64.237.55.83 Connected to 64.237.55.83. 220 64.237.55.83 FTP server ready Name (64.237.55.83:alexus): ftp 331 Anonymous login ok, send your complete email address as your password Password: 230 Anonymous access granted, restrictions apply Remote system type is UNIX. Using binary mode to transfer files. 421 Service not available, remote server timed out. Connection closed. ftp: No control connection for command ftp> can someone help me? -- http://alexus.org/ From ivoras at freebsd.org Fri Sep 11 15:25:03 2009 From: ivoras at freebsd.org (Ivan Voras) Date: Fri Sep 11 15:25:10 2009 Subject: reducing size of apache instances In-Reply-To: <4AAA577A.8070103@identry.com> References: <4AA9BCF0.6040003@identry.com> <4AAA577A.8070103@identry.com> Message-ID: John Almberg wrote: > I am using PHP, in fact. I've listed all the loaded modules below, and > marked the ones I added with an '*'. I need the proxy modules because I > use Apache as a front end for Mongrel. > This WITH_MPM=worker sounds interesting. I'll have to read up on it. I > guess there is some downside to enabling it, like slower performance? PHP is incredibly buggy and will in all probability break Apache if you try running it in threaded mode. From scphantm at gmail.com Fri Sep 11 16:17:37 2009 From: scphantm at gmail.com (Steel City Phantom) Date: Fri Sep 11 16:17:44 2009 Subject: jboss5 on freebsd Message-ID: <5c99941f0909110851g5481ce07ube39991fe875493f@mail.gmail.com> im trying to get the jboss 5 port to run on bsd 6.3. ive had 4 going for a long time now but i can't seem to get 5 to run right. my app is huge and i need to increase the permgen space on the jvm for it to run. ive got this in my rc.conf jboss5_enable="YES" jboss5_config="default" jboss5_flags="-Dprogram.name=run.sh -server -Xms1024m -Xmx1024m -XX:PermSize=1000m -XX:MaxPermSize=1000m" it worked fine in jboss4 but for some reason 5 isn't picking it up. any ideas? From steve at ibctech.ca Fri Sep 11 16:43:05 2009 From: steve at ibctech.ca (Steve Bertrand) Date: Fri Sep 11 16:43:12 2009 Subject: SVN + Apache Message-ID: <4AAA7E30.3080201@ibctech.ca> Hi all, The only relevance that this has to FBSD is that both Apache and subversion were installed via packages. I've been meaning to get around to enabling SVN so that I can access my repo via HTTPs. However, most of the docs I've found via Sir Google claim that it's likely that I'll have to recompile subversion ( and/or apache ) in order to make it work. Although I have very up-to-date clone-able backups and archives of this particular system, I really don't want to do anything that has the potential of clobbering my current working setup. Can those in the know provide any insight into: - how I can verify whether the necessary components are currently installed - how to identify whether said components were compiled with the appropriate args - a q&d howto consisting of a path of least resistance ( or a reference to a confirmed reliable existing howto ) - any caveats and/or things to look for prior to trying to implement it I'm the only one who uses the repository ( at this time ), and currently I access it via SSH. Security isn't an overly major concern at this point, as I will just apply the web server to it's own IPv6 address and filter those who could potentially access it via IPFW :) Cheers! Steve -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3233 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090911/3fe52bef/smime.bin From dmw at coder.cl Fri Sep 11 16:54:33 2009 From: dmw at coder.cl (Daniel Molina Wegener) Date: Fri Sep 11 16:54:39 2009 Subject: SVN + Apache In-Reply-To: <4AAA7E30.3080201@ibctech.ca> References: <4AAA7E30.3080201@ibctech.ca> Message-ID: 2009/9/11 Steve Bertrand > Hi all, > > The only relevance that this has to FBSD is that both Apache and > subversion were installed via packages. > > I've been meaning to get around to enabling SVN so that I can access my > repo via HTTPs. However, most of the docs I've found via Sir Google > claim that it's likely that I'll have to recompile subversion ( and/or > apache ) in order to make it work. > > Although I have very up-to-date clone-able backups and archives of this > particular system, I really don't want to do anything that has the > potential of clobbering my current working setup. > > Can those in the know provide any insight into: > > - how I can verify whether the necessary components are currently installed > > - how to identify whether said components were compiled with the > appropriate args > > - a q&d howto consisting of a path of least resistance ( or a reference > to a confirmed reliable existing howto ) > > - any caveats and/or things to look for prior to trying to implement it > > I'm the only one who uses the repository ( at this time ), and currently > I access it via SSH. Security isn't an overly major concern at this > point, as I will just apply the web server to it's own IPv6 address and > filter those who could potentially access it via IPFW :) > You need to install --- as basic packages --- Apache, subversion and mod_davsvn to access subversion repositories from HTTPS. > > Cheers! > > Steve > Best Regards, DMW From jalmberg at identry.com Fri Sep 11 17:48:28 2009 From: jalmberg at identry.com (John Almberg) Date: Fri Sep 11 17:48:36 2009 Subject: reducing size of apache instances In-Reply-To: References: <4AA9BCF0.6040003@identry.com> <4AAA577A.8070103@identry.com> Message-ID: <4AAA8D60.4000300@identry.com> > PHP is incredibly buggy and will in all probability break Apache if you > try running it in threaded mode. That doesn't sound so good. As a sanity check... I've been studying these processes all morning. When I use 'top', the column RES shows the amount of RAM used for the process, correct? This is the value I'd like to get down. Okay, well after a morning studying and observing, and thanks to suggestions from you all, I think I understand enough to start turning modules off. Crossing fingers... -- John From doug at polands.org Fri Sep 11 17:49:30 2009 From: doug at polands.org (Doug Poland) Date: Fri Sep 11 17:49:37 2009 Subject: NFS issues on 8.0-BETA4 Message-ID: Hello, I have a 7.2-RELEASE(i386) server hosting NFSv3. I've installed 8.0-BETA4(amd64) in a VMware 6.5 workstation virtual machine. I cannot sucessfully mount exports from the NFSv3 server on the 8.0-BETA4 client. All works well with 7.2 clients. The strange thing is, the directory in which I mount the nfs filesystem disappears, and I get an error when I attempt to access the directory. On working the server, I set these knobs in /etc/rc.conf: mountd_flags="-l" nfs_reserved_port_only="NO" nfs_server_enable="YES" nfs_server_flags="-u -n 6" rpc_lockd_enable="YES" rpc_statd_enable="YES" On the client, I set these knobs in /etc/rc.conf: nfs_client_enable="YES" rpc_lockd_enable="YES" rpc_statd_enable="YES" client# mount -t nfs -o nfsv3,retrycnt=3,intr,soft,rsize=32768,wsize=32768 fs:/usr/ports /usr/ports I get a long delay (several seconds) client# echo $? 0 client# ls /usr/ports ls: /usr/ports: Permission denied client# echo $? 1 client# mount -t nfs fs:/usr/ports on /usr/ports (nfs) client# umount /usr/ports client# ls -ld /usr/ports drwxr-xr-x 2 root wheel 512 Sep 11 08:54 /usr/ports If I simplify the mount command, I get a different error: client# mount -t nfs fs:/usr/ports /usr/ports mount: /usr/ports: Permission denied client# echo $? 64 client# mount -t nfs fs:/usr/ports on /usr/ports (nfs) Any suggestions? -- Regards, Doug -- Regards, Doug From noc at hdk5.net Fri Sep 11 18:00:59 2009 From: noc at hdk5.net (Al Plant) Date: Fri Sep 11 18:01:06 2009 Subject: FreeBSD commands... refcard In-Reply-To: <20090911073027.GA2399@current.Sisis.de> References: <20090911073027.GA2399@current.Sisis.de> Message-ID: <4AAA9059.5030502@hdk5.net> Matthias Apitz wrote: > Hello, > > In some Linux mailing list of Cuba I'm subscribed to, I just stumbled > over this Debian GNU/Linux Reference Card: http://xinocat.com/refcard/ > which is available in many languages. This would be very helpfull for my > wife which 'must' ( :-)) run FreeBSD on her laptop. Is there something > like this for FreeBSD, and even in Spanish? Thanks > > matthias ############### Aloha Matthias, I have one of the cards for Unix (Generic) I have seen them in Drug (Pharmacia) Stores in several countries I have been to, Canada and Argentina for 2) for all sorts of how to's. Not just computers. I have seen English and Spanish language. The manufacturer of the UNIX one is Bar Charts of Boca Raton Fla, www.quickstudycharts.com ot www.barcharts.com Happy coaching. -- ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 6.* - 7.* - 8.* + < email: noc@hdk5.net > "All that's really worth doing is what we do for others."- Lewis Carrol From linda.messerschmidt at gmail.com Fri Sep 11 18:05:15 2009 From: linda.messerschmidt at gmail.com (Linda Messerschmidt) Date: Fri Sep 11 18:06:50 2009 Subject: reducing size of apache instances In-Reply-To: <4AAA8D60.4000300@identry.com> References: <4AA9BCF0.6040003@identry.com> <4AAA577A.8070103@identry.com> <4AAA8D60.4000300@identry.com> Message-ID: <237c27100909111105m4ab6fa37v1fa9019d2cd94d2@mail.gmail.com> On Fri, Sep 11, 2009 at 1:48 PM, John Almberg wrote: > As a sanity check... I've been studying these processes all morning. When I > use 'top', the column RES shows the amount of RAM used for the process, > correct? This is the value I'd like to get down. How many Apache processes are involved, total? Because I'm really not sure how much success you're going to have with this. You're at 22mb already (by comparison mine are 44mb *without* mod_php). How much improvement are you looking for? A couple of megs? Unless there are tens of thousands of processes, buying a couple of gigs of RAM is probably the most time and cost effective solution. Also keep in mind that a lot of the RES is the configuration, which isn't going to change at all when you disable modules. (Unless you change it.) From amvandemore at gmail.com Fri Sep 11 18:31:20 2009 From: amvandemore at gmail.com (Adam Vande More) Date: Fri Sep 11 18:31:27 2009 Subject: reducing size of apache instances In-Reply-To: <237c27100909111105m4ab6fa37v1fa9019d2cd94d2@mail.gmail.com> References: <4AA9BCF0.6040003@identry.com> <4AAA577A.8070103@identry.com> <4AAA8D60.4000300@identry.com> <237c27100909111105m4ab6fa37v1fa9019d2cd94d2@mail.gmail.com> Message-ID: <6201873e0909111131s509b639fu7d6412169cb0a3b@mail.gmail.com> On Fri, Sep 11, 2009 at 1:05 PM, Linda Messerschmidt < linda.messerschmidt@gmail.com> wrote: > On Fri, Sep 11, 2009 at 1:48 PM, John Almberg > wrote: > > As a sanity check... I've been studying these processes all morning. When > I > > use 'top', the column RES shows the amount of RAM used for the process, > > correct? This is the value I'd like to get down. > > How many Apache processes are involved, total? Because I'm really not > sure how much success you're going to have with this. You're at 22mb > already (by comparison mine are 44mb *without* mod_php). How much > improvement are you looking for? A couple of megs? > > Unless there are tens of thousands of processes, buying a couple of > gigs of RAM is probably the most time and cost effective solution. > > Also keep in mind that a lot of the RES is the configuration, which > isn't going to change at all when you disable modules. (Unless you > change it.) > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > Not to mention the RES column is a horribly inaccurate method of calculating mem usage by application. They don't run 18 MB each that is shared mem. -- Adam Vande More From nightrecon at hotmail.com Fri Sep 11 18:41:24 2009 From: nightrecon at hotmail.com (Michael Powell) Date: Fri Sep 11 18:41:38 2009 Subject: reducing size of apache instances References: <4AA9BCF0.6040003@identry.com> <4AAA577A.8070103@identry.com> Message-ID: Ivan Voras wrote: > John Almberg wrote: > >> I am using PHP, in fact. I've listed all the loaded modules below, and >> marked the ones I added with an '*'. I need the proxy modules because I >> use Apache as a front end for Mongrel. > >> This WITH_MPM=worker sounds interesting. I'll have to read up on it. I >> guess there is some downside to enabling it, like slower performance? > > PHP is incredibly buggy and will in all probability break Apache if you > try running it in threaded mode. > Try mod_fcgid and run PHP as FastCGI if you want a threaded Apache. I've been running the event mpm on a test box at work this way. So far I've never had any trouble, but it is also not getting hammered either. Conventional wisdom is the event mpm is still considered "experimental" and therefore untrustworthy in a production environment. -Mike From bsd at todoo.biz Fri Sep 11 18:48:25 2009 From: bsd at todoo.biz (bsd) Date: Fri Sep 11 18:48:32 2009 Subject: sudo script not executing Message-ID: <08AA332C-6F99-4B28-B391-92616C0602F1@todoo.biz> Hello, I have an sh script that is called by the "www" process which has a shell that defaults to /sbin/nologin I have configured the sudoers file with these settings: www ALL=(www) NOPASSWD: /usr/local/bin/postfixadmin-domain- postdeletion.sh And It does not seem to be able to execute? > Sorry, user www is not allowed to execute '/usr/local/bin/ > postfixadmin-mailbox-postdeletion.sh y@test.com test.com' as www on newmail.rmm.fr > . > The file I am trying to delete is also owned by a non privileged user? ?? Any clue ???????????????????????????????????????????????? Gregober ---> PGP ID --> 0x1BA3C2FD bsd @at@ todoo.biz ???????????????????????????????????????????????? P "Please consider your environmental responsibility before printing this e-mail" From jalmberg at identry.com Fri Sep 11 19:42:37 2009 From: jalmberg at identry.com (John Almberg) Date: Fri Sep 11 19:42:45 2009 Subject: reducing size of apache instances In-Reply-To: <237c27100909111105m4ab6fa37v1fa9019d2cd94d2@mail.gmail.com> References: <4AA9BCF0.6040003@identry.com> <4AAA577A.8070103@identry.com> <4AAA8D60.4000300@identry.com> <237c27100909111105m4ab6fa37v1fa9019d2cd94d2@mail.gmail.com> Message-ID: <4AAAA820.4020407@identry.com> Linda Messerschmidt wrote: > On Fri, Sep 11, 2009 at 1:48 PM, John Almberg wrote: >> As a sanity check... I've been studying these processes all morning. When I >> use 'top', the column RES shows the amount of RAM used for the process, >> correct? This is the value I'd like to get down. > > How many Apache processes are involved, total? Because I'm really not > sure how much success you're going to have with this. You're at 22mb > already (by comparison mine are 44mb *without* mod_php). How much > improvement are you looking for? A couple of megs? Yup... that's about what I got for my troubles. After turning off all the unneeded modules, they are now running about 17mb. Not a huge improvement... I definitely need more ram and I have it on order. While I'm waiting for it, I figured I'd see what processes I could slim down. My basic problem is at peak usage times (usually in the afternoon), the server starts using swap space, and then response times really bog down. This is on a 'spare' server that is temporarily in service while one of our 'big' servers is out for repair. This 'spare' server only has 1G ram and was never really meant for web server service. It's trying it's best. I'm just trying to lighten the load for it. -- John From cswiger at mac.com Fri Sep 11 19:48:08 2009 From: cswiger at mac.com (Chuck Swiger) Date: Fri Sep 11 19:48:16 2009 Subject: reducing size of apache instances In-Reply-To: <4AAAA820.4020407@identry.com> References: <4AA9BCF0.6040003@identry.com> <4AAA577A.8070103@identry.com> <4AAA8D60.4000300@identry.com> <237c27100909111105m4ab6fa37v1fa9019d2cd94d2@mail.gmail.com> <4AAAA820.4020407@identry.com> Message-ID: Hi-- On Sep 11, 2009, at 12:42 PM, John Almberg wrote: > My basic problem is at peak usage times (usually in the afternoon), > the server starts using swap space, and then response times really > bog down. Limit the MaxChildren to the number of Apache httpd's which your machine can actually handle. You may (will!) still get some backlog, but keeping the system from swapping will help responsiveness.... Regards, -- -Chuck From amvandemore at gmail.com Fri Sep 11 20:03:38 2009 From: amvandemore at gmail.com (Adam Vande More) Date: Fri Sep 11 20:03:46 2009 Subject: reducing size of apache instances In-Reply-To: <4AAAA820.4020407@identry.com> References: <4AA9BCF0.6040003@identry.com> <4AAA577A.8070103@identry.com> <4AAA8D60.4000300@identry.com> <237c27100909111105m4ab6fa37v1fa9019d2cd94d2@mail.gmail.com> <4AAAA820.4020407@identry.com> Message-ID: <6201873e0909111303k472b20c2t43d9a635fa0151ee@mail.gmail.com> On Fri, Sep 11, 2009 at 2:42 PM, John Almberg wrote: > Linda Messerschmidt wrote: > >> On Fri, Sep 11, 2009 at 1:48 PM, John Almberg >> wrote: >> >>> As a sanity check... I've been studying these processes all morning. When >>> I >>> use 'top', the column RES shows the amount of RAM used for the process, >>> correct? This is the value I'd like to get down. >>> >> >> How many Apache processes are involved, total? Because I'm really not >> sure how much success you're going to have with this. You're at 22mb >> already (by comparison mine are 44mb *without* mod_php). How much >> improvement are you looking for? A couple of megs? >> > > Yup... that's about what I got for my troubles. After turning off all the > unneeded modules, they are now running about 17mb. Not a huge improvement... > > I definitely need more ram and I have it on order. While I'm waiting for > it, I figured I'd see what processes I could slim down. > > My basic problem is at peak usage times (usually in the afternoon), the > server starts using swap space, and then response times really bog down. > > This is on a 'spare' server that is temporarily in service while one of our > 'big' servers is out for repair. This 'spare' server only has 1G ram and was > never really meant for web server service. > > It's trying it's best. I'm just trying to lighten the load for it. > > -- John > > > You've misunderstood what you've done. You have not saved a couple of MB, you've saved one. Of the 18 MB, nearly all of it is shared memory which is only loaded once. This is a bit hypothetical but take the following > 1160 vandemorea 1 46 0 18M 83108K select 1 51:18 2.39% httpd 1482 vandemorea 11 44 0 18M 220M ucond 1 104:47 2.20% httpd 37776 vandemorea 20 44 0 18M 1179M select 1 95:43 1.76% httpd 1301 vandemorea 1 45 0 18M 28856K select 1 167:00 1.07% httpd 1311 vandemorea 2 47 0 18M 128M select 1 53:39 0.68% httpd 1407 vandemorea 2 44 0 18M 49284K select 1 3:41 0.20% httpd 38613 vandemorea 1 44 0 18M 31220K select 0 8:16 0.00% httpd 1320 vandemorea 2 44 0 18M 53788K ucond 1 5:20 0.00% httpd 5455 vandemorea 1 44 0 18M 1292K select 0 4:26 0.00% httpd 64974 vandemorea 21 52 0 18M 241M ucond 0 4:20 0.00% httpd from your posts, I understand you read that as httpd using a total of 180 MB of RAM. This is incorrect. The RES column also included shared mem which is only loaded once but counted on each line. So if the size of the shared mem in use by httpd is 17MB, in total it would be consuming 27MB, not the 180. So chasing memory savings here is probably not pursuing low hanging fruit. 1GB web server is more than enough for basic www server, even more. -- Adam Vande More From ccowart at rescomp.berkeley.edu Fri Sep 11 20:15:28 2009 From: ccowart at rescomp.berkeley.edu (Chris Cowart) Date: Fri Sep 11 20:15:35 2009 Subject: sudo script not executing In-Reply-To: <08AA332C-6F99-4B28-B391-92616C0602F1@todoo.biz> References: <08AA332C-6F99-4B28-B391-92616C0602F1@todoo.biz> Message-ID: <20090911201527.GE37291@hal.rescomp.berkeley.edu> bsd wrote: > I have an sh script that is called by the "www" process which has a > shell that defaults to /sbin/nologin > > I have configured the sudoers file with these settings: > > www ALL=(www) NOPASSWD: /usr/local/bin/postfixadmin-domain- > postdeletion.sh > > > And It does not seem to be able to execute? > > > > Sorry, user www is not allowed to execute '/usr/local/bin/ > > postfixadmin-mailbox-postdeletion.sh y@test.com test.com' as www on newmail.rmm.fr > > . > > > > > The file I am trying to delete is also owned by a non privileged > user? ?? The user www is www, so you shouldn't need to sudo to run as that account. Did you mean to setup the rule for the postfix user? Or a postfix target account? That said, I think what you typed should have worked. You shouldn't have seen "www is not allowed to execute ... as www", because your sudoers file says otherwise. Assuming your account has full sudo, what do you see if you type: $ sudo -u www sudo -l Hopefully, because of the NOPASSWD in there, you won't have to produce www's password. Is your script (postfixadmin-domain-postdeletion.sh) readable and executable by user www? Do you have any trailing characters or something on the line with your sudo rule which might make sudo think you've typed a literal command with arguments instead of a command that can be run with arbitrary arguments? -- Chris Cowart Network Technical Lead Network & Infrastructure Services, RSSP-IT UC Berkeley -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 834 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090911/edcee8d9/attachment.pgp From jalmberg at identry.com Fri Sep 11 20:21:03 2009 From: jalmberg at identry.com (John Almberg) Date: Fri Sep 11 20:21:09 2009 Subject: reducing size of apache instances In-Reply-To: <6201873e0909111303k472b20c2t43d9a635fa0151ee@mail.gmail.com> References: <4AA9BCF0.6040003@identry.com> <4AAA577A.8070103@identry.com> <4AAA8D60.4000300@identry.com> <237c27100909111105m4ab6fa37v1fa9019d2cd94d2@mail.gmail.com> <4AAAA820.4020407@identry.com> <6201873e0909111303k472b20c2t43d9a635fa0151ee@mail.gmail.com> Message-ID: <4AAAB124.8050908@identry.com> > You've misunderstood what you've done. You have not saved a couple of > MB, you've saved one. Of the 18 MB, nearly all of it is shared memory > which is only loaded once. Ah... Okay. That actually makes sense. Thanks for the clarification. > 1GB web server is more than enough for basic www server, even more. I would have thought, but some times it really gets slow and I'm trying to figure out why. When bogged down, the load averages are low. The main thing that looks out of whack is swap space, which seems to never go below 7%, but sometimes gets up into the 20%-30% range. When it gets that high, the server slows to a crawl. last pid: 12732; load averages: 0.44, 0.31, 0.27 up 34+03:57:58 16:16:27 187 processes: 2 running, 185 sleeping CPU: 4.5% user, 0.0% nice, 1.1% system, 0.0% interrupt, 94.4% idle Mem: 425M Active, 106M Inact, 268M Wired, 3160K Cache, 110M Buf, 176M Free Swap: 2008M Total, 150M Used, 1858M Free, 7% Inuse From freebsd at edvax.de Fri Sep 11 20:36:50 2009 From: freebsd at edvax.de (Polytropon) Date: Fri Sep 11 20:36:58 2009 Subject: Upgrading 6.0 to 6.x... without /var In-Reply-To: <25391151.post@talk.nabble.com> References: <25391151.post@talk.nabble.com> Message-ID: <20090911223648.84368cfe.freebsd@edvax.de> On Thu, 10 Sep 2009 14:14:55 -0700 (PDT), jaymax wrote: > =>> Error Messages > [i] "Error mounting /mnt/dev ad0as1e on /mnt/usr : Input/output error" > [ii] "Error mounting /mnt/dev ad0as1f on /mnt/usr : Input/output error" ^^^^^^^ This looks weird. Is this for real? Partition names should be ad0s1e (or f), not ad0*a*s1e (or f). Have you specified the correct device names? > Then tries to a form a holographic shell > asks for directory to save current /etc?, prompts with /var/tmp/etc, I > changed it to "/usr/tmp2/etc" => "Unable to backup your /etc int > /usr/tmp2/etc. Do you want to continue anyway?" > Opt'd out w/ a No! selection. > > Could this problem result from the absence of a /var partition ? No, but the system can neither access /var (even as a symlink), nor can it access /usr because it isn't mounted - as far as it seems to me. > Is there an alt. Strategy for a 6.0 =>6.4 upgrade, while maintaining all the > previous custom and configuration files? You could first start with a live system CD (FreeBSD's own one or FreeSBIE), then mount / and /usr (where /var does exist) and copy the important subtrees, such as /etc, /var/db/pkg and /usr/local/etc. You can then overwrite everything and reinstall your configuration files manually. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From dmontalvo at gmail.com Fri Sep 11 20:40:18 2009 From: dmontalvo at gmail.com (Diego Montalvo) Date: Fri Sep 11 20:40:25 2009 Subject: reducing size of apache instances In-Reply-To: <4AAAB124.8050908@identry.com> References: <4AA9BCF0.6040003@identry.com> <4AAA577A.8070103@identry.com> <4AAA8D60.4000300@identry.com> <237c27100909111105m4ab6fa37v1fa9019d2cd94d2@mail.gmail.com> <4AAAA820.4020407@identry.com> <6201873e0909111303k472b20c2t43d9a635fa0151ee@mail.gmail.com> <4AAAB124.8050908@identry.com> Message-ID: Have given Nginx web server a try? It is small and may work better with limited RAM. http://www.nginx.net/ http://urloid.com/nginx1 Diego 2009/9/11 John Almberg : > >> You've misunderstood what you've done. ?You have not saved a couple of >> MB, you've saved one. ?Of the 18 MB, nearly all of it is shared memory >> which is only loaded once. > > Ah... Okay. That actually makes sense. Thanks for the clarification. > >> 1GB web server is more than enough for basic www server, even more. > > I would have thought, but some times it really gets slow and I'm trying to > figure out why. When bogged down, the load averages are low. The main thing > that looks out of whack is swap space, which seems to never go below 7%, but > sometimes gets up into the 20%-30% range. When it gets that high, the server > slows to a crawl. > > > last pid: 12732; ?load averages: ?0.44, ?0.31, 0.27 > ? ? ? ? ? ? ? ? ? ? ? ? ?up 34+03:57:58 ?16:16:27 > 187 processes: 2 running, 185 sleeping > CPU: ?4.5% user, ?0.0% nice, ?1.1% system, ?0.0% interrupt, 94.4% idle > Mem: 425M Active, 106M Inact, 268M Wired, 3160K Cache, 110M Buf, 176M Free > Swap: 2008M Total, 150M Used, 1858M Free, 7% Inuse > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > From amvandemore at gmail.com Fri Sep 11 20:45:32 2009 From: amvandemore at gmail.com (Adam Vande More) Date: Fri Sep 11 20:45:39 2009 Subject: reducing size of apache instances In-Reply-To: <4AAAB124.8050908@identry.com> References: <4AA9BCF0.6040003@identry.com> <4AAA577A.8070103@identry.com> <4AAA8D60.4000300@identry.com> <237c27100909111105m4ab6fa37v1fa9019d2cd94d2@mail.gmail.com> <4AAAA820.4020407@identry.com> <6201873e0909111303k472b20c2t43d9a635fa0151ee@mail.gmail.com> <4AAAB124.8050908@identry.com> Message-ID: <6201873e0909111345t1e575dd3pd1b9985aa51813f2@mail.gmail.com> On Fri, Sep 11, 2009 at 3:20 PM, John Almberg wrote: > > You've misunderstood what you've done. You have not saved a couple of >> MB, you've saved one. Of the 18 MB, nearly all of it is shared memory >> which is only loaded once. >> > > Ah... Okay. That actually makes sense. Thanks for the clarification. > > 1GB web server is more than enough for basic www server, even more. >> > > I would have thought, but some times it really gets slow and I'm trying to > figure out why. When bogged down, the load averages are low. The main thing > that looks out of whack is swap space, which seems to never go below 7%, but > sometimes gets up into the 20%-30% range. When it gets that high, the server > slows to a crawl. > > > last pid: 12732; load averages: 0.44, 0.31, 0.27 > up 34+03:57:58 16:16:27 > 187 processes: 2 running, 185 sleeping > CPU: 4.5% user, 0.0% nice, 1.1% system, 0.0% interrupt, 94.4% idle > Mem: 425M Active, 106M Inact, 268M Wired, 3160K Cache, 110M Buf, 176M Free > Swap: 2008M Total, 150M Used, 1858M Free, 7% Inuse > > > You're on the right track pursuing whatever is consuming swap. Are there any other services running on the system which may be consuming mem? eg postgresql? You can start eliminating unnecessary services, and limiting memory by app. php.ini contains a knob for this. Plus as mentioned before limiting number of connections may help depending on what other things system is running. -- Adam Vande More From jaymax36 at gmail.com Fri Sep 11 21:00:21 2009 From: jaymax36 at gmail.com (jaymax) Date: Fri Sep 11 21:00:28 2009 Subject: Upgrading 6.0 to 6.x... without /var In-Reply-To: <20090911223648.84368cfe.freebsd@edvax.de> References: <25391151.post@talk.nabble.com> <20090911223648.84368cfe.freebsd@edvax.de> Message-ID: <25408257.post@talk.nabble.com> Polytropon wrote: > > On Thu, 10 Sep 2009 14:14:55 -0700 (PDT), jaymax > wrote: >> =>> Error Messages >> [i] "Error mounting /mnt/dev ad0as1e on /mnt/usr : Input/output error" >> [ii] "Error mounting /mnt/dev ad0as1f on /mnt/usr : Input/output error" > ^^^^^^^ > This looks weird. Is this for real? Partition names should > be ad0s1e (or f), not ad0*a*s1e (or f). Have you specified > the correct device names? > > You are correct my typos, they are > ad0s1e and ad0s1f for /tmp and /usr respectively; /var is replaced by soft > link > ln -s /usr/var /var > ( running an email server on this box runs the risk of 'filesystem full' > with a 'small' restricted /var partition , this way the problem is escaped > ) > > >> Then tries to a form a holographic shell >> asks for directory to save current /etc?, prompts with /var/tmp/etc, I >> changed it to "/usr/tmp2/etc" => "Unable to backup your /etc int >> /usr/tmp2/etc. Do you want to continue anyway?" >> Opt'd out w/ a No! selection. >> >> Could this problem result from the absence of a /var partition ? > > No, but the system can neither access /var (even as a symlink), nor > can it access /usr because it isn't mounted - as far as it seems to > me. > > They are mounted > >> Is there an alt. Strategy for a 6.0 =>6.4 upgrade, while maintaining all >> the >> previous custom and configuration files? > > You could first start with a live system CD (FreeBSD's own one or > FreeSBIE), then mount / and /usr (where /var does exist) and copy > the important subtrees, such as /etc, /var/db/pkg and /usr/local/etc. > You can then overwrite everything and reinstall your configuration > files manually. > > I'll give that a try, I've already started on the cvsupd approach > suggested earlier. > > Thanks! > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > -- View this message in context: http://www.nabble.com/Upgrading-6.0-to-6.x...-without--var-tp25391151p25408257.html Sent from the freebsd-questions mailing list archive at Nabble.com. From freebsd at edvax.de Fri Sep 11 21:10:13 2009 From: freebsd at edvax.de (Polytropon) Date: Fri Sep 11 21:10:22 2009 Subject: Upgrading 6.0 to 6.x... without /var In-Reply-To: <25408257.post@talk.nabble.com> References: <25391151.post@talk.nabble.com> <20090911223648.84368cfe.freebsd@edvax.de> <25408257.post@talk.nabble.com> Message-ID: <20090911231008.87115e75.freebsd@edvax.de> On Fri, 11 Sep 2009 14:00:20 -0700 (PDT), jaymax wrote: > You are correct my typos, they are > ad0s1e and ad0s1f for /tmp and /usr respectively; /var is replaced by soft > link > ln -s /usr/var /var So the problem is /usr cannot be mounted. First of all, just try it manually, as I mentioned (from FreeBSD live system CD or by using FreeSBIE), e. g. # mount /dev/ad0s1e /mnt/usr Because the installer does not expect /var to exist, and because it does reside on the former / partition which is /mnt/ while installing (as far as I remember), /var cannot be accessed. In this case, / needs to be mounted as /mnt/ and /usr needs to be mounted as /mnt/usr; the problem is: if /var really points at /usr/var, then /mnt/var will point at /usr/var, too, which does not resolve because it exists as /mnt/usr/var during the installation. An idea would be to specify a different path in the partition editor, but not let the installer form an /etc/fstab from this setting. Another idea would be to change the /var symlink on / from /var@ -> /usr/var to /var@ -> usr/var so that it will work when / is mounted as /mnt/; the result will then correctly be /mnt/var@ -> /mnt/usr/var > (running an email server on this box runs the risk of 'filesystem full' > with a 'small' restricted /var partition , this way the problem is escaped) That's why I prefer to use "one big / partition" in such settings where I have no chance to reliably determine the future requirements of partition sizes. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From linda.messerschmidt at gmail.com Fri Sep 11 22:15:16 2009 From: linda.messerschmidt at gmail.com (Linda Messerschmidt) Date: Fri Sep 11 22:15:23 2009 Subject: reducing size of apache instances In-Reply-To: <4AAAB124.8050908@identry.com> References: <4AA9BCF0.6040003@identry.com> <4AAA577A.8070103@identry.com> <4AAA8D60.4000300@identry.com> <237c27100909111105m4ab6fa37v1fa9019d2cd94d2@mail.gmail.com> <4AAAA820.4020407@identry.com> <6201873e0909111303k472b20c2t43d9a635fa0151ee@mail.gmail.com> <4AAAB124.8050908@identry.com> Message-ID: <237c27100909111515s70310092ua980038b3f16983e@mail.gmail.com> On Fri, Sep 11, 2009 at 4:20 PM, John Almberg wrote: > I would have thought, but some times it really gets slow and I'm trying to > figure out why. When bogged down, the load averages are low. The main thing > that looks out of whack is swap space, which seems to never go below 7%, but > sometimes gets up into the 20%-30% range. When it gets that high, the server > slows to a crawl. In this case you don't want to look at processes with big RES, you want to find processes with a big difference between RES and SIZE and/or the ones with flat-out largest SIZE. Try sorting top by SIZE and see what bubbles up. (Ignore rpc.statd if it's running.) From jalmberg at identry.com Sat Sep 12 00:14:58 2009 From: jalmberg at identry.com (John Almberg) Date: Sat Sep 12 00:15:06 2009 Subject: reducing size of apache instances In-Reply-To: <237c27100909111515s70310092ua980038b3f16983e@mail.gmail.com> References: <4AA9BCF0.6040003@identry.com> <4AAA577A.8070103@identry.com> <4AAA8D60.4000300@identry.com> <237c27100909111105m4ab6fa37v1fa9019d2cd94d2@mail.gmail.com> <4AAAA820.4020407@identry.com> <6201873e0909111303k472b20c2t43d9a635fa0151ee@mail.gmail.com> <4AAAB124.8050908@identry.com> <237c27100909111515s70310092ua980038b3f16983e@mail.gmail.com> Message-ID: <4AAAE7F6.2060806@identry.com> > In this case you don't want to look at processes with big RES, you > want to find processes with a big difference between RES and SIZE > and/or the ones with flat-out largest SIZE. Try sorting top by SIZE > and see what bubbles up. (Ignore rpc.statd if it's running.) Huh... okay. That's interesting. Well the biggest SIZE process is mysql, followed by three mongrel instances (for a ruby on rails app), and then a bunch of httpd processes. Mysql is optimized for a small server, there isn't much I can do about the size of the Rails app, so the apache instances seemed like the logical place to start. I'm starting to wonder about the Swap info from top... it never changes. It has said the same thing all day, since I've been watching it. Does that make sense? Swap: 2008M Total, 150M Used, 1858M Free, 7% Inuse -- John From roberthuff at rcn.com Sat Sep 12 00:31:58 2009 From: roberthuff at rcn.com (Robert Huff) Date: Sat Sep 12 00:32:07 2009 Subject: reducing size of apache instances In-Reply-To: <4AAAE7F6.2060806@identry.com> References: <4AA9BCF0.6040003@identry.com> <4AAA577A.8070103@identry.com> <4AAA8D60.4000300@identry.com> <237c27100909111105m4ab6fa37v1fa9019d2cd94d2@mail.gmail.com> <4AAAA820.4020407@identry.com> <6201873e0909111303k472b20c2t43d9a635fa0151ee@mail.gmail.com> <4AAAB124.8050908@identry.com> <237c27100909111515s70310092ua980038b3f16983e@mail.gmail.com> <4AAAE7F6.2060806@identry.com> Message-ID: <19114.60366.838686.34990@jerusalem.litteratus.org> John Almberg writes: > I'm starting to wonder about the Swap info from top... it never > changes. It has said the same thing all day, since I've been > watching it. Does that make sense? The current machine has 8G, so ... porbably not a good test case. :-) It's predecessor succumbed when it had 2G; depending on what was running, sometimes the swap would stick for hours or even days, Robert Huff From noc at hdk5.net Sat Sep 12 03:16:05 2009 From: noc at hdk5.net (Al Plant) Date: Sat Sep 12 03:16:14 2009 Subject: DVD-R recording .iso SOLVED Message-ID: <4AAB1272.7030809@hdk5.net> Aloha, On Wed, 9 Sep 2009, Al Plant wrote: > Chris Hill wrote: >> On Wed, 9 Sep 2009, Al Plant wrote: >> >>> Aloha, >>> >>> on FreeBSD 8 Current >>> >>> I have installed growisofs. I want to burn a DVD R of /path/7.2-RELEASE-p1-i386-disc1.iso . >>> >>> #growisofs -dvd-compat -Z /dev/cd0=/path/7.2-RELEASE-p1-i386-disc1.iso . >>> >>> Got this from FreeBSD handbook. Get no such file or directory error. Whats wrong with the syntax? >> >> Caveats about anything I say: 1) I'm using 7.2, and b) I'm using +R media. >> >> Nothing is wrong with the syntax, although your command above says the ISO file is in a directory called /path. Does the directory exist? Is the ISO in that directory? Permissions OK on everything? Does /dev/cd0 point to your burner? And as Adam said, make sure you have atapicam loaded. >> >> I'm also assuming that dot at the end of your line is a period at the end of your sentence, and not part of the command you issued. >> >>> Is this the correct way to copy an .iso onto a DVD-R for installs? >> >> It burns the ISO to the disk as a premastered disk, which is what you want in this situation. If you wanted to just copy the ISO as a file, you'd replace the = sign with a space. >> >>> Or can I just use burncd like somebody on the BSD forum said they did? >> >> I have no idea what somebody on the BSD forum said :^) >> >> HTH. Hang loose. >> >> -- >> Chris Hill chris@monochrome.org >> ** [ Busy Expunging <|> ] >> > Aloha, > > The directory path is /usr/home/alp/FreeBSD_7 that is ok. > > The = could be what is not proper in the Handbook. *Actually the = is correct, and you do need it for what you're doing. I *just went through this over the weekend. The = looked wrong, so I tried *doing without. What I ended up with was a data DVD with an ISO file on *it - not what I wanted! I would guess the command you need is *growisofs -dvd-compat -Z */dev/cd0=/usr/home/alp/FreeBSD_7/7.2-RELEASE-p1-i386-disc1.iso *(Probably wrapped in the email, but it needs to be all one line.) It's *simplest if you do this as root, or via su or sudo, which I think *you've been doing. > I'll put apticam_load="YES" in the /boot/loader.conf /Thats not in the Handbook either. *I noticed that omission too. *Putting that line in /boot/loader.conf makes the module load on the *next boot, but doesn't load it right now. You can see if it's already *loaded by issuing a kldstat command. If you see atapicam.ko in *response, you're good. If not, do a *kldload atapicam.ko *..as root or equivalent, to load the module immediately without a *reboot. Just for completeness, you may want to also * ls /dev | grep ^cd *..to make sure you have a cd0 device, after loading the module. It *might be some number other than 0, depending on your hardware, in which *case change the growisofs command accordingly. > Thanks for the help. *It's one of the few questions around here that I know the answer to, so *I'm glad to! Makes me feel useful or something. -- *Chris Hill chris@monochrome.org ** [ Busy Expunging <|> ] ############ Aloha, Here's how it worked. From sysutils/dvd+rw-tools I installed the DVD port # growisofs I used the following from all the suggestions and it worked with Manolis DVD p1 7.2 1st> I put hw.ata.atapi_dma="1" in the /boot/loader.conf 2nd> put apticam_load="YES" in the /boot/loader.conf (That 2nd 18.7.2 instruction is not clear in the Handbook section and should be added.) Then> I ran # growisofs -dvd-compat -Z dev/cd0=/usr/home/alp/FreeBSD_7/7.2-RELEASE-p1-i386-disc1.iso (all on one line) Then> I was able to use cd0 as a DVD burner and make the DVD-R I tested the DVD on a spare box and it installed just fine. I suggest that the authors of the section 18.7/2 add the sample command line for atapicam as they did for dma="1" to eliminate the confusion. Thanks to all who helped ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 6.* - 7.* - 8.* + < email: noc@hdk5.net > "All that's really worth doing is what we do for others."- Lewis Carrol From dnelson at allantgroup.com Sat Sep 12 03:25:34 2009 From: dnelson at allantgroup.com (Dan Nelson) Date: Sat Sep 12 03:25:42 2009 Subject: reducing size of apache instances In-Reply-To: <4AAAE7F6.2060806@identry.com> References: <4AAA577A.8070103@identry.com> <4AAA8D60.4000300@identry.com> <237c27100909111105m4ab6fa37v1fa9019d2cd94d2@mail.gmail.com> <4AAAA820.4020407@identry.com> <6201873e0909111303k472b20c2t43d9a635fa0151ee@mail.gmail.com> <4AAAB124.8050908@identry.com> <237c27100909111515s70310092ua980038b3f16983e@mail.gmail.com> <4AAAE7F6.2060806@identry.com> Message-ID: <20090912032532.GB54762@dan.emsphone.com> In the last episode (Sep 11), John Almberg said: > > In this case you don't want to look at processes with big RES, you > > want to find processes with a big difference between RES and SIZE > > and/or the ones with flat-out largest SIZE. Try sorting top by SIZE > > and see what bubbles up. (Ignore rpc.statd if it's running.) > > Huh... okay. That's interesting. > > Well the biggest SIZE process is mysql, followed by three mongrel > instances (for a ruby on rails app), and then a bunch of httpd processes. > > Mysql is optimized for a small server, there isn't much I can do about the > size of the Rails app, so the apache instances seemed like the logical > place to start. > > I'm starting to wonder about the Swap info from top... it never changes. > It has said the same thing all day, since I've been watching it. Does > that make sense? > > Swap: 2008M Total, 150M Used, 1858M Free, 7% Inuse If you previously ran some memory-intensive program, the system would have pushed some unused data out to disk ( login processes for unused VTYs, other daemons that are rarely used, etc ), but it won't free up that swap space until those processes exit. As long as you don't see "###K Out, ###K In" on that swap line, you're not actively using the swap space and don't have to worry. -- Dan Nelson dnelson@allantgroup.com From kkuzmenko at mac.com Sat Sep 12 04:30:23 2009 From: kkuzmenko at mac.com (KKuzmenko) Date: Sat Sep 12 04:30:30 2009 Subject: Support for Apple iBook keyboards Message-ID: I need a replacement keyboard for my iBook (Processor 500MHz, PowerPC G3, 384 MB SDRAM, build 8S165, machine model PowerBook4,1, CPU PowerPC 750 (32.14), Bus Speed 67 MHz, USB Bus 3200, File System HFS+ AND - DIMM0/BUILT-IN: size 128 MB. Please advise mr of the following: 1) Do you carry it? 2) What is the price? 3) And most importantly- how easy/difficult is it to install? The only experience that I have with hardware installing a new HD on a Power Mac 7100. Thank you in advance with your help/reply. Cordially, K Kuzmenko From perrin at apotheon.com Sat Sep 12 04:59:22 2009 From: perrin at apotheon.com (Chad Perrin) Date: Sat Sep 12 04:59:29 2009 Subject: linux-pango won't install In-Reply-To: <20090911104025.GA23566@torus.slightlystrange.org> References: <20090911034913.GA22437@kokopelli.hydra> <20090911104025.GA23566@torus.slightlystrange.org> Message-ID: <20090912045920.GA27240@kokopelli.hydra> On Fri, Sep 11, 2009 at 11:40:26AM +0100, Daniel Bye wrote: > > I remember having the devil's own job upgrading this a while ago. Try > running the install manually - portinstall tends to obscure the real > error message, making it harder to track down the specific problem. Doing > it manually should at least let you see what's going wrong! I should have thought of that myself. Thanks for having patience and giving me an informative response. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] Quoth C. S. Lewis: "We all want progress, but if you're on the wrong road, progress means doing an about-turn and walking back to the right road; in that case, the man who turns back soonest is the most progressive." -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090912/3915e4bd/attachment.pgp From perrin at apotheon.com Sat Sep 12 05:01:26 2009 From: perrin at apotheon.com (Chad Perrin) Date: Sat Sep 12 05:01:33 2009 Subject: linux-pango won't install In-Reply-To: <20090911070849.559fa992@scorpio.seibercom.net> References: <20090911034913.GA22437@kokopelli.hydra> <20090911104025.GA23566@torus.slightlystrange.org> <4AAA2B35.4010309@infracaninophile.co.uk> <20090911070849.559fa992@scorpio.seibercom.net> Message-ID: <20090912050123.GB27240@kokopelli.hydra> On Fri, Sep 11, 2009 at 07:08:49AM -0400, Jerry wrote: > On Fri, 11 Sep 2009 11:49:25 +0100 > Matthew Seaman wrote: > > > > Perhaps this will prove enlightening: > > > > significant-gravitas-shortfall:~:% portaudit -a > > Affected package: linux-f8-pango-1.18.4_1 > > Type of problem: pango -- integer overflow. > > Reference: > > > > > > 1 problem(s) in your installed packages found. > > > > You are advised to update or deinstall the affected package(s) > > immediately. > > If you still want to install the port, you could just add this to > the /etc/make.conf file: > > # Pango > .if $(.CURDIR:M*/x11-toolkits/linux-pango) > DISABLE_VULNERABILITIES=yes > .endif How long has this been broken for 7.2? Considering all the stuff that depends on linux-pango, I'm surprised it hasn't been fixed. Thanks for the help, in any case. -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] Quoth Bjarne Stroustrup: "An ugly operation should have an ugly syntactic form." -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090912/4e4427c7/attachment.pgp From jwdevel at gmail.com Sat Sep 12 06:06:11 2009 From: jwdevel at gmail.com (John W) Date: Sat Sep 12 06:06:19 2009 Subject: ports: how to handle 'alternate' dependencies Message-ID: I'm just learning the guts of how ports work, and wonder: How do ports specify that "any one of X, Y, Z " would satisfy a dependency. For instance, when I build graphics/jalbum, it says it requires jdk16. I would rather use diablo-jdk16, since I find it faster and it is easier to install. But how would I alter graphics/jalbum to say, essentially, "either jdk16 or diablo-jdk16 is required" Generally, how to handle the case when a port requires X, but there are multiple implementations of X that can perform the job, and any will suffice? I feel like this issue must come up from time to time, what is the right way to deal with it? I didn't see any mention of this in the porters handbook... Thanks -John From jwdevel at gmail.com Sat Sep 12 06:10:29 2009 From: jwdevel at gmail.com (John W) Date: Sat Sep 12 06:10:38 2009 Subject: ports: how to handle 'alternate' dependencies In-Reply-To: References: Message-ID: On Fri, Sep 11, 2009 at 11:06 PM, John W wrote: > I'm just learning the guts of how ports work, and wonder: > > How do ports specify that "any one of X, Y, Z " would satisfy a dependency. > > For instance, when I build graphics/jalbum, it says it requires jdk16. > I would rather use diablo-jdk16, since I find it faster and it is > easier to install. > Whoops - in particular graphics/jalbum has the line: JAVA_VENDOR = bsdjava So it seems that special JAVA_XXX variables are used to solve the problem in this particular case. However, I would still like to know what (if any) general support there is for this kind of problem. -John From kennethcf at earthlink.net Sat Sep 12 06:22:45 2009 From: kennethcf at earthlink.net (Kenneth) Date: Sat Sep 12 06:22:56 2009 Subject: configuring X on the Presario with the 8200M driver Message-ID: <17216271.1252735922654.JavaMail.root@wamui-june.atl.sa.earthlink.net> Moving this discussion to freebsd-x11. I have a Presario CQ60 with the NVIDIA 8200M G, and X is working! Here are the steps to get there. Do everything as root: 1) Update your ports to the most recent. Follow the FreeBSD manual, section 4.5 Using the Ports Collection, nuke the contents of /usr/ports, and install a new base using portsnap or cvsup. 2) Install the nvidia-driver. # cd /usr/ports/x11-driver/nvidia-driver # make install clean (I built with options FREEBSD_AGP checked, ACPI checked, LINUX unchecked). 3) You can install 2 more optional tools for configuring the nvidia card settings. I have not used them, but I installed them. # cd /usr/ports/x11-driver/nvidia-settings # make install clean # cd /usr/ports/x11-driver/nvidia-xconfig # make install clean 4) I also installed the fbdev driver from X.Org. # cd /usr/ports/x11-drivers/xf86-video-fbdev # make install clean 5) Add the nvidia driver as a dynamically loaded kernel module. # cd /boot # vi loader.conf (you better know how to use vi to edit) --- add the line nvidia_load="YES" --- it is the only line I have in my loader.conf file 6) Reboot the system # reboot 7) If you want to see the version you just installed (your versions may be newer than mine below)... # pkg_info | grep nvidia nvidia-driver-185.18.29 nvidia-settings-190.32 nvidia-xconfig-190.32 # pkg_info | grep fbdev xf86-video-fbdev-0.4.0_2 8) Generate your xorg.conf.new file. # cd /root # Xorg -configure 9) Edit the xorg.conf.new file. # vi xorg.conf.new --- change the line Driver "nv" to read Driver "nvidia" 10) Test the config file. # Xorg -config xorg.conf -retro --- you should get a grey screen and your mouse should work, especially if your mouse worked when installing FreeBSD --- to kill the test, press CTRL-ALT-BKSP 11) If everything worked, move and rename (drop the new extension) the config file to the /etc directory # mv xorg.conf.new /etc/X11/xorg.conf 12) Test again. Log in as another user belonging to the wheel group (or login as root). % startx --- you should get 3 green windows --- you can kill X by clicking on the large window on the left, and typing exit From kennethcf at earthlink.net Sat Sep 12 06:23:19 2009 From: kennethcf at earthlink.net (Kenneth) Date: Sat Sep 12 06:23:25 2009 Subject: configuring X on the Presario with the 8200M driver Message-ID: <27572196.1252736598020.JavaMail.root@wamui-june.atl.sa.earthlink.net> Step 10 should be.... # Xorg -config xorg.conf.new -retro -----Original Message----- >From: Kenneth >Sent: Sep 12, 2009 2:12 AM >To: freebsd-questions@freebsd.org, FreeBSD-x11@freebsd.org >Cc: jules.stocks@gmail.com, gesbbb@yahoo.com >Subject: configuring X on the Presario with the 8200M driver > >Moving this discussion to freebsd-x11. > >I have a Presario CQ60 with the NVIDIA 8200M G, and X is working! > >Here are the steps to get there. Do everything as root: > >1) Update your ports to the most recent. Follow the FreeBSD manual, section 4.5 Using the Ports Collection, nuke the contents of /usr/ports, and install a new base using portsnap or cvsup. > >2) Install the nvidia-driver. ># cd /usr/ports/x11-driver/nvidia-driver ># make install clean (I built with options FREEBSD_AGP checked, ACPI checked, LINUX unchecked). > >3) You can install 2 more optional tools for configuring the nvidia card settings. I have not used them, but I installed them. ># cd /usr/ports/x11-driver/nvidia-settings ># make install clean ># cd /usr/ports/x11-driver/nvidia-xconfig ># make install clean > >4) I also installed the fbdev driver from X.Org. ># cd /usr/ports/x11-drivers/xf86-video-fbdev ># make install clean > >5) Add the nvidia driver as a dynamically loaded kernel module. ># cd /boot ># vi loader.conf (you better know how to use vi to edit) >--- add the line nvidia_load="YES" >--- it is the only line I have in my loader.conf file > >6) Reboot the system ># reboot > >7) If you want to see the version you just installed (your versions may be newer than mine below)... ># pkg_info | grep nvidia >nvidia-driver-185.18.29 >nvidia-settings-190.32 >nvidia-xconfig-190.32 ># pkg_info | grep fbdev >xf86-video-fbdev-0.4.0_2 > >8) Generate your xorg.conf.new file. ># cd /root ># Xorg -configure > >9) Edit the xorg.conf.new file. ># vi xorg.conf.new >--- change the line Driver "nv" > to read Driver "nvidia" > >10) Test the config file. ># Xorg -config xorg.conf -retro >--- you should get a grey screen and your mouse should work, especially if your mouse worked when installing FreeBSD >--- to kill the test, press CTRL-ALT-BKSP > >11) If everything worked, move and rename (drop the new extension) the config file to the /etc directory ># mv xorg.conf.new /etc/X11/xorg.conf > >12) Test again. Log in as another user belonging to the wheel group (or login as root). >% startx >--- you should get 3 green windows >--- you can kill X by clicking on the large window on the left, and typing exit > > > From dnelson at allantgroup.com Sat Sep 12 07:06:57 2009 From: dnelson at allantgroup.com (Dan Nelson) Date: Sat Sep 12 07:07:04 2009 Subject: ports: how to handle 'alternate' dependencies In-Reply-To: References: Message-ID: <20090912070655.GC54762@dan.emsphone.com> In the last episode (Sep 11), John W said: > I'm just learning the guts of how ports work, and wonder: > > How do ports specify that "any one of X, Y, Z " would satisfy a dependency. > > For instance, when I build graphics/jalbum, it says it requires jdk16. > I would rather use diablo-jdk16, since I find it faster and it is > easier to install. > > But how would I alter graphics/jalbum to say, essentially, "either > jdk16 or diablo-jdk16 is required" > > Generally, how to handle the case when a port requires X, but there are > multiple implementations of X that can perform the job, and any will > suffice? I feel like this issue must come up from time to time, what is > the right way to deal with it? I didn't see any mention of this in the > porters handbook... This question might be better asked on the freebsd-ports mailing list... In your specific case, since you're looking at a java port, you have to follow the rules in /usr/ports/Mk/bsd.java.mk , which let you specify things like: USE_JAVA=YES JAVA_VERSION=1.6 JAVA_VENDOR="freebsd bsdjava" , to force the use of only Java 1.6 (not 1.5 or 1.7), and only the source-built or diablo-binary variants. Many port groups that provide multiple versions of an application either have special code in bsd.port.mk or have their own bsd.xxx.mk, and they usually let the port maintainer set WANT_XXX or WITH_XXX variables to prefer a particular version. See bsd.gecko.mk and bsd.database.mk for some complex examples. For the completely general case of two independant ports providing the same feature your port needs, you can roll your own checks. To prefer the playmusic port, but use the playwav port if it's already installed: .if exists(${LOCALBASE}/bin/playwavfile) RUN_DEPENDS+=playwav:${PORTSDIR}/audio/playwav .else RUN_DEPENDS+=playmusic:${PORTSDIR}/audio/playmusic .endif You can also get fancy and use OPTIONS to allow the user to pick their preferred alternative ports, using ".if exists" checks to pre-select any already-installed ones. -- Dan Nelson dnelson@allantgroup.com From m.seaman at infracaninophile.co.uk Sat Sep 12 08:54:53 2009 From: m.seaman at infracaninophile.co.uk (Matthew Seaman) Date: Sat Sep 12 08:55:01 2009 Subject: ports: how to handle 'alternate' dependencies In-Reply-To: References: Message-ID: <4AAB61C9.4030005@infracaninophile.co.uk> John W wrote: > I'm just learning the guts of how ports work, and wonder: > > How do ports specify that "any one of X, Y, Z " would satisfy a dependency. > > For instance, when I build graphics/jalbum, it says it requires jdk16. > I would rather use diablo-jdk16, since I find it faster and it is > easier to install. > > But how would I alter graphics/jalbum to say, essentially, "either > jdk16 or diablo-jdk16 is required" > > Generally, how to handle the case when a port requires X, but there > are multiple implementations of X that can perform the job, and any > will suffice? > I feel like this issue must come up from time to time, what is the > right way to deal with it? > I didn't see any mention of this in the porters handbook... This is a quite tricky area. First thing to realise is that a dependency line like this in a port: RUN_DEPENDS+= ${LOCALBASE}/sbin/suphp:${PORTSDIR}/www/suphp says that the port needs ${LOCALBASE}/sbin/suphp in order to run. The port will be satisfied if there is any executable file of that name in place -- there's no check that the file belongs to any particular port or even to any port at all. If the test file is not found, then the second part of the dependency line just indicates an example of a port that when installed will provide the dependency. Now, for most of the dependency lines shown explicitly in port makefiles, there isn't any ambiguity here: there's only one port available that can fulfil the dependency. Job done. Where there are multiple choices, you see two different scenarios: * Ports with 'devel' variants or multiple release versions, but that only have a few dependents. In this case, if you want a non-standard version, simply install it first, before trying to install the dependent port. This will work just fine from the point of view of the software operating correctly, although it can confuse ports management tools, which have been known to continually try and substitute the listed dependency. * Foundation ports -- things like Apache, MySQL, OpenLDAP, autoconf, Java, perl, python. Here there are hundreds or thousands of possible dependents. In these cases, typically there will be a special mechanism for specifying what version(s) can be used with each port, possibly a corresponding user settable flag for choosing what should be installed, and frequently a mechanism for feeding back into the ports system what version /was/ installed. Lets take perl as an example. Currently there are two, pretty much freely interchangeable, versions of perl available in the ports: /usr/ports/lang/perl5.8 --- perl-5.8.9_3 /usr/ports/lang/perl5.10 --- perl-5.10.1 By default, you'll get perl5.8 -- that is, if you install anything with a dependency on perl and perl was not previously installed and you haven't made a deliberate choice to install one or the other. However, you can opt to use perl5.10 simply by installing it -- or more likely, as perl is pretty fundamental to the system and tends to be installed just about everywhere by replacing perl5.8 with it. eg: # portupgrade -o lang/perl5.10 -f perl-5.8.9_3 # portupgrade -x perl-5.10.1 -fr perl-5.10.1 After doing this, any perl-dependent ports you install will happily depend on perl5.10 and if you build your own INDEX, perl5.10 will appear everywhere in the dependency listings. The reason is that perl adds text like the following to /etc/make.conf: # added by use.perl 2009-09-12 09:04:56 PERL_VERSION=5.10.1 In principle you could add this variable definition to /etc/make.conf before ever installing perl in order to get the version you want straight away. This works because ports that depend on perl generally contain the magic invocation like: USE_PERL= yes or PERL_CONFIGURE= yes which ultimately have the effect of causing /usr/ports/Mk/bsd.perl.mk to be included and parsed during a make(1) invocation. The PERL_VERSION variable is examined in there and used to modify various *_DEPENDS lines amongst other things. In fact, the majority of the files under /usr/ports/Mk exist to provide this sort of alternate dependency capability for the sort of commonly used software packages that the majority of everything else relies upon. Perl is slightly unusual in that at the moment either of the perl versions is compatible with any perl dependent ports in the tree. There's not much perl-5.10 specific code readily available anywhere. More frequently ports will need a specific version or versions of a dependency, and the typical mechanisms for specifying that work like the following. The port maintainer can indicate that a port depends on a popular software system and what dependency versions are compatible with it by including a USE_FOO variable, possibly with additional variables to control various behaviours: USE_MYSQL= yes IGNORE_WITH_MYSQL= 323 40 41 The user can frequently use a 'WITH_FOO' variable in /etc/make.conf, or make a selection via an OPTIONS dialogue to choose their preference: WITH_MYSQL_VER= 50 There are any number of variations on how all this sort of stuff works in detail, depending on the needs of individual ports. There's a lot of documentation in the Porter's Handbook and the various makefiles in /usr/ports/Mk/ are extensively commented. Simply copying what another port does is a good starting point. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090912/56b804e2/signature.pgp From bsam at ipt.ru Sat Sep 12 09:38:19 2009 From: bsam at ipt.ru (Boris Samorodov) Date: Sat Sep 12 09:38:26 2009 Subject: c++: invalid conversion from 'int' to 'const char*' Message-ID: <53480375@bb.ipt.ru> Hello List, I'm porting a c++ application to FreeBSD. I've got an error: ----- ~/work/src/FileChannel.cpp: In member function 'QString FileChannel::errorString()': ~/work/src/FileChannel.cpp:251: error: invalid conversion from 'int' to 'const char*' ~/work/src/FileChannel.cpp:251: error: initializing argument 2 of 'char* strcpy(char*, const char*)' *** Error code 1 ----- A simle patch makes the application to be compiled without errors: ----- --- src/FileChannel.cpp.orig 2009-09-12 13:08:28.000000000 +0400 +++ src/FileChannel.cpp 2009-09-12 13:08:41.000000000 +0400 @@ -248,7 +248,7 @@ QString FileChannel::errorString() { - strcpy(lastErrorString, strerror_r(errno, lastErrorString, 0)); + strcpy(lastErrorString, "XXX: Fix me: errno should be here"); return QString(trUtf8(lastErrorString)); } ----- If I understand correctly, an integer value which is returned by strerror_r() should be converted to const char*. I have _very_ basic knowledge about c++. Hence my question. Can someone provide a patch (a proof of concept)? Thanks! -- WBR, Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve From bsam at ipt.ru Sat Sep 12 10:19:23 2009 From: bsam at ipt.ru (Boris Samorodov) Date: Sat Sep 12 10:19:30 2009 Subject: linux-pango won't install In-Reply-To: <20090912050123.GB27240@kokopelli.hydra> (Chad Perrin's message of "Fri, 11 Sep 2009 23:01:23 -0600") References: <20090911034913.GA22437@kokopelli.hydra> <20090911104025.GA23566@torus.slightlystrange.org> <4AAA2B35.4010309@infracaninophile.co.uk> <20090911070849.559fa992@scorpio.seibercom.net> <20090912050123.GB27240@kokopelli.hydra> Message-ID: <87407909@bb.ipt.ru> On Fri, 11 Sep 2009 23:01:23 -0600 Chad Perrin wrote: > > If you still want to install the port, you could just add this to > > the /etc/make.conf file: > > > > # Pango > > .if $(.CURDIR:M*/x11-toolkits/linux-pango) > > DISABLE_VULNERABILITIES=yes > > .endif > How long has this been broken for 7.2? Considering all the stuff that > depends on linux-pango, I'm surprised it hasn't been fixed. It will be broken until someone provide an URL to non-vulnerable RPM package. -- WBR, Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve From freebsd-listen at fabiankeil.de Sat Sep 12 10:56:21 2009 From: freebsd-listen at fabiankeil.de (Fabian Keil) Date: Sat Sep 12 10:56:28 2009 Subject: c++: invalid conversion from 'int' to 'const char*' In-Reply-To: <53480375@bb.ipt.ru> References: <53480375@bb.ipt.ru> Message-ID: <20090912124143.2fb77924@r500.local> Boris Samorodov wrote: > I'm porting a c++ application to FreeBSD. I've got an error: > ----- > ~/work/src/FileChannel.cpp: In member function 'QString FileChannel::errorString()': > ~/work/src/FileChannel.cpp:251: error: invalid conversion from 'int' to 'const char*' > ~/work/src/FileChannel.cpp:251: error: initializing argument 2 of 'char* strcpy(char*, const char*)' > *** Error code 1 > ----- > > A simle patch makes the application to be compiled without errors: > ----- > --- src/FileChannel.cpp.orig 2009-09-12 13:08:28.000000000 +0400 > +++ src/FileChannel.cpp 2009-09-12 13:08:41.000000000 +0400 > @@ -248,7 +248,7 @@ > > QString FileChannel::errorString() > { > - strcpy(lastErrorString, strerror_r(errno, lastErrorString, 0)); > + strcpy(lastErrorString, "XXX: Fix me: errno should be here"); > return QString(trUtf8(lastErrorString)); > } At least to me, this looks like a bug in the program you are porting. I don't see how this would work on other platforms either, unless the libc strerror_r() is shadowed which seems unlikely. I assume someone replaced strerror() with strerror_r() and missed the differences. The third argument of strerror_r() being zero looks strange, too. > If I understand correctly, an integer value which is returned by > strerror_r() should be converted to const char*. > > I have _very_ basic knowledge about c++. Hence my question. > Can someone provide a patch (a proof of concept)? Thanks! You could try replacing the strerror_r() call with strerror(errno). It wouldn't be thread-safe, but should at least work most of the time. If the application is threaded, a better fix would be not to use strcpy() at all. strerror_r() already puts the error description into the buffer, so there's no need to copy anything. To do this, you'd still need to fix the third argument, though. If lastErrorString is an array you could use sizeof(lastErrorString), if it's a pointer you could look for a malloc() call that allocates the buffer to figure out the size. Either way, you should probably report the problem upstream. Fabian -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090912/83a58599/signature.pgp From bsam at ipt.ru Sat Sep 12 11:22:11 2009 From: bsam at ipt.ru (Boris Samorodov) Date: Sat Sep 12 11:22:18 2009 Subject: c++: invalid conversion from 'int' to 'const char*' In-Reply-To: <20090912124143.2fb77924@r500.local> (Fabian Keil's message of "Sat, 12 Sep 2009 12:41:43 +0200") References: <53480375@bb.ipt.ru> <20090912124143.2fb77924@r500.local> Message-ID: <33804141@bb.ipt.ru> On Sat, 12 Sep 2009 12:41:43 +0200 Fabian Keil wrote: > Boris Samorodov wrote: > > I'm porting a c++ application to FreeBSD. I've got an error: > > ----- > > ~/work/src/FileChannel.cpp: In member function 'QString FileChannel::errorString()': > > ~/work/src/FileChannel.cpp:251: error: invalid conversion from 'int' to 'const char*' > > ~/work/src/FileChannel.cpp:251: error: initializing argument 2 of 'char* strcpy(char*, const char*)' > > *** Error code 1 > > ----- > > > > A simle patch makes the application to be compiled without errors: > > ----- > > --- src/FileChannel.cpp.orig 2009-09-12 13:08:28.000000000 +0400 > > +++ src/FileChannel.cpp 2009-09-12 13:08:41.000000000 +0400 > > @@ -248,7 +248,7 @@ > > > > QString FileChannel::errorString() > > { > > - strcpy(lastErrorString, strerror_r(errno, lastErrorString, 0)); > > + strcpy(lastErrorString, "XXX: Fix me: errno should be here"); > > return QString(trUtf8(lastErrorString)); > > } > At least to me, this looks like a bug in the program you are porting. > I don't see how this would work on other platforms either, unless > the libc strerror_r() is shadowed which seems unlikely. It compiles at linux (with warning though). ;-) > I assume someone replaced strerror() with strerror_r() and > missed the differences. The third argument of strerror_r() > being zero looks strange, too. > > If I understand correctly, an integer value which is returned by > > strerror_r() should be converted to const char*. > > > > I have _very_ basic knowledge about c++. Hence my question. > > Can someone provide a patch (a proof of concept)? Thanks! > You could try replacing the strerror_r() call with strerror(errno). > It wouldn't be thread-safe, but should at least work most of the > time. Aha, the following patch helps: ----- --- src/FileChannel.cpp.orig 2009-09-12 15:09:00.000000000 +0400 +++ src/FileChannel.cpp 2009-09-12 15:11:23.000000000 +0400 @@ -248,7 +248,7 @@ QString FileChannel::errorString() { - strcpy(lastErrorString, strerror_r(errno, lastErrorString, 0)); + strcpy(lastErrorString, strerror(errno)); return QString(trUtf8(lastErrorString)); } ----- > If the application is threaded, a better fix would be not to use > strcpy() at all. strerror_r() already puts the error description > into the buffer, so there's no need to copy anything. To do this, > you'd still need to fix the third argument, though. > If lastErrorString is an array you could use sizeof(lastErrorString), > if it's a pointer you could look for a malloc() call that allocates > the buffer to figure out the size. Thanks for your suggestions, much appreciated. > Either way, you should probably report the problem upstream. Yep, it has been already done. The author said he'll fix it at the next release but he have no time ATM. While I try to create a port with the current release. -- WBR, Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve From alexbestms at math.uni-muenster.de Sat Sep 12 11:32:28 2009 From: alexbestms at math.uni-muenster.de (Alexander Best) Date: Sat Sep 12 11:32:36 2009 Subject: where to put `startx` serverargs Message-ID: hi there, since i don't use ipv6 X produces the following warning when starting up: _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6 _XSERVTransOpen: transport open failed for inet6/otaku:0 _XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6 so i'd to start X this way: `startx -- -nolisten inet6`. i looked through the man pages of startx and xinit but couldn't find where to put the argument "-nolisten inet6" so `startx` picks it up automatically. currently i have this extra line in /usr/local/bin/startx: "serverargs = -nolisten inet6" but that's just a hack because i couldn't find any information on where to put the serverarg. cheers. alex From kennethcf at earthlink.net Sat Sep 12 12:11:05 2009 From: kennethcf at earthlink.net (Kenneth) Date: Sat Sep 12 12:11:18 2009 Subject: configuring X on the Presario with the 8200M driver Message-ID: <8782032.1252757463899.JavaMail.root@wamui-bucket.atl.sa.earthlink.net> OK...I forgot 1 important step before rebooting (step 6 in the sequece below)... 5.5) Edit the /etc/rc.conf file... # vi /etc/rc.conf --- add the following 2 lines hald_enable="YES" dbus_enable="YES" -----Original Message----- >From: Kenneth >Sent: Sep 12, 2009 2:23 AM >To: Kenneth , freebsd-questions@freebsd.org, FreeBSD-x11@freebsd.org >Cc: jules.stocks@gmail.com, gesbbb@yahoo.com >Subject: Re: configuring X on the Presario with the 8200M driver > >Step 10 should be.... ># Xorg -config xorg.conf.new -retro > >-----Original Message----- >>From: Kenneth >>Sent: Sep 12, 2009 2:12 AM >>To: freebsd-questions@freebsd.org, FreeBSD-x11@freebsd.org >>Cc: jules.stocks@gmail.com, gesbbb@yahoo.com >>Subject: configuring X on the Presario with the 8200M driver >> >>Moving this discussion to freebsd-x11. >> >>I have a Presario CQ60 with the NVIDIA 8200M G, and X is working! >> >>Here are the steps to get there. Do everything as root: >> >>1) Update your ports to the most recent. Follow the FreeBSD manual, section 4.5 Using the Ports Collection, nuke the contents of /usr/ports, and install a new base using portsnap or cvsup. >> >>2) Install the nvidia-driver. >># cd /usr/ports/x11-driver/nvidia-driver >># make install clean (I built with options FREEBSD_AGP checked, ACPI checked, LINUX unchecked). >> >>3) You can install 2 more optional tools for configuring the nvidia card settings. I have not used them, but I installed them. >># cd /usr/ports/x11-driver/nvidia-settings >># make install clean >># cd /usr/ports/x11-driver/nvidia-xconfig >># make install clean >> >>4) I also installed the fbdev driver from X.Org. >># cd /usr/ports/x11-drivers/xf86-video-fbdev >># make install clean >> >>5) Add the nvidia driver as a dynamically loaded kernel module. >># cd /boot >># vi loader.conf (you better know how to use vi to edit) >>--- add the line nvidia_load="YES" >>--- it is the only line I have in my loader.conf file >> >>6) Reboot the system >># reboot >> >>7) If you want to see the version you just installed (your versions may be newer than mine below)... >># pkg_info | grep nvidia >>nvidia-driver-185.18.29 >>nvidia-settings-190.32 >>nvidia-xconfig-190.32 >># pkg_info | grep fbdev >>xf86-video-fbdev-0.4.0_2 >> >>8) Generate your xorg.conf.new file. >># cd /root >># Xorg -configure >> >>9) Edit the xorg.conf.new file. >># vi xorg.conf.new >>--- change the line Driver "nv" >> to read Driver "nvidia" >> >>10) Test the config file. >># Xorg -config xorg.conf -retro >>--- you should get a grey screen and your mouse should work, especially if your mouse worked when installing FreeBSD >>--- to kill the test, press CTRL-ALT-BKSP >> >>11) If everything worked, move and rename (drop the new extension) the config file to the /etc directory >># mv xorg.conf.new /etc/X11/xorg.conf >> >>12) Test again. Log in as another user belonging to the wheel group (or login as root). >>% startx >>--- you should get 3 green windows >>--- you can kill X by clicking on the large window on the left, and typing exit >> >> >> From kamikaze at bsdforen.de Sat Sep 12 12:11:18 2009 From: kamikaze at bsdforen.de (Dominic Fandrey) Date: Sat Sep 12 12:11:26 2009 Subject: reducing size of apache instances In-Reply-To: <4AAAE7F6.2060806@identry.com> References: <4AA9BCF0.6040003@identry.com> <4AAA577A.8070103@identry.com> <4AAA8D60.4000300@identry.com> <237c27100909111105m4ab6fa37v1fa9019d2cd94d2@mail.gmail.com> <4AAAA820.4020407@identry.com> <6201873e0909111303k472b20c2t43d9a635fa0151ee@mail.gmail.com> <4AAAB124.8050908@identry.com> <237c27100909111515s70310092ua980038b3f16983e@mail.gmail.com> <4AAAE7F6.2060806@identry.com> Message-ID: <4AAB8910.6070808@bsdforen.de> John Almberg wrote: > I'm starting to wonder about the Swap info from top... it never changes. > It has said the same thing all day, since I've been watching it. Does > that make sense? > > Swap: 2008M Total, 150M Used, 1858M Free, 7% Inuse That looks about normal if your RAM suffices. In that case only memory that hasn't been accessed for more than 24 hours will be moved to the swap space. So after an uptime of 24 hours, if no more apps get started there's no more reason for it to change. From mkhitrov at gmail.com Sat Sep 12 12:50:09 2009 From: mkhitrov at gmail.com (Maxim Khitrov) Date: Sat Sep 12 12:50:16 2009 Subject: Rule equivalence of pf uRPF check Message-ID: <26ddd1750909120549ve82a843k464c1233c3a6f603@mail.gmail.com> Hello all, I sent this message to -pf list, but no one answered. I would like to verify my assumptions regarding the way pf's uRPF check works. I'm using a Soekris net5501 board as a firewall; port 0 ($ext_if) is internet uplink, ports 1-3 ($int_if, $mil_if, $vpn_if) are separate lan segments that should not be communicating with one another. Here is the start of my filter section: # Block all traffic by default block log # Broadcast DHCP traffic must be passed before urpf check pass in quick on !$ext_if proto udp from port dhcpc to \ 255.255.255.255 port dhcps # Enable source address spoofing protection block in quick from urpf-failed The question I have is whether the urpf-failed check is equivalent to the following three rules for each of the interfaces (I'm using $int_if as an example here): block in quick on $int_if from !$int_if:network block in quick on !$int_if from $int_if:network block in quick from $int_if The OpenBSD pf faq states that urpf-check is equivalent to the antispoof rules, but the antispoof section lists only the last two rules in my example as being equivalent. So the question is does urpf imply the first rule as well? - Max From m.seaman at infracaninophile.co.uk Sat Sep 12 13:10:26 2009 From: m.seaman at infracaninophile.co.uk (Matthew Seaman) Date: Sat Sep 12 13:10:33 2009 Subject: Rule equivalence of pf uRPF check In-Reply-To: <26ddd1750909120549ve82a843k464c1233c3a6f603@mail.gmail.com> References: <26ddd1750909120549ve82a843k464c1233c3a6f603@mail.gmail.com> Message-ID: <4AAB9DBC.50007@infracaninophile.co.uk> Maxim Khitrov wrote: > block in quick on $int_if from !$int_if:network > block in quick on !$int_if from $int_if:network > block in quick from $int_if > > The OpenBSD pf faq states that urpf-check is equivalent to the > antispoof rules, but the antispoof section lists only the last two > rules in my example as being equivalent. So the question is does urpf > imply the first rule as well? Not if uRPF is intended as a general mechanism. What would happen if you applied that on $ext_if (the external interface you connect to the rest of the internet with)? It's perfectly valid for packets from other than directly attached networks to be passed by your firewall -- not doing that would, in fact, completely negate your web browsing experience... Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090912/aa7a405b/signature.pgp From sagara at tomahawk.com.sg Sat Sep 12 15:13:08 2009 From: sagara at tomahawk.com.sg (Sagara Wijetunga) Date: Sat Sep 12 15:13:15 2009 Subject: How to setup mDNSResponder on FreeBSD? Message-ID: <4AABBAD9.7040005@tomahawk.com.sg> Hi all I have installed the net/mDNSResponder port on a FreeBSD 7.2 i386 computer. Set to launch the mdnsd on start up (in /etc/rc.conf). Changed "hosts" line in /etc/nsswitch.conf to "hosts: files mdns dns". Rebooted. "mDNSIdentify name.local" immediately shows the IP address of the other computer but "ping name.local" shows following message: ping: cannot resolve name.local: Unknown host Its the same for ssh too. Is there anything else to set up in FreeBSD? Appreciate your reply. Sagara From kes-kes at yandex.ru Sat Sep 12 15:50:40 2009 From: kes-kes at yandex.ru (=?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?=) Date: Sat Sep 12 15:51:06 2009 Subject: System Upgrade Message-ID: <1608907209.20090912185041@yandex.ru> ????????????, Freebsd-questions. Can I do this steps not in single user mode?? # 5. `reboot' (in single user mode: boot -s from the loader prompt). # 6. `mergemaster -p' # 7. `make installworld' # 8. `make delete-old' # 9. `mergemaster' (you may wish to use -U or -ai). # 10. `reboot' # 11. `make delete-old-libs' (in case no 3rd party program uses them anymore) I am wanna upgrade remotely -- ? ?????????, ??????? mailto:kes-kes@yandex.ru From amvandemore at gmail.com Sat Sep 12 16:18:32 2009 From: amvandemore at gmail.com (Adam Vande More) Date: Sat Sep 12 16:18:39 2009 Subject: System Upgrade In-Reply-To: <1608907209.20090912185041@yandex.ru> References: <1608907209.20090912185041@yandex.ru> Message-ID: <6201873e0909120918g2855b3b0s7fed03888729cda3@mail.gmail.com> 2009/9/12 ??????? ??????? > ????????????, Freebsd-questions. > > Can I do this steps not in single user mode?? > > # 5. `reboot' (in single user mode: boot -s from the loader > prompt). > # 6. `mergemaster -p' > # 7. `make installworld' > # 8. `make delete-old' > # 9. `mergemaster' (you may wish to use -U or > -ai). > # 10. `reboot' > # 11. `make delete-old-libs' (in case no 3rd party program uses them > anymore) > > I am wanna upgrade remotely > -- > ? ?????????, > ??????? mailto:kes-kes@yandex.ru > > Yes, but it's not without risk. Best to turn down any service not absolutely needed eg everything except sshd. In my experience, this works well but YMMV -- Adam Vande More From jwdevel at gmail.com Sat Sep 12 17:47:30 2009 From: jwdevel at gmail.com (John W) Date: Sat Sep 12 17:47:38 2009 Subject: Can anyone reproduce this Samba problem? In-Reply-To: <20090906011215.CA0BDB7DD@kev.msw.wpafb.af.mil> References: <20090906011215.CA0BDB7DD@kev.msw.wpafb.af.mil> Message-ID: On Sat, Sep 5, 2009 at 6:12 PM, Karl Vogel wrote: > > ? http://www.theopensourcerer.com/2008/04/17/a-shared-drop-box-using-samba/ > ? has some suggestions that might help. It is a good link - In fact it's what I based my setup on. However, it relies on both 'inherit owner' and 'directory mode' / 'force directory mode' working simultaneously. And on my install, for some reason, that does not work. I can only get one or the other to work. Still not sure if it's a general Samba issue or FreeBSD-specific (or me being dumb somehow). -John From kes-kes at yandex.ru Sat Sep 12 18:45:01 2009 From: kes-kes at yandex.ru (=?koi8-r?B?68/O2MvP1yDl18fFzsnK?=) Date: Sat Sep 12 19:00:42 2009 Subject: System Upgrade In-Reply-To: <6201873e0909120918g2855b3b0s7fed03888729cda3@mail.gmail.com> References: <1608907209.20090912185041@yandex.ru> <6201873e0909120918g2855b3b0s7fed03888729cda3@mail.gmail.com> Message-ID: <1395552289.20090912214502@yandex.ru> ????????????, Adam. ?? ?????? 12 ???????? 2009 ?., 19:18:28: AVM> 2009/9/12 ??????? ??????? >> ????????????, Freebsd-questions. >> >> Can I do this steps not in single user mode?? >> >> # 5. `reboot' (in single user mode: boot -s from the loader >> prompt). >> # 6. `mergemaster -p' >> # 7. `make installworld' >> # 8. `make delete-old' >> # 9. `mergemaster' (you may wish to use -U or >> -ai). >> # 10. `reboot' >> # 11. `make delete-old-libs' (in case no 3rd party program uses them >> anymore) >> >> I am wanna upgrade remotely >> -- >> ? ?????????, >> ??????? mailto:kes-kes@yandex.ru >> >> Yes, but it's not without risk. Best to turn down any service not AVM> absolutely needed eg everything except sshd. In my experience, this works AVM> well but YMMV YMMV??? -- ? ?????????, ??????? mailto:kes-kes@yandex.ru From amvandemore at gmail.com Sat Sep 12 19:12:38 2009 From: amvandemore at gmail.com (Adam Vande More) Date: Sat Sep 12 19:12:44 2009 Subject: System Upgrade In-Reply-To: <1395552289.20090912214502@yandex.ru> References: <1608907209.20090912185041@yandex.ru> <6201873e0909120918g2855b3b0s7fed03888729cda3@mail.gmail.com> <1395552289.20090912214502@yandex.ru> Message-ID: <6201873e0909121212ib7613a7hc2caab373e62d7de@mail.gmail.com> 2009/9/12 ??????? ??????? > ????????????, Adam. > > ?? ?????? 12 ???????? 2009 ?., 19:18:28: > > AVM> 2009/9/12 ??????? ??????? > > >> ????????????, Freebsd-questions. > >> > >> Can I do this steps not in single user mode?? > >> > >> # 5. `reboot' (in single user mode: boot -s from the loader > >> prompt). > >> # 6. `mergemaster -p' > >> # 7. `make installworld' > >> # 8. `make delete-old' > >> # 9. `mergemaster' (you may wish to use -U or > >> -ai). > >> # 10. `reboot' > >> # 11. `make delete-old-libs' (in case no 3rd party program uses them > >> anymore) > >> > >> I am wanna upgrade remotely > >> -- > >> ? ?????????, > >> ??????? mailto:kes-kes@yandex.ru > >> > >> Yes, but it's not without risk. Best to turn down any service not > AVM> absolutely needed eg everything except sshd. In my experience, this > works > AVM> well but YMMV > > > YMMV??? > > The results of you doing this procedure may be different than mine. -- Adam Vande More From mkhitrov at gmail.com Sat Sep 12 21:54:00 2009 From: mkhitrov at gmail.com (Maxim Khitrov) Date: Sat Sep 12 21:54:07 2009 Subject: Rule equivalence of pf uRPF check In-Reply-To: <4AAB9DBC.50007@infracaninophile.co.uk> References: <26ddd1750909120549ve82a843k464c1233c3a6f603@mail.gmail.com> <4AAB9DBC.50007@infracaninophile.co.uk> Message-ID: <26ddd1750909121453t390f1ca0lb030fdd1cc6a4feb@mail.gmail.com> On Sat, Sep 12, 2009 at 9:10 AM, Matthew Seaman wrote: > Maxim Khitrov wrote: > >> block in quick on $int_if from !$int_if:network >> block in quick on !$int_if from $int_if:network >> block in quick from $int_if >> >> The OpenBSD pf faq states that urpf-check is equivalent to the >> antispoof rules, but the antispoof section lists only the last two >> rules in my example as being equivalent. So the question is does urpf >> imply the first rule as well? > > Not if uRPF is intended as a general mechanism. ?What would happen if > you applied that on $ext_if (the external interface you connect to the rest > of > the internet with)? ?It's perfectly valid for packets from other than > directly > attached networks to be passed by your firewall -- not doing that would, in > fact, > completely negate your web browsing experience... > > ? ? ? ?Cheers, > > ? ? ? ?Matthew Right, I should have mentioned that I'm only talking about internal interfaces that serve separate 10.x/16 networks. My $int_if network is 10.0/16 and it is not the default route. Under those conditions, would the urpf check block any traffic coming in on $int_if that doesn't come from 10.0/16 network? If not, can you give me an example of what would be allowed? One other related question. Would urpf block a packet arriving on any physical interface that has a source IP of 127.0.0.1 or any other IP assigned to the firewall itself? - Max From jon at radel.com Sat Sep 12 22:31:05 2009 From: jon at radel.com (Jon Radel) Date: Sat Sep 12 22:31:13 2009 Subject: System Upgrade In-Reply-To: <6201873e0909121212ib7613a7hc2caab373e62d7de@mail.gmail.com> References: <1608907209.20090912185041@yandex.ru> <6201873e0909120918g2855b3b0s7fed03888729cda3@mail.gmail.com> <1395552289.20090912214502@yandex.ru> <6201873e0909121212ib7613a7hc2caab373e62d7de@mail.gmail.com> Message-ID: <4AAC20CB.3040504@radel.com> >> YMMV??? >> >> The results of you doing this procedure may be different than mine. > > Your Mileage May Vary A joking reference to advertisements for new cars in the US which are required to provide gas mileage figures, which always turn out to be optimistic and used a little foot note that states this phrase. These days the footnote is a bit more firm: Actual mileage will vary. See http://www.urbandictionary.com/define.php?term=YMMV or Google for more. -- --Jon Radel jon@radel.com -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3283 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090912/94cbc66e/smime.bin From green_tiger at comcast.net Sat Sep 12 22:50:50 2009 From: green_tiger at comcast.net (John L. Templer) Date: Sat Sep 12 22:50:57 2009 Subject: c++: invalid conversion from 'int' to 'const char*' In-Reply-To: <33804141@bb.ipt.ru> References: <53480375@bb.ipt.ru> <20090912124143.2fb77924@r500.local> <33804141@bb.ipt.ru> Message-ID: <4AAC22B1.20900@comcast.net> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Boris Samorodov wrote: > On Sat, 12 Sep 2009 12:41:43 +0200 Fabian Keil wrote: >> Boris Samorodov wrote: > >>> I'm porting a c++ application to FreeBSD. I've got an error: >>> ----- >>> ~/work/src/FileChannel.cpp: In member function 'QString FileChannel::errorString()': >>> ~/work/src/FileChannel.cpp:251: error: invalid conversion from 'int' to 'const char*' >>> ~/work/src/FileChannel.cpp:251: error: initializing argument 2 of 'char* strcpy(char*, const char*)' >>> *** Error code 1 >>> ----- >>> >>> A simle patch makes the application to be compiled without errors: >>> ----- >>> --- src/FileChannel.cpp.orig 2009-09-12 13:08:28.000000000 +0400 >>> +++ src/FileChannel.cpp 2009-09-12 13:08:41.000000000 +0400 >>> @@ -248,7 +248,7 @@ >>> >>> QString FileChannel::errorString() >>> { >>> - strcpy(lastErrorString, strerror_r(errno, lastErrorString, 0)); >>> + strcpy(lastErrorString, "XXX: Fix me: errno should be here"); >>> return QString(trUtf8(lastErrorString)); >>> } > >> At least to me, this looks like a bug in the program you are porting. >> I don't see how this would work on other platforms either, unless >> the libc strerror_r() is shadowed which seems unlikely. > > It compiles at linux (with warning though). ;-) > >> I assume someone replaced strerror() with strerror_r() and >> missed the differences. The third argument of strerror_r() >> being zero looks strange, too. > >>> If I understand correctly, an integer value which is returned by >>> strerror_r() should be converted to const char*. >>> >>> I have _very_ basic knowledge about c++. Hence my question. >>> Can someone provide a patch (a proof of concept)? Thanks! > >> You could try replacing the strerror_r() call with strerror(errno). >> It wouldn't be thread-safe, but should at least work most of the >> time. > > Aha, the following patch helps: > ----- > --- src/FileChannel.cpp.orig 2009-09-12 15:09:00.000000000 +0400 > +++ src/FileChannel.cpp 2009-09-12 15:11:23.000000000 +0400 > @@ -248,7 +248,7 @@ > > QString FileChannel::errorString() > { > - strcpy(lastErrorString, strerror_r(errno, lastErrorString, 0)); > + strcpy(lastErrorString, strerror(errno)); > return QString(trUtf8(lastErrorString)); > } > > ----- > >> If the application is threaded, a better fix would be not to use >> strcpy() at all. strerror_r() already puts the error description >> into the buffer, so there's no need to copy anything. To do this, >> you'd still need to fix the third argument, though. > >> If lastErrorString is an array you could use sizeof(lastErrorString), >> if it's a pointer you could look for a malloc() call that allocates >> the buffer to figure out the size. > > Thanks for your suggestions, much appreciated. > >> Either way, you should probably report the problem upstream. > > Yep, it has been already done. The author said he'll fix it at > the next release but he have no time ATM. While I try to create > a port with the current release. > According to the man pages supplied with GNU gcc, this is a GNU extension. (The following is from a Linux system, but I suspect it's similar to the gcc port on FreeBSD.) > NAME > strerror, strerror_r - return string describing error number > > SYNOPSIS > #include > > char *strerror(int errnum); > > int strerror_r(int errnum, char *buf, size_t buflen); > /* XSI-compliant */ > > char *strerror_r(int errnum, char *buf, size_t buflen); > /* GNU-specific */ > The XSI-compliant strerror_r() is preferred for portable applications. > It returns the error string in the user-supplied buffer buf of length > buflen. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqsIq4ACgkQjkAlo11skePOdACfSFAVWlkGskL9lOhzNYdmNAgq 9TYAoJqCRlVdA2rSzv3qXYD0ck6d/hJg =qsX9 -----END PGP SIGNATURE----- From freebsd at insightbb.com Sun Sep 13 02:04:18 2009 From: freebsd at insightbb.com (Steven Friedrich) Date: Sun Sep 13 02:04:26 2009 Subject: SciTE anomaly Message-ID: <200909122204.11782.freebsd@insightbb.com> I'm running FreeBSD 7.2p3, KDE 4.3.1 I added scite port. When I GO (F5), the following ruby program issues an error and fails to work properly: puts "Hello, world. What is your name?" myname = gets() puts "Well, hello there " + myname + "." Here is the output: >ruby hello.rb hello.rb:2:in `gets': Bad file descriptor (Errno::EBADF) from hello.rb:2 Hello, world. What is your name? >Exit code: 1 From perrin at apotheon.com Sun Sep 13 04:24:24 2009 From: perrin at apotheon.com (Chad Perrin) Date: Sun Sep 13 04:24:31 2009 Subject: linux-pango won't install In-Reply-To: <87407909@bb.ipt.ru> References: <20090911034913.GA22437@kokopelli.hydra> <20090911104025.GA23566@torus.slightlystrange.org> <4AAA2B35.4010309@infracaninophile.co.uk> <20090911070849.559fa992@scorpio.seibercom.net> <20090912050123.GB27240@kokopelli.hydra> <87407909@bb.ipt.ru> Message-ID: <20090913042421.GB32126@kokopelli.hydra> On Sat, Sep 12, 2009 at 02:19:22PM +0400, Boris Samorodov wrote: > On Fri, 11 Sep 2009 23:01:23 -0600 Chad Perrin wrote: > > > How long has this been broken for 7.2? Considering all the stuff that > > depends on linux-pango, I'm surprised it hasn't been fixed. > > It will be broken until someone provide an URL to non-vulnerable > RPM package. Daniel Bye's comments seem to indicate that FreeBSD 8.x doesn't have this problem. Did I misunderstand? -- Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] Quoth Antoine de Saint-Exupery: "A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away." -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090913/9c42ad16/attachment.pgp From kernel at webrz.net Sun Sep 13 09:46:00 2009 From: kernel at webrz.net (Jos Chrispijn) Date: Sun Sep 13 09:46:07 2009 Subject: Perl updates Message-ID: <4AACBF63.8020304@webrz.net> Can someone explain why we have to run an update batch in order to have all Perl related programs running with this update? Wouldn't it be better to upgrade Perl and have all programs use it as it hadn't been updated at all? Jos Chrispijn From m.seaman at infracaninophile.co.uk Sun Sep 13 10:38:04 2009 From: m.seaman at infracaninophile.co.uk (Matthew Seaman) Date: Sun Sep 13 10:38:11 2009 Subject: Perl updates In-Reply-To: <4AACBF63.8020304@webrz.net> References: <4AACBF63.8020304@webrz.net> Message-ID: <4AACCB7A.2050106@infracaninophile.co.uk> Jos Chrispijn wrote: > Can someone explain why we have to run an update batch in order to have > all Perl related programs running with this update? Wouldn't it be > better to upgrade Perl and have all programs use it as it hadn't been > updated at all? You're talking about the update of lang/perl5.10 from perl-5.10.0 to perl-5.10.1 ? The reason you need to run perl-after-upgrade is because perl library modules are stored in directory trees which encode the perl version number. perl-after-upgrade basically moves installed modules from /usr/local/lib/perl5/site_perl/5.10.0 to /usr/local/lib/perl5/site_perl/5.10.1 plus it fixes up all of the pkg-plists and various other places where the directory path is embedded. Alternatively you could just re-install every single perl module on the system, plus any other ports that depend on perl, but that's going to be the majority of the software on your machine and perl-after-upgrade is a lot quicker. Even so, ports that embed a perl interpreter -- ie. that dynamically link against libperl.so -- will need to be recompiled, to account for libperl.so now being in a different location. There aren't too many of these: net-mgmt/net-snmp and www/mod_perl{,2} are probably the most commonly encountered. One of the functions of perl-after-upgrade is to tell you what packages need to be rebuilt because of this. Why isn't perl-after-upgrade run automatically? Two reasons. Firstly, the ports system cannot itself distinguish what updates would require perl-after-upgrade to be run: when updating, the mechanism is to delete the old package and then install the new one as if de-novo. The newly installed package has no information about what older version of itself it is replacing, if any. Secondly, you can't make perl-after-upgrade clever enough to deal with all conceivable corner cases. Other than by enforcing particular usage rules on how individual admins manage their perl installations -- a policy that is manifestly *not the BSD way* -- this is unfeasible. Given that we hold that it is in the gift of the individual admin to decide how to manage their systems, there have to be stages somewhere that involve the admin making a concious decision about what to do. Running perl-after-upgrade is one of those points. Lastly, just to note that if the upgrade is across a significantly large change in version number: eg from perl-5.8 to perl-5.10, then any dynamically loaded compiled extension modules (see perlxs(1)) will have to be recompiled as the ABI is not guaranteed to be kept the same in that case. Unfortunately, distinguishing modules that use perlxs from pure perl modules is not something the ports system is currently capable of, so the upgrade instructions there are "rebuild everything that depends on perl". Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090913/c23e8565/signature.pgp From mail25 at bzerk.org Sun Sep 13 10:44:26 2009 From: mail25 at bzerk.org (Ruben de Groot) Date: Sun Sep 13 10:44:32 2009 Subject: linux-pango won't install In-Reply-To: <87407909@bb.ipt.ru> References: <20090911034913.GA22437@kokopelli.hydra> <20090911104025.GA23566@torus.slightlystrange.org> <4AAA2B35.4010309@infracaninophile.co.uk> <20090911070849.559fa992@scorpio.seibercom.net> <20090912050123.GB27240@kokopelli.hydra> <87407909@bb.ipt.ru> Message-ID: <20090913104419.GA12516@ei.bzerk.org> On Sat, Sep 12, 2009 at 02:19:22PM +0400, Boris Samorodov typed: > On Fri, 11 Sep 2009 23:01:23 -0600 Chad Perrin wrote: > > > > If you still want to install the port, you could just add this to > > > the /etc/make.conf file: > > > > > > # Pango > > > .if $(.CURDIR:M*/x11-toolkits/linux-pango) > > > DISABLE_VULNERABILITIES=yes > > > .endif > > > How long has this been broken for 7.2? Considering all the stuff that > > depends on linux-pango, I'm surprised it hasn't been fixed. There is a native pango port. Suckz also... From ibb_orac at mbox.contact.bg Sun Sep 13 11:00:10 2009 From: ibb_orac at mbox.contact.bg (Ivailo Bonev) Date: Sun Sep 13 11:00:17 2009 Subject: FreeBSD RoadMap References: <20090713075527.GA11259@duncan.reilly.home> <20090713193903.GA49591@lyxys.ka.sub.org> Message-ID: ----- Original Message ----- From: "Wolfgang Zenker" To: Sent: Monday, July 13, 2009 10:39 PM Subject: Re: FreeBSD RoadMap >* Masoom Shaikh [090713 20:26]: >> On Mon, Jul 13, 2009 at 7:55 AM, Andrew Reilly >> wrote: >>> On Mon, Jul 13, 2009 at 12:55:19AM -0400, grarpamp wrote: >>>> Is there a general roadmap of what's planned >>>> for future major releases? I don't mean minor >>>> stuff like driver or contributed version bumps. >>>> But bigger, or just plain cool things, like as SMP, >>>> soft updates, ZFS, netgraph, pf, etc, were in the past. > >>> I doubt that there's much "big" in the ambit of "Unix-like OS" >>> that isn't already in the 8-current series. > >>> In a project like FreeBSD, "what's in the roadmap" equates >>> pretty closely with "what are the developers working on", and >>> that is summarised in the quarterly status reports, such as this >>> one: >>> http://www.freebsd.org/news/status/report-2009-01-2009-03.html > >>> As for when any of this will "hit the tree" and find its way >>> into a release, that's very much a "how long is a piece of >>> string" sort of question; not really the way FreeBSD works. >>> Particularly since it moved to a calendar-based release >>> schedule. > >>> IMO, YMMV, i-do-not-speak-for-freebsd, etc. > >> can this help ? > >> http://ivoras.sharanet.org/freebsd/freebsd8.html > > or you could visit this years eurobsdcon and listen to > http://www.ukuug.org/events/eurobsdcon2009/talks/#mckusick or http://wiki.freebsd.org/8.0TODO for changes before 8-RELEASE > :-) > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > > From mail25 at bzerk.org Sun Sep 13 11:00:49 2009 From: mail25 at bzerk.org (Ruben de Groot) Date: Sun Sep 13 11:00:56 2009 Subject: How to setup mDNSResponder on FreeBSD? In-Reply-To: <4AABBAD9.7040005@tomahawk.com.sg> References: <4AABBAD9.7040005@tomahawk.com.sg> Message-ID: <20090913110043.GB12516@ei.bzerk.org> On Sat, Sep 12, 2009 at 11:14:33PM +0800, Sagara Wijetunga typed: > Hi all > > I have installed the net/mDNSResponder port on a FreeBSD 7.2 i386 > computer. Set to launch the mdnsd on start up (in /etc/rc.conf). > Changed "hosts" line in /etc/nsswitch.conf to "hosts: files mdns dns". > Rebooted. > > "mDNSIdentify name.local" immediately shows the IP address of the other > computer but "ping name.local" shows following message: > ping: cannot resolve name.local: Unknown host > > Its the same for ssh too. Is there anything else to set up in FreeBSD? Yes. It's called bind. :) Ruben From kernel at webrz.net Sun Sep 13 11:21:33 2009 From: kernel at webrz.net (Jos Chrispijn) Date: Sun Sep 13 11:21:40 2009 Subject: Perl updates In-Reply-To: <4AACCB7A.2050106@infracaninophile.co.uk> References: <4AACBF63.8020304@webrz.net> <4AACCB7A.2050106@infracaninophile.co.uk> Message-ID: <4AACD5C9.2030600@webrz.net> Matthew Seaman wrote: > You're talking about the update of lang/perl5.10 from perl-5.10.0 > to perl-5.10.1 ? > > The reason you need to run perl-after-upgrade is because perl library > modules are stored in directory trees which encode the perl version > number. > perl-after-upgrade basically moves installed modules from [-snip-] Thanks, appreciate this detailed information. Jos Chrispijn From lumiwa at gmail.com Sun Sep 13 12:05:56 2009 From: lumiwa at gmail.com (ajtiM) Date: Sun Sep 13 12:06:03 2009 Subject: linux-pango won't install In-Reply-To: <87407909@bb.ipt.ru> References: <20090911034913.GA22437@kokopelli.hydra> <20090912050123.GB27240@kokopelli.hydra> <87407909@bb.ipt.ru> Message-ID: <200909130705.42663.lumiwa@gmail.com> On Saturday 12 September 2009 05:19:22 Boris Samorodov wrote: > On Fri, 11 Sep 2009 23:01:23 -0600 Chad Perrin wrote: > > > If you still want to install the port, you could just add this to > > > the /etc/make.conf file: > > > > > > # Pango > > > .if $(.CURDIR:M*/x11-toolkits/linux-pango) > > > DISABLE_VULNERABILITIES=yes > > > .endif > > > > How long has this been broken for 7.2? Considering all the stuff that > > depends on linux-pango, I'm surprised it hasn't been fixed. > > It will be broken until someone provide an URL to non-vulnerable > RPM package. Upgrade to the latest version of Pango (1.24 or later), available from the Pango Web site http://rpm.pbone.net/index.php3/stat...ch/pango/field[]/1/field[]/2 -- Mitja ----- http://starikarp.redbubble.com From cblasius at gmail.com Sun Sep 13 12:44:16 2009 From: cblasius at gmail.com (Zbigniew Komarnicki) Date: Sun Sep 13 12:44:23 2009 Subject: Can't install FreeBSD 7.2-RELEASE and 8.0-BETA4 Message-ID: <85a117790909130511p64548ed7s117a5a1e0bf90306@mail.gmail.com> Hello, I can't install FreeBSD 7.2-RELEASE and 8.0-BETA4 on laptop HP Pavilion Entertainment PC dv5 - 1150ew. I got the following message when boot from CD install 8.0-BETA4-amd64-bootonly.iso similarly for 7.2-RELEASE: ... run_interrupt_driven_hooks: still waiting after 60 seconds for xpt_config run_interrupt_driven_hooks: still waiting after 120 seconds for xpt_config run_interrupt_driven_hooks: still waiting after 180 seconds for xpt_config run_interrupt_driven_hooks: still waiting after 240 seconds for xpt_config run_interrupt_driven_hooks: still waiting after 300 seconds for xpt_config panic: run_interrupt_driven_config_hooks: waited too long cpuid=0 KDB: enter: panic [thread pid 0 tid 100000] Stopped at kdb_enter+0x3d: movq $0,0x68d1e0(%rip) db> and thats all. Is maybe also someone also have such problem? Zbigniew From roys1012 at gmail.com Sun Sep 13 13:49:57 2009 From: roys1012 at gmail.com (Roy Stuivenberg) Date: Sun Sep 13 13:50:06 2009 Subject: VLC from ports collection Message-ID: <1252849789.15701.5.camel@bsd1012.roycs.nl> Hello, My install VLC did stop with remark Port marked as IGNORE: multimedia/vlc: In the makefile i found this line .if ${PERL_LEVEL} < 500800 BROKEN= Does not compile with perl ${PERL_VERSION} .endif Can I (and if so who) edit this option? [FreeBSD 7.2 stable - gnome2] Regards, Roy Stuivenberg. From pstreem at gmail.com Sun Sep 13 14:57:45 2009 From: pstreem at gmail.com (PstreeM China) Date: Sun Sep 13 14:57:51 2009 Subject: Question of keyboard input after lanuch vlc Message-ID: <2c66535d0909130732y7e2548by76a99b515a9b0600@mail.gmail.com> hello all : yestoday i install the vlc media player use ports , the question is that : After i lanuch vlc (In a X Env , just test Openbox and xfce ), i can not input any word ,look like keyboard is faile , mouse are normal , then i kill (click the X) it , the keyboard is normal. test that , lanuch vlc , when the CAPSLOCK is on , i can input any word (ADKXKOPI and so on ) .. and still can not input word when CAPSLOCK is off. can someone give me help for fix this Question ?? thanks all ! Best Regards. From uwe at laverenz.de Sun Sep 13 15:31:04 2009 From: uwe at laverenz.de (Uwe Laverenz) Date: Sun Sep 13 15:31:11 2009 Subject: Can't install FreeBSD 7.2-RELEASE and 8.0-BETA4 In-Reply-To: <85a117790909130511p64548ed7s117a5a1e0bf90306@mail.gmail.com> References: <85a117790909130511p64548ed7s117a5a1e0bf90306@mail.gmail.com> Message-ID: <4AAD1033.1080708@laverenz.de> Am 13.09.2009 14:11, schrieb Zbigniew Komarnicki: > run_interrupt_driven_hooks: still waiting after 60 seconds for xpt_config > run_interrupt_driven_hooks: still waiting after 120 seconds for xpt_config > run_interrupt_driven_hooks: still waiting after 180 seconds for xpt_config > run_interrupt_driven_hooks: still waiting after 240 seconds for xpt_config > run_interrupt_driven_hooks: still waiting after 300 seconds for xpt_config > panic: run_interrupt_driven_config_hooks: waited too long > cpuid=0 > KDB: enter: panic > [thread pid 0 tid 100000] > Stopped at kdb_enter+0x3d: movq $0,0x68d1e0(%rip) > db> > > and thats all. Is maybe also someone also have such problem? Yes, several people reported this problem. There is a workaround that might help: disable the firewire device (IEEE 1394) in the BIOS of your machine and try again. cu, Uwe From ts8807385 at gmail.com Sun Sep 13 16:54:50 2009 From: ts8807385 at gmail.com (Tom Smith) Date: Sun Sep 13 16:55:07 2009 Subject: FreeBSD-8 Release Type? Message-ID: <9b1e5e1b0909130928u3a852794hb3b5744ec1925ad0@mail.gmail.com> Hey guys, we've googled and searched the FreeBSD website... cannot find the answer. Will FreeBSD-8 be a 'normal' or 'extended' support release? If it's normal, we'll probably just stick with 7.1, but if it is extended, we'll go with 8. Thanks! Tom From fullblaststorm at gmail.com Sun Sep 13 17:46:19 2009 From: fullblaststorm at gmail.com (FuLLBLaSTstorm) Date: Sun Sep 13 17:46:25 2009 Subject: Can't install FreeBSD 7.2-RELEASE and 8.0-BETA4 In-Reply-To: <4AAD1033.1080708@laverenz.de> References: <85a117790909130511p64548ed7s117a5a1e0bf90306@mail.gmail.com> <4AAD1033.1080708@laverenz.de> Message-ID: <6c51dbb10909131019o3409827bu1894416900ad04fc@mail.gmail.com> Hi, I am having _exactly_ the same issue with my Fujitsu-Siemens ESPRIMO V6505. And unfortunately for me the workaround listed above is not applicable as there're no option such as firewireIEEE1394 in my BIOS =(. I know it's bad policy to request a feature than to implement it, but anywayz...It would be greatly appreciated if someone fixed this issue. PLEASE!!! 2009/9/13 Uwe Laverenz : > Am 13.09.2009 14:11, schrieb Zbigniew Komarnicki: > >> run_interrupt_driven_hooks: still waiting after 60 seconds for xpt_config >> run_interrupt_driven_hooks: still waiting after 120 seconds for xpt_config >> run_interrupt_driven_hooks: still waiting after 180 seconds for xpt_config >> run_interrupt_driven_hooks: still waiting after 240 seconds for xpt_config >> run_interrupt_driven_hooks: still waiting after 300 seconds for xpt_config >> panic: run_interrupt_driven_config_hooks: waited too long >> cpuid=0 >> KDB: enter: panic >> [thread pid 0 tid 100000] >> Stopped at ? kdb_enter+0x3d: ?movq ? ? $0,0x68d1e0(%rip) >> db> >> >> and thats all. Is maybe also someone also have such problem? > > Yes, several people reported this problem. There is a workaround that might > help: disable the firewire device (IEEE 1394) in the BIOS of your machine > and try again. > > cu, > Uwe > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > From freebsd at insightbb.com Sun Sep 13 18:29:50 2009 From: freebsd at insightbb.com (Steven Friedrich) Date: Sun Sep 13 18:29:57 2009 Subject: Character Escape sequences and fortune Message-ID: <200909131429.48206.freebsd@insightbb.com> I'm wanting to embed escape sequences for colors into my fortune files. It appears that fortune doesn't user the pager specified by PAGER and doesn't support escape sequences. Anyone know how to embed color, bold, or italics into fortune files? From mlobo at digiart.art.br Sun Sep 13 18:53:51 2009 From: mlobo at digiart.art.br (Mario Lobo) Date: Sun Sep 13 18:53:58 2009 Subject: [OFF?] Mac OX Driver Message-ID: <200909131553.54114.mlobo@digiart.art.br> Sorry to put a lame question here but I need a little feedback as to keep my hopes up or bury them. I have an old sound board (echo gina20) that I need to keep using (for $$$ reasons), but I also must upgrade my OSes to 64 bits. There are XP 32bit drivers but no XP 64bit ones for it. There are no Gina20 drivers for freebsd but there IS a Mac OS X driver for it!. Is it possible to use a Mac driver on FreeBSD? Has this ever been tried or done? should I bury my hopes? Thanks, -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] (99,7% winedows FREE) From jonc at chen.org.nz Sun Sep 13 19:20:07 2009 From: jonc at chen.org.nz (Jonathan Chen) Date: Sun Sep 13 19:20:15 2009 Subject: VLC from ports collection In-Reply-To: <1252849789.15701.5.camel@bsd1012.roycs.nl> References: <1252849789.15701.5.camel@bsd1012.roycs.nl> Message-ID: <20090913192005.GA56879@osiris.chen.org.nz> On Sun, Sep 13, 2009 at 03:49:49PM +0200, Roy Stuivenberg wrote: > Hello, > > My install VLC did stop with remark > > Port marked as IGNORE: multimedia/vlc: > > In the makefile i found this line > > .if ${PERL_LEVEL} < 500800 > BROKEN= Does not compile with perl ${PERL_VERSION} > .endif > > Can I (and if so who) edit this option? [FreeBSD 7.2 stable - gnome2] The obvious solution is for you to upgrade perl. Is there a specific requirement for the perl version you're on? Cheers. -- Jonathan Chen ---------------------------------------------------------------------- "If everything's under control, you're going too slow" - Mario Andretti From edemkrimea at gmail.com Sun Sep 13 16:06:33 2009 From: edemkrimea at gmail.com (edem) Date: Sun Sep 13 19:36:27 2009 Subject: links_don't_work Message-ID: <1252856065.8961.2.camel@edem> http://www.freebsd.org/ru/projects/newbies.html On this page some links don't work .Could you update the page? Thanks in advance. Yours sincerely Jalaalov Edem From miklosovic.freebsd at gmail.com Sun Sep 13 19:38:02 2009 From: miklosovic.freebsd at gmail.com (Stefan Miklosovic) Date: Sun Sep 13 19:38:40 2009 Subject: add own program to ports + help with port / program Message-ID: hi list, I am about writing shell script which adds system account by tens (even hundreds). Info about added accounts is stored in external file which has syntax like this account-name:comment:email-addres Briefly, account-name is name of account comment field is comment which appears in /etc/passwd comment field email-address is address where info about just created account is sent (optional) eg. joe:Joe Brown:joe@something.com mark:Mark Red:mark@nowhere.org tim:Tim Yellow:timmy@example.com Script is checking file syntax and if syntax is bad, it exits. If it is ok, accounts is being created. You can modify a lot of infos, these are stored in config file in /usr/local/etc/pwgroup.conf, eg # output file with passwords of newly # created user accounts PASSWD_FILE="passwords" # uid of first created user UID="2000" # root home dir of users HOME_DIR="/home" # comment for users, appears in /etc/passwd # in comment field COMMENT="" # primary group for users, if empty, # primary group will be a user name GROUP="users" # comma separated list of groups # users should be a member of GROUPLIST="" # shell for users SHELL="/bin/csh" # use quotas QUOTAS="NO" # hard quote limit QUOTA_HARD="1536" # soft quote limit QUOTA_SOFT="1024" # disk device upon which users are created DISK_DEV="/home" # expiration date of accounts ACCOUNT_EXP="30-Jun-2010" # length of password PASSWORD_LENGTH="8" ========== as you can see, you can set quotas for users, account expiration of accounts, password length, shell and so on. Variables in config file are default, if you do not overwrite some at command line. some examples: # pwgrp -a -f users -c "unix begginer" -s /usr/local/bin/bash -q -qh 2048 -l 10 (adding users) # pwgrp -r -f remove_users (list of users for removing) Password are generated by apg program Quotas are set by setquotas. The main reason I write this mail is to make some feedback about program to me and even test it and comment it. I want to write this program but I do not know if I do it correct and I need some feedback about programming style or just some info what do you think about it. At this time, there is absence of manual, but if you track code, I think you understand it. Any ideas are highly appreciated. From freebsd at edvax.de Sun Sep 13 19:49:38 2009 From: freebsd at edvax.de (Polytropon) Date: Sun Sep 13 19:49:45 2009 Subject: add own program to ports + help with port / program In-Reply-To: References: Message-ID: <20090913214935.57a33015.freebsd@edvax.de> On Sun, 13 Sep 2009 21:38:00 +0200, Stefan Miklosovic wrote: > I am about writing shell script which adds system account > by tens (even hundreds). Interesting and useful tool. I'm sure many sysadmins have created such tools for their own needs, but it wouldn't be bad to have one publically available from the ports collection. > Password are generated by apg program In order to employ an alternate password generation program (e. g. pwgen), you could even add an entry to your configuration file. > I want to write this program but I do not know if I do it correct and I need > some > feedback about programming style or just some info what do you think about > it. Style is highly debatable and is discussed ocassionally on this list. But finally, YOU are the programmer and YOU are the one who decides about style. Programming tips to mainly rely on which programming language you use. For example, if you're using C, I would suggest you to only use "safe functions" (e. g. no strcpy() function) and always check return values (e. g. fopen(), fputs() and fclose() functions, if you use them for accessing files). In case you are using threads, check that your program is "thread safe". Testing as much as possible is important because you're writing a program that is acting on system level (root) when it does "simply" create user accounts. > At this time, there is absence of manual, but if you track code, I think > you understand it. In order to comply to FreeBSD's philosophy of quality, you should, if your program is complete, take the time to write a manpage. As a developer, I always loved FreeBSD for its excellent documentation. Don't do it "the Linux way" - leave documentation to the Web, a Wiki, or the users. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From john at jnielsen.net Sun Sep 13 20:40:13 2009 From: john at jnielsen.net (John Nielsen) Date: Sun Sep 13 20:40:46 2009 Subject: [OFF?] Mac OX Driver In-Reply-To: <200909131553.54114.mlobo@digiart.art.br> References: <200909131553.54114.mlobo@digiart.art.br> Message-ID: <28D7E285-42B4-4D0C-A33B-DECF58CA1202@jnielsen.net> On Sep 13, 2009, at 2:53 PM, Mario Lobo wrote: > Sorry to put a lame question here but I need a little feedback as to > keep my > hopes up or bury them. > > I have an old sound board (echo gina20) that I need to keep using > (for $$$ > reasons), but I also must upgrade my OSes to 64 bits. There are XP > 32bit > drivers but no XP 64bit ones for it. There are no Gina20 drivers for > freebsd > but there IS a Mac OS X driver for it!. > > Is it possible to use a Mac driver on FreeBSD? In a word, no. If you have access to the source it should be possible to port the driver, but there's no reason to assume the effort would be trivial. > Has this ever been tried or > done? should I bury my hopes? See above. Drivers do get ported between OSes all the time but there's no magic involved. FreeBSD and Darwin have very different kernel origins. Snow Leopard may be your friend. JN From daniel at toomuchdata.se Sun Sep 13 21:11:02 2009 From: daniel at toomuchdata.se (Daniel Eriksson) Date: Sun Sep 13 21:11:09 2009 Subject: Smartmontools + Highpoint hptrr? Message-ID: <4AAD5AEA.8010900@toomuchdata.se> I'm trying to monitor SATA drives connected to a HighPoint RocketRAID 2340 card (hptrr driver) using smartmontools, but it doesn't seem to work. Has anyone managed to get this to work? I'm using RELENG_8 / amd64 if that makes any difference. I've tried both the smartmontools port and a direct checkout from their SVN, and I'm getting very similar error messages. From the changelog and the manpage it looks like some work has been done to make this work. /Daniel Eriksson From mdc at prgmr.com Sun Sep 13 21:23:43 2009 From: mdc at prgmr.com (Michael David Crawford) Date: Sun Sep 13 21:23:56 2009 Subject: [OFF?] Mac OX Driver In-Reply-To: <200909131553.54114.mlobo@digiart.art.br> References: <200909131553.54114.mlobo@digiart.art.br> Message-ID: <4AAD62D5.2060908@prgmr.com> Mario Lobo wrote: > Is it possible to use a Mac driver on FreeBSD? Has this ever been tried or > done? should I bury my hopes? Mac OS X has a unique C++ driver architecture called the I/O Kit. It's quite unlike the driver systems in any other OSes I've seen. If you have the source to the Mac driver, you might be able to glean information from it that would help you write a FreeBSD driver. Even better would be to have the hardware specs to your sound board. Apple has some tech notes on porting drivers from other platforms to Mac OS X. Maybe reading them could give you some insight as to how to port them in reverse. One doesn't generally port device drivers between such different systems; it's more like doing a complete rewrite. Mike -- Michael David Crawford mdc@prgmr.com prgmr.com - We Don't Assume You Are Stupid. Xen-Powered Virtual Private Servers: http://prgmr.com/xen From kurt.buff at gmail.com Sun Sep 13 21:59:55 2009 From: kurt.buff at gmail.com (Kurt Buff) Date: Sun Sep 13 22:00:02 2009 Subject: SVG and dependence on Firefox2.x? Message-ID: I notice that for both The Gimp and graphviz, and probably for others as well, marking them or their dependencies as able to render SVG invokes installation of FF 2.x. This fails, as the port is marked as forbidden, and then the installation of these graphics programs fails. Not a huge deal, but any way to work around it? Kurt From freebsd at edvax.de Sun Sep 13 22:15:12 2009 From: freebsd at edvax.de (Polytropon) Date: Sun Sep 13 22:15:20 2009 Subject: SVG and dependence on Firefox2.x? In-Reply-To: References: Message-ID: <20090914001509.ee4f7433.freebsd@edvax.de> On Sun, 13 Sep 2009 14:59:51 -0700, Kurt Buff wrote: > I notice that for both The Gimp and graphviz, and probably for others > as well, marking them or their dependencies as able to render SVG > invokes installation of FF 2.x. > > This fails, as the port is marked as forbidden, and then the > installation of these graphics programs fails. > > Not a huge deal, but any way to work around it? An explaination has recently been discussed on this list. See the archives, and I'm sure you'll find it very fast. (Sadly, I can't remember the thread name, but it involved "Firefox", as far as I remember.) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From jules.stocks at gmail.com Sun Sep 13 23:15:15 2009 From: jules.stocks at gmail.com (Jules Gilbert) Date: Sun Sep 13 23:15:23 2009 Subject: configuring X on the Presario with the 8200M driver In-Reply-To: <17216271.1252735922654.JavaMail.root@wamui-june.atl.sa.earthlink.net> References: <17216271.1252735922654.JavaMail.root@wamui-june.atl.sa.earthlink.net> Message-ID: <28d0cced0909131614x62bcd1a6oe47845d8cc737a19@mail.gmail.com> Thanks, guys! I intend to set aside some time late this week to try this. I bought one but have not been able to configure the X environment yet; I notice that PC-BSD comes up fine; I thought of doing that and copying the file, but that's about a half day or more of effort that way... Not good. Anyway, a couple questions... Is this likely to be compatible with FBSD 8.0? Or no, and I will just use 7.2. --jg On Sat, Sep 12, 2009 at 2:12 AM, Kenneth wrote: > Moving this discussion to freebsd-x11. > > I have a Presario CQ60 with the NVIDIA 8200M G, and X is working! > > Here are the steps to get there. ?Do everything as root: > > 1) Update your ports to the most recent. ?Follow the FreeBSD manual, section 4.5 Using the Ports Collection, nuke the contents of /usr/ports, and install a new base using portsnap or cvsup. > > 2) Install the nvidia-driver. > # cd /usr/ports/x11-driver/nvidia-driver > # make install clean ?(I built with options FREEBSD_AGP checked, ACPI checked, LINUX unchecked). > > 3) You can install 2 more optional tools for configuring the nvidia card settings. ?I have not used them, but I installed them. > # cd /usr/ports/x11-driver/nvidia-settings > # make install clean > # cd /usr/ports/x11-driver/nvidia-xconfig > # make install clean > > 4) I also installed the fbdev driver from X.Org. > # cd /usr/ports/x11-drivers/xf86-video-fbdev > # make install clean > > 5) Add the nvidia driver as a dynamically loaded kernel module. > # cd /boot > # vi loader.conf ?(you better know how to use vi to edit) > --- add the line nvidia_load="YES" > --- it is the only line I have in my loader.conf file > > 6) Reboot the system > # reboot > > 7) If you want to see the version you just installed (your versions may be newer than mine below)... > # pkg_info | grep nvidia > nvidia-driver-185.18.29 > nvidia-settings-190.32 > nvidia-xconfig-190.32 > # pkg_info | grep fbdev > xf86-video-fbdev-0.4.0_2 > > 8) Generate your xorg.conf.new file. > # cd /root > # Xorg -configure > > 9) Edit the xorg.conf.new file. > # vi xorg.conf.new > --- change the line ? ?Driver "nv" > ? ? ? ? ? ?to read ? ?Driver "nvidia" > > 10) Test the config file. > # Xorg -config xorg.conf -retro > --- you should get a grey screen and your mouse should work, especially if your mouse worked when installing FreeBSD > --- to kill the test, press CTRL-ALT-BKSP > > 11) If everything worked, move and rename (drop the new extension) the config file to the /etc directory > # mv xorg.conf.new /etc/X11/xorg.conf > > 12) Test again. ?Log in as another user belonging to the wheel group (or login as root). > % startx > --- you should get 3 green windows > --- you can kill X by clicking on the large window on the left, and typing exit > > > > > From dnelson at allantgroup.com Sun Sep 13 23:42:57 2009 From: dnelson at allantgroup.com (Dan Nelson) Date: Sun Sep 13 23:43:04 2009 Subject: FreeBSD-8 Release Type? In-Reply-To: <9b1e5e1b0909130928u3a852794hb3b5744ec1925ad0@mail.gmail.com> References: <9b1e5e1b0909130928u3a852794hb3b5744ec1925ad0@mail.gmail.com> Message-ID: <20090913234253.GA14988@dan.emsphone.com> In the last episode (Sep 13), Tom Smith said: > Hey guys, we've googled and searched the FreeBSD website... cannot find > the answer. Will FreeBSD-8 be a 'normal' or 'extended' support release? > If it's normal, we'll probably just stick with 7.1, but if it is extended, > we'll go with 8. So far, no .0 releases have been marked extended. http://security.freebsd.org/#sup -- Dan Nelson dnelson@allantgroup.com From mlobo at digiart.art.br Mon Sep 14 00:21:45 2009 From: mlobo at digiart.art.br (Mario Lobo) Date: Mon Sep 14 00:21:53 2009 Subject: [OFF?] Mac OX Driver Message-ID: <200909132122.27435.mlobo@digiart.art.br> On Sunday 13 September 2009 17:39:50 John Nielsen wrote: > origins. Snow Leopard may be your friend. > > JN What do you mean by that, John? What help can I get from Snow Leopard? On Sunday 13 September 2009 18:23:33 Michael David Crawford wrote: > One doesn't generally port device drivers between such different > systems; it's more like doing a complete rewrite. > > Mike Since my post, I have found out 2 things: 1) A good while back, a guy called Thomas Skibo was writing a driver for it It's pretty old and he has not touched it for a long time, but he was kind enough to send it to me. And I will try to make it work. 2) Downloaded the latest alsa drivers, which contains a driver specifically for my board (gina20). Maybe I can get clues from it. I would try OSS but only the comercial version has drivers for it. Don't know if I'll be successful but I'll post if I am. Many thanks to you both for replying ! -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] (99,7% winedows FREE) From kurt.buff at gmail.com Mon Sep 14 01:01:38 2009 From: kurt.buff at gmail.com (Kurt Buff) Date: Mon Sep 14 01:01:45 2009 Subject: SVG and dependence on Firefox2.x? In-Reply-To: <20090914001509.ee4f7433.freebsd@edvax.de> References: <20090914001509.ee4f7433.freebsd@edvax.de> Message-ID: On Sun, Sep 13, 2009 at 15:15, Polytropon wrote: > On Sun, 13 Sep 2009 14:59:51 -0700, Kurt Buff wrote: >> I notice that for both The Gimp and graphviz, and probably for others >> as well, marking them or their dependencies as able to render SVG >> invokes installation of FF 2.x. >> >> This fails, as the port is marked as forbidden, and then the >> installation of these graphics programs fails. >> >> Not a huge deal, but any way to work around it? > > An explaination has recently been discussed on this list. See > the archives, and I'm sure you'll find it very fast. (Sadly, > I can't remember the thread name, but it involved "Firefox", > as far as I remember.) Thanks - I took a look around and I see a thread from April - "Firefox3 and dependencies on firefox2,libxul,xulrunner" - was that what you were referring to? Regardless, I'll try that when I have a few minutes. On to more difficult problems. Kurt From john at jnielsen.net Mon Sep 14 01:09:48 2009 From: john at jnielsen.net (John Nielsen) Date: Mon Sep 14 01:09:54 2009 Subject: [OFF?] Mac OX Driver In-Reply-To: <200909132122.27435.mlobo@digiart.art.br> References: <200909132122.27435.mlobo@digiart.art.br> Message-ID: <920641E4-941B-4B61-996B-1C2012A048B1@jnielsen.net> On Sep 13, 2009, at 8:22 PM, Mario Lobo wrote: > On Sunday 13 September 2009 17:39:50 John Nielsen wrote: > >> origins. Snow Leopard may be your friend. >> >> JN > > What do you mean by that, John? What help can I get from Snow Leopard? Your only stated OS requirement other than your soundcard working was 64-bit support, and Snow Leopard provides that (even more than its predecessors). If the mac driver for your card still works in that version then it might fit the bill. Of course if you have other requirements or preferences then it may not, I was just throwing it out as an idea. From kurt.buff at gmail.com Mon Sep 14 01:16:13 2009 From: kurt.buff at gmail.com (Kurt Buff) Date: Mon Sep 14 01:16:20 2009 Subject: wpi0 went away, though a reboot cures it. Message-ID: Today, after leaving my Lenovo T61 on overnight to do some compiles, I lost my wireless. I tried a few other things that what I've listed below, but none of it worked. This is a dual boot machine - I also run Windows XP, and don't have any issues with wireless on that OS. Any clues would be appreciated. # uname -a FreeBSD grimsqueaker.pigfarm.org 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May 1 07:18:07 UTC 2009 root@driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 First, in /var/log/messages, I found the following: Sep 13 15:09:23 grimsqueaker kernel: wpi0: device timeout Sep 13 15:09:23 grimsqueaker kernel: wpi0: link state changed to DOWN Sep 13 15:09:24 grimsqueaker kernel: wpi0: could not set power mode Sep 13 15:09:24 grimsqueaker kernel: wpi0: device config failed So I tried stopping and starting netif: # /etc/rc.d/netif stop Stopping network:wpa_supplicant not running? (check /var/run/wpa_supplicant/wpi0.pid). lo0 em0 wpi0 fwe0 fwip0. # /etc/rc.d/netif start em0: no link .............. giving up Starting wpa_supplicant. wpi0: no link .............. giving up lo0: flags=8049 metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 em0: flags=8843 metric 0 mtu 1500 options=19b ether 00:1c:25:80:db:87 media: Ethernet autoselect status: no carrier wpi0: flags=8803 metric 0 mtu 1500 ether 00:1f:3c:4d:e2:55 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier ssid "" channel 11 (2462 Mhz 11g) authmode WPA1+WPA2/802.11i privacy ON deftxkey UNDEF txpower 50 bmiss 7 scanvalid 60 protmode CTS roaming MANUAL Then, I let the compile get as far as it could, and rebooted. While rebooting, I noticed this on the console, and found these traces in /var/log/messages: Sep 13 16:05:44 grimsqueaker kernel: interrupt storm detected on "irq16:"; throttling interrupt source Sep 13 16:05:48 grimsqueaker last message repeated 4 times Sep 13 16:05:49 grimsqueaker syslogd: exiting on signal 15 Sep 13 16:07:38 grimsqueaker syslogd: kernel boot file is /boot/kernel/kernel Sep 13 16:07:38 grimsqueaker kernel: interrupt storm detected on "irq16:"; throttling interrupt source Sep 13 16:07:38 grimsqueaker kernel: interrupt storm detected on "irq16:"; throttling interrupt source Sep 13 16:07:38 grimsqueaker kernel: Waiting (max 60 seconds) for system process `vnlru' to stop...done Sep 13 16:07:38 grimsqueaker kernel: Waiting (max 60 seconds) for system process `bufdaemon' to stop...interrupt storm detected on "irq16:"; throttling interrupt source Sep 13 16:07:38 grimsqueaker kernel: done Sep 13 16:07:38 grimsqueaker kernel: Waiting (max 60 seconds) for system process `syncer' to stop...interrupt storm detected on "irq16:"; throttling interrupt source Sep 13 16:07:38 grimsqueaker kernel: Sep 13 16:07:38 grimsqueaker kernel: Syncing disks, vnodes remaining...0 interrupt storm detected on "irq16:"; throttling interrupt source Sep 13 16:07:38 grimsqueaker kernel: 0 done Sep 13 16:07:38 grimsqueaker kernel: All buffers synced. Sep 13 16:07:38 grimsqueaker kernel: Uptime: 6h53m12s Sep 13 16:07:38 grimsqueaker kernel: interrupt storm detected on "irq16:"; throttling interrupt source Thanks, Kurt From chris at chrismaness.com Mon Sep 14 01:47:44 2009 From: chris at chrismaness.com (Chris Maness) Date: Mon Sep 14 01:47:50 2009 Subject: Dump/Restore? Message-ID: I level 0 dump of my server. I lost a file that I need back. Is it possible to use restore like tar and explode it into a directory instead of a pristine partition/mount? Or even better, is it possible to just extract a single file without exploding the whole tape dump? Sorry if the question seems stupid. Chris KQ6UP From chris at chrismaness.com Mon Sep 14 01:50:06 2009 From: chris at chrismaness.com (Chris Maness) Date: Mon Sep 14 01:50:14 2009 Subject: Dump/Restore? In-Reply-To: References: Message-ID: On Sun, Sep 13, 2009 at 6:15 PM, Chris Maness wrote: > I level 0 dump of my server. ?I lost a file that I need back. ?Is it > possible to use restore like tar and explode it into a directory > instead of a pristine partition/mount? ?Or even better, is it possible > to just extract a single file without exploding the whole tape dump? > > Sorry if the question seems stupid. > > Chris KQ6UP > Sorry, I was reading the restore man from my mac, and it was not as clear. The restore does not seem to work from my mac (this is where my backup dumps reside as I have two massive HDs). I guess the mac restore would only work with HFS+ and not UFS. I guess the only way would be to move the massive dump file back over to the FreeBSD server. Thanks, Chris KQ6UP From jguojun at sbcglobal.net Mon Sep 14 01:51:50 2009 From: jguojun at sbcglobal.net (Jin Guojun) Date: Mon Sep 14 01:52:03 2009 Subject: 8.0-Beta installation problem -- Unable to find /dev/ad0s1b Message-ID: <4AAD9B71.3080703@sbcglobal.net> Tried to install from both 8.0-BETA{3, 4}-i386-dvd1.iso on a Phenom 9600 system and having some disk problems. The system is running 6.x and/or 7.2 FreeBSD (on different drives). Disconnected rest drives and only left 7.2 drive in. ad0: 76319MB at ata0-master UDMA100 Boot 8.0-BETA3-i386-dvd1.iso and sees no partition at all on the 7.2 disk. Boot back to 7.2 and everything works fine, so system has no hardware problem. Boot 8.0-BETA3-i386-dvd1.iso again, still sees no partition, so reconfigured partition with autoconfigure - A 512M for / on /dev/ad0s1a about 4G for swap on /dev/ad0s1b about 2.2G on /var 512M for /tmp rest spaces are for /usr After commit, installation says -- Unable to find device node for /dev/ad0s1b in /dev The Creation of file system will abort. OK [Press enter or space] Hit CR and see some other errors, then back to installation menu. Reboot the system, 7.2 is gone. Download 8.0-BETA4-i386-dvd1.iso and burned another DVD, also did verify between DVD and ISO for OK. Run installation from Beta4 DVD, the same problem presents again. If my memory is correct, either 8.0-Beta1 or one version earlier than it was working on this machine. Is anything changed that requires different installation procedure? or is this a bug introduced recently? -Jin From roberthuff at rcn.com Mon Sep 14 02:13:30 2009 From: roberthuff at rcn.com (Robert Huff) Date: Mon Sep 14 02:13:46 2009 Subject: 8.0-Beta installation problem -- Unable to find /dev/ad0s1b In-Reply-To: <4AAD9B71.3080703@sbcglobal.net> References: <4AAD9B71.3080703@sbcglobal.net> Message-ID: <19117.42696.888649.236347@jerusalem.litteratus.org> Jin Guojun writes: > Tried to install from both 8.0-BETA{3, 4}-i386-dvd1.iso on a > Phenom 9600 system and having some disk problems. > > After commit, installation says -- > > Unable to find device node for /dev/ad0s1b in /dev > The Creation of file system will abort. > OK > [Press enter or space] Look at the archives of current@ within the last three weeks. I (and I believe at least one other person) had what seems like the same problem and found a work-around. Robert Huff From kennethcf at earthlink.net Mon Sep 14 04:26:25 2009 From: kennethcf at earthlink.net (Kenneth) Date: Mon Sep 14 04:26:33 2009 Subject: ath atheros 5424/2424 on the CQ60 Presario Message-ID: <27184812.1252902383777.JavaMail.root@wamui-junio.atl.sa.earthlink.net> Anyone been able to use the ath driver on an atheros 5424/2424? I have a Compaq Presario CQ60 and can not get the wireless light to turn blue? -----Original Message----- >From: Jules Gilbert >Sent: Sep 13, 2009 7:14 PM >To: Kenneth >Cc: freebsd-questions@freebsd.org, FreeBSD-x11@freebsd.org, gesbbb@yahoo.com >Subject: Re: configuring X on the Presario with the 8200M driver > >Thanks, guys! > >I intend to set aside some time late this week to try this. I bought >one but have not been able to configure the X environment yet; I >notice that PC-BSD comes up fine; I thought of doing that and copying >the file, but that's about a half day or more of effort that way... > >Not good. > >Anyway, a couple questions... > >Is this likely to be compatible with FBSD 8.0? Or no, and I will just use 7.2. > >--jg > > >On Sat, Sep 12, 2009 at 2:12 AM, Kenneth wrote: >> Moving this discussion to freebsd-x11. >> >> I have a Presario CQ60 with the NVIDIA 8200M G, and X is working! >> >> Here are the steps to get there. ?Do everything as root: >> >> 1) Update your ports to the most recent. ?Follow the FreeBSD manual, section 4.5 Using the Ports Collection, nuke the contents of /usr/ports, and install a new base using portsnap or cvsup. >> >> 2) Install the nvidia-driver. >> # cd /usr/ports/x11-driver/nvidia-driver >> # make install clean ?(I built with options FREEBSD_AGP checked, ACPI checked, LINUX unchecked). >> >> 3) You can install 2 more optional tools for configuring the nvidia card settings. ?I have not used them, but I installed them. >> # cd /usr/ports/x11-driver/nvidia-settings >> # make install clean >> # cd /usr/ports/x11-driver/nvidia-xconfig >> # make install clean >> >> 4) I also installed the fbdev driver from X.Org. >> # cd /usr/ports/x11-drivers/xf86-video-fbdev >> # make install clean >> >> 5) Add the nvidia driver as a dynamically loaded kernel module. >> # cd /boot >> # vi loader.conf ?(you better know how to use vi to edit) >> --- add the line nvidia_load="YES" >> --- it is the only line I have in my loader.conf file >> >> 6) Reboot the system >> # reboot >> >> 7) If you want to see the version you just installed (your versions may be newer than mine below)... >> # pkg_info | grep nvidia >> nvidia-driver-185.18.29 >> nvidia-settings-190.32 >> nvidia-xconfig-190.32 >> # pkg_info | grep fbdev >> xf86-video-fbdev-0.4.0_2 >> >> 8) Generate your xorg.conf.new file. >> # cd /root >> # Xorg -configure >> >> 9) Edit the xorg.conf.new file. >> # vi xorg.conf.new >> --- change the line ? ?Driver "nv" >> ? ? ? ? ? ?to read ? ?Driver "nvidia" >> >> 10) Test the config file. >> # Xorg -config xorg.conf -retro >> --- you should get a grey screen and your mouse should work, especially if your mouse worked when installing FreeBSD >> --- to kill the test, press CTRL-ALT-BKSP >> >> 11) If everything worked, move and rename (drop the new extension) the config file to the /etc directory >> # mv xorg.conf.new /etc/X11/xorg.conf >> >> 12) Test again. ?Log in as another user belonging to the wheel group (or login as root). >> % startx >> --- you should get 3 green windows >> --- you can kill X by clicking on the large window on the left, and typing exit >> >> >> >> >> From mlobo at digiart.art.br Mon Sep 14 06:25:10 2009 From: mlobo at digiart.art.br (Mario Lobo) Date: Mon Sep 14 06:25:17 2009 Subject: [OFF?] Mac OX Driver In-Reply-To: <28D7E285-42B4-4D0C-A33B-DECF58CA1202@jnielsen.net> References: <200909131553.54114.mlobo@digiart.art.br> <28D7E285-42B4-4D0C-A33B-DECF58CA1202@jnielsen.net> Message-ID: <200909131915.48990.mlobo@digiart.art.br> On Sunday 13 September 2009 17:39:50 John Nielsen wrote: > origins. Snow Leopard may be your friend. > > JN What do you mean by that, John? What help can I get from Snow Leopard? On Sunday 13 September 2009 18:23:33 Michael David Crawford wrote: > One doesn't generally port device drivers between such different > systems; it's more like doing a complete rewrite. > > Mike Since my post, I have found out 2 things: 1) A good while back, a guy called Thomas Skibo was writing a driver for it It's pretty old and he has not touched it for a long time, but he was kind enough to send it to me. And I will try to make it work. 2) Downloaded the latest alsa drivers, which contains a driver specifically for my board (gina20). Maybe I can get clues from it. I would try OSS but only the comercial version has drivers for it. Don't know if I'll be successful but I'll post if I am. Many thanks to you both for replying ! -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since version 2.2.8 [not Pro-Audio.... YET!!] (99,7% winedows FREE) From utisoft at googlemail.com Mon Sep 14 06:47:42 2009 From: utisoft at googlemail.com (utisoft@googlemail.com) Date: Mon Sep 14 06:47:50 2009 Subject: Dump/Restore? In-Reply-To: Message-ID: <0016e6d7ea7bc68d970473840acb@google.com> On 14 Sep 2009 02:50, Chris Maness wrote: > On Sun, Sep 13, 2009 at 6:15 PM, Chris Maness chris@chrismaness.com> > wrote: > > I level 0 dump of my server. I lost a file that I need back. Is it > > possible to use restore like tar and explode it into a directory > > instead of a pristine partition/mount? Or even better, is it possible > > to just extract a single file without exploding the whole tape dump? > > > > Sorry if the question seems stupid. > > > > Chris KQ6UP > > > Sorry, I was reading the restore man from my mac, and it was not as > clear. The restore does not seem to work from my mac (this is where > my backup dumps reside as I have two massive HDs). I guess the mac > restore would only work with HFS+ and not UFS. I guess the only way > would be to move the massive dump file back over to the FreeBSD > server. > Thanks, > Chris KQ6UP > _______________________________________________ Try using NFS or cat over ssh, something like $ ssh my_mac 'cat dumpfile' | restore -if - restore treats the file as a tape, so it doesn't pull any bytes until you ask it to. This should be the least network intensive way of doing it.... Good luck! Chris From bsam at ipt.ru Mon Sep 14 07:37:09 2009 From: bsam at ipt.ru (Boris Samorodov) Date: Mon Sep 14 07:37:16 2009 Subject: linux-pango won't install In-Reply-To: <200909130705.42663.lumiwa@gmail.com> (ajtiM's message of "Sun, 13 Sep 2009 07:05:42 -0500") References: <20090911034913.GA22437@kokopelli.hydra> <20090912050123.GB27240@kokopelli.hydra> <87407909@bb.ipt.ru> <200909130705.42663.lumiwa@gmail.com> Message-ID: <67708234@bb.ipt.ru> On Sun, 13 Sep 2009 07:05:42 -0500 ajtiM wrote: > On Saturday 12 September 2009 05:19:22 Boris Samorodov wrote: > > On Fri, 11 Sep 2009 23:01:23 -0600 Chad Perrin wrote: > > > > If you still want to install the port, you could just add this to > > > > the /etc/make.conf file: > > > > > > > > # Pango > > > > .if $(.CURDIR:M*/x11-toolkits/linux-pango) > > > > DISABLE_VULNERABILITIES=yes > > > > .endif > > > > > > How long has this been broken for 7.2? Considering all the stuff that > > > depends on linux-pango, I'm surprised it hasn't been fixed. > > > > It will be broken until someone provide an URL to non-vulnerable > > RPM package. > Upgrade to the latest version of Pango (1.24 or later), available from the > Pango Web site > http://rpm.pbone.net/index.php3/stat...ch/pango/field[]/1/field[]/2 Sorry, I didn't manage to find a Pango 1.24 package for Fedora Core 4. Can you post an URL? -- WBR, Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve From keramida at ceid.upatras.gr Mon Sep 14 08:55:59 2009 From: keramida at ceid.upatras.gr (Giorgos Keramidas) Date: Mon Sep 14 08:56:06 2009 Subject: SVG and dependence on Firefox2.x? In-Reply-To: (Kurt Buff's message of "Sun, 13 Sep 2009 14:59:51 -0700") References: Message-ID: <87zl8xkiqz.fsf@kobe.laptop> On Sun, 13 Sep 2009 14:59:51 -0700, Kurt Buff wrote: > I notice that for both The Gimp and graphviz, and probably for others > as well, marking them or their dependencies as able to render SVG > invokes installation of FF 2.x. > > This fails, as the port is marked as forbidden, and then the > installation of these graphics programs fails. > > Not a huge deal, but any way to work around it? You can build most of the ports that depend on GECKO with the following in your `/etc/make.conf' file: WITH_GECKO= libxul I just finished rebuilding my packages in a chroot with this option, and firefox 2.x was not required for a full x11/gnome2 build: # pkg_info | fgrep firefo firefox-3.5.3,1 Web browser based on the browser portion of Mozilla # From mexas at bristol.ac.uk Mon Sep 14 10:33:56 2009 From: mexas at bristol.ac.uk (Anton Shterenlikht) Date: Mon Sep 14 10:34:03 2009 Subject: mutt users - text/enriched crashes mutt? Message-ID: <20090914103349.GA32543@mech-cluster241.men.bris.ac.uk> I've got a text/enriched email, which crashes mutt-devel-1.5.20_1 This is FreeBSD 9.0-CURRENT ia64 When I open this email, mutt freezes, while the /tmp/mutt* file is growing until it fills the partition, and I get a message on the terminal, something "can't copy file, device full": -rw------- 1 mexas wheel 215941357 14 Sep 10:48 mutt-mech-cluster241-RHvpz380-00000 Now, the manual, http://www.mutt.org/doc/manual/manual-5.html, claims: Mutt internally supports a number of MIME types, including text/plain, text/enriched, ... So is there something wrong with my installation, or with this message? Below is a copy of the offending email: Please advise many thanks ####################################################### >From xxx.zzz@bristol.ac.uk Wed Sep 9 16:06:03 2009 Return-Path: Received: from some.host (localhost [127.0.0.1]) by some.host (8.14.3/8.14.3) with ESMTP id n89F62Uv090897 for ; Wed, 9 Sep 2009 16:06:02 +0100 (BST) (envelope-from xxx.zzz@bristol.ac.uk) Received: from epo.bris.ac.uk [137.222.10.55] by some.host with IMAP (fetchmail-6.3.11) for (single-drop); Wed, 09 Sep 2009 16:06:02 +0100 (BST) Received: from epo.bris.ac.uk ([unix socket]) by groucho (Cyrus v2.2.12) with LMTPA; Wed, 09 Sep 2009 16:02:51 +0100 X-Sieve: CMU Sieve 2.2 Received: from dirg.bris.ac.uk ([137.222.10.102]) by epo.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1MlOh9-0007Nc-Qu; Wed, 09 Sep 2009 16:02:51 +0100 Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirg.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1MlOh9-0004MN-Md; Wed, 09 Sep 2009 16:02:51 +0100 Received: from mech-sec144.men.bris.ac.uk ([137.222.184.144]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1MlOh9-00038K-GY; Wed, 09 Sep 2009 16:02:51 +0100 Date: Wed, 09 Sep 2009 16:02:50 +0100 From: MK zzz To: Anton Shterenlikht Subject: Re: UG projects students Message-ID: In-Reply-To: <20090904113606.GA93415@some.host> References: <20090904113606.GA93415@some.host> Originator-Info: login-token=Mulberry:01yZcCczgEb94E2Hvd9y/9L9wB+XiWCTsNMNUGAXuX9yzFd94=; token_authority=postmaster@bristol.ac.uk X-Mailer: Mulberry/3.1.5 (Win32) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="==========F08EA8DED4439FC5ABE4==========" Content-Disposition: inline Status: RO Content-Length: 3055 Lines: 175 --==========F08EA8DED4439FC5ABE4========== Content-Type: text/enriched; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline zzz zzz --==========F08EA8DED4439FC5ABE4==========-- -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 331 5924 From lumiwa at gmail.com Mon Sep 14 11:35:12 2009 From: lumiwa at gmail.com (ajtiM) Date: Mon Sep 14 11:35:21 2009 Subject: linux-pango won't install In-Reply-To: <67708234@bb.ipt.ru> References: <20090911034913.GA22437@kokopelli.hydra> <200909130705.42663.lumiwa@gmail.com> <67708234@bb.ipt.ru> Message-ID: <200909140634.41632.lumiwa@gmail.com> On Monday 14 September 2009 02:37:09 Boris Samorodov wrote: > On Sun, 13 Sep 2009 07:05:42 -0500 ajtiM wrote: > > On Saturday 12 September 2009 05:19:22 Boris Samorodov wrote: > > > On Fri, 11 Sep 2009 23:01:23 -0600 Chad Perrin wrote: > > > > > If you still want to install the port, you could just add this to > > > > > the /etc/make.conf file: > > > > > > > > > > # Pango > > > > > .if $(.CURDIR:M*/x11-toolkits/linux-pango) > > > > > DISABLE_VULNERABILITIES=yes > > > > > .endif > > > > > > > > How long has this been broken for 7.2? Considering all the stuff > > > > that depends on linux-pango, I'm surprised it hasn't been fixed. > > > > > > It will be broken until someone provide an URL to non-vulnerable > > > RPM package. > > > > Upgrade to the latest version of Pango (1.24 or later), available from > > the Pango Web site > > http://rpm.pbone.net/index.php3/stat...ch/pango/field[]/1/field[]/2 > > Sorry, I didn't manage to find a Pango 1.24 package for Fedora Core 4. > Can you post an URL? I wil try but I don't know because Fedora core is veeeeery old. -- Mitja ----- http://starikarp.redbubble.com From arab at tangerine-army.co.uk Mon Sep 14 12:12:05 2009 From: arab at tangerine-army.co.uk (Graeme Dargie) Date: Mon Sep 14 12:12:14 2009 Subject: postgresql does not build correctly Message-ID: <01FB8F39BAD0BD49A6D0DA8F789739295741@Mercury.galaxy.lan.lcl> I have been trying on and off to set up postgresql for undernets gnuworld services for ircd. Now according to the instructions below this should build with tcl support and you should end up with the following file /usr/local/pgsql/bin/pgtclsh Except you dont. Instructions freebsd:/root# tar -xzf postgresql-8.1.4.tar.gz freebsd:/root# cd postgresql-8.1.4/ freebsd:/root/postgresql-8.1.4# ./configure --with-CXX \ --enable-multibyte \ --with-tcl --without-tk \ --with-tclconfig=/usr/local/lib/tcl8.4 \ --with-includes=/usr/local/include/tcl8.4 \ --with-libraries=/usr/local/lib/tcl8.4 You need gmake 3.79 or above to build PostgreSQL (and you will also need it for GNUworld later), check you have it by running gmake --version, you should get something like this : Note: You will also need automake 1.6 or above in order to build GNUworld. freebsd:/root/postgresql-8.1.4# gmake --version If you don't have gmake, you can get it here . If you don't have automake 1.6+, you can get 1.7.9 here . If that's ok, you can go on and build PostgreSQL for real, then install it... freebsd:/root/postgresql-8.1.4# gmake freebsd:/root/postgresql-8.1.4# gmake install If you are using bash as your shell programm, add the following line : export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib into /etc/profile. zsh, sh and ksh use the same command in their respective .shrc .zshrc .kshrc ~ files. For csh and tcsh you will need to use setenv instead : setenv LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/pgsql/lib To check that your PostreSQL installation includes TCL support, check that the following file exists onto your system : /usr/local/pgsql/bin/pgtclsh Everything seems to work without any errors during the ./configure stage and gmake install, I just dont end up with pgtclsh at the end of it. Regards Graeme From rsmith at xs4all.nl Mon Sep 14 12:31:15 2009 From: rsmith at xs4all.nl (Roland Smith) Date: Mon Sep 14 12:31:24 2009 Subject: postgresql does not build correctly In-Reply-To: <01FB8F39BAD0BD49A6D0DA8F789739295741@Mercury.galaxy.lan.lcl> References: <01FB8F39BAD0BD49A6D0DA8F789739295741@Mercury.galaxy.lan.lcl> Message-ID: <20090914123059.GA61804@slackbox.xs4all.nl> On Mon, Sep 14, 2009 at 01:11:51PM +0100, Graeme Dargie wrote: > I have been trying on and off to set up postgresql for undernets > gnuworld services for ircd. > > Now according to the instructions below this should build with tcl > support and you should end up with the following file > > /usr/local/pgsql/bin/pgtclsh > > Except you dont. Try installing the databases/postgresql-tcltk port. 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) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090914/1a532238/attachment.pgp From psychosensor at gmail.com Mon Sep 14 12:31:49 2009 From: psychosensor at gmail.com (Sergey Listopad) Date: Mon Sep 14 12:31:56 2009 Subject: Routes to local addresses through lo0 on 8.0-BETA4 Message-ID: Hi! On 8.0-BETA4 gate I see than in routing table are number of "routes" (link# records) through lo0 for some local addresses: hole> netstat -rnfinet | grep lo0 127.0.0.1 link#7 UH 0 30764 lo0 172.22.254.10 link#7 UHS 0 0 lo0 192.168.253.254 link#7 UHS 0 0 lo0 xl0: flags=8943 metric 0 mtu 1500 options=9 ether 00:04:76:16:5b:bc inet 10.106.148.206 netmask 0xfffff000 broadcast 10.106.159.255 media: Ethernet autoselect (100baseTX ) status: active [...] xl2: flags=8843 metric 0 mtu 1500 options=9 ether 00:b0:d0:e1:6b:62 inet 192.168.253.254 netmask 0xffffff00 broadcast 192.168.253.255 media: Ethernet autoselect (100baseTX ) status: active tun3: flags=8051 metric 0 mtu 1390 inet 172.22.254.10 --> 172.22.254.9 netmask 0xffffffff Opened by PID 1971 Is it normal. On older FreeBSD I see link# records only for network prefix. -- S.Listopad From chris at chrismaness.com Mon Sep 14 12:41:16 2009 From: chris at chrismaness.com (Chris Maness) Date: Mon Sep 14 12:41:23 2009 Subject: Dump/Restore? In-Reply-To: <0016e6d7ea7bc68d970473840acb@google.com> References: <0016e6d7ea7bc68d970473840acb@google.com> Message-ID: <4AAE39E8.8080302@chrismaness.com> utisoft@googlemail.com wrote: > On 14 Sep 2009 02:50, Chris Maness wrote: > > On Sun, Sep 13, 2009 at 6:15 PM, Chris Maness chris@chrismaness.com> > wrote: > > > > > I level 0 dump of my server. I lost a file that I need back. Is it > > > > > possible to use restore like tar and explode it into a directory > > > > > instead of a pristine partition/mount? Or even better, is it possible > > > > > to just extract a single file without exploding the whole tape dump? > > > > > > > > > > Sorry if the question seems stupid. > > > > > > > > > > Chris KQ6UP > > > > > > > > > > > > > Sorry, I was reading the restore man from my mac, and it was not as > > > > clear. The restore does not seem to work from my mac (this is where > > > > my backup dumps reside as I have two massive HDs). I guess the mac > > > > restore would only work with HFS+ and not UFS. I guess the only way > > > > would be to move the massive dump file back over to the FreeBSD > > > > server. > > > > > > > > Thanks, > > > > Chris KQ6UP > > > > _______________________________________________ > > Try using NFS or cat over ssh, something like > > $ ssh my_mac 'cat dumpfile' | restore -if - > > restore treats the file as a tape, so it doesn't pull any bytes until > you ask it to. This should be the least network intensive way of doing > it.... > > > Good luck! > > Chris Thanks, that looks like a pretty cool trick. Chris From mahlerrd at yahoo.com Mon Sep 14 12:45:03 2009 From: mahlerrd at yahoo.com (Richard Mahlerwein) Date: Mon Sep 14 12:45:10 2009 Subject: Dump/Restore? In-Reply-To: Message-ID: <302285.41141.qm@web51010.mail.re2.yahoo.com> --- On Sun, 9/13/09, Chris Maness wrote: >From: Chris Maness >Subject: Re: Dump/Restore? >To: freebsd-questions@freebsd.org >Date: Sunday, September 13, 2009, 9:50 PM > >On Sun, Sep 13, 2009 at 6:15 PM, Chris Maness wrote: >> I level 0 dump of my server. ?I lost a file that I need back. ?Is it >> possible to use restore like tar and explode it into a directory >> instead of a pristine partition/mount? ?Or even better, is it possible >> to just extract a single file without exploding the whole tape dump? >> >> Sorry if the question seems stupid. >> >> Chris KQ6UP >Sorry, I was reading the restore man from my mac, and it was not as >clear.? The restore does not seem to work from my mac (this is where >my backup dumps reside as I have two massive HDs).? I guess the mac >restore would only work with HFS+ and not UFS.? I guess the only way >would be to move the massive dump file back over to the FreeBSD >server. If the dump was made on the mac, it's highly likely restore will need to be run from the mac.? If it was made on freebsd, you'll likely need to run restore from freebsd.? Assuming you run it from the appropriate place..? I don't have my Mac handy to check it's man pages, but in FreeBSD I believe in it that it would be #restore -i -f ? or #restore -i Then use 'ls' and 'cd' to find the file you want. In the "restore > : prompt you can "add " to add it to the restore list.? Works with folders, too. "extract" to finally pull those out. YMMV, so read the docs. I would suspect the Mac has similar options, though can't confirm that at the moment. -Rich From wblock at wonkity.com Mon Sep 14 13:29:48 2009 From: wblock at wonkity.com (Warren Block) Date: Mon Sep 14 13:29:56 2009 Subject: ath atheros 5424/2424 on the CQ60 Presario In-Reply-To: <27184812.1252902383777.JavaMail.root@wamui-junio.atl.sa.earthlink.net> References: <27184812.1252902383777.JavaMail.root@wamui-junio.atl.sa.earthlink.net> Message-ID: On Mon, 14 Sep 2009, Kenneth wrote: > Anyone been able to use the ath driver on an atheros 5424/2424? I have a Compaq Presario CQ60 and can not get the wireless light to turn blue? For a working LED, the Atheros AR5007 (5424/2424) in my Acer requires dev.ath.0.ledpin=3 dev.ath.0.softled=1 in /etc/sysctl.conf. Works without that, just no LED. -Warren Block * Rapid City, South Dakota USA From kurt.buff at gmail.com Mon Sep 14 13:56:28 2009 From: kurt.buff at gmail.com (Kurt Buff) Date: Mon Sep 14 13:56:35 2009 Subject: SVG and dependence on Firefox2.x? In-Reply-To: <87zl8xkiqz.fsf@kobe.laptop> References: <87zl8xkiqz.fsf@kobe.laptop> Message-ID: On Mon, Sep 14, 2009 at 01:55, Giorgos Keramidas wrote: > On Sun, 13 Sep 2009 14:59:51 -0700, Kurt Buff wrote: >> I notice that for both The Gimp and graphviz, and probably for others >> as well, marking them or their dependencies as able to render SVG >> invokes installation of FF 2.x. >> >> This fails, as the port is marked as forbidden, and then the >> installation of these graphics programs fails. >> >> Not a huge deal, but any way to work around it? > > You can build most of the ports that depend on GECKO with the following > in your `/etc/make.conf' file: > > ? ?WITH_GECKO= ? ? ? ? libxul > > I just finished rebuilding my packages in a chroot with this option, and > firefox 2.x was not required for a full x11/gnome2 build: > > # pkg_info | fgrep firefo > firefox-3.5.3,1 ? ? Web browser based on the browser portion of Mozilla > # Even better. Many thanks. Kurt From jedwardsimmons.strathmore at gmail.com Mon Sep 14 14:05:04 2009 From: jedwardsimmons.strathmore at gmail.com (Strathmore Who's Who) Date: Mon Sep 14 14:05:20 2009 Subject: Brent Jones - Selection Into Strathmore's Who's Who Message-ID: <20090914140504.7283B106566C@hub.freebsd.org> Dear Brent Jones, It is my pleasure to inform you that on August 31st, 2009 your information was reviewed and accepted for inclusion in the 2009/2010 edition of our registry. Strathmore's Who's Who each year, recognizes and selects key executives, professionals and organizations in all disciplines and industries for outstanding business and professional achievements. This recognition is shared by those who have reached a distinguished level of success in their chosen profession. Please take a moment to complete the invitation by clicking on the link below. We ask that you complete it carefully, as it will be reviewed by our editorial department. http://www.strathmorewwonlineform.net ** Please complete the online link by September 30th. Strathmore's Who's Who is pleased to inform you that there are no fees or dues to be included in the publication. On behalf of the CEO and our esteemed staff, we wish you continued success. Sincerely, J.Edward Simmons Vice President, Research Division Strathmore's Who's Who This email was sent to freebsd-questions@freebsd.org, by Premiere Marketing 23-35A Steinway Street Astoria, NY 11105 United States If you do not wish to receive future e-mail from Premiere Marketing, please use the link below. http://rm.resultsmail.com/unsubscribe.cfm?uid=ad64c3f6-a7a2-43a7-82df-17ac52ec97d7&mid=0bd7f7e4-d0bb-423f-808b-03ae0afaa1a8&route=http%3A%2F%2Frm%2Eresultsmail%2Ecom%2Funsubscribed%2Ecfm Powered by ResultsMail (http://www.resultsmail.com/) ResultsMail Privacy Policy: http://www.resultsmail.com/privacy ResultsMail Permission Email Policy: http://www.resultsmail.com/permission From utisoft at googlemail.com Mon Sep 14 14:06:18 2009 From: utisoft at googlemail.com (Chris Rees) Date: Mon Sep 14 14:06:24 2009 Subject: Dump/Restore? In-Reply-To: <4AAE39E8.8080302@chrismaness.com> References: <0016e6d7ea7bc68d970473840acb@google.com> <4AAE39E8.8080302@chrismaness.com> Message-ID: 2009/9/14 Chris Maness : > utisoft@googlemail.com wrote: >> >> On 14 Sep 2009 02:50, Chris Maness wrote: >> > On Sun, Sep 13, 2009 at 6:15 PM, Chris Maness chris@chrismaness.com> >> > wrote: >> > >> > > I level 0 dump of my server. ?I lost a file that I need back. ?Is it >> > >> > > possible to use restore like tar and explode it into a directory >> > >> > > instead of a pristine partition/mount? ?Or even better, is it possible >> > >> > > to just extract a single file without exploding the whole tape dump? >> > >> > > >> > >> > > Sorry if the question seems stupid. >> > >> > > >> > >> > > Chris KQ6UP >> > >> > > >> > >> > >> > >> > Sorry, I was reading the restore man from my mac, and it was not as >> > >> > clear. ?The restore does not seem to work from my mac (this is where >> > >> > my backup dumps reside as I have two massive HDs). ?I guess the mac >> > >> > restore would only work with HFS+ and not UFS. ?I guess the only way >> > >> > would be to move the massive dump file back over to the FreeBSD >> > >> > server. >> > >> > >> > >> > Thanks, >> > >> > Chris KQ6UP >> > >> > _______________________________________________ >> >> Try using NFS or cat over ssh, something like >> >> $ ssh my_mac 'cat dumpfile' | restore -if - >> >> restore treats the file as a tape, so it doesn't pull any bytes until you >> ask it to. This should be the least network intensive way of doing it.... >> >> >> Good luck! >> >> Chris > > Thanks, that looks like a pretty cool trick. > > Chris > Let me know how you get on with it, I gzip my dumps and can pipe together commands like that, so it should work! 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 a mailing list? From jerrymc at msu.edu Mon Sep 14 14:33:57 2009 From: jerrymc at msu.edu (Jerry McAllister) Date: Mon Sep 14 14:34:04 2009 Subject: Dump/Restore? In-Reply-To: References: Message-ID: <20090914142849.GA47054@gizmo.acns.msu.edu> On Sun, Sep 13, 2009 at 06:15:55PM -0700, Chris Maness wrote: > I level 0 dump of my server. I lost a file that I need back. Is it > possible to use restore like tar and explode it into a directory > instead of a pristine partition/mount? Or even better, is it possible > to just extract a single file without exploding the whole tape dump? Yes, it is easily done. Just use the 'interactive' option. First, be clear where you want the restores file[s] to go. The official way to do the interactive option is to cd in to the bottom level of the filesystem it is in and do it from there. Restore will then put the files in the directories where they were when the dump was made. So, if the file[s] were in /home/joes/files/ cd to /home and do the restore. It will take care of knowing about the joes and files subdirectories and build them if they are not there. But, really the general recommended way (and the way I do it) to do an interactive restore is to create a designated directory for it and cd in to that. It can be anywhere there is room for the files. So, for example, on some systems I have a large amount of extra space in a filesystem I mount as /work. Within that I create a directory I can recover (for lack of any more imaginative name). I cd to the /work/recover directory and do the interactive restore. eg do: cd /work/recover restore -if dump_device/file Then fish around amongst the directories. When you find the one[s] you need to restore, just do add filename You can keep going and add several files and directories. When you have all that you want/need, then type extract It will ask you what tape to start with. If the dump is a file or of there is only one tape or other device, type 1 If there are more than one tape, type in the number of the last tape. It will search backward through the list of tapes/devices until it finds the files. eg. if there are 7 tapes in the level 0 dump set, start with 7, then give it 6 and then 5, etc. It will quit asking when it finds the files. Finally, it will ask if you want to set ownership of . Say no unless you have a good reason for doing otherwise. Now, if you have used a separate directory as I suggest above, tell restore to quit and then look at the file[s] to make sure they are all right and then manually move then to whichever directory you want. You can then delete them from /work/recover but leave that directory around for when you need it again. This is good for any circumstance when you want to pull just one of a few files out of a dump (or a tar file). I do a similar thing when I untar stuff I have moved over. I make a /work/unroll directory and untar stuff in there and move whay I want to where I want it. This may seem to be an extra unnecessary step, but it cuts down on errors, in my handling directories and file locations. ////jerry > > Sorry if the question seems stupid. > > Chris KQ6UP > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" From jerrymc at msu.edu Mon Sep 14 14:40:26 2009 From: jerrymc at msu.edu (Jerry McAllister) Date: Mon Sep 14 14:40:32 2009 Subject: Dump/Restore? In-Reply-To: References: Message-ID: <20090914143518.GB47054@gizmo.acns.msu.edu> On Sun, Sep 13, 2009 at 06:50:05PM -0700, Chris Maness wrote: > On Sun, Sep 13, 2009 at 6:15 PM, Chris Maness wrote: > > I level 0 dump of my server. ?I lost a file that I need back. ?Is it > > possible to use restore like tar and explode it into a directory > > instead of a pristine partition/mount? ?Or even better, is it possible > > to just extract a single file without exploding the whole tape dump? > > > > Sorry if the question seems stupid. > > > > Chris KQ6UP > > > > Sorry, I was reading the restore man from my mac, and it was not as > clear. The restore does not seem to work from my mac (this is where > my backup dumps reside as I have two massive HDs). I guess the mac > restore would only work with HFS+ and not UFS. I guess the only way > would be to move the massive dump file back over to the FreeBSD > server. The dump is just a file and it should not matter where it is stored, but you will have to use some network access type thing such as an rsh or an NFS connection to read it. Another thing is that restores need to be done on the same OS that the dumps were written - regardless of where they are stored. dump/restore depends on knowing something about the underlying filesystem, so it is not transferable from one system to another and often even between one OS version to another, like tar tends to be. But, you can make the dump file move between where it is stored and a system that can restore from it using one of the network protocols. ////jerry > > Thanks, > Chris KQ6UP > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > From nvass9573 at gmx.com Mon Sep 14 15:22:13 2009 From: nvass9573 at gmx.com (Nikos Vassiliadis) Date: Mon Sep 14 15:22:20 2009 Subject: Routes to local addresses through lo0 on 8.0-BETA4 In-Reply-To: References: Message-ID: <4AAE5F65.6040407@gmx.com> Sergey Listopad wrote: > Hi! > > On 8.0-BETA4 gate I see than in routing table are number of "routes" > (link# records) through lo0 for some local addresses: > > hole> netstat -rnfinet | grep lo0 > 127.0.0.1 link#7 UH 0 30764 lo0 > 172.22.254.10 link#7 UHS 0 0 lo0 > 192.168.253.254 link#7 UHS 0 0 lo0 > > Is it normal. > On older FreeBSD I see link# records only for network prefix. > Yes, it is normal. It's one of the user-visible changes from the ARP and NDP rewrite in 8.0. Nikos From mexas at bristol.ac.uk Mon Sep 14 15:37:36 2009 From: mexas at bristol.ac.uk (Anton Shterenlikht) Date: Mon Sep 14 15:37:48 2009 Subject: port math/gnuplot hangs and ignores "kill -9" Message-ID: <20090914153728.GA60162@mech-cluster241.men.bris.ac.uk> on ia64 HEAD, gnuplot-4.2.6, any plot command hangs the program. top shows gnuplot is using 100% of CPU, yeat CPU time is zero: PID UID THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 60071 1001 2 48 0 98008K 51424K CPU1 1 0:00 100.00% gnuplot kill -9 60071, either from my account, or from root, has no effect, the process is still there. I cannot find a way to terminate this hanged process without reboot. This seems to be a regression. Please advise many thanks -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 331 5924 From mexas at bristol.ac.uk Mon Sep 14 15:42:46 2009 From: mexas at bristol.ac.uk (Anton Shterenlikht) Date: Mon Sep 14 15:42:58 2009 Subject: port math/gnuplot hangs and ignores "kill -9" In-Reply-To: <20090914153728.GA60162@mech-cluster241.men.bris.ac.uk> References: <20090914153728.GA60162@mech-cluster241.men.bris.ac.uk> Message-ID: <20090914154241.GA60268@mech-cluster241.men.bris.ac.uk> On Mon, Sep 14, 2009 at 04:37:28PM +0100, Anton Shterenlikht wrote: > on ia64 HEAD, gnuplot-4.2.6, any plot command > hangs the program. top shows gnuplot is using 100% of CPU, > yeat CPU time is zero: > > PID UID THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > 60071 1001 2 48 0 98008K 51424K CPU1 1 0:00 100.00% gnuplot > > kill -9 60071, either from my account, or from root, > has no effect, the process is still there. > > I cannot find a way to terminate this hanged process without reboot. > > This seems to be a regression. running gnuplot in batch (non-interactive) mode seems fine, so the problem seems to be with the screen terminal. I'm mostly puzzled by the fact that I cannot kill the process.. -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 331 5924 From danielby at slightlystrange.org Mon Sep 14 16:02:36 2009 From: danielby at slightlystrange.org (Daniel Bye) Date: Mon Sep 14 16:02:43 2009 Subject: linux-pango won't install In-Reply-To: <20090913042421.GB32126@kokopelli.hydra> References: <20090911034913.GA22437@kokopelli.hydra> <20090911104025.GA23566@torus.slightlystrange.org> <4AAA2B35.4010309@infracaninophile.co.uk> <20090911070849.559fa992@scorpio.seibercom.net> <20090912050123.GB27240@kokopelli.hydra> <87407909@bb.ipt.ru> <20090913042421.GB32126@kokopelli.hydra> Message-ID: <20090914160227.GB8179@torus.slightlystrange.org> On Sat, Sep 12, 2009 at 10:24:21PM -0600, Chad Perrin wrote: > On Sat, Sep 12, 2009 at 02:19:22PM +0400, Boris Samorodov wrote: > > On Fri, 11 Sep 2009 23:01:23 -0600 Chad Perrin wrote: > > > > > How long has this been broken for 7.2? Considering all the stuff that > > > depends on linux-pango, I'm surprised it hasn't been fixed. > > > > It will be broken until someone provide an URL to non-vulnerable > > RPM package. > > Daniel Bye's comments seem to indicate that FreeBSD 8.x doesn't have this > problem. Did I misunderstand? FreeBSD 8 uses linux-f10 as its default linuxulator, and in that, pango has been updated to 1.22.3, which doesn't seem to suffer from the same vulnerabilities. Or at least, they haven't yet been exposed! ;-) You may be able to use f10 on 7.2 - set compat.linux.osrelease=2.6.16 in /etc/sysctl.conf, and OVERRIDE_LINUX_BASE_PORT=f10 OVERRIDE_LINUX_NONBASE_PORTS=f10 in /etc/make.conf, then reinstall all your linux stuff. I did this before moving on to 8BETA1 and it worked OK. I think I ended up deleting all the old stuff, before installing afresh. As all the packages are already compiled, it shouldn't take long. Dan -- Daniel Bye _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090914/00eced15/attachment.pgp From info at peasoup.com Mon Sep 14 16:24:14 2009 From: info at peasoup.com (Peasoup) Date: Mon Sep 14 16:24:30 2009 Subject: ftpd virtual www hosts Message-ID: <57998B4D-84FF-450E-9DC7-70BE8D1681C8@peasoup.com> Hi Im new to the list, hope I have the right one, but if not, please let me know. And forgive me if I don't speak clear unix. I am trying to set up a webserver, with virtual hosting accounts. Naturally, I want to be able to give users the ability to upload files to their web directories. Setting up basic ftp is not an issue for me. I can set up a user at / usr/home/, and can upload via ftp just fine. Of course that directory is owned by user:user. I also get ftpchroot just fine. Next I go to vipw to change the user's home dir to something in the www area, which is owned by www:www. This is where my problems start with being denied. I am assuming that uploading to the unprivileged user www is getting in my way. I have tried to play with groups, ownership and permissions, etc, but I am not getting very far. I thought I'd see a boatload of information on Google about this. Any help is much appreciated, something that will give a user enough rights to upload his site, while at the same time keeping the webserver running as unprivileged as possible. I am new to freebsd. I was using wu on solaris prior to this... will the freebsd ftpd do what I want? Thank you Matt From freminlins at gmail.com Mon Sep 14 16:47:19 2009 From: freminlins at gmail.com (Freminlins) Date: Mon Sep 14 16:47:25 2009 Subject: Non-root user and accept() or listen() Message-ID: Hi, I am not sure if this exists (but don't think so), so I am asking. Is there a sysctl type thing to disallow non-root users, or indeed any specified user or group, from running a program with listen() ? What I am looking at is improving network security, such that if a user account is compromised it can then not be used to run a dodgy web server/whatever on a non-privileged port. Although I can firewall off any port I wish, it seems like an obvious thing to disallow any user from opening a listening socket in the first place. I am suggesting something like "sysctl user.socket_listen" with enable or disable. Am I being really daft? Or does this exist already? Cheers, Frem. From eitanadlerlist at gmail.com Mon Sep 14 16:52:57 2009 From: eitanadlerlist at gmail.com (Eitan Adler) Date: Mon Sep 14 16:53:06 2009 Subject: rebinding keys to functions Message-ID: My laptop has a bunch of volume-up/down/mute internet/mail/etc keys. How do I map each of them to run a specific shell command when pressed? From rsmith at xs4all.nl Mon Sep 14 17:22:42 2009 From: rsmith at xs4all.nl (Roland Smith) Date: Mon Sep 14 17:22:50 2009 Subject: port math/gnuplot hangs and ignores "kill -9" In-Reply-To: <20090914154241.GA60268@mech-cluster241.men.bris.ac.uk> References: <20090914153728.GA60162@mech-cluster241.men.bris.ac.uk> <20090914154241.GA60268@mech-cluster241.men.bris.ac.uk> Message-ID: <20090914172233.GA69286@slackbox.xs4all.nl> On Mon, Sep 14, 2009 at 04:42:41PM +0100, Anton Shterenlikht wrote: > On Mon, Sep 14, 2009 at 04:37:28PM +0100, Anton Shterenlikht wrote: > > on ia64 HEAD, gnuplot-4.2.6, any plot command > > hangs the program. top shows gnuplot is using 100% of CPU, > > yeat CPU time is zero: > > > > PID UID THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > > 60071 1001 2 48 0 98008K 51424K CPU1 1 0:00 100.00% gnuplot > > > > kill -9 60071, either from my account, or from root, > > has no effect, the process is still there. > > > > I cannot find a way to terminate this hanged process without reboot. > > > > This seems to be a regression. > > running gnuplot in batch (non-interactive) mode seems fine, so > the problem seems to be with the screen terminal. > > I'm mostly puzzled by the fact that I cannot kill the process.. It could be that the process is stuck in the 'D' state (uninterruptable wait). You can veryfiy that by running 'ps -u' and looking in the eight column when gnuplot is running. Does the window with the plot actually appear? Interactive use of gnuplot-4.2.6 is fine on amd64 7.2-RELEASE-p2. 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) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090914/165fa336/attachment.pgp From rsmith at xs4all.nl Mon Sep 14 17:34:22 2009 From: rsmith at xs4all.nl (Roland Smith) Date: Mon Sep 14 17:34:30 2009 Subject: rebinding keys to functions In-Reply-To: References: Message-ID: <20090914173420.GB69286@slackbox.xs4all.nl> On Mon, Sep 14, 2009 at 04:52:56PM +0000, Eitan Adler wrote: > My laptop has a bunch of volume-up/down/mute internet/mail/etc keys. > How do I map each of them to run a specific shell command when pressed? That depends on a couple of things (assuming you're running the X window system, I don't know if it is even possible on the console). First you have to make sure that you actually can see the key signals. In X you can test that with xev(1). How you can bind keypresses to commands in X depends on the window manager or desktop environment you are using. See the revelant documentation. On my laptop (centrino 2 platform, PM 45 chipset), using Fn combination works to change speaker volume and screen brightness, but this is done outside the OS. The X server doesn't even 'see' those keypresses. 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) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090914/9399c9ff/attachment.pgp From utisoft at googlemail.com Mon Sep 14 17:45:10 2009 From: utisoft at googlemail.com (Chris Rees) Date: Mon Sep 14 17:45:22 2009 Subject: Non-root user and accept() or listen() In-Reply-To: References: Message-ID: 2009/9/14 Freminlins : > Hi, > > I am not sure if this exists (but don't think so), so I am asking. > > Is there a sysctl type thing to disallow non-root users, or indeed any > specified user or group, from running a program with listen() ? > > What I am looking at is improving network security, such that if a user > account is compromised it can then not be used to run a dodgy web > server/whatever on a non-privileged port. Although I can firewall off any > port I wish, it seems like an obvious thing to disallow any user from > opening a listening socket in the first place. I am suggesting something > like "sysctl user.socket_listen" with enable or disable. > > Am I being really daft? Or does this exist already? > > > Cheers, > Frem. Isn't this a bit drastic? Listening sockets are opened by very many types of processes, as well as remembering that sendmail, BIND, and others don't actually run as root... I suppose it'd be possible, but would it actually be useful? BTW, there may be an ipfw rule for this, I'll have to look it up when my servers are back online! 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 a mailing list? From roberthuff at rcn.com Mon Sep 14 18:34:39 2009 From: roberthuff at rcn.com (Robert Huff) Date: Mon Sep 14 18:34:46 2009 Subject: rebinding keys to functions In-Reply-To: <20090914173420.GB69286@slackbox.xs4all.nl> References: <20090914173420.GB69286@slackbox.xs4all.nl> Message-ID: <19118.36021.489954.856994@jerusalem.litteratus.org> Roland Smith writes: > > My laptop has a bunch of volume-up/down/mute internet/mail/etc > > keys. How do I map each of them to run a specific shell > > command when pressed? > > That depends on a couple of things (assuming you're running the X > window system, I don't know if it is even possible on the > console). > > First you have to make sure that you actually can see the key > signals. In X you can test that with xev(1). If this is what I think it is, he probably can't. I have a Logitech iTouch keyboard; it has eighteen buttons and two dials. None of them register under xev. Robert Huff From dan at more.net Mon Sep 14 19:13:21 2009 From: dan at more.net (Dan D Niles) Date: Mon Sep 14 19:13:28 2009 Subject: Traffic Shaping Bridge with Dummynet Message-ID: <1252954494.858.35.camel@jane.spg.more.net> I am trying to do traffic shaping using a bridge on FreeBSD 7.1. I have the bridge configured and it works fine. It looks like this: rest of network <-> xl0 <-> bridge0 <-> xl1 <-> side to be shaped It works with the following set of ipfw rules (pipes in but unlimited bw): network=10.10.10.0/24 limit=0 ipfw -q -f flush ipfw -q pipe 1000 config mask dst-ip 0x000000ff bw $limit ipfw -q add pipe 1000 ip from any to $network via xl1 ipfw -q pipe 1001 config mask src-ip 0x000000ff bw $limit ipfw -q add pipe 1001 ip from $network to any via xl1 ipfw -q add 60000 allow all from any to any If I change the limit to 1Mbit/s (or anything else) it stops passing traffic. I used tcpdump and I can see the traffic on the bridge but I cannot see it after the bridge. However "ipfw -a list" shows the counts for the pipe going up, which doesn't make sense to me. I've tried adding: ipfw -q add allow all from any to any via bridge0 ipfw -q add allow all from any to any via xl0 before the pipes. I also tried moving the pipes to bridge0 and xl0. The docs on bridging (http://www.freebsd.org/doc/en/books/handbook/network-bridging.html) says "The bridge can be used as a traffic shaper with altq(4) or dummynet(4)." So what am I doing wrong? What else do I need to do to limit the bandwidth over a bridge? Thanks, Dan From dgoodin at sitpub.com Mon Sep 14 19:45:43 2009 From: dgoodin at sitpub.com (Dan Goodin) Date: Mon Sep 14 19:45:56 2009 Subject: reporter on deadline seeks comment about reported security bug in FreeBSD Message-ID: <4AAE95B2.5050409@sitpub.com> Hello, Dan Goodin, a reporter at technology news website The Register. Security researcher Przemyslaw Frasunek says versions 6.x through 6.4 of FreeBSD has a security bug. He says he notified the FreeBSD Foundation on August 29 and never got a response. We'll be writing a brief article about this. Please let me know ASAP if someone cares to comment. Kind regards, Dan Goodin 415-495-5411 -------- Original Message -------- Subject: Re: [Full-disclosure] FreeBSD <= 6.1 kqueue() NULL pointer dereference Date: Sun, 13 Sep 2009 10:49:33 +0200 From: Przemyslaw Frasunek Organization: frasunek.com To: full-disclosure@lists.grok.org.uk, bugtraq@securityfocus.com References: <4A9028AC.9080902@freebsd.lublin.pl> Przemyslaw Frasunek pisze: > FreeBSD <= 6.1 suffers from classical check/use race condition on SMP There is yet another kqueue related vulnerability. It affects 6.x, up to 6.4-STABLE. FreeBSD security team was notified on 29th Aug, but there is no response until now, so I won't publish any details. Sucessful exploitation yields local root and allows to exit from jail. For now, you can see demo on: http://www.vimeo.com/6554787 -- * Fido: 2:480/124 ** WWW: http://www.frasunek.com ** NICHDL: PMF9-RIPE * * Jabber ID: venglin@czuby.pl ** PGP ID: 2578FCAD ** HAM-RADIO: SQ5JIV * _______________________________________________ Full-Disclosure - We believe in it. Charter: http://lists.grok.org.uk/full-disclosure-charter.html Hosted and sponsored by Secunia - http://secunia.com/ From cwhiteh at onetel.com Mon Sep 14 20:00:12 2009 From: cwhiteh at onetel.com (Chris Whitehouse) Date: Mon Sep 14 20:00:19 2009 Subject: Can't install FreeBSD 7.2-RELEASE and 8.0-BETA4 In-Reply-To: <4AAD1033.1080708@laverenz.de> References: <85a117790909130511p64548ed7s117a5a1e0bf90306@mail.gmail.com> <4AAD1033.1080708@laverenz.de> Message-ID: <4AAEA0CA.9050606@onetel.com> Uwe Laverenz wrote: > Am 13.09.2009 14:11, schrieb Zbigniew Komarnicki: > >> run_interrupt_driven_hooks: still waiting after 60 seconds for xpt_config >> run_interrupt_driven_hooks: still waiting after 120 seconds for >> xpt_config >> run_interrupt_driven_hooks: still waiting after 180 seconds for >> xpt_config >> run_interrupt_driven_hooks: still waiting after 240 seconds for >> xpt_config >> run_interrupt_driven_hooks: still waiting after 300 seconds for >> xpt_config >> panic: run_interrupt_driven_config_hooks: waited too long >> cpuid=0 >> KDB: enter: panic >> [thread pid 0 tid 100000] >> Stopped at kdb_enter+0x3d: movq $0,0x68d1e0(%rip) >> db> >> >> and thats all. Is maybe also someone also have such problem? > > Yes, several people reported this problem. There is a workaround that > might help: disable the firewire device (IEEE 1394) in the BIOS of your > machine and try again. > > cu, > Uwe > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > Hi, I had the same problem on my ASUS M3N78-EM motherboard, see pr 136327. If you can't disable firewire you may be able to install a kernel with device sbp disabled. It's a bit of a fiddle, particularly for a laptop. You would have to - remove your hard drive and install it in another laptop or a usb hard drive caddy which you then plug into another computer. - install freebsd - build and install a new kernel with device sbp disabled - restore the hard disk to your laptop, see if it boots. Chris From mel.flynn+fbsd.questions at mailing.thruhere.net Mon Sep 14 20:13:05 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Mon Sep 14 20:13:12 2009 Subject: Remounting a drive as read/write crashes the system and no dmesg.boot In-Reply-To: <54FB5CAC-AFF8-4997-9C85-D130BAD00BFE@silvertree.org> References: <00B06063-9872-4ACE-8767-1221C22E33EE@silvertree.org> <200908211632.13723.mel.flynn+fbsd.questions@mailing.thruhere.net> <54FB5CAC-AFF8-4997-9C85-D130BAD00BFE@silvertree.org> Message-ID: <200909142213.01903.mel.flynn+fbsd.questions@mailing.thruhere.net> On Saturday 22 August 2009 02:40:53 Scott Schappell wrote: > On Aug 21, 2009, at 17:32:13, Mel Flynn wrote: > > On Friday 21 August 2009 07:34:11 Scott Schappell wrote: > >> Looking at info.0 I see: > >> > >> > >> Dump header from device /dev/ad0s1b > >> Architecture: i386 > >> Architecture Version: 2 > >> Dump Length: 155131904B (147 MB) > >> Blocksize: 512 > >> Dumptime: Fri Aug 21 08:27:45 2009 > >> Hostname: arthur.silvertree.org > >> Magic: FreeBSD Kernel Dump > >> Version String: FreeBSD 7.2-RELEASE-p3 #1: Fri Aug 14 13:27:47 PDT > >> 2009 > >> root@arthur.silvertree.org:/usr/obj/usr/src/sys/ARTHUR > >> Panic String: ffs_sync: rofs mod > >> Dump Parity: 2778312054 > >> Bounds: 0 > >> Dump Status: good > >> > >> This is interesting: > >> > >> "Panic String: ffs_sync: rofs mod" > >> > >> It looks I'm guessing this is saying "read only file system > >> modified". So it looks like the problem is with mount? > >> > >> If there's anything you want me to pull from the vmcore.0 let me > >> know. > >> > >> Again, this happens with the drive mounted RO from fstab. Unmounted > >> then mount -o rw /backup. > >> > >> Something is amiss, and first blush doesn't seem to be hardware > >> related. > > > > There should be a backtrace in info.0 already. That part contains more > > relevant information. > > Nope, that's all info.0 contains. Follow up. Temp fix available here: http://www.freebsd.org/cgi/getmsg.cgi?fetch=193338+0+current/freebsd-current -- Mel From freebsd at edvax.de Mon Sep 14 20:37:28 2009 From: freebsd at edvax.de (Polytropon) Date: Mon Sep 14 20:37:35 2009 Subject: Dump/Restore? In-Reply-To: <302285.41141.qm@web51010.mail.re2.yahoo.com> References: <302285.41141.qm@web51010.mail.re2.yahoo.com> Message-ID: <20090914223723.451088e2.freebsd@edvax.de> On Mon, 14 Sep 2009 05:45:01 -0700 (PDT), Richard Mahlerwein wrote: > In the "restore > : prompt you can > > "add " > > to add it to the restore list.? Works with folders, too. ^^^^^^^^ Excuse me, just a little terminology note: FreeBSD has directories, not folders. It doesn't have sheets of papers instead of files, too. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From jaymax36 at gmail.com Mon Sep 14 21:01:28 2009 From: jaymax36 at gmail.com (jaymax) Date: Mon Sep 14 21:01:35 2009 Subject: Approx. restore time estimate Message-ID: <25443580.post@talk.nabble.com> I do not expect an exact or precise answer here, given all the subjective & dependent parameters. Just a rough ballpark approximation, what time frame should a restore occur in? param :- an ~1Ghz system, running 6.x O/S, dumpfile ~ 30 Gb, UFS2 file systems w/ default blocksize, target directory 400 Gb w/ > 190 Gb free capacity, minimal use system booted from Fixit Just wanted to get an idea if I am going anywhere or workig fast being stuck somewhere or nowhere. Thanks -- View this message in context: http://www.nabble.com/Approx.-restore-time-estimate-tp25443580p25443580.html Sent from the freebsd-questions mailing list archive at Nabble.com. From kline at thought.org Mon Sep 14 21:02:23 2009 From: kline at thought.org (Gary Kline) Date: Mon Sep 14 21:02:30 2009 Subject: podcast on google? Or other? Message-ID: <20090914210215.GA43836@thought.org> hey guys, i'll deny i ever wrote this because i *should* know already... but don't. i've clicked on several podcast sites and they show links to yahoo and a couple others. does google have this [POD] icon? OR what do i install here on freebsd-7.1 that i can use to listen to podcasts or otherwise play old/archived streams? tia, -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php From freebsd at edvax.de Mon Sep 14 21:06:23 2009 From: freebsd at edvax.de (Polytropon) Date: Mon Sep 14 21:06:30 2009 Subject: rebinding keys to functions In-Reply-To: <19118.36021.489954.856994@jerusalem.litteratus.org> References: <20090914173420.GB69286@slackbox.xs4all.nl> <19118.36021.489954.856994@jerusalem.litteratus.org> Message-ID: <20090914230620.2f7dd3d4.freebsd@edvax.de> On Mon, 14 Sep 2009 14:34:29 -0400, Robert Huff wrote: > Roland Smith writes: > > > > My laptop has a bunch of volume-up/down/mute internet/mail/etc > > > keys. How do I map each of them to run a specific shell > > > command when pressed? > > > > That depends on a couple of things (assuming you're running the X > > window system, I don't know if it is even possible on the > > console). > > > > First you have to make sure that you actually can see the key > > signals. In X you can test that with xev(1). > > If this is what I think it is, he probably can't. For most laptop keyboards, there was (as already explained) a specific system that handled Fn+PFx outside the OS so it worked always. Even my old Toshiba T1600 can do that. "Modern" laptops do it differently: Fn+PFx key combinations have to be picked up by a specific driver that "listens" to stange and custom keycodes outside the standard range, and then communicate the selected purpose to the OS in order to perform the action, e. g. raise the volume. Even worse, "modern" laptops have replaced the simple switches in the earophone sockets. In the past, there was a mechanical switch that switched off the internal speakers when you inserted a 3,5mm jack. Today, a proprietary driver has to detect if a jack is inserted, and then switch of the speakers and then switch on the output of the socket. > I have a Logitech iTouch keyboard; it has eighteen buttons and > two dials. None of them register under xev. The Apple USB keyboard is something similar. Allthough most keys show up in xev, F13 and the four additional four keys on the right (volume, eject) don't show up. I've been advised that it is quite possible to look into the ukbd driver subsystem, add some debugging and log what happens when those keys are pressed; they can then be assigned a specific number which afterwards resolves tp a certain key symbol. Would be great if they worked... But life can be so easy when you've got good hardware, such as the Sun USB type 6 keyboard. The 2x5 and 1 keys on the left as well as the four keys on the top right show up in xev. I'm using a xmodmap file ~/.xmodmaprc to map them to a certain (arbitrary) key name, like ! Stop keycode 145 = F14 ! Meta links keycode 115 = Meta_L ! Meta rechte keycode 116 = Meta_R ! Compose keycode 117 = Multi_key add mod4 = Multi_key After that, I can use the config tool of WindowMaker to connect those key names to actions, like rolling up or hiding windows, running specific programs or performing other actions (e. g. moon key = log off, Ctrl+Alt+Moon = shutdown now; help = xlock). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From freebsd at edvax.de Mon Sep 14 21:13:45 2009 From: freebsd at edvax.de (Polytropon) Date: Mon Sep 14 21:13:52 2009 Subject: ftpd virtual www hosts In-Reply-To: <57998B4D-84FF-450E-9DC7-70BE8D1681C8@peasoup.com> References: <57998B4D-84FF-450E-9DC7-70BE8D1681C8@peasoup.com> Message-ID: <20090914231343.ae27d3da.freebsd@edvax.de> On Mon, 14 Sep 2009 12:10:35 -0400, Peasoup wrote: > Next I go to vipw to change the user's home dir to something in the > www area, which is owned by www:www. This is where my problems start > with being denied. I am assuming that uploading to the unprivileged > user www is getting in my way. A common way is to create a specific directory within the user's home directory, such as ~/public_html/ which is accessed by the web server to obtain the files to be served. The user has his regular FTP access to his home directory, so he can put files into ~/public_html/ or just create a symlink into this directory from somewhere else in his home directory. I haven't done much webserver stuff recently, and I'm not quite sure I did understand your question correctly, so my suggestion could already be outdated. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From illoai at gmail.com Mon Sep 14 21:13:57 2009 From: illoai at gmail.com (illoai@gmail.com) Date: Mon Sep 14 21:14:04 2009 Subject: reporter on deadline seeks comment about reported security bug in FreeBSD In-Reply-To: <4AAE95B2.5050409@sitpub.com> References: <4AAE95B2.5050409@sitpub.com> Message-ID: Am 2009/9/14 Dan Goodin writhed: > Hello, > > Dan Goodin, a reporter at technology news website The Register. Security > researcher Przemyslaw Frasunek says versions 6.x through 6.4 of FreeBSD > has a security bug. He says he notified the FreeBSD Foundation on August > 29 and never got a response. We'll be writing a brief article about > this. Please let me know ASAP if someone cares to comment. > Has anyone submitted a PR about this? -- -- From mikel.king at olivent.com Mon Sep 14 21:22:03 2009 From: mikel.king at olivent.com (Mikel King) Date: Mon Sep 14 21:22:10 2009 Subject: reporter on deadline seeks comment about reported security bug in FreeBSD In-Reply-To: <4AAE95B2.5050409@sitpub.com> References: <4AAE95B2.5050409@sitpub.com> Message-ID: On Sep 14, 2009, at 3:12 PM, Dan Goodin wrote: > Hello, > > Dan Goodin, a reporter at technology news website The Register. > Security > researcher Przemyslaw Frasunek says versions 6.x through 6.4 of > FreeBSD > has a security bug. He says he notified the FreeBSD Foundation on > August > 29 and never got a response. We'll be writing a brief article about > this. Please let me know ASAP if someone cares to comment. > > Kind regards, > > Dan Goodin > 415-495-5411 Hasn't 6.x been End Of Lifed? I mean considering that 8.0 is expected to be released either later this month or early next, and 6.x will be officially retired at that time, is it possible that this was overlooked? Personally I don't think it's ever good to overlook security, especially in the case of a root exploit. http://www.freebsd.org/releases/6.4R/announce.html Regards, Mikel King CEO, Olivent Technologies Senior Editor, Daemon News Columnist, BSD Magazine 6 Alpine Court, Medford, NY 11763 skype:mikel.king http://olivent.com http://mikelking.com http://twitter.com/mikelking From m.seaman at infracaninophile.co.uk Mon Sep 14 21:22:32 2009 From: m.seaman at infracaninophile.co.uk (Matthew Seaman) Date: Mon Sep 14 21:22:41 2009 Subject: reporter on deadline seeks comment about reported security bug in FreeBSD In-Reply-To: <4AAE95B2.5050409@sitpub.com> References: <4AAE95B2.5050409@sitpub.com> Message-ID: <4AAEB40B.1090302@infracaninophile.co.uk> Dan Goodin wrote: > Hello, > > Dan Goodin, a reporter at technology news website The Register. Security > researcher Przemyslaw Frasunek says versions 6.x through 6.4 of FreeBSD > has a security bug. He says he notified the FreeBSD Foundation on August > 29 and never got a response. We'll be writing a brief article about > this. Please let me know ASAP if someone cares to comment. > > Kind regards, > > Dan Goodin > 415-495-5411 > > -------- Original Message -------- > Subject: Re: [Full-disclosure] FreeBSD <= 6.1 kqueue() NULL pointer > dereference > Date: Sun, 13 Sep 2009 10:49:33 +0200 > From: Przemyslaw Frasunek > Organization: frasunek.com > To: full-disclosure@lists.grok.org.uk, bugtraq@securityfocus.com > References: <4A9028AC.9080902@freebsd.lublin.pl> > > Przemyslaw Frasunek pisze: >> FreeBSD <= 6.1 suffers from classical check/use race condition on SMP > > There is yet another kqueue related vulnerability. It affects 6.x, up to > 6.4-STABLE. FreeBSD security team was notified on 29th Aug, but there is no > response until now, so I won't publish any details. > > Sucessful exploitation yields local root and allows to exit from jail. > For now, > you can see demo on: > > http://www.vimeo.com/6554787 > You need to contact the Security Officer to get the official position. That's security-officer@freebsd.org I don't know why you seem to think this should have been reported to the FreeBSD Foundation. They aren't the responsible parties. What to do is clearly explained on this web page: http://www.freebsd.org/security/security.html (which Przemyslaw for one seems to have read). Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090914/2c7dbb7d/signature-0001.pgp From freebsd at edvax.de Mon Sep 14 21:26:29 2009 From: freebsd at edvax.de (Polytropon) Date: Mon Sep 14 21:26:36 2009 Subject: podcast on google? Or other? In-Reply-To: <20090914210215.GA43836@thought.org> References: <20090914210215.GA43836@thought.org> Message-ID: <20090914232627.ebcd3f9b.freebsd@edvax.de> On Mon, 14 Sep 2009 14:02:18 -0700, Gary Kline wrote: > > hey guys, i'll deny i ever wrote this because i *should* know already... > but don't. i've clicked on several podcast sites and they show links to yahoo and a couple > others. does google have this [POD] icon? OR what do i install here on freebsd-7.1 that i > can use to listen to podcasts or otherwise play old/archived streams? What format are those podcasts in? In OGG/Vorbis or MP3 format, you can use your favourite music player (mine is xmms) and use it for the specific media type; the browser's configuration editor should allow you to do so. The xmms program is able to play streamed media content, but mplayer should be fine, too. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From illoai at gmail.com Mon Sep 14 21:27:57 2009 From: illoai at gmail.com (illoai@gmail.com) Date: Mon Sep 14 21:28:04 2009 Subject: where to put `startx` serverargs In-Reply-To: References: Message-ID: 2009/9/12 Alexander Best : > hi there, > > since i don't use ipv6 X produces the following warning when starting up: > > _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6 > _XSERVTransOpen: transport open failed for inet6/otaku:0 > _XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6 > > so i'd to start X this way: `startx -- -nolisten inet6`. > > i looked through the man pages of startx and xinit but couldn't find where to > put the argument "-nolisten inet6" so `startx` picks it up automatically. > > currently i have this extra line in /usr/local/bin/startx: "serverargs = > -nolisten inet6" but that's just a hack because i couldn't find any > information on where to put the serverarg. > It seems to me that there should be a place in /etc/X11/xorg.conf However I cannot find it. I know it seems a bit clunky, but I would just put a short script in my $HOME/scripts (or wherever) rather than futzing with the actual startx script. -- -- From jhelfman at e-e.com Mon Sep 14 21:31:46 2009 From: jhelfman at e-e.com (Jason) Date: Mon Sep 14 21:31:52 2009 Subject: reporter on deadline seeks comment about reported security bug in FreeBSD In-Reply-To: References: <4AAE95B2.5050409@sitpub.com> Message-ID: <20090914213107.GC56375@eggman.experts-exchange.com> On Mon, Sep 14, 2009 at 05:21:48PM -0400, Mikel King thus spake: > >On Sep 14, 2009, at 3:12 PM, Dan Goodin wrote: > >> Hello, >> >> Dan Goodin, a reporter at technology news website The Register. >> Security >> researcher Przemyslaw Frasunek says versions 6.x through 6.4 of >> FreeBSD >> has a security bug. He says he notified the FreeBSD Foundation on >> August >> 29 and never got a response. We'll be writing a brief article about >> this. Please let me know ASAP if someone cares to comment. >> >> Kind regards, >> >> Dan Goodin >> 415-495-5411 > >Hasn't 6.x been End Of Lifed? I mean considering that 8.0 is expected >to be released either later this month or early next, and 6.x will be >officially retired at that time, is it possible that this was >overlooked? Personally I don't think it's ever good to overlook >security, especially in the case of a root exploit. > >http://www.freebsd.org/releases/6.4R/announce.html Looks like the EOL will be: November 30, 2010 http://security.freebsd.org/ > >Regards, >Mikel King >CEO, Olivent Technologies >Senior Editor, Daemon News >Columnist, BSD Magazine >6 Alpine Court, >Medford, NY 11763 > >skype:mikel.king >http://olivent.com >http://mikelking.com >http://twitter.com/mikelking > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > From m.seaman at infracaninophile.co.uk Mon Sep 14 21:36:52 2009 From: m.seaman at infracaninophile.co.uk (Matthew Seaman) Date: Mon Sep 14 21:36:59 2009 Subject: reporter on deadline seeks comment about reported security bug in FreeBSD In-Reply-To: References: <4AAE95B2.5050409@sitpub.com> Message-ID: <4AAEB763.6060709@infracaninophile.co.uk> Mikel King wrote: > Hasn't 6.x been End Of Lifed? I mean considering that 8.0 is expected to > be released either later this month or early next, and 6.x will be > officially retired at that time, is it possible that this was > overlooked? Personally I don't think it's ever good to overlook > security, especially in the case of a root exploit. Nope. 6.3 (RELENG_6_3) will be supported until at least 31 January 2010 while 6.4 (RELENG_6_4) and 6-STABLE (RELENG_6) will be supported until at least 30 November 2010 by the Security team. There are no more releases planned from the RELENG_6 branch, but that's not the same as 'unsupported' -- patches and advisories will be issued until the dates listed, and quite usually beyond that. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 259 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090914/f0d9e556/signature.pgp From mahlerrd at yahoo.com Mon Sep 14 21:38:43 2009 From: mahlerrd at yahoo.com (Richard Mahlerwein) Date: Mon Sep 14 21:38:50 2009 Subject: Dump/Restore? In-Reply-To: <20090914223723.451088e2.freebsd@edvax.de> Message-ID: <484063.93124.qm@web51008.mail.re2.yahoo.com> --- On Mon, 9/14/09, Polytropon wrote: From: Polytropon Subject: Re: Dump/Restore? To: mahlerrd@yahoo.com Cc: freebsd-questions@freebsd.org, "Chris Maness" Date: Monday, September 14, 2009, 4:37 PM On Mon, 14 Sep 2009 05:45:01 -0700 (PDT), Richard Mahlerwein wrote: > In the "restore > : prompt you can > > "add " > > to add it to the restore list.? Works with folders, too. ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ???^^^^^^^^ Excuse me, just a little terminology note: FreeBSD has directories, not folders. It doesn't have sheets of papers instead of files, too. :-) Pie on my face.? I work too much with multiple operating systems.? *sigh* BTW, I also work and develop heavily with a (non BSD, non-open source) document imaging and workflow management software, so you probably will, at some point, see me confuse files and sheets of paper.? I will not mind a gentle reminder just like the above when I do that . :) From ertr1013 at student.uu.se Mon Sep 14 21:44:47 2009 From: ertr1013 at student.uu.se (Erik Trulsson) Date: Mon Sep 14 21:44:54 2009 Subject: reporter on deadline seeks comment about reported security bug in FreeBSD In-Reply-To: References: <4AAE95B2.5050409@sitpub.com> Message-ID: <20090914214345.GA24467@owl.midgard.homeip.net> On Mon, Sep 14, 2009 at 05:21:48PM -0400, Mikel King wrote: > > On Sep 14, 2009, at 3:12 PM, Dan Goodin wrote: > > > Hello, > > > > Dan Goodin, a reporter at technology news website The Register. > > Security > > researcher Przemyslaw Frasunek says versions 6.x through 6.4 of > > FreeBSD > > has a security bug. He says he notified the FreeBSD Foundation on > > August > > 29 and never got a response. We'll be writing a brief article about > > this. Please let me know ASAP if someone cares to comment. > > > > Kind regards, > > > > Dan Goodin > > 415-495-5411 > > Hasn't 6.x been End Of Lifed? Not at all. The 6.2 and earlier releases have been EOL'd, but 6.3 and 6.4 are still supported by the security team. 6.4 (and 6.x in general) will be supported until November 2010, which is more than a year away. (See http://security.freebsd.org/ for official EOL information.) > I mean considering that 8.0 is expected > to be released either later this month or early next, and 6.x will be > officially retired at that time, is it possible that this was > overlooked? Personally I don't think it's ever good to overlook > security, especially in the case of a root exploit. > > http://www.freebsd.org/releases/6.4R/announce.html -- Erik Trulsson ertr1013@student.uu.se From dkelly at hiwaay.net Mon Sep 14 21:46:46 2009 From: dkelly at hiwaay.net (David Kelly) Date: Mon Sep 14 21:46:55 2009 Subject: reporter on deadline seeks comment about reported security bug in FreeBSD In-Reply-To: References: <4AAE95B2.5050409@sitpub.com> Message-ID: <20090914214642.GA12828@Grumpy.DynDNS.org> On Mon, Sep 14, 2009 at 05:13:54PM -0400, illoai@gmail.com wrote: > Am 2009/9/14 Dan Goodin writhed: > > Hello, > > > > Dan Goodin, a reporter at technology news website The Register. Security > > researcher Przemyslaw Frasunek says versions 6.x through 6.4 of FreeBSD > > has a security bug. He says he notified the FreeBSD Foundation on August > > 29 and never got a response. We'll be writing a brief article about > > this. Please let me know ASAP if someone cares to comment. > > Has anyone submitted a PR about this? Przemyslaw Frasunek has PR's posted but none recent. IMO if a PR is not submitted then one has *not* informed the Powers That Be. Having said that, for all I know there is a PR in the system that has been given restricted access until its dealt with. IIRC there is an option where one may request privacy when submitting a PR, perhaps that is the case here? Why is this in -questions? Seems -chat is more appropriate. -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad. From jjah at cloud.ccsf.cc.ca.us Mon Sep 14 22:02:49 2009 From: jjah at cloud.ccsf.cc.ca.us (Joe R. Jah) Date: Mon Sep 14 22:03:03 2009 Subject: libnsl.so.1 Message-ID: <20090914145447.K63280@cloud.ccsf.cc.ca.us> Hello all, I want to install a dispather module from Day Communique software on apache22. The binaray mod_dispatcher.so is provided by Day as a 64 bit *NIX compatible module to place in apache22 module directory. The mocule requires a shared library missing from system: --8<-- # apachectl -t httpd: Syntax error on line 827 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/mod_dispatcher.so into server: Shared object "libnsl.so.1" not found, required by "mod_dispatcher.so" --8<-- Does anyone know where to download libnsl.so.1, or from what port it can be installed? Regards, Joe -- _/ _/_/_/ _/ ____________ __o _/ _/ _/ _/ ______________ _-\<,_ _/ _/ _/_/_/ _/ _/ ......(_)/ (_) _/_/ oe _/ _/. _/_/ ah jjah@cloud.ccsf.cc.ca.us From utisoft at googlemail.com Mon Sep 14 22:02:51 2009 From: utisoft at googlemail.com (utisoft@googlemail.com) Date: Mon Sep 14 22:03:04 2009 Subject: Dump/Restore? In-Reply-To: <484063.93124.qm@web51008.mail.re2.yahoo.com> Message-ID: <0016364c76f59b1d70047390d3ee@google.com> On 14 Sep 2009 22:38, Richard Mahlerwein wrote: > --- On Mon, 9/14/09, Polytropon freebsd@edvax.de> wrote: > From: Polytropon freebsd@edvax.de> > Subject: Re: Dump/Restore? > To: mahlerrd@yahoo.com > Cc: freebsd-questions@freebsd.org, "Chris Maness" chris@chrismaness.com> > Date: Monday, September 14, 2009, 4:37 PM > On Mon, 14 Sep 2009 05:45:01 -0700 (PDT), Richard Mahlerwein > mahlerrd@yahoo.com> wrote: > > In the "restore > : prompt you can > > > > "add " > > > > to add it to the restore list. Works with folders, too. > ^^^^^^^^ > Excuse me, just a little terminology note: FreeBSD has directories, > not folders. It doesn't have sheets of papers instead of files, > too. :-) > Pie on my face. I work too much with multiple operating systems. *sigh* > BTW, I also work and develop heavily with a (non BSD, non-open source) > document imaging and workflow management software, so you probably will, > at some point, see me confuse files and sheets of paper. I will not mind > a gentle reminder just like the above when I do that . :) Yeah, unfortunately I still think of 'folders', and am continually wrong-footed by the term 'directory' in a graphical environment, even after years of GNU and FreeBSD use..... I have all sorts of strange habits that many will recognise as symptoms of multi-booting and running servers. There's no shame in that! Chris From luvbeastie at larseighner.com Mon Sep 14 22:07:56 2009 From: luvbeastie at larseighner.com (Lars Eighner) Date: Mon Sep 14 22:08:04 2009 Subject: Approx. restore time estimate In-Reply-To: <25443580.post@talk.nabble.com> References: <25443580.post@talk.nabble.com> Message-ID: <20090914163643.X97663@qroenaqrq.6qbyyneqvnyhc.pbz> On Mon, 14 Sep 2009, jaymax wrote: > > I do not expect an exact or precise answer here, given all the subjective > & dependent parameters. > > Just a rough ballpark approximation, what time frame should a restore occur > in? > > param :- > an ~1Ghz system, running 6.x O/S, dumpfile ~ 30 Gb, UFS2 file systems w/ > default blocksize, target directory 400 Gb w/ > 190 Gb free capacity, > minimal use system booted from Fixit > > Just wanted to get an idea if I am going anywhere or workig fast being > stuck somewhere or nowhere. I cannot begin to give you a number in the ballpark, all I can tell you is that restore *is* very, very slow and lacks reassuring progress indicators. -- Lars Eighner http://www.larseighner.com/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266 From freebsd at edvax.de Mon Sep 14 22:14:30 2009 From: freebsd at edvax.de (Polytropon) Date: Mon Sep 14 22:14:37 2009 Subject: Dump/Restore? In-Reply-To: <0016364c76f59b1d70047390d3ee@google.com> References: <484063.93124.qm@web51008.mail.re2.yahoo.com> <0016364c76f59b1d70047390d3ee@google.com> Message-ID: <20090915001426.2b49e1ca.freebsd@edvax.de> On Mon, 14 Sep 2009 22:02:49 +0000, utisoft@googlemail.com wrote: > Yeah, unfortunately I still think of 'folders', and am continually > wrong-footed by the term 'directory' in a graphical environment, even after > years of GNU and FreeBSD use..... Just imagine if the Xerox Alto and its first GUI wouldn't have been invented in the US, but in Germany. Then we would refer to "ring binders" or "lever arch folders", or "ordners" or "actenordner" (the german word is "der Ordner" or "der Akten- ordner"). Surely, this would be the default symbol: http://www.officexl.de/kopierpapier/images/ordner.jpg And all paper sizes defaults would refer to DIN A4 in the first place... what a beautiful imagination! :-) > I have all sorts of strange habits that many will recognise as symptoms of > multi-booting and running servers. There's no shame in that! Please don't get me wrong: There are correct places to use the term "folder", e. g. when talking about "mail folders" (which can be represented as files (mbox) or directories with files (MH) on the disk level). But in the case discussed, "directory" is the correct term. There's no need to change proven terminology just because some company indoctrinates you to do so. :-) How important it is to use the correct terminology is when users start asking you questions about their "modems" (refers to PC), their "TV" and their "brains" (refers to speakers), or start complaining that "the file system is too big" (refers to the icon size in the file manager used), and want "the same pictures at home as I have them at work" (refers to the OS). To sum it up in quite your own words: "I have all sorts of strange habits that many will recognise as symptoms of asperger's syndrome. There's no shame in that!" :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From freebsd at edvax.de Mon Sep 14 22:18:57 2009 From: freebsd at edvax.de (Polytropon) Date: Mon Sep 14 22:19:05 2009 Subject: libnsl.so.1 In-Reply-To: <20090914145447.K63280@cloud.ccsf.cc.ca.us> References: <20090914145447.K63280@cloud.ccsf.cc.ca.us> Message-ID: <20090915001855.05b7d961.freebsd@edvax.de> On Mon, 14 Sep 2009 15:02:50 -0700 (PDT), "Joe R. Jah" wrote: > Does anyone know where to download libnsl.so.1, or from what port it can > be installed? At least on my system, it seems to be part of the Linux ABI, so maybe the module in question is designed for Linux? % locate libnsl /usr/compat/linux/lib/libnsl-2.3.6.so /usr/compat/linux/lib/libnsl.so.1 There's no "libnsl" in the ports, and "nsl" search results don't seem to bring up something appropriate. My suggestion would be to install the Linux ABI and have the setting linux_enable="YES" in your /etc/rc.conf. The linux.ko kernel module should be loaded automatically, or maybe you already have it in your kernel config. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... From utisoft at googlemail.com Mon Sep 14 22:22:47 2009 From: utisoft at googlemail.com (utisoft@googlemail.com) Date: Mon Sep 14 22:22:54 2009 Subject: Dump/Restore? In-Reply-To: <20090915001426.2b49e1ca.freebsd@edvax.de> Message-ID: <0016e6d7ea64e03c380473911a95@google.com> On 14 Sep 2009 23:14, Polytropon wrote: > On Mon, 14 Sep 2009 22:02:49 +0000, utisoft@googlemail.com wrote: > > Yeah, unfortunately I still think of 'folders', and am continually > > wrong-footed by the term 'directory' in a graphical environment, even > after > > years of GNU and FreeBSD use..... > Just imagine if the Xerox Alto and its first GUI wouldn't have > been invented in the US, but in Germany. Then we would refer > to "ring binders" or "lever arch folders", or "ordners" or > "actenordner" (the german word is "der Ordner" or "der Akten- > ordner"). Surely, this would be the default symbol: > http://www.officexl.de/kopierpapier/images/ordner.jpg > And all paper sizes defaults would refer to DIN A4 in the first > place... what a beautiful imagination! :-) > > I have all sorts of strange habits that many will recognise as symptoms > of > > multi-booting and running servers. There's no shame in that! > Please don't get me wrong: There are correct places to use the > term "folder", eg when talking about "mail folders" (which can > be represented as files (mbox) or directories with files (MH) on > the disk level). But in the case discussed, "directory" is the > correct term. There's no need to change proven terminology just > because some company indoctrinates you to do so. :-) > How important it is to use the correct terminology is when users > start asking you questions about their "modems" (refers to PC), > their "TV" and their "brains" (refers to speakers), or start > complaining that "the file system is too big" (refers to the > icon size in the file manager used), and want "the same pictures > at home as I have them at work" (refers to the OS). > To sum it up in quite your own words: "I have all sorts of strange > habits that many will recognise as symptoms of asperger's syndrome. > There's no shame in that!" :-) Certainly no shame in that, but also one should be corrected on errors of terminology. Sorry if I didn't make that clear (I didn't!). I merely meant to point out that the best of us make terminological errors, and that it's all part of our 'diversity'. However, you were still right to correct the term IMO. Chris From rsmith at xs4all.nl Mon Sep 14 22:40:41 2009 From: rsmith at xs4all.nl (Roland Smith) Date: Mon Sep 14 22:40:48 2009 Subject: rebinding keys to functions In-Reply-To: <20090914230620.2f7dd3d4.freebsd@edvax.de> References: <20090914173420.GB69286@slackbox.xs4all.nl> <19118.36021.489954.856994@jerusalem.litteratus.org> <20090914230620.2f7dd3d4.freebsd@edvax.de> Message-ID: <20090914224038.GA77585@slackbox.xs4all.nl> On Mon, Sep 14, 2009 at 11:06:20PM +0200, Polytropon wrote: > On Mon, 14 Sep 2009 14:34:29 -0400, Robert Huff wrote: > > Roland Smith writes: > > > > > > My laptop has a bunch of volume-up/down/mute internet/mail/etc > > > > keys. How do I map each of them to run a specific shell > > > > command when pressed? > > > > > > That depends on a couple of things (assuming you're running the X > > > window system, I don't know if it is even possible on the > > > console). > > > > > > First you have to make sure that you actually can see the key > > > signals. In X you can test that with xev(1). > > > > If this is what I think it is, he probably can't. > > For most laptop keyboards, there was (as already explained) a > specific system that handled Fn+PFx outside the OS so it worked > always. Even my old Toshiba T1600 can do that. > > "Modern" laptops do it differently: Fn+PFx key combinations > have to be picked up by a specific driver that "listens" to > stange and custom keycodes outside the standard range, and then > communicate the selected purpose to the OS in order to perform > the action, e. g. raise the volume. Not all of them. My laptop is based on a quite modern cantiga (aka centrino2) PM45 chipset (from 2008, according to Wikipedia). The function keys for changing the creen brightness and sound volume work OK with FreeBSD, even though xev doesn't see them. So that signal seems to go directly to the hardware. Using the Fn key with the virtual numeric keypad works, and generates normal keyboard events. I haven't tested the keys that can control a media player, because I don't care about them. > Even worse, "modern" laptops have replaced the simple switches > in the earophone sockets. In the past, there was a mechanical > switch that switched off the internal speakers when you inserted > a 3,5mm jack. Today, a proprietary driver has to detect if a > jack is inserted, and then switch of the speakers and then > switch on the output of the socket. I just tested that today, and it worked OK in FreeBSD. Plug in the headphones, they work and the speaker goes silent. So I guess it is all about how the machine is put together. Even if a chipset has certain functionality, it is up to the board manufacturer to connect it. Writing a driver to detect if headphones are connected sounds much more complicated to me than connecting a couple of switches! I mean, you'd have to measure something like the impedance of the jack. Surely that is more expensive than a simple switch? 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) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090914/744e333c/attachment.pgp From rsmith at xs4all.nl Mon Sep 14 22:51:11 2009 From: rsmith at xs4all.nl (Roland Smith) Date: Mon Sep 14 22:51:20 2009 Subject: where to put `startx` serverargs In-Reply-To: References: Message-ID: <20090914225109.GB77585@slackbox.xs4all.nl> On Mon, Sep 14, 2009 at 05:27:56PM -0400, illoai@gmail.com wrote: > 2009/9/12 Alexander Best : > > hi there, > > > > since i don't use ipv6 X produces the following warning when starting up: > > > > _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6 > > _XSERVTransOpen: transport open failed for inet6/otaku:0 > > _XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6 > > > > so i'd to start X this way: `startx -- -nolisten inet6`. > > > > i looked through the man pages of startx and xinit but couldn't find where to > > put the argument "-nolisten inet6" so `startx` picks it up automatically. > > > > currently i have this extra line in /usr/local/bin/startx: "serverargs = > > -nolisten inet6" but that's just a hack because i couldn't find any > > information on where to put the serverarg. > > > > It seems to me that there should be a place in /etc/X11/xorg.conf > However > I cannot find it. You can put them in /usr/local/lib/X11/xinit/xserverrc, together with the X server. 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) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090914/51d1c6e3/attachment.pgp From mel.flynn+fbsd.questions at mailing.thruhere.net Mon Sep 14 23:17:06 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Mon Sep 14 23:17:13 2009 Subject: libnsl.so.1 In-Reply-To: <20090914145447.K63280@cloud.ccsf.cc.ca.us> References: <20090914145447.K63280@cloud.ccsf.cc.ca.us> Message-ID: <200909150117.03050.mel.flynn+fbsd.questions@mailing.thruhere.net> On Tuesday 15 September 2009 00:02:50 Joe R. Jah wrote: > Hello all, > > I want to install a dispather module from Day Communique software on > apache22. The binaray mod_dispatcher.so is provided by Day as a 64 bit > *NIX compatible module to place in apache22 module directory. The mocule > requires a shared library missing from system: > > --8<-- > # apachectl -t > httpd: Syntax error on line 827 of /usr/local/etc/apache22/httpd.conf: > Cannot load /usr/local/libexec/apache22/mod_dispatcher.so into server: > Shared object "libnsl.so.1" not found, required by "mod_dispatcher.so" > --8<-- > > Does anyone know where to download libnsl.so.1, or from what port it can > be installed? nsl=name service library. All of it's functions are in FreeBSD implement in libc. If this mod_dispatcher.so is indeed loadable by FreeBSD's linker, then you can provide a dummy libnsl.so.1, like so: $ cat <'EOF' >BSDmakefile SHLIB=nsl SHLIB_MAJOR=1 NO_MAN=yes SRCS=nsl.c .include EOF $ cat <'EOF' >nsl.c int nsl_dummy(void); int nsl_dummy(void) { return 0; } EOF $ make; sudo make LIBDIR=/usr/local/lib install The symbols it's looking for should be provided by libc, but if there's any undefined ones, this trickery gets a little dangerous and you're better off asking the developers for a native FreeBSD version. -- Mel From mel.flynn+fbsd.questions at mailing.thruhere.net Mon Sep 14 23:22:46 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Mon Sep 14 23:22:53 2009 Subject: reporter on deadline seeks comment about reported security bug in FreeBSD In-Reply-To: <20090914214642.GA12828@Grumpy.DynDNS.org> References: <4AAE95B2.5050409@sitpub.com> <20090914214642.GA12828@Grumpy.DynDNS.org> Message-ID: <200909150122.43566.mel.flynn+fbsd.questions@mailing.thruhere.net> On Monday 14 September 2009 23:46:42 David Kelly wrote: > On Mon, Sep 14, 2009 at 05:13:54PM -0400, illoai@gmail.com wrote: > > Am 2009/9/14 Dan Goodin writhed: > > > Hello, > > > > > > Dan Goodin, a reporter at technology news website The Register. > > > Security researcher Przemyslaw Frasunek says versions 6.x through 6.4 > > > of FreeBSD has a security bug. He says he notified the FreeBSD > > > Foundation on August 29 and never got a response. We'll be writing a > > > brief article about this. Please let me know ASAP if someone cares to > > > comment. > > > > Has anyone submitted a PR about this? > > Przemyslaw Frasunek has PR's posted but none recent. IMO if a PR is not > submitted then one has *not* informed the Powers That Be. Wrong. Security bugs should be reported to the security team, not PR'd. -- Mel From jaymax36 at gmail.com Mon Sep 14 23:36:49 2009 From: jaymax36 at gmail.com (jaymax) Date: Mon Sep 14 23:36:56 2009 Subject: Approx. restore time estimate In-Reply-To: <20090914163643.X97663@qroenaqrq.6qbyyneqvnyhc.pbz> References: <25443580.post@talk.nabble.com> <20090914163643.X97663@qroenaqrq.6qbyyneqvnyhc.pbz> Message-ID: <25445497.post@talk.nabble.com> Thanks! That might explain. Is there an alternate process you would recommend with at least equal reliability. BTW I should have mentioned that I was restoring from a disk file rather than from a tape Thanks again. --- Lars Eighner-2 wrote: > > On Mon, 14 Sep 2009, jaymax wrote: > > > I cannot begin to give you a number in the ballpark, all I can tell you is > that restore *is* very, very slow and lacks reassuring progress > indicators. > > -- > Lars Eighner > http://www.larseighner.com/index.html > 8800 N IH35 APT 1191 AUSTIN _ > > -- View this message in context: http://www.nabble.com/Approx.-restore-time-estimate-tp25443580p25445497.html Sent from the freebsd-questions mailing list archive at Nabble.com. From luvbeastie at larseighner.com Tue Sep 15 00:27:02 2009 From: luvbeastie at larseighner.com (Lars Eighner) Date: Tue Sep 15 00:27:09 2009 Subject: Approx. restore time estimate In-Reply-To: <25445497.post@talk.nabble.com> References: <25443580.post@talk.nabble.com> <20090914163643.X97663@qroenaqrq.6qbyyneqvnyhc.pbz> <25445497.post@talk.nabble.com> Message-ID: <20090914191841.Q98566@qroenaqrq.6qbyyneqvnyhc.pbz> On Mon, 14 Sep 2009, jaymax wrote: > > Thanks! > > That might explain. Is there an alternate process you would recommend with > at least equal reliability. I don't know of anything that isn't a bigger can of worms in a file system of any complexity to speak of. > BTW I should have mentioned that I was restoring from a disk file rather > than from a tape I was speaking of disk to disk. -- Lars Eighner http://www.larseighner.com/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266 From kurt.buff at gmail.com Tue Sep 15 00:33:58 2009 From: kurt.buff at gmail.com (Kurt Buff) Date: Tue Sep 15 00:34:06 2009 Subject: Approx. restore time estimate In-Reply-To: <25445497.post@talk.nabble.com> References: <25443580.post@talk.nabble.com> <20090914163643.X97663@qroenaqrq.6qbyyneqvnyhc.pbz> <25445497.post@talk.nabble.com> Message-ID: On Mon, Sep 14, 2009 at 16:36, jaymax wrote: > > Thanks! > > That might explain. Is there an alternate process you would recommend with > at least equal reliability. > BTW I should have mentioned that I was restoring from a disk file rather > than from a tape > > Thanks again. IME, restoring from disk or tape makes little difference, if you're doing a full restore, and once the restore process is up and running. The bigger bottleneck is the write speed of the disk(s) you're restoring to - it's always slower to write than to read, often by a very large margin. Kurt From jjah at cloud.ccsf.cc.ca.us Tue Sep 15 00:39:54 2009 From: jjah at cloud.ccsf.cc.ca.us (Joe R. Jah) Date: Tue Sep 15 00:40:01 2009 Subject: libnsl.so.1 In-Reply-To: <20090915001855.05b7d961.freebsd@edvax.de> References: <20090914145447.K63280@cloud.ccsf.cc.ca.us> <20090915001855.05b7d961.freebsd@edvax.de> Message-ID: <20090914173144.Y21417@cloud.ccsf.cc.ca.us> On Tue, 15 Sep 2009, Polytropon wrote: > Date: Tue, 15 Sep 2009 00:18:55 +0200 > From: Polytropon > To: Joe R. Jah > Cc: freebsd-questions@freebsd.org > Subject: Re: libnsl.so.1 > > On Mon, 14 Sep 2009 15:02:50 -0700 (PDT), "Joe R. Jah" wrote: > > Does anyone know where to download libnsl.so.1, or from what port it can > > be installed? > > At least on my system, it seems to be part of the Linux ABI, so > maybe the module in question is designed for Linux? > > % locate libnsl > /usr/compat/linux/lib/libnsl-2.3.6.so > /usr/compat/linux/lib/libnsl.so.1 > > There's no "libnsl" in the ports, and "nsl" search results don't > seem to bring up something appropriate. > > My suggestion would be to install the Linux ABI and have the > setting > > linux_enable="YES" > > in your /etc/rc.conf. The linux.ko kernel module should be loaded > automatically, or maybe you already have it in your kernel config. Thank you Polytropon. I have installed /usr/ports/emulators/linux_base-fc4 and now I have the following: /usr/compat/linux/lib/libnsl-2.3.6.so /usr/compat/linux/lib/libnsl.so.1 I have put linux_enable="YES" in /etc/rc.conf and rebooted the server; however, I still get the same response. What am missing? Regards, Joe -- _/ _/_/_/ _/ ____________ __o _/ _/ _/ _/ ______________ _-\<,_ _/ _/ _/_/_/ _/ _/ ......(_)/ (_) _/_/ oe _/ _/. _/_/ ah jjah@cloud.ccsf.cc.ca.us From jjah at cloud.ccsf.cc.ca.us Tue Sep 15 00:43:32 2009 From: jjah at cloud.ccsf.cc.ca.us (Joe R. Jah) Date: Tue Sep 15 00:43:39 2009 Subject: libnsl.so.1 In-Reply-To: <200909150117.03050.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <20090914145447.K63280@cloud.ccsf.cc.ca.us> <200909150117.03050.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: <20090914173958.C21417@cloud.ccsf.cc.ca.us> On Tue, 15 Sep 2009, Mel Flynn wrote: > Date: Tue, 15 Sep 2009 01:17:02 +0200 > From: Mel Flynn > To: freebsd-questions@freebsd.org > Cc: Joe R. Jah > Subject: Re: libnsl.so.1 > > On Tuesday 15 September 2009 00:02:50 Joe R. Jah wrote: > > Hello all, > > > > I want to install a dispather module from Day Communique software on > > apache22. The binaray mod_dispatcher.so is provided by Day as a 64 bit > > *NIX compatible module to place in apache22 module directory. The mocule > > requires a shared library missing from system: > > > > --8<-- > > # apachectl -t > > httpd: Syntax error on line 827 of /usr/local/etc/apache22/httpd.conf: > > Cannot load /usr/local/libexec/apache22/mod_dispatcher.so into server: > > Shared object "libnsl.so.1" not found, required by "mod_dispatcher.so" > > --8<-- > > > > Does anyone know where to download libnsl.so.1, or from what port it can > > be installed? > > nsl=name service library. All of it's functions are in FreeBSD implement in > libc. If this mod_dispatcher.so is indeed loadable by FreeBSD's linker, then > you can provide a dummy libnsl.so.1, like so: > > $ cat <'EOF' >BSDmakefile > SHLIB=nsl > SHLIB_MAJOR=1 > NO_MAN=yes > SRCS=nsl.c > > .include > EOF > $ cat <'EOF' >nsl.c > int nsl_dummy(void); > > int nsl_dummy(void) { return 0; } > EOF > > $ make; sudo make LIBDIR=/usr/local/lib install > > The symbols it's looking for should be provided by libc, but if there's any > undefined ones, this trickery gets a little dangerous and you're better off > asking the developers for a native FreeBSD version. Thank you Mel. You were right about undefined ones; Here's what I get: --8<-- apachectl -t httpd: Syntax error on line 826 of /usr/local/etc/apache22/httpd.conf: Cannot load /usr/local/libexec/apache22/mod_dispatcher.so into server: /usr/local/libexec/apache22/mod_dispatcher.so: Undefined symbol "__strdup" --8<-- Any more trickeries?;-) Regards, Joe -- _/ _/_/_/ _/ ____________ __o _/ _/ _/ _/ ______________ _-\<,_ _/ _/ _/_/_/ _/ _/ ......(_)/ (_) _/_/ oe _/ _/. _/_/ ah jjah@cloud.ccsf.cc.ca.us From perlinfo at nwvd.org Tue Sep 15 00:44:18 2009 From: perlinfo at nwvd.org (perl info) Date: Tue Sep 15 00:44:25 2009 Subject: Bandwidth Control in FreeBSD 8 Message-ID: <11043b700909141724i4c8f4a5fm57efb383d5845d84@mail.gmail.com> I have two questions in regards to a FreeBSD Server and avoiding ISP bandwidth charges. Are there changes to the ways bandwidth can be controlled in FreeBSD 8. Is there an accepted or standardized method to control and limit bandwidth usage over an interface. Thanks in advance for the help, Marcel http://nwvd.org From freebsd at insightbb.com Tue Sep 15 01:13:17 2009 From: freebsd at insightbb.com (Steven Friedrich) Date: Tue Sep 15 01:13:24 2009 Subject: csh issues bogus error message Message-ID: <200909142113.09065.freebsd@insightbb.com> I'm working on my .cshrc file, so I have to use csh syntax. I, like most Unix shell programmers, usually steer clear of csh scripts, but obviously, .cshrc requires csh syntax. If I create a file with just a # in it, I get: set: Variable name must begin with a letter. I can change the # to #!/bin/csh but I get the same error message This looks like a csh bug to me 8o) From freebsd at insightbb.com Tue Sep 15 01:14:32 2009 From: freebsd at insightbb.com (Steven Friedrich) Date: Tue Sep 15 01:14:53 2009 Subject: csh issues bogus error message Message-ID: <200909142114.30539.freebsd@insightbb.com> I'm working on my .cshrc file, so I have to use csh syntax. I, like most Unix shell programmers, usually steer clear of csh scripts, but obviously, .cshrc requires csh syntax. If I create a file with just a # in it, I get: set: Variable name must begin with a letter. I can change the # to #!/bin/csh but I get the same error message This looks like a csh bug to me 8o) I'm running FreeBSD 7.2p3 From mel.flynn+fbsd.questions at mailing.thruhere.net Tue Sep 15 01:14:36 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Tue Sep 15 01:14:54 2009 Subject: rebinding keys to functions In-Reply-To: <20090914224038.GA77585@slackbox.xs4all.nl> References: <20090914230620.2f7dd3d4.freebsd@edvax.de> <20090914224038.GA77585@slackbox.xs4all.nl> Message-ID: <200909150138.18798.mel.flynn+fbsd.questions@mailing.thruhere.net> On Tuesday 15 September 2009 00:40:38 Roland Smith wrote: > On Mon, Sep 14, 2009 at 11:06:20PM +0200, Polytropon wrote: > > On Mon, 14 Sep 2009 14:34:29 -0400, Robert Huff wrote: > > > Roland Smith writes: > > > > > My laptop has a bunch of volume-up/down/mute internet/mail/etc > > > > > keys. How do I map each of them to run a specific shell > > > > > command when pressed? > > > > > > > > That depends on a couple of things (assuming you're running the X > > > > window system, I don't know if it is even possible on the > > > > console). > > > > > > > > First you have to make sure that you actually can see the key > > > > signals. In X you can test that with xev(1). > > > > > > If this is what I think it is, he probably can't. > > > > For most laptop keyboards, there was (as already explained) a > > specific system that handled Fn+PFx outside the OS so it worked > > always. Even my old Toshiba T1600 can do that. > > > > "Modern" laptops do it differently: Fn+PFx key combinations > > have to be picked up by a specific driver that "listens" to > > stange and custom keycodes outside the standard range, and then > > communicate the selected purpose to the OS in order to perform > > the action, e. g. raise the volume. > > Not all of them. My laptop is based on a quite modern cantiga (aka > centrino2) PM45 chipset (from 2008, according to Wikipedia). The function > keys for changing the creen brightness and sound volume work OK with > FreeBSD, even though xev doesn't see them. So that signal seems to go > directly to the hardware. Most likely not entirely. Having acpidump(8)ed a few laptops, I have seen references to multimedia keys in there. However I know not nearly enough about ACPI to know if the OS can intercept/reroute the bindings. A gamble I would take is to let FreeBSD post itself as a windows variant to acpi, by setting hw.acpi.osname="Windows 2001" in /boot/loader.conf. Then recheck xev. -- Mel From steve at ibctech.ca Tue Sep 15 01:21:53 2009 From: steve at ibctech.ca (Steve Bertrand) Date: Tue Sep 15 01:22:00 2009 Subject: csh issues bogus error message In-Reply-To: <200909142113.09065.freebsd@insightbb.com> References: <200909142113.09065.freebsd@insightbb.com> Message-ID: <4AAEEC4F.4080909@ibctech.ca> Steven Friedrich wrote: > I'm working on my .cshrc file, so I have to use csh syntax. I, like most Unix > shell programmers, usually steer clear of csh scripts, but obviously, .cshrc > requires csh syntax. > > If I create a file with just a # in it, I get: > set: Variable name must begin with a letter. > > I can change the # to #!/bin/csh > but I get the same error message > > This looks like a csh bug to me 8o) What exactly are you trying to do? Can you post the entire contents of your .cshrc file? ...seems as though there is something missing here. Steve -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3233 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090915/6e37918b/smime.bin From freebsd at insightbb.com Tue Sep 15 02:38:43 2009 From: freebsd at insightbb.com (Steven Friedrich) Date: Tue Sep 15 02:38:49 2009 Subject: csh issues bogus error message In-Reply-To: <4AAEEC4F.4080909@ibctech.ca> References: <200909142113.09065.freebsd@insightbb.com> <4AAEEC4F.4080909@ibctech.ca> Message-ID: <200909142238.29848.freebsd@insightbb.com> On Monday 14 September 2009 21:22:23 Steve Bertrand wrote: > Steven Friedrich wrote: > > I'm working on my .cshrc file, so I have to use csh syntax. I, like most > > Unix shell programmers, usually steer clear of csh scripts, but > > obviously, .cshrc requires csh syntax. > > > > If I create a file with just a # in it, I get: > > set: Variable name must begin with a letter. > > > > I can change the # to #!/bin/csh > > but I get the same error message > > > > This looks like a csh bug to me 8o) > > What exactly are you trying to do? > > Can you post the entire contents of your .cshrc file? > > ...seems as though there is something missing here. > > Steve > Ok, I'm sorry. My brain farted. I had set -x in .cshrc, and that's a good line in a BOURNE script 8o) but in my csh scripts, I can place #!/bin/csh -x when I need debug. From kline at thought.org Tue Sep 15 02:52:36 2009 From: kline at thought.org (Gary Kline) Date: Tue Sep 15 02:52:44 2009 Subject: podcast on google? Or other? In-Reply-To: <20090914232627.ebcd3f9b.freebsd@edvax.de> References: <20090914210215.GA43836@thought.org> <20090914232627.ebcd3f9b.freebsd@edvax.de> Message-ID: <20090915025225.GD44075@thought.org> On Mon, Sep 14, 2009 at 11:26:27PM +0200, Polytropon wrote: > On Mon, 14 Sep 2009 14:02:18 -0700, Gary Kline wrote: > > > > hey guys, i'll deny i ever wrote this because i *should* know already... > > but don't. i've clicked on several podcast sites and they show links to yahoo and a couple > > others. does google have this [POD] icon? OR what do i install here on freebsd-7.1 that i > > can use to listen to podcasts or otherwise play old/archived streams? > > What format are those podcasts in? In OGG/Vorbis or MP3 format, > you can use your favourite music player (mine is xmms) and use > it for the specific media type; the browser's configuration > editor should allow you to do so. > > The xmms program is able to play streamed media content, but > mplayer should be fine, too. > i usually use kmplayer because i can kill it o r click-on to kill/stop. i was looking at a particular show on national public radio [NPR] nd wound up at the podcast section. i think, am not certain, that if i select the 'podcast' thing, this show will show up daily or weekly, whatever .... rather than me having to spent minutes of finding Show, finding archive place, and then selecting Stream or Podcast. if i'm not making enough sense, i'll wait until i've had a good night's sleep! gary PS: DEfinite offtopic but i may have found a legit ebook publisher ... they pod publish in us, canada, and in europe. [[i had no idea it'd be this hard just finding the right place. =sigh=]] > > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org The 5.67a release of Jottings: http://jottings.thought.org/index.php From nightrecon at hotmail.com Tue Sep 15 03:01:34 2009 From: nightrecon at hotmail.com (Michael Powell) Date: Tue Sep 15 03:01:41 2009 Subject: reporter on deadline seeks comment about reported security bug in FreeBSD References: <4AAE95B2.5050409@sitpub.com> <4AAEB763.6060709@infracaninophile.co.uk> Message-ID: Matthew Seaman wrote: > Mikel King wrote: > >> Hasn't 6.x been End Of Lifed? I mean considering that 8.0 is expected to >> be released either later this month or early next, and 6.x will be >> officially retired at that time, is it possible that this was >> overlooked? Personally I don't think it's ever good to overlook >> security, especially in the case of a root exploit. > > Nope. 6.3 (RELENG_6_3) will be supported until at least 31 January 2010 > while 6.4 (RELENG_6_4) and 6-STABLE (RELENG_6) will be supported until at > least 30 November 2010 by the Security team. > > There are no more releases planned from the RELENG_6 branch, but that's > not the same as 'unsupported' -- patches and advisories will be issued > until the dates listed, and quite usually beyond that. > Quoted from ~freebsd.security.general: "The bug was fixed in 6.1-STABLE, just before release of 6.2-RELEASE, but was not recognized as security vulnerability." So if the bug no longer exists in the non-EOL 6.3/6.4 there is nothing to fix. Seems to me this is more about not getting due credit and a writer who doesn't grok. The posting to security was a forward done by another individual, since the original discoverer notified the FreeBSD Foundation instead of the security team. Since the FreeBSD foundation is largely administrative and not the correct entity to notify, it is not surprising they did not reply. The writer sounds like he is attempting to spin the SNAFU into a "they knew about a security vulnerability and did nothing..." story. Self serving for him, headline grabbing and sensationalist for sure, but not true as it was quickly addressed at the time. This is water under the bridge and a writer flogging a dead horse. -Mike From mak at kolybabi.com Tue Sep 15 03:14:19 2009 From: mak at kolybabi.com (Mak Kolybabi) Date: Tue Sep 15 03:14:26 2009 Subject: reporter on deadline seeks comment about reported security bug in FreeBSD In-Reply-To: <4AAE95B2.5050409@sitpub.com> References: <4AAE95B2.5050409@sitpub.com> Message-ID: <20090915031437.GA20647@brisbane.nepharia.org> On 2009-09-14 12:12, Dan Goodin wrote: > We'll be writing a brief article about this. I didn't notice anyone link the finished article yet, so here it is: http://www.theregister.co.uk/2009/09/14/freebsd_security_bug/ -- Matthew Anthony Kolybabi (Mak) () ASCII Ribbon Campaign | Against HTML e-mail /\ www.asciiribbon.org | Against proprietary extensions From keramida at freebsd.org Tue Sep 15 03:27:28 2009 From: keramida at freebsd.org (Giorgos Keramidas) Date: Tue Sep 15 03:28:07 2009 Subject: reporter on deadline seeks comment about reported security bug in FreeBSD In-Reply-To: <4AAE95B2.5050409@sitpub.com> (Dan Goodin's message of "Mon, 14 Sep 2009 12:12:50 -0700") References: <4AAE95B2.5050409@sitpub.com> Message-ID: <87fxaokj9p.fsf@kobe.laptop> Hi Dan, The right place to report security problems with FreeBSD is to the Security Officer team. A PGP signed email to the email address of the security team at is enough to get the attention of the FreeBSD Project. Przemyslaw should email security-officer with any details he thinks are relevant. Then the security team will make sure to fix the bug for all affected releases of FreeBSD, release a patch with the fix, issue an advisory through the usual channels, and post the details online at our security information web pages at . Regards, Giorgos On Mon, 14 Sep 2009 12:12:50 -0700, Dan Goodin wrote: > Hello, > > Dan Goodin, a reporter at technology news website The Register. Security > researcher Przemyslaw Frasunek says versions 6.x through 6.4 of FreeBSD > has a security bug. He says he notified the FreeBSD Foundation on August > 29 and never got a response. We'll be writing a brief article about > this. Please let me know ASAP if someone cares to comment. > > Kind regards, > > Dan Goodin > 415-495-5411 > > -------- Original Message -------- > Subject: Re: [Full-disclosure] FreeBSD <= 6.1 kqueue() NULL pointer > dereference > Date: Sun, 13 Sep 2009 10:49:33 +0200 > From: Przemyslaw Frasunek > Organization: frasunek.com > To: full-disclosure@lists.grok.org.uk, bugtraq@securityfocus.com > References: <4A9028AC.9080902@freebsd.lublin.pl> > > Przemyslaw Frasunek pisze: >> FreeBSD <= 6.1 suffers from classical check/use race condition on SMP > > There is yet another kqueue related vulnerability. It affects 6.x, up to > 6.4-STABLE. FreeBSD security team was notified on 29th Aug, but there is no > response until now, so I won't publish any details. > > Sucessful exploitation yields local root and allows to exit from jail. > For now, > you can see demo on: > > http://www.vimeo.com/6554787 From nightrecon at hotmail.com Tue Sep 15 03:28:17 2009 From: nightrecon at hotmail.com (Michael Powell) Date: Tue Sep 15 03:28:23 2009 Subject: ftpd virtual www hosts References: <57998B4D-84FF-450E-9DC7-70BE8D1681C8@peasoup.com> <20090914231343.ae27d3da.freebsd@edvax.de> Message-ID: Polytropon wrote: > On Mon, 14 Sep 2009 12:10:35 -0400, Peasoup wrote: >> Next I go to vipw to change the user's home dir to something in the >> www area, which is owned by www:www. This is where my problems start >> with being denied. I am assuming that uploading to the unprivileged >> user www is getting in my way. > > A common way is to create a specific directory within the > user's home directory, such as > > ~/public_html/ > > which is accessed by the web server to obtain the files to > be served. The user has his regular FTP access to his home > directory, so he can put files into ~/public_html/ or just > create a symlink into this directory from somewhere else in > his home directory. > > I haven't done much webserver stuff recently, and I'm not > quite sure I did understand your question correctly, so my > suggestion could already be outdated. > This is facilitated by the Apache module mod_userdir. It utilizes the public_html folder in a user's home directory and usually in the default config shows up as http://www.someweb.somewhere/~username in the URI. As you indicated before, each user can FTP to his own content this way. Because FTP is passing passwords in the clear I consider this a poor security practice and won't go near it myself. However, if users could use sftp (from sshd) it would be a little more secure. You could also carry this one step further and issue each user a certificate, require certs to login, and disable password login. This is possibly overkill, as with sftp passwords will be inside the SSH tunnel and won't be in the clear. -Mike From odhiambo at gmail.com Tue Sep 15 05:22:34 2009 From: odhiambo at gmail.com (Odhiambo Washington) Date: Tue Sep 15 05:22:41 2009 Subject: ftpd virtual www hosts In-Reply-To: <57998B4D-84FF-450E-9DC7-70BE8D1681C8@peasoup.com> References: <57998B4D-84FF-450E-9DC7-70BE8D1681C8@peasoup.com> Message-ID: <991123400909142222q7c27578ct6d94bda2a3f6a1ad@mail.gmail.com> On Mon, Sep 14, 2009 at 7:10 PM, Peasoup wrote: > Hi > > Im new to the list, hope I have the right one, but if not, please let me > know. And forgive me if I don't speak clear unix. > > I am trying to set up a webserver, with virtual hosting accounts. > Naturally, I want to be able to give users the ability to upload files to > their web directories. > > Setting up basic ftp is not an issue for me. I can set up a user at > /usr/home/, and can upload via ftp just fine. Of course that directory > is owned by user:user. I also get ftpchroot just fine. > > Next I go to vipw to change the user's home dir to something in the www > area, which is owned by www:www. This is where my problems start with being > denied. I am assuming that uploading to the unprivileged user www is getting > in my way. > If you have virtualhost A, with DocumentRoot /usr/local/www/apache2/data/siteA/htdocs, then set the home directory for the user who uploads to this path during user creation. chroot them to this path as well. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "If you have nothing good to say about someone, just shut up!." -- Lucky Dube From frederique at isafeelin.org Tue Sep 15 06:17:10 2009 From: frederique at isafeelin.org (Frederique Rijsdijk) Date: Tue Sep 15 06:17:18 2009 Subject: Bandwidth Control in FreeBSD 8 In-Reply-To: <11043b700909141724i4c8f4a5fm57efb383d5845d84@mail.gmail.com> References: <11043b700909141724i4c8f4a5fm57efb383d5845d84@mail.gmail.com> Message-ID: <4AAF2CCE.2090609@isafeelin.org> On 9/15/2009 2:24 AM, perl info wrote: > I have two questions in regards to a FreeBSD Server and avoiding ISP > bandwidth charges. > > Are there changes to the ways bandwidth can be controlled in FreeBSD 8. > > Is there an accepted or standardized method to control and limit bandwidth > usage over an interface. > Changes I don't know about. But you can use IPFW to limit and measure the bandwidth you're using. You can also use darkstat (port) to measure the traffic you're generating. -- Frederique From rsmith at xs4all.nl Tue Sep 15 07:01:06 2009 From: rsmith at xs4all.nl (Roland Smith) Date: Tue Sep 15 07:01:14 2009 Subject: rebinding keys to functions In-Reply-To: <200909150138.18798.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <20090914230620.2f7dd3d4.freebsd@edvax.de> <20090914224038.GA77585@slackbox.xs4all.nl> <200909150138.18798.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: <20090915070100.GA91800@slackbox.xs4all.nl> On Tue, Sep 15, 2009 at 01:38:18AM +0200, Mel Flynn wrote: > > Not all of them. My laptop is based on a quite modern cantiga (aka > > centrino2) PM45 chipset (from 2008, according to Wikipedia). The function > > keys for changing the creen brightness and sound volume work OK with > > FreeBSD, even though xev doesn't see them. So that signal seems to go > > directly to the hardware. > > Most likely not entirely. Having acpidump(8)ed a few laptops, I have seen > references to multimedia keys in there. However I know not nearly enough about > ACPI to know if the OS can intercept/reroute the bindings. A gamble I would > take is to let FreeBSD post itself as a windows variant to acpi, by setting > hw.acpi.osname="Windows 2001" in /boot/loader.conf. Then recheck xev. What would you see in the acpidump that indicates those keys? 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) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 196 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090915/6912cd6b/attachment.pgp From perryh at pluto.rain.com Tue Sep 15 08:11:35 2009 From: perryh at pluto.rain.com (perryh@pluto.rain.com) Date: Tue Sep 15 08:11:42 2009 Subject: rebinding keys to functions In-Reply-To: <20090914224038.GA77585@slackbox.xs4all.nl> References: <20090914173420.GB69286@slackbox.xs4all.nl> <19118.36021.489954.856994@jerusalem.litteratus.org> <20090914230620.2f7dd3d4.freebsd@edvax.de> <20090914224038.GA77585@slackbox.xs4all.nl> Message-ID: <4aaf4a96.rnIcIpF47vYAtgHm%perryh@pluto.rain.com> Roland Smith wrote: > Writing a driver to detect if headphones are connected sounds > much more complicated to me than connecting a couple of switches! > I mean, you'd have to measure something like the impedance of > the jack. Surely that is more expensive than a simple switch? Or use a simpler jack, with one switch that connects to ground or not depending on whether the plug is inserted or not. It probably costs a cent or two less than the usual two-switch variety, and this is a BOM (Bill Of Materials, i.e. per-unit-built) savings. Writing the driver is an NRE (non-recurring engineering) expense which can be amortized over -- the manufacturer hopes -- a huge number of delivered units. From przemyslaw at frasunek.com Tue Sep 15 08:17:12 2009 From: przemyslaw at frasunek.com (Przemyslaw Frasunek) Date: Tue Sep 15 08:17:19 2009 Subject: reporter on deadline seeks comment about reported security bug in FreeBSD Message-ID: <4AAF4927.3070203@frasunek.com> Giorgos Keramidas wrote: > Przemyslaw should email security-officer with any details he thinks are > relevant. Then the security team will make sure to fix the bug for all > affected releases of FreeBSD, release a patch with the fix, issue an > advisory through the usual channels, and post the details online at our > security information web pages at . I see that I received a lot of criticism after disclosing 6.4 vulnerability. Please read some facts: I send few mails: on 29th Aug to security team, on 2nd Sep and 11th Sep directly to security officer. None of them were responded. I haven't filled any PRs, because it would disclose details of vulnerability to the public and allow blackhats to exploit it. I won't publish anything more than video, before official security advisory. The exploit is private to me and it won't be given to the "community". Michael Powell wrote: > Quoted from ~freebsd.security.general: > "The bug was fixed in 6.1-STABLE, just before release of 6.2-RELEASE, but > was not recognized as security vulnerability." This is another bug. The former one affected only 6.1, this one affects everything up to 6.4-STABLE. From freminlins at gmail.com Tue Sep 15 10:39:07 2009 From: freminlins at gmail.com (Freminlins) Date: Tue Sep 15 10:39:14 2009 Subject: Non-root user and accept() or listen() In-Reply-To: References: Message-ID: 2009/9/14 Chris Rees > > Isn't this a bit drastic? Listening sockets are opened by very many > types of processes, as well as remembering that sendmail, BIND, and > others don't actually run as root... I suppose it'd be possible, but > would it actually be useful? > Sure, those open listening sockets. But those are things I want to listen. Now suppose a user account was hacked, and "Bob" sets up a web server listening on some random port above 1024. If "Bob" couldn't use listen() he wouldn't be able to do that. Of course, user accounts should be made secure, but what I am getting at is making the hack much less useful. > BTW, there may be an ipfw rule for this, I'll have to look it up when > my servers are back online! > > Chris > Frem. (Apologies for Gmail quoting, which is horrible). From mel.flynn+fbsd.questions at mailing.thruhere.net Tue Sep 15 10:40:14 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Tue Sep 15 10:40:21 2009 Subject: rebinding keys to functions In-Reply-To: <20090915070100.GA91800@slackbox.xs4all.nl> References: <200909150138.18798.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090915070100.GA91800@slackbox.xs4all.nl> Message-ID: <200909151240.10909.mel.flynn+fbsd.questions@mailing.thruhere.net> On Tuesday 15 September 2009 09:01:00 Roland Smith wrote: > On Tue, Sep 15, 2009 at 01:38:18AM +0200, Mel Flynn wrote: > > > Not all of them. My laptop is based on a quite modern cantiga (aka > > > centrino2) PM45 chipset (from 2008, according to Wikipedia). The > > > function keys for changing the creen brightness and sound volume work > > > OK with FreeBSD, even though xev doesn't see them. So that signal seems > > > to go directly to the hardware. > > > > Most likely not entirely. Having acpidump(8)ed a few laptops, I have seen > > references to multimedia keys in there. However I know not nearly enough > > about ACPI to know if the OS can intercept/reroute the bindings. A gamble > > I would take is to let FreeBSD post itself as a windows variant to acpi, > > by setting hw.acpi.osname="Windows 2001" in /boot/loader.conf. Then > > recheck xev. > > What would you see in the acpidump that indicates those keys? Example, HPDV9000: If (LEqual (Local1, 0x07)) { Store ("Fn+F7 Pressed", Debug) If (LEqual (OSYS, 0x07D6)) { If (IGDS) { Notify (\_SB.PCI0.GFX0.DD04, 0x87) } Else { Notify (\_SB.PCI0.PEGP.VGA.LCD, 0x87) } } Else { Store (0x15, SMIF) Store (0x00, TRP0) } Fn+F7 = screen darker. See the ref to OSYS. Also: Method (_Q16, 0, NotSerialized) { Store ("!!! DVD/Music Button pressed !!!", Debug) If (LEqual (OSYS, 0x07D6)) { And: If (\_OSI ("Windows 2006")) { Store (0x07D6, OSYS) } -- Mel From wmoran at potentialtech.com Tue Sep 15 11:18:45 2009 From: wmoran at potentialtech.com (Bill Moran) Date: Tue Sep 15 11:18:51 2009 Subject: reporter on deadline seeks comment about reported security bug in FreeBSD In-Reply-To: <200909150122.43566.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <4AAE95B2.5050409@sitpub.com> <20090914214642.GA12828@Grumpy.DynDNS.org> <200909150122.43566.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: <20090915071826.a273c4fa.wmoran@potentialtech.com> Mel Flynn wrote: > > On Monday 14 September 2009 23:46:42 David Kelly wrote: > > On Mon, Sep 14, 2009 at 05:13:54PM -0400, illoai@gmail.com wrote: > > > Am 2009/9/14 Dan Goodin writhed: > > > > Hello, > > > > > > > > Dan Goodin, a reporter at technology news website The Register. > > > > Security researcher Przemyslaw Frasunek says versions 6.x through 6.4 > > > > of FreeBSD has a security bug. He says he notified the FreeBSD > > > > Foundation on August 29 and never got a response. We'll be writing a > > > > brief article about this. Please let me know ASAP if someone cares to > > > > comment. > > > > > > Has anyone submitted a PR about this? > > > > Przemyslaw Frasunek has PR's posted but none recent. IMO if a PR is not > > submitted then one has *not* informed the Powers That Be. > > Wrong. Security bugs should be reported to the security team, not PR'd. It's typical for security issues to be kept hushed until a fix is ready. As a result, there are usually no PRs, and in the case where the person who discovered the problem is amenable, there is no public discussion at all until a fix is available. Apparently, Mr. Frasunek started out down that path, which is admirable. It seems as if he doesn't have much patience, however, since he thinks that only 2 weeks is enough time to fix a security problem and QA the fix. -- Bill Moran http://www.potentialtech.com From maksverver at geocities.com Tue Sep 15 11:59:12 2009 From: maksverver at geocities.com (Maks Verver) Date: Tue Sep 15 11:59:20 2009 Subject: Can't boot Marvel Sheevaplug from USB Message-ID: <4AAF7D75.8080805@geocities.com> Hi everyone, I'm also playing with a Sheevaplug and I'm running into the same problem as reported by Rafal Jaworowski, but I think I have a clearer picture of what goes wrong. To recap, the kernel fails to mount the root filesystem because the partition on the USB stick isn't recognized by the kernel: FreeBSD 9.0-CURRENT #4: Mon Sep 14 19:57:10 CEST 2009 -- blablabla -- ugen0.1: at usbus0 uhub0: on usbus0 uhub0: 1 port with 1 removable, self powered Root mount waiting for: usbus0 ugen0.2: at usbus0 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x0000 Root mount waiting for: usbus0 umass0:0:0:-1: Attached to scbus0 Trying to mount root from ufs:/dev/da0s1a ROOT MOUNT ERROR: I think the problem is that the partition is detected only after the USB bus has been scanned. If I configure a kernel to boot from the network instead, it does recognize the USB device because of the additional delay involved in booting from the network: FreeBSD 9.0-CURRENT #5: Mon Sep 14 20:45:30 CEST 2009 -- blablabla -- ugen0.1: at usbus0 uhub0: on usbus0 uhub0: 1 port with 1 removable, self powered mge0: link state changed to UP Received DHCP Offer packet on mge0 from 130.89.1.145 via 130.89.160.4 (accepted) (no root path) Received DHCP Offer packet on mge0 from 130.89.1.144 via 130.89.160.5 (ignored) (no root path) ugen0.2: at usbus0 umass0: on usbus0 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:0:0:-1: Attached to scbus0 (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition (probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 (probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed (probe0:umass-sim0:0:0:0): (probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 (probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0 (probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed Retrying Command (per Sense Data) (probe0:umass-sim0:0:0:0): Retrying Command pass0 at umass-sim0 bus 0 scbus0 target 0 lun 0 pass0: < USB Flash Memory 1.00> Removable Direct Access SCSI-2 device pass0: Serial Number 0612140557130 pass0: 40.000MB/s transfers GEOM: new disk da0 da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: < USB Flash Memory 1.00> Removable Direct Access SCSI-2 device da0: Serial Number 0612140557130 da0: 40.000MB/s transfers da0: 962MB (1971200 512 byte sectors: 64H 32S/T 962C) Of course with the kernel configured like this, the kernel wants to mount the root filesystem from NFS and I can't break into the mountroot> prompt! It seems that the kernel assumes that it only needs to wait for the USB bus to finish scanning and then expects the root partition to be available, but apparently partitions can be detected after that. Does anyone have a suggestion how to deal with this? Is there a way to insert a delay before trying to mount root? (I tried setting SCSI_DELAY to 5000 but this didn't seem to have any effect -- I didn't notice any delay. Maybe this isn't supported for the ARM architecture?) Kind regards, Maks Verver. From mail25 at bzerk.org Tue Sep 15 12:27:52 2009 From: mail25 at bzerk.org (Ruben de Groot) Date: Tue Sep 15 12:28:01 2009 Subject: Non-root user and accept() or listen() In-Reply-To: References: Message-ID: <20090915122746.GA27732@ei.bzerk.org> On Tue, Sep 15, 2009 at 11:39:05AM +0100, Freminlins typed: > 2009/9/14 Chris Rees > > > > > Isn't this a bit drastic? Listening sockets are opened by very many > > types of processes, as well as remembering that sendmail, BIND, and > > others don't actually run as root... I suppose it'd be possible, but > > would it actually be useful? > > > > Sure, those open listening sockets. But those are things I want to listen. > > Now suppose a user account was hacked, and "Bob" sets up a web server > listening on some random port above 1024. If "Bob" couldn't use listen() he > wouldn't be able to do that. Haven't tried it, but you can probably set net.inet.ip.portrange.reservedhigh to 65535. That way only root can bind(2) to any port. Ruben From mel.flynn+fbsd.questions at mailing.thruhere.net Tue Sep 15 12:29:08 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Tue Sep 15 12:29:15 2009 Subject: libnsl.so.1 In-Reply-To: <20090914173958.C21417@cloud.ccsf.cc.ca.us> References: <20090914145447.K63280@cloud.ccsf.cc.ca.us> <200909150117.03050.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090914173958.C21417@cloud.ccsf.cc.ca.us> Message-ID: <200909151429.04818.mel.flynn+fbsd.questions@mailing.thruhere.net> On Tuesday 15 September 2009 02:43:32 Joe R. Jah wrote: > On Tue, 15 Sep 2009, Mel Flynn wrote: > > Date: Tue, 15 Sep 2009 01:17:02 +0200 > > From: Mel Flynn > > To: freebsd-questions@freebsd.org > > Cc: Joe R. Jah > > Subject: Re: libnsl.so.1 > > > > On Tuesday 15 September 2009 00:02:50 Joe R. Jah wrote: > > > Hello all, > > > > > > I want to install a dispather module from Day Communique software on > > > apache22. The binaray mod_dispatcher.so is provided by Day as a 64 bit > > > *NIX compatible module to place in apache22 module directory. The > > > mocule requires a shared library missing from system: > > > > > > --8<-- > > > # apachectl -t > > > httpd: Syntax error on line 827 of /usr/local/etc/apache22/httpd.conf: > > > Cannot load /usr/local/libexec/apache22/mod_dispatcher.so into server: > > > Shared object "libnsl.so.1" not found, required by "mod_dispatcher.so" > > > --8<-- > > > > > > Does anyone know where to download libnsl.so.1, or from what port it > > > can be installed? > > > > nsl=name service library. All of it's functions are in FreeBSD implement > > in libc. If this mod_dispatcher.so is indeed loadable by FreeBSD's > > linker, then you can provide a dummy libnsl.so.1, like so: > > > > $ cat <'EOF' >BSDmakefile > > SHLIB=nsl > > SHLIB_MAJOR=1 > > NO_MAN=yes > > SRCS=nsl.c > > > > .include > > EOF > > $ cat <'EOF' >nsl.c > > int nsl_dummy(void); > > > > int nsl_dummy(void) { return 0; } > > EOF > > > > $ make; sudo make LIBDIR=/usr/local/lib install > > > > The symbols it's looking for should be provided by libc, but if there's > > any undefined ones, this trickery gets a little dangerous and you're > > better off asking the developers for a native FreeBSD version. > > Thank you Mel. You were right about undefined ones; Here's what I get: > > --8<-- > apachectl -t > httpd: Syntax error on line 826 of /usr/local/etc/apache22/httpd.conf: > Cannot load /usr/local/libexec/apache22/mod_dispatcher.so into server: > /usr/local/libexec/apache22/mod_dispatcher.so: Undefined symbol "__strdup" > --8<-- > > Any more trickeries?;-) Sure, add #define __strdup strdup to nsl.c, however this road is not likely to end soon. It seems to be compiled for a linux system, at least for a SYSV system, while FreeBSD follows '4.4BSD'. -- Mel From mel.flynn+fbsd.questions at mailing.thruhere.net Tue Sep 15 12:34:43 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Tue Sep 15 12:34:50 2009 Subject: reporter on deadline seeks comment about reported security bug in FreeBSD In-Reply-To: <4AAF4927.3070203@frasunek.com> References: <4AAF4927.3070203@frasunek.com> Message-ID: <200909151434.41177.mel.flynn+fbsd.questions@mailing.thruhere.net> On Tuesday 15 September 2009 09:58:31 Przemyslaw Frasunek wrote: > Giorgos Keramidas wrote: > > Przemyslaw should email security-officer with any details he thinks are > > relevant. Then the security team will make sure to fix the bug for all > > affected releases of FreeBSD, release a patch with the fix, issue an > > advisory through the usual channels, and post the details online at our > > security information web pages at . > > I see that I received a lot of criticism after disclosing 6.4 > vulnerability. Please read some facts: FWIW, I think some people here read with their eyes closed and I'm wondering myself, why security@ did not at least respond with a "we're looking into it, please hold on, as we're busy with 8.0 release.". -- Mel From keramida at freebsd.org Tue Sep 15 13:54:22 2009 From: keramida at freebsd.org (Giorgos Keramidas) Date: Tue Sep 15 13:54:30 2009 Subject: reporter on deadline seeks comment about reported security bug in FreeBSD In-Reply-To: <4AAF4927.3070203@frasunek.com> (Przemyslaw Frasunek's message of "Tue, 15 Sep 2009 09:58:31 +0200") References: <4AAF4927.3070203@frasunek.com> Message-ID: <877hw0mhz0.fsf@kobe.laptop> On Tue, 15 Sep 2009 09:58:31 +0200, Przemyslaw Frasunek wrote: > Giorgos Keramidas wrote: >> Przemyslaw should email security-officer with any details he thinks are >> relevant. Then the security team will make sure to fix the bug for all >> affected releases of FreeBSD, release a patch with the fix, issue an >> advisory through the usual channels, and post the details online at our >> security information web pages at . > > I see that I received a lot of criticism after disclosing 6.4 vulnerability. > Please read some facts: > > I send few mails: on 29th Aug to security team, on 2nd Sep and 11th Sep directly > to security officer. None of them were responded. I haven't filled any PRs, > because it would disclose details of vulnerability to the public and allow > blackhats to exploit it. > > I won't publish anything more than video, before official security advisory. The > exploit is private to me and it won't be given to the "community". Hi Przemyslaw, What I wrote is not criticism for what you have or might have not done. I now know (after posting the initial message) that the security officer is preparing a fix and an advisory, so my response was more like ``this is the usual way of handling this sort of thing''. The wording was a bit careful to avoid implying that you didn't know or were not prepared to do what is appropriate :) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20090915/5d704d3f/attachment.pgp From mel.flynn+fbsd.questions at mailing.thruhere.net Tue Sep 15 14:17:14 2009 From: mel.flynn+fbsd.questions at mailing.thruhere.net (Mel Flynn) Date: Tue Sep 15 14:17:20 2009 Subject: Non-root user and accept() or listen() In-Reply-To: References: Message-ID: <200909151617.11720.mel.flynn+fbsd.questions@mailing.thruhere.net> On Monday 14 September 2009 18:47:18 Freminlins wrote: > Hi, > > I am not sure if this exists (but don't think so), so I am asking. > > Is there a sysctl type thing to disallow non-root users, or indeed any > specified user or group, from running a program with listen() ? > > What I am looking at is improving network security, such that if a user > account is compromised it can then not be used to run a dodgy web > server/whatever on a non-privileged port. Although I can firewall off any > port I wish, it seems like an obvious thing to disallow any user from > opening a listening socket in the first place. I am suggesting something > like "sysctl user.socket_listen" with enable or disable. > > Am I being really daft? Or does this exist already? See mac_portacl(4). -- Mel From bennett at cs.niu.edu Tue Sep 15 14:19:48 2009 From: bennett at cs.niu.edu (Scott Bennett) Date: Tue Sep 15 14:19:55 2009 Subject: building emulators/virtualbox-3.0.51r22902 fails in kBuild Message-ID: <200909151419.n8FEJIjH024023@mp.cs.niu.edu> Here's the last part of the output. kBuild: Compiling RuntimeR0Drv - /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime/r0drv/generic/RTMpIsCpuWorkPending-r0drv-generic.cpp kBuild: Compiling RuntimeR0Drv - /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime/r0drv/generic/mpnotification-r0drv-generic.cpp kBuild: Compiling RuntimeR0Drv - /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime/r0drv/freebsd/alloc-r0drv-freebsd.c kBuild: Compiling RuntimeR0Drv - /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime/r0drv/freebsd/assert-r0drv-freebsd.c In file included from /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime/r0drv/freebsd/the-freebsd-kernel.h:60In file included from /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime/r0drv/freebsd/the-freebsd-kernel.h:60, from /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime/r0drv/freebsd/assert-r0drv-freebsd.c:34: /sys/vm/vm.h:64:24: error: machine/vm.h: No such file or directory , from /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime/r0drv/freebsd/alloc-r0drv-freebsd.c:34: /sys/vm/vm.h:64:24: error: machine/vm.h: No such file or directory kmk[2]: *** [/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/obj/RuntimeR0Drv/r0drv/freebsd/alloc-r0drv-freebsd.o] Error 1 The failing command: @cc -c -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -Wpointer-arith -Winline -Wno-pointer-sign -Wstrict-prototypes -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs -O2 -fformat-extensions -ffreestanding -fno-strict-aliasing -fno-common -finline-limit=8000 -fno-stack-protector -O2 -mtune=generic -fno-omit-frame-pointer -nostdinc -std=c99 -m32 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -I/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/gen-sys-hdrs -I/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime -I/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime/include -I/sys -I/sys/contrib/altq -I/sys/../include -I/usr/include -I/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/include -I/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release -DVBOX -DVBOX_OSE -DVBOX_W! ITH_64_BITS_GUESTS -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/local/share/virtualbox\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/local/lib/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/local/lib/virtualbox\" -DRTPATH_APP_DOCS=\"/usr/local/share/doc/virtualbox\" -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_X86 -D__X86__ -D_KERNEL -DKLD_MODULE -DIN_RING0 -DIN_RT_R0 -DIN_RT_R0 -DRT_WITH_VBOX -DRT_WITHOUT_NOCRT_WRAPPERS -DRT_NO_EXPORT_SYMBOL -Wp,-MD,/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/obj/RuntimeR0Drv/r0drv/freebsd/alloc-r0drv-freebsd.o.dep -Wp,-MT,/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/obj/RuntimeR0Drv/r0drv/freebsd/alloc-r0drv-freebsd.o -Wp,-MP -o /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/obj/RuntimeR0Drv/r0drv/freebsd/alloc-r0drv-freebsd.o /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime/r0drv/freebsd/alloc-r0drv-freebsd.c kmk[2]: *** Waiting for unfinished jobs.... kmk[2]: *** [/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/obj/RuntimeR0Drv/r0drv/freebsd/assert-r0drv-freebsd.o] Error 1 The failing command: @cc -c -O2 -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -Wpointer-arith -Winline -Wno-pointer-sign -Wstrict-prototypes -Wmissing-prototypes -Wstrict-prototypes -Wnested-externs -O2 -fformat-extensions -ffreestanding -fno-strict-aliasing -fno-common -finline-limit=8000 -fno-stack-protector -O2 -mtune=generic -fno-omit-frame-pointer -nostdinc -std=c99 -m32 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -I/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/gen-sys-hdrs -I/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime -I/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime/include -I/sys -I/sys/contrib/altq -I/sys/../include -I/usr/include -I/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/include -I/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release -DVBOX -DVBOX_OSE -DVBOX_W! ITH_64_BITS_GUESTS -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/local/share/virtualbox\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/local/lib/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/local/lib/virtualbox\" -DRTPATH_APP_DOCS=\"/usr/local/share/doc/virtualbox\" -DRT_OS_FREEBSD -D__FREEBSD__ -DRT_ARCH_X86 -D__X86__ -D_KERNEL -DKLD_MODULE -DIN_RING0 -DIN_RT_R0 -DIN_RT_R0 -DRT_WITH_VBOX -DRT_WITHOUT_NOCRT_WRAPPERS -DRT_NO_EXPORT_SYMBOL -Wp,-MD,/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/obj/RuntimeR0Drv/r0drv/freebsd/assert-r0drv-freebsd.o.dep -Wp,-MT,/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/obj/RuntimeR0Drv/r0drv/freebsd/assert-r0drv-freebsd.o -Wp,-MP -o /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/out/freebsd.x86/release/obj/RuntimeR0Drv/r0drv/freebsd/assert-r0drv-freebsd.o /usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902/src/VBox/Runtime/r0drv/freebsd/assert-r0drv-freebs! d.c kmk[2]: Leaving directory `/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902' kmk[2]: Entering directory `/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902' kmk[2]: *** Exiting with status 2 kmk[1]: *** [pass_libraries_this] Error 2 kmk[1]: Leaving directory `/usr/ports/emulators/virtualbox/work/virtualbox-3.0.51r22902' kmk: *** [pass_libraries_order] Error 2 *** Error code 2 Stop in /usr/ports/emulators/virtualbox. ===>>> make failed for emulators/virtualbox ===>>> Aborting update 776.292u 85.168s 9:01.06 159.2% 5962+1451k 2687+1851io 235pf+0w hellas# exit exit Script done on Tue Sep 15 08:55:35 2009 The first lines of interest in /sys/vm/vm.h are: * $FreeBSD: src/sys/vm/vm.h,v 1.27.2.2 2009/09/04 19:59:32 jhb Exp $ */ #ifndef VM_H #define VM_H #include The error occurs because /usr/include/machine has no vm.h, although there is a vm86.h and a vmparam.h. I am uncertain as to what might be the best way to deal with this. I haven't rebooted in the last 25 days, so I'm sure I haven't done a "make buildworld && mergemaster -p && make installworld && mergemaster && reboot" during that time. Would doing that result in an update to /usr/include/machine to add a vm.h file? Thanks in advance for any help. Scott Bennett, Comm. ASMELG, CFIAG ********************************************************************** * Internet: bennett at cs.niu.edu * *--------------------------------------------------------------------* * "A well regulated and disciplined militia, is at all times a good * * objection to the introduction of that bane of all free governments * * -- a standing army." * * -- Gov. John Hancock, New York Journal, 28 January 1790 * ********************************************************************** From gesbbb at yahoo.com Tue Sep 15 14:49:14 2009 From: gesbbb at yahoo.com (Jerry) Date: Tue Sep 15 14:49:23 2009 Subject: reporter on deadline seeks comment about reported security bug in FreeBSD In-Reply-To: <20090915071826.a273c4fa.wmoran@potentialtech.com> References: <4AAE95B2.5050409@sitpub.com> <20090914214642.GA12828@Grumpy.DynDNS.org> <200909150122.43566.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090915071826.a273c4fa.wmoran@potentialtech.com> Message-ID: <20090915104912.1cac505a@scorpio.seibercom.net> On Tue, 15 Sep 2009 07:18:26 -0400 Bill Moran wrote: > Mel Flynn wrote: > > > > On Monday 14 September 2009 23:46:42 David Kelly wrote: > > > On Mon, Sep 14, 2009 at 05:13:54PM -0400, illoai@gmail.com wrote: > > > > Am 2009/9/14 Dan Goodin writhed: > > > > > Hello, > > > > > > > > > > Dan Goodin, a reporter at technology news website The > > > > > Register. Security researcher Przemyslaw Frasunek says > > > > > versions 6.x through 6.4 of FreeBSD has a security bug. He > > > > > says he notified the FreeBSD Foundation on August 29 and > > > > > never got a response. We'll be writing a brief article about > > > > > this. Please let me know ASAP if someone cares to comment. > > > > > > > > Has anyone submitted a PR about this? > > > > > > Przemyslaw Frasunek has PR's posted but none recent. IMO if a PR > > > is not submitted then one has *not* informed the Powers That Be. > > > > Wrong. Security bugs should be reported to the security team, not > > PR'd. > > It's typical for security issues to be kept hushed until a fix is > ready. As a result, there are usually no PRs, and in the case where > the person who discovered the problem is amenable, there is no public > discussion at all until a fix is available. > > Apparently, Mr. Frasunek started out down that path, which is > admirable. It seems as if he doesn't have much patience, however, > since he thinks that only 2 weeks is enough time to fix a security > problem and QA the fix. I usually discover security problems with updates I receive from . Aren't FreeBSD security problems reported to their site? If not, why? IMHO, keeping users in the dark to known security problems is not a serviceable protocol. -- Jerry gesbbb@yahoo.com If there is a possibility of several things going wrong, the one that will cause the most damage will be the one to go wrong. From lane at joeandlane.com Tue Sep 15 15:11:28 2009 From: lane at joeandlane.com (Lane Holcombe) Date: Tue Sep 15 15:11:36 2009 Subject: reporter on deadline seeks comment about reported security bug in FreeBSD In-Reply-To: <20090915104912.1cac505a@scorpio.seibercom.net> References: <4AAE95B2.5050409@sitpub.com> <20090914214642.GA12828@Grumpy.DynDNS.org> <200909150122.43566.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090915071826.a273c4fa.wmoran@potentialtech.com> <20090915104912.1cac505a@scorpio.seibercom.net> Message-ID: <1253027500.18746.36.camel@lholcombe-desktop> On Tue, 2009-09-15 at 10:49 -0400, Jerry wrote: > On Tue, 15 Sep 2009 07:18:26 -0400 > Bill Moran wrote: > > > Mel Flynn wrote: > > > > > > On Monday 14 September 2009 23:46:42 David Kelly wrote: > > > > On Mon, Sep 14, 2009 at 05:13:54PM -0400, illoai@gmail.com wrote: > snip > I usually discover security problems with updates I receive from > . Aren't FreeBSD security problems reported to > their site? If not, why? IMHO, keeping users in the dark to known > security problems is not a serviceable protocol. Jerry, point your aggregator to http://www.freebsd.org/security/advisories.rdf There have only been 12 security advisories put out this year, as far as I can tell. Nothing about this one, though. lane From wmoran at potentialtech.com Tue Sep 15 15:13:33 2009 From: wmoran at potentialtech.com (Bill Moran) Date: Tue Sep 15 15:13:41 2009 Subject: reporter on deadline seeks comment about reported security bug in FreeBSD In-Reply-To: <20090915104912.1cac505a@scorpio.seibercom.net> References: <4AAE95B2.5050409@sitpub.com> <20090914214642.GA12828@Grumpy.DynDNS.org> <200909150122.43566.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090915071826.a273c4fa.wmoran@potentialtech.com> <20090915104912.1cac505a@scorpio.seibercom.net> Message-ID: <20090915111331.4fdfa964.wmoran@potentialtech.com> In res