Re: Hardware compatible : Marble_Mouse/TrackMan Wheel from Logitech
On Mon, Oct 08, 2007 at 08:51:16AM +0800, williamkow wrote: Tahnk you for your reply, may I ask if I to purchase TrackMan Wheel Mouse (Logitech), does it also work and compatible in FreeBSD? Please advise, Thank you. [1]http://www.logitech.com/index.cfm/mice_pointers/trackballs/devices/ 166cl=my,en I think it will. I haven't tried it since I'm left-handed. :-) 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) pgpamJY1z8kGC.pgp Description: PGP signature
Re: Hardware compatible : Marble_Mouse/TrackMan Wheel from Logitech
Hi, I used the Trackman with earlier versions and I did not have any problems. I do not use it with the current version. Erich Roland Smith wrote: On Mon, Oct 08, 2007 at 08:51:16AM +0800, williamkow wrote: Tahnk you for your reply, may I ask if I to purchase TrackMan Wheel Mouse (Logitech), does it also work and compatible in FreeBSD? Please advise, Thank you. [1]http://www.logitech.com/index.cfm/mice_pointers/trackballs/devices/ 166cl=my,en I think it will. I haven't tried it since I'm left-handed. :-) Roland ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: NTFS-3G mount during boot
Well, I gave up using /etc/fstab to mount NTFS partitions at boot time a couple of months ago when I realized that it's not the correct way to do it (so I also wrote an rc.d script to do the job, but I'll talk about it later). However, I recently looked at fusefs-ntfs source files, and as you can see from http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/fusefs-ntfs/Makefile in revision 1.19, there are changes (installing a symlink) to allow using /etc/fstab to mount NTFS partitions at boot. So I thought that maybe now it's okay to use /etc/fstab. Anyway, if it's still not possible to use /etc/fstab, then what does that sentence mean in the revision 1.19 of fusefs-ntfs Makefile (again, see the URL above)? The only way I can see that working is if /usr/local/modules in kern.modules_path /before/ mount -a is executed by /etc/rc.d/mount. Which means there should be a line: kern.module_path=/boot/kernel;/boot/modules;/usr/local/modules in /etc/sysctl.conf on your machine. Also, mount_ntfs-3g should be able to load the module dynamically. My /etc/sysctl.conf is basically empty; it's all the usual default comments. Nothing is specified there. Another question is why, even after loading the kernel module (see the 'dmesg -a' output below), it is not possible to mount the NTFS partition? -- [EMAIL PROTECTED] ~]$ dmesg -a ... Starting fusefs. fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8 ... Mounting late file systems: fuse: failed to exec mount program: No such file or directory -- What does ls -l /sbin/mount_ntfs-3g say? There is no /sbin/mount_ntfs-3g. But /usr/sbin/mount_ntfs-3g exists and is a symlink to /usr/local/bin/ntfs-3g. I'm not sure whether it's relevant to your question, but I had made /sbin/mount_ntfs-3g a symlink to /usr/local/bin/ntfs-3g myself, and that also was not working (but I had tired it with the previous version of ntfs-3g not the one currently installed). This output from /var/log/messages is also interesting, showing that ntfs-3g has indeed been run and that it has mounted my Windows partition (but I don't see it mounted)! -- [EMAIL PROTECTED] ~]$ cat /var/log/messages ... Oct 6 14:22:40 pasargadae kernel: Trying to mount root from ufs:/dev/ad0s2a Oct 6 14:22:45 pasargadae kernel: fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8 Oct 6 14:22:45 pasargadae ntfs-3g[811]: Version 1.913 Oct 6 14:22:45 pasargadae ntfs-3g[811]: Mounted /dev/ad0s1 (Read-Write, label , NTFS 3.0) Oct 6 14:22:45 pasargadae ntfs-3g[811]: Cmdline options: (null) Oct 6 14:22:45 pasargadae ntfs-3g[811]: Mount options: noatime,silent,allow_other ,fsname=/dev/ad0s1 ... -- And I didn't know about the /boot/modules way. Could you please ellaborate more? Is it a different way to load kernel modules than using /boot/loader.conf? When should one use that? And now, about coming back to using an rc.d script...After failing to use /etc/fstab, I wrote this script to mount the partition at boot time. However, this also does not work! -- #!/bin/sh # # PROVIDE: ntfsmount # REQUIRE: fusefs # . /etc/rc.subr name=ntfsmount rcvar=${name}_enable command=/usr/sbin/mount_ntfs-3g command_args=/dev/ad0s1 /mnt/windows -o locale=en_US.UTF-8 Does /mnt/windows exist? Anything interesting with `sh -x /usr/local/etc/rc.d/ntfsmount' ? Yes, /mnt/windows exists. Nothing interesting as far as I could understand the output of 'sh -x /usr/local/etc/rc.d/ntfsmount'. What specifically do I have to look for? If I find some more time, I'll play around with it. -- Mel Thanks a lot :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: NTFS-3G mount during boot
On 10/7/07, Craig Butler [EMAIL PROTECTED] wrote: Novembre wrote: On 10/7/07, Mel [EMAIL PROTECTED] wrote: On Sunday 07 October 2007 10:00:35 Novembre wrote: On 10/7/07, Doug Barton [EMAIL PROTECTED] wrote: On Sun, 7 Oct 2007, Novembre wrote: The first error above is because the fuse kernel module is not yet loaded. Well isn't it sort of pointless to proceed until you get the kernel module loaded at boot time and then see what happens next? Oh, the kernel module IS loaded as shown in 'dmesg -a' and in /var/log/messages. However, it can't be loaded unless / and /usr file systems are mounted. Filesystems that need modules from anywhere else then the root partition cannot be loaded from /etc/fstab. Either make fusefs-kmod install in /boot/modules (echo 'KMOD_DIR=/boot/modules' /usr/ports/sysutils/fusefs-kmod/Makefile.local) or mount the filesystem using an rc(8) script in /usr/local/etc/rc.d/. In the end you do not really care whether it's mounted 20 seconds or 1 second before login prompt is available. -- Mel Well, I gave up using /etc/fstab to mount NTFS partitions at boot time a couple of months ago when I realized that it's not the correct way to do it (so I also wrote an rc.d script to do the job, but I'll talk about it later). However, I recently looked at fusefs-ntfs source files, and as you can see from http://www.freebsd.org/cgi/cvsweb.cgi/ports/sysutils/fusefs-ntfs/Makefile in revision 1.19, there are changes (installing a symlink) to allow using /etc/fstab to mount NTFS partitions at boot. So I thought that maybe now it's okay to use /etc/fstab. Anyway, if it's still not possible to use /etc/fstab, then what does that sentence mean in the revision 1.19 of fusefs-ntfs Makefile (again, see the URL above)? Another question is why, even after loading the kernel module (see the 'dmesg -a' output below), it is not possible to mount the NTFS partition? -- [EMAIL PROTECTED] ~]$ dmesg -a ... Starting fusefs. fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8 ... Mounting late file systems: fuse: failed to exec mount program: No such file or directory -- This output from /var/log/messages is also interesting, showing that ntfs-3g has indeed been run and that it has mounted my Windows partition (but I don't see it mounted)! -- [EMAIL PROTECTED] ~]$ cat /var/log/messages ... Oct 6 14:22:40 pasargadae kernel: Trying to mount root from ufs:/dev/ad0s2a Oct 6 14:22:45 pasargadae kernel: fuse4bsd: version 0.3.9-pre1, FUSE ABI 7.8 Oct 6 14:22:45 pasargadae ntfs-3g[811]: Version 1.913 Oct 6 14:22:45 pasargadae ntfs-3g[811]: Mounted /dev/ad0s1 (Read-Write, label , NTFS 3.0) Oct 6 14:22:45 pasargadae ntfs-3g[811]: Cmdline options: (null) Oct 6 14:22:45 pasargadae ntfs-3g[811]: Mount options: noatime,silent,allow_other ,fsname=/dev/ad0s1 ... -- And I didn't know about the /boot/modules way. Could you please ellaborate more? Is it a different way to load kernel modules than using /boot/loader.conf? When should one use that? And now, about coming back to using an rc.d script...After failing to use /etc/fstab, I wrote this script to mount the partition at boot time. However, this also does not work! -- #!/bin/sh # # PROVIDE: ntfsmount # REQUIRE: fusefs # . /etc/rc.subr name=ntfsmount rcvar=${name}_enable command=/usr/sbin/mount_ntfs-3g command_args=/dev/ad0s1 /mnt/windows -o locale=en_US.UTF-8 load_rc_config $name : ${ntfsmount_enable=NO} run_rc_command $1 -- I have made this script executable and have put ' ntfsmount_enable=YES ' in my /etc/rc.conf. So basically, I'm out of ideas now, and I need the experts' help in this case. I think this problem is way above my current knowledge of FreeBSD. Thanks for your help :) ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to [EMAIL PROTECTED] Wow thats a lot of work. one liner in /etc/rc.local /usr/sbin/mount_ntfs-3g /dev/ad0s1 /mnt/windows -o locale=en_US.UTF-8 Job Done :p This email has been handled by lerwick.hopto.org mail server and has been scanned by 3 virus killers and spamassassin Are you sure it's going to work? My rc.d script is doing just that and it's not working. Are you using it yourself to mount any NTFS partition at boot time? Thanks :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: what kind of UPS will work best?
On Sunday 07 October 2007, Gary Kline wrote: First, thank to both you and Bart for your cmments. You were *right* about the price. Can I assume that a ballpark would be 400W for each server? (My wife is right: I've got to cut back to three computers:-) I've found one APC 2200VA with a 17minute uptime. 3 times 400W, yes? I think this is overkill. Some time ago I was wondering the same thing and to verify my guess on the overall power usage of my servers I bought a VA/Watts meter (EUR. 39,-). Turns out average wattage is about 90watts per server idle and max 130watts under load. On powerup they will use a max. of 180watts for less than a second. The servers are simple dual cores with about 2 harddisks each. (no screens or other devices attached) Also, the powerfactor was ~0,95 so that means that for every Watt of apparent power (VA) almost a Watt of real power was used. Thus, for my servers I would need something like a 500Watt/600VA UPS. So my advice is: don't guess but measure. Cheers, Pieter de Goeje ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
zero copy tcp send
i found sendfile(2) doing this. but the question - does normal write(2) doing this when sending from user process memory, not file? does memory have to be aligned special way,like to page boundary? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
controleur RAID LSI 3041 ER 4SAS
Bonjour Ce contrôleur est-il supporté par FREE BSD Merci de votre retour urgent Cdt Maryline ELISSONDE-GUINOT Ingénieur Commerciale GROSSISTES-IT STORES-GMS-EXPORT MAXDATA SARL Z.A. de la Croix aux Bergers 7 Avenue du Général de Gaulle - Bâtiment 4 91090 Lisses France Phone+33 (0)1-6911-3796 Fax +33 (0)1-6911-3911 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://fr.maxdata.com http://fr.maxdata.com/ | http://www.belinea.com http://www.belinea.com/ http://fr.maxdata.com/services/fm/index.jsp http://fr.maxdata.com/services/fm/index.jsp ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: controleur RAID LSI 3041 ER 4SAS
On Mon, 8 Oct 2007, Elissonde, Maryline (FR) wrote: Bonjour Ce contrôleur est-il supporté par FREE BSD z tego co widze to nie. Merci de votre retour urgent Cdt Maryline ELISSONDE-GUINOT Ingénieur Commerciale GROSSISTES-IT STORES-GMS-EXPORT MAXDATA SARL Z.A. de la Croix aux Bergers 7 Avenue du Général de Gaulle - Bâtiment 4 91090 Lisses France Phone+33 (0)1-6911-3796 Fax +33 (0)1-6911-3911 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://fr.maxdata.com http://fr.maxdata.com/| http://www.belinea.com http://www.belinea.com/ http://fr.maxdata.com/services/fm/index.jsp http://fr.maxdata.com/services/fm/index.jsp ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: best spam filter port(s) for postfix?
Karl Vogel wrote: On Sun, 30 Sep 2007 23:03:06 +0200, Roland Smith [EMAIL PROTECTED] said: R On Sun, Sep 30, 2007 at 03:20:58PM -0500, Joe in MPLS wrote: J I'm running 6.2-STABLE with postfix with cyrus-sasl, imap-uw horde for J mail. I'd like to stop depending on clients(Thunderbird PDAs) for J primary spam control (especially because our PDAs don't do any). AV J scanning would be a plus too. R I've been using bogofilter for some years now, and it works very well once R you've trained it properly. I started collecting spam a few years ago, and I use a Bayesian filter called ifile to handle junk. I trained it using just over 117,000 crapmail messages, and I don't get a lot of spam these days... http://www.dnaco.net/~vogelke/Software/Internet/Servers/Mail/Spam/Ifile/ I highly recommend ASSP. It's by far the best spam filter I've ever used and my clients are constantly raving about it's effectiveness. It's also extremely easy to configure and maintain. Check it out at http://assp.sourceforge.net/ . Regards, Elvar ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
freezing, hard locking, and debug.mpsafenet=0
Hi there, I'm sharing my experiences with this in the hopes that it saves someone else many many hours of troubleshooting and headaches. A client of mine has a Dell Poweredge tower server with FreeBSD 6-stable on it which was acting as their firewall. At some point in time about 6 months ago the box started locking up every day or couple of days. I imagine this was probably after a buildworld / installworld but I can't remember. It would hard lock with nothing logged or any sign of anything, and no response from the keyboard. In my experiences this usually resulted in bad memory but after swapping out the memory for new memory the issue still persisted. As time went on I eventually pulled the hard drives out of the server and put them into another server with completely different hardware (minus the transfered hard drives). After bringing the install up on the other server I still had the hard locks. I googled like mad and tried all sorts of things to narrow down the problem but kept coming up with nothing. Now, I admit I'm not an elite user so I'm sure lots of you could probably have figured it out quicker. Eventually I put new hard drives into the original firewall (the Dell Poweredge) and did a clean install of FreeBSD 6.2-RELEASE. Unfortunately after bringing the box online as the firewall again it continued locking up. I then updated to -STABLE and still experienced the issue. Finally, after even more countless hours of googling I found this thread http://www.freebsdforums.com/forums/showthread.php?t=38765page=1pp=1 http://www.freebsdforums.com/forums/showthread.php?t=38765page=1pp=1 which seemed to describe the same freezing I was having. One person mentioned setting debug.mpsafenet=0 in /boot/loader.conf and not having a problem since doing so. Well, I ended up doing the same thing and it's been about 25 days with not one freeze / lockup. It's my understanding that the ability to even disable this has been taken out of 7.x, I only can hope that it's not an issue in 7.x like it is on some systems in 6.x. So anyway, I hope this helps someone out. Kind regards, Elvar ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: /var/log/messages filling up with DHCPDISCOVER messages
Stephen Allen wrote: /usr/local/etc/dhcpd.conf is configured with log-facility local7; and /etc/syslog.conf is also configured with local7.* /var/log/dhcpd.log However, /var/log/messages is filling up with DHCPDISCOVER / no free leases messages for those clients that are unknown to the DHCP server (eg. on a different subnet). I suspect that these messages are being caught by *.notice which is why they end up in /var/log/messages. Is there a way to prevent this happening? You could try filtering them out of syslog like so (in your syslogd.conf): local7.!=notice /var/log/dhcpd.log Which should log everything for local7 except notice. See man syslog.conf(5) Cheers, Jeff Royle lists dot qwirky dot net ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: help: the Input problem
On Mon, Oct 08, 2007 at 10:23:01AM +0800, ronggui wrote: I use scim as my input. When I use bash as my login shell, I add these lines to ~/.profile export LANG=zh_CN.eucCN export LC_ALL=zh_CN.eucCN export G_BROKEN_FILENAMES=1 export G_FILENAME_ENCODING=GBK export XMODIFIERS='@im=SCIM' scim -d All is fine. But I would like to use tcsh as my login shell, and try to add the followings to ~/.login_conf me:\ :lang=zh_CN.eucCN:\ :charset=gbk:\ :setenv=LC_ALL=zh_CN.eucCN:\ :setenv=LC_COLLATE=zh_CN.eucCN:\ :setenv=LC_CTYPE=zh_CN.eucCN:\ :setenv=LC_MESSAGES=zh_CN.eucCN:\ :setenv=LC_MONETARY=zh_CN.eucCN:\ :setenv=LC_NUMERIC=zh_CN.eucCN:\ :setenv=LC_TIME=zh_CN.eucCN:\ :setenv=G_BROKEN_FILENAMES=1:\ :setenv=G_FILENAME_ENCODING=GBK:\ :setenv=XMODIFIERS=@im=SCIM: and add scim -d to the ~/.xsession. I can't toggle on the scim. PS: I login in with kdm. What should I do to use tcsh as my login shell? Change the last field in your /etc/passwd entry to '/bin/tcsh' and make sure /bin/tcsh is listed in /etc/shells You can then put whatever you want to set for your account in your /home_directory_path/.cshrc file jerry Thanks -- Ronggui Huang Department of Sociology, Fudan University, Shanghai, China Department of Public and Social Administration, CityU, HK ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: wyswyg editors for tex (was re: replacement for open office)
Le 07/10/2007 à 19:18:04-0700, Christopher Cowart a écrit On Mon, Oct 08, 2007 at 02:10:56AM +, Aryeh Friedman wrote: I finally got around to compiling abiword and I get the following when I try to run it: abiword Segmentation fault (core dumped) uname -a FreeBSD monsert 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Sun Oct 7 20:47:51 UTC 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MONSTER amd64 I don't want to bother with attempting to figure out why it broke. My question is since it looks like I am stuck with Tex is there any wyswyg editors for it? I've heard good things about kile (editors/kile), but have never used it on FreeBSD. It's also from the KDE folks, so you might be waiting a long time for all libraries to compile. Kile is not a wyswyg for TeX editors. Kile is a application to allow you make TeX more easly thant vi file.tex but you always enter directly tex commands. IMHO TeX is not so hard to learn. TeX/LaTeX become very hard when you want do something very fine. And in that case it's simple the other software (like OpenOffice/Word/etc.) just can do that. For me TeX is the best for formating some documents. All my documents is in TeX (well in fact in LaTeX) or in ... ascii. Regards. -- Albert SHIH Observatoire de Paris Meudon SIO batiment 15 Heure local/Local time: Lun 8 oct 2007 17:27:56 CEST ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Update on data corruption with Tyan/3Ware
Following up so that the archives will have the resolution: Bad RAM. Turns out that there were about 20 bytes in the third GB of the four in the system that would spit out garbage data when read back. Thanks to everyone on the list and 3Ware support for their suggestions. --Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: what kind of UPS will work best?
On Mon, Oct 08, 2007 at 02:36:05AM +0200, Pieter de Goeje wrote: On Sunday 07 October 2007, Gary Kline wrote: First, thank to both you and Bart for your cmments. You were *right* about the price. Can I assume that a ballpark would be 400W for each server? (My wife is right: I've got to cut back to three computers:-) I've found one APC 2200VA with a 17minute uptime. 3 times 400W, yes? I think this is overkill. Some time ago I was wondering the same thing and to verify my guess on the overall power usage of my servers I bought a VA/Watts meter (EUR. 39,-). Turns out average wattage is about 90watts per server idle and max 130watts under load. On powerup they will use a max. of 180watts for less than a second. The servers are simple dual cores with about 2 harddisks each. (no screens or other devices attached) Also, the powerfactor was ~0,95 so that means that for every Watt of apparent power (VA) almost a Watt of real power was used. Thus, for my servers I would need something like a 500Watt/600VA UPS. So my advice is: don't guess but measure. Thanks a lot. I was thinking of doing something like this; maybe an ammeter to see how much power each server draws; then (possiibly add a bit for reserve). I'm looking at this as a long-time project. Not rushing to do something completely foolish. So the more accuracy, the better! gary Cheers, Pieter de Goeje ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: zero copy tcp send
Wojciech Puchar wrote: i found sendfile(2) doing this. but the question - does normal write(2) doing this when sending from user process memory, not file? does memory have to be aligned special way,like to page boundary? Yes - see zero_copy(9) -- Bruce ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: freezing, hard locking, and debug.mpsafenet=0
Elvar wrote: Hi there, snip http://www.freebsdforums.com/forums/showthread.php?t=38765page=1pp=1 http://www.freebsdforums.com/forums/showthread.php?t=38765page=1pp=1 which seemed to describe the same freezing I was having. One person mentioned setting debug.mpsafenet=0 in /boot/loader.conf and not having a problem since doing so. Well, I ended up doing the same thing and it's been about 25 days with not one freeze / lockup. It's my understanding that the ability to even disable this has been taken out of 7.x, I only can hope that it's not an issue in 7.x like it is on some systems in 6.x. So anyway, I hope this helps someone out. Hi, What hardware is this? Sounds very similar to something I've seen too, if it's the samt issue I can confirm it is happening in -CURRENT also. Could someone familiar with -CURRENT perhaps explain why this option (debug.mpsafenet=0) is gone? Per olof ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: hard drive testing...
Gary Kline wrote: Last question for today. Well, hopefullly. Is bonnie++ the only meeans of testing a hard drive? I thought thre was something you had to put on a floppy to be able to test more thoroughly. This had been awhile ago... maybe ~5 years. thanks, people, gary All recent drives support SMART - to test a drive you can install sysutils/smartmontools and use smartctl to run a test e.g smartctl -t long /dev/ad0 There are various different tests you can run, including surface tests, online and offline etc. -- Bruce ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: what kind of UPS will work best?
Pieter de Goeje wrote: verify my guess on the overall power usage of my servers I bought a VA/Watts meter (EUR. 39,-). Turns out average wattage is about 90watts per server idle and max 130watts under load. On powerup they will use a max. of 180watts for I've got one of these: http://www.newegg.com/Product/Product.aspx?Item=N82E16882715001 Works nicely for measuring cumulative power usage. APC's web site also has a selector with very model-specific power consumption figures: http://www.apc.com/tools/ups_selector/index.cfm -Rob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: freezing, hard locking, and debug.mpsafenet=0
On Mon, 2007-10-08 at 19:43 +0200, Per olof Ljungmark wrote: Elvar wrote: Hi there, snip http://www.freebsdforums.com/forums/showthread.php?t=38765page=1pp=1 http://www.freebsdforums.com/forums/showthread.php?t=38765page=1pp=1 which seemed to describe the same freezing I was having. One person mentioned setting debug.mpsafenet=0 in /boot/loader.conf and not having a problem since doing so. Well, I ended up doing the same thing and it's been about 25 days with not one freeze / lockup. It's my understanding that the ability to even disable this has been taken out of 7.x, I only can hope that it's not an issue in 7.x like it is on some systems in 6.x. So anyway, I hope this helps someone out. Hi, What hardware is this? Sounds very similar to something I've seen too, if it's the samt issue I can confirm it is happening in -CURRENT also. Could someone familiar with -CURRENT perhaps explain why this option (debug.mpsafenet=0) is gone? Per olof This might be the answer: http://lists.freebsd.org/pipermail/freebsd-current/2007-July/075180.html -- Yuri Pankov [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: freezing, hard locking, and debug.mpsafenet=0
Per olof Ljungmark wrote: Elvar wrote: Hi there, snip http://www.freebsdforums.com/forums/showthread.php?t=38765page=1pp=1 http://www.freebsdforums.com/forums/showthread.php?t=38765page=1pp=1 which seemed to describe the same freezing I was having. One person mentioned setting debug.mpsafenet=0 in /boot/loader.conf and not having a problem since doing so. Well, I ended up doing the same thing and it's been about 25 days with not one freeze / lockup. It's my understanding that the ability to even disable this has been taken out of 7.x, I only can hope that it's not an issue in 7.x like it is on some systems in 6.x. So anyway, I hope this helps someone out. Hi, What hardware is this? Sounds very similar to something I've seen too, if it's the samt issue I can confirm it is happening in -CURRENT also. Could someone familiar with -CURRENT perhaps explain why this option (debug.mpsafenet=0) is gone? Because it was an obsolete option that was complicating the code and holding back further development. If you are seeing bugs, you need to follow through with obtaining the necessary debugging (see the developers handbook), then submit a PR. Note that if you don't do this then you cannot reasonably expect anyone to fix your problems. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Jails and freebsd-update
On Sun, 07 Oct 2007 18:13:34 -0400 Vinny wrote: I'm setting up a server for mail and web. I want to put each in their own jail on a host system. I have installed 6.2-Release on the host and successfully used freebsd-update to grab up to -p8. So far so good. Now, I was going to install the jails using the standard way (man jail): JAIL=/path/to/jail cd /usr/src mkdir -p $JAIL make world DESTDIR=$JAIL make distribution DESTDIR=$JAIL and so forth. But then it occurred to me that freebsd-update says it only works on installations that haven't been built from source. My question then is how can I use freebsd-update with jails? Thanks for any help. Seems that you are looking for sysutils/ezjail. WBR -- bsam ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
amd64_set_gsbase()
Hi, I have a small amd64 program that makes havy use of LDT (%GS to be more specific). The trouble is, in a multithreaded environment, the selector value gets lost (or reset?). The code *always* segfaults with this stack: 4 LWP 100126 0x000800dec07c in select () from /lib/libc.so.6 * 3 Thread 0x517000 (runnable) 0x00080055cfbc in ?? () 2 Thread 0x517400 (LWP 100125) 0x000800c0d85c in pthread_testcancel () from /lib/libpthread.so.2 1 Thread 0x517800 (runnable) 0x000800d5d000 in makecontext () from /lib/libc.so.6 at this instruction: 0x00080055cfbc: mov%gs:0x10,%r11 (gdb) p $gs $1 = 0 I've been reading on the net something about the kernel not preserving the GS across syscalls (or stmh). Is this true? and if so, is there a known workaround? I'm on a FreeBSD 6.2-STABLE-200706 (AMD64) machine. Thanks, -- Mihai Donțu ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: freezing, hard locking, and debug.mpsafenet=0
Kris Kennaway wrote: Per olof Ljungmark wrote: Elvar wrote: Hi there, snip snip Could someone familiar with -CURRENT perhaps explain why this option (debug.mpsafenet=0) is gone? Because it was an obsolete option that was complicating the code and holding back further development. If you are seeing bugs, you need to follow through with obtaining the necessary debugging (see the developers handbook), then submit a PR. Note that if you don't do this then you cannot reasonably expect anyone to fix your problems. Kris, if a system locks up completely (does not take any input, no dumps, just stop) is there anything one can do in terms of debugging? I would post more information if I knew how to get it. Per olof ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: freezing, hard locking, and debug.mpsafenet=0
Per olof Ljungmark wrote: Kris Kennaway wrote: Per olof Ljungmark wrote: Elvar wrote: Hi there, snip snip Could someone familiar with -CURRENT perhaps explain why this option (debug.mpsafenet=0) is gone? Because it was an obsolete option that was complicating the code and holding back further development. If you are seeing bugs, you need to follow through with obtaining the necessary debugging (see the developers handbook), then submit a PR. Note that if you don't do this then you cannot reasonably expect anyone to fix your problems. Kris, if a system locks up completely (does not take any input, no dumps, just stop) is there anything one can do in terms of debugging? I would post more information if I knew how to get it. Of course, and it's documented in the above place. Did you read it yet? Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: amd64_set_gsbase()
On Monday 08 October 2007 02:35 pm, Mihai Donțu wrote: Hi, I have a small amd64 program that makes havy use of LDT (%GS to be more specific). The trouble is, in a multithreaded environment, the selector value gets lost (or reset?). The code *always* segfaults with this stack: 4 LWP 100126 0x000800dec07c in select () from /lib/libc.so.6 * 3 Thread 0x517000 (runnable) 0x00080055cfbc in ?? () 2 Thread 0x517400 (LWP 100125) 0x000800c0d85c in pthread_testcancel () from /lib/libpthread.so.2 1 Thread 0x517800 (runnable) 0x000800d5d000 in makecontext () from /lib/libc.so.6 at this instruction: 0x00080055cfbc: mov%gs:0x10,%r11 (gdb) p $gs $1 = 0 I've been reading on the net something about the kernel not preserving the GS across syscalls (or stmh). Is this true? and if so, is there a known workaround? I'm on a FreeBSD 6.2-STABLE-200706 (AMD64) machine. Yes, you are correct. A short version is don't do that. A long version goes like this. %fs and %gs are not preserved while context switching on amd64. In fact, you should not use amd64_set_gsbase() directly. If you *really* have to mess up with base addresses, you have to use sysarch(2) syscall, i.e., sysarch(AMD64_SET_GSBASE, args). However, it only changes the base address via MSR, i.e., %gs itself has no meaning. Jung-uk Kim ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: freezing, hard locking, and debug.mpsafenet=0
Kris Kennaway wrote: Per olof Ljungmark wrote: Kris Kennaway wrote: Per olof Ljungmark wrote: Elvar wrote: Hi there, snip snip Could someone familiar with -CURRENT perhaps explain why this option (debug.mpsafenet=0) is gone? Because it was an obsolete option that was complicating the code and holding back further development. If you are seeing bugs, you need to follow through with obtaining the necessary debugging (see the developers handbook), then submit a PR. Note that if you don't do this then you cannot reasonably expect anyone to fix your problems. Kris, if a system locks up completely (does not take any input, no dumps, just stop) is there anything one can do in terms of debugging? I would post more information if I knew how to get it. Of course, and it's documented in the above place. Did you read it yet? I've used that information on other occasions but then at least the keyboard was functional. Not sure how to interpret what is says in a proper fashion, I could guess of course: What I see is termed a deadlock? I'll definitely try that one on this little bugger then. Thanks, ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: freezing, hard locking, and debug.mpsafenet=0
Per olof Ljungmark wrote: Kris Kennaway wrote: Per olof Ljungmark wrote: Kris Kennaway wrote: Per olof Ljungmark wrote: Elvar wrote: Hi there, snip snip Could someone familiar with -CURRENT perhaps explain why this option (debug.mpsafenet=0) is gone? Because it was an obsolete option that was complicating the code and holding back further development. If you are seeing bugs, you need to follow through with obtaining the necessary debugging (see the developers handbook), then submit a PR. Note that if you don't do this then you cannot reasonably expect anyone to fix your problems. Kris, if a system locks up completely (does not take any input, no dumps, just stop) is there anything one can do in terms of debugging? I would post more information if I knew how to get it. Of course, and it's documented in the above place. Did you read it yet? I've used that information on other occasions but then at least the keyboard was functional. Not sure how to interpret what is says in a proper fashion, I could guess of course: What I see is termed a deadlock? I'll definitely try that one on this little bugger then. Yes. Break to DDB, then proceed. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
software to cut mp3 files?
Hello, Sorry for an unusual request - does anyone know of software that is able to split an mp3 file into multiple chunks at specified locations (doesn't have to have gui, actually best if it didn't), one that works under FreeBSD? I have files with a few songs in them and I would like to cut them into separate files. Never been there nor done that. All advice greatly appreciated. Thank you very much! Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: software to cut mp3 files?
On Mon, 8 Oct 2007 at 22:49 +0200, [EMAIL PROTECTED] confabulated: Hello, Sorry for an unusual request - does anyone know of software that is able to split an mp3 file into multiple chunks at specified locations (doesn't have to have gui, actually best if it didn't), one that works under FreeBSD? I have files with a few songs in them and I would like to cut them into separate files. Never been there nor done that. All advice greatly appreciated. I don't know of any non-gui. However, I've been using Audacity (/usr/ports/audio/audacity) doing just what you are looking to do. The /usr/ports/audio/audacity port is a little dated as the latest stable version at http://audacity.sourceforge.net is 1.2.6. The one in the ports is at v1.2.4. However, I have the beta v1.3.3 loaded from the /usr/ports/audio/audacity-devel and have not had any issues thus far. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: software to cut mp3 files?
At 03:49 PM 10/8/2007, Zbigniew Szalbot wrote: Hello, Sorry for an unusual request - does anyone know of software that is able to split an mp3 file into multiple chunks at specified locations (doesn't have to have gui, actually best if it didn't), one that works under FreeBSD? I have files with a few songs in them and I would like to cut them into separate files. Never been there nor done that. All advice greatly appreciated. Thank you very much! Zbigniew Szalbot There may be better ways, but you can uuencode the file then use split. You can do a man on uuencode, uudecode and split. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: software to cut mp3 files?
2007/10/8, D Hill [EMAIL PROTECTED]: I don't know of any non-gui. However, I've been using Audacity (/usr/ports/audio/audacity) doing just what you are looking to do. The /usr/ports/audio/audacity port is a little dated as the latest stable version at http://audacity.sourceforge.net is 1.2.6. The one in the ports is at v1.2.4. However, I have the beta v1.3.3 loaded from the /usr/ports/audio/audacity-devel and have not had any issues thus far. Thanks a lot! I am in the process of cutting the files into separate songs :) Regards, Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: hard drive testing...
On Mon, Oct 08, 2007 at 06:45:01PM +0100, Bruce Cran wrote: Gary Kline wrote: Last question for today. Well, hopefullly. Is bonnie++ the only meeans of testing a hard drive? I thought thre was something you had to put on a floppy to be able to test more thoroughly. This had been awhile ago... maybe ~5 years. thanks, people, gary All recent drives support SMART - to test a drive you can install sysutils/smartmontools and use smartctl to run a test e.g smartctl -t long /dev/ad0 There are various different tests you can run, including surface tests, online and offline etc. Well sir, Endless thanks due here! These are utilities that I will print and study the man pages to, c. bonnie++ ran last night and very heavily loaded the system; it came up clean. I'm now running the second (every-4-hours) smartctl test. The first run that you sugggested above also showed no errors. Great that these utilities work with SCSI because that will be my next install on my DNS server. Meanwhile, I've added this to my sysadmin-knowledge-base kit. gary -- Bruce -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: amd64_set_gsbase()
On Monday 08 October 2007, Jung-uk Kim wrote: Yes, you are correct. A short version is don't do that. A long version goes like this. %fs and %gs are not preserved while context switching on amd64. But this makes emulation software such as Wine a lost hope, doesn't it? Because Windows apps access the Thread Information Block (TIB) via %gs (%fs on ia32). Anyway, my so called small program is actually a Win64 emulator and I need the segment selector to stay put across syscalls. It works like a charm on single threaded apps, but as soon as I spawn a thread, all hell breaks loose :) I've managed to come up with something that *kind of* works. It goes like this: void my_handler( int s ) { if ( s == SIGSEGV ) { if ( get_gs() == 0 ) { amd64_set_gsbase(); } else { signal( SIGSEGV, SIG_DFL ); } } } int my_init( void ) { /* alloc TIB memory and initialize */ amd64_set_gsbase( lpTIB ); signal( SIGSEGV, my_handler ); return 0; } but after a series of dlopen()-s, my_handler() is called without %gs being zero and without a valid fault (the handler does not get recalled after signal( SIGSEGV, SIG_DFL ). I'm still working on this aspect ... In fact, you should not use amd64_set_gsbase() directly. If you *really* have to mess up with base addresses, you have to use sysarch(2) syscall, i.e., sysarch(AMD64_SET_GSBASE, args). I found this: /usr/src/lib/libc/amd64/sys/amd64_set_gsbase.c:32 int amd64_set_gsbase(void *addr) { return (sysarch(AMD64_SET_GSBASE, addr)); } and this (man 2 sysarch()): The sysarch() system call should never be called directly by user programs. Instead, they should access its functions using the architecture-dependent library. Who am I suppose to believe? :) However, it only changes the base address via MSR, i.e., %gs itself has no meaning. Maybe, but the selector loaded in %gs *does* have meaning. Anyway, the thing is I _have_ to make this work. I'll keep you posted ;) -- Mihai Donțu ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: amd64_set_gsbase()
On Monday 08 October 2007 06:00 pm, Mihai Donțu wrote: On Monday 08 October 2007, Jung-uk Kim wrote: Yes, you are correct. A short version is don't do that. A long version goes like this. %fs and %gs are not preserved while context switching on amd64. But this makes emulation software such as Wine a lost hope, doesn't it? Because Windows apps access the Thread Information Block (TIB) via %gs (%fs on ia32). It was discussed many times on [EMAIL PROTECTED] Anyway, my so called small program is actually a Win64 emulator and I need the segment selector to stay put across syscalls. It works like a charm on single threaded apps, but as soon as I spawn a thread, all hell breaks loose :) Yup, that's expected. ;-) I've managed to come up with something that *kind of* works. It goes like this: void my_handler( int s ) { if ( s == SIGSEGV ) { if ( get_gs() == 0 ) { amd64_set_gsbase(); } else { signal( SIGSEGV, SIG_DFL ); } } } int my_init( void ) { /* alloc TIB memory and initialize */ amd64_set_gsbase( lpTIB ); signal( SIGSEGV, my_handler ); return 0; } but after a series of dlopen()-s, my_handler() is called without %gs being zero and without a valid fault (the handler does not get recalled after signal( SIGSEGV, SIG_DFL ). I'm still working on this aspect ... That does not work, i.e., %gs vs. base address mapping is not preserved on FreeBSD/amd64 as I said. You can probably maintain some mapping table, though. In fact, you should not use amd64_set_gsbase() directly. If you *really* have to mess up with base addresses, you have to use sysarch(2) syscall, i.e., sysarch(AMD64_SET_GSBASE, args). I found this: /usr/src/lib/libc/amd64/sys/amd64_set_gsbase.c:32 int amd64_set_gsbase(void *addr) { return (sysarch(AMD64_SET_GSBASE, addr)); } and this (man 2 sysarch()): The sysarch() system call should never be called directly by user programs. Instead, they should access its functions using the architecture-dependent library. Who am I suppose to believe? :) Sorry, my bad. :-( However, it only changes the base address via MSR, i.e., %gs itself has no meaning. Maybe, but the selector loaded in %gs *does* have meaning. In long mode, we don't really care about segment registers. While implementing TLS for Linuxulator, I had to do the following hack, for example: http://docs.freebsd.org/cgi/mid.cgi?20070336.l2U06LA1075891 Under Linux and Windows, they do preserve segment registers vs. base addresses mapping for backward compatibility, AFAIK with some performance penalty. Jung-uk Kim Anyway, the thing is I _have_ to make this work. I'll keep you posted ;) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Question about rc-scripts
Under normal circumstance, should the /etc/rc.subr functions handle the creation of the pid at service start? The basic vendor-provided script (which I've had to adapt somewhat to suit this installation) runs echo $! ${dbgw_pidfile} as the last line of the script. When you do a 'status' command though, it blanks out the contents of the pid. That echo line isn't present in any of the standard scripts - hence my initial question. Apart from variable assignments, the script defines 'start_cmd' (which I assume is used as the start command by rc.subr). Strange that I couldn't find any reference to start_cmd in /etc/rc.subr though. So, my question is, why isn't the pidfile being automagically created? Many thanks, Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: what kind of UPS will work best?
On Mon, Oct 08, 2007 at 02:05:17PM -0400, Rob wrote: Pieter de Goeje wrote: verify my guess on the overall power usage of my servers I bought a VA/Watts meter (EUR. 39,-). Turns out average wattage is about 90watts per server idle and max 130watts under load. On powerup they will use a max. of 180watts for I've got one of these: http://www.newegg.com/Product/Product.aspx?Item=N82E16882715001 Works nicely for measuring cumulative power usage. APC's web site also has a selector with very model-specific power consumption figures: http://www.apc.com/tools/ups_selector/index.cfm Outstanding; thanks++ for the URL for the watt/amp/volt/Hz/VA meter. I just ordred one. Also for the ups_selector page. I'll need help getting the daemon and getting everything squared away, but that's months away. gary -Rob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Question about rc-scripts
At 05:45 PM 10/8/2007, Stephen Allen wrote: Under normal circumstance, should the /etc/rc.subr functions handle the creation of the pid at service start? The basic vendor-provided script (which I've had to adapt somewhat to suit this installation) runs echo $! ${dbgw_pidfile} as the last line of the script. When you do a 'status' command though, it blanks out the contents of the pid. That echo line isn't present in any of the standard scripts - hence my initial question. Apart from variable assignments, the script defines 'start_cmd' (which I assume is used as the start command by rc.subr). Strange that I couldn't find any reference to start_cmd in /etc/rc.subr though. So, my question is, why isn't the pidfile being automagically created? Many thanks, Steve Not all scripts create a pid file is the simple answer. Your script should create the pid file on start, remove it on stop, and simply cat that file on a status. If you want help with your script, post it, and I'm sure one of us will give you a hand. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: amd64_set_gsbase()
On Tuesday 09 October 2007, Jung-uk Kim wrote: In long mode, we don't really care about segment registers. While implementing TLS for Linuxulator, I had to do the following hack, for example: http://docs.freebsd.org/cgi/mid.cgi?20070336.l2U06LA1075891 Under Linux and Windows, they do preserve segment registers vs. base addresses mapping for backward compatibility, AFAIK with some performance penalty. Ah! But you are doing your magic _in the kernel_. I don't have this luxury :) I have to do everything in user space (as a normal user) on an out-of-the-box FreeBSD (-stable). I have *one* more question: maybe I don't fully understand the hole BASE thing, but since the FreeBSD kernel does not preserve %gs and %fs, what is the purpose of amd64_set_XXbase()? Thanks, -- Mihai Donțu ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Question about rc-scripts
Hi Derek, Not all scripts create a pid file is the simple answer. I didn't see how the isc-dhcpd script or dovecot created a pid, so I assumed it was something that rc.subr took care of. Your script should create the pid file on start, remove it on stop, and simply cat that file on a status. If you want help with your script, post it, and I'm sure one of us will give you a hand. Again, I thought the rc.subr functions took care of all that for you (unless you wanted something special from those commands). I've posted the script (changed quite a lot from vendor supplied) at: http://www.pastebin.ca/730238 If you (or anyone) were to suggest changes, I would very much appreciate the reasons why, so I can learn. Many thanks, Steve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Question about rc-scripts
Again, I thought the rc.subr functions took care of all that for you (unless you wanted something special from those commands). In general, they do see /etc/rc.subr: check_pidfile(), wait_for_pids(), Most binaries i.e. httpd, memcached, mysqld, etc... provide a config file or cli option to provide the path to a pid file. If you look in the ports tree a lot of the patches are putting this in the appropriate location: /var/run The rc.subr then just uses them. In general this system is very flexible. It breaks down if you wanted to run say 2 distinct memcached daemons on different ports with different pid files via the /usr/local/etc/rc.d/script I've posted the script (changed quite a lot from vendor supplied) at: http://www.pastebin.ca/730238 Your particular problem is that run_rc_command actually exists so that the script exists with the correct return code generally that of what the application in question returns from trying to start or stop. Inless you have a reason, If you're running a daemon, you shouldn't need to background the command. Also, rather then an echo try adding -x to the shebang line. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Question about rc-scripts
Philip M. Gollucci wrote: Your particular problem is that run_rc_command actually exists so that the script exists with the correct return code generally that of what the application in question returns from trying to start or stop. s/exists/exits/g in the above. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: what kind of UPS will work best?
Gary Kline wrote: Outstanding; thanks++ for the URL for the watt/amp/volt/Hz/VA meter. I just ordred one. Also for the ups_selector page. Glad to help. When you're experimenting with the meter, remember that for many devices you need to plug it in for a couple days to average out the load. Like a refrigerator, where the defrost only kicks in every few days. No so big a deal on computers, but you'll still get more accurate numbers. I saw one online review of the thing where the author was testing devices for less than an hour at a time, which is NOT going to give any accurate results. Some of my discoveries: CRTs that don't go into low power mode suck obscene amounts of power. Refrigerators aren't as bad a you might think. Most the draw in a residence is the HVAC. I'll send you (off list) a spreadsheet I was using to track stuff. -Rob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: software to cut mp3 files?
Hi, Sorry for an unusual request - does anyone know of software that is able to split an mp3 file into multiple chunks at specified locations (doesn't have to have gui, actually best if it didn't), one that works under FreeBSD? Not sure what you call specified location, is that at certain time? the sox (from the ports) is your friend. If you want to automatically detect the blank in between the songs, then I have no answer. I use sox to split 2.5 hours mp3 into one hour chunks because that stupid mp3 reader does not save the hour position, only the minute position: dont buy Philips mp3 :) Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
courier-authlib problems.
I upgraded one of my servers to courier-authlib-base-0.60.0 from .59 and I am now getting the following errors in my mail log: Oct 8 18:21:47 myserver.net authdaemond: Shared object libauthvchkpw.so not found, required by authdaemond Oct 8 18:21:47 myserver.net authdaemond: Installing libauthpam Oct 8 18:21:47 myserver.net authdaemond: Installation complete: authpam Oct 8 18:21:47 myserver.net authdaemond: Installing libauthldap Oct 8 18:21:47 myserver.net authdaemond: Shared object libauthldap.so not found, required by authdaemond Oct 8 18:21:47 myserver.net authdaemond: Installing libauthmysql Oct 8 18:21:47 myserver.net authdaemond: Shared object libauthmysql.so not found, required by authdaemond Oct 8 18:21:47 myserver.net authdaemond: Installing libauthpgsql Oct 8 18:21:47 myserver.net authdaemond: Shared object libauthpgsql.so not found, required by authdaemond and Oct 8 18:11:33 myserver.net imapd-ssl: couriertls: connect: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number Oct 8 18:12:07 myserver.net imapd-ssl: couriertls: connect: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number Thunderbird (OSX) has doesn't seem to care, but the iphone is now unable to get email. I am using SSL to get mail via imap. I have a 2nd server that has not been upgraded to .60 yet, and it works fine. But...the upgraded server has: courier-authlib-base-0.60.0 = up-to-date with port and the non-upgraded server has: courier-authlib-0.59.3 needs updating (port has 0.60.0) courier-authlib-base-0.59.3needs updating (port has 0.60.0) courier-authlib-vchkpw-0.59.3 needs updating (port has 0.60.0) I am assuming the upgraded server had these three ports as well before the upgrade, but I can not be 100% sure. I always kept these 2 severs running the same versions of everything, so I assume they were. Anyone know how to fix this? Tankko ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: what kind of UPS will work best?
Hi, Rob wrote: think. Most the draw in a residence is the HVAC. what is this? HVAC? Erich ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: what kind of UPS will work best?
Erich Dollansky wrote: Hi, Rob wrote: think. Most the draw in a residence is the HVAC. what is this? HVAC? Heating and air conditioning, I believe. No? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: what kind of UPS will work best?
On Monday 08 October 2007 8:36:39 pm Erich Dollansky wrote: Hi, Rob wrote: think. Most the draw in a residence is the HVAC. what is this? HVAC? Heating Ventilation Air Conditioning Erich ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: wyswyg editors for tex (was re: replacement for openoffice)
From what little experience I have with PS and *roff the idea of hacking inline embedded languages just for typesetting sounds stupid beyond belief You have to learn one of the troff macro packages. -ms is the easiest, but I agree that a wysiwyg document processor is just easier for this purpose. I'm agnostic about this one, and use Abiword (which I have never had any issues compiling, and do install all of the plug-ins), TextMaker, OO.o, Word or WP. For this purpose it does not really matter much, and I have all installed, either natively or in a virtual machine. For technical or scientific writing, though, there is nothing that can replace TeX or troff unless you invest a lot of money into adjunct programs for Word. Even then you still wind up with an ugly document. Sometimes that does not matter (like business letters) but hey, I'm a perfectionist and want my documents to look good in addition to containing good information. FWIW, my typical scientific article has over 100 references (which change as the document is written), a lot of partial differential equations and their solutions, graphs, chemistry, tables, images (like photomicrographs), and so forth. For that troff and TeX are the only way to go unless you want to spend a considerable amount of money for Word add-ins. By itself Word is not that good, but an ecosystem has developed around it to make it workable. And it is the standard. I'll stand by my basic recommendation. For everyday use and Word compatibility, buy TextMaker (and PlanMaker if you use spreadsheets). For the heavy lifting use TeX (or LaTeX or LyX) or troff and its pre-processors and macro packages. and since all the more traditional (sorry I do not think of any inline text language as being traditional) Here you are misguided. The text formatters *are* the traditional way to process documents. In fact, Unix existed only because its commercial justification was the text processing system. And that was built on DEC's runoff (with its embedded codes), which the Unix fellows abbreviated to roff, which became nroff for fixed-width character devices, and troff for typesetters. It took WordStar to change that paradigm (there are many other ones, of course, but WS was the gorilla in the late 1970s and early 1980s). Frank ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: software to cut mp3 files?
Hi, If you really want non-gui (though, also with gui-support), audio/mp3splt, as it almost spells, is the exact one for you. You should have found it by something like: make seach key='mp3.*split' in /usr/ports directory. -- R. Hara At Mon, 8 Oct 2007 23:18:31 +0200, Zbigniew Szalbot wrote: 2007/10/8, D Hill [EMAIL PROTECTED]: I don't know of any non-gui. However, I've been using Audacity (/usr/ports/audio/audacity) doing just what you are looking to do. The /usr/ports/audio/audacity port is a little dated as the latest stable version at http://audacity.sourceforge.net is 1.2.6. The one in the ports is at v1.2.4. However, I have the beta v1.3.3 loaded from the /usr/ports/audio/audacity-devel and have not had any issues thus far. Thanks a lot! I am in the process of cutting the files into separate songs :) Regards, Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: software to cut mp3 files?
Hi, If you really want non-gui (though, also with gui-support), audio/mp3splt, as it almost spells, is the exact one for you. You should have found it by something like: make seach key='mp3.*split' in /usr/ports directory. -- R. Hara At Mon, 8 Oct 2007 23:18:31 +0200, Zbigniew Szalbot wrote: 2007/10/8, D Hill [EMAIL PROTECTED]: I don't know of any non-gui. However, I've been using Audacity (/usr/ports/audio/audacity) doing just what you are looking to do. The /usr/ports/audio/audacity port is a little dated as the latest stable version at http://audacity.sourceforge.net is 1.2.6. The one in the ports is at v1.2.4. However, I have the beta v1.3.3 loaded from the /usr/ports/audio/audacity-devel and have not had any issues thus far. Thanks a lot! I am in the process of cutting the files into separate songs :) Regards, Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Upgrade of PHP4
Hi, I noticed that PHP4 port has been having some vulnerabilities for some time now. Will there be a correction relased any soon? Best regards, Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: what kind of UPS will work best?
Hi, Ray wrote: On Monday 08 October 2007 8:36:39 pm Erich Dollansky wrote: Hi, Rob wrote: think. Most the draw in a residence is the HVAC. what is this? HVAC? Heating Ventilation Air Conditioning move the machine around to be used for heating during winter. Compared to that PCs are a minor consumer. Erich ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrade of PHP4
Doubtful, given the fact that php4 will reach EOL December 31. You should plan on upgrading to php5. Thanks, now that lads to the second question, what will I break when updating? What should I be carefull about? I have several servers, managing quite many sites, with a lot of home made pages... TIA, Olivier ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrade of PHP4
On Monday 08 October 2007, Olivier Nicole said: Hi, I noticed that PHP4 port has been having some vulnerabilities for some time now. Will there be a correction relased any soon? Best regards, Olivier Doubtful, given the fact that php4 will reach EOL December 31. You should plan on upgrading to php5. Beech -- --- Beech Rintoul - FreeBSD Developer - [EMAIL PROTECTED] /\ ASCII Ribbon Campaign | FreeBSD Since 4.x \ / - NO HTML/RTF in e-mail | http://www.freebsd.org X - NO Word docs in e-mail | Latest Release: / \ - http://www.FreeBSD.org/releases/6.2R/announce.html --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrade of PHP4
On Monday 08 October 2007, Olivier Nicole said: Doubtful, given the fact that php4 will reach EOL December 31. You should plan on upgrading to php5. Thanks, now that lads to the second question, what will I break when updating? What should I be carefull about? I have several servers, managing quite many sites, with a lot of home made pages... TIA, Olivier It should be ok with most current apps, but I would run them on a test server first if it's something mission critical. Php's site has migration info (http://www.php.net) which should be helpful for custom scripts. Also the vendor sites should let you know if they will work with php5. I haven't run into anything that won't in quite a while, but your mileage may vary :-) You will need to completely remove php4 and ALL extensions then rebuild them with php5. FWIW, their site says that they will still have critical patches for a while, but all official support stops at the end of December. Beech -- --- Beech Rintoul - FreeBSD Developer - [EMAIL PROTECTED] /\ ASCII Ribbon Campaign | FreeBSD Since 4.x \ / - NO HTML/RTF in e-mail | http://www.freebsd.org X - NO Word docs in e-mail | Latest Release: / \ - http://www.FreeBSD.org/releases/6.2R/announce.html --- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: software to cut mp3 files?
Hi, If you really want non-gui (though, also with gui-support), audio/mp3splt, as it almost spells, is the exact one for you. You should have found it by something like: make seach key='mp3.*split' in /usr/ports directory. -- R. Hara At Mon, 8 Oct 2007 23:18:31 +0200, Zbigniew Szalbot wrote: 2007/10/8, D Hill [EMAIL PROTECTED]: I don't know of any non-gui. However, I've been using Audacity (/usr/ports/audio/audacity) doing just what you are looking to do. The /usr/ports/audio/audacity port is a little dated as the latest stable version at http://audacity.sourceforge.net is 1.2.6. The one in the ports is at v1.2.4. However, I have the beta v1.3.3 loaded from the /usr/ports/audio/audacity-devel and have not had any issues thus far. Thanks a lot! I am in the process of cutting the files into separate songs :) Regards, Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: courier-authlib problems.
Tankko, I am having these exact same problems with courier as well. I upgraded the system a couple of days ago and courier-imap-pop3d-ssl works fine with clients such as Outlook, but I get the same errors with Evolution as an e-mail client. It works fine using pop3d without ssl so it is definitely something screwed with the ssl part. Not exactly sure and haven't been able to track it down. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tankko Sent: Tuesday, 9 October 2007 11:31 AM To: [EMAIL PROTECTED] Subject: courier-authlib problems. I upgraded one of my servers to courier-authlib-base-0.60.0 from .59 and I am now getting the following errors in my mail log: Oct 8 18:21:47 myserver.net authdaemond: Shared object libauthvchkpw.so not found, required by authdaemond Oct 8 18:21:47 myserver.net authdaemond: Installing libauthpam Oct 8 18:21:47 myserver.net authdaemond: Installation complete: authpam Oct 8 18:21:47 myserver.net authdaemond: Installing libauthldap Oct 8 18:21:47 myserver.net authdaemond: Shared object libauthldap.so not found, required by authdaemond Oct 8 18:21:47 myserver.net authdaemond: Installing libauthmysql Oct 8 18:21:47 myserver.net authdaemond: Shared object libauthmysql.so not found, required by authdaemond Oct 8 18:21:47 myserver.net authdaemond: Installing libauthpgsql Oct 8 18:21:47 myserver.net authdaemond: Shared object libauthpgsql.so not found, required by authdaemond and Oct 8 18:11:33 myserver.net imapd-ssl: couriertls: connect: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number Oct 8 18:12:07 myserver.net imapd-ssl: couriertls: connect: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number Thunderbird (OSX) has doesn't seem to care, but the iphone is now unable to get email. I am using SSL to get mail via imap. I have a 2nd server that has not been upgraded to .60 yet, and it works fine. But...the upgraded server has: courier-authlib-base-0.60.0 = up-to-date with port and the non-upgraded server has: courier-authlib-0.59.3 needs updating (port has 0.60.0) courier-authlib-base-0.59.3needs updating (port has 0.60.0) courier-authlib-vchkpw-0.59.3 needs updating (port has 0.60.0) I am assuming the upgraded server had these three ports as well before the upgrade, but I can not be 100% sure. I always kept these 2 severs running the same versions of everything, so I assume they were. Anyone know how to fix this? Tankko ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]