From fcondo at quinn.com Wed Oct 1 00:04:18 2008 From: fcondo at quinn.com (Fred Condo) Date: Wed Oct 1 00:04:25 2008 Subject: Best way to back up mysql database In-Reply-To: References: <835F48BA-494E-44A0-8D2B-D9F139AB2125@identry.com> <7F7FCA1B-E46C-4A44-9569-D6638A550FCE@hughes.net> Message-ID: <55B7D764-CCC4-458C-8D68-5D2509EAFFC9@quinn.com> I run a script from root's crontab (not /etc/crontab) and keep the login credentials in /root/.my.cnf so they don't have to be embedded in the script. Not that $gzip is defined as /bin/cat because I move copies offsite via rsync and disk space is abundant. This script keeps 30 daily backups (configurable). Crontab entry: 13 20 * * * cd /bak/databases && /root/db_backup "db_backup" perl script: #! /usr/bin/perl use strict; my $maxbackups = 30; my $gz='gz'; my $mysqldump = '/usr/local/bin/mysqldump'; my $gzip = '/bin/cat'; my $newfile; my $filename = 'all_databases.sql'; my $curfile = $filename . ".$maxbackups"; unlink $curfile if -f $curfile; my ($i, $j); for ($i = $maxbackups - 2; $i >= 0; $i--) { $j = $i + 1; $curfile = $filename . '.' . $i; $newfile = $filename . '.' . $j; rename $curfile, $newfile if -f $curfile; } $curfile = $filename . '.' . '0'; my $command = "$mysqldump --opt --all-databases | $gzip > $curfile"; my $result; $result = system $command and warn "$result"; On Sep 30, 2008, at 4:22 PM, John Almberg wrote: >> >> DATE=`date +%a` >> # >> echo $DATE >> # >> echo Backup Mysql database >> mysqldump -h localhost -u YOURSQLUSERID -pYOURPASSWORD YOURDATABASE >> >/usr/somedirectory/somefile_$DATE.backup >> gzip -f /usr/somedirectory/somefile_$DATE.backup >> /usr/bin/at -f /usr/somedirectory/mysqlbackup.sh midnight > > Ah, a much simpler solution than my ruby script. I hadn't thought to > zip up the file before transferring it. That's an improvement I must > add. > > Thanks: John > _______________________________________________ > 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 pschmehl_lists at tx.rr.com Wed Oct 1 01:37:53 2008 From: pschmehl_lists at tx.rr.com (Paul Schmehl) Date: Wed Oct 1 01:38:01 2008 Subject: Best way to back up mysql database In-Reply-To: <835F48BA-494E-44A0-8D2B-D9F139AB2125@identry.com> References: <835F48BA-494E-44A0-8D2B-D9F139AB2125@identry.com> Message-ID: --On September 30, 2008 6:18:35 PM -0400 John Almberg wrote: > First, I wanted to say how great this list is. I'm a newbie FreeBSD > admin and, besides the Handbook and "Absolute FreeBSD" (which never > seems to leave my desk), this list is the best resource I have. > > I just had a huge scare today... One of the websites on my server uses a > large Mysql database. Somehow, one of the tables got corrupted today. > > I have been blithely backing up mysql with a simple cron script that ran > mysqldump every night. Simple, reliable, and I've never needed it. > > Today, when I realized the database was corrupted, I scrambled for my > backup, and realized that if I hadn't caught the problem today, tomorrow > my backup would have been overwritten, and I would have been... well, > not a happy camper. > > Again, I have run into a problem which is stupidly obvious to > experienced admins, I'm sure. I want to slap myself, but don't have > time. I'll do that after I have a better backup system in place. > > I am just about to dive into Google in search of a solution, but thought > I would fire off a quick request, in case there is an obvious solution > that everyone uses. If there is, a name or URL will do. I'll figure out > the rest. > > Any hints much appreciated. Not going home until this is fixed... Found this on the mysql documentation site: #!/bin/sh date=`date -I` mysqldump --opt --all-databases | bzip2 -c > /var/backup/databasebackup-$date.sql.bz2 The date must be something from linux, but you can do it like this in FSBD: #!/bin/sh date=`date "+%Y-%m-%d.%H:%M:%S"` mysqldump --opt --all-databases | bzip2 -c > /var/backup/databasebackup-$date.sql.bz2 Using this makes every dump uniquely named, even if you run several a day, so you would need to edit newsyslog.conf to rotate the dumps after a number of dumps that you choose so you don't keep writing dumps until the hard drive is full. Paul Schmehl, If it isn't already obvious, my opinions are my own and not those of my employer. ****************************************** WARNING: Check the headers before replying From c.discussions at gmail.com Wed Oct 1 01:39:47 2008 From: c.discussions at gmail.com (hibablu) Date: Wed Oct 1 01:39:54 2008 Subject: Definition of off64_t Message-ID: Hi, I am trying to port an application written on Linux to FreeBSD. During compile, I am getting an error saying that off64_t is not defined. Which header file do I need to include to get the definition for off64_t ? Thanks in advance, Chandan From bipolor at gmail.com Wed Oct 1 01:57:21 2008 From: bipolor at gmail.com (Mike Price) Date: Wed Oct 1 01:57:28 2008 Subject: Need to ( re-chown /etc ) Message-ID: I needed to edit the /etc/pf.conf so I accidentally typed: chown -r /etc Can someone please help me with a command to change /etc back to the way it was? From koitsu at FreeBSD.org Wed Oct 1 02:04:44 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Wed Oct 1 02:04:51 2008 Subject: Need to ( re-chown /etc ) In-Reply-To: References: Message-ID: <20081001020441.GA62415@icarus.home.lan> On Tue, Sep 30, 2008 at 06:57:20PM -0700, Mike Price wrote: > I needed to edit the /etc/pf.conf so I accidentally typed: chown -r /etc > Can someone please help me with a command to change /etc back to the way it > was? Please stop asking this question over and over. You've posted it to the -questions list twice, and to the -hackers list once. Kevin Kinsey responded to you with an mtree command that should do the trick. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From pschmehl_lists at tx.rr.com Wed Oct 1 02:18:46 2008 From: pschmehl_lists at tx.rr.com (Paul Schmehl) Date: Wed Oct 1 02:18:54 2008 Subject: Need to ( re-chown /etc ) In-Reply-To: References: Message-ID: <10F25C57212680026DE27619@Macintosh-2.local> --On September 30, 2008 6:57:20 PM -0700 Mike Price wrote: > I needed to edit the /etc/pf.conf so I accidentally typed: chown -r /etc > Can someone please help me with a command to change /etc back to the way > it was? If that is literally the command you typed, you should have gotten an error message, and nothing should have been changed. Chown requires at least one identifier (uid) before it will work. Paul Schmehl, If it isn't already obvious, my opinions are my own and not those of my employer. ****************************************** WARNING: Check the headers before replying From jon at radel.com Wed Oct 1 03:14:04 2008 From: jon at radel.com (Jon Radel) Date: Wed Oct 1 03:14:13 2008 Subject: Need to ( re-chown /etc ) In-Reply-To: References: Message-ID: <48E2DCE3.4070508@radel.com> Mike Price wrote: > I needed to edit the /etc/pf.conf so I accidentally typed: chown -r /etc > Can someone please help me with a command to change /etc back to the way it > was? Did Kevin Kinsey's suggestion not work? It would be helpful if you gave some hint as to why you're asking this again. However, you should realize that you destroy information when you change all the ownership information to a uniform value. You need to: 1) Know what the value for each file was so you can set it back, or 2) Use your backups, or 3) Check what the standard files are set to in the distribution (as Kevin suggested), or 4) Know that most, but not all, files in /etc are user root and group wheel, use those values, and hope for the best. In other words, there really isn't "a command" to fix the damage you've done. However, as I'm sure you realize by now, recursively destroying information in or about system files tends to be a bad idea. As is, as a general rule, using chown as a privileged user just so that you can edit a file such as this as an unprivileged user. --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/20081001/ec06487f/smime.bin From ai_quoc at hotmail.com Wed Oct 1 04:05:16 2008 From: ai_quoc at hotmail.com (Danny Do) Date: Wed Oct 1 04:05:24 2008 Subject: Optimal File System config for 2.5TB RAID5 In-Reply-To: <20080930224447.GA58065@icarus.home.lan> References: <1222681181.48e0a25d094c3@www.inbox.lv> <48E21C66.8080407@FreeBSD.org> <20080930161407.E16761@wojtek.tensor.gdynia.pl> <20080930205435.B20033@wojtek.tensor.gdynia.pl> <00ee01c92346$69508fa0$3bf1aee0$@com> <20080930224447.GA58065@icarus.home.lan> Message-ID: Thanks for the concrete example of the pitfall of hardware RAID Jeremy. I never had any problem with hardware driver, that's why I never thought of it. But you are quite right! I should be avoiding hardware RAID whenever possible. I get much more support and quicker response here than from hardware vendor. Ok, I have to pickup gVinum where I left it 4 years ago. Hopefully, the software is stable now. Thanks again Jeremy Chadwick, Wojciech Puchar and this wonderful community, Danny -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Jeremy Chadwick Sent: Wednesday, 1 October 2008 5:45 AM To: Danny Do Cc: 'Wojciech Puchar'; freebsd-questions@freebsd.org Subject: Re: Optimal File System config for 2.5TB RAID5 On Wed, Oct 01, 2008 at 04:49:27AM +0700, Danny Do wrote: > I got Perc 4E-DI Embedded Raid Adapter (256MB) from DELL for my current SCSI > system. They said it's the enterprise class. I don't know much about the > performance between software RAID and hardware RAID. I'm not familiar with PERC (LSI) controllers, just for the record. > Could you please tell me if this type of hardware RAID controller could > match the software RAID you were talking about? What you're asking for is "too much" -- and this conversation is starting to delve into freebsd-hardware, not freebsd-questions. Unless someone out there has done full benchmarks comparing FreeBSD ZFS or FreeBSD gvinum to a PERC 4E-DI, with all kinds of test cases (what sort of server it is, what it's doing disk-wise, etc.), I doubt you'll be able to get a conclusive answer here. Such benchmarking would require weeks of effort by someone. Heck, I'm not even sure FreeBSD supports the PERC 4E-DI. That said, if you go with that controller, you should be aware of the following things: there are many problems with hardware RAID. 1) If the controller goes bad after the lifetime of the controller has expired, there is very little chance the vendor will give you a replacement controller that understands the metadata of the previous/bad controller. You are flat out stuck with that model of controller for the rest of your life, unless the vendor can *guarantee* backwards compatibility when providing a newer controller. And I'm willing to bet money that general technical support has no idea what "metadata" is, or any technical details; they just know what they're told ("controller X is no longer available, give them controller Y") 2) Driver support is often "iffy" with such controllers, at least under FreeBSD. FreeBSD SCSI CAM is quite reliable, so that's not the problem. Here's some past evidence of mfi(4) and mpt(4) having problems administrating arrays, or experiencing horrible performance, requiring tuning be done and much troubleshooting: http://wiki.freebsd.org/JeremyChadwick/Commonly_reported_issues 3) You are at the whim of the hardware RAID controller's BIOS. Performance can be affected by bugs in the BIOS, or BIOS bugs can cause you trouble down the road. You have to ask yourself how much you ultimately trust the technical support people at Dell vs. the FreeBSD community. 4) Driver regressions may hurt you. There may be a day when you go to upgrade to FreeBSD 8.0 (when it becomes stable), only to find that your controller isn't recognised, or has odd problems. (I myself just ran into this situation with -CURRENT last week, where my SATA controller isn't detected, while works perfectly in RELENG_7). You're then "stuck" on an older FreeBSD until those problems can be worked out. The only hardware RAID controller I've seen praise for, under FreeBSD, are Areca controllers. I'm told the performance (on a purely general level) is "absolutely incredible/blazing fast". I don't know what those people are comparing against, though. Be aware that many developers, including folks like Matt Dillon (of DragonflyBSD) and Ade Lovett (very familiar with filers and disk storage) recommend you *completely avoid* hardware RAID controllers or on-motherboard RAID (e.g. Intel MatrixRAID), and go with OS-based RAID (ZFS, gvinum, or standalone UFS2+SU filesystems). If you reach a point where disk I/O on that server is becoming so heavy that you feel you need a hardware RAID controller, that would be when you should come back to the list (freebsd-stable, freebsd-hardware, or freebsd-isp) to discuss the problems you're having with performance. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | _______________________________________________ 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 af300wsm at gmail.com Wed Oct 1 04:26:15 2008 From: af300wsm at gmail.com (Andrew Falanga) Date: Wed Oct 1 04:26:22 2008 Subject: Realtek 8111C? In-Reply-To: <48D85B3A.8070706@mindling.com> References: <48D3D0A8.7070504@mindling.com> <1221876046.4625.4.camel@laptop1.herveybayaustralia.com.au> <48D53DA1.2040808@mindling.com> <200809211527.53755.af300wsm@gmail.com> <48D85B3A.8070706@mindling.com> Message-ID: <340a29540809302126m6196e828u4e8949cc092847bb@mail.gmail.com> On Mon, Sep 22, 2008 at 8:58 PM, Sebastian wrote: > Andrew Falanga wrote: >> >> On Saturday 20 September 2008 12:14:57 Sebastian wrote: >> >>> >>> Da Rock wrote: >>> >>>> >>>> I have used the compiled driver on 6.3 with success- but then I've used >>>> the driver linked in a post to drivers list. 7.0 is a no go. >>>> >>> >>> I tried to compile the current OEM Realtek driver under (v176) on fbsd >>> 6.3, but couldn't get it to build. My foo is a little thin here. :) >>> >>> >> >> Where did you get this OEM driver? >> > > The oem driver can be found here: > > http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false > > It builds just fine on 6.3, once I read the file manual on how to build a > kernel module. > > So far no problems running it with a fair amount of traffic. > > Awesome! Thanks. If I've been understanding another thread on here, it sounds like there's a FreeBSD driver coming in 7.1. Andy -- A: Because it messes up the order in which people normally read text. Q: Why is it such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? From dnelson at allantgroup.com Wed Oct 1 04:29:48 2008 From: dnelson at allantgroup.com (Dan Nelson) Date: Wed Oct 1 04:29:55 2008 Subject: Definition of off64_t In-Reply-To: References: Message-ID: <20081001042943.GJ86326@dan.emsphone.com> In the last episode (Sep 30), hibablu said: > I am trying to port an application written on Linux to FreeBSD. > During compile, I am getting an error saying that off64_t is not > defined. Which header file do I need to include to get the definition > for off64_t ? There is no need for an off64_t on FreeBSD. The program should use off_t instead, and on Linux, they should add the compiler flags "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" so that off_t is 64 bits on Linux as well. -- Dan Nelson dnelson@allantgroup.com From af300wsm at gmail.com Wed Oct 1 04:34:55 2008 From: af300wsm at gmail.com (Andrew Falanga) Date: Wed Oct 1 04:35:01 2008 Subject: Setting up gmirror Message-ID: <340a29540809302134p2414e3cfw6a0694026e57d879@mail.gmail.com> Hi, I've just finished setting up a new web server, and if I get my DNS stuff correct hopefully an e-mail server too, for my church. Originally, the intention was to use RAID1 on the MOBO. However, the RAID controller on the MOBO consistently tried to make the SATA DVD drive part of the RAID array and wouldn't boot the FreeBSD boot disk. So, at the suggestion of another respondent here, I've decided to use gmirror. Now, it seems that gmirror is, perhaps, newer to FreeBSD than the software RAID stuff in the Handbook. That mentions ccd(4) and doesn't make any mention of gmirror(8). It seems like gmirror is rather easy to work with, and more important, easy to recover from is hardware fails. In any event, I want to make sure I'm understanding the manual page correctly because I don't have anything else to test this on except the churches computer. We have two Seagate 250gb SATA drives. Identical drive models so their sizes are the same. Is this the command, from gmirror(8), the one I'll want to use? Create a mirror on disk with valid data (note that the last sector of the disk will be overwritten). Add another disk to this mirror, so it will be synchronized with existing disk: gmirror label -v -b round-robin data da0 gmirror insert data da1 Though in my case, da0 and da1 will be ad4 and ad5. This seems to be the one I'm looking for, I'm just scared of wiping out more than I bargain for. Andy -- A: Because it messes up the order in which people normally read text. Q: Why is it such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? From rock_on_the_web at comcen.com.au Wed Oct 1 05:40:31 2008 From: rock_on_the_web at comcen.com.au (Da Rock) Date: Wed Oct 1 05:40:38 2008 Subject: mysql rc script failure Message-ID: <1222839623.8573.5.camel@laptop1.herveybayaustralia.com.au> Has anyone else had trouble with starting mysql server with the rc script? I've only just installed from ports (as a dependency, mind) and technically it should just start when you run the rc script - it sets up the db dirs and stuff so it can just run. But I can't get it to do the setup stuff automatically, and so the script fails. I've done the setup manually before so its no real biggy, but I imagine others would be more than a little frustrated. Anyone else have this trouble? I just realised I had to do this last time too... For reference: I'm starting the script manually for testing at this point (if that makes a difference- which I believe it shouldn't). From wojtek at wojtek.tensor.gdynia.pl Wed Oct 1 06:37:46 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Wed Oct 1 06:37:53 2008 Subject: Optimal File System config for 2.5TB RAID5 In-Reply-To: <20080930224447.GA58065@icarus.home.lan> References: <1222681181.48e0a25d094c3@www.inbox.lv> <48E21C66.8080407@FreeBSD.org> <20080930161407.E16761@wojtek.tensor.gdynia.pl> <20080930205435.B20033@wojtek.tensor.gdynia.pl> <00ee01c92346$69508fa0$3bf1aee0$@com> <20080930224447.GA58065@icarus.home.lan> Message-ID: <20081001083637.C7317@wojtek.tensor.gdynia.pl> > > What you're asking for is "too much" -- and this conversation is > starting to delve into freebsd-hardware, not freebsd-questions. the simple answer is that software RAID on todays computers vastly outperforms ANY hardware raid solution, maybe except the ones for 10000$ or more. From wojtek at wojtek.tensor.gdynia.pl Wed Oct 1 06:41:24 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Wed Oct 1 06:41:30 2008 Subject: Setting up gmirror In-Reply-To: <340a29540809302134p2414e3cfw6a0694026e57d879@mail.gmail.com> References: <340a29540809302134p2414e3cfw6a0694026e57d879@mail.gmail.com> Message-ID: <20081001083751.M7317@wojtek.tensor.gdynia.pl> > Hi, > > I've just finished setting up a new web server, and if I get my DNS > stuff correct hopefully an e-mail server too, for my church. > Originally, the intention was to use RAID1 on the MOBO. However, the do not ever use "hardware" RAID0/1/10 on motherboard. first it's not hardware, it's purely software, second there is nothing to be accelerated by hardware on RAID0/1/10. use gmirror/gstripe/gconcat everywhere. > make any mention of gmirror(8). It seems like gmirror is rather easy gmirror is easy to set up and works excellent. > Identical drive models so their sizes are the same. Is this the > command, from gmirror(8), the one I'll want to use? > > Create a mirror on disk with valid data (note that the last sector of the > disk will be overwritten). Add another disk to this mirror, so it will > be synchronized with existing disk: > > gmirror label -v -b round-robin data da0 add -s like -s 1048576 to prevent splitting one request on 2 disks. except this - all right. > gmirror insert data da1 > Though in my case, da0 and da1 will be ad4 and ad5. This seems to be > the one I'm looking for, I'm just scared of wiping out more than I > bargain for. assuming you already have system on say ad4, make gmirror on ad5, copy everything, make sure it's bootable (bsdlabel -B ...), boot from it, if all works, add ad4 to the mirror effectively overwriting things. add in loader.conf vfs.root.mountfrom="ufs:mirror/dataa" - assuming your system is on partition a of your mirror. HINT - you DO NOT have to mirror whole drive. you may mirror a partition(s), living some of them unmirrored. From wojtek at wojtek.tensor.gdynia.pl Wed Oct 1 06:41:58 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Wed Oct 1 06:42:05 2008 Subject: Optimal File System config for 2.5TB RAID5 In-Reply-To: References: <1222681181.48e0a25d094c3@www.inbox.lv> <48E21C66.8080407@FreeBSD.org> <20080930161407.E16761@wojtek.tensor.gdynia.pl> <20080930205435.B20033@wojtek.tensor.gdynia.pl> <00ee01c92346$69508fa0$3bf1aee0$@com> <20080930224447.GA58065@icarus.home.lan> Message-ID: <20081001084131.E7317@wojtek.tensor.gdynia.pl> > Ok, I have to pickup gVinum where I left it 4 years ago. Hopefully, the > software is stable now. AFAIK it's not at least when i tried it in 6.* From maanjee at gmail.com Wed Oct 1 06:53:40 2008 From: maanjee at gmail.com (VeeJay) Date: Wed Oct 1 06:53:47 2008 Subject: How to select/choose new NIC under FreeBSD? In-Reply-To: <2cd0a0da0809260449w765cbd29mb1c132f1662d44e9@mail.gmail.com> References: <2cd0a0da0809260449w765cbd29mb1c132f1662d44e9@mail.gmail.com> Message-ID: <2cd0a0da0809302353g7cc09b9p4cca7a0db6f6c8ce@mail.gmail.com> thanks Guys.... really good help! Cheers! VJ On Fri, Sep 26, 2008 at 1:49 PM, VeeJay wrote: > Hello there, > > At my work, I have a Dell PowerEdge2950 running FreeBSD 7.0, Webserver. > This server has onboard Broadcom NetXtreme II BCM5708 1000Base-T with 2 > ports. But we have faced watchdog timeouts and after googling and getting > help on this great forum, we were able to figure out that this is Broadcom > incompatibilty. > So, we have bought Intel Pro 1000PT Single Port Gigabit PCIe Cu now. Which > I am going to install in the server but before; > I need some information, where I seek you guys help??? > > 1. How to tell FreeBSD to which NIC to use? > 2. Where else I should make changes under /etc folder? > > I will aprecaite your help! > -- > Thanks! > > BR / vj > -- Thanks! BR / vj From koitsu at FreeBSD.org Wed Oct 1 07:11:53 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Wed Oct 1 07:12:00 2008 Subject: Setting up gmirror In-Reply-To: <340a29540809302134p2414e3cfw6a0694026e57d879@mail.gmail.com> References: <340a29540809302134p2414e3cfw6a0694026e57d879@mail.gmail.com> Message-ID: <20081001071150.GA13554@icarus.home.lan> On Tue, Sep 30, 2008 at 10:34:53PM -0600, Andrew Falanga wrote: > I've just finished setting up a new web server, and if I get my DNS > stuff correct hopefully an e-mail server too, for my church. > Originally, the intention was to use RAID1 on the MOBO. However, the > RAID controller on the MOBO consistently tried to make the SATA DVD > drive part of the RAID array and wouldn't boot the FreeBSD boot disk. > So, at the suggestion of another respondent here, I've decided to use > gmirror. Stay away from BIOS-level RAID. If you want evidence of why, especially with regards to Intel MatrixRAID, here you go: http://wiki.freebsd.org/JeremyChadwick/ATA_issues_and_troubleshooting And yes, these are FreeBSD problems, but the severity is so high that there is a very good chance you will lose your data in the case of a failure. Simply put, don't risk it. Stick with gmirror or ZFS, unless you have reason to use ccd (it's old, but it does still work). -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From wojtek at wojtek.tensor.gdynia.pl Wed Oct 1 07:22:28 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Wed Oct 1 07:22:35 2008 Subject: Setting up gmirror In-Reply-To: <20081001071150.GA13554@icarus.home.lan> References: <340a29540809302134p2414e3cfw6a0694026e57d879@mail.gmail.com> <20081001071150.GA13554@icarus.home.lan> Message-ID: <20081001092139.D7677@wojtek.tensor.gdynia.pl> > with regards to Intel MatrixRAID, here you go: > > http://wiki.freebsd.org/JeremyChadwick/ATA_issues_and_troubleshooting > > And yes, these are FreeBSD problems, but the severity is so high that > there is a very good chance you will lose your data in the case of a > failure. Simply put, don't risk it. BIOS RAIDs are software RAIDs. FreeBSD "driver" for this is software RAID too, just like gmirror but worse and less portable. simply doesn't make sense. From dino_vliet at yahoo.com Wed Oct 1 07:24:49 2008 From: dino_vliet at yahoo.com (Dino Vliet) Date: Wed Oct 1 07:24:56 2008 Subject: error compiling kernel In-Reply-To: <20080929123132.GA59725@melon.esperance-linux.co.uk> Message-ID: <669615.28563.qm@web51111.mail.re2.yahoo.com> --- On Mon, 9/29/08, Frank Shute wrote: From: Frank Shute Subject: Re: error compiling kernel To: "Dino Vliet" Cc: freebsd-questions@freebsd.org Date: Monday, September 29, 2008, 2:31 PM On Sun, Sep 28, 2008 at 11:09:01PM -0700, Dino Vliet wrote: > > Hi all, > > In an effort to compile a new kernel on my amd64 system running > freebsd 6.3 I get the following error message after the make > buildkernel KERNCONF=MYKERNEL step. > > The error I get is: > > /usr/src/sys/dev/usb/udbp.c: 426: undefined reference to 'ng_parse_int32_type' udbp.o (.rodata + 0xc0):/usr/src/sys/dev/usb/udbp.c: 438: undefined reference to 'ng_parse_int32_type' > > *** Error code 1 > Stop in /usr/obj/usr/src/sys/MYKERNEL > *** Error code 1 > Stop in /usr/src > *** Error code 1 > Stop in /usr/src > > My kernel configuration called MYKERNEL looks like this: > > # > # GENERIC -- Generic kernel configuration file for FreeBSD/amd64 > # > > options SCHED_ULE # ULE scheduler > #options SCHED_4BSD # 4BSD scheduler > What is causing this error? > > Brgds > Dino > device fwe # Ethernet over FireWire (non-standard!) Dino, I don't know if it's possibly related but IIRC the SCHED_ULE scheduler is deprecated for use in 6.* (I stand to be corrected!:) although I believe it works with 7.* So I suggest trying SCHED_4BSD and see if that works better. As to the specific error, it looks like you might need: options NETGRAPH in your kernel conf. See: netgraph(4) You might also want to use the tag: RELENG_6_4 for your source supfile. I'm pretty sure there is a 6.4 branch now the BETA has come out. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html Hi Frank, It worked! Thanks for the tips. I've reenabled sched_bsd and added options NETGRAPH. The latter is strange though, because I managed to compile the p1 kernel in the past without it, so why would that fail now? Anyway, it worked so I can look at my other problems now. This machine was disconnected from the internet a few months so I had a very long package list that needed to be updated. Thanks for your reply! Dino From bipolor at gmail.com Wed Oct 1 07:41:54 2008 From: bipolor at gmail.com (Mike Price) Date: Wed Oct 1 07:42:03 2008 Subject: FreeBSD command to make image of the active partition and a command to restore it? Message-ID: FreeBSD command to make image of the active partition and a command to restore it? From rock_on_the_web at comcen.com.au Wed Oct 1 08:02:41 2008 From: rock_on_the_web at comcen.com.au (Da Rock) Date: Wed Oct 1 08:02:48 2008 Subject: mysql rc script failure - correction: most installed rc scripts not running manually In-Reply-To: <1222839623.8573.5.camel@laptop1.herveybayaustralia.com.au> References: <1222839623.8573.5.camel@laptop1.herveybayaustralia.com.au> Message-ID: <1222847649.8573.11.camel@laptop1.herveybayaustralia.com.au> On Wed, 2008-10-01 at 15:40 +1000, Da Rock wrote: > Has anyone else had trouble with starting mysql server with the rc > script? > > I've only just installed from ports (as a dependency, mind) and > technically it should just start when you run the rc script - it sets up > the db dirs and stuff so it can just run. But I can't get it to do the > setup stuff automatically, and so the script fails. I've done the setup > manually before so its no real biggy, but I imagine others would be more > than a little frustrated. > > Anyone else have this trouble? I just realised I had to do this last > time too... > > For reference: I'm starting the script manually for testing at this > point (if that makes a difference- which I believe it shouldn't). Manually running port installed rc scripts is not working manually. I'm trying mysql, courier-imap, and I've tried isc-dhcp in the past. None of these will work when run manually- even on different machines and bsd versions (all 6.x). Is it just me? From info at e-gate.se Wed Oct 1 08:03:03 2008 From: info at e-gate.se (Chris Papageorgiou) Date: Wed Oct 1 08:03:11 2008 Subject: PXE real life use Message-ID: <19756184.post@talk.nabble.com> Hello all, I'd like to point a subject on PXE server usage on a daily basis such as a service department. Im thinking of developing such system to load OS's(not strictly *NIX) installations through LAN than using a CD each time. What would be the cons,pros to such system and what are the limits? Looking forward for your replies. Best regards, Chris Papageorgiou -- View this message in context: http://www.nabble.com/PXE-real-life-use-tp19756184p19756184.html Sent from the freebsd-questions mailing list archive at Nabble.com. From wojtek at wojtek.tensor.gdynia.pl Wed Oct 1 08:29:43 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Wed Oct 1 08:29:50 2008 Subject: FreeBSD command to make image of the active partition and a command to restore it? In-Reply-To: References: Message-ID: <20081001102932.B8008@wojtek.tensor.gdynia.pl> dump, restore On Wed, 1 Oct 2008, Mike Price wrote: > FreeBSD command to make image of the active partition and a command to > restore 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" > > From bsam at ipt.ru Wed Oct 1 08:57:53 2008 From: bsam at ipt.ru (Boris Samorodov) Date: Wed Oct 1 08:58:01 2008 Subject: mysql rc script failure - correction: most installed rc scripts not running manually In-Reply-To: <1222847649.8573.11.camel@laptop1.herveybayaustralia.com.au> (Da Rock's message of "Wed\, 01 Oct 2008 17\:54\:09 +1000") References: <1222839623.8573.5.camel@laptop1.herveybayaustralia.com.au> <1222847649.8573.11.camel@laptop1.herveybayaustralia.com.au> Message-ID: <84763862@bb.ipt.ru> Da Rock writes: > On Wed, 2008-10-01 at 15:40 +1000, Da Rock wrote: >> Has anyone else had trouble with starting mysql server with the rc >> script? >> >> I've only just installed from ports (as a dependency, mind) and >> technically it should just start when you run the rc script - it sets up >> the db dirs and stuff so it can just run. But I can't get it to do the >> setup stuff automatically, and so the script fails. I've done the setup >> manually before so its no real biggy, but I imagine others would be more >> than a little frustrated. >> >> Anyone else have this trouble? I just realised I had to do this last >> time too... >> >> For reference: I'm starting the script manually for testing at this >> point (if that makes a difference- which I believe it shouldn't). > > Manually running port installed rc scripts is not working manually. I'm > trying mysql, courier-imap, and I've tried isc-dhcp in the past. None of > these will work when run manually- even on different machines and bsd > versions (all 6.x). > > Is it just me? Sorry for may be a dumb question: did you define an _enable="YES" at /etc/rc.conf[.local]? For more info you may look at the script you are trying to start. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From m.seaman at infracaninophile.co.uk Wed Oct 1 09:03:19 2008 From: m.seaman at infracaninophile.co.uk (Matthew Seaman) Date: Wed Oct 1 09:03:29 2008 Subject: Optimal File System config for 2.5TB RAID5 In-Reply-To: <20081001083637.C7317@wojtek.tensor.gdynia.pl> References: <1222681181.48e0a25d094c3@www.inbox.lv> <48E21C66.8080407@FreeBSD.org> <20080930161407.E16761@wojtek.tensor.gdynia.pl> <20080930205435.B20033@wojtek.tensor.gdynia.pl> <00ee01c92346$69508fa0$3bf1aee0$@com> <20080930224447.GA58065@icarus.home.lan> <20081001083637.C7317@wojtek.tensor.gdynia.pl> Message-ID: <48E33CC6.7050504@infracaninophile.co.uk> -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Wojciech Puchar wrote: |> |> What you're asking for is "too much" -- and this conversation is |> starting to delve into freebsd-hardware, not freebsd-questions. | | the simple answer is that software RAID on todays computers vastly | outperforms ANY hardware raid solution, maybe except the ones for 10000$ | or more. You're basically correct, but I think you're overestimating the price of a good RAID controller. The big win with hardware RAID controllers comes when they are fitted with a BBU. Typically this turns a ?400 item into a ?600 item, so most sales weasels will artfully forget to include it[+]. When you've got a BBU, then it lets you do the good stuff like disable write cache on the drives but *enable* it on the controller -- the presence of the battery means that data cached in RAM is safe and in the event of an unscheduled reboot, it can be flushed to disk as the system comes up again -- so the RAID can justifiably report to the OS that the IO transaction is complete without having to wait for the bits to actually hit the disk platter[*]. I've occasionally wondered why there isn't a simple device commonly available which consists of a few hundred MB of battery backed (or otherwise persistent in the face of power loss) RAM that can plug into a PCI slot and fulfil that function generically for any disks in a machine. Solid state hard drives are getting there, but they're still too expensive and not really fast enough yet. Cheers, Matthew [+] And I don't know how the manufacturers justify that price tag, as the battery tech used is based on the same off-the-shelf components that go into any mobile phone [*] Unlike the normal hw.ata.wc enable, which reports this unjustifiably... - -- Dr Matthew J Seaman MA, D.Phil. Flat 3 ~ 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate ~ Kent, CT11 9PW, UK -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREDAAYFAkjjPMYACgkQ3jDkPpsZ+VYBGwCgmIndkiis5+OfA8ahXCbTasxO pbkAn2y69JagZweBpD62TnctqtQdt+mF =yHzW -----END PGP SIGNATURE----- From koitsu at FreeBSD.org Wed Oct 1 09:04:18 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Wed Oct 1 09:04:25 2008 Subject: Setting up gmirror In-Reply-To: <20081001092139.D7677@wojtek.tensor.gdynia.pl> References: <340a29540809302134p2414e3cfw6a0694026e57d879@mail.gmail.com> <20081001071150.GA13554@icarus.home.lan> <20081001092139.D7677@wojtek.tensor.gdynia.pl> Message-ID: <20081001090414.GA15939@icarus.home.lan> On Wed, Oct 01, 2008 at 09:22:20AM +0200, Wojciech Puchar wrote: >> with regards to Intel MatrixRAID, here you go: >> >> http://wiki.freebsd.org/JeremyChadwick/ATA_issues_and_troubleshooting >> >> And yes, these are FreeBSD problems, but the severity is so high that >> there is a very good chance you will lose your data in the case of a >> failure. Simply put, don't risk it. > > BIOS RAIDs are software RAIDs. FreeBSD "driver" for this is software RAID > too, just like gmirror but worse and less portable. > > simply doesn't make sense. And what exactly do you classify controllers such as the Promise TX4310 and the Promise S150 SX4 as? The TX4310 could be classified as "software RAID", but a few of the features are offloaded onto the controller. The SX4 is the same way, but has actual on-board cache. You like to declare everything as "software RAIDs", while I like to discern the difference between them using (what I believe to be) more accurate terminology: BIOS-level RAID (Adaptec HostRAID, Intel MatrixRAID; "chipset" RAID) OS-based RAID (gvinum, ccd, etc.) Hardware RAID (LSI Logic, 3Ware, Areca controllers) There is always a certain degree of "software" (specifically, processing/work done on the main system's CPU) in all of those, since there is always a driver involved for interfacing with the cards -- even ones with dedicated CPUs like the Intel IOP/XScale. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From koitsu at FreeBSD.org Wed Oct 1 09:08:34 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Wed Oct 1 09:08:42 2008 Subject: Optimal File System config for 2.5TB RAID5 In-Reply-To: <48E33CC6.7050504@infracaninophile.co.uk> References: <48E21C66.8080407@FreeBSD.org> <20080930161407.E16761@wojtek.tensor.gdynia.pl> <20080930205435.B20033@wojtek.tensor.gdynia.pl> <00ee01c92346$69508fa0$3bf1aee0$@com> <20080930224447.GA58065@icarus.home.lan> <20081001083637.C7317@wojtek.tensor.gdynia.pl> <48E33CC6.7050504@infracaninophile.co.uk> Message-ID: <20081001090832.GB15939@icarus.home.lan> On Wed, Oct 01, 2008 at 10:03:02AM +0100, Matthew Seaman wrote: > I've occasionally wondered why there isn't a simple device commonly available > which consists of a few hundred MB of battery backed (or otherwise persistent > in the face of power loss) RAM that can plug into a PCI slot and fulfil that > function generically for any disks in a machine. Solid state hard drives are > getting there, but they're still too expensive and not really fast enough yet. You mean this? http://en.wikipedia.org/wiki/I-RAM -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From wojtek at wojtek.tensor.gdynia.pl Wed Oct 1 09:19:07 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Wed Oct 1 09:19:13 2008 Subject: Setting up gmirror In-Reply-To: <20081001090414.GA15939@icarus.home.lan> References: <340a29540809302134p2414e3cfw6a0694026e57d879@mail.gmail.com> <20081001071150.GA13554@icarus.home.lan> <20081001092139.D7677@wojtek.tensor.gdynia.pl> <20081001090414.GA15939@icarus.home.lan> Message-ID: <20081001111736.O8258@wojtek.tensor.gdynia.pl> > And what exactly do you classify controllers such as the Promise TX4310 > and the Promise S150 SX4 as? The TX4310 could be classified as > "software RAID", but a few of the features are offloaded onto the > controller. The SX4 is the same way, but has actual on-board cache. si it do something by hardware. anyway - i don't think it will actually make it faster under FreeBSD (contrary to windoze). it's simply not worth money. > You like to declare everything as "software RAIDs", while I like to > discern the difference between them using (what I believe to be) more > accurate terminology: > > BIOS-level RAID (Adaptec HostRAID, Intel MatrixRAID; "chipset" RAID) > OS-based RAID (gvinum, ccd, etc.) what are the difference between 1 and 2? there are none. From wojtek at wojtek.tensor.gdynia.pl Wed Oct 1 09:21:20 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Wed Oct 1 09:21:30 2008 Subject: Optimal File System config for 2.5TB RAID5 In-Reply-To: <48E33CC6.7050504@infracaninophile.co.uk> References: <1222681181.48e0a25d094c3@www.inbox.lv> <48E21C66.8080407@FreeBSD.org> <20080930161407.E16761@wojtek.tensor.gdynia.pl> <20080930205435.B20033@wojtek.tensor.gdynia.pl> <00ee01c92346$69508fa0$3bf1aee0$@com> <20080930224447.GA58065@icarus.home.lan> <20081001083637.C7317@wojtek.tensor.gdynia.pl> <48E33CC6.7050504@infracaninophile.co.uk> Message-ID: <20081001111911.U8258@wojtek.tensor.gdynia.pl> > | | the simple answer is that software RAID on todays computers vastly | > outperforms ANY hardware raid solution, maybe except the ones for 10000$ | or > more. > > You're basically correct, but I think you're overestimating the price of > a good RAID controller. no. please give me example of any RAID hardware below 10000$ that WILL be faster than properly configure software RAID solution under FreeBSD with same amount of same disks. i mean faster under normal unix-like load, which is lots of parallel accesses to same or different things, not simple tests. there are NONE. From zszalbot at gmail.com Wed Oct 1 09:33:20 2008 From: zszalbot at gmail.com (Zbigniew Szalbot) Date: Wed Oct 1 09:33:27 2008 Subject: Best way to back up mysql database In-Reply-To: <835F48BA-494E-44A0-8D2B-D9F139AB2125@identry.com> References: <835F48BA-494E-44A0-8D2B-D9F139AB2125@identry.com> Message-ID: <94136a2c0810010201y6d561828lb125419de1613aee@mail.gmail.com> Hi, 2008/10/1 John Almberg : > First, I wanted to say how great this list is. I'm a newbie FreeBSD admin > and, besides the Handbook and "Absolute FreeBSD" (which never seems to leave > my desk), this list is the best resource I have. > > I just had a huge scare today... One of the websites on my server uses a > large Mysql database. Somehow, one of the tables got corrupted today. > > I have been blithely backing up mysql with a simple cron script that ran > mysqldump every night. Simple, reliable, and I've never needed it. > > Today, when I realized the database was corrupted, I scrambled for my > backup, and realized that if I hadn't caught the problem today, tomorrow my > backup would have been overwritten, and I would have been... well, not a > happy camper. > > Again, I have run into a problem which is stupidly obvious to experienced > admins, I'm sure. I want to slap myself, but don't have time. I'll do that > after I have a better backup system in place. > > I am just about to dive into Google in search of a solution, but thought I > would fire off a quick request, in case there is an obvious solution that > everyone uses. If there is, a name or URL will do. I'll figure out the rest. > > Any hints much appreciated. Not going home until this is fixed... I'd recommend http://sourceforge.net/projects/automysqlbackup/ very easy to set up. -- Zbigniew Szalbot From eforezz at gmail.com Wed Oct 1 09:43:03 2008 From: eforezz at gmail.com (EforeZZ) Date: Wed Oct 1 09:43:10 2008 Subject: built-in samba mount In-Reply-To: <20080930173802.GB16426@slackbox.xs4all.nl> References: <20080930173802.GB16426@slackbox.xs4all.nl> Message-ID: On Tue, Sep 30, 2008 at 8:38 PM, Roland Smith wrote: > On Tue, Sep 30, 2008 at 07:18:32PM +0300, EforeZZ wrote: > > Hello all, > > > > Is it possible to mount the samba share //pc/share/folder? > > It should be. > > > I have troubles in FreeBSD: > > I'm able to mount only //pc/share (not //pc/share/folder) and I do not > have > > read access to read contents of "//pc/share" and FreeBSD does not let me > to > > change the directory to "//pc/share/folder". > > Windows allows to mount //pc/share/folder and I have no access problems > in > > Windows. > > Is there any solution for FreeBSD? > > Read the mount_smbfs manual page (with the command 'man mount_smbfs'). A > quick look tells us that you'll need to use //user@pc/share/folder > instead of //pc/share/folder. Other options allow you to configure > access rights and owner/group attributes. > I do use //user@pc/share/folder for mounting but I get //user@pc/share mounted instead of //user@pc/share/folder. It seems that the "/folder" part is ignored. EforeZZ From frank at shute.org.uk Wed Oct 1 09:57:25 2008 From: frank at shute.org.uk (Frank Shute) Date: Wed Oct 1 09:57:33 2008 Subject: error compiling kernel In-Reply-To: <669615.28563.qm@web51111.mail.re2.yahoo.com> References: <20080929123132.GA59725@melon.esperance-linux.co.uk> <669615.28563.qm@web51111.mail.re2.yahoo.com> Message-ID: <20081001095712.GA6862@melon.esperance-linux.co.uk> On Wed, Oct 01, 2008 at 12:24:48AM -0700, Dino Vliet wrote: > > > > --- On Mon, 9/29/08, Frank Shute wrote: > > On Sun, Sep 28, 2008 at 11:09:01PM -0700, Dino Vliet wrote: > > > > Hi all, > > > > In an effort to compile a new kernel on my amd64 system running > > freebsd 6.3 I get the following error message after the make > > buildkernel KERNCONF=MYKERNEL step. > > > > The error I get is: > > > > /usr/src/sys/dev/usb/udbp.c: 426: undefined reference to > 'ng_parse_int32_type' udbp.o (.rodata + > 0xc0):/usr/src/sys/dev/usb/udbp.c: 438: undefined reference to > 'ng_parse_int32_type' > > > > *** Error code 1 > > Stop in /usr/obj/usr/src/sys/MYKERNEL > > *** Error code 1 > > Stop in /usr/src > > *** Error code 1 > > Stop in /usr/src > > > > My kernel configuration called MYKERNEL looks like this: > > > > # > > # GENERIC -- Generic kernel configuration file for FreeBSD/amd64 > > # > > > > > options SCHED_ULE # ULE scheduler > > #options SCHED_4BSD # 4BSD scheduler > > > > > What is causing this error? > > > > Brgds > > Dino > > device fwe # Ethernet over FireWire (non-standard!) > > Dino, > > I don't know if it's possibly related but IIRC the SCHED_ULE scheduler > is deprecated for use in 6.* (I stand to be corrected!:) although I > believe it works with 7.* > > So I suggest trying SCHED_4BSD and see if that works better. > > As to the specific error, it looks like you might need: > > options NETGRAPH > > in your kernel conf. See: netgraph(4) > > You might also want to use the tag: RELENG_6_4 for your source > supfile. I'm pretty sure there is a 6.4 branch now the BETA has come > out. > > Regards, > > -- > > Frank > > Hi Frank, > > It worked! Excellent! > Thanks for the tips. I've reenabled sched_bsd and added > options NETGRAPH. The latter is strange though, because I managed > to compile the p1 kernel in the past without it, so why would that > fail now? Not too sure but there must be something in your kernel conf that requires netgraph (I don't use it). To be on the safe side, it's always best to compile GENERIC unless you're trying to screw the last drop of performance from your machine. > > Anyway, it worked so I can look at my other problems now. > This machine was disconnected from the internet a few months so I > had a very long package list that needed to be updated. Take a good look at /usr/ports/UPDATING and work on updating the ports/packages mentioned in there. Then hit the ports with lots of dependencies with portupgrade. E.g: # portupgrade -vrR firefox (Assuming you're using it as a workstation & like Firefox). Then I'd use the -a flag for portupgrade to hit the rest of the ports/packages. Use the -P flag if you want packages. > > Thanks for your reply! No worries :) Glad to be of help. > > Dino > Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html From odhiambo at gmail.com Wed Oct 1 10:01:17 2008 From: odhiambo at gmail.com (Odhiambo Washington) Date: Wed Oct 1 10:01:23 2008 Subject: FreeBSD command to make image of the active partition and a command to restore it? In-Reply-To: References: Message-ID: <991123400810010301xc64e027wf4741c7709cd8267@mail.gmail.com> On Wed, Oct 1, 2008 at 10:41 AM, Mike Price wrote: > FreeBSD command to make image of the active partition and a command to > restore it? At what point in time? :-) I always make a backup of a partition to another disk like this: For exampe, if it is the root partition ... (/) dump -L0af - / | (cd /where/the/other/partition/is/mounted; restore -rf -) PS: Next time don't ask your questions like quizes. Explain the problem and we'll tell you the possible solutions. -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ "Oh My God! They killed init! You Bastards!" --from a /. post From c46r1-c46r1 at hotmail.com Wed Oct 1 10:03:34 2008 From: c46r1-c46r1 at hotmail.com (jdjka sdfgsdfg) Date: Wed Oct 1 10:03:42 2008 Subject: intel pro/wireless 2200 card? Message-ID: hi everybody; i am a freshman on freebsd ; i want to ask a question about intel pro wireless 2200 BG; i couldnt make the card on my system whatever i did.... my outputs are like this.......i read lots of documents but i couldnt find anyhting and unfortunately my system is not updated because i cant use the internet connection on wireless...can you please tell me what i have to do step by step....thanks or your helps.... dmesg output; Copyright (c) 1992-2008 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 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) M processor 1.86GHz (1866.74-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6d8 Stepping = 8 Features=0xafe9fbff Features2=0x180 real memory = 536674304 (511 MB) avail memory = 511258624 (487 MB) ACPI APIC Table: ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) hptrr: HPT RocketRAID controller driver v1.1 (Feb 24 2008 19:59:27) acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 1ff00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 cpu0: on acpi0 est0: on cpu0 p4tcc0: on cpu0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: irq 16 at device 1.0 on pci0 pci3: on pcib1 vgapci0: port 0xd800-0xd8ff mem 0xd0000000-0xd7ffffff,0xffdf0000-0xffdfffff irq 16 at device 0.0 on pci3 pci0: at device 27.0 (no driver attached) pcib2: irq 16 at device 28.0 on pci0 pci2: on pcib2 uhci0: port 0xe480-0xe49f irq 23 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xe800-0xe81f irq 19 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xe880-0xe89f irq 18 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: on uhci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered uhci3: port 0xec00-0xec1f irq 16 at device 29.3 on pci0 uhci3: [GIANT-LOCKED] uhci3: [ITHREAD] usb3: on uhci3 usb3: USB revision 1.0 uhub3: on usb3 uhub3: 2 ports with 2 removable, self powered ehci0: mem 0xffeffc00-0xffefffff irq 23 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb4: EHCI version 1.0 usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4: on ehci0 usb4: USB revision 2.0 uhub4: on usb4 uhub4: 8 ports with 8 removable, self powered pcib3: at device 30.0 on pci0 pci1: on pcib3 pci1: at device 3.0 (no driver attached) fwohci0: mem 0xffcff000-0xffcff7ff,0xffcf8000-0xffcfbfff irq 18 at device 10.0 on pci1 fwohci0: [FILTER] fwohci0: OHCI version 1.10 (ROM=1) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:03:0d:49:50:e3:a8:0a fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 dcons_crom0: on firewire0 dcons_crom0: bus_addr 0x1280000 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:03:0d:e3:a8:0a fwe0: Ethernet address: 02:03:0d:e3:a8:0a fwip0: on firewire0 fwip0: Firewire address: 00:03:0d:49:50:e3:a8:0a @ 0xfffe00000000, S400, maxrec 2048 sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: BUS reset fwohci0: node_id=0xc000ffc0, gen=1, CYCLEMASTER mode rl0: port 0xc800-0xc8ff mem 0xffcffc00-0xffcffcff irq 19 at device 12.0 on pci1 miibus0: on rl0 rlphy0: PHY 0 on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:03:0d:39:3e:af rl0: [ITHREAD] isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.2 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] pci0: at device 31.3 (no driver attached) acpi_lid0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 acpi_tz0: on acpi0 battery0: on acpi0 acpi_acad0: 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 IntelliMouse, device ID 3 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcefff,0xcf000-0xcffff pnpid ORM0000 on isa0 ppc0: parallel port not found. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 8250 or not responding sio0: [FILTER] sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 1866743624 Hz quality 800 Timecounters tick every 1.000 msec hptrr: no controller detected.firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) ad0: 76319MB at ata0-master SATA150 acd0: DVDR at ata1-master UDMA33 Trying to mount root from ufs:/dev/ad0s3a drm0: on vgapci0 info: [drm] Initialized radeon 1.25.0 20060524 info: [drm] Setting GART location based on new memory map info: [drm] Loading R300 Microcode info: [drm] writeback test succeeded in 1 usecs drm0: [ITHREAD] umass0: on uhub4 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 250MB (512000 512 byte sectors: 64H 32S/T 250C) umass0: at uhub4 port 2 (addr 2) disconnected (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry umass0: detached Waiting (max 60 seconds) for system process `vnlru? to stop...done Waiting (max 60 seconds) for system process `bufdaemon? to stop...done Waiting (max 60 seconds) for system process `syncer? to stop... Syncing disks, vnodes remaining...2 3 0 0 0 done All buffers synced. Copyright (c) 1992-2008 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 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) M processor 1.86GHz (1866.74-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6d8 Stepping = 8 Features=0xafe9fbff Features2=0x180 real memory = 536674304 (511 MB) avail memory = 511242240 (487 MB) ACPI APIC Table: ioapic0 irqs 0-23 on motherboard iwi_bss: You need to read the LICENSE file in /usr/share/doc/legal/intel_iwi/. iwi_bss: If you agree with the license, set legal.intel_iwi.license_ack=1 in /boot/loader.conf. module_register_init: MOD_LOAD (iwi_bss_fw, 0xc0d185a0, 0) error 1 iwi_ibss: You need to read the LICENSE file in /usr/share/doc/legal/intel_iwi/. iwi_ibss: If you agree with the license, set legal.intel_iwi.license_ack=1 in /boot/loader.conf. module_register_init: MOD_LOAD (iwi_ibss_fw, 0xc0d495a0, 0) error 1 iwi_monitor: You need to read the LICENSE file in /usr/share/doc/legal/intel_iwi/. iwi_monitor: If you agree with the license, set legal.intel_iwi.license_ack=1 in /boot/loader.conf. module_register_init: MOD_LOAD (iwi_monitor_fw, 0xc0d795a0, 0) error 1 kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) hptrr: HPT RocketRAID controller driver v1.1 (Feb 24 2008 19:59:27) acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 1ff00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 cpu0: on acpi0 est0: on cpu0 p4tcc0: on cpu0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: irq 16 at device 1.0 on pci0 pci3: on pcib1 vgapci0: port 0xd800-0xd8ff mem 0xd0000000-0xd7ffffff,0xffdf0000-0xffdfffff irq 16 at device 0.0 on pci3 pci0: at device 27.0 (no driver attached) pcib2: irq 16 at device 28.0 on pci0 pci2: on pcib2 uhci0: port 0xe480-0xe49f irq 23 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xe800-0xe81f irq 19 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xe880-0xe89f irq 18 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: on uhci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered uhci3: port 0xec00-0xec1f irq 16 at device 29.3 on pci0 uhci3: [GIANT-LOCKED] uhci3: [ITHREAD] usb3: on uhci3 usb3: USB revision 1.0 uhub3: on usb3 uhub3: 2 ports with 2 removable, self powered ehci0: mem 0xffeffc00-0xffefffff irq 23 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb4: EHCI version 1.0 usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3 usb4: on ehci0 usb4: USB revision 2.0 uhub4: on usb4 uhub4: 8 ports with 8 removable, self powered pcib3: at device 30.0 on pci0 pci1: on pcib3 iwi0: mem 0xffcfe000-0xffcfefff irq 21 at device 3.0 on pci1 iwi0: Ethernet address: 00:13:ce:5d:6d:32 iwi0: [ITHREAD] fwohci0: mem 0xffcff000-0xffcff7ff,0xffcf8000-0xffcfbfff irq 18 at device 10.0 on pci1 fwohci0: [FILTER] fwohci0: OHCI version 1.10 (ROM=1) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:03:0d:49:50:e3:a8:0a fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 dcons_crom0: on firewire0 dcons_crom0: bus_addr 0x1280000 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:03:0d:e3:a8:0a fwe0: Ethernet address: 02:03:0d:e3:a8:0a fwip0: on firewire0 fwip0: Firewire address: 00:03:0d:49:50:e3:a8:0a @ 0xfffe00000000, S400, maxrec 2048 sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: BUS reset fwohci0: node_id=0xc000ffc0, gen=1, CYCLEMASTER mode rl0: port 0xc800-0xc8ff mem 0xffcffc00-0xffcffcff irq 19 at device 12.0 on pci1 miibus0: on rl0 rlphy0: PHY 0 on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:03:0d:39:3e:af rl0: [ITHREAD] isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.2 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] pci0: at device 31.3 (no driver attached) acpi_lid0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 acpi_tz0: on acpi0 battery0: on acpi0 acpi_acad0: 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 IntelliMouse, device ID 3 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcefff,0xcf000-0xcffff pnpid ORM0000 on isa0 ppc0: parallel port not found. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 8250 or not responding sio0: [FILTER] sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 1866740226 Hz quality 800 Timecounters tick every 1.000 msec hptrr: no controller detected.firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) ad0: 76319MB at ata0-master SATA150 acd0: DVDR at ata1-master UDMA33 Trying to mount root from ufs:/dev/ad0s3a drm0: on vgapci0 info: [drm] Initialized radeon 1.25.0 20060524 info: [drm] Setting GART location based on new memory map info: [drm] Loading R300 Microcode info: [drm] writeback test succeeded in 1 usecs drm0: [ITHREAD] umass0: on uhub4 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 250MB (512000 512 byte sectors: 64H 32S/T 250C) ifconfig output; iwi0: flags=8802 metric 0 mtu 1500 ether 00:13:ce:5d:6d:32 media: IEEE 802.11 Wireless Ethernet autoselect status: no carrier ssid "" channel 1 (2412 Mhz 11b) authmode OPEN privacy OFF bmiss 10 scanvalid 60 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi11b 7 roam:rate11b 1 bintval 0 fwe0: flags=8943 metric 0 mtu 1500 options=8 ether 02:03:0d:e3:a8:0a inet 0.0.0.0 netmask 0xff000000 broadcast 255.255.255.255 ch 1 dma 0 fwip0: flags=8802 metric 0 mtu 1500 lladdr 0.3.d.49.50.e3.a8.a.a.2.ff.fe.0.0.0.0 rl0: flags=8843 metric 0 mtu 1500 options=8 ether 00:03:0d:39:3e:af media: Ethernet autoselect (none) status: no carrier 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 _________________________________________________________________ Windows Live Messenger'?n i?in ?cretsiz 30 ?fadeyi y?kle http://www.livemessenger-emoticons.com/funfamily/tr-tr/ From koitsu at FreeBSD.org Wed Oct 1 10:03:44 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Wed Oct 1 10:03:51 2008 Subject: Setting up gmirror In-Reply-To: <20081001111736.O8258@wojtek.tensor.gdynia.pl> References: <340a29540809302134p2414e3cfw6a0694026e57d879@mail.gmail.com> <20081001071150.GA13554@icarus.home.lan> <20081001092139.D7677@wojtek.tensor.gdynia.pl> <20081001090414.GA15939@icarus.home.lan> <20081001111736.O8258@wojtek.tensor.gdynia.pl> Message-ID: <20081001100341.GA16582@icarus.home.lan> On Wed, Oct 01, 2008 at 11:19:01AM +0200, Wojciech Puchar wrote: >> And what exactly do you classify controllers such as the Promise TX4310 >> and the Promise S150 SX4 as? The TX4310 could be classified as >> "software RAID", but a few of the features are offloaded onto the >> controller. The SX4 is the same way, but has actual on-board cache. > > si it do something by hardware. anyway - i don't think it will actually > make it faster under FreeBSD (contrary to windoze). > > it's simply not worth money. > >> You like to declare everything as "software RAIDs", while I like to >> discern the difference between them using (what I believe to be) more >> accurate terminology: >> >> BIOS-level RAID (Adaptec HostRAID, Intel MatrixRAID; "chipset" RAID) >> OS-based RAID (gvinum, ccd, etc.) > > what are the difference between 1 and 2? > > there are none. With regards to Intel MatrixRAID, you're correct -- all the feature does is provide disk pairing features via the southbridge, and provide an option ROM which configures and manages metadata on the disks for the OS to read and make use of. All the I/O operations still have to go through the CPU, and nothing is off-loaded. The reason I discern the difference is because if you tell a user "yes, your Intel MatrixRAID is software RAID", they become confused, since the feature is provided on a dedicated chip (ICHx). "But software RAID is done in the operating system, like gvinum!" There is also one difference which you're forgetting: booting. FreeBSD has a long-standing history of not being able to boot off of most anything other than UFS and gmirror; I believe gvinum might work, but I've only been able to find confirmation that gmirror does. I'm under the impression gstripe doesn't, and ZFS definitely does not. By using an additional (lower) layer that the OS has no control over (e.g. MatrixRAID), you can get around this limitation, because the OS considers the disks a single device (e.g. /dev/ar0). Of course, you run into other problems using MatrixRAID on FreeBSD, specifically when a disk fails (see my Wiki page), and the negatives there easily outweigh the positives. If you have a RAID-0 configuration you want to boot from, I've no idea what will work. If you have a RAID-1 configuration you want to boot from, gmirror is a good choice. If you have a RAID-5 or other configuration you want to boot from, a software or hardware RAID controller would be sufficient (see above). -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From m.seaman at infracaninophile.co.uk Wed Oct 1 10:05:09 2008 From: m.seaman at infracaninophile.co.uk (Matthew Seaman) Date: Wed Oct 1 10:05:17 2008 Subject: Optimal File System config for 2.5TB RAID5 In-Reply-To: <20081001090832.GB15939@icarus.home.lan> References: <48E21C66.8080407@FreeBSD.org> <20080930161407.E16761@wojtek.tensor.gdynia.pl> <20080930205435.B20033@wojtek.tensor.gdynia.pl> <00ee01c92346$69508fa0$3bf1aee0$@com> <20080930224447.GA58065@icarus.home.lan> <20081001083637.C7317@wojtek.tensor.gdynia.pl> <48E33CC6.7050504@infracaninophile.co.uk> <20081001090832.GB15939@icarus.home.lan> Message-ID: <48E34B4A.3060007@infracaninophile.co.uk> -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Jeremy Chadwick wrote: | On Wed, Oct 01, 2008 at 10:03:02AM +0100, Matthew Seaman wrote: |> I've occasionally wondered why there isn't a simple device commonly available |> which consists of a few hundred MB of battery backed (or otherwise persistent |> in the face of power loss) RAM that can plug into a PCI slot and fulfil that |> function generically for any disks in a machine. Solid state hard drives are |> getting there, but they're still too expensive and not really fast enough yet. | | You mean this? | | http://en.wikipedia.org/wiki/I-RAM | Yeah -- pretty much that. Although I'd prefer something that doesn't try and pretend to be a hard drive -- after all, there's no reason to limit the thing to the performance envelope of a SATA bus. If you want solid state drives, nowadays there are devices based on compact flash that fit in a normal 3.5" drive bay, speak SATA and don't need standby power. Latency is much better than a normal HDD, but probably not so good as the I-RAM you pointed out. 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREDAAYFAkjjS0oACgkQ3jDkPpsZ+VaS5ACePK+3KUc+Kiu612I0JTqWJz9h WgoAmgNqC3/tNCmcfwogmFJZqs6gP4zF =nj5y -----END PGP SIGNATURE----- From crazy at anvic-center.nkz.ru Wed Oct 1 10:18:40 2008 From: crazy at anvic-center.nkz.ru (Andrey Zaytcev) Date: Wed Oct 1 10:18:48 2008 Subject: "ipfw count" unexpected results Message-ID: <974790532.20081001175649@mail.ru> Please take a look at this "ipfw show" result: 00050 4439 1302601 tee 20001 ip from any to any via tun0 00100 2695 805238 count ip from any to any via tun0 in 00101 1713 489367 count ip from any to any via tun0 out 00103 0 0 deny ip from 127.0.0.0/8 to any 00105 0 0 deny ip from 192.168.1.0/24,192.168.0.0/24 to any via tun0 in 00106 0 0 deny ip from 192.168.1.0/24,192.168.0.0/24 to any via tun2 in 00107 0 0 deny ip from 192.168.1.0/24,192.168.0.0/24 to any via tun1 in 00108 2714 812754 count ip from any to any via tun0 in 00109 1725 489847 count ip from any to any via tun0 out 00116 0 0 allow tcp from any to xx.xx.xx.xx dst-port yy.yy.yy.yy 00117 0 0 fwd xx.xx.xx.xx tcp from yy.yy.yy.yy zz.zz.zz.zz to any 00118 0 0 fwd xx.xx.xx.xx1 tcp from yy.yy.yy.yy1 zz.zz.zz.zz1 to any 00118 0 0 fwd xx.xx.xx.xx2 tcp from yy.yy.yy.yy2 zz.zz.zz.zz2 to any 00119 0 0 fwd xx.xx.xx.xx3 tcp from yy.yy.yy.yy3 to any dst-port zz.zz.zz.zz3 00120 0 0 deny log logamount 65534 tcp from not xx.xx.xx.xx to yy.yy.yy.yy dst-port zz.zz.zz.zz via tun2 00121 0 0 deny log logamount 65534 tcp from not xx.xx.xx.xx to yy.yy.yy.yy1 dst-port zz.zz.zz.zz1 via tun0 00122 0 0 deny log logamount 65534 tcp from not xx.xx.xx.xx to yy.yy.yy.yy1 dst-port zz.zz.zz.zz2 via tun0 00123 0 0 deny log logamount 65534 tcp from not xx.xx.xx.xx to yy.yy.yy.yy2 dst-port zz.zz.zz.zz3 via tun0,tun2,tun1 00124 0 0 deny log logamount 65534 tcp from not xx.xx.xx.xx to yy.yy.yy.yy2 dst-port zz.zz.zz.zz1 via tun1 00125 0 0 deny log logamount 65534 tcp from not xx.xx.xx.xx to yy.yy.yy.yy3 dst-port zz.zz.zz.zz1 via tun1 00130 0 0 allow tcp from xx.xx.xx.xx to yy.yy.yy.yy dst-port zz.zz.zz.zz5 keep-state 00140 2360 777364 count ip from any to any via tun0 in 00141 1416 113119 count ip from any to any via tun0 out The question is: why rules 100 and 101 are not equal to 108 and 109 and rules 140 and 141 ? It seems only rules 108 and 109 shows correct information, because 108+109 = 50. From rock_on_the_web at comcen.com.au Wed Oct 1 10:41:56 2008 From: rock_on_the_web at comcen.com.au (Da Rock) Date: Wed Oct 1 10:42:04 2008 Subject: mysql rc script failure - correction: most installed rc scripts not running manually In-Reply-To: <84763862@bb.ipt.ru> References: <1222839623.8573.5.camel@laptop1.herveybayaustralia.com.au> <1222847649.8573.11.camel@laptop1.herveybayaustralia.com.au> <84763862@bb.ipt.ru> Message-ID: <1222857587.27652.8.camel@laptop1.herveybayaustralia.com.au> On Wed, 2008-10-01 at 12:57 +0400, Boris Samorodov wrote: > Da Rock writes: > > On Wed, 2008-10-01 at 15:40 +1000, Da Rock wrote: > > >> Has anyone else had trouble with starting mysql server with the rc > >> script? > >> > >> I've only just installed from ports (as a dependency, mind) and > >> technically it should just start when you run the rc script - it sets up > >> the db dirs and stuff so it can just run. But I can't get it to do the > >> setup stuff automatically, and so the script fails. I've done the setup > >> manually before so its no real biggy, but I imagine others would be more > >> than a little frustrated. > >> > >> Anyone else have this trouble? I just realised I had to do this last > >> time too... > >> > >> For reference: I'm starting the script manually for testing at this > >> point (if that makes a difference- which I believe it shouldn't). > > > > Manually running port installed rc scripts is not working manually. I'm > > trying mysql, courier-imap, and I've tried isc-dhcp in the past. None of > > these will work when run manually- even on different machines and bsd > > versions (all 6.x). > > > > Is it just me? > > Sorry for may be a dumb question: did you define an > _enable="YES" at /etc/rc.conf[.local]? For more info > you may look at the script you are trying to start. So are you saying I can't start a script manually without enabling it in rc.conf? I was not under that impression... I thought it could be started manually for testing before setting it for automatic startup- based on my reading in the handbook and man pages. From ertr1013 at student.uu.se Wed Oct 1 10:53:41 2008 From: ertr1013 at student.uu.se (Erik Trulsson) Date: Wed Oct 1 10:53:48 2008 Subject: mysql rc script failure - correction: most installed rc scripts not running manually In-Reply-To: <1222857587.27652.8.camel@laptop1.herveybayaustralia.com.au> References: <1222839623.8573.5.camel@laptop1.herveybayaustralia.com.au> <1222847649.8573.11.camel@laptop1.herveybayaustralia.com.au> <84763862@bb.ipt.ru> <1222857587.27652.8.camel@laptop1.herveybayaustralia.com.au> Message-ID: <20081001105337.GA47338@owl.midgard.homeip.net> On Wed, Oct 01, 2008 at 08:39:47PM +1000, Da Rock wrote: > > On Wed, 2008-10-01 at 12:57 +0400, Boris Samorodov wrote: > > Da Rock writes: > > > On Wed, 2008-10-01 at 15:40 +1000, Da Rock wrote: > > > > >> Has anyone else had trouble with starting mysql server with the rc > > >> script? > > >> > > >> I've only just installed from ports (as a dependency, mind) and > > >> technically it should just start when you run the rc script - it sets up > > >> the db dirs and stuff so it can just run. But I can't get it to do the > > >> setup stuff automatically, and so the script fails. I've done the setup > > >> manually before so its no real biggy, but I imagine others would be more > > >> than a little frustrated. > > >> > > >> Anyone else have this trouble? I just realised I had to do this last > > >> time too... > > >> > > >> For reference: I'm starting the script manually for testing at this > > >> point (if that makes a difference- which I believe it shouldn't). > > > > > > Manually running port installed rc scripts is not working manually. I'm > > > trying mysql, courier-imap, and I've tried isc-dhcp in the past. None of > > > these will work when run manually- even on different machines and bsd > > > versions (all 6.x). > > > > > > Is it just me? > > > > Sorry for may be a dumb question: did you define an > > _enable="YES" at /etc/rc.conf[.local]? For more info > > you may look at the script you are trying to start. > > So are you saying I can't start a script manually without enabling it in > rc.conf? I was not under that impression... I thought it could be > started manually for testing before setting it for automatic startup- > based on my reading in the handbook and man pages. Yes, you can. Use forcestart/forcestop instead of start/stop when running the rc script if you do not have it enabled in rc.conf. This is documented in rc(8) (and is very easily overlooked if you don't know what you are looking for.) -- Erik Trulsson ertr1013@student.uu.se From juancr at dsa.es Wed Oct 1 10:55:22 2008 From: juancr at dsa.es (DSA - JCR) Date: Wed Oct 1 10:55:29 2008 Subject: Securing system with kern.securelevel Message-ID: <54674.217.114.136.134.1222857247.squirrel@mail.dsa.es> HI to all FreeBSD 6.3 i386 I would like to use securelevel to secure a backup schedluded box made with FreeBSD. This box mount and unmount external USB disk where the backup is made once a week. Which would be the correct secure level ? 1, 2, or 3? I don't want nobody modify scripts and root things, like adding a user to make the thing by itself, ... or modify my crontab scripts, etc... Also, where i must put the kern.securelevel? I didnt understood very well in the manual and handbook in which part of the bootin process (rc) i must put the line in rc.conf? Thanks in advance Juan Coru?a Desarrollo de Software Atlantico From tamarlea at gmail.com Wed Oct 1 11:02:22 2008 From: tamarlea at gmail.com (Tamar Lea) Date: Wed Oct 1 11:02:33 2008 Subject: Patching php port Message-ID: <1ab57dc80810010337i646141e2hfabf00cf2aae186c@mail.gmail.com> Hello all I am trying to install the php 5.2.6 port with thttpd. I have a patch file to make it compile with version 2.25b, because the standard version only works with 2.21. The patch works but the files always get overwritten when I run the build again. How do I do this? These are the commands I used cd /usr/ports/lang/php5 make extract make patch cd work patch -p0 < ~/ports/thttpd.diff vi php-5.2.6/configure # and other checks to see if the patch worked cd .. make install This results in an error in the configure file, which has reverted to the original. What am I doing wrong? Thanks for help Tamar From koitsu at FreeBSD.org Wed Oct 1 11:06:58 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Wed Oct 1 11:07:05 2008 Subject: Patching php port In-Reply-To: <1ab57dc80810010337i646141e2hfabf00cf2aae186c@mail.gmail.com> References: <1ab57dc80810010337i646141e2hfabf00cf2aae186c@mail.gmail.com> Message-ID: <20081001110656.GA18892@icarus.home.lan> On Wed, Oct 01, 2008 at 11:37:29AM +0100, Tamar Lea wrote: > Hello all > > I am trying to install the php 5.2.6 port with thttpd. I have a patch file > to make it compile with version 2.25b, because the standard version only > works with 2.21. The patch works but the files always get overwritten when I > run the build again. How do I do this? > > These are the commands I used > > cd /usr/ports/lang/php5 > make extract > make patch > cd work > patch -p0 < ~/ports/thttpd.diff > vi php-5.2.6/configure # and other checks to see if the patch worked > cd .. > make install > > This results in an error in the configure file, which has reverted to the > original. What am I doing wrong? Never modify "configure" scripts. You need to modify the autoconf template the configure script is built off of. In the case of lang/php5, autoconf is run to build the configure script during the "make configure" stage (which is being executed during part of "make install"). Note the USE_AUTOTOOLS line in the Makefile. Make your changes to configure.in. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From valentin.bud at gmail.com Wed Oct 1 11:07:24 2008 From: valentin.bud at gmail.com (Valentin Bud) Date: Wed Oct 1 11:07:31 2008 Subject: mysql rc script failure - correction: most installed rc scripts not running manually In-Reply-To: <1222857587.27652.8.camel@laptop1.herveybayaustralia.com.au> References: <1222839623.8573.5.camel@laptop1.herveybayaustralia.com.au> <1222847649.8573.11.camel@laptop1.herveybayaustralia.com.au> <84763862@bb.ipt.ru> <1222857587.27652.8.camel@laptop1.herveybayaustralia.com.au> Message-ID: <139b44430810010346s5d0ac48dy8f24165c81eabe46@mail.gmail.com> On Wed, Oct 1, 2008 at 12:39 PM, Da Rock wrote: > > On Wed, 2008-10-01 at 12:57 +0400, Boris Samorodov wrote: > > Da Rock writes: > > > On Wed, 2008-10-01 at 15:40 +1000, Da Rock wrote: > > > > >> Has anyone else had trouble with starting mysql server with the rc > > >> script? > > >> > > >> I've only just installed from ports (as a dependency, mind) and > > >> technically it should just start when you run the rc script - it sets > up > > >> the db dirs and stuff so it can just run. But I can't get it to do the > > >> setup stuff automatically, and so the script fails. I've done the > setup > > >> manually before so its no real biggy, but I imagine others would be > more > > >> than a little frustrated. > > >> > > >> Anyone else have this trouble? I just realised I had to do this last > > >> time too... > > >> > > >> For reference: I'm starting the script manually for testing at this > > >> point (if that makes a difference- which I believe it shouldn't). > > > > > > Manually running port installed rc scripts is not working manually. I'm > > > trying mysql, courier-imap, and I've tried isc-dhcp in the past. None > of > > > these will work when run manually- even on different machines and bsd > > > versions (all 6.x). > > > > > > Is it just me? > > > > Sorry for may be a dumb question: did you define an > > _enable="YES" at /etc/rc.conf[.local]? For more info > > you may look at the script you are trying to start. > > So are you saying I can't start a script manually without enabling it in > rc.conf? I was not under that impression... I thought it could be > started manually for testing before setting it for automatic startup- > based on my reading in the handbook and man pages. > Yes you can without put it in /etc/rc.conf. Use the force word. # /usr/local/etc/rc.d/mysql-server forcestart all the best, v > > _______________________________________________ > 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 k0802647 at telus.net Wed Oct 1 11:20:40 2008 From: k0802647 at telus.net (Carl) Date: Wed Oct 1 11:20:48 2008 Subject: Cannot create custom FreeBSD 7.0 install CD for serial console Message-ID: <48E345AF.6050409@telus.net> I've been trying to create a modified FreeBSD 7.0 install CD that will allow me to do installations entirely via the serial console on a headless system. Lots of digging on the Internet, reading the handbook, and I've gotten nowhere fast. The following process was my best hope, but it still isn't making a serial console install possible... In a shell on another older FreeBSD system, after downloading the Disc 1 install ISO: # cd /data # mdconfig -a -t vnode -f /data/7.0-RELEASE-i386-disc1.iso -u 1 # mount -t cd9660 /dev/md1 /mnt # mkdir headlessISO # tar -C /mnt -pcf - . | tar -C /data/headlessISO -pxvf - # umount /mnt # mdconfig -d -u 1 Next I verified that the following line appears in /data/headlessISO/boot/device.hints, ensuring that COM1 (sio0) may be used for console purposes: hint.sio.0.flags="0x10" Then I created a boot.config file for the root of what will be the new CD ISO: # echo "-Dh -S115200" > /data/headlessISO/boot.config I would have preferred to use "-P" in place of the above "-Dh", but I'm using an Intel S3210SHLC motherboard and either it or some bug in FreeBSD 7.0 always causes a keyboard to be detected, even when there isn't one (solutions/explanations for that would be appreciated too). Next step was to build the new ISO as follows: # mkisofs -R -J -ldots -no-emul-boot -b boot/cdboot -o /data/7.0-RELEASE-i386-disc1-headless.iso /data/headlessISO Since the old FreeBSD system has no CD writer, I transfer the new ISO to a Windoze box and burn a CD with Nero. End result is a bootable install CD that acts as if I never customized it at all. I've configured the motherboard BIOS to enable console redirection to COM1 and that works fine... until the FreeBSD boot process, whereupon everything reverts to internal console only. As a variation on the above procedure, I replaced the step in which I create boot.config with one in which I create /data/headlessISO/boot/loader.conf.local containing the following lines: boot_multicons="YES" boot_serial="YES" comconsole_speed="115200" console="comconsole,vidconsole" That, unfortunately, gets the same result. So, what am I doing wrong? Note that the creation of boot.config and some mods to the ttyd0 line in /etc/ttys appears to work fine for enabling serial console operation on this same motherboard *after* FreeBSD 7.0 has been installed to the hard drive using the internal console - it just won't work for creating an install CD. I assume I don't need any variation of the /etc/ttys mod for the custom install CD, true? FWIW, I've also taken the resultant ISOs I've created and fed them to UNetbootin (http://unetbootin.sourceforge.net/) in order to create a bootable USB flash thumb drive installer instead of a CD. This is even less successful because once control appears to go from BIOS to the installer, the screen goes blank and I'm left with nothing but an eternal blinking cursor. Am I up against another Intel S3210SHLC motherboard problem or does UNetbootin not actually live up to it's claims for FreeBSD 7.0? Anyone know? Is there anyone out there who might have experience with FreeBSD 7.0 on the Intel S3210SHLC motherboard? Is this a problematic motherboard with known problems? Carl / K0802647 From koitsu at FreeBSD.org Wed Oct 1 11:28:28 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Wed Oct 1 11:28:35 2008 Subject: Cannot create custom FreeBSD 7.0 install CD for serial console In-Reply-To: <48E345AF.6050409@telus.net> References: <48E345AF.6050409@telus.net> Message-ID: <20081001112826.GA20013@icarus.home.lan> On Wed, Oct 01, 2008 at 02:41:03AM -0700, Carl wrote: > I've been trying to create a modified FreeBSD 7.0 install CD that will > allow me to do installations entirely via the serial console on a > headless system. Lots of digging on the Internet, reading the handbook, > and I've gotten nowhere fast. Try this: http://jdc.parodius.com/freebsd/pxeboot_serial_install.html -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From wojtek at wojtek.tensor.gdynia.pl Wed Oct 1 11:31:28 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Wed Oct 1 11:31:34 2008 Subject: Setting up gmirror In-Reply-To: <20081001100341.GA16582@icarus.home.lan> References: <340a29540809302134p2414e3cfw6a0694026e57d879@mail.gmail.com> <20081001071150.GA13554@icarus.home.lan> <20081001092139.D7677@wojtek.tensor.gdynia.pl> <20081001090414.GA15939@icarus.home.lan> <20081001111736.O8258@wojtek.tensor.gdynia.pl> <20081001100341.GA16582@icarus.home.lan> Message-ID: <20081001133041.S26720@wojtek.tensor.gdynia.pl> > There is also one difference which you're forgetting: booting. for me there is no problem. simply put /boot at the beginning of mirror or small partition it's that simple From tamarlea at gmail.com Wed Oct 1 12:14:04 2008 From: tamarlea at gmail.com (Tamar Lea) Date: Wed Oct 1 12:14:12 2008 Subject: Patching php port In-Reply-To: <20081001110656.GA18892@icarus.home.lan> References: <1ab57dc80810010337i646141e2hfabf00cf2aae186c@mail.gmail.com> <20081001110656.GA18892@icarus.home.lan> Message-ID: <1ab57dc80810010514h69f6e773l3449f87894b4c065@mail.gmail.com> Thanks for your reply, Jeremy. I now understand why it didn't work, but I have absolutely no idea how to edit configure.in. I have only just figured out what my patch is doing today. I think it would be easier to tell the makefile to modify configure after the autoconf, but I don't know how to do that either. This is the patch I wish to apply: diff -pruN php-5.2.6/configure php-5.2.6-thttpd225b/configure --- php-5.2.6/configure 2007-11-08 23:36:28.000000000 +0800 +++ php-5.2.6-thttpd225b/configure 2007-12-06 13:10:13.000000000 +0800 @@ -11525,10 +11525,14 @@ if test "$PHP_THTTPD" != "no"; then patch="test -f $THTTPD/php_patched || \ (cd $THTTPD && patch -p1 < $abs_srcdir/sapi/thttpd/thttpd_patch && touch php_patched)" + elif grep thttpd.2.25b $PHP_THTTPD/version.h >/dev/null; then + patch="test -f $THTTPD/php_patched || \ + (cd $THTTPD && patch -p1 < $abs_srcdir/sapi/thttpd/thttpd-2.25b_patch && touch php_patched)" + elif grep Premium $PHP_THTTPD/version.h >/dev/null; then patch= else - { echo "configure: error: This version only supports thttpd-2.21b and Premium thttpd" 1>&2; exit 1; } + { echo "configure: error: This version only supports thttpd-2.21b, thttpd-2.25b and Premium thttpd" 1>&2; exit 1; } fi Ideally I would like to do this myself but I think the learning curve is too steep right now. Any suggestions appreciated. Tamar On Wed, Oct 1, 2008 at 12:06 PM, Jeremy Chadwick wrote: > On Wed, Oct 01, 2008 at 11:37:29AM +0100, Tamar Lea wrote: > > Hello all > > > > I am trying to install the php 5.2.6 port with thttpd. I have a patch > file > > to make it compile with version 2.25b, because the standard version only > > works with 2.21. The patch works but the files always get overwritten > when I > > run the build again. How do I do this? > > > > These are the commands I used > > > > cd /usr/ports/lang/php5 > > make extract > > make patch > > cd work > > patch -p0 < ~/ports/thttpd.diff > > vi php-5.2.6/configure # and other checks to see if the patch worked > > cd .. > > make install > > > > This results in an error in the configure file, which has reverted to the > > original. What am I doing wrong? > > Never modify "configure" scripts. You need to modify the autoconf > template the configure script is built off of. > > In the case of lang/php5, autoconf is run to build the configure script > during the "make configure" stage (which is being executed during part > of "make install"). Note the USE_AUTOTOOLS line in the Makefile. > > Make your changes to configure.in. > > -- > | Jeremy Chadwick jdc at parodius.com | > | Parodius Networking http://www.parodius.com/ | > | UNIX Systems Administrator Mountain View, CA, USA | > | Making life hard for others since 1977. PGP: 4BD6C0CB | > > From joe_tseng at hotmail.com Wed Oct 1 12:29:30 2008 From: joe_tseng at hotmail.com (Joe Tseng) Date: Wed Oct 1 12:29:37 2008 Subject: Load trends over time Message-ID: I currently maintaining some systems that run Nagios clients and the server spews out "socket timeout after 10s" msgs on occasion even when nothing is wrong. Does anyone know of any kind of tool that saves system data over time and allows for people to trend for patterns? If not, what options should I use with ps and what columns should I be capturing so I can save the resulting data via script? tia, - Joe _________________________________________________________________ See how Windows connects the people, information, and fun that are part of your life. http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/ From koitsu at FreeBSD.org Wed Oct 1 12:46:05 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Wed Oct 1 12:46:12 2008 Subject: Patching php port In-Reply-To: <1ab57dc80810010514h69f6e773l3449f87894b4c065@mail.gmail.com> References: <1ab57dc80810010337i646141e2hfabf00cf2aae186c@mail.gmail.com> <20081001110656.GA18892@icarus.home.lan> <1ab57dc80810010514h69f6e773l3449f87894b4c065@mail.gmail.com> Message-ID: <20081001124602.GA21491@icarus.home.lan> On Wed, Oct 01, 2008 at 01:14:03PM +0100, Tamar Lea wrote: > Thanks for your reply, Jeremy. I now understand why it didn't work, but I > have absolutely no idea how to edit configure.in. I have only just figured > out what my patch is doing today. I think it would be easier to tell the > makefile to modify configure after the autoconf, but I don't know how to do > that either. This is the patch I wish to apply: Welcome to the pains of the GNU autotools! Here's what you'll need: http://www.gnu.org/software/autoconf/manual/html_node/index.html You should be able to examine the configure.in file and "reverse engineer" how to accomplish what you need. Remember: it's just a mix of sh, m4, and macros. Don't let it diminish your morale. :-) -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From walt at relnor.com Wed Oct 1 12:58:44 2008 From: walt at relnor.com (Walter Venable) Date: Wed Oct 1 12:58:52 2008 Subject: Kernel panic! 7.0-RELEASE-p4 Message-ID: <8dfae1c10810010534h2feb81eetd3f690f30e893611@mail.gmail.com> Our box, without readily obvious provocation, started doing this today: Panic: softdep_setup_inomapdep: dependency for new inode already exists. cpuid: 0 physical memory: 1971 MB dumping 78MB: 63 47 31 15 The system then immediately reboots, and hits the panic, reboots, etc. What can I do?? From dino_vliet at yahoo.com Wed Oct 1 13:18:06 2008 From: dino_vliet at yahoo.com (Dino Vliet) Date: Wed Oct 1 13:18:13 2008 Subject: Setting up gmirror Message-ID: <984631.87587.qm@web51102.mail.re2.yahoo.com> Wednesday, October 1, 2008 6:34 AM From: "Andrew Falanga" To: "freebsd-questions@freebsd.org" Hi, I've just finished setting up a new web server, and if I get my DNS stuff correct hopefully an e-mail server too, for my church. Originally, the intention was to use RAID1 on the MOBO.? However, the RAID controller on the MOBO consistently tried to make the SATA DVD drive part of the RAID array and wouldn't boot the FreeBSD boot disk. So, at the suggestion of another respondent here, I've decided to use gmirror. Now, it seems that gmirror is, perhaps, newer to FreeBSD than the software RAID stuff in the Handbook.? That mentions ccd(4) and doesn't make any mention of gmirror(8).? It seems like gmirror is rather easy to work with, and more important, easy to recover from is hardware fails.? In any event, I want to make sure I'm understanding the manual page correctly because I don't have anything else to test this on except the churches computer.? We have two Seagate 250gb SATA drives. Identical drive models so their sizes are the same.? Is this the command, from gmirror(8), the one I'll want to use? ? ???Create a mirror on disk with valid data (note that the last sector of the ? ???disk will be overwritten).? Add another disk to this mirror, so it will ? ???be synchronized with existing disk: ??? ???gmirror label -v -b round-robin data da0 ??? ???gmirror insert data da1 Though in my case, da0 and da1 will be ad4 and ad5.? This seems to be the one I'm looking for, I'm just scared of wiping out more than I bargain for. Andy -- A: Because it messes up the order in which people normally read text. Q: Why is it such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? ************** ? Hi Andy, ? Although I assume you can't start from scratch, I think the article on this topic?by the famous Dru Lavigne is very good: ? http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html ? This is what I've used to do it. Now I did a google search and found: ? http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html?page=2 ? And gmirror is in the handbook, if found it in: ? http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-mirror.html ? So these sources will give you a lot of knowledge. ? I swear by gmirror, I had very good experience with it and will use it in the future again. I just need to find some time to attach the two identical HDD's to my via c7 system. ? Brgds Dino From jalmberg at identry.com Wed Oct 1 13:25:51 2008 From: jalmberg at identry.com (John Almberg) Date: Wed Oct 1 13:25:58 2008 Subject: Best way to back up mysql database In-Reply-To: <94136a2c0810010201y6d561828lb125419de1613aee@mail.gmail.com> References: <835F48BA-494E-44A0-8D2B-D9F139AB2125@identry.com> <94136a2c0810010201y6d561828lb125419de1613aee@mail.gmail.com> Message-ID: <81F44C16-59C8-4A44-AE2A-B9F233834383@identry.com> So, I thought I would post my ruby script for doing this backup... It's a little verbose for some tastes, but I like to be able to see what's happening in a script, blow by blow. This script rotates the backups according to the day of the month, so you get roughly 30 days backup. It also moves the backup to a remote backup server, keeping the latest backup on the local machine for one day. It also sends emails in case of error, and one email for success, to give you that warm and fuzzy feeling that comes from having a good backup. -- John ------------ #!/usr/local/bin/ruby debug = true day_of_month = Time.now.day backup_file = "all.mysql."+day_of_month.to_s+".txt" remote_backup_location = "user@backup_host.com:backup_dir" # user must be able to login to backup_host.com without password db_user = "username" db_pass = "password" db_host = "dbhost" notify_email = "you@example.com" # ----- no configuration below this line ---------------- # remove yesterday's local backup puts "removing previous backups" if debug `rm all.mysql.*.gz` puts "remove status: #{$?.exitstatus}" if debug # create backup file backup_command = "/usr/local/bin/mysqldump -Q -u#{db_user} -p# {db_pass} -h#{db_host} --all-databases >#{backup_file}" puts backup_command if debug `#{backup_command}` puts "backup status: #{$?.exitstatus}" if debug unless $?.exitstatus == 0 `echo "Mysql backup failed with status: #{$?.exitstatus}" | mail - s "Mysql_backup Error" #{notify_email}` exit end # zip it zip_command = "/usr/bin/gzip #{backup_file}" puts zip_command if debug `#{zip_command}` puts "zip status: #{$?.exitstatus}" if debug unless $?.exitstatus == 0 `echo "Gzip failed with status: #{$?.exitstatus}" | mail -s "Mysql_backup Error" #{notify_email}` exit end # move to backup directory move_command = "scp #{backup_file}.gz #{remote_backup_location}/# {backup_file}.gz" puts move_command if debug `#{move_command}` puts "move status: #{$?.exitstatus}" if debug unless $?.exitstatus == 0 `echo "SCP failed with status: #{$?.exitstatus}" | mail -s "Mysql_backup Error" #{notify_email}` exit end `echo "Successfully backed up mysql to #{backup_file}" | mail -s "Mysql_backup Success" #{notify_email}` From nejc at skoberne.net Wed Oct 1 13:31:00 2008 From: nejc at skoberne.net (=?ISO-8859-1?Q?Nejc_S=28koberne?=) Date: Wed Oct 1 13:31:07 2008 Subject: Setting up gmirror In-Reply-To: <984631.87587.qm@web51102.mail.re2.yahoo.com> References: <984631.87587.qm@web51102.mail.re2.yahoo.com> Message-ID: <48E37B8D.4050406@skoberne.net> Hello, > I swear by gmirror, I had very good experience with it and will use it in the future > again. I just need to find some time to attach the two identical HDD's to my via c7 system. Actually, you don't need two identical HDD to make a gmirror. It's just important, that the one, you add to the already created array, is not smaller. Some would also argue that having two identical drives makes the array more prone, since they may fail "identically". This also happened to me once, and I lost data. Bye, Nejc From sonic2000gr at gmail.com Wed Oct 1 13:49:51 2008 From: sonic2000gr at gmail.com (Manolis Kiagias) Date: Wed Oct 1 13:49:58 2008 Subject: Kernel panic! 7.0-RELEASE-p4 In-Reply-To: <8dfae1c10810010534h2feb81eetd3f690f30e893611@mail.gmail.com> References: <8dfae1c10810010534h2feb81eetd3f690f30e893611@mail.gmail.com> Message-ID: <48E37FF9.3000108@gmail.com> Walter Venable wrote: > Our box, without readily obvious provocation, started doing this today: > Panic: softdep_setup_inomapdep: dependency for new inode already exists. > cpuid: 0 > physical memory: 1971 MB > dumping 78MB: 63 47 31 15 > > The system then immediately reboots, and hits the panic, reboots, etc. > What can I do?? > Maybe boot into single user mode and run fsck? From steve at ibctech.ca Wed Oct 1 13:53:05 2008 From: steve at ibctech.ca (Steve Bertrand) Date: Wed Oct 1 13:53:11 2008 Subject: Using global environment variables inside a subshell Message-ID: <48E380C4.4090304@ibctech.ca> Hi everyone, I've fudged together a quick disk space monitor that I will run from cron. Running the script works fine from the command line, but when I run it from cron, the environment variable is empty. Can someone point out the err of my ways?: #!/bin/sh /bin/df | \ /usr/bin/awk '{if($5 ~ "%" && $6 !~ "proc") {used=$5} else {used=""}; \ sub(/%/, "", used); \ if(used > 95) print $6 " is at " used"% on "ENVIRON["HOSTNAME"]"!"}' | \ mail -s "Disk usage action required" email@addr.com Cheers! Steve From jmc-freebsd2 at milibyte.co.uk Wed Oct 1 14:46:34 2008 From: jmc-freebsd2 at milibyte.co.uk (Mike Clarke) Date: Wed Oct 1 14:46:44 2008 Subject: Canon Pixma iP4500 - problem with colours Message-ID: <200810011546.29798.jmc-freebsd2@milibyte.co.uk> I've just installed a Canon Pixma iP4500 on a 6.3 system using CUPS and gutenprint. Black printing is fine but I've got problems with colours. The colour wheel on the CUPS test page comes out as a psychedelic collection of brightly coloured rings. If I print from gimp then the correct colours appear but they are very dark and "muddy". The colours start to look a bit more reasonable from the gimp if I push the gamma value up to 2. This isn't a physical problem with the printer, I get good results when printing from Windows. Should I be able to get correct colour rendering "out of the box" or do I have to fiddle about with the multitude of output control adjustments available on the CUPS admin panel? Or should I be using something other than CUPS, that's what I've always used so far but I'm happy to try alternatives if necessary. -- Mike Clarke From ivoras at freebsd.org Wed Oct 1 15:01:09 2008 From: ivoras at freebsd.org (Ivan Voras) Date: Wed Oct 1 15:01:16 2008 Subject: Process memory inspection Message-ID: Hi, The top utility has SIZE and RES, but doesn't have what part of SIZE is sysv shared memory. Is there something that can print out in detail how a process uses / allocates its memory (I'm specifically interested in sysvshm but there's also the stack & mmap)? From adhulma at gmail.com Wed Oct 1 15:06:36 2008 From: adhulma at gmail.com (K. Wolf) Date: Wed Oct 1 15:06:43 2008 Subject: Cant boot instalation media. Message-ID: <48E38D21.6050303@gmail.com> I tryed to install FreeBSD on my laptop (compaq nx6105), but it crashes and returns: HPTTR :no controller found. From dnelson at allantgroup.com Wed Oct 1 15:57:05 2008 From: dnelson at allantgroup.com (Dan Nelson) Date: Wed Oct 1 15:57:11 2008 Subject: Process memory inspection In-Reply-To: References: Message-ID: <20081001155702.GK86326@dan.emsphone.com> In the last episode (Oct 01), Ivan Voras said: > Hi, > > The top utility has SIZE and RES, but doesn't have what part of SIZE > is sysv shared memory. Is there something that can print out in > detail how a process uses / allocates its memory (I'm specifically > interested in sysvshm but there's also the stack & mmap)? You can get detailed process memory info from /proc//map , or in 7.1 and later, "procstat -v". I don't know how easy it is to identify which block is shared memory, though. -- Dan Nelson dnelson@allantgroup.com From derek at computinginnovations.com Wed Oct 1 16:01:13 2008 From: derek at computinginnovations.com (Derek Ragona) Date: Wed Oct 1 16:01:21 2008 Subject: PXE real life use In-Reply-To: <19756184.post@talk.nabble.com> References: <19756184.post@talk.nabble.com> Message-ID: <6.0.0.22.2.20081001105719.02561358@mail.computinginnovations.com> At 03:03 AM 10/1/2008, Chris Papageorgiou wrote: >Hello all, >I'd like to point a subject on PXE server usage on a daily basis such as a >service department. >Im thinking of developing such system to load OS's(not strictly *NIX) >installations through LAN than using a CD each time. >What would be the cons,pros to such system and what are the limits? > >Looking forward for your replies. > >Best regards, >Chris Papageorgiou Chris, Have you read the handbook on diskless clients? That will give you some good background on the subject. The reason to use diskless clients is simplified support, where you only need to update the diskless client boot to update all the clients that use that boot. As for issues, bandwidth can be problematic, depending on the number of clients, and if they all boot at the same time. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From sebastian.tymkow at gmail.com Wed Oct 1 16:33:19 2008 From: sebastian.tymkow at gmail.com (=?ISO-8859-1?Q?Sebastian_Tymk=F3w?=) Date: Wed Oct 1 16:33:24 2008 Subject: Best way to back up mysql database In-Reply-To: <81F44C16-59C8-4A44-AE2A-B9F233834383@identry.com> References: <835F48BA-494E-44A0-8D2B-D9F139AB2125@identry.com> <94136a2c0810010201y6d561828lb125419de1613aee@mail.gmail.com> <81F44C16-59C8-4A44-AE2A-B9F233834383@identry.com> Message-ID: <692660060810010933t6ada2c85g18b3e0e60d2cf02d@mail.gmail.com> Hello, You can store whole db files too. It's faster to run database from scratch than use mysqldump and mysql "source". Best regards, Shamrock From borgibo at vivodinet.gr Wed Oct 1 16:47:23 2008 From: borgibo at vivodinet.gr (John Vliouras) Date: Wed Oct 1 16:47:31 2008 Subject: Scanner Message-ID: <48E3A52D.7080201@vivodinet.gr> I wonder if this is the right place to ask a question regarding FreeBsd7 and the Handbook. I have installed FreeBsd7 both i386 and amd64 architectures in two macines, one celeron dual core with 1GB, the other amd64x2 3800+ ,and I have problem with my scanner. I repeat here my thread to DaemonForums-BSD forum, which is self expanatory. Please bear in mind that I am new to computing and know a little bit only about Linux. I have not used any other operating system. Here it is: hello everybody, I am a computer newby, learning Linux and started with FreeBSD lately. The only OSs I know about. I am struggling with FreeBSD7 both as an i386 and amd64 architecture. The problem is my scanner a Canon Lide 60. Running #scanimage -L I get "device `genesys:libusb:/dev/usb1:/dev/ugen0' is a Canon Lide 60 flatbed scanner" which is right and it shows up with xsane as root (when I am lucky to use xsane as root in gnome) Now trying to: "7.6.4 Giving Other Users Access to the Scanner All previous operations have been done with root privileges. You may however, need other users to have access to the scanner. The user will need read and write permissions to the device node used by the scanner. As an example, our USB scanner uses the device node /dev/uscanner0 which is owned by the operator group. Adding the user joe to the operator group will allow him to use the scanner: # pw groupmod operator -m joe For more details read the pw(8) manual page. You also have to set the correct write permissions (0660 or 0664) on the /dev/uscanner0 device node, by default the operator group can only read the device node. This is done by adding the following lines to the /etc/devfs.rules file: [system=5] add path uscanner0 mode 660 Then add the following to /etc/rc.conf and reboot the machine: devfs_system_ruleset="system" More information regarding these lines can be found in the devfs(8) manual page. Note: Of course, for security reasons, you should think twice before adding a user to any group, especially the operator group." I cannot find "/etc/devfs.rules" file, it does not exist. I tried to make one adding what I was instructed, to no avail. I tried to put "[system=5]" etc in the "/etc/defaults/devfs.rules" file, which exists, but it did not work either. I suppose I must be doing something wrong. Please bear in mind that this is my first time that I am using the command line. I have been able to thanks to the very easy and instructive FreeBSD's handbook. If you know why "/etc/devfs.rules" file is missing from both i386 and amd64 installations and what I can do if anything, please inform me. Thank you very much for your efort, borgibo Edit/Delete Message If this is the wrong place to ask please correct me. Thank you, John Vliouras From cpghost at cordula.ws Wed Oct 1 17:06:50 2008 From: cpghost at cordula.ws (cpghost) Date: Wed Oct 1 17:06:57 2008 Subject: Realtek 8111C? In-Reply-To: <340a29540809302126m6196e828u4e8949cc092847bb@mail.gmail.com> References: <48D3D0A8.7070504@mindling.com> <1221876046.4625.4.camel@laptop1.herveybayaustralia.com.au> <48D53DA1.2040808@mindling.com> <200809211527.53755.af300wsm@gmail.com> <48D85B3A.8070706@mindling.com> <340a29540809302126m6196e828u4e8949cc092847bb@mail.gmail.com> Message-ID: <20081001170712.GA1391@phenom.cordula.ws> On Tue, Sep 30, 2008 at 10:26:14PM -0600, Andrew Falanga wrote: > On Mon, Sep 22, 2008 at 8:58 PM, Sebastian wrote: > > Andrew Falanga wrote: > >> > >> On Saturday 20 September 2008 12:14:57 Sebastian wrote: > >> > >>> > >>> Da Rock wrote: > >>> > >>>> > >>>> I have used the compiled driver on 6.3 with success- but then I've used > >>>> the driver linked in a post to drivers list. 7.0 is a no go. > >>>> > >>> > >>> I tried to compile the current OEM Realtek driver under (v176) on fbsd > >>> 6.3, but couldn't get it to build. My foo is a little thin here. :) > >>> > >>> > >> > >> Where did you get this OEM driver? > >> > > > > The oem driver can be found here: > > > > http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false > > > > It builds just fine on 6.3, once I read the file manual on how to build a > > kernel module. > > > > So far no problems running it with a fair amount of traffic. > > Awesome! Thanks. If I've been understanding another thread on here, > it sounds like there's a FreeBSD driver coming in 7.1. Just for the record: the re(4) driver on my FreeBSD 7.1-PRERELEASE #0: Fri Sep 26 14:43:33 CEST 2008 (both i386 and amd64) now runs like a charm on a RealTek 8111C on-board NIC (at least with 100baseTX, I didn't test with Gigabit): re0: port 0xe800-0xe8ff mem 0xfdfff000-0xfdffffff, 0xfdfe0000-0xfdfeffff irq 17 at device 0.0 on pci2 re0: Chip rev. 0x3c000000 re0: MAC rev. 0x00200000 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto $ ifconfig re0 re0: flags=8843 metric 0 mtu 1460 options=389b ether 00:21:85:XX:YY:ZZ inet6 fe80::221:85ff:feXX:YYYZZ%re0 prefixlen 64 scopeid 0x1 inet 192.168.254.60 netmask 0xffffff00 broadcast 192.168.254.255 media: Ethernet autoselect (100baseTX ) status: active $ lspci -v (...) 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02) Subsystem: Micro-Star International Co., Ltd. Unknown device 501c Flags: bus master, fast devsel, latency 0, IRQ 17 I/O ports at e800 Memory at fdfff000 (64-bit, prefetchable) Memory at fdfe0000 (64-bit, prefetchable) Expansion ROM at feaf0000 [disabled] Capabilities: [40] Power Management version 3 Capabilities: [50] Message Signalled Interrupts: Mask- 64bit+ Queue=0/1 Enable- Capabilities: [70] Express Endpoint, MSI 01 Capabilities: [b0] MSI-X: Enable- Mask- TabSize=2 Capabilities: [d0] Vital Product Data > Andy > > -- > A: Because it messes up the order in which people normally read text. > Q: Why is it such a bad thing? > A: Top-posting. > Q: What is the most annoying thing on usenet and in e-mail? -cpghost. -- Cordula's Web. http://www.cordula.ws/ From rumuru at gmail.com Wed Oct 1 18:18:12 2008 From: rumuru at gmail.com (Mungyung Ryu) Date: Wed Oct 1 18:18:19 2008 Subject: Questions drivers for VGA and NIC Message-ID: Hi BSD folks! I installed FreeBSD 7 Release - amd64. I have ATI Radeon HD2600 pro VGA card but ATI is sucks for supporting driver for Linux or FreeBSD! So, I'm considering to replace the dam ATI card with NVIDIA Geforce. I don't wanna play 3D games on FreeBSD, so just cheap Geforce card would be enough, but it should support 1920x1200 resolution. I wonder if what Geforce model is supported by the FreeBSD 7R - amd64. Anybody can recommend? Second, I want to use zero-copy facility of FreeBSD. As far as I know, the hardware (NIC) support (Scatter-Gather DMA) is needed for that as well as using sendfile() api. Among the NIC products which has SGDMA function in the market, which one is the most well supported by FreeBSD 7R - amd64? I got a technical support from Intel, and they said there is no Intel NIC which supports SGDMA. That is so surprising.. isn't it? The driver issue is killing me on FreeBSD. Thanks. -- ****************************************************************************** Mungyung Ryu Ph.D. Student. College of Computing Georgia Institute of Technology, Atlanta ****************************************************************************** From millenia2000 at hotmail.com Wed Oct 1 18:33:45 2008 From: millenia2000 at hotmail.com (Sean Cavanaugh) Date: Wed Oct 1 18:33:51 2008 Subject: Questions drivers for VGA and NIC In-Reply-To: References: Message-ID: > Date: Wed, 1 Oct 2008 14:18:10 -0400 > From: rumuru@gmail.com > To: freebsd-questions@freebsd.org > Subject: Questions drivers for VGA and NIC > > Hi BSD folks! > > I installed FreeBSD 7 Release - amd64. > I have ATI Radeon HD2600 pro VGA card but ATI is sucks for supporting driver > for Linux or FreeBSD! > So, I'm considering to replace the dam ATI card with NVIDIA Geforce. > I don't wanna play 3D games on FreeBSD, so just cheap Geforce card would be > enough, > but it should support 1920x1200 resolution. > I wonder if what Geforce model is supported by the FreeBSD 7R - amd64. > Anybody can recommend? You trying to use the ATI driver or the RadeonHD driver? From lists at rhavenn.net Wed Oct 1 18:48:25 2008 From: lists at rhavenn.net (Henrik Hudson) Date: Wed Oct 1 18:48:33 2008 Subject: Questions drivers for VGA and NIC In-Reply-To: References: Message-ID: <200810011048.21874.lists@rhavenn.net> On Wednesday 01 October 2008, "Mungyung Ryu" sent a missive stating: > Hi BSD folks! > > I installed FreeBSD 7 Release - amd64. > I have ATI Radeon HD2600 pro VGA card but ATI is sucks for supporting > driver for Linux or FreeBSD! > So, I'm considering to replace the dam ATI card with NVIDIA Geforce. > I don't wanna play 3D games on FreeBSD, so just cheap Geforce card would be > enough, > but it should support 1920x1200 resolution. > I wonder if what Geforce model is supported by the FreeBSD 7R - amd64. > Anybody can recommend? The nVidia binary drivery doesn't support amd64 if you were thinking of using that. Personally, if it's in the cards I would look for a intel board with the onboard video. > The driver issue is killing me on FreeBSD. Call the vendors and tell them you want drivers. Henrik -- Henrik Hudson lists@rhavenn.net ------------------------------ "God, root, what is difference?" Pitr; UF (http://www.userfriendly.org/) From info at e-gate.se Wed Oct 1 19:04:59 2008 From: info at e-gate.se (Chris Papageorgiou) Date: Wed Oct 1 19:05:06 2008 Subject: PXE real life use In-Reply-To: <6.0.0.22.2.20081001105719.02561358@mail.computinginnovations.com> References: <19756184.post@talk.nabble.com> <6.0.0.22.2.20081001105719.02561358@mail.computinginnovations.com> Message-ID: <19767056.post@talk.nabble.com> Dear Derek, First Id like to thank you for your reply. Yes I've read the handbook and lots of other technical articles on this particular subject, what concerns me is the overall 'worth' of this technique just to install OS's on customer's computers through PXE and not by the traditional way. Best Regards, Chris Derek Ragona wrote: > > At 03:03 AM 10/1/2008, Chris Papageorgiou wrote: > >>Hello all, >>I'd like to point a subject on PXE server usage on a daily basis such as a >>service department. >>Im thinking of developing such system to load OS's(not strictly *NIX) >>installations through LAN than using a CD each time. >>What would be the cons,pros to such system and what are the limits? >> >>Looking forward for your replies. >> >>Best regards, >>Chris Papageorgiou > > Chris, > > Have you read the handbook on diskless clients? That will give you some > good background on the subject. > > The reason to use diskless clients is simplified support, where you only > need to update the diskless client boot to update all the clients that use > that boot. > > As for issues, bandwidth can be problematic, depending on the number of > clients, and if they all boot at the same time. > > -Derek > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > -- View this message in context: http://www.nabble.com/PXE-real-life-use-tp19756184p19767056.html Sent from the freebsd-questions mailing list archive at Nabble.com. From roberthuff at rcn.com Wed Oct 1 19:24:36 2008 From: roberthuff at rcn.com (Robert Huff) Date: Wed Oct 1 19:24:43 2008 Subject: Questions drivers for VGA and NIC In-Reply-To: <200810011048.21874.lists@rhavenn.net> References: <200810011048.21874.lists@rhavenn.net> Message-ID: <18659.52849.278757.861259@jerusalem.litteratus.org> Henrik Hudson writes: > > The driver issue is killing me on FreeBSD. > > Call the vendors and tell them you want drivers. nVidia, at least, is aware of the issue and has offered to write and maintain drivers ... provided certain capabilities are added to the kernel. (See previous discussion in this mailing list.) This has - obviously - not happened, and I do not know of work in progress. I do agree that the first vendor to provide working drivers will make quite a few sales. (Me among them.) Robert Huff From rsmith at xs4all.nl Wed Oct 1 20:02:39 2008 From: rsmith at xs4all.nl (Roland Smith) Date: Wed Oct 1 20:02:47 2008 Subject: built-in samba mount In-Reply-To: References: <20080930173802.GB16426@slackbox.xs4all.nl> Message-ID: <20081001200236.GA58548@slackbox.xs4all.nl> On Wed, Oct 01, 2008 at 12:43:01PM +0300, EforeZZ wrote: > > > I'm able to mount only //pc/share (not //pc/share/folder) and I do not > > have > > > read access to read contents of "//pc/share" and FreeBSD does not let me > > to > > > change the directory to "//pc/share/folder". > > > Windows allows to mount //pc/share/folder and I have no access problems > > in > > > Windows. > > > Is there any solution for FreeBSD? > > > > Read the mount_smbfs manual page (with the command 'man mount_smbfs'). A > > quick look tells us that you'll need to use //user@pc/share/folder > > instead of //pc/share/folder. Other options allow you to configure > > access rights and owner/group attributes. > > > > I do use //user@pc/share/folder for mounting but I get //user@pc/share > mounted instead of //user@pc/share/folder. > It seems that the "/folder" part is ignored. Generally, you can mount a filesystem, but not just a subdirectory. You might be able to mount the share somewhere and then use mount_nullfs to mount the subdirectory you want somewhere else. See mount_nullfs(8). 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: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081001/cd6105ab/attachment.pgp From gpeel at thenetnow.com Wed Oct 1 20:15:29 2008 From: gpeel at thenetnow.com (Grant Peel) Date: Wed Oct 1 20:15:36 2008 Subject: Updating and Ports Message-ID: Hi all, I have heard people chattering occasionally about /etc/make.conf. In a few days, I will be updating from 6.2, and 6.3, to RELENGE_6_3 and am curious how I can use / modufy /etc/make.conf so that I dont need to install all my ports again. Which leads to the question: I just installed /usr/ports/archivers/unzip onto all the servers, when I update to RELENG_6_3, will I need to reinstall them all over again? Which leads back to the original question, can I modify /etc/make.conf so that all ports currenly install are re installed? -Grant From kdk at daleco.biz Wed Oct 1 20:25:10 2008 From: kdk at daleco.biz (Kevin Kinsey) Date: Wed Oct 1 20:25:26 2008 Subject: Scanner In-Reply-To: <48E3A52D.7080201@vivodinet.gr> References: <48E3A52D.7080201@vivodinet.gr> Message-ID: <48E3D9CF.7020100@daleco.biz> John Vliouras wrote: > I wonder if this is the right place to ask a question regarding FreeBsd7 > and the Handbook. It is, unless you have a specific "fix" (patch) for the handbook, in which case you send a PR and/or discuss it on the doc@ list (generally send a PR is correct; doc@ is a list for use by the doc writers, so it should be pretty important before we bother them). > I have installed FreeBsd7 both i386 and amd64 architectures in two > macines, one celeron dual core with 1GB, the other amd64x2 3800+ ,and I > have problem with my scanner. > > > The problem is my scanner a Canon Lide 60. Running #scanimage -L I get > "device `genesys:libusb:/dev/usb1:/dev/ugen0' is a Canon Lide 60 flatbed > scanner" which is right and it shows up with xsane as root (when I am > lucky to use xsane as root in gnome) > > Now trying to: "7.6.4 Giving Other Users Access to the Scanner > > All previous operations have been done with root privileges. You may > however, need other users to have access to the scanner. The user will > need read and write permissions to the device node used by the scanner. > As an example, our USB scanner uses the device node /dev/uscanner0 which > is owned by the operator group. Adding the user joe to the operator > group will allow him to use the scanner: > > # pw groupmod operator -m joe > > For more details read the pw(8) manual page. You also have to set the > correct write permissions (0660 or 0664) on the /dev/uscanner0 device > node, by default the operator group can only read the device node. This > is done by adding the following lines to the /etc/devfs.rules file: > > [system=5] > add path uscanner0 mode 660 Since your device is "ugen0" instead of "uscanner0", you might try adjusting the line to fit that. > Then add the following to /etc/rc.conf and reboot the machine: > > devfs_system_ruleset="system" > > More information regarding these lines can be found in the devfs(8) > manual page. > > Note: Of course, for security reasons, you should think twice before > adding a user to any group, especially the operator group." > > I cannot find "/etc/devfs.rules" file, it does not exist. I tried to > make one adding what I was instructed, to no avail. I tried to put > "[system=5]" etc in the "/etc/defaults/devfs.rules" file, which exists, > but it did not work either. Well, you didn't find /etc/devfs.rules because it's not created by default, but only is used if additional local configuration is needed (for example, to change permissions on a scanners /dev/ node). :-) Creating the file in /etc/ is the way to go. Perhaps if you note what I said above it will work for you this time. However, IANAE, some it may not, (YMMV, #include "disclaimer.h" and all that). > I suppose I must be doing something wrong. Please bear in mind that this > is my first time that I am using the command line. I have been able to > thanks to the very easy and instructive FreeBSD's handbook. It is nice, isn't it? :-) > Thank you, > > John Vliouras Kevin Kinsey -- Don't despise your poor relations, they may become suddenly rich one day. -- Josh Billings From k0802647 at telus.net Wed Oct 1 20:25:23 2008 From: k0802647 at telus.net (Carl) Date: Wed Oct 1 20:25:37 2008 Subject: Cannot create custom FreeBSD 7.0 install CD for serial console In-Reply-To: <20081001112826.GA20013@icarus.home.lan> References: <48E345AF.6050409@telus.net> <20081001112826.GA20013@icarus.home.lan> Message-ID: <48E3DCB1.3010009@telus.net> Jeremy Chadwick wrote: > On Wed, Oct 01, 2008 at 02:41:03AM -0700, Carl wrote: >> I've been trying to create a modified FreeBSD 7.0 install CD that will >> allow me to do installations entirely via the serial console on a >> headless system. Lots of digging on the Internet, reading the handbook, >> and I've gotten nowhere fast. > > Try this: > > http://jdc.parodius.com/freebsd/pxeboot_serial_install.html I was already aware of that solution, but it's not for me. There are times when I need to do the install and setting up a DHCP server et al is not viable. Installing FreeBSD via the network has no benefits for me and I will not be trying to install remotely. All I need is to be able to do a simple install using the local serial console because a keyboard and monitor is not practical in the situation. Can anyone tell me where the mistake is in my process? Carl / K0802647 From rsmith at xs4all.nl Wed Oct 1 20:28:30 2008 From: rsmith at xs4all.nl (Roland Smith) Date: Wed Oct 1 20:28:37 2008 Subject: Scanner In-Reply-To: <48E3A52D.7080201@vivodinet.gr> References: <48E3A52D.7080201@vivodinet.gr> Message-ID: <20081001202827.GB58548@slackbox.xs4all.nl> On Wed, Oct 01, 2008 at 07:28:29PM +0300, John Vliouras wrote: > I wonder if this is the right place to ask a question regarding FreeBsd7 > and the Handbook. > The problem is my scanner a Canon Lide 60. Running #scanimage -L I get > "device `genesys:libusb:/dev/usb1:/dev/ugen0' is a Canon Lide 60 flatbed > scanner" which is right and it shows up with xsane as root (when I am > lucky to use xsane as root in gnome) > I cannot find "/etc/devfs.rules" file, it does not exist. I tried to > make one adding what I was instructed, to no avail. I tried to put > "[system=5]" etc in the "/etc/defaults/devfs.rules" file, which exists, > but it did not work either. A new install doesn't have a devfs.rules file. You must create it. What I did to get my scanner and other devices working is the following; - Use pw(8) to create a group named usb, adding my user-id to the group: pw groupadd -n usb -m my_user_id - Write /etc/devfs.rules to give the usb group access: [customruleset=10] add path 'da*' mode 0660 group usb add path 'msdosfs/*' mode 0660 group usb add path 'uscanner*' mode 0660 group usb add path 'usb*' mode 0660 group usb add path 'ugen*' mode 0660 group usb (The third 'add' line is for the scanner.) - Activate the ruleset in /etc/rc.conf: devfs_system_ruleset="customruleset" - Now either reboot the machine, or restart devfs using '/etc/rc.d/devfs restart' - Then plug in the scanner and switch it on. You should see /dev/uscanner appear with the right permissions. For the scanner to work in sane, you might need to edit its configuration files. You should edit /usr/local/etc/sane.d/dll.conf to make it load the genesys backend. (just add a line 'genesys' if not present.) The LiDE 60 is listed in /usr/local/etc/sane.d/genesys.conf, but if it doesn't work, add a line 'usb /dev/uscanner0' to genesys.conf. On my FreeBSD page[1] I documented the system configuration that I did on my machine. You might find it usefull. Roland [1] http://www.xs4all.nl/~rsmith/freebsd/index.html -- 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: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081001/a8cced92/attachment.pgp From rsmith at xs4all.nl Wed Oct 1 20:35:25 2008 From: rsmith at xs4all.nl (Roland Smith) Date: Wed Oct 1 20:35:33 2008 Subject: Updating and Ports In-Reply-To: References: Message-ID: <20081001203521.GC58548@slackbox.xs4all.nl> On Wed, Oct 01, 2008 at 04:15:20PM -0400, Grant Peel wrote: > Hi all, > > I have heard people chattering occasionally about /etc/make.conf. > > In a few days, I will be updating from 6.2, and 6.3, to RELENGE_6_3 and am > curious how I can use / modufy /etc/make.conf so that I dont need to install > all my ports again. You only have to reinstall your ports if you change to another major version, e.g. from 6.x to 7.x. For a change from 6.2 to RELENG_6_3 that isn't necessary. Editing make.conf will not in any way reinstall ports for you. What it make.conf does is pass options to the 'make' program. Nothing more. Options in make.conf can be global or only apply when make is called from a specific directory: ----- make.conf example ----- # Global flag; documentation languages DOC_LANG=en_US.ISO8859-1 # Flag specific to the cups port. .if ${.CURDIR:M*/print/cups*} CUPS_OVERWRITE_BASE=true .endif ----- make.conf example ----- 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: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081001/2c70ba69/attachment.pgp From wojtek at wojtek.tensor.gdynia.pl Wed Oct 1 20:39:00 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Wed Oct 1 20:39:07 2008 Subject: Questions drivers for VGA and NIC In-Reply-To: References: Message-ID: <20081001223759.E56000@wojtek.tensor.gdynia.pl> > I don't wanna play 3D games on FreeBSD, so just cheap Geforce card would be > enough, > but it should support 1920x1200 resolution. > I wonder if what Geforce model is supported by the FreeBSD 7R - amd64. > Anybody can recommend? none of them are supported on any arch. unless giving somewhat-working binary only, and x86-32 bit-only files you call a support. From freebsd-questions-local at be-well.ilk.org Wed Oct 1 20:48:37 2008 From: freebsd-questions-local at be-well.ilk.org (Lowell Gilbert) Date: Wed Oct 1 20:48:44 2008 Subject: Using global environment variables inside a subshell In-Reply-To: <48E380C4.4090304@ibctech.ca> (Steve Bertrand's message of "Wed\, 01 Oct 2008 09\:53\:08 -0400") References: <48E380C4.4090304@ibctech.ca> Message-ID: <44hc7wqbx8.fsf@be-well.ilk.org> Steve Bertrand writes: > I've fudged together a quick disk space monitor that I will run from > cron. Running the script works fine from the command line, but when I > run it from cron, the environment variable is empty. > > Can someone point out the err of my ways?: > > #!/bin/sh > > /bin/df | \ > /usr/bin/awk '{if($5 ~ "%" && $6 !~ "proc") {used=$5} else {used=""}; \ > sub(/%/, "", used); \ > if(used > 95) print $6 " is at " used"% on "ENVIRON["HOSTNAME"]"!"}' | \ > mail -s "Disk usage action required" email@addr.com The environment under which cron jobs are run is very spare. It's more or less limited to the variables that are listed in the crontab(5) manual. You need to get the value into your script another way. In this case, I would use hostname(1). -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ From rsmith at xs4all.nl Wed Oct 1 20:49:09 2008 From: rsmith at xs4all.nl (Roland Smith) Date: Wed Oct 1 20:49:17 2008 Subject: Canon Pixma iP4500 - problem with colours In-Reply-To: <200810011546.29798.jmc-freebsd2@milibyte.co.uk> References: <200810011546.29798.jmc-freebsd2@milibyte.co.uk> Message-ID: <20081001204906.GD58548@slackbox.xs4all.nl> On Wed, Oct 01, 2008 at 03:46:29PM +0100, Mike Clarke wrote: > > I've just installed a Canon Pixma iP4500 on a 6.3 system using CUPS and > gutenprint. Black printing is fine but I've got problems with colours. > The colour wheel on the CUPS test page comes out as a psychedelic > collection of brightly coloured rings. If I print from gimp then the > correct colours appear but they are very dark and "muddy". The colours > start to look a bit more reasonable from the gimp if I push the gamma > value up to 2. Have you installed a .ppd file for this printer? This is a file that tells cups about the capabilities of this printer. See http://www.linuxprinting.org/show_printer.cgi?recnum=Canon-PIXMA_IP4300_OR_PIXMA_IP4500 I'm not sure if just installing the ppd file works. It does for my PostScript printer. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) -------------- 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/20081001/052d370b/attachment.pgp From peter.thoenen at yahoo.com Wed Oct 1 21:03:39 2008 From: peter.thoenen at yahoo.com (Peter Thoenen) Date: Wed Oct 1 21:04:10 2008 Subject: Lenovo X200s Message-ID: <48E3DF63.103@yahoo.com> The Thinkpad series has always had strong FreeBSD support with the two digit models (Xnn) but I am a bit iffy on Lenovo's attempts to morph the Thinkpads into something else via the three digit series (Xnnn). Anybody own a X200s and successfully running FreeBSD 7.x? Cheers, -Peter From gesbbb at yahoo.com Wed Oct 1 21:22:30 2008 From: gesbbb at yahoo.com (Jerry) Date: Wed Oct 1 21:22:37 2008 Subject: Questions drivers for VGA and NIC In-Reply-To: <18659.52849.278757.861259@jerusalem.litteratus.org> References: <200810011048.21874.lists@rhavenn.net> <18659.52849.278757.861259@jerusalem.litteratus.org> Message-ID: <20081001172216.5015add3@scorpio> On Wed, 1 Oct 2008 15:24:33 -0400 Robert Huff wrote: [snip] > nVidia, at least, is aware of the issue and has offered to >write and maintain drivers ... provided certain capabilities are >added to the kernel. (See previous discussion in this mailing list.) > This has - obviously - not happened, and I do not know of work >in progress. > I do agree that the first vendor to provide working drivers >will make quite a few sales. (Me among them.) In all likelihood, the probability of any vendor creating FBSD specific drivers is directly proportionate to the expenditure of funds to create and maintain the driver versus the expected revenue from such an expenditure. Unfortunately, doing a quick search, I was not able to locate the article(s) you referenced above. I would like to see exactly what NVIDIA is requesting. -- Jerry gesbbb@yahoo.com Many people would rather die than think; in fact, most do. Bertrand Russell -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081001/b06d28af/signature.pgp From wojtek at wojtek.tensor.gdynia.pl Wed Oct 1 21:25:28 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Wed Oct 1 21:25:35 2008 Subject: Questions drivers for VGA and NIC In-Reply-To: <20081001172216.5015add3@scorpio> References: <200810011048.21874.lists@rhavenn.net> <18659.52849.278757.861259@jerusalem.litteratus.org> <20081001172216.5015add3@scorpio> Message-ID: <20081001232502.G56202@wojtek.tensor.gdynia.pl> > In all likelihood, the probability of any vendor creating FBSD > specific drivers is directly proportionate to the expenditure of funds > to create and maintain the driver versus the expected revenue from such > an expenditure. giving out a specs will be the simplest way. From roberthuff at rcn.com Wed Oct 1 21:52:12 2008 From: roberthuff at rcn.com (Robert Huff) Date: Wed Oct 1 21:52:19 2008 Subject: Questions drivers for VGA and NIC In-Reply-To: <20081001172216.5015add3@scorpio> References: <200810011048.21874.lists@rhavenn.net> <18659.52849.278757.861259@jerusalem.litteratus.org> <20081001172216.5015add3@scorpio> Message-ID: <18659.61704.87342.180770@jerusalem.litteratus.org> Jerry : >> nVidia, at least, is aware of the issue and has offered to >>write and maintain drivers ... provided certain capabilities are >>added to the kernel. (See previous discussion in this mailing list.) >> This has - obviously - not happened, and I do not know of work >>in progress. >> I do agree that the first vendor to provide working drivers >>will make quite a few sales. (Me among them.) > >Unfortunately, doing a quick search, I was not able to locate the >article(s) you referenced above. I would like to see exactly what >NVIDIA is requesting. Sorry - wrong list. Try: http://lists.freebsd.org/pipermail/freebsd-hackers/2006-June/016995.html Robert Huff From lists at rhavenn.net Wed Oct 1 22:00:28 2008 From: lists at rhavenn.net (Henrik Hudson) Date: Wed Oct 1 22:00:37 2008 Subject: Questions drivers for VGA and NIC In-Reply-To: <20081001172216.5015add3@scorpio> References: <18659.52849.278757.861259@jerusalem.litteratus.org> <20081001172216.5015add3@scorpio> Message-ID: <200810011400.25215.lists@rhavenn.net> On Wednesday 01 October 2008, Jerry sent a missive stating: > On Wed, 1 Oct 2008 15:24:33 -0400 > Robert Huff wrote: > > [snip] > > > nVidia, at least, is aware of the issue and has offered to > >write and maintain drivers ... provided certain capabilities are > >added to the kernel. (See previous discussion in this mailing list.) > > This has - obviously - not happened, and I do not know of work > >in progress. > > I do agree that the first vendor to provide working drivers > >will make quite a few sales. (Me among them.) > > In all likelihood, the probability of any vendor creating FBSD > specific drivers is directly proportionate to the expenditure of funds > to create and maintain the driver versus the expected revenue from such > an expenditure. > > Unfortunately, doing a quick search, I was not able to locate the > article(s) you referenced above. I would like to see exactly what > NVIDIA is requesting. Digg through the nVidia forum. They've posted the specs / story there with a few links off to FreeBSD forum / lists as well. Henrik -- Henrik Hudson lists@rhavenn.net ------------------------------ "God, root, what is difference?" Pitr; UF (http://www.userfriendly.org/) From gesbbb at yahoo.com Wed Oct 1 22:04:29 2008 From: gesbbb at yahoo.com (Jerry) Date: Wed Oct 1 22:04:37 2008 Subject: Questions drivers for VGA and NIC In-Reply-To: <20081001232502.G56202@wojtek.tensor.gdynia.pl> References: <200810011048.21874.lists@rhavenn.net> <18659.52849.278757.861259@jerusalem.litteratus.org> <20081001172216.5015add3@scorpio> <20081001232502.G56202@wojtek.tensor.gdynia.pl> Message-ID: <20081001180424.56e6ca69@scorpio> On Wed, 1 Oct 2008 23:25:19 +0200 (CEST) Wojciech Puchar wrote: >> In all likelihood, the probability of any vendor creating FBSD >> specific drivers is directly proportionate to the expenditure of >> funds to create and maintain the driver versus the expected revenue >> from such an expenditure. > >giving out a specs will be the simplest way. Any entity, or corporation, has a right to expect a return on their investment. To expect a corporation to simply give away something, thereby depriving their shareholders, partners or whatever, of their rightfully expected monetary reward is foolish. It certainly is not a well thought out business model. -- Jerry gesbbb@yahoo.com If man is only a little lower than the angels, the angels should reform. Mary Wilson Little -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081001/3309e924/signature.pgp From gesbbb at yahoo.com Wed Oct 1 22:23:49 2008 From: gesbbb at yahoo.com (Jerry) Date: Wed Oct 1 22:23:55 2008 Subject: Questions drivers for VGA and NIC In-Reply-To: <18659.61704.87342.180770@jerusalem.litteratus.org> References: <200810011048.21874.lists@rhavenn.net> <18659.52849.278757.861259@jerusalem.litteratus.org> <20081001172216.5015add3@scorpio> <18659.61704.87342.180770@jerusalem.litteratus.org> Message-ID: <20081001182344.6e9bd339@scorpio> On Wed, 1 Oct 2008 17:52:08 -0400 Robert Huff wrote: > Sorry - wrong list. Try: > >http://lists.freebsd.org/pipermail/freebsd-hackers/2006-June/016995.html Thanks! Considering the age of the article, Thu Jun 29 11:12:35 UTC 2006, I am surprised that more has not transpired since then. It would appear that they are genuinely interested in at least attempting to get a fully functional driver in place for the FBSD architecture. -- Jerry gesbbb@yahoo.com I am very fond of the company of ladies. I like their beauty, I like their delicacy, I like their vivacity, and I like their silence. Samuel Johnson -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081001/c8636dc9/signature.pgp From lists at rhavenn.net Wed Oct 1 22:36:38 2008 From: lists at rhavenn.net (Henrik Hudson) Date: Wed Oct 1 22:36:45 2008 Subject: Questions drivers for VGA and NIC In-Reply-To: <20081001180424.56e6ca69@scorpio> References: <20081001232502.G56202@wojtek.tensor.gdynia.pl> <20081001180424.56e6ca69@scorpio> Message-ID: <200810011436.27018.lists@rhavenn.net> On Wednesday 01 October 2008, Jerry sent a missive stating: > On Wed, 1 Oct 2008 23:25:19 +0200 (CEST) > > Wojciech Puchar wrote: > >> In all likelihood, the probability of any vendor creating FBSD > >> specific drivers is directly proportionate to the expenditure of > >> funds to create and maintain the driver versus the expected revenue > >> from such an expenditure. > > > >giving out a specs will be the simplest way. > > Any entity, or corporation, has a right to expect a return on their > investment. To expect a corporation to simply give away something, > thereby depriving their shareholders, partners or whatever, of their > rightfully expected monetary reward is foolish. It certainly is not a > well thought out business model. There is a difference between open sourcing the binary blob and possibly giving away optimizations, trade secrets, etc... and allowing easier access to either hardware register specs or specs to write a wrapper around a universal blob. Personally, I think they see it as a "quality" control issue, though the quality of their own code is sometimes circumspect. The card companies sell hardware and this is where their money is made and/or a better experience with the software drivers. Open the hardware spec, add a support clause that any "open source" drivers aren't officially supported and you're good to go. Opening the hardware spec will do nothing except sell more hardware. a) the average joe will continue to buy systems with the supported hardware / drivers, most likely Windows, OS X or a major Linux distro. Probably wouldn't even know the open source ones exist. b) the geeks of the world will start running the open source driver if it's better or not if it's worse for their applications. Either way, it will only sell more hardware. c) The FOSS only crowd will start using the hardware since it has a fully open source drivers. The open source driver doesn't need to be able to run Doom5 at incredible speeds, it just needs high quality 2d and the ability to handle some 3d compositing, etc... for desktop effects. My .02$ Henrik -- Henrik Hudson lists@rhavenn.net ------------------------------ "God, root, what is difference?" Pitr; UF (http://www.userfriendly.org/) From wojtek at wojtek.tensor.gdynia.pl Wed Oct 1 23:05:54 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Wed Oct 1 23:06:00 2008 Subject: Questions drivers for VGA and NIC In-Reply-To: <20081001180424.56e6ca69@scorpio> References: <200810011048.21874.lists@rhavenn.net> <18659.52849.278757.861259@jerusalem.litteratus.org> <20081001172216.5015add3@scorpio> <20081001232502.G56202@wojtek.tensor.gdynia.pl> <20081001180424.56e6ca69@scorpio> Message-ID: <20081002010447.V56773@wojtek.tensor.gdynia.pl> >> giving out a specs will be the simplest way. > > Any entity, or corporation, has a right to expect a return on their > investment. To expect a corporation to simply give away something, quite a difference. for example - documentation about say pentium 4 assembly language and opcodes are widely available. does it help say AMD making faster processor? no. From gpeel at thenetnow.com Wed Oct 1 23:52:57 2008 From: gpeel at thenetnow.com (Grant Peel) Date: Wed Oct 1 23:53:04 2008 Subject: Logrotate Message-ID: <668A2B1DDBEC40BCAC6A82589B5D1159@GRANT> Hi all, I have recently started using logrotate to rotate all the logs in the users home directories. These are all apache logs files. /home/domain.com/logsaccess_log /home/domain.com/logsaccess_log.0.gz /home/domain.com/logsaccess_log.1.gz /home/domain.com/logsaccess_log.2.gz I have a problem though. Some of my domains have softlinks pointing to them, this causes the logs to be rotated 2 or more times (i.e. 1 time for the 'real' directory, and 1 time each for each softlink pointing to them). Example /home/domain.com/logs/ domain2.com -> domain.com domain3.com -> domain.com will result in the 'access_log' being rotated 3 times in one run, causing my log dirs to look like this: -rw-r--r-- 1 root holt 160 Oct 1 05:44 access_log -rw-r--r-- 1 root holt 446 Oct 1 05:44 error_log -rw-r--r-- 1 root holt 20 Oct 1 03:46 access_log.1.gz -rw-r--r-- 1 root holt 20 Oct 1 03:46 access_log.2.gz -rw-r--r-- 1 root holt 20 Oct 1 03:46 access_log.3.gz -rw-r--r-- 1 root holt 20 Oct 1 03:46 access_log.4.gz -rw-r--r-- 1 root holt 20 Oct 1 03:46 access_log.5.gz -rw-r--r-- 1 root holt 20 Oct 1 03:46 access_log.6.gz -rw-r--r-- 1 root holt 224 Oct 1 03:46 access_log.7.gz -rw-r--r-- 1 root holt 20 Sep 30 03:46 access_log.8.gz -rw-r--r-- 1 root holt 20 Sep 30 03:46 access_log.9.gz Here is this appropriate part of my logrotate.conf # logrotate.conf compress ... /home/*/logs/access_log { missingok rotate 14 daily create 644 root sharedscripts postrotate /usr/local/sbin/apachectl restart endscript } # End of logrotate.conf Question, is there a way to stop this from happening? -Grant From rock_on_the_web at comcen.com.au Thu Oct 2 00:02:36 2008 From: rock_on_the_web at comcen.com.au (Da Rock) Date: Thu Oct 2 00:02:44 2008 Subject: mysql rc script failure - correction: most installed rc scripts not running manually In-Reply-To: <20081001105337.GA47338@owl.midgard.homeip.net> References: <1222839623.8573.5.camel@laptop1.herveybayaustralia.com.au> <1222847649.8573.11.camel@laptop1.herveybayaustralia.com.au> <84763862@bb.ipt.ru> <1222857587.27652.8.camel@laptop1.herveybayaustralia.com.au> <20081001105337.GA47338@owl.midgard.homeip.net> Message-ID: <1222905558.3927.1.camel@laptop1.herveybayaustralia.com.au> On Wed, 2008-10-01 at 12:53 +0200, Erik Trulsson wrote: > On Wed, Oct 01, 2008 at 08:39:47PM +1000, Da Rock wrote: > > > > On Wed, 2008-10-01 at 12:57 +0400, Boris Samorodov wrote: > > > Da Rock writes: > > > > On Wed, 2008-10-01 at 15:40 +1000, Da Rock wrote: > > > > > > >> Has anyone else had trouble with starting mysql server with the rc > > > >> script? > > > >> > > > >> I've only just installed from ports (as a dependency, mind) and > > > >> technically it should just start when you run the rc script - it sets up > > > >> the db dirs and stuff so it can just run. But I can't get it to do the > > > >> setup stuff automatically, and so the script fails. I've done the setup > > > >> manually before so its no real biggy, but I imagine others would be more > > > >> than a little frustrated. > > > >> > > > >> Anyone else have this trouble? I just realised I had to do this last > > > >> time too... > > > >> > > > >> For reference: I'm starting the script manually for testing at this > > > >> point (if that makes a difference- which I believe it shouldn't). > > > > > > > > Manually running port installed rc scripts is not working manually. I'm > > > > trying mysql, courier-imap, and I've tried isc-dhcp in the past. None of > > > > these will work when run manually- even on different machines and bsd > > > > versions (all 6.x). > > > > > > > > Is it just me? > > > > > > Sorry for may be a dumb question: did you define an > > > _enable="YES" at /etc/rc.conf[.local]? For more info > > > you may look at the script you are trying to start. > > > > So are you saying I can't start a script manually without enabling it in > > rc.conf? I was not under that impression... I thought it could be > > started manually for testing before setting it for automatic startup- > > based on my reading in the handbook and man pages. > > Yes, you can. Use forcestart/forcestop instead of start/stop when running > the rc script if you do not have it enabled in rc.conf. This is documented > in rc(8) (and is very easily overlooked if you don't know what you are > looking for.) Well thank you both for that piece of information, I had overlooked that. I did end up using it that way, but I was still unaware that it was mandatory. From gpeel at thenetnow.com Thu Oct 2 01:30:37 2008 From: gpeel at thenetnow.com (Grant Peel) Date: Thu Oct 2 01:30:43 2008 Subject: Bruteblocker Message-ID: <4C952FBB23ED4174A030514F6AB84030@GRANT> Hi all, I have been tinkering with bruteblock all night, and was wondering if anyone else on this list has used it. I can't seem to get proftpd.conf, syslog.conf setup correclty to log the ips to table one (in ipfw). Any assistance would be appreciated. -grant From derek at computinginnovations.com Thu Oct 2 01:56:07 2008 From: derek at computinginnovations.com (Derek Ragona) Date: Thu Oct 2 01:56:25 2008 Subject: PXE real life use In-Reply-To: <19767056.post@talk.nabble.com> References: <19756184.post@talk.nabble.com> <6.0.0.22.2.20081001105719.02561358@mail.computinginnovations.com> <19767056.post@talk.nabble.com> Message-ID: <6.0.0.22.2.20081001204748.02a4fcd8@mail.computinginnovations.com> At 02:04 PM 10/1/2008, Chris Papageorgiou wrote: >Dear Derek, >First Id like to thank you for your reply. >Yes I've read the handbook and lots of other technical articles on this >particular subject, >what concerns me is the overall 'worth' of this technique just to install >OS's on customer's computers through PXE and not by the traditional way. > >Best Regards, >Chris Chris, This is best used as a way to boot a client into an OS. You can then control the OS used for these clients, AND have just one place to worry about updates. It also gives you control on what applications you make available to the users. While you can use PXE,, bootp, or tftp to provide a boot and then load an OS to a local drive, that is usually more trouble than it is worth. -Derek >Derek Ragona wrote: > > > > At 03:03 AM 10/1/2008, Chris Papageorgiou wrote: > > > >>Hello all, > >>I'd like to point a subject on PXE server usage on a daily basis such as a > >>service department. > >>Im thinking of developing such system to load OS's(not strictly *NIX) > >>installations through LAN than using a CD each time. > >>What would be the cons,pros to such system and what are the limits? > >> > >>Looking forward for your replies. > >> > >>Best regards, > >>Chris Papageorgiou > > > > Chris, > > > > Have you read the handbook on diskless clients? That will give you some > > good background on the subject. > > > > The reason to use diskless clients is simplified support, where you only > > need to update the diskless client boot to update all the clients that use > > that boot. > > > > As for issues, bandwidth can be problematic, depending on the number of > > clients, and if they all boot at the same time. > > > > -Derek > > > > -- > > This message has been scanned for viruses and > > dangerous content by MailScanner, and is > > believed to be clean. > > > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@freebsd.org" > > > > > >-- >View this message in context: >http://www.nabble.com/PXE-real-life-use-tp19756184p19767056.html >Sent from the freebsd-questions mailing list archive at Nabble.com. > >_______________________________________________ >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 message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From on at cs.ait.ac.th Thu Oct 2 02:38:53 2008 From: on at cs.ait.ac.th (Olivier Nicole) Date: Thu Oct 2 02:39:00 2008 Subject: Securing system with kern.securelevel In-Reply-To: <54674.217.114.136.134.1222857247.squirrel@mail.dsa.es> (juancr@dsa.es) References: <54674.217.114.136.134.1222857247.squirrel@mail.dsa.es> Message-ID: <200810020243.m922hQ0p032206@banyan.cs.ait.ac.th> Hi, > Which would be the correct secure level ? 1, 2, or 3? Not sure, I usually use level 1 across the servers. > Also, where i must put the kern.securelevel? $ grep secure /etc/rc.conf kern_securelevel="1" kern_securelevel_enable="YES" Best regards, Olivier From alocchi at triactive.asia Thu Oct 2 02:50:53 2008 From: alocchi at triactive.asia (Annette Locchi) Date: Thu Oct 2 02:51:00 2008 Subject: Software Compliance audits (BSA) - no problem! Message-ID: <76790db3cae8aee7b735294d63b607bf@localhost.localdomain> assets ? monitoring ? community ? inventory ? security ? patch ? helpdesk ? Web remote [http://gw.vtrenz.net/?SJIAXWWTT2:VYHOK5KD2D=ssID:141250888,email:rhalversen@triactive.com] Software That Pays For Itself? The Gartner Group states that companies are overbuying software licenses on 60% of their software title and out of compliance on 30%. This means that they are only spot on for 10% of the software in their environment! When it comes to EA renewals, this equates to big dollars. According to a multi-billion dollar reseller, for a company of 300 systems, typical savings from a properly balanced EA true-up is $28,000 for a 3-year agreement. For 2400 users, the savings is $208,000. Highlights: - Identify and remove unused software licenses from your environment - Wake-On-LAN, checkpoint/restart, auto-retry for software delivery - Save money by determining the right level of usage for each application - Reduce software license costs by at least 10-15% (procurement and renewals) - Leverage our 300k+ SW title catalog to identify all the SW in your environment - Customized Web dashboard and reports for your asset manager and CFO - Track usage on all systems whether on the LAN, remote, or traveling [http://gw.vtrenz.net/?SJIAXWWTT2:SS78RG78F3=ssID:141250888,email:rhalversen@triactive.com] "With accurate software installation data available from TriActive, we analyzed our software license compliance. We found some instances where we had too many licenses, and in others we did not have enough. Using TriActive?s solution, we saved $300,000!" This message was sent by: Annette Locchi, One Raffles Quay Level 25, North Tower, Singapore, none 449297, Singapore Powered by iContact: http://freetrial.icontact.com Manage your subscription: http://app.icontact.com/icp/mmail-mprofile.pl?r=15296656&l=15356&s=O4YX&m=213774&c=203543 Forward this message: http://app.icontact.com/icp/sub/forward?m=213774&s=15296656&c=O4YX&cid=203543 From jpaetzel at FreeBSD.org Thu Oct 2 03:58:59 2008 From: jpaetzel at FreeBSD.org (Josh Paetzel) Date: Thu Oct 2 03:59:06 2008 Subject: Optimal File System config for 2.5TB RAID5 In-Reply-To: <20081001111911.U8258@wojtek.tensor.gdynia.pl> References: <1222681181.48e0a25d094c3@www.inbox.lv> <48E21C66.8080407@FreeBSD.org> <20080930161407.E16761@wojtek.tensor.gdynia.pl> <20080930205435.B20033@wojtek.tensor.gdynia.pl> <00ee01c92346$69508fa0$3bf1aee0$@com> <20080930224447.GA58065@icarus.home.lan> <20081001083637.C7317@wojtek.tensor.gdynia.pl> <48E33CC6.7050504@infracaninophile.co.uk> <20081001111911.U8258@wojtek.tensor.gdynia.pl> Message-ID: <48E446CD.3090608@FreeBSD.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Wojciech Puchar wrote: >> | | the simple answer is that software RAID on todays computers vastly >> | outperforms ANY hardware raid solution, maybe except the ones for >> 10000$ | or more. >> >> You're basically correct, but I think you're overestimating the price of >> a good RAID controller. > > no. please give me example of any RAID hardware below 10000$ that WILL > be faster than properly configure software RAID solution under FreeBSD > with same amount of same disks. > > i mean faster under normal unix-like load, which is lots of parallel > accesses to same or different things, not simple tests. > > > there are NONE. I have a number of systems running postgresql + a python web application that see fairly heavy concurrent access. The 3ware 9690SA outperforms gmirror and can be had in 4 port with the battery for $600 or so. 8 port with a battery is closer to $1000 Hardware RAID gets you boot support from stripes, email alerts for RAID events in many cases, and with a battery the option to turn write caching on on the controller. Unfortunately there are a number of bad and/or poorly supported RAID controllers out there, especially on FreeBSD. I'd never suggest to anyone that my highpoint 2300 or LSI 3041R-E are "high performance", but on the other hand, at real world tasks like a database that backs up a webserver doing millions of hits a day, the LSI 320-2E does RAID 10 faster than gvinum, and my 3ware 9690SA's are faster than gmirror at RAID 1, plus offer the option for a warm spare. Software RAID has advantages, namely hardware independance. And it can be faster than low end hardware RAID. But you don't have to spend much to get a hardware solution that will smoke software RAID at real world applications. - -- Thanks, Josh Paetzel PGP: 8A48 EF36 5E9F 4EDA 5ABC 11B4 26F9 01F1 27AF AECB -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) iD8DBQFI5EbNJvkB8SevrssRAvdLAJ96CLUVK3M2YLKNmAxmIPlxoqp+fgCgnLp6 H1OgEHevOKqDJ/FRg5+fHpU= =MQFo -----END PGP SIGNATURE----- From jotawski at gmail.com Thu Oct 2 04:09:34 2008 From: jotawski at gmail.com (fire jotawski) Date: Thu Oct 2 04:09:40 2008 Subject: nat and firewall In-Reply-To: <48DA7491.8030002@daleco.biz> References: <48DA7491.8030002@daleco.biz> Message-ID: On Thu, Sep 25, 2008 at 12:10 AM, Kevin Kinsey wrote: > FBSD1 wrote: > >> >> natd_enable="YES" This statement in rc.conf enables ipfw nated function. >> firewall_nat_enable="YES" This is an invalid statement. No such thing as >> you have here. >> > > This is no longer true; he did indeed find "firewall_nat_enable" > in /etc/defaults/rc.conf. The knob seems to have first appeared > in February in HEAD and I'm guessing it cues the system to use a > new kernel-based nat rather than natd(8), but I've not read anything > further about this, as my system isn't as up to date as the OP's. > I don't know when this change was MFC'ed, but apparently fairly > recently? > > I suppose we need someone a tad more "in the know" to straighten > that out for us. > up to this moment, i do not know if natd and firewall_nat function in the same or different. and is there firewall_nat_flags thing too ? thanks in advanced for any helps and hints. regards, psr > > Kevin Kinsey > -- > A wise man can see more from a mountain top > than a fool can from the bottom of a well. > From info at thedoctorsorders.com Thu Oct 2 05:57:47 2008 From: info at thedoctorsorders.com (The Doctor's Orders) Date: Thu Oct 2 05:57:55 2008 Subject: B-Boy Champs Warm Up & On The Real Message-ID: <101219.LBFLICDE@thedoctorsorders.com> [hea=] The only official B-Boy Championships Warm Up Party [hea=] Friday 10th October 2008 @ Plan B, 418 Brixton Road, London SW9 (Brixton Tube) ?3 B4 11pm / ?5 B4 Midnight / ?8 After With DJs James Pants (Stones Throw) Spin Doctor (The Doctor's Orders) Skeme Richards (Rock Steady Crew) DJ Timber (Zulu Kingz) British Hip-Hop London's premier party providers are heading south to host the only official B-Boy Champs' warm up party! With an incredible line up of US and UK talent, including two of the Champ's DJs, playing everything from the finest in party Hip-Hop, B-Boy breaks through to Disco and classic Soul there will no hiding place on the dance-floor as the UK's finest B-Boys and the dedicated Doctor's Orders crowd get down to the sounds of.... JAMES PANTS is the freshest thing to come out of the legendary Stones Throw label and with a roster that includes Madlib, Quasimoto & Guilty Simpson to name a few that is really saying something. With his production sound incorporating everything from 80's Boogie & Electro to New Wave Punk & Disco it is his Soul & Hip-Hop side that will be coming to the fore tonight as he blesses us with an exclusive London DJ set! SPIN DOCTOR is a favourite down at Plan B and pretty much everywhere he plays as there is no way you can not be having a good time when he is on the set. His party rocking sets of Hip-Hop in its broadest sense are not for the feint hearted and with this being a B-Boy special there are sure be to more than a few surprises in this set. SKEME RICHARDS has literally learnt from the best. Running a night alongside turntable legend DJ Cash Money and hailing from Philly the home of Jazzy Jeff, The Roots & Gill Scott to name a few has been as fine an education as any DJ could ask for. As a member of the legendary Rock Steady Crew he has played a variety of events all over the world from B-Boy battles to fashion shows and has rocked every last one! DJ TIMBER having grown in Belfast he has established himself as one of the world finest B-Boy DJs playing events in all corners of the globe. He will be treating us to a rare party set that will be as high energy as Red Bull on speed! [1]facebook Event _________________________________________________________________ On The Real Baby J Album Launch Party Bringing you true school Hip-Hop & Soul from Prince & Premier to Motown & Mos Def 9pm-3am Friday 17th October 2008 @ Bar Rumba, 36 Shaftesbury Avenue, London W1 (Picadilly Tube) ?5 in advance through ticketweb.co.uk / 0844-477-100 ?10 on the door Baby J "Baby Food" Album Launch Party With special guests Baby J with live PA's from Million Dan, Tawiah, Alex Blood & Malik With Resident DJs Shortee Blitz (Kiss FM / Extended Players) & Spin Doctor (The Doctor's Orders) After 3 months of headline guests from the US in the shape of DJ Neil Armstrong, Sadat X and Bobbito matched by storming sets from our residents we are bringing back to the UK for this extremely special album launch party for the UK's most prolific and respected Hip-Hop producer who is pulling out all the stops and calling in an all star line up of MCs & singers to join him. Baby J is the UK's very own Kanye West. Both hailing away from their respective nations' perceived centers of Hip-Hop they have both become experts in their field and man-magnets for the finest in Hip-Hop & R&B talent. Having struck gold with his ska remix of Mark Ronson's "Valerie" featuring girl of the moment Amy Winehouse which reached number 2 in the national charts and stayed there for eleven weeks as well as spending 5 weeks at the top of MTV's airplay chart Baby J's star is shining brighter than ever. With production credits for American Hip-Hop giants including Wu-Tang Clan, Brand Nubian and Dead Prez for his new "Baby Food" album he has selected a stella line up of UK vocal talent many of whom will be performing on the night. Once again he has shown his credentials as a studio giant and will be showing how those talents are matched by his skills on the decks as he rocks the house for the dedicated party people. Joining Baby J to perform tracks from his new album is titan of the UK Hip-Hop scene Million Dan that has one of the most definitive styles of any MC in the land. Stepping up to display the stunning soulful vocals that have seen her selected to travel the world as the primary vocalist for Marc Ronson's live show is Tawiah. Derby native Alex Blood will display the his lyrical dexterity that is as equally influenced by Marc Bolan as it is Toots and the Maytals. Malik will also be stepping up to raise the roof with the help of another packed dance-floor. [2]Check the interview wth Bobbito & Spin Doctor [3]Get your advance tickets [4]Facebook Event for more party details checkout [5]www & to be removed from the Doctors Orders list reply with unsubscribe as the subject References 1. 3D"http://www.new.facebook.com/event.php?eid=82863095393" 2. 3D"http://www.new.facebook.com/group.php?gid=15318919999" 3. 3D"http://www.ticketweb.co.uk/user/?region=gb_london&query 4. 3D"http://www.new.facebook.com/event.php?eid=27173833181" 5. 3D"http://www.thedoctorsorders.com"/ From sebastian.tymkow at gmail.com Thu Oct 2 06:09:20 2008 From: sebastian.tymkow at gmail.com (=?ISO-8859-1?Q?Sebastian_Tymk=F3w?=) Date: Thu Oct 2 06:09:27 2008 Subject: Logrotate In-Reply-To: <668A2B1DDBEC40BCAC6A82589B5D1159@GRANT> References: <668A2B1DDBEC40BCAC6A82589B5D1159@GRANT> Message-ID: <692660060810012309t29bed3aby5cf52abb92adb0df@mail.gmail.com> Hi, I'm not sure but I think you can try use "sharedscripts" in yor logrotete script. Another solution is make script which unlink/link logs. Best regards, Shamrock From koitsu at FreeBSD.org Thu Oct 2 06:26:55 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Thu Oct 2 06:27:01 2008 Subject: Logrotate In-Reply-To: <668A2B1DDBEC40BCAC6A82589B5D1159@GRANT> References: <668A2B1DDBEC40BCAC6A82589B5D1159@GRANT> Message-ID: <20081002062652.GA40660@icarus.home.lan> On Wed, Oct 01, 2008 at 07:52:48PM -0400, Grant Peel wrote: > I have recently started using logrotate to rotate all the logs in the > users home directories. These are all apache logs files. > > /home/domain.com/logsaccess_log > /home/domain.com/logsaccess_log.0.gz > /home/domain.com/logsaccess_log.1.gz > /home/domain.com/logsaccess_log.2.gz > > I have a problem though. Some of my domains have softlinks pointing to > them, this causes the logs to be rotated 2 or more times (i.e. 1 time for > the 'real' directory, and 1 time each for each softlink pointing to > them). > > Example > > /home/domain.com/logs/ > domain2.com -> domain.com > domain3.com -> domain.com > > will result in the 'access_log' being rotated 3 times in one run, causing > my log dirs to look like this: > > -rw-r--r-- 1 root holt 160 Oct 1 05:44 access_log > -rw-r--r-- 1 root holt 446 Oct 1 05:44 error_log > -rw-r--r-- 1 root holt 20 Oct 1 03:46 access_log.1.gz > -rw-r--r-- 1 root holt 20 Oct 1 03:46 access_log.2.gz > -rw-r--r-- 1 root holt 20 Oct 1 03:46 access_log.3.gz > -rw-r--r-- 1 root holt 20 Oct 1 03:46 access_log.4.gz > -rw-r--r-- 1 root holt 20 Oct 1 03:46 access_log.5.gz > -rw-r--r-- 1 root holt 20 Oct 1 03:46 access_log.6.gz > -rw-r--r-- 1 root holt 224 Oct 1 03:46 access_log.7.gz > -rw-r--r-- 1 root holt 20 Sep 30 03:46 access_log.8.gz > -rw-r--r-- 1 root holt 20 Sep 30 03:46 access_log.9.gz > > Here is this appropriate part of my logrotate.conf > > # logrotate.conf > > compress > > ... > > /home/*/logs/access_log { > missingok > rotate 14 > daily > create 644 root > sharedscripts > postrotate > /usr/local/sbin/apachectl restart > endscript > } > > # End of logrotate.conf > > > Question, is there a way to stop this from happening? The problem is that you're using a wildcard in your log list: /home/*/logs/access_log is going to expand to: /home/domain.com/logs/access_log /home/domain2.com/logs/access_log /home/domain3.com/logs/access_log /home/...anythingelse.../logs/access_log So the software will do exactly what you asked for. What we use on our production webservers: LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined CustomLog "/var/log/httpd-access.log" combined This puts the VirtualHost name being accessed as the first field in the logfile. Every night, via a cronjob, we split the file up per VirtualHost using a script that comes with Apache called split-logfile. E.g.: cd where_you_want_the_logs /usr/local/sbin/split-logfile < /var/log/httpd-access.log This will make a separate logfile per virtual host name, and you can do whatever you want from there on out. There's a performance advantage here as well: one logfile means only one file descriptor open, which is Good(tm). Multiple logfiles opened under Apache does not scale well. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From jonathan+freebsd-questions at hst.org.za Thu Oct 2 06:59:47 2008 From: jonathan+freebsd-questions at hst.org.za (Jonathan McKeown) Date: Thu Oct 2 06:59:58 2008 Subject: Cannot create custom FreeBSD 7.0 install CD for serial console In-Reply-To: <48E3DCB1.3010009@telus.net> References: <48E345AF.6050409@telus.net> <20081001112826.GA20013@icarus.home.lan> <48E3DCB1.3010009@telus.net> Message-ID: <200810020903.49117.jonathan+freebsd-questions@hst.org.za> On Wednesday 01 October 2008 22:25:21 Carl wrote: > Jeremy Chadwick wrote: > > On Wed, Oct 01, 2008 at 02:41:03AM -0700, Carl wrote: > >> I've been trying to create a modified FreeBSD 7.0 install CD that will > >> allow me to do installations entirely via the serial console on a > >> headless system. Lots of digging on the Internet, reading the handbook, > >> and I've gotten nowhere fast. > > > > Try this: > > > > http://jdc.parodius.com/freebsd/pxeboot_serial_install.html > > I was already aware of that solution, but it's not for me. There are > times when I need to do the install and setting up a DHCP server et al > is not viable. Installing FreeBSD via the network has no benefits for me > and I will not be trying to install remotely. All I need is to be able > to do a simple install using the local serial console because a keyboard > and monitor is not practical in the situation. Can anyone tell me where > the mistake is in my process? Look back through the list archives: Martin McCormick and I had a long discussion about this about a year ago (I think at least some of it ended up on this list). Here's an extract from one of the messages: On a system running 6.2-RELEASE, with a 6.2-RELEASE Disc 1 in the CD drive but not mounted: mkdir serialcd tar xvfC /dev/acd0 serialcd These two commands created a directory tree in serialcd containing most of the contents of the CD. There was a ``tar ignoring out-of-order file'' error, and when I mounted the CD and ran diff -qr /cdrom serialcd it reported that RELNOTES.TXT differed - in fact the version in the serialcd directory turned out to have zero length. [I suspect you could probably do this comparison quicker with mtree, and I never did bother to fix it or find out why it was happening] I edited serialcd/boot/loader.conf to include the line console="comconsole" I then ran mkisofs -J -r -b boot/cdboot -no-emul-boot -o serialcd.iso serialcd and got an ISO image, serial.iso, which is about 600MB. The only drawback with this method is that the serial console only cuts in just before the boot menu. I suspect that if you wanted to have a serial console for every stage of the boot you would need to mess about with the ramdisk image on the CD. HTH Jonathan From jonathan+freebsd-questions at hst.org.za Thu Oct 2 07:15:02 2008 From: jonathan+freebsd-questions at hst.org.za (Jonathan McKeown) Date: Thu Oct 2 07:15:09 2008 Subject: mysql rc script failure - correction: most installed rc scripts not running manually In-Reply-To: <1222905558.3927.1.camel@laptop1.herveybayaustralia.com.au> References: <1222839623.8573.5.camel@laptop1.herveybayaustralia.com.au> <20081001105337.GA47338@owl.midgard.homeip.net> <1222905558.3927.1.camel@laptop1.herveybayaustralia.com.au> Message-ID: <200810020918.44161.jonathan+freebsd-questions@hst.org.za> On Thursday 02 October 2008 01:59:18 Da Rock wrote: > On Wed, 2008-10-01 at 12:53 +0200, Erik Trulsson wrote: > > On Wed, Oct 01, 2008 at 08:39:47PM +1000, Da Rock wrote: > > > > > > So are you saying I can't start a script manually without enabling it > > > in rc.conf? I was not under that impression... I thought it could be > > > started manually for testing before setting it for automatic startup- > > > based on my reading in the handbook and man pages. > > > > Yes, you can. Use forcestart/forcestop instead of start/stop when > > running the rc script if you do not have it enabled in rc.conf. This is > > documented in rc(8) (and is very easily overlooked if you don't know what > > you are looking for.) > > Well thank you both for that piece of information, I had overlooked > that. I did end up using it that way, but I was still unaware that it > was mandatory. The problem with forcestart is that it ignores any errors that may occur. The better option for a manual start is onestart, which simply bypasses the test for the option being enabled but still fails on any other error (missing dependencies, startup problems etc). Jonathan From que_deseja at hotmail.com Thu Oct 2 07:45:15 2008 From: que_deseja at hotmail.com (Desmond Chapman) Date: Thu Oct 2 07:45:22 2008 Subject: vbox building and freebsd Message-ID: I'm posting this to two mailing lists because of the environment. # /home/moleque/VirtualBox-2.0.0/./configure Checking for environment: Determined build machine: freebsd.amd64, target machine: freebsd.amd64, OK. Checking for kBuild: found, OK. Checking for gcc: found version 4.2.1, OK. Checking for as86: found version 0.16.17, OK. Checking for bcc: found version 0.16.17, OK. Checking for iasl: found version 20070320, OK. Checking for xslt: found, OK. Checking for pthread: found, OK. /libexec/ld-elf.so.1: Shared object "libc.so.6" not found, required by "kmk_sed" Checking for libxml2: /libexec/ld-elf.so.1: Shared object "libc.so.6" not found, required by "kmk_sed" xml2 not found at -L/usr/local/lib -lxml2 -lpthread or xml2 headers not found Check the file /usr/home/moleque/sdk/bindings/configure.log for detailed error information. ===> Installing for libxml2-2.6.32 ===> libxml2-2.6.32 depends on executable: pkg-config - found ===> Generating temporary packing list ===> Checking if textproc/libxml2 already installed ===> libxml2-2.6.32 is already installed 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 textproc/libxml2 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/textproc/libxml2. There seems to be a conflict here. I also want to post a patch sent to me for bin86. I don't know the original source but would like to see it added. It will help x86 builds on amd64 hosts. I was asked to share it. from:walt (w41ter@gmail.com) "Desmond Chapman wrote: > Thanks for offering the help. How do I apply the patch that you sent? My pleasure. The 'patch' program has a zillion confusing options because it has morphed many times from its original incarnation, but the '-p' flag is the main one to understand. I didn't make the patch I posted, but this is how I would have done it: #cd /tmp (or wherever you prefer) #tar -xvzf /path/to/bin86-0.16.17.tar.gz #cd bin86-0.16.17 (customary to generate patches from the top directory) #cp ld/x86_aout.h ld/x86_aout.h.orig (the usual naming, but arbitrary) #vi ld/x86_aout.h (make the needed changes and save them) #diff -u ld/x86_aout.h.orig ld/x86_aout.h > /tmp/mynewpatch Now, look at the beginning of mynewpatch: --- ld/x86_aout.h.orig 2003-01-28 17:17:14.000000000 -0500 +++ ld/x86_aout.h 2005-05-07 22:40:05.000000000 -0400 That's important because it tells you I made the patch from the top of the source directory, but that's a tradition that not everyone obeys. Applying a patch is the mirror image of making a patch, so you need to know where to be in the source directory before you apply it. Hence, the -p flag is critical. This is how I would apply this particular patch: #cd /tmp (see the mirror image process already?) #tar -xvzf /path/to/bin86-0.16.17.tar.gz #cd bin86-0.16.17 #patch -p0 < /path/to/mynewpatch (there's that -p flag at last!) That -p0 tells 'patch' that you are now in the same directory where the patch was first generated. If you instead chose to be in the /tmp/bin86-0.16.17/ld directory when applying the patch, you would use -p1 instead of -p0. That's just a clue. You need to read the patch manpage for the rest! Please do pass this post on to anyone/everyone you think needs help. That's what opensource is all about. Let me know if you're still confused." On my own behalf, forgive me if I am a bit confusing; but, I am diving head first into a development environment I have little experience with. How do I solve the xml2 conflict listed above the patch? _________________________________________________________________ Want to do more with Windows Live? Learn ?10 hidden secrets? from Jamie. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008 From m.seaman at infracaninophile.co.uk Thu Oct 2 08:22:27 2008 From: m.seaman at infracaninophile.co.uk (Matthew Seaman) Date: Thu Oct 2 08:22:34 2008 Subject: Best way to back up mysql database In-Reply-To: <692660060810010933t6ada2c85g18b3e0e60d2cf02d@mail.gmail.com> References: <835F48BA-494E-44A0-8D2B-D9F139AB2125@identry.com> <94136a2c0810010201y6d561828lb125419de1613aee@mail.gmail.com> <81F44C16-59C8-4A44-AE2A-B9F233834383@identry.com> <692660060810010933t6ada2c85g18b3e0e60d2cf02d@mail.gmail.com> Message-ID: <48E484B6.7090502@infracaninophile.co.uk> -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Sebastian Tymk?w wrote: | Hello, | | You can store whole db files too. It's faster to run database from scratch | than use mysqldump and mysql "source". Um... no. In general you cannot do this, and it is exceedingly irresponsible to suggest such a thing. The *only* way this would ever be workable is if you shut down MySQL completely while your backup process was running. For anything other than a pissant little hobbyist DB that does no real work, that idea is just going to be a non-starter. If MySQL is running, then there is no guarantee that the contents of any disk file has been properly synched with the in-memory working copy of the data. Basically what you'ld be copying off the disk drive will be full of inconsistencies and hence useless as a backup. This is why programs like mysqldump(1) exist. 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREDAAYFAkjkhLYACgkQ3jDkPpsZ+VYlrQCgs+tBSJfxa8cKHF+oYsu5Cai2 qZEAoJ6lZupzjapi9ugrE20Jp6Ol1xxj =PMs9 -----END PGP SIGNATURE----- From yonyossef.lists at gmail.com Thu Oct 2 09:49:39 2008 From: yonyossef.lists at gmail.com (Yony Yossef) Date: Thu Oct 2 09:49:45 2008 Subject: Freeing an mbuf cluster Message-ID: <20def4870810020216x31f9c0d8yd4776622928c412e@mail.gmail.com> Hi All, I'm trying to manually build an mbuf chain with clusters in various sizes. I'm doing it using the MGETHDR and MEXTADD macros, it works fine. Now I'm looking for the simplest way to free an mbuf cluster, since I want to free the clusters seperately. This function will be given as a parameter to MEXTADD. Is there a simple command like 'free(buf)' to free an mbuf cluster? Thanks Yony From gpagnoni at gmail.com Thu Oct 2 09:50:29 2008 From: gpagnoni at gmail.com (Giuseppe Pagnoni) Date: Thu Oct 2 09:50:36 2008 Subject: LG combo drive and installation: drive not found Message-ID: <92056ebc0810020222w71d812e3j1b809872d2da9255@mail.gmail.com> Dear FreeBSD experts, I am trying to install FreeBSD 7.0 on a new i386 machine with no OS installed yet. I start the install process with the 1st CD of the distribution, and I go through the partition phase with no problem. However, when I get to the point where I select the installation media (CD/DVD) it says that it cannot find the CD/DVD. I read on the FAQ list on the FreeBSD site that this can happen when the drive is configured as a slave with no master. So I opened up the box, and I saw that the drive has its own ATAPI/IDE cable/slot on the motherboard and the jumpers on the drive are set as MASTER. The drive is a new LG combo drive, I believe GH22LP20 or something close to it. I also tried to install Ubuntu and it works fine (but I really would like FreeBSD!). Any help or suggestion will be highly appreciated, thanks in advance giuseppe -- Dip. Scienze Biomediche Sezione Fisiologia Univ. di Modena e Reggio Emilia Via Campi 287 I-41100 Modena, Italy Tel: +39-059-205-5742 Fax: +39-059-205-5363 From popof.fpn at gmail.com Thu Oct 2 10:01:22 2008 From: popof.fpn at gmail.com (Popof Popof) Date: Thu Oct 2 10:01:33 2008 Subject: Realtek 8111C? In-Reply-To: <20081001170712.GA1391@phenom.cordula.ws> References: <48D3D0A8.7070504@mindling.com> <1221876046.4625.4.camel@laptop1.herveybayaustralia.com.au> <48D53DA1.2040808@mindling.com> <200809211527.53755.af300wsm@gmail.com> <48D85B3A.8070706@mindling.com> <340a29540809302126m6196e828u4e8949cc092847bb@mail.gmail.com> <20081001170712.GA1391@phenom.cordula.ws> Message-ID: <9196e72b0810020301se3056c1u17716d95575e638b@mail.gmail.com> I hav a mobo with the same NIC, I use it on a FreeNAS box that's runing a version based on FreeBSD 6.3. In order to make the NIC work i had to compile the drivers from realtek with an other FreeBSD box and load the module on startup. But data transfer from / to my FreeNAS box are slow. Anyone had the same problem with this NIC / Realtek drivers? Did someone used the drivers from FreeBSD 7.1 with (or without) FreeNAS ? Does the transfer speed are correct ? 2008/10/1 cpghost > On Tue, Sep 30, 2008 at 10:26:14PM -0600, Andrew Falanga wrote: > > On Mon, Sep 22, 2008 at 8:58 PM, Sebastian wrote: > > > Andrew Falanga wrote: > > >> > > >> On Saturday 20 September 2008 12:14:57 Sebastian wrote: > > >> > > >>> > > >>> Da Rock wrote: > > >>> > > >>>> > > >>>> I have used the compiled driver on 6.3 with success- but then I've > used > > >>>> the driver linked in a post to drivers list. 7.0 is a no go. > > >>>> > > >>> > > >>> I tried to compile the current OEM Realtek driver under (v176) on > fbsd > > >>> 6.3, but couldn't get it to build. My foo is a little thin here. :) > > >>> > > >>> > > >> > > >> Where did you get this OEM driver? > > >> > > > > > > The oem driver can be found here: > > > > > > > http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false > > > > > > It builds just fine on 6.3, once I read the file manual on how to build > a > > > kernel module. > > > > > > So far no problems running it with a fair amount of traffic. > > > > Awesome! Thanks. If I've been understanding another thread on here, > > it sounds like there's a FreeBSD driver coming in 7.1. > > Just for the record: the re(4) driver on my FreeBSD 7.1-PRERELEASE #0: > Fri Sep 26 14:43:33 CEST 2008 (both i386 and amd64) now runs like a > charm on a RealTek 8111C on-board NIC (at least with 100baseTX, I didn't > test with Gigabit): > > re0: Ethernet> port 0xe800-0xe8ff mem 0xfdfff000-0xfdffffff, > 0xfdfe0000-0xfdfeffff irq 17 at device 0.0 on pci2 > re0: Chip rev. 0x3c000000 > re0: MAC rev. 0x00200000 > miibus0: on re0 > rgephy0: PHY 1 on miibus0 > rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, > 1000baseT-FDX, auto > > $ ifconfig re0 > re0: flags=8843 metric 0 mtu 1460 > options=389b WOL_UCAST,WOL_MCAST,WOL_MAGIC> > ether 00:21:85:XX:YY:ZZ > inet6 fe80::221:85ff:feXX:YYYZZ%re0 prefixlen 64 scopeid 0x1 > inet 192.168.254.60 netmask 0xffffff00 broadcast 192.168.254.255 > media: Ethernet autoselect (100baseTX ) > status: active > > $ lspci -v > > (...) > > 02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B > PCI Express Gigabit Ethernet controller (rev 02) > Subsystem: Micro-Star International Co., Ltd. Unknown device 501c > Flags: bus master, fast devsel, latency 0, IRQ 17 > I/O ports at e800 > Memory at fdfff000 (64-bit, prefetchable) > Memory at fdfe0000 (64-bit, prefetchable) > Expansion ROM at feaf0000 [disabled] > Capabilities: [40] Power Management version 3 > Capabilities: [50] Message Signalled Interrupts: Mask- 64bit+ > Queue=0/1 Enable- > Capabilities: [70] Express Endpoint, MSI 01 > Capabilities: [b0] MSI-X: Enable- Mask- TabSize=2 > Capabilities: [d0] Vital Product Data > > > Andy > > > > -- > > A: Because it messes up the order in which people normally read text. > > Q: Why is it such a bad thing? > > A: Top-posting. > > Q: What is the most annoying thing on usenet and in e-mail? > > -cpghost. > > -- > Cordula's Web. http://www.cordula.ws/ > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > From frank at shute.org.uk Thu Oct 2 10:17:31 2008 From: frank at shute.org.uk (Frank Shute) Date: Thu Oct 2 10:17:38 2008 Subject: Logrotate In-Reply-To: <668A2B1DDBEC40BCAC6A82589B5D1159@GRANT> References: <668A2B1DDBEC40BCAC6A82589B5D1159@GRANT> Message-ID: <20081002101717.GA10650@melon.esperance-linux.co.uk> On Wed, Oct 01, 2008 at 07:52:48PM -0400, Grant Peel wrote: > > Hi all, > > I have recently started using logrotate to rotate all the logs in the users > home directories. These are all apache logs files. > > /home/domain.com/logsaccess_log > /home/domain.com/logsaccess_log.0.gz > /home/domain.com/logsaccess_log.1.gz > /home/domain.com/logsaccess_log.2.gz > > I have a problem though. Some of my domains have softlinks pointing to > them, this causes the logs to be rotated 2 or more times (i.e. 1 time for > the 'real' directory, and 1 time each for each softlink pointing to them). > > Example > > /home/domain.com/logs/ > domain2.com -> domain.com > domain3.com -> domain.com > > will result in the 'access_log' being rotated 3 times in one run, causing > my log dirs to look like this: > > -rw-r--r-- 1 root holt 160 Oct 1 05:44 access_log > -rw-r--r-- 1 root holt 446 Oct 1 05:44 error_log > -rw-r--r-- 1 root holt 20 Oct 1 03:46 access_log.1.gz > -rw-r--r-- 1 root holt 20 Oct 1 03:46 access_log.2.gz > -rw-r--r-- 1 root holt 20 Oct 1 03:46 access_log.3.gz > -rw-r--r-- 1 root holt 20 Oct 1 03:46 access_log.4.gz > -rw-r--r-- 1 root holt 20 Oct 1 03:46 access_log.5.gz > -rw-r--r-- 1 root holt 20 Oct 1 03:46 access_log.6.gz > -rw-r--r-- 1 root holt 224 Oct 1 03:46 access_log.7.gz > -rw-r--r-- 1 root holt 20 Sep 30 03:46 access_log.8.gz > -rw-r--r-- 1 root holt 20 Sep 30 03:46 access_log.9.gz > > Here is this appropriate part of my logrotate.conf > > # logrotate.conf > > compress > > ... > > /home/*/logs/access_log { > missingok > rotate 14 > daily > create 644 root > sharedscripts > postrotate > /usr/local/sbin/apachectl restart > endscript > } > > # End of logrotate.conf > > > Question, is there a way to stop this from happening? > > -Grant > Aswell as doing what Jeremy Chadwick mentioned, you might want to use newsyslog(8) to rotate your logs. It's got a couple of advantages that I know of: it's part of the base system and it gracefully sends Apache a signal (SIGUSR1) to stop it writing to the logfile before it rotates it. You want something like the following in newsyslog.conf(5): /var/log/httpd-access.log 644 5 200 * B /var/run/httpd.pid 30 Obviously, adjust the parameters to suit your needs. You want the 30 at the end. All explained in the manpage. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html From free.bsd at gmx.net Thu Oct 2 10:40:01 2008 From: free.bsd at gmx.net (FreeBSD Daemon) Date: Thu Oct 2 10:40:08 2008 Subject: php5 on a system upgraded from FBSD5.4R to FBSD6.3-p3 Message-ID: <48E49EB4.3060806@gmx.net> dear list, i just upgraded my system from 5.4R to 6.3-p3 when i now try to install php5 w/ apache integration (apache module) i get the following error when i try to start apache20: Cannot load /usr/local/libexec/apache2/libphp5.so into server: /usr/local/libexec/apache2/libphp5.so: Undefined symbol "__res_ninit" I googled but neither of the solution provided by the net community works ... i would really appreciate help. Thanks in advance! Zheyu From thavinci at thavinci.za.net Thu Oct 2 10:51:57 2008 From: thavinci at thavinci.za.net (Marcel Grandemange) Date: Thu Oct 2 10:52:04 2008 Subject: SNMP Message-ID: <01f001c9247c$ceb123f0$6c136bd0$@za.net> Anybody have docs on how to get ucd-snmp-4.2.7.1 working on FreeBSD? I used to have net-snmp working but had to switch over as FreeRadius only supported ucd-snmp. Advice? Thanks. From jmc-freebsd2 at milibyte.co.uk Thu Oct 2 11:00:23 2008 From: jmc-freebsd2 at milibyte.co.uk (Mike Clarke) Date: Thu Oct 2 11:00:32 2008 Subject: Canon Pixma iP4500 - problem with colours In-Reply-To: <20081001204906.GD58548@slackbox.xs4all.nl> References: <200810011546.29798.jmc-freebsd2@milibyte.co.uk> <20081001204906.GD58548@slackbox.xs4all.nl> Message-ID: <200810021159.04926.jmc-freebsd2@milibyte.co.uk> On Wednesday 01 October 2008, Roland Smith wrote: > On Wed, Oct 01, 2008 at 03:46:29PM +0100, Mike Clarke wrote: > > I've just installed a Canon Pixma iP4500 on a 6.3 system using CUPS > > and gutenprint. Black printing is fine but I've got problems with > > colours. The colour wheel on the CUPS test page comes out as a > > psychedelic collection of brightly coloured rings. If I print from > > gimp then the correct colours appear but they are very dark and > > "muddy". The colours start to look a bit more reasonable from the > > gimp if I push the gamma value up to 2. > > Have you installed a .ppd file for this printer? This is a file that > tells cups about the capabilities of this printer. I'm using the ppd file bundled with cups (/usr/local/share/cups/model/gutenprint/5.1/en_GB/stp-bjc-PIXMA-iP4500.5.1.ppd.gz). > See > http://www.linuxprinting.org/show_printer.cgi?recnum=Canon-PIXMA_IP43 >00_OR_PIXMA_IP4500 > > I'm not sure if just installing the ppd file works. It does for my > PostScript printer. That didn't work for me. I couldn't find anywhere to download just the ppd file file so I downloaded cnijfilter-ip4500series_2.80-1_i386.deb from Canon's site and extracted the ppd file from that with tar. That failed with the message "Unable to execute /usr/local/libexec/cups/filter/pstocanonij: No such file or directory". Then I edited the cupsfilter line in the ppd file and replaced pstocanonij with rastertogutenprint.5.1 but that just resulted in "Gutenprint Fatal error: Corrupted NickName attribute in PPD file". The link you quoted implied that the IP4300 driver might also work for the IP4500 so I tried to configure it as an IP4300 but it only spat out a blank page when I tried a test print. Interestingly the CUPS test page (/usr/local/share/cups/data/testprint.ps) only produces the psychedelic rings in the colour wheel if I print it from the local CUPS web page or from KGhostView, if I open it with the gimp and print from there I get the correct colour pattern but with very muddy colours. -- Mike Clarke From Millenia2000 at hotmail.com Thu Oct 2 11:24:09 2008 From: Millenia2000 at hotmail.com (Sean Cavanaugh) Date: Thu Oct 2 11:24:16 2008 Subject: php5 on a system upgraded from FBSD5.4R to FBSD6.3-p3 In-Reply-To: <48E49EB4.3060806@gmx.net> References: <48E49EB4.3060806@gmx.net> Message-ID: did you rebuild apache first after doing the upgrade? -------------------------------------------------- From: "FreeBSD Daemon" Sent: Thursday, October 02, 2008 6:13 AM To: ; Subject: php5 on a system upgraded from FBSD5.4R to FBSD6.3-p3 > dear list, > > i just upgraded my system from 5.4R to 6.3-p3 > when i now try to install php5 w/ apache integration (apache module) i > get the following error when i try to start apache20: > > Cannot load /usr/local/libexec/apache2/libphp5.so into server: > /usr/local/libexec/apache2/libphp5.so: Undefined symbol "__res_ninit" > > I googled but neither of the solution provided by the net community > works ... i would really appreciate help. > > Thanks in advance! > > Zheyu > > _______________________________________________ > 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 Thu Oct 2 11:26:37 2008 From: gesbbb at yahoo.com (Jerry) Date: Thu Oct 2 11:26:45 2008 Subject: Questions drivers for VGA and NIC In-Reply-To: <200810011436.27018.lists@rhavenn.net> References: <20081001232502.G56202@wojtek.tensor.gdynia.pl> <20081001180424.56e6ca69@scorpio> <200810011436.27018.lists@rhavenn.net> Message-ID: <20081002072622.0284a05d@scorpio> On Wed, 1 Oct 2008 14:36:26 -0800 Henrik Hudson wrote: >On Wednesday 01 October 2008, Jerry sent a missive >stating: >> On Wed, 1 Oct 2008 23:25:19 +0200 (CEST) >> >> Wojciech Puchar wrote: >> >> In all likelihood, the probability of any vendor creating FBSD >> >> specific drivers is directly proportionate to the expenditure of >> >> funds to create and maintain the driver versus the expected >> >> revenue from such an expenditure. >> > >> >giving out a specs will be the simplest way. >> >> Any entity, or corporation, has a right to expect a return on their >> investment. To expect a corporation to simply give away something, >> thereby depriving their shareholders, partners or whatever, of their >> rightfully expected monetary reward is foolish. It certainly is not a >> well thought out business model. > >There is a difference between open sourcing the binary blob and >possibly giving away optimizations, trade secrets, etc... and allowing >easier access to either hardware register specs or specs to write a >wrapper around a universal blob. > >Personally, I think they see it as a "quality" control issue, though >the quality of their own code is sometimes circumspect. The card >companies sell hardware and this is where their money is made and/or a >better experience with the software drivers. Open the hardware spec, >add a support clause that any "open source" drivers aren't officially >supported and you're good to go. Unfortunately, that is not a legally binding disclaimer in many locales. It is equivalent to wearing a T-Shirt with "Touch me and I'll kill you" embroidered on it. If someone touches you and you kill them you cannot then claim that they were fore warned. That is from an actual lecture I receive in a business class. >Opening the hardware spec will do nothing except sell more hardware. Unproven and if it were in factually correct, more businesses would make use of it. >a) the average joe will continue to buy systems with the supported >hardware / drivers, most likely Windows, OS X or a major Linux distro. >Probably wouldn't even know the open source ones exist. A bit naive in my personal opinion. The overwhelming majority of users that I am acquainted with and many of them are college students, buy what ever works best for them with the least amount of user intervention. The majority of users that I am familiar with do not want to spent valuable time attempting to configure a PC; they have better things to do. How many discussions have we had on this forum regarding the lack of a functional 'Flash' plug-in for web browsing, etc. Until problems like that are solved, expanding the base for FBSD is a touch uphill climb. >b) the geeks of the world will start running the open source driver if >it's better or not if it's worse for their applications. Either way, >it will only sell more hardware. Again, unproven. >c) The FOSS only crowd will start using the hardware since it has a >fully open source drivers. > >The open source driver doesn't need to be able to run Doom5 at >incredible speeds, it just needs high quality 2d and the ability to >handle some 3d compositing, etc... for desktop effects. Sorry; however, I totally disagree. A half-ass driver is akin to being slightly pregnant. You are either pregnant or you are not. A driver is either fully functional, or it is broken. To make arbitrary limits on what it should and should not be able to do is absurd. If I want to play a game, and your half-ass driver will not run it, then that driver is as useless as 'Tits on a bull'. It either works, or it doesn't. Too many people today accept inferior products/performance under just the guise you are employing. >My .02$ > >Henrik Again, it appears that NVIDIA has attempted to work with the FBSD community. Evidently, nothing has come of it. Unfortunate, to say the least. -- Jerry gesbbb@yahoo.com Not Hercules could have knock'd out his brains, for he had none. Shakespeare -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081002/29aa3090/signature.pgp From rock_on_the_web at comcen.com.au Thu Oct 2 11:56:27 2008 From: rock_on_the_web at comcen.com.au (Da Rock) Date: Thu Oct 2 11:56:35 2008 Subject: mysql rc script failure - correction: most installed rc scripts not running manually In-Reply-To: <200810020918.44161.jonathan+freebsd-questions@hst.org.za> References: <1222839623.8573.5.camel@laptop1.herveybayaustralia.com.au> <20081001105337.GA47338@owl.midgard.homeip.net> <1222905558.3927.1.camel@laptop1.herveybayaustralia.com.au> <200810020918.44161.jonathan+freebsd-questions@hst.org.za> Message-ID: <1222948400.3927.12.camel@laptop1.herveybayaustralia.com.au> On Thu, 2008-10-02 at 09:18 +0200, Jonathan McKeown wrote: > On Thursday 02 October 2008 01:59:18 Da Rock wrote: > > On Wed, 2008-10-01 at 12:53 +0200, Erik Trulsson wrote: > > > On Wed, Oct 01, 2008 at 08:39:47PM +1000, Da Rock wrote: > > > > > > > > So are you saying I can't start a script manually without enabling it > > > > in rc.conf? I was not under that impression... I thought it could be > > > > started manually for testing before setting it for automatic startup- > > > > based on my reading in the handbook and man pages. > > > > > > Yes, you can. Use forcestart/forcestop instead of start/stop when > > > running the rc script if you do not have it enabled in rc.conf. This is > > > documented in rc(8) (and is very easily overlooked if you don't know what > > > you are looking for.) > > > > Well thank you both for that piece of information, I had overlooked > > that. I did end up using it that way, but I was still unaware that it > > was mandatory. > > The problem with forcestart is that it ignores any errors that may occur. The > better option for a manual start is onestart, which simply bypasses the test > for the option being enabled but still fails on any other error (missing > dependencies, startup problems etc). > > Jonathan Well that might be more useful (and best practice)... Cheers for the heads up guys From rock_on_the_web at comcen.com.au Thu Oct 2 12:01:04 2008 From: rock_on_the_web at comcen.com.au (Da Rock) Date: Thu Oct 2 12:01:10 2008 Subject: Realtek 8111C? In-Reply-To: <9196e72b0810020301se3056c1u17716d95575e638b@mail.gmail.com> References: <48D3D0A8.7070504@mindling.com> <1221876046.4625.4.camel@laptop1.herveybayaustralia.com.au> <48D53DA1.2040808@mindling.com> <200809211527.53755.af300wsm@gmail.com> <48D85B3A.8070706@mindling.com> <340a29540809302126m6196e828u4e8949cc092847bb@mail.gmail.com> <20081001170712.GA1391@phenom.cordula.ws> <9196e72b0810020301se3056c1u17716d95575e638b@mail.gmail.com> Message-ID: <1222948673.3927.16.camel@laptop1.herveybayaustralia.com.au> On Thu, 2008-10-02 at 12:01 +0200, Popof Popof wrote: > I hav a mobo with the same NIC, I use it on a FreeNAS box that's runing a > version based on FreeBSD 6.3. > In order to make the NIC work i had to compile the drivers from realtek with > an other FreeBSD box and load the module on startup. > But data transfer from / to my FreeNAS box are slow. > > Anyone had the same problem with this NIC / Realtek drivers? > Did someone used the drivers from FreeBSD 7.1 with (or without) FreeNAS ? > Does the transfer speed are correct ? > > 2008/10/1 cpghost I thought that mine might be slow, but I couldn't be sure as its pretty weak hardware anyway. Might be worth some investigation. (I'm running 6.2 and 6.3) From roberthuff at rcn.com Thu Oct 2 12:04:29 2008 From: roberthuff at rcn.com (Robert Huff) Date: Thu Oct 2 12:04:36 2008 Subject: Questions drivers for VGA and NIC In-Reply-To: <20081002072622.0284a05d@scorpio> References: <20081001232502.G56202@wojtek.tensor.gdynia.pl> <20081001180424.56e6ca69@scorpio> <200810011436.27018.lists@rhavenn.net> <20081002072622.0284a05d@scorpio> Message-ID: <18660.47307.108170.97105@jerusalem.litteratus.org> Jerry : > Again, it appears that NVIDIA has attempted to work with the > FBSD community. Evidently, nothing has come of it. Unfortunate, > to say the least. The next step - sometimes suggested, but never to my knowledge attepted - would be for someone to run a collection to hire someone to do the programming. Considering we're talking about messing with the memory system, one suspects quality help would not come cheap. On the other hand, this is (as I understand it) not a FreeBSD issue; it's a (Free, Net, Open, Dragonfly)BSD issue. Trolling for interest/talent/funds in the other user bases might useful, Robert Huff From d.forsyth at ru.ac.za Thu Oct 2 12:20:59 2008 From: d.forsyth at ru.ac.za (DA Forsyth) Date: Thu Oct 2 12:21:07 2008 Subject: newsyslog and apache Message-ID: <48E4D8C2.5329.1F4F9A43@d.forsyth.ru.ac.za> I used to have one big apache log file, but decided to rotate it once a month using newsyslog. However, now apache stops and does not restart when the log is rotated. line from newsyslog.conf /var/log/apache/httpd-access.log 640 13 * $M1D8 B /var/run/httpd.pid 30 with a similar one for the error log. I have to manually start apache after this rotates the log. I alos see that 'apachectl restart' stops apache but it doesn't restart. any ideas? -- DA Fo rsyth Network Supervisor Principal Technical Officer -- Institute for Water Research http://www.ru.ac.za/institutes/iwr/ From dominique.goncalves at gmail.com Thu Oct 2 12:39:26 2008 From: dominique.goncalves at gmail.com (Dominique Goncalves) Date: Thu Oct 2 12:39:33 2008 Subject: nat and firewall In-Reply-To: References: <48DA7491.8030002@daleco.biz> Message-ID: <7daacbbe0810020539h530c6306o5f19abf35a68c6ad@mail.gmail.com> Hi, On Thu, Oct 2, 2008 at 6:09 AM, fire jotawski wrote: > On Thu, Sep 25, 2008 at 12:10 AM, Kevin Kinsey wrote: > >> FBSD1 wrote: >> >>> >>> natd_enable="YES" This statement in rc.conf enables ipfw nated function. >>> firewall_nat_enable="YES" This is an invalid statement. No such thing as >>> you have here. >>> >> >> This is no longer true; he did indeed find "firewall_nat_enable" >> in /etc/defaults/rc.conf. The knob seems to have first appeared >> in February in HEAD and I'm guessing it cues the system to use a >> new kernel-based nat rather than natd(8), but I've not read anything >> further about this, as my system isn't as up to date as the OP's. >> I don't know when this change was MFC'ed, but apparently fairly >> recently? >> >> I suppose we need someone a tad more "in the know" to straighten >> that out for us. >> > > up to this moment, i do not know if natd and firewall_nat function in the > same or different. > and is there firewall_nat_flags thing too ? I'll try to explain, natd_* knobs are for natd(8), a daemon firewall_nat_* knobs are for ipfw(8), NAT is processed by the kernel firewall_nat_* was added in the begenning of year in RELENG_7 http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.firewall?r1=1.52.2.2#rev1.52.2.2 The NAT configuration is done by /etc/rc.firewall, you can read this file to know how the configuration is done. This is two different ways to do NAT. I can't speak about performance, kernel vs daemon. Hope this helps. > thanks in advanced for any helps and hints. > regards, > psr > > >> >> Kevin Kinsey >> -- >> A wise man can see more from a mountain top >> than a fool can from the bottom of a well. >> > _______________________________________________ > 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" > Regards. -- There's this old saying: "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life." From gesbbb at yahoo.com Thu Oct 2 12:48:17 2008 From: gesbbb at yahoo.com (Jerry) Date: Thu Oct 2 12:48:23 2008 Subject: newsyslog and apache In-Reply-To: <48E4D8C2.5329.1F4F9A43@d.forsyth.ru.ac.za> References: <48E4D8C2.5329.1F4F9A43@d.forsyth.ru.ac.za> Message-ID: <20081002084811.6fe9a50d@scorpio> On Thu, 02 Oct 2008 14:20:50 +0200 "DA Forsyth" wrote: >I used to have one big apache log file, but decided to rotate it once >a month using newsyslog. > >However, now apache stops and does not restart when the log is >rotated. > >line from newsyslog.conf >/var/log/apache/httpd-access.log 640 13 * $M1D8 B > /var/run/httpd.pid 30 > >with a similar one for the error log. > >I have to manually start apache after this rotates the log. > >I alos see that 'apachectl restart' stops apache but it doesn't >restart. > >any ideas? I use 'rotatelogs': http://httpd.apache.org/docs/2.0/programs/rotatelogs.html to facilitate the rotating of logs. If you need further information, contact me OL. -- Jerry gesbbb@yahoo.com To see a need and wait to be asked, is to already refuse. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081002/a61daaf2/signature.pgp From rock_on_the_web at comcen.com.au Thu Oct 2 12:51:03 2008 From: rock_on_the_web at comcen.com.au (Da Rock) Date: Thu Oct 2 12:51:13 2008 Subject: Questions drivers for VGA and NIC In-Reply-To: <20081002072622.0284a05d@scorpio> References: <20081001232502.G56202@wojtek.tensor.gdynia.pl> <20081001180424.56e6ca69@scorpio> <200810011436.27018.lists@rhavenn.net> <20081002072622.0284a05d@scorpio> Message-ID: <1222951733.3927.27.camel@laptop1.herveybayaustralia.com.au> On Thu, 2008-10-02 at 07:26 -0400, Jerry wrote: > On Wed, 1 Oct 2008 14:36:26 -0800 > Henrik Hudson wrote: > > >On Wednesday 01 October 2008, Jerry sent a missive > >stating: > >> On Wed, 1 Oct 2008 23:25:19 +0200 (CEST) > >> > >> Wojciech Puchar wrote: > >> >> In all likelihood, the probability of any vendor creating FBSD > >> >> specific drivers is directly proportionate to the expenditure of > >> >> funds to create and maintain the driver versus the expected > >> >> revenue from such an expenditure. > >> > > >> >giving out a specs will be the simplest way. > >> > >> Any entity, or corporation, has a right to expect a return on their > >> investment. To expect a corporation to simply give away something, > >> thereby depriving their shareholders, partners or whatever, of their > >> rightfully expected monetary reward is foolish. It certainly is not a > >> well thought out business model. > > > >There is a difference between open sourcing the binary blob and > >possibly giving away optimizations, trade secrets, etc... and allowing > >easier access to either hardware register specs or specs to write a > >wrapper around a universal blob. > > > >Personally, I think they see it as a "quality" control issue, though > >the quality of their own code is sometimes circumspect. The card > >companies sell hardware and this is where their money is made and/or a > >better experience with the software drivers. Open the hardware spec, > >add a support clause that any "open source" drivers aren't officially > >supported and you're good to go. > > Unfortunately, that is not a legally binding disclaimer in many > locales. It is equivalent to wearing a T-Shirt with "Touch me and I'll > kill you" embroidered on it. If someone touches you and you kill them > you cannot then claim that they were fore warned. That is from an > actual lecture I receive in a business class. > > >Opening the hardware spec will do nothing except sell more hardware. > > Unproven and if it were in factually correct, more businesses would > make use of it. > > >a) the average joe will continue to buy systems with the supported > >hardware / drivers, most likely Windows, OS X or a major Linux distro. > >Probably wouldn't even know the open source ones exist. > > A bit naive in my personal opinion. The overwhelming majority of users > that I am acquainted with and many of them are college students, buy > what ever works best for them with the least amount of user > intervention. The majority of users that I am familiar with do not > want to spent valuable time attempting to configure a PC; they have > better things to do. How many discussions have we had on this forum > regarding the lack of a functional 'Flash' plug-in for web browsing, > etc. Until problems like that are solved, expanding the base for FBSD > is a touch uphill climb. > > >b) the geeks of the world will start running the open source driver if > >it's better or not if it's worse for their applications. Either way, > >it will only sell more hardware. > > Again, unproven. > > >c) The FOSS only crowd will start using the hardware since it has a > >fully open source drivers. > > > >The open source driver doesn't need to be able to run Doom5 at > >incredible speeds, it just needs high quality 2d and the ability to > >handle some 3d compositing, etc... for desktop effects. > > Sorry; however, I totally disagree. A half-ass driver is akin to being > slightly pregnant. You are either pregnant or you are not. A driver is > either fully functional, or it is broken. To make arbitrary limits on > what it should and should not be able to do is absurd. If I want to > play a game, and your half-ass driver will not run it, then that driver > is as useless as 'Tits on a bull'. It either works, or it doesn't. Too > many people today accept inferior products/performance under just the > guise you are employing. > > >My .02$ > > > >Henrik > > Again, it appears that NVIDIA has attempted to work with the FBSD > community. Evidently, nothing has come of it. Unfortunate, to say the > least. I apologise for jumping into this thread mid way, but wouldn't the problem be simply a case of nil NDA? If an FOSS programmer signed an NDA with say NVidia, then wouldn't the hardware supplier be more willing to supply more specific details? Anyone with experience in the legalities here? From zszalbot at gmail.com Thu Oct 2 12:51:27 2008 From: zszalbot at gmail.com (Zbigniew Szalbot) Date: Thu Oct 2 12:51:35 2008 Subject: newsyslog and apache In-Reply-To: <20081002084811.6fe9a50d@scorpio> References: <48E4D8C2.5329.1F4F9A43@d.forsyth.ru.ac.za> <20081002084811.6fe9a50d@scorpio> Message-ID: <94136a2c0810020551r23e39e3fq6b3202d7ef7b71d6@mail.gmail.com> Hello, 2008/10/2 Jerry : > On Thu, 02 Oct 2008 14:20:50 +0200 > "DA Forsyth" wrote: > >>I used to have one big apache log file, but decided to rotate it once >>a month using newsyslog. >> >>However, now apache stops and does not restart when the log is >>rotated. >> >>line from newsyslog.conf >>/var/log/apache/httpd-access.log 640 13 * $M1D8 B >> /var/run/httpd.pid 30 >> >>with a similar one for the error log. >> >>I have to manually start apache after this rotates the log. >> >>I alos see that 'apachectl restart' stops apache but it doesn't >>restart. >> >>any ideas? > > > I use 'rotatelogs': No need to change log rotation software since the problem clearly is somewhere else. You need to inspect Apache's error logs to see why it cannot start. -- Zbigniew Szalbot From bms at FreeBSD.org Thu Oct 2 13:05:58 2008 From: bms at FreeBSD.org (Bruce M. Simpson) Date: Thu Oct 2 13:06:05 2008 Subject: Freeing an mbuf cluster In-Reply-To: <20def4870810020216x31f9c0d8yd4776622928c412e@mail.gmail.com> References: <20def4870810020216x31f9c0d8yd4776622928c412e@mail.gmail.com> Message-ID: <48E4C29D.1020200@FreeBSD.org> Yony Yossef wrote: > Hi All, > > I'm trying to manually build an mbuf chain with clusters in various sizes. > I'm doing it using the MGETHDR and MEXTADD macros, it works fine. > Now I'm looking for the simplest way to free an mbuf cluster, since I want > to free the clusters seperately. This function will be given as a parameter > to MEXTADD. > > Is there a simple command like 'free(buf)' to free an mbuf cluster? > You don't specify if you are trying to add the external storage from a pool you manage, in which case, you're on your own. m_free() for a cluster or mbuf should just "do the right thing". Since the UMA cleanup there are destructor functions which should free the mbuf or cluster using the right pool. m_freem() works on chains, of course. cheers BMS From datahead4 at gmail.com Thu Oct 2 13:50:08 2008 From: datahead4 at gmail.com (Matt) Date: Thu Oct 2 13:50:15 2008 Subject: vbox building and freebsd In-Reply-To: References: Message-ID: On Thu, Oct 2, 2008 at 2:45 AM, Desmond Chapman wrote: > > I'm posting this to two mailing lists because of the environment. > > # /home/moleque/VirtualBox-2.0.0/./configure > Checking for environment: Determined build machine: freebsd.amd64, target machine: freebsd.amd64, OK. > Checking for kBuild: found, OK. > Checking for gcc: found version 4.2.1, OK. > Checking for as86: found version 0.16.17, OK. > Checking for bcc: found version 0.16.17, OK. > Checking for iasl: found version 20070320, OK. > Checking for xslt: found, OK. > Checking for pthread: found, OK. > /libexec/ld-elf.so.1: Shared object "libc.so.6" not found, required by "kmk_sed" > Checking for libxml2: /libexec/ld-elf.so.1: Shared object "libc.so.6" not found, required by "kmk_sed" > > xml2 not found at -L/usr/local/lib -lxml2 -lpthread or xml2 headers not found > Check the file /usr/home/moleque/sdk/bindings/configure.log for detailed error information. > [snip] > How do I solve the xml2 conflict listed above the patch? > Install the misc/compat6x port to gain access to the libc.so.6 that the pre-compiled kmk_sed was likely compiled with. If that doesn't work, you'll need to follow the kmake instructions to build from source. Matt From roberthuff at rcn.com Thu Oct 2 14:11:37 2008 From: roberthuff at rcn.com (Robert Huff) Date: Thu Oct 2 14:11:43 2008 Subject: Questions drivers for VGA and NIC In-Reply-To: <1222951733.3927.27.camel@laptop1.herveybayaustralia.com.au> References: <20081001232502.G56202@wojtek.tensor.gdynia.pl> <20081001180424.56e6ca69@scorpio> <200810011436.27018.lists@rhavenn.net> <20081002072622.0284a05d@scorpio> <1222951733.3927.27.camel@laptop1.herveybayaustralia.com.au> Message-ID: <18660.54932.394443.382443@jerusalem.litteratus.org> Da Rock writes: > I apologise for jumping into this thread mid way, but wouldn't > the problem be simply a case of nil NDA? If an FOSS programmer > signed an NDA with say NVidia, then wouldn't the hardware > supplier be more willing to supply more specific details? > > Anyone with experience in the legalities here? It's not just the legalities, it's the philosophy. Accepting the N.D.A. would allow the writing of a driver ... which would - based on what I know about siilar N.D.A.s - have to be released as a binary. Now that could happen, and be a working solution; it's worked for other products. (Examples are left as an exercise for the reader.) But it's the (rare) exception and not the rule for a reason. Ignoring philosophical disagreements, it makes it harder to find and fix problems. Case in point: FreeBSD supports Intel non-CPU hardware; in at least one case (the /em/ network driver) Intel not only writes the code (for free) but releases it under an appropriate license. This gains Intel a lot of cred. (The fact that it's superior code on a superior card doesn't hurt, nor does tha fact that the writer is available, responsive, and friendly.) Robert Huff From jerrymc at msu.edu Thu Oct 2 14:27:00 2008 From: jerrymc at msu.edu (Jerry McAllister) Date: Thu Oct 2 14:27:06 2008 Subject: Questions drivers for VGA and NIC In-Reply-To: <20081001180424.56e6ca69@scorpio> References: <200810011048.21874.lists@rhavenn.net> <18659.52849.278757.861259@jerusalem.litteratus.org> <20081001172216.5015add3@scorpio> <20081001232502.G56202@wojtek.tensor.gdynia.pl> <20081001180424.56e6ca69@scorpio> Message-ID: <20081002142519.GG51954@gizmo.acns.msu.edu> On Wed, Oct 01, 2008 at 06:04:24PM -0400, Jerry wrote: > On Wed, 1 Oct 2008 23:25:19 +0200 (CEST) > Wojciech Puchar wrote: > > >> In all likelihood, the probability of any vendor creating FBSD > >> specific drivers is directly proportionate to the expenditure of > >> funds to create and maintain the driver versus the expected revenue > >> from such an expenditure. > > > >giving out a specs will be the simplest way. > > Any entity, or corporation, has a right to expect a return on their > investment. To expect a corporation to simply give away something, > thereby depriving their shareholders, partners or whatever, of their > rightfully expected monetary reward is foolish. It certainly is not a > well thought out business model. First, in cases like this, giving out the specs so someone can write a good driver could increase their sales of cards which could, in turn, increase their profit. So, it would help their business rather than hurt it. They do not sell those drivers. They just use them to sell video cards. Since the lack of a driver that works in FreeBSD limits their sales of video cards, then they are making the business mistake you are indicating, only in a reverse sort of way. Second, and very important. No corporation has any right to expect a return on their investment. Investment is always a risk. They might hope for a return, but they will have to work for it. They will be fortunate to get it. More business ventures fail than succeed. Maybe it is only a case of using the wrong word, but it is still important to remember that there is no guarantee of profit. That was the big failing of price controls - that the government got in to the business of guaranteeing profits and then the whole thing fell apart. ////jerry Jerry McAllister jerrymc@msu.edu > > -- > Jerry > gesbbb@yahoo.com > > If man is only a little lower than the angels, the angels should reform. > > Mary Wilson Little From que_deseja at hotmail.com Thu Oct 2 14:47:07 2008 From: que_deseja at hotmail.com (Desmond Chapman) Date: Thu Oct 2 14:47:16 2008 Subject: the patch from walt Message-ID: --- ld/x86_aout.h.orig 2003-01-28 17:17:14.000000000 -0500 +++ ld/x86_aout.h 2005-05-07 22:40:05.000000000 -0400 @@ -13,7 +13,9 @@ typedef long Long; #define __OUT_OK 1 #else -typedef char Long[4]; +#define __OUT_OK 1 +#include +typedef int32_t Long; #endif Sorry about that. _________________________________________________________________ Want to do more with Windows Live? Learn ?10 hidden secrets? from Jamie. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008 From que_deseja at hotmail.com Thu Oct 2 14:54:23 2008 From: que_deseja at hotmail.com (Desmond Chapman) Date: Thu Oct 2 14:54:30 2008 Subject: More vbox and build troubles. Message-ID: ***** Checking libpng ***** compiling the following source file: #include #include extern "C" int main(void) { printf("found version %s", PNG_LIBPNG_VER_STRING); #if PNG_LIBPNG_VER >= 10205 printf(", OK.\n"); return 0; #else printf(", expected version 1.2.5 or higher\n"); return 1; #endif } using the following command line: g++ -O -Wall -o .tmp_out .tmp_src.cc "-lpng " .tmp_src.cc:2:17: error: png.h: No such file or directory .tmp_src.cc: In function 'int main()': .tmp_src.cc:5: error: 'PNG_LIBPNG_VER_STRING' was not declared in this scope I need the headers for this library- libpng-1.2.32. Are they in ports as part of another package or do I need to build them? If so, how? _________________________________________________________________ See how Windows Mobile brings your life together?at home, work, or on the go. http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/ From kirk at strauser.com Thu Oct 2 14:59:04 2008 From: kirk at strauser.com (Kirk Strauser) Date: Thu Oct 2 14:59:10 2008 Subject: More RAM for buffers? Message-ID: <200810020958.54563.kirk@strauser.com> I have an AMD system with 6GB of RAM. From dmesg: usable memory = 6428237824 (6130 MB) avail memory = 6203797504 (5916 MB) However, most of it is just sitting there when it looks like it could be used for buffers or cache: Mem: 1186M Active, 3902M Inact, 468M Wired, 233M Cache, 214M Buf, 138M Free Swap: 8192M Total, 900K Used, 8191M Free Since I've yet to find a great explanation for what the different types of memory are, could someone say why all that inactive memory is better than using it for cache or buffers? -- Kirk Strauser From kirk at strauser.com Thu Oct 2 15:05:07 2008 From: kirk at strauser.com (Kirk Strauser) Date: Thu Oct 2 15:05:13 2008 Subject: More RAM for buffers? In-Reply-To: <200810020958.54563.kirk@strauser.com> References: <200810020958.54563.kirk@strauser.com> Message-ID: <200810021004.56210.kirk@strauser.com> On Thursday 02 October 2008, Kirk Strauser wrote: > I have an AMD system with 6GB of RAM. From dmesg: > > usable memory = 6428237824 (6130 MB) > avail memory = 6203797504 (5916 MB) > > However, most of it is just sitting there when it looks like it could be > used for buffers or cache: On another AMD64 machine, also with 6GB of RAM, I have: Mem: 482M Active, 1044M Inact, 363M Wired, 3792K Cache, 214M Buf, 4023M Free Swap: 8192M Total, 8192M Free I can understand that on the other machine maybe inactive memory is more beneficial than cache or buffers, but this system is just sitting there with 4GB free (and the exact same amount of buffer memory as on the other, which seems a little too coincidental). -- Kirk Strauser From dave.list at pixelhammer.com Thu Oct 2 15:12:03 2008 From: dave.list at pixelhammer.com (DAve) Date: Thu Oct 2 15:12:10 2008 Subject: Running cron jobs as nobody Message-ID: <48E4E4B8.90202@pixelhammer.com> Good morning all, We have a cronjob we need to run as nobody from /etc/crontab and it seems to be not working. The job runs, but not as user nobody. I noticed two things, 1) the job to update the locate DB runs as nobody, because the script uses su to become nobody. echo /usr/libexec/locate.updatedb | nice -5 su -fm nobody || rc=3 2) nobody, as expected, has no shell or home dir in /etc/password. I searched around for an answer but didn't see anything concerning this other than a patch to cron to check if setuid fails. Is setting the user to nobody in /etc/crontab not possible? Thanks, DAve -- Don't tell me I'm driving the cart! From freebsd at celestial.com Thu Oct 2 15:36:48 2008 From: freebsd at celestial.com (Bill Campbell) Date: Thu Oct 2 15:36:55 2008 Subject: Running cron jobs as nobody In-Reply-To: <48E4E4B8.90202@pixelhammer.com> References: <48E4E4B8.90202@pixelhammer.com> Message-ID: <20081002153646.GA24929@ayn.mi.celestial.com> You can use ``su -c '/path/to/command' username'' to run scripts as users other than root. Another way is to use ``crontab -u username''. man crontab for details. Bill -- INTERNET: bill@celestial.com Bill Campbell; Celestial Software LLC URL: http://www.celestial.com/ PO Box 820; 6641 E. Mercer Way Voice: (206) 236-1676 Mercer Island, WA 98040-0820 Fax: (206) 232-9186 Of all the contrivances devised for cheating the laboring classes of mankind, none has been more effective than that which deludes him with paper money. -- -Daniel Webster From dnelson at allantgroup.com Thu Oct 2 15:45:18 2008 From: dnelson at allantgroup.com (Dan Nelson) Date: Thu Oct 2 15:45:26 2008 Subject: More vbox and build troubles. In-Reply-To: References: Message-ID: <20081002151947.GL86326@dan.emsphone.com> In the last episode (Oct 02), Desmond Chapman said: > > ***** Checking libpng ***** > compiling the following source file: > #include > #include > extern "C" int main(void) > { > printf("found version %s", PNG_LIBPNG_VER_STRING); > #if PNG_LIBPNG_VER >= 10205 > printf(", OK.\n"); > return 0; > #else > printf(", expected version 1.2.5 or higher\n"); > return 1; > #endif > } > using the following command line: > g++ -O -Wall -o .tmp_out .tmp_src.cc "-lpng " > .tmp_src.cc:2:17: error: png.h: No such file or directory > .tmp_src.cc: In function 'int main()': > .tmp_src.cc:5: error: 'PNG_LIBPNG_VER_STRING' was not declared in this scope > > > I need the headers for this library- libpng-1.2.32. Are they in ports > as part of another package or do I need to build them? If so, how? Assuming you have the png port installed, add -I/usr/local/include -L/usr/local/lib to your compile line. -- Dan Nelson dnelson@allantgroup.com From dave.list at pixelhammer.com Thu Oct 2 15:57:07 2008 From: dave.list at pixelhammer.com (DAve) Date: Thu Oct 2 15:57:15 2008 Subject: Running cron jobs as nobody In-Reply-To: <20081002153646.GA24929@ayn.mi.celestial.com> References: <48E4E4B8.90202@pixelhammer.com> <20081002153646.GA24929@ayn.mi.celestial.com> Message-ID: <48E4EF49.5080605@pixelhammer.com> Bill Campbell wrote: > You can use ``su -c '/path/to/command' username'' to run scripts as > users other than root. > > Another way is to use ``crontab -u username''. man crontab for > details. > > Bill I am being told the developer tried a user crontab without success. I've not suggested they try su yet though I dropped hints. Still seems odd that setting the user to nobody in /etc/crontab did not work. Dave -- Don't tell me I'm driving the cart! From nino80 at gmail.com Thu Oct 2 16:05:16 2008 From: nino80 at gmail.com (n j) Date: Thu Oct 2 16:05:23 2008 Subject: nat and firewall In-Reply-To: <7daacbbe0810020539h530c6306o5f19abf35a68c6ad@mail.gmail.com> References: <48DA7491.8030002@daleco.biz> <7daacbbe0810020539h530c6306o5f19abf35a68c6ad@mail.gmail.com> Message-ID: <92bcbda50810020905r9b5788ayb41cffe65834cd1c@mail.gmail.com> >> This is no longer true; he did indeed find "firewall_nat_enable" >> in /etc/defaults/rc.conf. The knob seems to have first appeared >> in February in HEAD and I'm guessing it cues the system to use a >> new kernel-based nat rather than natd(8), but I've not read anything >> further about this, as my system isn't as up to date as the OP's. >> I don't know when this change was MFC'ed, but apparently fairly >> recently? > firewall_nat_* was added in the begenning of year in RELENG_7 > http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.firewall?r1=1.52.2.2#rev1.52.2.2 > > This is two different ways to do NAT. I can't speak about performance, > kernel vs daemon. Apologies for jumping in another thread commenting on my own question, but I think the questions are very similar (see "Recompile kernel or module for ipfw+nat?", http://lists.freebsd.org/pipermail/freebsd-questions/2008-September/183418.html). It would seem that doing NAT with ipfw (in-kernel as opposed to using userland natd) is not possible in 7.0-RELEASE-p4 without recompiling the kernel to include IPDIVERT even though IPDIVERT was converted to loadable module way back. And I have doubts that even recompiling the kernel would help doing "ipfw add nat 123 all from any to any". However, I found the reason for that might be the following CVS commit message: # $FreeBSD: src/sys/modules/ipfw_nat/Makefile,v 1.1 2008/02/29 22:27:18 piso Exp $ "Move ipfw's nat code into its own kld: ipfw_nat." which got commited to RELENG_7 and HEAD only (explains why it doesn't work on my 7.0-RELEASE-p4). My guess is that this functionality is already available in 7.1-BETA since the code freeze began in September and ipfw nat code got committed in February. I can only guess if what I wrote above if correct, but I'll upgrade one machine to 7.1-BETA as soon as I get some spare time. Regards, -- Nino From rsmith at xs4all.nl Thu Oct 2 16:54:59 2008 From: rsmith at xs4all.nl (Roland Smith) Date: Thu Oct 2 16:55:13 2008 Subject: Canon Pixma iP4500 - problem with colours In-Reply-To: <200810021159.04926.jmc-freebsd2@milibyte.co.uk> References: <200810011546.29798.jmc-freebsd2@milibyte.co.uk> <20081001204906.GD58548@slackbox.xs4all.nl> <200810021159.04926.jmc-freebsd2@milibyte.co.uk> Message-ID: <20081002165456.GA91912@slackbox.xs4all.nl> On Thu, Oct 02, 2008 at 11:59:04AM +0100, Mike Clarke wrote: > On Wednesday 01 October 2008, Roland Smith wrote: > > > On Wed, Oct 01, 2008 at 03:46:29PM +0100, Mike Clarke wrote: > > > I've just installed a Canon Pixma iP4500 on a 6.3 system using CUPS > > > and gutenprint. Black printing is fine but I've got problems with > > > colours. The colour wheel on the CUPS test page comes out as a > > > psychedelic collection of brightly coloured rings. If I print from > > > gimp then the correct colours appear but they are very dark and > > > "muddy". The colours start to look a bit more reasonable from the > > > gimp if I push the gamma value up to 2. > > > > Have you installed a .ppd file for this printer? This is a file that > > tells cups about the capabilities of this printer. > > I'm using the ppd file bundled with cups > (/usr/local/share/cups/model/gutenprint/5.1/en_GB/stp-bjc-PIXMA-iP4500.5.1.ppd.gz). > > > See > > http://www.linuxprinting.org/show_printer.cgi?recnum=Canon-PIXMA_IP43 > >00_OR_PIXMA_IP4500 > > > > I'm not sure if just installing the ppd file works. It does for my > > PostScript printer. > > That didn't work for me. I couldn't find anywhere to download just the > ppd file file so I downloaded cnijfilter-ip4500series_2.80-1_i386.deb > from Canon's site and extracted the ppd file from that with tar. That > failed with the message "Unable to > execute /usr/local/libexec/cups/filter/pstocanonij: No such file or > directory". Then I edited the cupsfilter line in the ppd file and > replaced pstocanonij with rastertogutenprint.5.1 but that just resulted > in "Gutenprint Fatal error: Corrupted NickName attribute in PPD file". I was afraid that might happen. It needs a specific filter program. I'm assuming that pstocanonij is a binary-only Linux program? You could try getting it to work using FreeBSD's Linux emulation. > Interestingly the CUPS test page > (/usr/local/share/cups/data/testprint.ps) only produces the psychedelic > rings in the colour wheel if I print it from the local CUPS web page or > from KGhostView, if I open it with the gimp and print from there I get > the correct colour pattern but with very muddy colours. Gimp uses Gutenprint doesn't it? So you could try using the gutenprint driver? My strategy is to try and avoid these troubles. Spend a bit more and get a printer that works with postscript. Those will work on any UNIX-like OS. 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: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081002/d3d60660/attachment.pgp From gesbbb at yahoo.com Thu Oct 2 16:58:31 2008 From: gesbbb at yahoo.com (Jerry) Date: Thu Oct 2 16:58:38 2008 Subject: newsyslog and apache In-Reply-To: <94136a2c0810020551r23e39e3fq6b3202d7ef7b71d6@mail.gmail.com> References: <48E4D8C2.5329.1F4F9A43@d.forsyth.ru.ac.za> <20081002084811.6fe9a50d@scorpio> <94136a2c0810020551r23e39e3fq6b3202d7ef7b71d6@mail.gmail.com> Message-ID: <20081002125818.561909c4@scorpio> On Thu, 2 Oct 2008 14:51:26 +0200 "Zbigniew Szalbot" wrote: >No need to change log rotation software since the problem clearly is >somewhere else. You need to inspect Apache's error logs to see why it >cannot start. All the information on getting it working correctly is located here: http://httpd.apache.org/docs/1.3/logs.html#rotation -- Jerry gesbbb@yahoo.com "Surely you can't be serious." "I am serious, and don't call me Shirley." -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081002/4d1b00c2/signature.pgp From wojtek at wojtek.tensor.gdynia.pl Thu Oct 2 17:04:06 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Thu Oct 2 17:04:19 2008 Subject: More RAM for buffers? In-Reply-To: <200810020958.54563.kirk@strauser.com> References: <200810020958.54563.kirk@strauser.com> Message-ID: <20081002190329.B5593@wojtek.tensor.gdynia.pl> > > usable memory = 6428237824 (6130 MB) > avail memory = 6203797504 (5916 MB) > > However, most of it is just sitting there when it looks like it could be > used for buffers or cache: > > Mem: 1186M Active, 3902M Inact, 468M Wired, 233M Cache, 214M Buf, 138M Free > Swap: 8192M Total, 900K Used, 8191M Free i don't really know what it's actually are but "inact" are disk caches often. your files are cached From zszalbot at gmail.com Thu Oct 2 17:04:07 2008 From: zszalbot at gmail.com (Zbigniew Szalbot) Date: Thu Oct 2 17:04:20 2008 Subject: newsyslog and apache In-Reply-To: <20081002125818.561909c4@scorpio> References: <48E4D8C2.5329.1F4F9A43@d.forsyth.ru.ac.za> <20081002084811.6fe9a50d@scorpio> <94136a2c0810020551r23e39e3fq6b3202d7ef7b71d6@mail.gmail.com> <20081002125818.561909c4@scorpio> Message-ID: <94136a2c0810021004i3f826087pb9eb701a9a30b74d@mail.gmail.com> 2008/10/2 Jerry : > On Thu, 2 Oct 2008 14:51:26 +0200 > "Zbigniew Szalbot" wrote: > >>No need to change log rotation software since the problem clearly is >>somewhere else. You need to inspect Apache's error logs to see why it >>cannot start. > > All the information on getting it working correctly is located here: > > http://httpd.apache.org/docs/1.3/logs.html#rotation But he clearly stated: "I alos see that 'apachectl restart' stops apache but it doesn't restart." So I guess first thing is to check why apachectl does not restart the server. -- Zbigniew Szalbot From wojtek at wojtek.tensor.gdynia.pl Thu Oct 2 17:04:30 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Thu Oct 2 17:04:37 2008 Subject: More RAM for buffers? In-Reply-To: <200810021004.56210.kirk@strauser.com> References: <200810020958.54563.kirk@strauser.com> <200810021004.56210.kirk@strauser.com> Message-ID: <20081002190409.M5593@wojtek.tensor.gdynia.pl> > Mem: 482M Active, 1044M Inact, 363M Wired, 3792K Cache, 214M Buf, 4023M Free > Swap: 8192M Total, 8192M Free > > I can understand that on the other machine maybe inactive memory is more > beneficial than cache or buffers, but this system is just sitting there > with 4GB free (and the exact same amount of buffer memory as on the other, > which seems a little too coincidental). > -- just more files was not read already :) From wojtek at wojtek.tensor.gdynia.pl Thu Oct 2 17:06:31 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Thu Oct 2 17:06:38 2008 Subject: Optimal File System config for 2.5TB RAID5 In-Reply-To: <48E446CD.3090608@FreeBSD.org> References: <1222681181.48e0a25d094c3@www.inbox.lv> <48E21C66.8080407@FreeBSD.org> <20080930161407.E16761@wojtek.tensor.gdynia.pl> <20080930205435.B20033@wojtek.tensor.gdynia.pl> <00ee01c92346$69508fa0$3bf1aee0$@com> <20080930224447.GA58065@icarus.home.lan> <20081001083637.C7317@wojtek.tensor.gdynia.pl> <48E33CC6.7050504@infracaninophile.co.uk> <20081001111911.U8258@wojtek.tensor.gdynia.pl> <48E446CD.3090608@FreeBSD.org> Message-ID: <20081002190449.O5593@wojtek.tensor.gdynia.pl> > The 3ware 9690SA outperforms gmirror and can be had in 4 port with the did you made tests comparing it with gmirror with the same config? > battery for $600 or so. 8 port with a battery is closer to $1000 > > Hardware RAID gets you boot support from stripes, already said what should be done. > email alerts for RAID smartmontools... of course - if someone is happy spending money for such things - it's OK, their manufacturers are happy too. From wmoran at potentialtech.com Thu Oct 2 17:14:37 2008 From: wmoran at potentialtech.com (Bill Moran) Date: Thu Oct 2 17:14:46 2008 Subject: More RAM for buffers? In-Reply-To: <200810021004.56210.kirk@strauser.com> References: <200810020958.54563.kirk@strauser.com> <200810021004.56210.kirk@strauser.com> Message-ID: <20081002131435.efa1d07f.wmoran@potentialtech.com> In response to Kirk Strauser : > On Thursday 02 October 2008, Kirk Strauser wrote: > > > I have an AMD system with 6GB of RAM. From dmesg: > > > > usable memory = 6428237824 (6130 MB) > > avail memory = 6203797504 (5916 MB) > > > > However, most of it is just sitting there when it looks like it could be > > used for buffers or cache: > > On another AMD64 machine, also with 6GB of RAM, I have: > > Mem: 482M Active, 1044M Inact, 363M Wired, 3792K Cache, 214M Buf, 4023M Free > Swap: 8192M Total, 8192M Free > > I can understand that on the other machine maybe inactive memory is more > beneficial than cache or buffers, but this system is just sitting there > with 4GB free (and the exact same amount of buffer memory as on the other, > which seems a little too coincidental). inactive, cache, and buffer are all different types of "buffer". I've never been 100% clear on the exact differences, but it basically has to do with where the data in RAM came from. Depending on whether it was a VM page, or a disk page will determine what bucket it goes into when it moves out of active. I'm fairly sure that inactive is memory used by program code. When the program terminates, the memory is marked as inactive, which means the next time the program starts the code can simply be moved back to active and the program need not be reloaded from disk. Buffer and cache memory are disk data held at different points within the kernel. I've never been 100% clear on the difference, and I believe it depends heavily on a thorough understanding of how the kernel works. The other rule of thumb I've heard is that the closer memory is to the left side of top output, the less expensive it is for the kernel to move it to active ... inactive being the most efficient and cache requiring the most work by the kernel ... I could be wrong, though. I know that a lot of what I'm saying isn't authoritative, so I hope I'm not remembering any of this wrong. I think to fully understand how it works you'll need to read _The_Design_and_Implementation_. -- Bill Moran http://www.potentialtech.com From andrei693 at gmail.com Thu Oct 2 17:40:10 2008 From: andrei693 at gmail.com (Andrei Brezan) Date: Thu Oct 2 17:40:17 2008 Subject: mysqldump no match issue Message-ID: <48E50299.3040808@gmail.com> Hello list, I wanna do a mysqldump -u user -ppasswd --all-databases > backup.sql and all I get is mysqldump: No match. This happens either i put --all-databases or I specify any of the databases. I want to do a backup as user root, that's why I use all-databases opt. If I use the command: mysqldump -u root -p --all-databases >backup.sql I get the password prompt, I type the passwd and everythig works great. It seems that there is a problem with -p, i've tried --password with same result. If anyone has any ideea please let me know about it. I mention that i use Freebsd 7_0 and mysql 5.0.67 Thank you -- Andrei Brezan 310280 Arad - Romania mobile <+40 740 089 315> email www From freebsd-questions-local at be-well.ilk.org Thu Oct 2 17:44:24 2008 From: freebsd-questions-local at be-well.ilk.org (Lowell Gilbert) Date: Thu Oct 2 17:44:38 2008 Subject: Securing system with kern.securelevel In-Reply-To: <54674.217.114.136.134.1222857247.squirrel@mail.dsa.es> (DSA's message of "Wed\, 1 Oct 2008 10\:34\:07 -0000 \(GMT\)") References: <54674.217.114.136.134.1222857247.squirrel@mail.dsa.es> Message-ID: <44iqsayjre.fsf@be-well.ilk.org> "DSA - JCR" writes: > I would like to use securelevel to secure a backup schedluded box made > with FreeBSD. > > This box mount and unmount external USB disk where the backup is made once > a week. In that case, you can't set the securelevel higher than 1. > Which would be the correct secure level ? 1, 2, or 3? 0 or 1. > I don't want nobody modify scripts and root things, like adding a user to > make the thing by itself, ... or modify my crontab scripts, etc... Is this a machine that typically has users logging into it? If not, I would concentrate on securing the login procedures available rather than working on limiting the abilities of accounts once they have access to the machine. Securelevel is useful in a fairly narrow range of situations: some of the less obvious are that you have to be sure that you will notice quickly if the machine reboots, and the machine has to be physically secure. > Also, where i must put the kern.securelevel? Set it in rc.conf. > I didnt understood very well in the manual and handbook in which part of > the bootin process (rc) i must put the line in rc.conf? See the manual for rc.conf(5). You will want the kern_securelevel_enable and kern_securelevel variables. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ From andrei693 at gmail.com Thu Oct 2 17:44:52 2008 From: andrei693 at gmail.com (Andrei Brezan) Date: Thu Oct 2 17:44:59 2008 Subject: Mysqldump password issue Message-ID: <48E500EC.9010100@gmail.com> Hello list, I wanna do a mysqldump -u user -ppasswd --all-databases > backup.sql and all I get is mysqldump: No match. This happens either i put --all-databases or I specify any of the databases. I want to do a backup as user root, that's why I use all-databases opt. If I use the command: mysqldump -u root -p --all-databases >backup.sql I get the password prompt, I type the passwd and everythig works great. It seems that there is a problem with -p, i've tried --password with same result. If anyone has any ideea please let me know about it. I mention that i use Freebsd 7_0 and mysql 5.0.67 Thank you -- Andrei Brezan 310280 Arad - Romania mobile <+40 740 089 315> email www From kalin at el.net Thu Oct 2 18:05:05 2008 From: kalin at el.net (kalin m) Date: Thu Oct 2 18:05:11 2008 Subject: ssh jail Message-ID: <48E5070D.8050400@el.net> hi all... i have openssh 5. i want to jail the users to their home directories so they can go down but not up. i didn't see a directive that does that in the man or in the sshd_config. how do i do that? thanks... From josh.carroll at gmail.com Thu Oct 2 18:09:57 2008 From: josh.carroll at gmail.com (Josh Carroll) Date: Thu Oct 2 18:10:05 2008 Subject: More RAM for buffers? In-Reply-To: <20081002131435.efa1d07f.wmoran@potentialtech.com> References: <200810020958.54563.kirk@strauser.com> <200810021004.56210.kirk@strauser.com> <20081002131435.efa1d07f.wmoran@potentialtech.com> Message-ID: <8cb6106e0810021109m7a82d3d3j7e29f9e0ba406e13@mail.gmail.com> > inactive, cache, and buffer are all different types of "buffer". That is my understanding as well. > I'm fairly sure that inactive is memory used by program code. When the > program terminates, the memory is marked as inactive, which means the > next time the program starts the code can simply be moved back to > active and the program need not be reloaded from disk. I think non-program code can also be "inactive". For example, top memory output before: Mem: 337M Active, 1455M Inact, 407M Wired, 352K Cache, 214M Buf, 1745M Free and after: find /usr/src -type f -print0 | xargs -0 cat > /dev/null 2>&1 Mem: 348M Active, 1905M Inact, 402M Wired, 912K Cache, 214M Buf, 1288M Free I am also not sure exactly what constitutes each of these. I only know what the top man page says. And for Buf it says: Buf: number of pages used for BIO-level disk caching I'm not entirely sure what "BIO-level disk caching" is, but it is apparently NOT the caching of filesystem data. Josh From gahr at FreeBSD.org Thu Oct 2 18:34:43 2008 From: gahr at FreeBSD.org (Pietro Cerutti) Date: Thu Oct 2 18:35:20 2008 Subject: Mysqldump password issue In-Reply-To: <48E500EC.9010100@gmail.com> References: <48E500EC.9010100@gmail.com> Message-ID: <48E51421.2040407@FreeBSD.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Andrei Brezan wrote: | Hello list, | | I wanna do a | mysqldump -u user -ppasswd --all-databases > backup.sql | | and all I get is | mysqldump: No match. | | This happens either i put --all-databases or I specify any of the | databases. I want to do a backup as user root, that's why I use | all-databases opt. | | If I use the command: | mysqldump -u root -p --all-databases >backup.sql | I get the password prompt, I type the passwd and everythig works great. | It seems that there is a problem with -p, i've tried --password with | same result. | | If anyone has any ideea please let me know about it. | I mention that i use Freebsd 7_0 and mysql 5.0.67 Same MySQL version here, but running CURRENT. Everything works fine.. | | Thank you | | - -- Pietro Cerutti gahr@FreeBSD.org PGP Public Key: http://gahr.ch/pgp -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEAREKAAYFAkjlFCAACgkQwMJqmJVx947dzgCgmOM46RQWS+lTEHXHd/wXkZUX Uz8AoJEkwynwlaH9rMjRxgp7Xvja82M1 =On8Y -----END PGP SIGNATURE----- From m.seaman at infracaninophile.co.uk Thu Oct 2 19:01:10 2008 From: m.seaman at infracaninophile.co.uk (Matthew Seaman) Date: Thu Oct 2 19:01:18 2008 Subject: Mysqldump password issue In-Reply-To: <48E500EC.9010100@gmail.com> References: <48E500EC.9010100@gmail.com> Message-ID: <48E51A66.7050507@infracaninophile.co.uk> Andrei Brezan wrote: > Hello list, > > I wanna do a > mysqldump -u user -ppasswd --all-databases > backup.sql > > and all I get is > mysqldump: No match. > > This happens either i put --all-databases or I specify any of the > databases. I want to do a backup as user root, that's why I use > all-databases opt. > > If I use the command: > mysqldump -u root -p --all-databases >backup.sql > I get the password prompt, I type the passwd and everythig works great. > It seems that there is a problem with -p, i've tried --password with > same result. > > If anyone has any ideea please let me know about it. > I mention that i use Freebsd 7_0 and mysql 5.0.67 > My guess is that the password (which you've obviously elided) contains characters of syntactic significance to the shell. Any of the following will lead to wailing and gnashing of teeth: * ? [ < > & ; ! | $ Probably others as well. The general way to get round this is to put 'quote' marks around your password -- but this will only work if the password is a separate word on the command line -- ie. whitespace between it and any other tokens. I believe that the '-p' flag to MySQL is a bit painful in that regard as it doesn't allow whitespace between itself and the password. Hmmm... untested, but it should work if you just quote around the -p like so: '-ppassword'. Alternatively, just change the password to one containing less troublesome characters: a-zA-Z0-9:@#~+=-_^%., I recommend use of 'apg' to generate randomised but strangely memorable passwords. Oh, and simply making the password longer makes it much more secure even if you're limited to a relatively small alphabet. 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: 258 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081002/0ca253ab/signature.pgp From bmettee at pchotshots.com Thu Oct 2 19:05:13 2008 From: bmettee at pchotshots.com (Brad Mettee) Date: Thu Oct 2 19:05:21 2008 Subject: Mysqldump password issue In-Reply-To: <48E51421.2040407@FreeBSD.org> References: <48E500EC.9010100@gmail.com> <48E500EC.9010100@gmail.com> Message-ID: <4.3.2.7.2.20081002143717.0377a950@mail.pchotshots.com> Shouldn't there be a space between -p and the password? Like this: mysqldump -u user -p passwd --all-databases > backup.sql At 02:34 PM 10/2/2008, you wrote: >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA512 > >Andrei Brezan wrote: >| Hello list, >| >| I wanna do a >| mysqldump -u user -ppasswd --all-databases > backup.sql >| >| and all I get is >| mysqldump: No match. >| >| This happens either i put --all-databases or I specify any of the >| databases. I want to do a backup as user root, that's why I use >| all-databases opt. >| >| If I use the command: >| mysqldump -u root -p --all-databases >backup.sql >| I get the password prompt, I type the passwd and everythig works great. >| It seems that there is a problem with -p, i've tried --password with >| same result. >| >| If anyone has any ideea please let me know about it. >| I mention that i use Freebsd 7_0 and mysql 5.0.67 > >Same MySQL version here, but running CURRENT. Everything works fine.. > >| >| Thank you >| >| > > >- -- >Pietro Cerutti >gahr@FreeBSD.org > >PGP Public Key: >http://gahr.ch/pgp > >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v2.0.9 (FreeBSD) > >iEYEAREKAAYFAkjlFCAACgkQwMJqmJVx947dzgCgmOM46RQWS+lTEHXHd/wXkZUX >Uz8AoJEkwynwlaH9rMjRxgp7Xvja82M1 >=On8Y >-----END PGP SIGNATURE----- >_______________________________________________ >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" Brad Mettee PC HotShots, Inc. Baltimore, MD (410) 426-7617 -> Let us bring out the *Power* of your PCs. <- -> Custom Business Software Solutions since 1991 <- visit http://www.pchotshots.com for information about our company. From m.seaman at infracaninophile.co.uk Thu Oct 2 19:17:18 2008 From: m.seaman at infracaninophile.co.uk (Matthew Seaman) Date: Thu Oct 2 19:17:25 2008 Subject: ssh jail In-Reply-To: <48E5070D.8050400@el.net> References: <48E5070D.8050400@el.net> Message-ID: <48E51E2E.90500@infracaninophile.co.uk> kalin m wrote: > > hi all... > > i have openssh 5. i want to jail the users to their home directories so > they can go down but not up. > > i didn't see a directive that does that in the man or in the sshd_config. > > how do i do that? You need a specially patched version of OpenSSH. You can download the patches from here: http://chrootssh.sourceforge.net/download/ and try patching the system sources. If you're not an experienced developer wise in the ways of patch(1) and diff(1) and make(1) this definitely isn't a good idea especially for something as security sensitive as OpenSSH. Realistically, just install the security/openssh-portable port and make sure to check the 'OPENSSH_CHROOT' box in the config dialog. Note: if you choose to select the 'OVERWRITE_BASE' option, be sure to disable building ssh in the base system by making the appropriate entries in /etc/src.conf (see src.conf(5)) or otherwise ensure that whatever system update mechanism you use won't accidentally blow away your specially patched ssh daemon. If you don't overwrite the base system, then double check that the init scripts are starting up the openssh-portable version. You'll need at least this in /etc/rc.conf: sshd_enable="NO" openssh_enable="YES" 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: 258 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081002/6ecadea7/signature.pgp From kalin at el.net Thu Oct 2 20:00:10 2008 From: kalin at el.net (kalin m) Date: Thu Oct 2 20:00:17 2008 Subject: ssh jail In-Reply-To: <48E51E2E.90500@infracaninophile.co.uk> References: <48E5070D.8050400@el.net> <48E51E2E.90500@infracaninophile.co.uk> Message-ID: <48E52848.701@el.net> thanks.. i'll look at the patches.... Matthew Seaman wrote: > kalin m wrote: >> >> hi all... >> >> i have openssh 5. i want to jail the users to their home directories >> so they can go down but not up. >> >> i didn't see a directive that does that in the man or in the >> sshd_config. >> >> how do i do that? > > You need a specially patched version of OpenSSH. You can download > the patches from here: > > http://chrootssh.sourceforge.net/download/ > > and try patching the system sources. If you're not an experienced > developer wise in the ways of patch(1) and diff(1) and make(1) this > definitely isn't a good idea especially for something as security > sensitive as OpenSSH. > > Realistically, just install the security/openssh-portable port and > make sure to check the 'OPENSSH_CHROOT' box in the config dialog. > Note: if you choose to select the 'OVERWRITE_BASE' option, be sure > to disable building ssh in the base system by making the appropriate > entries in /etc/src.conf (see src.conf(5)) or otherwise ensure that > whatever system update mechanism you use won't accidentally blow away > your specially patched ssh daemon. > > If you don't overwrite the base system, then double check that the > init scripts are starting up the openssh-portable version. You'll > need at least this in /etc/rc.conf: > > sshd_enable="NO" > openssh_enable="YES" > > Cheers, > > Matthew > From andrei693 at gmail.com Thu Oct 2 20:16:07 2008 From: andrei693 at gmail.com (Andrei Brezan) Date: Thu Oct 2 20:16:14 2008 Subject: Mysqldump password issue In-Reply-To: <48E51A66.7050507@infracaninophile.co.uk> References: <48E500EC.9010100@gmail.com> <48E51A66.7050507@infracaninophile.co.uk> Message-ID: <48E52C0C.8030300@gmail.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Matthew Seaman wrote: > Andrei Brezan wrote: >> Hello list, >> >> I wanna do a >> mysqldump -u user -ppasswd --all-databases > backup.sql >> >> and all I get is >> mysqldump: No match. >> >> This happens either i put --all-databases or I specify any of the >> databases. I want to do a backup as user root, that's why I use >> all-databases opt. >> >> If I use the command: >> mysqldump -u root -p --all-databases >backup.sql >> I get the password prompt, I type the passwd and everythig works great. >> It seems that there is a problem with -p, i've tried --password with >> same result. >> >> If anyone has any ideea please let me know about it. >> I mention that i use Freebsd 7_0 and mysql 5.0.67 >> > > My guess is that the password (which you've obviously elided) contains > characters of syntactic significance to the shell. Any of the following > will lead to wailing and gnashing of teeth: > > * ? [ < > & ; ! | $ > > Probably others as well. The general way to get round this is to > put 'quote' marks around your password -- but this will only work if > the password is a separate word on the command line -- ie. whitespace > between it and any other tokens. I believe that the '-p' flag to MySQL > is a bit painful in that regard as it doesn't allow whitespace between > itself and the password. Hmmm... untested, but it should work if you > just quote around the -p like so: '-ppassword'. > > Alternatively, just change the password to one containing less > troublesome characters: a-zA-Z0-9:@#~+=-_^%., I recommend use of > 'apg' to generate randomised but strangely memorable passwords. Oh, > and simply making the password longer makes it much more secure even > if you're limited to a relatively small alphabet. > > Cheers, > > Matthew > Thank you Matthew, you were right. My password contains special characters. It works now with '-ppasswd' or with --password='passwd' - -- Andrei Brezan 310280 Arad - Romania mobile <+40 740 089 315> email www -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjlLAwACgkQUmw8msqk48YKugCfasoH9/cfo/xgss7wmuAIlnK6 xS8An0idODUSkUnwKLlRKYKqoCQ5Cy3P =UQ5J -----END PGP SIGNATURE----- From fcondo at quinn.com Thu Oct 2 20:34:18 2008 From: fcondo at quinn.com (Fred Condo) Date: Thu Oct 2 20:34:50 2008 Subject: Mysqldump password issue In-Reply-To: <48E51A66.7050507@infracaninophile.co.uk> References: <48E500EC.9010100@gmail.com> <48E51A66.7050507@infracaninophile.co.uk> Message-ID: <55808659-9401-4D7A-8565-D7851D8E1F0B@quinn.com> On Oct 2, 2008, at 12:00 PM, Matthew Seaman wrote: > Andrei Brezan wrote: >> Hello list, >> I wanna do a >> mysqldump -u user -ppasswd --all-databases > backup.sql >> and all I get is >> mysqldump: No match. >> This happens either i put --all-databases or I specify any of the >> databases. I want to do a backup as user root, that's why I use >> all-databases opt. >> If I use the command: >> mysqldump -u root -p --all-databases >backup.sql >> I get the password prompt, I type the passwd and everythig works >> great. >> It seems that there is a problem with -p, i've tried --password with >> same result. >> If anyone has any ideea please let me know about it. >> I mention that i use Freebsd 7_0 and mysql 5.0.67 > > My guess is that the password (which you've obviously elided) contains > characters of syntactic significance to the shell. Any of the > following > will lead to wailing and gnashing of teeth: > > * ? [ < > & ; ! | $ > > Probably others as well. The general way to get round this is to > put 'quote' marks around your password -- but this will only work if > the password is a separate word on the command line -- ie. whitespace > between it and any other tokens. I believe that the '-p' flag to > MySQL > is a bit painful in that regard as it doesn't allow whitespace between > itself and the password. Hmmm... untested, but it should work if you > just quote around the -p like so: '-ppassword'. > > Alternatively, just change the password to one containing less > troublesome characters: a-zA-Z0-9:@#~+=-_^%., I recommend use of > 'apg' to generate randomised but strangely memorable passwords. Oh, > and simply making the password longer makes it much more secure even > if you're limited to a relatively small alphabet. If consistent with your security policies, you can store the password in your ~/.my.cnf file: [client] user=db_user password=funny&password From gahr at FreeBSD.org Thu Oct 2 22:32:51 2008 From: gahr at FreeBSD.org (Pietro Cerutti) Date: Thu Oct 2 22:32:58 2008 Subject: Mysqldump password issue In-Reply-To: <4.3.2.7.2.20081002143717.0377a950@mail.pchotshots.com> References: <48E500EC.9010100@gmail.com> <48E500EC.9010100@gmail.com> <4.3.2.7.2.20081002143717.0377a950@mail.pchotshots.com> Message-ID: <48E54BEF.4010608@FreeBSD.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Brad Mettee wrote: | Shouldn't there be a space between -p and the password? Like this: | | mysqldump -u user -p passwd --all-databases > backup.sql ~From the man page: The password to use when connecting to the server. If you use the short option form (-p), you cannot have a space between the option and the password. If you omit the password value following the - --password or -p option on the command line, you are prompted for one. | | At 02:34 PM 10/2/2008, you wrote: | Andrei Brezan wrote: | | Hello list, | | | | I wanna do a | | mysqldump -u user -ppasswd --all-databases > backup.sql | | | | and all I get is | | mysqldump: No match. | | | | This happens either i put --all-databases or I specify any of the | | databases. I want to do a backup as user root, that's why I use | | all-databases opt. | | | | If I use the command: | | mysqldump -u root -p --all-databases >backup.sql | | I get the password prompt, I type the passwd and everythig works great. | | It seems that there is a problem with -p, i've tried --password with | | same result. | | | | If anyone has any ideea please let me know about it. | | I mention that i use Freebsd 7_0 and mysql 5.0.67 | | Same MySQL version here, but running CURRENT. Everything works fine.. | | | | | 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" | Brad Mettee | PC HotShots, Inc. | Baltimore, MD | (410) 426-7617 | -> Let us bring out the *Power* of your PCs. <- | -> Custom Business Software Solutions since 1991 <- | visit http://www.pchotshots.com for information about our company. | _______________________________________________ | 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" - -- Pietro Cerutti gahr@FreeBSD.org PGP Public Key: http://gahr.ch/pgp -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEAREKAAYFAkjlS+4ACgkQwMJqmJVx9471cgCguT2IPIG/o1mJVpGwgfJlYWS/ EBoAn3+nAjiehzJ/YX8BhcPjj7xaz2ZW =Spnn -----END PGP SIGNATURE----- From frank at shute.org.uk Thu Oct 2 22:58:35 2008 From: frank at shute.org.uk (Frank Shute) Date: Thu Oct 2 22:58:43 2008 Subject: Questions drivers for VGA and NIC In-Reply-To: References: Message-ID: <20081002225823.GA13439@melon.esperance-linux.co.uk> On Wed, Oct 01, 2008 at 02:18:10PM -0400, Mungyung Ryu wrote: > > Hi BSD folks! > > I installed FreeBSD 7 Release - amd64. > I have ATI Radeon HD2600 pro VGA card but ATI is sucks for supporting driver > for Linux or FreeBSD! > So, I'm considering to replace the dam ATI card with NVIDIA Geforce. > I don't wanna play 3D games on FreeBSD, so just cheap Geforce card would be > enough, > but it should support 1920x1200 resolution. > I wonder if what Geforce model is supported by the FreeBSD 7R - amd64. > Anybody can recommend? Have you tried using: x11-drivers/xf86-video-ati? That should build on your machine. You can use: x11-drivers/xf86-video-nv with Nvidia cards on AMD64. The supported cards are listed in the manpage: http://xorg.freedesktop.org/archive/X11R7.0/doc/html/nv.4.html Cards that will drive your resolution are mentioned in this discussion: http://fixunix.com/hardware/8213-what-video-card-support-1920x1200-dvi-resolution.html I dare say anything newish should manage it. I use the nv driver and am quite happy with it (I'm a desktop user but non-gameplayer). It's rock solid in my experience and preferable to running a blob. > > Second, I want to use zero-copy facility of FreeBSD. > As far as I know, the hardware (NIC) support (Scatter-Gather DMA) is needed > for that as well as using sendfile() api. > Among the NIC products which has SGDMA function in the market, > which one is the most well supported by FreeBSD 7R - amd64? > I got a technical support from Intel, and they said there is no Intel NIC > which supports SGDMA. > That is so surprising.. isn't it? Don't know anything about this, I'm afraid :( But I suggest you search for NICs that do SGDMA & then see if FreeBSD supports it by looking at an appropriate manpage (if there is a driver). > > The driver issue is killing me on FreeBSD. > > Thanks. > Don't give up hope! The video should be easy to sort out, don't know about the NIC though. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html From wojtek at wojtek.tensor.gdynia.pl Thu Oct 2 23:17:43 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Thu Oct 2 23:17:50 2008 Subject: More RAM for buffers? In-Reply-To: <8cb6106e0810021109m7a82d3d3j7e29f9e0ba406e13@mail.gmail.com> References: <200810020958.54563.kirk@strauser.com> <200810021004.56210.kirk@strauser.com> <20081002131435.efa1d07f.wmoran@potentialtech.com> <8cb6106e0810021109m7a82d3d3j7e29f9e0ba406e13@mail.gmail.com> Message-ID: <20081003011713.A21713@wojtek.tensor.gdynia.pl> >> active and the program need not be reloaded from disk. > > I think non-program code can also be "inactive". i am sure. From stevefranks at ieee.org Fri Oct 3 00:08:15 2008 From: stevefranks at ieee.org (Steve Franks) Date: Fri Oct 3 00:08:22 2008 Subject: 'Atheros L2 - 10/100 controller (wired)' shows up in pc-bsd7, but not freebsd 7.1-stable Message-ID: <539c60b90810021708i5389d29dia82c06d23d5fd4b4@mail.gmail.com> I'm not surprised, just curious if there's actually a tweak, or if the pcbsd guys haven't moved the patch upstream. I find kde so annoying that I put 7-stable back on the machine, and my onboard lan disappeared again... Best, Steve From jotawski at gmail.com Fri Oct 3 03:24:44 2008 From: jotawski at gmail.com (fire jotawski) Date: Fri Oct 3 03:24:52 2008 Subject: nat and firewall In-Reply-To: <7daacbbe0810020539h530c6306o5f19abf35a68c6ad@mail.gmail.com> References: <48DA7491.8030002@daleco.biz> <7daacbbe0810020539h530c6306o5f19abf35a68c6ad@mail.gmail.com> Message-ID: On Thu, Oct 2, 2008 at 7:39 PM, Dominique Goncalves < dominique.goncalves@gmail.com> wrote: > Hi, > > On Thu, Oct 2, 2008 at 6:09 AM, fire jotawski wrote: > > On Thu, Sep 25, 2008 at 12:10 AM, Kevin Kinsey wrote: > > > >> FBSD1 wrote: > >> > >>> > >>> natd_enable="YES" This statement in rc.conf enables ipfw nated > function. > >>> firewall_nat_enable="YES" This is an invalid statement. No such thing > as > >>> you have here. > >>> > >> > >> This is no longer true; he did indeed find "firewall_nat_enable" > >> in /etc/defaults/rc.conf. The knob seems to have first appeared > >> in February in HEAD and I'm guessing it cues the system to use a > >> new kernel-based nat rather than natd(8), but I've not read anything > >> further about this, as my system isn't as up to date as the OP's. > >> I don't know when this change was MFC'ed, but apparently fairly > >> recently? > >> > >> I suppose we need someone a tad more "in the know" to straighten > >> that out for us. > >> > > > > up to this moment, i do not know if natd and firewall_nat function in the > > same or different. > > and is there firewall_nat_flags thing too ? > > I'll try to explain, > > natd_* knobs are for natd(8), a daemon > firewall_nat_* knobs are for ipfw(8), NAT is processed by the kernel > > firewall_nat_* was added in the begenning of year in RELENG_7 > > http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.firewall?r1=1.52.2.2#rev1.52.2.2 > > The NAT configuration is done by /etc/rc.firewall, you can read this > file to know how the configuration is done. > > This is two different ways to do NAT. I can't speak about performance, > kernel vs daemon. > many thanks indeed for your clear explanations. so we simply use just one of them but not both, do not we ? once again, i appreciate all of your kind asistances in my case. with best regards, psr From k0802647 at telus.net Fri Oct 3 06:58:26 2008 From: k0802647 at telus.net (Carl) Date: Fri Oct 3 06:58:32 2008 Subject: Intel S3210SHLC motherboard and FreeBSD 7.0 Message-ID: <48E5C290.3000208@telus.net> Does anyone have any direct experience running FreeBSD on the Intel S3210SHLC motherboard? If so, what problems have you run into? I'm trying to use FreeBSD 7.0, but I don't know yet if the problems are specific to 7.0 or not. The DVD reader/writer is an LG GH20NS10 SATA drive. Motherboard BIOS is release 45, BMC is release 31, and FRUSDR is 13. As per another thread I started, creating a serial console installation CD is just not working for me, although I'm still pursuing it. I managed to install FreeBSD 7.0 using the standard installer CD (aka internal console), but any deviation from that seems impossible. Creating a bootable USB flash thumb drive doesn't work either, despite having enabled such functionality in BIOS. In fact, getting this motherboard to boot from a USB thumb drive doesn't seem to work whether it contains FreeBSD or something else entirely. I've had a couple of incidents where pressing the reset button actually powers down the server for 5 seconds or so before automatically powering back up. Not a big deal, but doesn't instill confidence in this motherboard. Carl / K0802647 From dhaneshkk at hotmail.com Fri Oct 3 08:01:39 2008 From: dhaneshkk at hotmail.com (dhaneshk k) Date: Fri Oct 3 08:01:47 2008 Subject: acpi_tz0: _TMP value is absurd ignored (-269.7C) Message-ID: People ; I installed freebsd-7.0 in a p4 machine , after installation when I reboot the machine , I am getting the message acpi_tz0: _TMP value is absurd ignored (-269.7C) in every 3 seconds .. intel p4 3.0 GHz Intel 82915G (915G GMCH ) How can i get rid off this ... can someone shed some light on this regard .. Thanks in advance Dhanesh _________________________________________________________________ Movies, sports & news! Get your daily entertainment fix, only on live.com http://www.live.com/?scope=video&form=MICOAL From d.forsyth at ru.ac.za Fri Oct 3 08:08:54 2008 From: d.forsyth at ru.ac.za (DA Forsyth) Date: Fri Oct 3 08:09:04 2008 Subject: newsyslog and apache In-Reply-To: <20081002183522.7139710656DD@hub.freebsd.org> References: <20081002183522.7139710656DD@hub.freebsd.org> Message-ID: <48E5EF34.13368.238F34B7@d.forsyth.ru.ac.za> On 2 Oct 2008 , freebsd-questions-request@freebsd.org entreated about "freebsd-questions Digest, Vol 235, Issue 11": > No need to change log rotation software since the problem clearly is > somewhere else. You need to inspect Apache's error logs to see why it > cannot start. > the previous error log shows [Wed Oct 01 08:00:03 2008] [notice] Graceful restart requested, doing restart [Wed Oct 01 08:00:04 2008] [notice] seg fault or similar nasty error detected in the parent process the new error log shows, after the manual start [Wed Oct 01 08:39:09 2008] [warn] pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Wed Oct 01 08:39:09 2008] [notice] Apache/2.0.63 (FreeBSD) PHP/4.4.9 with Suhosin-Patch DAV/2 SVN/1.5.2 configured -- resuming normal operations those error messages are repeated any time I do a apachectl graceful However, doing apachectl stop apachectlstart works as expected. apache version is apache-2.0.63_2 from ports uname -a gives FreeBSD iwr.ru.ac.za 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #2: Mon Jun 2 13:10:26 SAST 2008 iwr.ru.ac.za:/usr/obj/usr/src/sys/KERNIWR70 i386 php v4 is installed, though i do plan to upgrade that to V5 as soon as I get time to do it. PS: I used to use logrotate, but it too stopped working correctly, with apache process stopping in a similar way that is why I changed to newsyslog. I rotate the logs monthly, and set it to 8am so there is a chance I'll be on hand to start apache to minimize downtime. -- DA Fo rsyth Network Supervisor Principal Technical Officer -- Institute for Water Research http://www.ru.ac.za/institutes/iwr/ From artis.caune at gmail.com Fri Oct 3 08:26:53 2008 From: artis.caune at gmail.com (Artis Caune) Date: Fri Oct 3 08:27:01 2008 Subject: ZFS on root with atime=off Message-ID: <9e20d71e0810030126h3270fa0dl2a382477474a968b@mail.gmail.com> Hi everyone, I install ZFS on root just like in Andrew ZFSOnRoot wiki page. I don't use legacy mount points. I also set "atime=off" on tank and all partitions inherit it from tank. When I reboot after install, root file system is mounted with atime option: # zfs get atime tank NAME PROPERTY VALUE SOURCE tank atime on temporary I can fix this with creating entry in fstab for root fs with noatime, but maybe there is some way how to pass options to vfs.root.mountfrom? -- regards, Artis Caune <----. CCNA <----|==================== <----' didii FreeBSD From koitsu at FreeBSD.org Fri Oct 3 08:37:58 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Fri Oct 3 08:38:06 2008 Subject: Intel S3210SHLC motherboard and FreeBSD 7.0 In-Reply-To: <48E5C290.3000208@telus.net> References: <48E5C290.3000208@telus.net> Message-ID: <20081003083756.GA23663@icarus.home.lan> On Thu, Oct 02, 2008 at 11:58:24PM -0700, Carl wrote: > I've had a couple of incidents where pressing the reset button actually > powers down the server for 5 seconds or so before automatically powering > back up. Not a big deal, but doesn't instill confidence in this > motherboard. This is common on Intel CPU/chipset boards. It has to do with one of a couple different things: 1) BIOS: CPU virtualisation support 2) BIOS: Thermal monitoring 3) BIOS: Other BIOS options which I can't remember I've seen this happen on Intel boards, as well as nVidia Socket 775 boards, and Asus boards. It's become "normal" in this day and age; otherwise, see if there's a BIOS upgrade (on Asus boards this usually fixes it; if you change any of those BIOS options, the hard power-off will happen once, but from that point on reset will behave like you expect). -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From koitsu at FreeBSD.org Fri Oct 3 08:39:11 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Fri Oct 3 08:39:18 2008 Subject: ZFS on root with atime=off In-Reply-To: <9e20d71e0810030126h3270fa0dl2a382477474a968b@mail.gmail.com> References: <9e20d71e0810030126h3270fa0dl2a382477474a968b@mail.gmail.com> Message-ID: <20081003083909.GB23663@icarus.home.lan> On Fri, Oct 03, 2008 at 11:26:52AM +0300, Artis Caune wrote: > Hi everyone, > > I install ZFS on root just like in Andrew ZFSOnRoot wiki page. > I don't use legacy mount points. > > I also set "atime=off" on tank and all partitions inherit it from tank. > When I reboot after install, root file system is mounted with atime option: > # zfs get atime tank > NAME PROPERTY VALUE SOURCE > tank atime on temporary > > I can fix this with creating entry in fstab for root fs with noatime, > but maybe there is some way how to pass options to vfs.root.mountfrom? This question should be going to freebsd-fs, not freebsd-questions. Please re-post it there, and CC pjd@freebsd.org (ZFS maintainer). -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From koitsu at FreeBSD.org Fri Oct 3 08:40:05 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Fri Oct 3 08:40:12 2008 Subject: Intel S3210SHLC motherboard and FreeBSD 7.0 In-Reply-To: <20081003083756.GA23663@icarus.home.lan> References: <48E5C290.3000208@telus.net> <20081003083756.GA23663@icarus.home.lan> Message-ID: <20081003084003.GC23663@icarus.home.lan> On Fri, Oct 03, 2008 at 01:37:56AM -0700, Jeremy Chadwick wrote: > 2) BIOS: Thermal monitoring I should be more precise: I'm referring to things like fan speed auto-slowdown or PWM. These boards often offer numerous methods of throttling fans and other features. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From bruce at cran.org.uk Fri Oct 3 08:55:15 2008 From: bruce at cran.org.uk (Bruce Cran) Date: Fri Oct 3 08:55:21 2008 Subject: Questions drivers for VGA and NIC In-Reply-To: <18659.61704.87342.180770@jerusalem.litteratus.org> References: <200810011048.21874.lists@rhavenn.net> <18659.52849.278757.861259@jerusalem.litteratus.org> <20081001172216.5015add3@scorpio> <18659.61704.87342.180770@jerusalem.litteratus.org> Message-ID: <48E5DDC7.3090601@cran.org.uk> Robert Huff wrote: > Jerry : > > >>> nVidia, at least, is aware of the issue and has offered to >>> write and maintain drivers ... provided certain capabilities are >>> added to the kernel. (See previous discussion in this mailing list.) >>> This has - obviously - not happened, and I do not know of work >>> in progress. >>> I do agree that the first vendor to provide working drivers >>> will make quite a few sales. (Me among them.) >>> >> Unfortunately, doing a quick search, I was not able to locate the >> article(s) you referenced above. I would like to see exactly what >> NVIDIA is requesting. >> > > Sorry - wrong list. Try: > > http://lists.freebsd.org/pipermail/freebsd-hackers/2006-June/016995.html > There's also http://wiki.freebsd.org/NvidiaFeatureRequests -- Bruce Cran From i.tanusheff at procreditbank.bg Fri Oct 3 08:56:37 2008 From: i.tanusheff at procreditbank.bg (Ivailo Tanusheff) Date: Fri Oct 3 08:56:46 2008 Subject: Mysqldump password issue In-Reply-To: <48E500EC.9010100@gmail.com> Message-ID: Hi, I suspect your password contains some illegal character for the comand line syntax. Change the password to 123 for example and test it with: mysqldump -u user -p123 --all-databases > backup.sql I suspect it will work OK, so you have to do one of the: - change password for something that does not contain any illegal in the meaning of shell scripting characters; - use quota on password line, i.e. mysqldump -u user -p'passwd' --all-databases > backup.sql Regards, Ivailo Tanusheff Deputy Head of IT Department ProCredit Bank (Bulgaria) AD Andrei Brezan Sent by: owner-freebsd-questions@freebsd.org 02.10.2008 20:49 To questions@freebsd.org cc Subject Mysqldump password issue Hello list, I wanna do a mysqldump -u user -ppasswd --all-databases > backup.sql and all I get is mysqldump: No match. This happens either i put --all-databases or I specify any of the databases. I want to do a backup as user root, that's why I use all-databases opt. If I use the command: mysqldump -u root -p --all-databases >backup.sql I get the password prompt, I type the passwd and everythig works great. It seems that there is a problem with -p, i've tried --password with same result. If anyone has any ideea please let me know about it. I mention that i use Freebsd 7_0 and mysql 5.0.67 Thank you -- Andrei Brezan 310280 Arad - Romania mobile <+40 740 089 315> email www _______________________________________________ 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 reddvinylene at gmail.com Fri Oct 3 09:11:59 2008 From: reddvinylene at gmail.com (Redd Vinylene) Date: Fri Oct 3 09:12:06 2008 Subject: Jail, pf and ftpd: Connection refused Message-ID: Greetings ladies and gentlemen! Why does the below pf.conf (run from box1) give me "getpeername(control_sock): Transport endpoint is not connected, Socket error (Connection refused) - reconnecting" when trying to log onto box3 via passive FTP? Active FTP gives me "425 Can't build data connection: Connection refused." (box2 and box3 are jails running off box1) - root@box1# cat /etc/pf.conf box1 = "80.203.2.2" box2 = "80.203.2.3" box3 = "{ 80.203.2.4 [...] 80.203.2.127 }" ext_if = "rl0" set block-policy return set skip on { lo0 } scrub in pass out keep state block in pass in on $ext_if inet proto tcp from any to any port { 22 } keep state pass in on $ext_if inet proto tcp from any to $box2 port { 25, 53, 80, 110 } keep state pass in on $ext_if inet proto udp from any to $box2 port 53 keep state pass in on $ext_if inet proto tcp from any to $box3 port { 20, 21, 113 } keep state pass in on $ext_if inet proto icmp from any to any keep state - root@box3# cat /etc/inetd.conf ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l - I hope I've been verbose enough. Thank you! -- http://www.home.no/reddvinylene From rock_on_the_web at comcen.com.au Fri Oct 3 09:24:18 2008 From: rock_on_the_web at comcen.com.au (Da Rock) Date: Fri Oct 3 09:24:25 2008 Subject: Questions drivers for VGA and NIC In-Reply-To: <20081002142519.GG51954@gizmo.acns.msu.edu> References: <200810011048.21874.lists@rhavenn.net> <18659.52849.278757.861259@jerusalem.litteratus.org> <20081001172216.5015add3@scorpio> <20081001232502.G56202@wojtek.tensor.gdynia.pl> <20081001180424.56e6ca69@scorpio> <20081002142519.GG51954@gizmo.acns.msu.edu> Message-ID: <1223025722.3927.36.camel@laptop1.herveybayaustralia.com.au> On Thu, 2008-10-02 at 10:25 -0400, Jerry McAllister wrote: > On Wed, Oct 01, 2008 at 06:04:24PM -0400, Jerry wrote: > > > On Wed, 1 Oct 2008 23:25:19 +0200 (CEST) > > Wojciech Puchar wrote: > > > > >> In all likelihood, the probability of any vendor creating FBSD > > >> specific drivers is directly proportionate to the expenditure of > > >> funds to create and maintain the driver versus the expected revenue > > >> from such an expenditure. > > > > > >giving out a specs will be the simplest way. > > > > Any entity, or corporation, has a right to expect a return on their > > investment. To expect a corporation to simply give away something, > > thereby depriving their shareholders, partners or whatever, of their > > rightfully expected monetary reward is foolish. It certainly is not a > > well thought out business model. > > First, in cases like this, giving out the specs so someone can write > a good driver could increase their sales of cards which could, in > turn, increase their profit. So, it would help their business > rather than hurt it. They do not sell those drivers. They just > use them to sell video cards. Since the lack of a driver that > works in FreeBSD limits their sales of video cards, then they are > making the business mistake you are indicating, only in a reverse > sort of way. > > > Second, and very important. No corporation has any right to expect > a return on their investment. Investment is always a risk. They > might hope for a return, but they will have to work for it. They will > be fortunate to get it. More business ventures fail than succeed. > > Maybe it is only a case of using the wrong word, but it is still > important to remember that there is no guarantee of profit. That > was the big failing of price controls - that the government got > in to the business of guaranteeing profits and then the whole thing > fell apart. Ok, so this is in reply to the previous message on this thread as well as this one. Based on what is said here (and I agree totally), then the NDA would be only on the actually insider specs of the card- you'd have to be a savant to extrapolate the actual guts of the card solely based on the driver (in particular the special features in the hardware- if they're not public knowledge anyway). So why the big hush hush then? NDA signed and obviously a contract drawn which everyone agrees to- manufacturer and programmer. Any reason why this wouldn't work? I know of some that do this (ie m-Audio and OSS). From max at love2party.net Fri Oct 3 10:08:46 2008 From: max at love2party.net (Max Laier) Date: Fri Oct 3 10:08:53 2008 Subject: Jail, pf and ftpd: Connection refused In-Reply-To: References: Message-ID: <200810031156.07623.max@love2party.net> On Friday 03 October 2008 11:11:57 Redd Vinylene wrote: > Greetings ladies and gentlemen! > > Why does the below pf.conf (run from box1) give me > "getpeername(control_sock): Transport endpoint is not connected, > Socket error (Connection refused) - reconnecting" when trying to log > onto box3 via passive FTP? Active FTP gives me "425 Can't build data > connection: Connection refused." (box2 and box3 are jails running off > box1) See ftp-proxy(8). Note that active works with the ruleset you provided (due to the "pass out keep state"-rule), but there is obviously a firewall problem on the client preventing that. > - > > root@box1# cat /etc/pf.conf > > box1 = "80.203.2.2" > > box2 = "80.203.2.3" > > box3 = "{ 80.203.2.4 [...] 80.203.2.127 }" > > ext_if = "rl0" > > set block-policy return > > set skip on { lo0 } > > scrub in > > pass out keep state > > block in > > pass in on $ext_if inet proto tcp from any to any port { 22 } keep state > > pass in on $ext_if inet proto tcp from any to $box2 port { 25, 53, 80, > 110 } keep state > > pass in on $ext_if inet proto udp from any to $box2 port 53 keep state > > pass in on $ext_if inet proto tcp from any to $box3 port { 20, 21, 113 > } keep state > > pass in on $ext_if inet proto icmp from any to any keep state > > - > > root@box3# cat /etc/inetd.conf > > ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l > > - > > I hope I've been verbose enough. Thank you! -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News From shinjii at maydias.com Fri Oct 3 10:51:05 2008 From: shinjii at maydias.com (Warren Liddell) Date: Fri Oct 3 10:51:11 2008 Subject: Utility to extract iso files without burning Message-ID: <200810032028.45073.shinjii@maydias.com> Im looking for a GUI or command line that will allow me to extract information within an ISO file... im using FreeBSD 7.1-PRERELEASE KDE4.1.1 AMD64 From valentin.bud at gmail.com Fri Oct 3 10:56:59 2008 From: valentin.bud at gmail.com (Valentin Bud) Date: Fri Oct 3 10:57:06 2008 Subject: Utility to extract iso files without burning In-Reply-To: <200810032028.45073.shinjii@maydias.com> References: <200810032028.45073.shinjii@maydias.com> Message-ID: <139b44430810030356r42db8e51i51864077c1662944@mail.gmail.com> Hello Warren, On Fri, Oct 3, 2008 at 12:28 PM, Warren Liddell wrote: > Im looking for a GUI or command line that will allow me to extract > information > within an ISO file... im using FreeBSD 7.1-PRERELEASE KDE4.1.1 AMD64 From the man page of mdconfig(8): To mount an ISO 9660 CD image file: # mdconfig -a -t vnode -u 10 -f cdimage.iso # mount_cd9660 /dev/md10 /mnt Afterwards you can access all the files within "cdimage.iso" as any other files in "/mnt". To better understand what happens see mdconfig(8)man page. all the best, v > > _______________________________________________ > 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 vince at unsane.co.uk Fri Oct 3 11:01:52 2008 From: vince at unsane.co.uk (Vincent Hoffman) Date: Fri Oct 3 11:01:59 2008 Subject: Utility to extract iso files without burning In-Reply-To: <200810032028.45073.shinjii@maydias.com> References: <200810032028.45073.shinjii@maydias.com> Message-ID: <48E5FB9D.1020608@unsane.co.uk> Warren Liddell wrote: > Im looking for a GUI or command line that will allow me to extract information > within an ISO file... im using FreeBSD 7.1-PRERELEASE KDE4.1.1 AMD64 > Easiest way normally would be to mount the image and use the filesystem. assuming you are not root and have sudo installed. sudo mdconfig -a -t vnode -f filename.iso -u 7 (this assumes you dont already have an md7 device, not specifying -u will automatically take the next available.) then sudo sudo mount -t cd9660 /dev/md7 /path/to/mountpoint once you are done, umount it and sudo mdconfig -d -u 7 man mdconfig has more info and another example. Vince > _______________________________________________ > 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 sonic2000gr at gmail.com Fri Oct 3 11:02:51 2008 From: sonic2000gr at gmail.com (Manolis Kiagias) Date: Fri Oct 3 11:02:58 2008 Subject: Utility to extract iso files without burning In-Reply-To: <200810032028.45073.shinjii@maydias.com> References: <200810032028.45073.shinjii@maydias.com> Message-ID: <48E5FBD5.9070606@gmail.com> Warren Liddell wrote: > Im looking for a GUI or command line that will allow me to extract information > within an ISO file... im using FreeBSD 7.1-PRERELEASE KDE4.1.1 AMD64 > You can mount an iso and copy files from it. First create a memory disk device to contain the file system: mdconfig -a -t vnode -f /path/to/your.iso -u md0 Then mount the file system as you would mount a CD-ROM: mount -t cd9660 /dev/md0 /mnt After you finish, first unmount then detach the md0 device: umount /mnt mdconfig -d -u md0 From patfbsd at davenulle.org Fri Oct 3 11:10:28 2008 From: patfbsd at davenulle.org (Patrick =?ISO-8859-15?Q?Lamaizi=E8re?=) Date: Fri Oct 3 11:10:35 2008 Subject: Utility to extract iso files without burning In-Reply-To: <200810032028.45073.shinjii@maydias.com> References: <200810032028.45073.shinjii@maydias.com> Message-ID: <20081003131022.2da7cd46@baby-jane-lamaiziere-net.local> Le Fri, 3 Oct 2008 20:28:44 +1000, Warren Liddell a ?crit : > Im looking for a GUI or command line that will allow me to extract > information within an ISO file... im using FreeBSD 7.1-PRERELEASE I never tried it but bsdtar is able to extract an iso image. "tar creates and manipulates streaming archive files. This implementation can extract from tar, pax, cpio, zip, jar, ar, and ISO 9660 cdrom images and can create tar, pax, cpio, ar, and shar archives." Regards. From derek at computinginnovations.com Fri Oct 3 11:14:42 2008 From: derek at computinginnovations.com (Derek Ragona) Date: Fri Oct 3 11:14:49 2008 Subject: Running cron jobs as nobody In-Reply-To: <48E4E4B8.90202@pixelhammer.com> References: <48E4E4B8.90202@pixelhammer.com> Message-ID: <6.0.0.22.2.20081003061201.02713660@mail.computinginnovations.com> At 10:11 AM 10/2/2008, DAve wrote: >Good morning all, > >We have a cronjob we need to run as nobody from /etc/crontab and it seems >to be not working. The job runs, but not as user nobody. > >I noticed two things, > >1) the job to update the locate DB runs as nobody, because the script uses >su to become nobody. >echo /usr/libexec/locate.updatedb | nice -5 su -fm nobody || rc=3 > >2) nobody, as expected, has no shell or home dir in /etc/password. > >I searched around for an answer but didn't see anything concerning this >other than a patch to cron to check if setuid fails. > >Is setting the user to nobody in /etc/crontab not possible? > >Thanks, > >DAve I've done this two different ways: One is to use sudo and have your script su - to nobody. You will need to test your script first before trying it through cron. Create a cronjob for nobody using: crontab -e -u nobody Hope this helps. -Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From dominique.goncalves at gmail.com Fri Oct 3 11:28:08 2008 From: dominique.goncalves at gmail.com (Dominique Goncalves) Date: Fri Oct 3 11:28:15 2008 Subject: nat and firewall In-Reply-To: References: <48DA7491.8030002@daleco.biz> <7daacbbe0810020539h530c6306o5f19abf35a68c6ad@mail.gmail.com> Message-ID: <7daacbbe0810030428g12fd721bw6dcc822f0705b16d@mail.gmail.com> On Fri, Oct 3, 2008 at 5:24 AM, fire jotawski wrote: > > > On Thu, Oct 2, 2008 at 7:39 PM, Dominique Goncalves > wrote: >> >> Hi, >> >> On Thu, Oct 2, 2008 at 6:09 AM, fire jotawski wrote: >> > On Thu, Sep 25, 2008 at 12:10 AM, Kevin Kinsey wrote: >> > >> >> FBSD1 wrote: >> >> >> >>> >> >>> natd_enable="YES" This statement in rc.conf enables ipfw nated >> >>> function. >> >>> firewall_nat_enable="YES" This is an invalid statement. No such thing >> >>> as >> >>> you have here. >> >>> >> >> >> >> This is no longer true; he did indeed find "firewall_nat_enable" >> >> in /etc/defaults/rc.conf. The knob seems to have first appeared >> >> in February in HEAD and I'm guessing it cues the system to use a >> >> new kernel-based nat rather than natd(8), but I've not read anything >> >> further about this, as my system isn't as up to date as the OP's. >> >> I don't know when this change was MFC'ed, but apparently fairly >> >> recently? >> >> >> >> I suppose we need someone a tad more "in the know" to straighten >> >> that out for us. >> >> >> > >> > up to this moment, i do not know if natd and firewall_nat function in >> > the >> > same or different. >> > and is there firewall_nat_flags thing too ? >> >> I'll try to explain, >> >> natd_* knobs are for natd(8), a daemon >> firewall_nat_* knobs are for ipfw(8), NAT is processed by the kernel >> >> firewall_nat_* was added in the begenning of year in RELENG_7 >> >> http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.firewall?r1=1.52.2.2#rev1.52.2.2 >> >> The NAT configuration is done by /etc/rc.firewall, you can read this >> file to know how the configuration is done. >> >> This is two different ways to do NAT. I can't speak about performance, >> kernel vs daemon. > > many thanks indeed for your clear explanations. > so we simply use just one of them but not both, do not we ? Yes. > once again, i appreciate all of your kind asistances in my case. > > with best regards, > psr > > Regards. -- There's this old saying: "Give a man a fish, feed him for a day. Teach a man to fish, feed him for life." From glyn at millingtons.org Fri Oct 3 11:30:01 2008 From: glyn at millingtons.org (Glyn Millington) Date: Fri Oct 3 11:30:08 2008 Subject: Utility to extract iso files without burning In-Reply-To: <200810032028.45073.shinjii@maydias.com> (Warren Liddell's message of "Fri\, 3 Oct 2008 20\:28\:44 +1000") References: <200810032028.45073.shinjii@maydias.com> Message-ID: <86abdm2b1n.fsf@nowhere.org> Warren Liddell writes: > Im looking for a GUI or command line that will allow me to extract information > within an ISO file... im using FreeBSD 7.1-PRERELEASE KDE4.1.1 AMD64 well, you can mount it and then search around inside ...... mount_cd9660 -o ro /dev/`mdconfig -a -t vnode -f /path/to/file.iso` /mount-point Good luck! Glyn From wojtek at wojtek.tensor.gdynia.pl Fri Oct 3 11:44:46 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Fri Oct 3 11:44:53 2008 Subject: Utility to extract iso files without burning In-Reply-To: <200810032028.45073.shinjii@maydias.com> References: <200810032028.45073.shinjii@maydias.com> Message-ID: <20081003132801.J25746@wojtek.tensor.gdynia.pl> mdconfig -a -t vnode -f isofile mount_cd9660 /dev/md0 /somemountpoint On Fri, 3 Oct 2008, Warren Liddell wrote: > Im looking for a GUI or command line that will allow me to extract information > within an ISO file... im using FreeBSD 7.1-PRERELEASE KDE4.1.1 AMD64 > _______________________________________________ > 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 fbsd06 at mlists.homeunix.com Fri Oct 3 12:43:08 2008 From: fbsd06 at mlists.homeunix.com (RW) Date: Fri Oct 3 12:43:14 2008 Subject: More RAM for buffers? In-Reply-To: <200810020958.54563.kirk@strauser.com> References: <200810020958.54563.kirk@strauser.com> Message-ID: <20081003132617.4c53001c@gumby.homeunix.com.> On Thu, 2 Oct 2008 09:58:54 -0500 Kirk Strauser wrote: > I have an AMD system with 6GB of RAM. From dmesg: > > usable memory = 6428237824 (6130 MB) > avail memory = 6203797504 (5916 MB) > > However, most of it is just sitting there when it looks like it could > be used for buffers or cache: > > Mem: 1186M Active, 3902M Inact, 468M Wired, 233M Cache, 214M Buf, > 138M Free Swap: 8192M Total, 900K Used, 8191M Free > > Since I've yet to find a great explanation for what the different > types of memory are, could someone say why all that inactive memory > is better than using it for cache or buffers? The terms are a bit misleading, because the don't all relate to the use of the memory from the user's perspective, but how it's seen within FreeBSD's integrated cache/VM system. Active, Inact, Cache and Free are all part of the life-cycle of normal memory pages, they hold pretty much everything used by processes, and disk-caching. "Cache" actually has little to do with caching as such; it contains pages that are still holding data, but can be reused instantaneously because they are consistent with their backing store. In not exactly sure what "Buf" is, but I guess it's low-level disk buffering memory, that can't be discarded the way normal disk caching pages can. From kirk at strauser.com Fri Oct 3 14:09:26 2008 From: kirk at strauser.com (Kirk Strauser) Date: Fri Oct 3 14:09:33 2008 Subject: More RAM for buffers? In-Reply-To: <20081003132617.4c53001c@gumby.homeunix.com.> References: <200810020958.54563.kirk@strauser.com> <20081003132617.4c53001c@gumby.homeunix.com.> Message-ID: <200810030909.20001.kirk@strauser.com> On Friday 03 October 2008, RW wrote: > The terms are a bit misleading, because the don't all relate to the use > of the memory from the user's perspective, but how it's seen within > FreeBSD's integrated cache/VM system. Thanks to you and everyone else who wrote. I guess I'll go back to using it and letting it manage itself. :-) -- Kirk Strauser From fbsd06 at mlists.homeunix.com Fri Oct 3 14:12:53 2008 From: fbsd06 at mlists.homeunix.com (RW) Date: Fri Oct 3 14:13:00 2008 Subject: More RAM for buffers? In-Reply-To: <20081002131435.efa1d07f.wmoran@potentialtech.com> References: <200810020958.54563.kirk@strauser.com> <200810021004.56210.kirk@strauser.com> <20081002131435.efa1d07f.wmoran@potentialtech.com> Message-ID: <20081003151248.0dacc310@gumby.homeunix.com.> On Thu, 2 Oct 2008 13:14:35 -0400 Bill Moran wrote: > I've never been 100% clear on the exact differences, but it basically > has to do with where the data in RAM came from. Depending on whether > it was a VM page, or a disk page will determine what bucket it goes > into when it moves out of active. The distinction is between clean pages (Cache) and dirty pages (Inactive), a dirty page needs to be written to swap or synced to the disk, before it can be reused. It's the cache queue that gives the kernel "liquidity", once the free memory is drops below about 2%. It actively balances the cache and inactive queues to maintain this. > I'm fairly sure that inactive is memory used by program code. Inactive and cached queues are the first step to recycling memory. The queues don't differentiate between different origins. > When > the program terminates, the memory is marked as inactive, which means > the next time the program starts the code can simply be moved back to > active and the program need not be reloaded from disk. I think such pages can remain active. The level of active memory seems to be mostly a matter of "stock-control". When I shutdown Xorg/KDE, huge amounts of memory remain active for hours. When demand for memory increases, the queues get rebalanced to provide more cached/inactive memory. These figures don't really tell you much. > Buffer and cache memory are disk data held at different points within > the kernel. I've never been 100% clear on the difference, and I > believe it depends heavily on a thorough understanding of how the > kernel works. > > The other rule of thumb I've heard is that the closer memory is to the > left side of top output, the less expensive it is for the kernel to > move it to active ... inactive being the most efficient and cache > requiring the most work by the kernel ... I could be wrong, though. Partly, but it's more the other way around, the further to the right the easier it is to reuse (not counting buffer and wired, which are outside the normal VM/cache system). > I know that a lot of what I'm saying isn't authoritative, so I hope > I'm not remembering any of this wrong. I think to fully understand > how it works you'll need to read _The_Design_and_Implementation_. > Matt Dillon's vm-design article is a good place to start. http://www.freebsd.org/doc/en_US.ISO8859-1/articles/vm-design/article.html From jmc-freebsd2 at milibyte.co.uk Fri Oct 3 15:04:51 2008 From: jmc-freebsd2 at milibyte.co.uk (Mike Clarke) Date: Fri Oct 3 15:04:58 2008 Subject: Canon Pixma iP4500 - problem with colours In-Reply-To: <20081002165456.GA91912@slackbox.xs4all.nl> References: <200810011546.29798.jmc-freebsd2@milibyte.co.uk> <200810021159.04926.jmc-freebsd2@milibyte.co.uk> <20081002165456.GA91912@slackbox.xs4all.nl> Message-ID: <200810031604.47290.jmc-freebsd2@milibyte.co.uk> On Thursday 02 October 2008, Roland Smith wrote: > Gimp uses Gutenprint doesn't it? So you could try using the > gutenprint driver? That's the odd thing, CUPS is (supposed to be) using the gutenprint driver. Here's a list of the relevant packages: kestrel:/home/mike% pkg_info -Ix cups gutenprint cups-base-1.3.7_2 Common UNIX Printing System cups-pstoraster-8.15.4_1 Postscript interpreter for CUPS printing to non-PS printers gimp-gutenprint-5.1.7 GutenPrint Printer Driver gutenprint-5.1.7 The "meta-port" for GutenPrint gutenprint-base-5.1.7 GutenPrint Printer Driver gutenprint-cups-5.1.7_2 GutenPrint Printer Driver gutenprint-ijs-5.1.7 GutenPrint Printer Driver libgnomecups-0.2.3,1 Support library for gnome cups admistration After a bit of fiddling about with the printer settings for the Gimp I can get tolerable results when printing from the Gimp, though still not as good as the Windows drivers give. Printing from any other application just produces totally wrong psychedelic colours. There's an example showing an original file and a couple of scans of prints at . The images have lost some quality in the scanning but effectively demonstrate what's happening. CUPS is using the ppd file extracted from /usr/local/share/cups/model/gutenprint/5.1/en_GB/stp-bjc-PIXMA-iP4500.5.1.ppd.gz. I'll not post the contents here ( > 2000 lines) but there's a copy at if anybody's interested. -- Mike Clarke From amer.alhabsi at gmail.com Fri Oct 3 15:10:59 2008 From: amer.alhabsi at gmail.com (Amer Alhabsi) Date: Fri Oct 3 15:11:08 2008 Subject: Network card SiS 191 not detected Message-ID: Hi, I have Benq Joybook R43 notebook. It has network interface based on SiS 191. However, I can't configure it as it does not show up in ifconfig nor in sysinstall/configure/networking/interfaces. Dmesg says: No Driver Attached. I wonder if there is a way to get it working. Here is part of the output of pciconf -lv none0@pci0:0:4:0: class=0x020000 card=0x059417ff chip=0x01911039 rev=0x02 hdr=0x00 vendor = 'Silicon Integrated Systems (SiS)' device = 'SIS191 SIS191' class = network subclass = ethernet And here is dmesg.boot Copyright (c) 1992-2008 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 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM)2 Duo CPU T7250 @ 2.00GHz (1999.45-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6fd Stepping = 13 Features=0xbfebfbff Features2=0xe3bd AMD Features=0x20100000 AMD Features2=0x1 Cores per package: 2 real memory = 936968192 (893 MB) avail memory = 903118848 (861 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) hptrr: HPT RocketRAID controller driver v1.1 (Feb 24 2008 19:59:27) acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 cpu0: on acpi0 est0: on cpu0 p4tcc0: on cpu0 cpu1: on acpi0 est1: on cpu1 p4tcc1: on cpu1 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0x9000-0x907f mem 0xc0000000-0xcfffffff,0xd4000000-0xd401ffff irq 16 at device 0.0 on pci1 isab0: at device 2.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1080-0x108f at device 2.5 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] ohci0: mem 0xd4204000-0xd4204fff irq 20 at device 3.0 on pci0 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 4 ports with 4 removable, self powered ohci1: mem 0xd4205000-0xd4205fff irq 21 at device 3.1 on pci0 ohci1: [GIANT-LOCKED] ohci1: [ITHREAD] usb1: OHCI version 1.0, legacy support usb1: on ohci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 4 ports with 4 removable, self powered ehci0: mem 0xd4206000-0xd4206fff irq 22 at device 3.3 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb2: EHCI version 1.0 usb2: companion controllers, 4 ports each: usb0 usb1 usb2: on ehci0 usb2: USB revision 2.0 uhub2: on usb2 uhub2: 8 ports with 8 removable, self powered umass0: on uhub2 pci0: at device 4.0 (no driver attached) atapci1: port 0x10c8-0x10cf,0x10bc-0x10bf,0x10c0-0x10c7,0x10b8-0x10bb,0x10a0-0x10af irq 17 at device 5.0 on pci0 atapci1: [ITHREAD] ata2: on atapci1 ata2: [ITHREAD] ata3: on atapci1 ata3: [ITHREAD] pcib2: irq 16 at device 6.0 on pci0 pci2: on pcib2 ath0: mem 0xd4100000-0xd410ffff irq 16 at device 0.0 on pci2 ath0: [ITHREAD] ath0: unable to attach hardware; HAL status 13 device_attach: ath0 attach returned 6 pcib3: irq 16 at device 7.0 on pci0 pci4: on pcib3 pci0: at device 15.0 (no driver attached) acpi_lid0: on acpi0 acpi_acad0: on acpi0 battery0: on acpi0 acpi_tz0: 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 IntelliMouse, device ID 3 acpi_button0: on acpi0 acpi_button1: on acpi0 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcffff,0xd0000-0xd17ff pnpid ORM0000 on isa0 ppc0: parallel port not found. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 8250 or not responding sio0: [FILTER] sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 1.000 msec hptrr: no controller detected. acd0: DVDR at ata0-master WDMA2 ad4: 152627MB at ata2-master WDMA2 GEOM_LABEL: Label for provider ad4s1 is ext2fs//boot. SMP: AP CPU #1 Launched! da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present Trying to mount root from ufs:/dev/ad4s3a Amer, Thanks, From koitsu at FreeBSD.org Fri Oct 3 15:27:30 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Fri Oct 3 15:27:37 2008 Subject: A question about the root shell In-Reply-To: References: Message-ID: <20081003152727.GA32281@icarus.home.lan> On Fri, Oct 03, 2008 at 05:20:32PM +0200, Andreas Davour wrote: > I'm not a csh user, in fact I hate it. Though, I use it as it is out of > the box for root so I'm reminded I'm not an unpriv user any longer. > > That being said I'm getting annoyed by the fact that the root shell is > always showing me all the "dot files" all the time. It clutters up the > terminal with so many files I don't see the ones I want to work with! Is > there a way to turn this feature off? > > I even tried to start a bash and alias ls to ls -F but it still kept > showing me the dot-files I'd rather not see. This is not a shell issue, as it applies to csh, sh, and bash. The "problem" is FreeBSD's /bin/ls. See the ls(1) man page, specifically the -A option description. What you want is the -I flag. Place the following in /root/.cshrc to get what you want: alias ls /bin/ls -I -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From erikt at update.uu.se Fri Oct 3 15:30:56 2008 From: erikt at update.uu.se (Erik Trulsson) Date: Fri Oct 3 15:31:03 2008 Subject: A question about the root shell In-Reply-To: References: Message-ID: <20081003153051.GA86147@owl.midgard.homeip.net> On Fri, Oct 03, 2008 at 05:20:32PM +0200, Andreas Davour wrote: > > I'm not a csh user, in fact I hate it. Though, I use it as it is out of > the box for root so I'm reminded I'm not an unpriv user any longer. > > That being said I'm getting annoyed by the fact that the root shell is > always showing me all the "dot files" all the time. It clutters up the > terminal with so many files I don't see the ones I want to work with! Is > there a way to turn this feature off? > > I even tried to start a bash and alias ls to ls -F but it still kept > showing me the dot-files I'd rather not see. > > Anyone? > > /Andreas Is the problem the output of ls(1) or the output when using (some form of) tab-completion or perhaps the result of evaluating wildcard characters ('*', '?', etc)? In the former case it has nothing to do with which shell you are using but is instead a feature of ls(1). Read the ls(1) manpage and pay special attention to the '-A' and '-I' options. In the second and third case (tab completion and wildcard expansion) it depends entirely on your shell how it is handled. I am afraid I am not familiar enough with either bash or csh to say how (or even if) it can be configured with them. With zsh (my preferred shell) one can control if dot-files should be expanded or not with 'setopt globdots'/'setopt noglobdots'. -- Erik Trulsson ertr1013@student.uu.se From rsmith at xs4all.nl Fri Oct 3 16:57:30 2008 From: rsmith at xs4all.nl (Roland Smith) Date: Fri Oct 3 16:57:38 2008 Subject: Canon Pixma iP4500 - problem with colours In-Reply-To: <200810031604.47290.jmc-freebsd2@milibyte.co.uk> References: <200810011546.29798.jmc-freebsd2@milibyte.co.uk> <200810021159.04926.jmc-freebsd2@milibyte.co.uk> <20081002165456.GA91912@slackbox.xs4all.nl> <200810031604.47290.jmc-freebsd2@milibyte.co.uk> Message-ID: <20081003165727.GA31034@slackbox.xs4all.nl> On Fri, Oct 03, 2008 at 04:04:47PM +0100, Mike Clarke wrote: > On Thursday 02 October 2008, Roland Smith wrote: > > > Gimp uses Gutenprint doesn't it? So you could try using the > > gutenprint driver? > > That's the odd thing, CUPS is (supposed to be) using the gutenprint > driver. Here's a list of the relevant packages: With my previous (non-postscript) LaserJet 6L printer, there were two drivers I could use, IIRC. One labeled "LaserJet 6L" and one labeled "LaserJet 6L (gimp-print)" or something like that. > After a bit of fiddling about with the printer settings for the Gimp I > can get tolerable results when printing from the Gimp, though still not > as good as the Windows drivers give. Printing from any other > application just produces totally wrong psychedelic colours. There's an > example showing an original file and a couple of scans of prints at > . The images have lost some > quality in the scanning but effectively demonstrate what's happening. It looks like it is rasterizing too coarse. > CUPS is using the ppd file extracted > from /usr/local/share/cups/model/gutenprint/5.1/en_GB/stp-bjc-PIXMA-iP4500.5.1.ppd.gz. > I'll not post the contents here ( > 2000 lines) but there's a copy at > if anybody's interested. I can't spot anything suspicous in that. Maybe you should try a gutenprint mailing-list/forum. 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: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081003/50d95ac8/attachment.pgp From msoulier at digitaltorque.ca Fri Oct 3 17:24:24 2008 From: msoulier at digitaltorque.ca (Michael P. Soulier) Date: Fri Oct 3 17:24:52 2008 Subject: port marked as IGNORE ? Message-ID: <20081003172602.GB6090@piglet.digitaltorque.ca> When I portupgrade, I see this [root@kanga ~]# portupgrade -a [Updating the pkgdb in /var/db/pkg ... - 369 packages found (-2 +1) (...). done] ** Port marked as IGNORE: misc/ldconfig_compat: isn't needed (part of base rc.d) But a couple of ports need it to upgrade, so they fail. How would this have been marked as IGNORE and what should I do to permit upgrades to continue? Thanks, Mike -- Michael P. Soulier "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." --Albert Einstein -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081003/6e7ebfa1/attachment.pgp From msoulier at digitaltorque.ca Fri Oct 3 17:24:52 2008 From: msoulier at digitaltorque.ca (Michael P. Soulier) Date: Fri Oct 3 17:25:00 2008 Subject: portupgrade failure Message-ID: <20081003172624.GC6090@piglet.digitaltorque.ca> So, I recently upgraded from 5.5 to 6.3, and as such, ran a portupgrade -fa to rebuild my ports against 6.3. I just noticed this. ===> Cleaning for ruby-1.8.6.287,1 ---> Cleaning out obsolete shared libraries [Updating the pkgdb in /var/db/pkg ... Inappropriate file type or format - /var/db/pkg/pkgdb; rebuild needed] [Rebuilding the pkgdb in /var/db/pkg ... - 366 packages found (-0 +366) ....................................................................................................100....................................................................................................200....................................................................................................300.................................................................. done] /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:215:in `origin': Failed `Inappropriate file type or format' (PkgDB::DBError) from /usr/local/lib/ruby/site_ruby/1.8/pkginfo.rb:205:in `origin' from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:245:in `config_include?' from /usr/local/lib/ruby/site_ruby/1.8/pkgtools.rb:215:in `config_ignore_moved?' from /usr/local/sbin/portupgrade:937:in `do_upgrade' from /usr/local/sbin/portupgrade:815:in `main' from /usr/local/sbin/portupgrade:811:in `each' from /usr/local/sbin/portupgrade:811:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize' from /usr/local/sbin/portupgrade:229:in `new' from /usr/local/sbin/portupgrade:229:in `main' from /usr/local/sbin/portupgrade:2208 Any idea what would cause this? Thanks, Mike -- Michael P. Soulier "Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction." --Albert Einstein -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081003/011b1693/attachment.pgp From smithi at nimnet.asn.au Fri Oct 3 17:48:05 2008 From: smithi at nimnet.asn.au (Ian Smith) Date: Fri Oct 3 17:48:12 2008 Subject: newsyslog and apache In-Reply-To: <20081003114458.0CA75106573F@hub.freebsd.org> References: <20081003114458.0CA75106573F@hub.freebsd.org> Message-ID: <20081004032045.H49572@sola.nimnet.asn.au> On Fri, 03 Oct 2008 10:08:52 +0200 "DA Forsyth" wrote: > On 2 Oct 2008 , freebsd-questions-request@freebsd.org entreated about > "freebsd-questions Digest, Vol 235, Issue 11": I'm replying to the digest too, so threading is doubly screwed :) > > No need to change log rotation software since the problem clearly is > > somewhere else. You need to inspect Apache's error logs to see why it > > cannot start. > > the previous error log shows > [Wed Oct 01 08:00:03 2008] [notice] Graceful restart requested, doing > restart > [Wed Oct 01 08:00:04 2008] [notice] seg fault or similar nasty error > detected in the parent process This is what you need to find and fix. Most likely a config error of some sort .. possibly re some module - php extensions order, maybe? What does 'apachectl configtest' have to say? > the new error log shows, after the manual start > [Wed Oct 01 08:39:09 2008] [warn] pid file /var/run/httpd.pid > overwritten -- Unclean shutdown of previous Apache run? > [Wed Oct 01 08:39:09 2008] [notice] Apache/2.0.63 (FreeBSD) PHP/4.4.9 > with Suhosin-Patch DAV/2 SVN/1.5.2 configured -- resuming normal > operations > > those error messages are repeated any time I do a > apachectl graceful > > However, doing > apachectl stop > apachectlstart > works as expected. See apachectl(8) .. apachectl graceful sends httpd a SIGUSR1, as does your previously mentioned newsyslog line, which shuts apache down but without murdering existing connections, while apachectl restart does. However both graceful and restart run configttest before restarting, and it seems likely that's where/why it's bombing. OTOH, apachectl start doesn't run configtest, maybe explaining why it starts up ok that way? > apache version is apache-2.0.63_2 from ports > uname -a gives > FreeBSD iwr.ru.ac.za 7.0-RELEASE-p1 FreeBSD 7.0-RELEASE-p1 #2: Mon > Jun 2 13:10:26 SAST 2008 > iwr.ru.ac.za:/usr/obj/usr/src/sys/KERNIWR70 i386 Here running apache 1.3 on 5.5-STABLE, but I doubt the apachectl functionality has changed significantly, though I may be wrong .. > php v4 is installed, though i do plan to upgrade that to V5 as soon > as I get time to do it. Good idea, especially if PHP is related to your apparent config issue. > PS: I used to use logrotate, but it too stopped working correctly, > with apache process stopping in a similar way that is why I changed > to newsyslog. I rotate the logs monthly, and set it to 8am so there > is a chance I'll be on hand to start apache to minimize downtime. Theoretically if it survives an apachectl configtest, you should be good to go - and if it doesn't, neither method will restart apache. cheers, Ian From fbsd06 at mlists.homeunix.com Fri Oct 3 17:49:55 2008 From: fbsd06 at mlists.homeunix.com (RW) Date: Fri Oct 3 17:50:02 2008 Subject: port marked as IGNORE ? In-Reply-To: <20081003172602.GB6090@piglet.digitaltorque.ca> References: <20081003172602.GB6090@piglet.digitaltorque.ca> Message-ID: <20081003184948.430b0ef8@gumby.homeunix.com.> On Fri, 3 Oct 2008 13:26:04 -0400 "Michael P. Soulier" wrote: > When I portupgrade, I see this > > [root@kanga ~]# portupgrade -a [Updating the pkgdb > in /var/db/pkg ... - 369 packages found (-2 +1) (...). done] > ** Port marked as IGNORE: misc/ldconfig_compat: > isn't needed (part of base rc.d) > > But a couple of ports need it to upgrade, so they fail. > > How would this have been marked as IGNORE and what should I do to > permit upgrades to continue? The port isn't needed in recent versions of the FreeBSD, and I see from your other post that you recently upgraded from 5.x to 6.x. Try deleting the port and running pkgdb -F. From joerosenfeld at gmail.com Fri Oct 3 20:06:07 2008 From: joerosenfeld at gmail.com (Joachim Rosenfeld) Date: Fri Oct 3 20:06:13 2008 Subject: exporting/exposing directory over the Internet? Message-ID: <6e5cf6a70810031306h589c56c0udb373befd4cc0f66@mail.gmail.com> I wish to store some files on my FreeBSD 7 server that will be used by various clients (FreeBSD, Windows, and Linux). What is a good way to export a directory so that it can be mounted on various systems and seen as a local directory? NFS is out, for security reasons. I was thinking of Samba, but I'm not sure of the security implications of using it over the public Internet. Somebody mentioned WebDAV, but I'm not familiar with it at all and I'm not sure if it can do what I need it to do. Any recommendations? From yuri at rawbw.com Fri Oct 3 20:11:52 2008 From: yuri at rawbw.com (Yuri) Date: Fri Oct 3 20:11:59 2008 Subject: How stable is FreeBSD WiFi support? Message-ID: <48E67C86.5030206@rawbw.com> I have FreeBSD-70 machine and Linux Gentoo machines side by side (within 10 feet). Gentoo Linux (with old AirLink101) connects to a particular encrypted WEP network without any problems all the time. FreeBSD (with ral0 device and native driver) connection is very unstable, keeps disappearing, though network card shows signal level as -90:-95. dhclient fails to set up the card, often dhclient succeeds but all name lookups fails. When internet connection is established all TCP connections get dropped after 10-20 minutes or less. I feel like I hit some bug in FreeBSD WiFi networking support. Anyone has similar experience? Yuri FreeBSD xxx.xxx.xxx 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Sat Sep 27 15:23:29 PDT 2008 yuri@xxx.xxx.xxx:/usr/obj/usr/src/sys/GENERIC i386 From miggyx at peteslan.net Fri Oct 3 21:44:50 2008 From: miggyx at peteslan.net (Peter Membrey) Date: Fri Oct 3 21:44:57 2008 Subject: exporting/exposing directory over the Internet? In-Reply-To: <6e5cf6a70810031306h589c56c0udb373befd4cc0f66@mail.gmail.com> References: <6e5cf6a70810031306h589c56c0udb373befd4cc0f66@mail.gmail.com> Message-ID: Hi Joachim, If I were setting something like this up, I would make sure that it was done over a VPN. OpenVPN is a pretty neat solution that works easily on all of the platforms you'll be using. It's very straight forward to set up and will give you a secure network that you can run whatever file sharing solution you want. If you ensure that you are only offering the resource via the VPN, you can be sure (OpenVPN supports certificate and password based authentication) that only trust people will be able to see the service, much less access it. I have noticed that there isn't a section on OpenVPN in the handbook - I guess I should contribute one :) Cheers, Pete 2008/10/4 Joachim Rosenfeld : > I wish to store some files on my FreeBSD 7 server that will be used by > various clients (FreeBSD, Windows, and Linux). What is a good way to > export a directory so that it can be mounted on various systems and > seen as a local directory? > > NFS is out, for security reasons. > > I was thinking of Samba, but I'm not sure of the security implications > of using it over the public Internet. > > Somebody mentioned WebDAV, but I'm not familiar with it at all and I'm > not sure if it can do what I need it to do. > > Any recommendations? > _______________________________________________ > 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 ross.cameron at linuxpro.co.za Fri Oct 3 22:18:36 2008 From: ross.cameron at linuxpro.co.za (Ross Cameron) Date: Fri Oct 3 22:18:42 2008 Subject: exporting/exposing directory over the Internet? In-Reply-To: <6e5cf6a70810031306h589c56c0udb373befd4cc0f66@mail.gmail.com> References: <6e5cf6a70810031306h589c56c0udb373befd4cc0f66@mail.gmail.com> Message-ID: <35f70db10810031518v6133438cocc79d4cf22e0d47b@mail.gmail.com> Use SFTP (aka SSH file sharing) and mount the folder's using SftpDrive on Windows and various tools are available for doing that under UNIX. On Fri, Oct 3, 2008 at 10:06 PM, Joachim Rosenfeld wrote: > I wish to store some files on my FreeBSD 7 server that will be used by > various clients (FreeBSD, Windows, and Linux). What is a good way to > export a directory so that it can be mounted on various systems and > seen as a local directory? > > NFS is out, for security reasons. > > I was thinking of Samba, but I'm not sure of the security implications > of using it over the public Internet. > > Somebody mentioned WebDAV, but I'm not familiar with it at all and I'm > not sure if it can do what I need it to do. > > Any recommendations? > _______________________________________________ > 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 amir.farivar at snakkmedia.com Fri Oct 3 23:18:05 2008 From: amir.farivar at snakkmedia.com (Amir Farivar) Date: Fri Oct 3 23:18:12 2008 Subject: SNAKK Media| Mobile Web Blog In-Reply-To: Message-ID: Hey, I just wanted to follow up with you because I think your website would be a great addition to our Mobile Magazine and I would like to bring you on as a premium partner. The opportunity will take your syndicated content into the mobile web at no development cost and create a revenue stream for you through ads we place within the Mobile Magazine. Please let me know when a good time can be for us to speak. Blog On! Amir Snakk Media | Los Angeles Snakkmedia.com Ph: +1 310 860 8031 Mob: +1 310 463 7227 Checkout 310.TV, the worlds first Mobile Magazine. 404.TV coming soon! From freebsdemail at gmail.com Sat Oct 4 04:41:33 2008 From: freebsdemail at gmail.com (Tom Stuart) Date: Sat Oct 4 04:41:40 2008 Subject: Vista Dual Boot issues - Does not start on a track boundary Message-ID: <5cdef660810032141p567fad46vac8a7a6b0451e735@mail.gmail.com> Hi Guys, I'm nowhere near new on the FreeBSD front but have Never done a dual boot with vista. Vista came pre-installed on this machine and I created another partition using the resize function of Vista. When I'm setting up my slices its complaining about Chunk ad0S1 does not start on a track boundary... Does anyone know if this is a common problem and the easiest way to resolve this issue? I've tried going on and setting up the labels but upon installation of packages it seems as though its having problem doing a chroot due to the partitions not being setup correctly. I know I could delete all slices and start out with freebsd and then install vista but it would involve backing up approx. 150Gigs of data. I've also done approximately 5 hours of searching archives, etc to no avail. I've tried everything with no success on FreeBSD7.0 Release, 7.1 beta and 8.0 current. Thanks, Tom From rock_on_the_web at comcen.com.au Sat Oct 4 05:56:18 2008 From: rock_on_the_web at comcen.com.au (Da Rock) Date: Sat Oct 4 05:56:31 2008 Subject: How stable is FreeBSD WiFi support? In-Reply-To: <48E67C86.5030206@rawbw.com> References: <48E67C86.5030206@rawbw.com> Message-ID: <1223099600.27632.5.camel@laptop1.herveybayaustralia.com.au> On Fri, 2008-10-03 at 13:11 -0700, Yuri wrote: > I have FreeBSD-70 machine and Linux Gentoo machines side by side (within > 10 feet). > Gentoo Linux (with old AirLink101) connects to a particular encrypted > WEP network without any problems all the time. > FreeBSD (with ral0 device and native driver) connection is very > unstable, keeps disappearing, though network card shows signal level as > -90:-95. > dhclient fails to set up the card, often dhclient succeeds but all name > lookups fails. When internet connection is established all TCP > connections get dropped after 10-20 minutes or less. > > I feel like I hit some bug in FreeBSD WiFi networking support. > > Anyone has similar experience? > Yuri Yeah I had similar troubles on a laptop with an intel wifi (6.1 + 6.2). I posted something about a week or two back, but I didn't get any response here. Not sure where to go from here though, as I'm having similar troubles with the ral driver too (desktop- 6.3). Seems to be wpa supplicant from my troubleshooting. If I manually reassociated with the iwi it was ok, but didn't hold out- I was going to setup a script to run a check and do this. The ral driver works if I set it auto, but wpa supplicant will only work in manual mode. Catch 22 on that one... From rock_on_the_web at comcen.com.au Sat Oct 4 05:56:21 2008 From: rock_on_the_web at comcen.com.au (Da Rock) Date: Sat Oct 4 05:56:32 2008 Subject: exporting/exposing directory over the Internet? In-Reply-To: <35f70db10810031518v6133438cocc79d4cf22e0d47b@mail.gmail.com> References: <6e5cf6a70810031306h589c56c0udb373befd4cc0f66@mail.gmail.com> <35f70db10810031518v6133438cocc79d4cf22e0d47b@mail.gmail.com> Message-ID: <1223099763.27632.9.camel@laptop1.herveybayaustralia.com.au> On Sat, 2008-10-04 at 00:18 +0200, Ross Cameron wrote: > Use SFTP (aka SSH file sharing) and mount the folder's using SftpDrive on > Windows and various tools are available for doing that under UNIX. Wouldn't an ssl version of webdav do the same sort of thing without all the extra hassle in (heaven forbid) window$? I think there is a network folder system that can access webdav on the M$ crap, and I believe there is a webdavs in the apache modules. Correct me if I'm wrong... From koitsu at FreeBSD.org Sat Oct 4 06:07:47 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Sat Oct 4 06:07:58 2008 Subject: How stable is FreeBSD WiFi support? In-Reply-To: <1223099600.27632.5.camel@laptop1.herveybayaustralia.com.au> References: <48E67C86.5030206@rawbw.com> <1223099600.27632.5.camel@laptop1.herveybayaustralia.com.au> Message-ID: <20081004060745.GA48067@icarus.home.lan> On Sat, Oct 04, 2008 at 03:53:20PM +1000, Da Rock wrote: > > On Fri, 2008-10-03 at 13:11 -0700, Yuri wrote: > > I have FreeBSD-70 machine and Linux Gentoo machines side by side (within > > 10 feet). > > Gentoo Linux (with old AirLink101) connects to a particular encrypted > > WEP network without any problems all the time. > > FreeBSD (with ral0 device and native driver) connection is very > > unstable, keeps disappearing, though network card shows signal level as > > -90:-95. > > dhclient fails to set up the card, often dhclient succeeds but all name > > lookups fails. When internet connection is established all TCP > > connections get dropped after 10-20 minutes or less. > > > > I feel like I hit some bug in FreeBSD WiFi networking support. > > > > Anyone has similar experience? > > Yuri > > Yeah I had similar troubles on a laptop with an intel wifi (6.1 + 6.2). > I posted something about a week or two back, but I didn't get any > response here. Not sure where to go from here though, as I'm having > similar troubles with the ral driver too (desktop- 6.3). Have you tried the freebsd-stable and freebsd-hackers lists? Supplicant has been discussed there in the recent and late past. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From leslie at eskk.nu Sat Oct 4 06:13:17 2008 From: leslie at eskk.nu (Leslie Jensen) Date: Sat Oct 4 06:13:24 2008 Subject: Vista Dual Boot issues - Does not start on a track boundary In-Reply-To: <5cdef660810032141p567fad46vac8a7a6b0451e735@mail.gmail.com> References: <5cdef660810032141p567fad46vac8a7a6b0451e735@mail.gmail.com> Message-ID: <48E70977.8080808@eskk.nu> Tom Stuart skrev: > Hi Guys, > > I'm nowhere near new on the FreeBSD front but have Never done a dual > boot with vista. Vista came pre-installed on this machine and I > created another partition using the resize function of Vista. When I'm > setting up my slices its complaining about Chunk ad0S1 does not start > on a track boundary... > > Does anyone know if this is a common problem and the easiest way to > resolve this issue? I've tried going on and setting up the labels but > upon installation of packages it seems as though its having problem > doing a chroot due to the partitions not being setup correctly. I know > I could delete all slices and start out with freebsd and then install > vista but it would involve backing up approx. 150Gigs of data. I've > also done approximately 5 hours of searching archives, etc to no > avail. > > I've tried everything with no success on FreeBSD7.0 Release, 7.1 beta > and 8.0 current. > > Thanks, > > Tom Hi Tom I just made a dualboot machine out of my new Laptop. I used Gparted because the Vista resize wouldn't give me the space I wanted. Then I read in BSD Magazine that the Vista bootloader is a little different from the earlier Windows versions. The article mentioned a bootloader utility, "EasyBCD" http://neosmart.net/dl.php?id=1 Which I use. When your installation of FreeBSD is finished, (don't install the bootloader) the BSD partition will be the active partition and you will need to set the Vista partition active again with Gparted. Then boot into Vista and install the bootloader. /Leslie From rock_on_the_web at comcen.com.au Sat Oct 4 06:36:19 2008 From: rock_on_the_web at comcen.com.au (Da Rock) Date: Sat Oct 4 06:36:26 2008 Subject: How stable is FreeBSD WiFi support? In-Reply-To: <20081004060745.GA48067@icarus.home.lan> References: <48E67C86.5030206@rawbw.com> <1223099600.27632.5.camel@laptop1.herveybayaustralia.com.au> <20081004060745.GA48067@icarus.home.lan> Message-ID: <1223102053.27632.12.camel@laptop1.herveybayaustralia.com.au> On Fri, 2008-10-03 at 23:07 -0700, Jeremy Chadwick wrote: > On Sat, Oct 04, 2008 at 03:53:20PM +1000, Da Rock wrote: > > > > On Fri, 2008-10-03 at 13:11 -0700, Yuri wrote: > > > I have FreeBSD-70 machine and Linux Gentoo machines side by side (within > > > 10 feet). > > > Gentoo Linux (with old AirLink101) connects to a particular encrypted > > > WEP network without any problems all the time. > > > FreeBSD (with ral0 device and native driver) connection is very > > > unstable, keeps disappearing, though network card shows signal level as > > > -90:-95. > > > dhclient fails to set up the card, often dhclient succeeds but all name > > > lookups fails. When internet connection is established all TCP > > > connections get dropped after 10-20 minutes or less. > > > > > > I feel like I hit some bug in FreeBSD WiFi networking support. > > > > > > Anyone has similar experience? > > > Yuri > > > > Yeah I had similar troubles on a laptop with an intel wifi (6.1 + 6.2). > > I posted something about a week or two back, but I didn't get any > > response here. Not sure where to go from here though, as I'm having > > similar troubles with the ral driver too (desktop- 6.3). > > Have you tried the freebsd-stable and freebsd-hackers lists? Supplicant > has been discussed there in the recent and late past. > Yeah I believe I checked stable at the time, but I'm not subscribed to hackers so I wouldn't know about there. I'll check stable again now that you mention it. From patfbsd at davenulle.org Sat Oct 4 09:02:59 2008 From: patfbsd at davenulle.org (Patrick =?ISO-8859-15?Q?Lamaizi=E8re?=) Date: Sat Oct 4 09:03:06 2008 Subject: portupgrade failure In-Reply-To: <20081003172624.GC6090@piglet.digitaltorque.ca> References: <20081003172624.GC6090@piglet.digitaltorque.ca> Message-ID: <20081004110255.4e05dbf1@baby-jane-lamaiziere-net.local> Le Fri, 3 Oct 2008 13:26:33 -0400, "Michael P. Soulier" a ?crit : > So, I recently upgraded from 5.5 to 6.3, and as such, ran a > portupgrade -fa to rebuild my ports against 6.3. > > I just noticed this. > > ===> Cleaning for ruby-1.8.6.287,1 > ---> Cleaning out obsolete shared libraries > [Updating the pkgdb in /var/db/pkg ... > Any idea what would cause this? Portupgrade is often confused with his database on upgrade. Delete /var/db/pkg/pkgdb.db and retry. May be you have to delete /usr/ports/INDEX-6.db too. From unga888 at yahoo.com Sat Oct 4 09:17:52 2008 From: unga888 at yahoo.com (Unga) Date: Sat Oct 4 09:17:58 2008 Subject: make buildkernel error Message-ID: <704489.78698.qm@web57004.mail.re3.yahoo.com> Hi all I'm getting following compile error for /usr/src/sys/i386/i386/genassym.c : cc1: error: unrecognized command line option "-mno-align-long-strings" cc1: error: unrecognized command line option "-fformat-extensions" *** Error code 1 I'm using gcc version 4.3.1. Does this means above options are not compatible with gcc version 4.3.1? Is it safe to remove above options from kernel sources and recompile or what am I suppose to do now? This is RELENG_7, cvsup a month ago. Appreciate your reply very much. Kind regards Unga From koitsu at FreeBSD.org Sat Oct 4 10:03:21 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Sat Oct 4 10:03:29 2008 Subject: make buildkernel error In-Reply-To: <704489.78698.qm@web57004.mail.re3.yahoo.com> References: <704489.78698.qm@web57004.mail.re3.yahoo.com> Message-ID: <20081004100318.GA53131@icarus.home.lan> On Sat, Oct 04, 2008 at 02:17:50AM -0700, Unga wrote: > I'm getting following compile error for /usr/src/sys/i386/i386/genassym.c : > cc1: error: unrecognized command line option "-mno-align-long-strings" > cc1: error: unrecognized command line option "-fformat-extensions" > *** Error code 1 > > I'm using gcc version 4.3.1. > > Does this means above options are not compatible with gcc version 4.3.1? > > Is it safe to remove above options from kernel sources and recompile or what am I suppose to do now? > > This is RELENG_7, cvsup a month ago. > > Appreciate your reply very much. I'm not sure about this, but doesn't building world require that you use the base system's gcc (e.g. /usr/bin/gcc), and not the one from ports? -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From reddvinylene at gmail.com Sat Oct 4 10:24:11 2008 From: reddvinylene at gmail.com (Redd Vinylene) Date: Sat Oct 4 10:24:18 2008 Subject: Jail, pf and ftpd: Connection refused In-Reply-To: <200810031156.07623.max@love2party.net> References: <200810031156.07623.max@love2party.net> Message-ID: On Fri, Oct 3, 2008 at 11:56 AM, Max Laier wrote: > > See ftp-proxy(8). > > Note that active works with the ruleset you provided (due to the "pass out > keep state"-rule), but there is obviously a firewall problem on the client > preventing that. > Are you sure I need ftp-proxy? I opened the datarange 49152:65535 and now I no longer get a connection refused. I seem to be able to list, download, you know the usual stuff. I still get the "getpeername(control_sock): Transport endpoint is not connected" though. If I do need ftp-proxy, I take it it's the "FTP Server Protected by an External PF Firewall Running NAT" at http://www.openbsd.org/faq/pf/ftp.html that applies to my setup? I can't quite comprehend the nat/rdr rules in that example, as I ain't really got an int_if. As I stated earlier, I have a FreeBSD server running pf and two jails, and I'm trying to get ftpd running smoothly inside one of those jails. Thank you so much. -- http://www.home.no/reddvinylene From lists at lizardhill.com Sat Oct 4 12:31:22 2008 From: lists at lizardhill.com (Don O'Neil) Date: Sat Oct 4 12:31:29 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 Message-ID: I just swapped out an old 500G disk with a 1TB one and I'm trying to label it and mount it... If I run bsdlabel -w ad4, I get: bsdlabel: Geom not found If I run sysinstall, it tells me that it can't write to the disk. I've tried an old 'bypass': sysctl kern.geom.debugflags=16, but that didn't help. Can anyone help me get this new disk installed without having to boot off a recovery CD? The server is 500 miles away from me and I don't have direct console access. Thanks!!! From reddvinylene at gmail.com Sat Oct 4 12:51:54 2008 From: reddvinylene at gmail.com (Redd Vinylene) Date: Sat Oct 4 12:52:01 2008 Subject: Jail, pf and ftpd: Connection refused In-Reply-To: References: <200810031156.07623.max@love2party.net> Message-ID: > On Fri, Oct 3, 2008 at 11:56 AM, Max Laier wrote: > > See ftp-proxy(8). > > Note that active works with the ruleset you provided (due to the "pass out > keep state"-rule), but there is obviously a firewall problem on the client > preventing that. > Nevermind, I think the "Transport endpoint is not connected" is most likely due to lftp. Nonetheless, much obliged for the assistance! -- http://www.home.no/reddvinylene From dino_vliet at yahoo.com Sat Oct 4 13:34:37 2008 From: dino_vliet at yahoo.com (Dino Vliet) Date: Sat Oct 4 13:34:49 2008 Subject: gmirror prerequisite question Message-ID: <946647.40848.qm@web51103.mail.re2.yahoo.com> Hey freebsd list, I've bought a secondry HDD to attach to my server running freebsd 7.0. I want to enable gmirror on it (will reinstall everything from scratch), but I want to know if my hardware is setup correctly as a prerequisite for doing this operation. The command dmesg | grep Seagate Yields: ad4: 76319MB at ata2-master UDMA33 ad6: 76319MB at ata3-master UDMA33 Can I assume everything is ok now and can I start the reinstallation? Why I'm in doubt is because of the master/slave thing I was expecting but that seems something of the IDE world as I have bought two Sata hard drives and connected it with sata cables to my motherboard. But just checking to be sure. Brgds and thanks in advanced! Dino From sonic2000gr at gmail.com Sat Oct 4 13:48:50 2008 From: sonic2000gr at gmail.com (Manolis Kiagias) Date: Sat Oct 4 13:48:57 2008 Subject: gmirror prerequisite question In-Reply-To: <946647.40848.qm@web51103.mail.re2.yahoo.com> References: <946647.40848.qm@web51103.mail.re2.yahoo.com> Message-ID: <48E7743D.9020709@gmail.com> Dino Vliet wrote: > Hey freebsd list, > > I've bought a secondry HDD to attach to my server running freebsd 7.0. I want to enable gmirror on it (will reinstall everything from scratch), but I want to know if my hardware is setup correctly as a prerequisite for doing this operation. > > The command > > dmesg | grep Seagate > > Yields: > > ad4: 76319MB at ata2-master UDMA33 > ad6: 76319MB at ata3-master UDMA33 > > Can I assume everything is ok now and can I start the reinstallation? Why I'm in doubt is because of the master/slave thing I was expecting but that seems something of the IDE world as I have bought two Sata hard drives and connected it with sata cables to my motherboard. > > But just checking to be sure. > > Brgds and thanks in advanced! > Dino > > The concept of master / slave only exists in the IDE (PATA) world. SATA disks do not have these troubles, as there is only one per cable. Your setup is absolutely fine. If you haven't already, I suggest you read this excellent article: http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html?page=1 I've set up quite a few gmirrors with this info. From nightrecon at verizon.net Sat Oct 4 13:48:58 2008 From: nightrecon at verizon.net (Michael Powell) Date: Sat Oct 4 13:49:07 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 References: Message-ID: Don O'Neil wrote: > I just swapped out an old 500G disk with a 1TB one and I'm trying to label > it and mount it... > > If I run bsdlabel -w ad4, I get: > > bsdlabel: Geom not found > > If I run sysinstall, it tells me that it can't write to the disk. > > I've tried an old 'bypass': sysctl kern.geom.debugflags=16, but that > didn't help. > > Can anyone help me get this new disk installed without having to boot off > a recovery CD? The server is 500 miles away from me and I don't have > direct console access. > Uhmm... This may seem silly, but did you use fdisk to create a slice first before you tried partitioning? -Mike- From wojtek at wojtek.tensor.gdynia.pl Sat Oct 4 16:20:18 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Sat Oct 4 16:20:25 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: References: Message-ID: <20081004181923.N2683@wojtek.tensor.gdynia.pl> >> I've tried an old 'bypass': sysctl kern.geom.debugflags=16, but that >> didn't help. >> >> Can anyone help me get this new disk installed without having to boot off >> a recovery CD? The server is 500 miles away from me and I don't have >> direct console access. >> > > Uhmm... This may seem silly, but did you use fdisk to create a slice first > before you tried partitioning? > this is NOT needed. actually i don't do it anywhere. it just may be sysinstall problem, anything else. From wojtek at wojtek.tensor.gdynia.pl Sat Oct 4 16:20:48 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Sat Oct 4 16:20:55 2008 Subject: gmirror prerequisite question In-Reply-To: <946647.40848.qm@web51103.mail.re2.yahoo.com> References: <946647.40848.qm@web51103.mail.re2.yahoo.com> Message-ID: <20081004182010.D2683@wojtek.tensor.gdynia.pl> > I've bought a secondry HDD to attach to my server running freebsd 7.0. > I want to enable gmirror on it (will reinstall everything from scratch), you don't have to. >but I want to know if my hardware is setup correctly as a prerequisite for doing this operation. > > The command > > dmesg | grep Seagate > > Yields: > > ad4: 76319MB at ata2-master UDMA33 > ad6: 76319MB at ata3-master UDMA33 yes it is. From lists at lizardhill.com Sat Oct 4 16:35:57 2008 From: lists at lizardhill.com (Don O'Neil) Date: Sat Oct 4 16:36:04 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: <20081004181923.N2683@wojtek.tensor.gdynia.pl> References: <20081004181923.N2683@wojtek.tensor.gdynia.pl> Message-ID: <4A5E18EB2ED142C2B97EFD5A82AA805F@mickey> >>> I've tried an old 'bypass': sysctl kern.geom.debugflags=16, but that >>> didn't help. >>> >>> Can anyone help me get this new disk installed without having to boot >>> off a recovery CD? The server is 500 miles away from me and I don't >>> have direct console access. >>> >> >> Uhmm... This may seem silly, but did you use fdisk to create a slice >> first before you tried partitioning? >> >this is NOT needed. actually i don't do it anywhere. > >it just may be sysinstall problem, anything else. I tried using fdisk first, same problem, won't let me write to the disk. From satam_mandar at hotmail.com Sat Oct 4 17:01:22 2008 From: satam_mandar at hotmail.com (mandar satam) Date: Sat Oct 4 17:01:46 2008 Subject: Kernel trouble Message-ID: Hi , I have a wierd problem.I am trying to make changes to freebsd 5.2 scheduler to make it a user based fair share scheduler as a part of my project.I have created a data structure similar to runq datastructure.My problem is that when I compile my changes into the kernel, the kernel reboots again and again and gives me a fatal trap error befroe rebooting each time. Could someone explain why this happens?Thanks & Regards, Mandar Satam _________________________________________________________________ Want to do more with Windows Live? Learn ?10 hidden secrets? from Jamie. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008 From reddvinylene at gmail.com Sat Oct 4 18:35:33 2008 From: reddvinylene at gmail.com (Redd Vinylene) Date: Sat Oct 4 18:35:45 2008 Subject: Problems moving my jails (mv: Operation not permitted) Message-ID: Hello hello! I need to move my jails from /usr/jail to /home/jail. The latter is where all my diskspace is. Not all files seem to want to move though? # mv /usr/jail /home mv: /usr/jail/camel/var/spool/postfix/private/scache is a socket (not copied). mv: /usr/jail/camel/var/spool/postfix/private/rewrite is a socket (not copied). mv: /usr/jail/camel/var/spool/postfix/private/bounce is a socket (not copied). mv: /usr/jail/camel/var/spool/postfix/private/defer is a socket (not copied). mv: /usr/jail/camel/var/spool/postfix/private/trace is a socket (not copied). mv: /usr/jail/camel/var/spool/postfix/private/verify is a socket (not copied). mv: /usr/jail/camel/var/spool/postfix/private/proxymap is a socket (not copied). mv: /usr/jail/camel/var/spool/postfix/private/proxywrite is a socket (not copied). mv: /usr/jail/camel/var/spool/postfix/private/smtp is a socket (not copied). mv: /usr/jail/camel/var/spool/postfix/private/relay is a socket (not copied). mv: /usr/jail/camel/var/spool/postfix/private/error is a socket (not copied). mv: /usr/jail/camel/var/spool/postfix/private/retry is a socket (not copied). mv: /usr/jail/camel/var/spool/postfix/private/discard is a socket (not copied). mv: /usr/jail/camel/var/spool/postfix/private/local is a socket (not copied). mv: /usr/jail/camel/var/spool/postfix/private/virtual is a socket (not copied). mv: /usr/jail/camel/var/spool/postfix/private/lmtp is a socket (not copied). mv: /usr/jail/camel/var/spool/postfix/private/anvil is a socket (not copied). mv: /usr/jail/camel/var/spool/postfix/private/tlsmgr is a socket (not copied). mv: /usr/jail/camel/var/spool/postfix/public/cleanup is a socket (not copied). mv: /usr/jail/camel/var/spool/postfix/public/flush is a socket (not copied). mv: /usr/jail/camel/var/spool/postfix/public/showq is a socket (not copied). mv: /usr/jail/box/usr/bin/chpass: Operation not permitted mv: /usr/jail/box/usr/bin/chfn: Operation not permitted mv: /usr/jail/box/usr/bin/chsh: Operation not permitted mv: /usr/jail/box/usr/bin/ypchpass: Operation not permitted mv: /usr/jail/box/usr/bin/ypchfn: Operation not permitted mv: /usr/jail/box/usr/bin/ypchsh: Operation not permitted mv: /usr/jail/box/usr/bin/login: Operation not permitted mv: /usr/jail/box/usr/bin/opieinfo: Operation not permitted mv: /usr/jail/box/usr/bin/opiepasswd: Operation not permitted mv: /usr/jail/box/usr/bin/passwd: Operation not permitted mv: /usr/jail/box/usr/bin/yppasswd: Operation not permitted mv: /usr/jail/box/usr/bin/rlogin: Operation not permitted mv: /usr/jail/box/usr/bin/rsh: Operation not permitted mv: /usr/jail/box/usr/bin/su: Operation not permitted mv: /usr/jail/box/usr/bin/crontab: Operation not permitted mv: /usr/jail/box/usr/bin: Directory not empty mv: /usr/jail/box/usr/lib/libkse.so.3: Operation not permitted mv: /usr/jail/box/usr/lib/librt.so.1: Operation not permitted mv: /usr/jail/box/usr/lib: Directory not empty mv: /usr/jail/box/usr/sbin/sliplogin: Operation not permitted mv: /usr/jail/box/usr/sbin: Directory not empty mv: /usr/jail/box/usr: Directory not empty mv: /usr/jail/box/var/empty: Operation not permitted mv: /usr/jail/box/var: Directory not empty mv: /usr/jail/box/bin/rcp: Operation not permitted mv: /usr/jail/box/bin: Directory not empty mv: /usr/jail/box/dev/fd: Operation not supported mv: /usr/jail/box/dev: Device busy mv: /usr/jail/box/lib/libc.so.7: Operation not permitted mv: /usr/jail/box/lib/libcrypt.so.4: Operation not permitted mv: /usr/jail/box/lib/libthr.so.3: Operation not permitted mv: /usr/jail/box/lib: Directory not empty mv: /usr/jail/box/libexec/ld-elf.so.1: Operation not permitted mv: /usr/jail/box/libexec: Directory not empty mv: /usr/jail/box/sbin/init: Operation not permitted mv: /usr/jail/box/sbin: Directory not empty mv: /usr/jail/box: Directory not empty mv: /usr/jail/camel/usr/bin/chpass: Operation not permitted mv: /usr/jail/camel/usr/bin/chfn: Operation not permitted mv: /usr/jail/camel/usr/bin/chsh: Operation not permitted mv: /usr/jail/camel/usr/bin/ypchpass: Operation not permitted mv: /usr/jail/camel/usr/bin/ypchfn: Operation not permitted mv: /usr/jail/camel/usr/bin/ypchsh: Operation not permitted mv: /usr/jail/camel/usr/bin/login: Operation not permitted mv: /usr/jail/camel/usr/bin/opieinfo: Operation not permitted mv: /usr/jail/camel/usr/bin/opiepasswd: Operation not permitted mv: /usr/jail/camel/usr/bin/passwd: Operation not permitted mv: /usr/jail/camel/usr/bin/yppasswd: Operation not permitted mv: /usr/jail/camel/usr/bin/rlogin: Operation not permitted mv: /usr/jail/camel/usr/bin/rsh: Operation not permitted mv: /usr/jail/camel/usr/bin/su: Operation not permitted mv: /usr/jail/camel/usr/bin/crontab: Operation not permitted mv: /usr/jail/camel/usr/bin: Directory not empty mv: /usr/jail/camel/usr/lib/libkse.so.3: Operation not permitted mv: /usr/jail/camel/usr/lib/librt.so.1: Operation not permitted mv: /usr/jail/camel/usr/lib: Directory not empty mv: /usr/jail/camel/usr/sbin/sliplogin: Operation not permitted mv: /usr/jail/camel/usr/sbin: Directory not empty mv: /usr/jail/camel/usr: Directory not empty mv: /usr/jail/camel/bin/rcp: Operation not permitted mv: /usr/jail/camel/bin: Directory not empty mv: /usr/jail/camel/dev/fd: Operation not supported mv: /usr/jail/camel/dev: Device busy mv: /usr/jail/camel/lib/libc.so.7: Operation not permitted mv: /usr/jail/camel/lib/libcrypt.so.4: Operation not permitted mv: /usr/jail/camel/lib/libthr.so.3: Operation not permitted mv: /usr/jail/camel/lib: Directory not empty mv: /usr/jail/camel/libexec/ld-elf.so.1: Operation not permitted mv: /usr/jail/camel/libexec: Directory not empty mv: /usr/jail/camel/sbin/init: Operation not permitted mv: /usr/jail/camel/sbin: Directory not empty mv: /usr/jail/camel/var/empty: Operation not permitted mv: /usr/jail/camel/var: Directory not empty mv: /usr/jail/camel: Directory not empty mv: /usr/jail: Directory not empty mv: /bin/rm /usr/jail: terminated with 1 (non-zero) status I guess I ain't gotta worry about the sockets but what about the rest? -- http://www.home.no/reddvinylene From reddvinylene at gmail.com Sat Oct 4 18:40:57 2008 From: reddvinylene at gmail.com (Redd Vinylene) Date: Sat Oct 4 18:41:08 2008 Subject: Problems moving my jails (mv: Operation not permitted) In-Reply-To: <48E7B80F.8040602@gmail.com> References: <48E7B80F.8040602@gmail.com> Message-ID: On Sat, Oct 4, 2008 at 8:38 PM, Rodrigo Gonzalez wrote: > > Are the jails stopped? > > Yes, they are. Sorry, I should have mentioned this. -- http://www.home.no/reddvinylene From reddvinylene at gmail.com Sat Oct 4 18:53:42 2008 From: reddvinylene at gmail.com (Redd Vinylene) Date: Sat Oct 4 18:53:50 2008 Subject: Problems moving my jails (mv: Operation not permitted) In-Reply-To: References: <48E7B80F.8040602@gmail.com> Message-ID: On Sat, Oct 4, 2008 at 8:40 PM, Redd Vinylene wrote: > On Sat, Oct 4, 2008 at 8:38 PM, Rodrigo Gonzalez wrote: >> >> Are the jails stopped? >> >> > > Yes, they are. Sorry, I should have mentioned this. > > -- > http://www.home.no/reddvinylene > Should I just do like this? cp /usr/jail/box/usr/bin/chpass /home/jail/box/usr/bin/chpass cp /usr/jail/box/usr/bin/chfn /home/jail/box/usr/bin/chfn cp /usr/jail/box/usr/bin/chsh /home/jail/box/usr/bin/chsh cp /usr/jail/box/usr/bin/ypchpass /home/jail/box/usr/bin/ypchpass cp /usr/jail/box/usr/bin/ypchfn /home/jail/box/usr/bin/ypchfn cp /usr/jail/box/usr/bin/ypchsh /home/jail/box/usr/bin/ypchsh cp /usr/jail/box/usr/bin/login /home/jail/box/usr/bin/login cp /usr/jail/box/usr/bin/opieinfo /home/jail/box/usr/bin/opieinfo cp /usr/jail/box/usr/bin/opiepasswd /home/jail/box/usr/bin/opiepasswd cp /usr/jail/box/usr/bin/passwd /home/jail/box/usr/bin/passwd cp /usr/jail/box/usr/bin/yppasswd /home/jail/box/usr/bin/yppasswd cp /usr/jail/box/usr/bin/rlogin /home/jail/box/usr/bin/rlogin cp /usr/jail/box/usr/bin/rsh /home/jail/box/usr/bin/rsh cp /usr/jail/box/usr/bin/su /home/jail/box/usr/bin/su cp /usr/jail/box/usr/bin/crontab /home/jail/box/usr/bin/crontab cp /usr/jail/box/usr/lib/libkse.so.3 /home/jail/box/usr/lib/libkse.so.3 cp /usr/jail/box/usr/lib/librt.so.1 /home/jail/box/usr/lib/librt.so.1 cp /usr/jail/box/usr/sbin/sliplogin /home/jail/box/usr/sbin/sliplogin cp /usr/jail/box/var/empty /home/jail/box/var/empty cp /usr/jail/box/bin/rcp /home/jail/box/bin/rcp cp /usr/jail/box/dev/fd /home/jail/box/dev/fd cp /usr/jail/box/lib/libc.so.7 /home/jail/box/lib/libc.so.7 cp /usr/jail/box/lib/libcrypt.so.4 /home/jail/box/lib/libcrypt.so.4 cp /usr/jail/box/lib/libthr.so.3 /home/jail/box/lib/libthr.so.3 cp /usr/jail/box/libexec/ld-elf.so.1 /home/jail/box/libexec/ld-elf.so.1 cp /usr/jail/box/sbin/init /home/jail/box/sbin/init cp /usr/jail/camel/usr/bin/chpass /home/jail/camel/usr/bin/chpass cp /usr/jail/camel/usr/bin/chfn /home/jail/camel/usr/bin/chfn cp /usr/jail/camel/usr/bin/chsh /home/jail/camel/usr/bin/chsh cp /usr/jail/camel/usr/bin/ypchpass /home/jail/camel/usr/bin/ypchpass cp /usr/jail/camel/usr/bin/ypchfn /home/jail/camel/usr/bin/ypchfn cp /usr/jail/camel/usr/bin/ypchsh /home/jail/camel/usr/bin/ypchsh cp /usr/jail/camel/usr/bin/login /home/jail/camel/usr/bin/login cp /usr/jail/camel/usr/bin/opieinfo /home/jail/camel/usr/bin/opieinfo cp /usr/jail/camel/usr/bin/opiepasswd /home/jail/camel/usr/bin/opiepasswd cp /usr/jail/camel/usr/bin/passwd /home/jail/camel/usr/bin/passwd cp /usr/jail/camel/usr/bin/yppasswd /home/jail/camel/usr/bin/yppasswd cp /usr/jail/camel/usr/bin/rlogin /home/jail/camel/usr/bin/rlogin cp /usr/jail/camel/usr/bin/rsh /home/jail/camel/usr/bin/rsh cp /usr/jail/camel/usr/bin/su /home/jail/camel/usr/bin/su cp /usr/jail/camel/usr/bin/crontab /home/jail/camel/usr/bin/crontab cp /usr/jail/camel/usr/lib/libkse.so.3 /home/jail/camel/usr/lib/libkse.so.3 cp /usr/jail/camel/usr/lib/librt.so.1 /home/jail/camel/usr/lib/librt.so.1 cp /usr/jail/camel/usr/sbin/sliplogin /home/jail/camel/usr/sbin/sliplogin cp /usr/jail/camel/bin/rcp /home/jail/camel/bin/rcp cp /usr/jail/camel/dev/fd /home/jail/camel/dev/fd cp /usr/jail/camel/lib/libc.so.7 /home/jail/camel/lib/libc.so.7 cp /usr/jail/camel/lib/libcrypt.so.4 /home/jail/camel/lib/libcrypt.so.4 cp /usr/jail/camel/lib/libthr.so.3 /home/jail/camel/lib/libthr.so.3 cp /usr/jail/camel/libexec/ld-elf.so.1 /home/jail/camel/libexec/ld-elf.so.1 cp /usr/jail/camel/sbin/init /home/jail/camel/sbin/init cp /usr/jail/camel/var/empty /home/jail/camel/var/empty rm -rf /usr/jail -- http://www.home.no/reddvinylene From reddvinylene at gmail.com Sat Oct 4 18:56:55 2008 From: reddvinylene at gmail.com (Redd Vinylene) Date: Sat Oct 4 18:57:07 2008 Subject: Problems moving my jails (mv: Operation not permitted) In-Reply-To: References: <48E7B80F.8040602@gmail.com> Message-ID: On Sat, Oct 4, 2008 at 8:53 PM, Redd Vinylene wrote: > On Sat, Oct 4, 2008 at 8:40 PM, Redd Vinylene wrote: >> On Sat, Oct 4, 2008 at 8:38 PM, Rodrigo Gonzalez wrote: >>> >>> Are the jails stopped? >>> >>> >> >> Yes, they are. Sorry, I should have mentioned this. >> >> -- >> http://www.home.no/reddvinylene >> > > Should I just do like this? > > cp /usr/jail/box/usr/bin/chpass /home/jail/box/usr/bin/chpass > cp /usr/jail/box/usr/bin/chfn /home/jail/box/usr/bin/chfn > cp /usr/jail/box/usr/bin/chsh /home/jail/box/usr/bin/chsh > [...] > rm -rf /usr/jail > > -- > http://www.home.no/reddvinylene > My bad, that's not permitted either. -- http://www.home.no/reddvinylene From reddvinylene at gmail.com Sat Oct 4 19:04:35 2008 From: reddvinylene at gmail.com (Redd Vinylene) Date: Sat Oct 4 19:04:41 2008 Subject: Problems moving my jails (mv: Operation not permitted) In-Reply-To: <18663.48601.45230.57747@almost.alerce.com> References: <48E7B80F.8040602@gmail.com> <18663.48601.45230.57747@almost.alerce.com> Message-ID: On Sat, Oct 4, 2008 at 9:02 PM, George Hartzell wrote: > > If you do an ls -lo /home/jail/box/usr/bin/chpass, you'll probably see > the schg flag set. Man chflags for more info and instructions on how > to unset it > > g. > Yes: -r-sr-xr-x 6 root wheel schg 18468 Aug 2 19:47 /usr/jail/box/usr/bin/chpass So I'd simply have to "chflags noschg /usr/jail/box/usr/bin/chpass" and then "cp /usr/jail/box/usr/bin/chpass /home/jail/box/usr/bin/chpass"? -- http://www.home.no/reddvinylene From wojtek at wojtek.tensor.gdynia.pl Sat Oct 4 19:05:20 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Sat Oct 4 19:05:32 2008 Subject: Problems moving my jails (mv: Operation not permitted) In-Reply-To: References: Message-ID: <20081004210436.N1546@wojtek.tensor.gdynia.pl> > mv: /usr/jail/camel/sbin: Directory not empty > mv: /usr/jail/camel/var/empty: Operation not permitted > mv: /usr/jail/camel/var: Directory not empty > mv: /usr/jail/camel: Directory not empty > mv: /usr/jail: Directory not empty > mv: /bin/rm /usr/jail: terminated with 1 (non-zero) status > > I guess I ain't gotta worry about the sockets but what about the rest? > you need chflags -R noschg yourdir From rjgonzale at gmail.com Sat Oct 4 19:05:34 2008 From: rjgonzale at gmail.com (Rodrigo Gonzalez) Date: Sat Oct 4 19:05:41 2008 Subject: Problems moving my jails (mv: Operation not permitted) In-Reply-To: References: Message-ID: <48E7B80F.8040602@gmail.com> Redd Vinylene wrote: > Hello hello! I need to move my jails from /usr/jail to /home/jail. The > latter is where all my diskspace is. Not all files seem to want to > move though? > > # mv /usr/jail /home > mv: /usr/jail/camel/var/spool/postfix/private/scache is a socket (not copied). > mv: /usr/jail/camel/var/spool/postfix/private/rewrite is a socket (not copied). > mv: /usr/jail/camel/var/spool/postfix/private/bounce is a socket (not copied). > mv: /usr/jail/camel/var/spool/postfix/private/defer is a socket (not copied). > mv: /usr/jail/camel/var/spool/postfix/private/trace is a socket (not copied). > mv: /usr/jail/camel/var/spool/postfix/private/verify is a socket (not copied). > mv: /usr/jail/camel/var/spool/postfix/private/proxymap is a socket (not copied). > mv: /usr/jail/camel/var/spool/postfix/private/proxywrite is a socket > (not copied). > mv: /usr/jail/camel/var/spool/postfix/private/smtp is a socket (not copied). > mv: /usr/jail/camel/var/spool/postfix/private/relay is a socket (not copied). > mv: /usr/jail/camel/var/spool/postfix/private/error is a socket (not copied). > mv: /usr/jail/camel/var/spool/postfix/private/retry is a socket (not copied). > mv: /usr/jail/camel/var/spool/postfix/private/discard is a socket (not copied). > mv: /usr/jail/camel/var/spool/postfix/private/local is a socket (not copied). > mv: /usr/jail/camel/var/spool/postfix/private/virtual is a socket (not copied). > mv: /usr/jail/camel/var/spool/postfix/private/lmtp is a socket (not copied). > mv: /usr/jail/camel/var/spool/postfix/private/anvil is a socket (not copied). > mv: /usr/jail/camel/var/spool/postfix/private/tlsmgr is a socket (not copied). > mv: /usr/jail/camel/var/spool/postfix/public/cleanup is a socket (not copied). > mv: /usr/jail/camel/var/spool/postfix/public/flush is a socket (not copied). > mv: /usr/jail/camel/var/spool/postfix/public/showq is a socket (not copied). > mv: /usr/jail/box/usr/bin/chpass: Operation not permitted > mv: /usr/jail/box/usr/bin/chfn: Operation not permitted > mv: /usr/jail/box/usr/bin/chsh: Operation not permitted > mv: /usr/jail/box/usr/bin/ypchpass: Operation not permitted > mv: /usr/jail/box/usr/bin/ypchfn: Operation not permitted > mv: /usr/jail/box/usr/bin/ypchsh: Operation not permitted > mv: /usr/jail/box/usr/bin/login: Operation not permitted > mv: /usr/jail/box/usr/bin/opieinfo: Operation not permitted > mv: /usr/jail/box/usr/bin/opiepasswd: Operation not permitted > mv: /usr/jail/box/usr/bin/passwd: Operation not permitted > mv: /usr/jail/box/usr/bin/yppasswd: Operation not permitted > mv: /usr/jail/box/usr/bin/rlogin: Operation not permitted > mv: /usr/jail/box/usr/bin/rsh: Operation not permitted > mv: /usr/jail/box/usr/bin/su: Operation not permitted > mv: /usr/jail/box/usr/bin/crontab: Operation not permitted > mv: /usr/jail/box/usr/bin: Directory not empty > mv: /usr/jail/box/usr/lib/libkse.so.3: Operation not permitted > mv: /usr/jail/box/usr/lib/librt.so.1: Operation not permitted > mv: /usr/jail/box/usr/lib: Directory not empty > mv: /usr/jail/box/usr/sbin/sliplogin: Operation not permitted > mv: /usr/jail/box/usr/sbin: Directory not empty > mv: /usr/jail/box/usr: Directory not empty > mv: /usr/jail/box/var/empty: Operation not permitted > mv: /usr/jail/box/var: Directory not empty > mv: /usr/jail/box/bin/rcp: Operation not permitted > mv: /usr/jail/box/bin: Directory not empty > mv: /usr/jail/box/dev/fd: Operation not supported > mv: /usr/jail/box/dev: Device busy > mv: /usr/jail/box/lib/libc.so.7: Operation not permitted > mv: /usr/jail/box/lib/libcrypt.so.4: Operation not permitted > mv: /usr/jail/box/lib/libthr.so.3: Operation not permitted > mv: /usr/jail/box/lib: Directory not empty > mv: /usr/jail/box/libexec/ld-elf.so.1: Operation not permitted > mv: /usr/jail/box/libexec: Directory not empty > mv: /usr/jail/box/sbin/init: Operation not permitted > mv: /usr/jail/box/sbin: Directory not empty > mv: /usr/jail/box: Directory not empty > mv: /usr/jail/camel/usr/bin/chpass: Operation not permitted > mv: /usr/jail/camel/usr/bin/chfn: Operation not permitted > mv: /usr/jail/camel/usr/bin/chsh: Operation not permitted > mv: /usr/jail/camel/usr/bin/ypchpass: Operation not permitted > mv: /usr/jail/camel/usr/bin/ypchfn: Operation not permitted > mv: /usr/jail/camel/usr/bin/ypchsh: Operation not permitted > mv: /usr/jail/camel/usr/bin/login: Operation not permitted > mv: /usr/jail/camel/usr/bin/opieinfo: Operation not permitted > mv: /usr/jail/camel/usr/bin/opiepasswd: Operation not permitted > mv: /usr/jail/camel/usr/bin/passwd: Operation not permitted > mv: /usr/jail/camel/usr/bin/yppasswd: Operation not permitted > mv: /usr/jail/camel/usr/bin/rlogin: Operation not permitted > mv: /usr/jail/camel/usr/bin/rsh: Operation not permitted > mv: /usr/jail/camel/usr/bin/su: Operation not permitted > mv: /usr/jail/camel/usr/bin/crontab: Operation not permitted > mv: /usr/jail/camel/usr/bin: Directory not empty > mv: /usr/jail/camel/usr/lib/libkse.so.3: Operation not permitted > mv: /usr/jail/camel/usr/lib/librt.so.1: Operation not permitted > mv: /usr/jail/camel/usr/lib: Directory not empty > mv: /usr/jail/camel/usr/sbin/sliplogin: Operation not permitted > mv: /usr/jail/camel/usr/sbin: Directory not empty > mv: /usr/jail/camel/usr: Directory not empty > mv: /usr/jail/camel/bin/rcp: Operation not permitted > mv: /usr/jail/camel/bin: Directory not empty > mv: /usr/jail/camel/dev/fd: Operation not supported > mv: /usr/jail/camel/dev: Device busy > mv: /usr/jail/camel/lib/libc.so.7: Operation not permitted > mv: /usr/jail/camel/lib/libcrypt.so.4: Operation not permitted > mv: /usr/jail/camel/lib/libthr.so.3: Operation not permitted > mv: /usr/jail/camel/lib: Directory not empty > mv: /usr/jail/camel/libexec/ld-elf.so.1: Operation not permitted > mv: /usr/jail/camel/libexec: Directory not empty > mv: /usr/jail/camel/sbin/init: Operation not permitted > mv: /usr/jail/camel/sbin: Directory not empty > mv: /usr/jail/camel/var/empty: Operation not permitted > mv: /usr/jail/camel/var: Directory not empty > mv: /usr/jail/camel: Directory not empty > mv: /usr/jail: Directory not empty > mv: /bin/rm /usr/jail: terminated with 1 (non-zero) status > > I guess I ain't gotta worry about the sockets but what about the rest? > > Are the jails stopped? From reddvinylene at gmail.com Sat Oct 4 19:10:28 2008 From: reddvinylene at gmail.com (Redd Vinylene) Date: Sat Oct 4 19:10:40 2008 Subject: Problems moving my jails (mv: Operation not permitted) In-Reply-To: <20081004210436.N1546@wojtek.tensor.gdynia.pl> References: <20081004210436.N1546@wojtek.tensor.gdynia.pl> Message-ID: On Sat, Oct 4, 2008 at 9:04 PM, Wojciech Puchar wrote: >> mv: /usr/jail/camel/sbin: Directory not empty >> mv: /usr/jail/camel/var/empty: Operation not permitted >> mv: /usr/jail/camel/var: Directory not empty >> mv: /usr/jail/camel: Directory not empty >> mv: /usr/jail: Directory not empty >> mv: /bin/rm /usr/jail: terminated with 1 (non-zero) status >> >> I guess I ain't gotta worry about the sockets but what about the rest? >> > you need > > chflags -R noschg yourdir > So just "chflags -R /usr/jail" and then copy things the normal way? Sure that won't mess up my jails? -- http://www.home.no/reddvinylene From reddvinylene at gmail.com Sat Oct 4 19:16:33 2008 From: reddvinylene at gmail.com (Redd Vinylene) Date: Sat Oct 4 19:16:40 2008 Subject: Problems moving my jails (mv: Operation not permitted) In-Reply-To: References: <20081004210436.N1546@wojtek.tensor.gdynia.pl> Message-ID: On Sat, Oct 4, 2008 at 9:10 PM, Redd Vinylene wrote: > On Sat, Oct 4, 2008 at 9:04 PM, Wojciech Puchar > wrote: >>> mv: /usr/jail/camel/sbin: Directory not empty >>> mv: /usr/jail/camel/var/empty: Operation not permitted >>> mv: /usr/jail/camel/var: Directory not empty >>> mv: /usr/jail/camel: Directory not empty >>> mv: /usr/jail: Directory not empty >>> mv: /bin/rm /usr/jail: terminated with 1 (non-zero) status >>> >>> I guess I ain't gotta worry about the sockets but what about the rest? >>> >> you need >> >> chflags -R noschg yourdir >> > > So just "chflags -R /usr/jail" and then copy things the normal way? > Sure that won't mess up my jails? Sorry, what I meant to write was "chflags -R noschg /usr/jail". I apologize for the inconvenience. -- http://www.home.no/reddvinylene From hartzell at alerce.com Sat Oct 4 19:27:15 2008 From: hartzell at alerce.com (George Hartzell) Date: Sat Oct 4 19:27:28 2008 Subject: Problems moving my jails (mv: Operation not permitted) In-Reply-To: References: <48E7B80F.8040602@gmail.com> Message-ID: <18663.48601.45230.57747@almost.alerce.com> Redd Vinylene writes: > On Sat, Oct 4, 2008 at 8:53 PM, Redd Vinylene wrote: > > On Sat, Oct 4, 2008 at 8:40 PM, Redd Vinylene wrote: > >> On Sat, Oct 4, 2008 at 8:38 PM, Rodrigo Gonzalez wrote: > >>> > >>> Are the jails stopped? > >>> > >>> > >> > >> Yes, they are. Sorry, I should have mentioned this. > >> > >> -- > >> http://www.home.no/reddvinylene > >> > > > > Should I just do like this? > > > > cp /usr/jail/box/usr/bin/chpass /home/jail/box/usr/bin/chpass > > cp /usr/jail/box/usr/bin/chfn /home/jail/box/usr/bin/chfn > > cp /usr/jail/box/usr/bin/chsh /home/jail/box/usr/bin/chsh > > [...] > > rm -rf /usr/jail > > > > -- > > http://www.home.no/reddvinylene > > > > My bad, that's not permitted either. If you do an ls -lo /home/jail/box/usr/bin/chpass, you'll probably see the schg flag set. Man chflags for more info and instructions on how to unset it g. From reddvinylene at gmail.com Sat Oct 4 20:27:11 2008 From: reddvinylene at gmail.com (Redd Vinylene) Date: Sat Oct 4 20:27:18 2008 Subject: Problems moving my jails (mv: Operation not permitted) In-Reply-To: <18663.49808.808955.271579@almost.alerce.com> References: <48E7B80F.8040602@gmail.com> <18663.48601.45230.57747@almost.alerce.com> <18663.49808.808955.271579@almost.alerce.com> Message-ID: On Sat, Oct 4, 2008 at 9:22 PM, George Hartzell wrote: > Redd Vinylene writes: > > On Sat, Oct 4, 2008 at 9:02 PM, George Hartzell wrote: > > > > > > If you do an ls -lo /home/jail/box/usr/bin/chpass, you'll probably see > > > the schg flag set. Man chflags for more info and instructions on how > > > to unset it > > > > > > g. > > > > > > > Yes: > > > > -r-sr-xr-x 6 root wheel schg 18468 Aug 2 19:47 /usr/jail/box/usr/bin/chpass > > > > So I'd simply have to "chflags noschg /usr/jail/box/usr/bin/chpass" > > and then "cp /usr/jail/box/usr/bin/chpass > > /home/jail/box/usr/bin/chpass"? > > I think that you ought to be able to cp it as is. You're just not > allowed to change the original (e.g. remove it), which is why your mv > and rm failed. > > g. > I've been told that changing flags might seriously mess things up. Is there any way to copy the remaining files from /usr/jail into /home/jail, or do I have to rebuild everything from scratch? Much obliged. -- http://www.home.no/reddvinylene From reddvinylene at gmail.com Sat Oct 4 20:39:10 2008 From: reddvinylene at gmail.com (Redd Vinylene) Date: Sat Oct 4 20:39:22 2008 Subject: Problems moving my jails (mv: Operation not permitted) In-Reply-To: References: <48E7B80F.8040602@gmail.com> <18663.48601.45230.57747@almost.alerce.com> <18663.49808.808955.271579@almost.alerce.com> Message-ID: On Sat, Oct 4, 2008 at 10:36 PM, wrote: > > 1st of all, (re)design your system. > 2nd, create separate partition for your jail(s) > 3rd, if (I were you, and) the jail is not too complex, recreate from > scratch. (You get a clean jail :)) ) > Actually I can't do that. I use Bjoern A. Zeeb's multi-IP patch which currently doesn't compile, so. Besides my ISP charges way too much for a reinstall and I can't afford that. -- http://www.home.no/reddvinylene From lists at peter.de.com Sat Oct 4 21:14:50 2008 From: lists at peter.de.com (Oliver Peter) Date: Sat Oct 4 21:14:57 2008 Subject: Problems moving my jails (mv: Operation not permitted) In-Reply-To: References: Message-ID: <20081004211445.GE84710@nemesis.frida.mouhaha.de> On Sat, Oct 04, 2008 at 08:35:27PM +0200, Redd Vinylene wrote: > Hello hello! I need to move my jails from /usr/jail to /home/jail. The > latter is where all my diskspace is. Not all files seem to want to > move though? Maybe the whole case is worth it to give ezjail a try. The newest release has some nice features to move/backup jails. http://www.freshports.org/sysutils/ezjail/ -- Oliver PETER, email: oliver@peter.de.com, ICQ# 113969174 "If it feels good, you're doing something wrong." -- Coach McTavish From biancalana at gmail.com Sat Oct 4 21:16:59 2008 From: biancalana at gmail.com (Alexandre Biancalana) Date: Sat Oct 4 21:17:06 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: <4A5E18EB2ED142C2B97EFD5A82AA805F@mickey> References: <20081004181923.N2683@wojtek.tensor.gdynia.pl> <4A5E18EB2ED142C2B97EFD5A82AA805F@mickey> Message-ID: <8e10486b0810041351je5262fbi3bee00f47ef3bc68@mail.gmail.com> On 10/4/08, Don O'Neil wrote: > >>> I've tried an old 'bypass': sysctl kern.geom.debugflags=16, but that > >>> didn't help. > >>> > >>> Can anyone help me get this new disk installed without having to boot > >>> off a recovery CD? The server is 500 miles away from me and I don't > >>> have direct console access. > >>> > >> > >> Uhmm... This may seem silly, but did you use fdisk to create a slice > >> first before you tried partitioning? > >> > >this is NOT needed. actually i don't do it anywhere. > > > >it just may be sysinstall problem, anything else. > > > I tried using fdisk first, same problem, won't let me write to the disk. Do you will use the entire disk in one partition ? If so, just do: newfs /dev/ad4 Maybe you should to use gjournal for this large filesystem.... From lists at lizardhill.com Sat Oct 4 22:32:22 2008 From: lists at lizardhill.com (Don O'Neil) Date: Sat Oct 4 22:32:29 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: <8e10486b0810041351je5262fbi3bee00f47ef3bc68@mail.gmail.com> References: <20081004181923.N2683@wojtek.tensor.gdynia.pl> <4A5E18EB2ED142C2B97EFD5A82AA805F@mickey> <8e10486b0810041351je5262fbi3bee00f47ef3bc68@mail.gmail.com> Message-ID: <10435563D3EC45D8A9AE00AECF113945@mickey> > >>> I've tried an old 'bypass': sysctl kern.geom.debugflags=16, but > >>> that > >>> didn't help. > >>> > >>> Can anyone help me get this new disk installed without having to > boot >>> off a recovery CD? The server is 500 miles away from me and > I don't >>> have direct console access. > >>> > >> > >> Uhmm... This may seem silly, but did you use fdisk to create a > slice >> first before you tried partitioning? > >> > >this is NOT needed. actually i don't do it anywhere. > > > >it just may be sysinstall problem, anything else. > > > I tried using fdisk first, same problem, won't let me write to the disk. Do you will use the entire disk in one partition ? If so, just do: newfs /dev/ad4 Maybe you should to use gjournal for this large filesystem.... ------------ I tried newfs before, same issue: # newfs /dev/ad4 newfs: /dev/ad4: failed to open disk for writing From dan at langille.org Sat Oct 4 23:10:21 2008 From: dan at langille.org (Dan Langille) Date: Sat Oct 4 23:10:28 2008 Subject: The FreeBSD Diary: 2008-09-14 - 2008-10-04 Message-ID: <20081004231004.823B850856@nyi.unixathome.org> The FreeBSD Diary contains a large number of practical examples and how-to guides. This message is posted weekly to freebsd-questions@freebsd.org with the aim of letting people know what's available on the website. Before you post a question here it might be a good idea to first search the mailing list archives and/or The FreeBSD Diary . -- Dan Langille BSDCan - http://www.BSDCan.org/ - BSD Conference From gary at pattersonsoftware.com Sat Oct 4 23:27:03 2008 From: gary at pattersonsoftware.com (Gary Newcombe) Date: Sat Oct 4 23:27:11 2008 Subject: Problems moving my jails (mv: Operation not permitted) In-Reply-To: References: <48E7B80F.8040602@gmail.com> <18663.48601.45230.57747@almost.alerce.com> <18663.49808.808955.271579@almost.alerce.com> Message-ID: <20081005092655.7e64f180.gary@pattersonsoftware.com> On Sat, 4 Oct 2008 22:27:09 +0200, "Redd Vinylene" wrote: > On Sat, Oct 4, 2008 at 9:22 PM, George Hartzell wrote: > > Redd Vinylene writes: > > > On Sat, Oct 4, 2008 at 9:02 PM, George Hartzell wrote: > > > > > > > > If you do an ls -lo /home/jail/box/usr/bin/chpass, you'll probably see > > > > the schg flag set. Man chflags for more info and instructions on how > > > > to unset it > > > > > > > > g. > > > > > > > > > > Yes: > > > > > > -r-sr-xr-x 6 root wheel schg 18468 Aug 2 19:47 /usr/jail/box/usr/bin/chpass > > > > > > So I'd simply have to "chflags noschg /usr/jail/box/usr/bin/chpass" > > > and then "cp /usr/jail/box/usr/bin/chpass > > > /home/jail/box/usr/bin/chpass"? > > > > I think that you ought to be able to cp it as is. You're just not > > allowed to change the original (e.g. remove it), which is why your mv > > and rm failed. > > > > g. > > > > I've been told that changing flags might seriously mess things up. Is > there any way to copy the remaining files from /usr/jail into > /home/jail, or do I have to rebuild everything from scratch? Try copying the jail first as follows to retain permissions: stop the jail mkdir /usr/jail/newjail cd /usr/jail/origjail tar -cpf - . | tar -C /usr/jails/newjail -xpf - (don't worry about sockets not copying) If you want to copy the jail, change hostname, delete ssh public keys and change any other info pertinent to the jail. I just grep the hostname and ip in /etc and /usr/local/etc. Test the jail. It should work fine. If you want to remove the original jail, chflags -R noschg origjail rm -rf /usr/jail/origjail Ezjail really is very good too. You can convert your existing jails into the ezjail framework easily. Gary > > Much obliged. > > -- > http://www.home.no/reddvinylene > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" From dale.hagglund at gmail.com Sun Oct 5 00:40:11 2008 From: dale.hagglund at gmail.com (Dale Hagglund) Date: Sun Oct 5 00:40:19 2008 Subject: processes hanging in _umtx_op Message-ID: <86r66v6gsj.fsf@ponoka.ab.hsia.telus.net> While experimenting with gnuradio and latest packages for openoffice.org-3, I've run across a situation where a process hangs in the _umtx_op system call. The process can't be interrupted with SIGINT, but SIGQUIT kills it and generates a core dump. I can reproduce this reliably with $ python -c "import wx" I'm running 7.0-RELEASE-p2 with "uname -a" giving the following output, suitably wrapped. FreeBSD ponoka.ab.hsia.telus.net 7.0-RELEASE-p2 FreeBSD 7.0-RELEASE-p2 #0: Wed Jun 18 07:33:20 UTC 2008 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 I won't be at all surprised if this is some strange library compatibility problem I've introduced over time, but I'm at a loss as to how to track the problem further. I've attached the final few lines of the kdump output from the command above, and I can provide my current list of packages if necessary. Any advice or suggestions would be appreciated. Dale Hagglund ------------------------- start: kdump output ------------------------- 34453 python 1223164746.661828 CALL munmap(0x2aa00000,0xc1000) 34453 python 1223164746.661840 RET munmap 0 34453 python 1223164746.662541 CALL _umtx_op(0x283071e0,0x8,0x1,0x283071c0,0 ) 34453 python 1223164752.019372 RET _umtx_op -1 errno 4 Interrupted system c all 34453 python 1223164752.019433 PSIG SIGINT caught handler=0x80d8020 mask=0x0 code=0x0 34453 python 1223164752.019454 CALL getpid 34453 python 1223164752.019460 RET getpid 34453/0x8695 34453 python 1223164752.019471 CALL sigaction(SIGINT,0xbfbfaf3c,0xbfbfaf24) 34453 python 1223164752.019480 RET sigaction 0 34453 python 1223164752.019487 CALL sigreturn(0xbfbfafa0) 34453 python 1223164752.019497 RET sigreturn JUSTRETURN 34453 python 1223164752.019511 CALL _umtx_op(0x283071e0,0x8,0x1,0x283071c0,0 ) 34453 python 1223164752.856485 RET _umtx_op -1 errno 4 Interrupted system c all 34453 python 1223164752.856550 PSIG SIGINT caught handler=0x80d8020 mask=0x0 code=0x0 34453 python 1223164752.856571 CALL getpid 34453 python 1223164752.856577 RET getpid 34453/0x8695 34453 python 1223164752.856587 CALL sigaction(SIGINT,0xbfbfaf3c,0xbfbfaf24) 34453 python 1223164752.856597 RET sigaction 0 34453 python 1223164752.856604 CALL sigreturn(0xbfbfafa0) 34453 python 1223164752.856613 RET sigreturn JUSTRETURN 34453 python 1223164752.856628 CALL _umtx_op(0x283071e0,0x8,0x1,0x283071c0,0 ) 34453 python 1223164753.425922 RET _umtx_op -1 errno 4 Interrupted system c all 34453 python 1223164753.425984 PSIG SIGQUIT SIG_DFL 34453 python 1223164753.425997 NAMI "python.core" ------------------------- end: kdump output ------------------------- From jerrymc at msu.edu Sun Oct 5 01:19:55 2008 From: jerrymc at msu.edu (Jerry McAllister) Date: Sun Oct 5 01:20:02 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: References: Message-ID: <20081005011805.GA63673@gizmo.acns.msu.edu> On Sat, Oct 04, 2008 at 04:43:14AM -0700, Don O'Neil wrote: > I just swapped out an old 500G disk with a 1TB one and I'm trying to label > it and mount it... > > If I run bsdlabel -w ad4, I get: > > bsdlabel: Geom not found > > If I run sysinstall, it tells me that it can't write to the disk. > > I've tried an old 'bypass': sysctl kern.geom.debugflags=16, but that didn't > help. > > Can anyone help me get this new disk installed without having to boot off a > recovery CD? The server is 500 miles away from me and I don't have direct > console access. did you try doing a dd to the disk? Sometimes a new unwritten disk seems to need it. I don't know why. It is mentioned in the man page for bsdlabel - near the bottom in an example. dd f=/dev/zero of=/dev/ad4 bs=512 count=1000 or something like that. I have run in to this a couple of times in the past where the dd seemed to fix it. Anyway, it is getting near Halloween, so these mystery fixes may be appropriate... ////jerry > > Thanks!!! > > _______________________________________________ > 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 koitsu at FreeBSD.org Sun Oct 5 01:30:19 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Sun Oct 5 01:30:27 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: References: Message-ID: <20081005013016.GA71103@icarus.home.lan> On Sat, Oct 04, 2008 at 04:43:14AM -0700, Don O'Neil wrote: > I just swapped out an old 500G disk with a 1TB one and I'm trying to label > it and mount it... > > If I run bsdlabel -w ad4, I get: > > bsdlabel: Geom not found > > If I run sysinstall, it tells me that it can't write to the disk. > > I've tried an old 'bypass': sysctl kern.geom.debugflags=16, but that didn't > help. > > Can anyone help me get this new disk installed without having to boot off a > recovery CD? The server is 500 miles away from me and I don't have direct > console access. Can you provide output from dmesg, as well as "geom disk list"? -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From shinjii at exemail.com.au Sun Oct 5 02:29:28 2008 From: shinjii at exemail.com.au (shinjii@exemail.com.au) Date: Sun Oct 5 02:29:35 2008 Subject: Error Compiling qt4-designer Message-ID: <57267.58.96.43.196.1223172528.squirrel@webmail.exetel.com.au> Im running AMD64 FreeBSD7.1-PreRelease on KDE4.1.2, so far everything in upgrading was successful apart from the below issue .. any ideas/thoughts ? +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ../../../shared/qtgradienteditor/qtgradientstopsmodel.cpp:482: error: expected constructor, destructor, or type conversion at end of input *** Error code 1 2 errors *** Error code 2 1 error *** Error code 2 1 error *** Error code 2 pkg_create: pkg_perform: unable to open contents file '/usr/ports/devel/qt4-designer/work/.PLIST.mktmp' for input *** Error code 2 1 error *** Error code 2 1 error *** Error code 2 1 error *** Error code 2 3 errors From mike.gordon at primus.ca Sun Oct 5 04:31:38 2008 From: mike.gordon at primus.ca (mike gordon) Date: Sun Oct 5 04:31:45 2008 Subject: Websphere, Technology, HR, Oracle, Exchange, Dynamics, SQl, Technology, AJAX, AS400 , .NET, IBM customer lists Message-ID: This email is to introduce our company Repharm and the services we offer. An international leader of sales and marketing database products for high technology businesses. Repharm provides installed customer lists for companies such as Oracle, PeopleSoft, Siebel, etc. Our lists are continuously maintained to ensure the highest level of accuracy and completeness. We have hundreds of industry leaders as customers today - many whose names you would recognize. If you are interested, we could send you a sample of one of our lists complete with summary information, so that you could evaluate our content. To find out about the various lists we have available, in preparation for any sales or marketing campaigns that your organization may be considering in future, we'd love to hear from you. Or, perhaps you'd be interested in acquiring your competitors' customer lists? If you would like more information, please contact us at (905) 721-8456 or email us at repharm1@aol.com Below are just some of the lists available: ERP (ENTERPRISE RESOURCE PLANNING): Baan JD Edwards Lawson Made2Manage Mapics Marcam Oracle Peoplesoft SAP SSA E-BUSINESS APPLICATIONS: Ariba BMC BroadVision Commerce One Webtrends MIDDLEWARE/CONNECTIVITY/APP SERVERS/WEB SERVERS: Bea Systems Iona Unisys OPERATING SYSTEMS/HARDWARE/SOFTWARE: COMPAQ HP 3000 HP 9000 HP-UX IBM AS/400 IBM OS/390 Lotus Notes Microsoft Sun Microsystems DATABASE: DB2 FileMaker Informix Oracle SQL SybaseCRM (CUSTOMER RELATIONSHIP MANAGEMENT): Clarify E.piphany HNC Onyx Pivotal Siebel Vantive Xchange SUPPLY CHAIN: Agile i2 Technologies Manugistics QAD Webplan COMMUNICATIONS: Nortel Cisco 3com Siemens Alcatel Telecom Vars ASP's CLECS ISP's E-COMMERCE: Dot Com Directory Consultant Directory Software Directory EXECUTIVE DIRECTORIES: Chief Executive Officer Chief Financial Officer Chief Information Officer Engineering Human Resources Purchasing Sales/Marketing INDUSTRY SPECIFIC LISTS: Agriculture, Forestry and Fishing, Communications, Construction, Finance, Insurance and Real Estate, Manufacturing, Mining, Public Administration, Retail Trade, Services, Transportation, Utilities, Wholesale Trade From que_deseja at hotmail.com Sun Oct 5 05:57:11 2008 From: que_deseja at hotmail.com (Desmond Chapman) Date: Sun Oct 5 05:57:18 2008 Subject: linux kernel question Message-ID: What linux kernel is the debian bsd emulating? Is it a 2.6.x or still a 2.4.x? And, since this crosses mailing lists, has anyone tried a virtualbox build on the debian kFreeBSD project? Will the FreeBSD project bring back linux emulation with Debian or is it going to remain unsupported? _________________________________________________________________ Want to do more with Windows Live? Learn ?10 hidden secrets? from Jamie. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008 From k0802647 at telus.net Sun Oct 5 07:32:43 2008 From: k0802647 at telus.net (Carl) Date: Sun Oct 5 07:32:50 2008 Subject: Intel S3210SHLC motherboard and FreeBSD 7.0 In-Reply-To: <20081003084003.GC23663@icarus.home.lan> References: <48E5C290.3000208@telus.net> <20081003083756.GA23663@icarus.home.lan> <20081003084003.GC23663@icarus.home.lan> Message-ID: <48E86D98.1080801@telus.net> Jeremy Chadwick wrote: > On Fri, Oct 03, 2008 at 01:37:56AM -0700, Jeremy Chadwick wrote: >> 2) BIOS: Thermal monitoring > > I should be more precise: I'm referring to things like fan speed > auto-slowdown or PWM. These boards often offer numerous methods of > throttling fans and other features. I *did* make some BIOS setting changes within the time frame of the unexpected reset-equals-power-cycle events, but I didn't notice whether there was a correlation. As regards getting USB flash thumb drives to boot, a new thumb drive, lots of reading and experimenting with obscure applications, and I've successfully got Damn Small Linux to boot with the aid of UNetbootin. FreeBSD 7.0 still won't boot, but I appear to have stumbled over a UNetbootin bug that FreeBSD probably can't be blamed for: https://bugs.launchpad.net/unetbootin/+bug/272219 That unfortunately leaves me still wondering whether the motherboard and/or that SATA DVD drive are compatible with FreeBSD 7.0 or not. Can anyone point me to instructions on how to create a FreeBSD 7.0 install USB thumb drive without the aid of UNetbootin? I've found bits and pieces on the 'net, but nothing complete. Surprising, actually, when you think about it. No one else out there with experience combining the Intel S3210SHLC motherboard and FreeBSD? Carl / K0802647 From unga888 at yahoo.com Sun Oct 5 08:03:36 2008 From: unga888 at yahoo.com (Unga) Date: Sun Oct 5 08:03:42 2008 Subject: make buildkernel error In-Reply-To: <704489.78698.qm@web57004.mail.re3.yahoo.com> Message-ID: <37524.93110.qm@web57003.mail.re3.yahoo.com> --- On Sat, 10/4/08, Unga wrote: > I'm getting following compile error for > /usr/src/sys/i386/i386/genassym.c : > cc1: error: unrecognized command line option > "-mno-align-long-strings" > cc1: error: unrecognized command line option > "-fformat-extensions" > *** Error code 1 > I found in /usr/src/gnu/usr.bin/cc/cc_tools/i386-freebsd.opt: mno-align-long-strings Target RejectNegative Report Mask(NO_ALIGN_LONG_STRINGS) Do not align long strings specially What does FreeBSD mean by "Do not align long strings specially"? Best regards Unga From k0802647 at telus.net Sun Oct 5 08:26:39 2008 From: k0802647 at telus.net (Carl) Date: Sun Oct 5 08:26:47 2008 Subject: Cannot create custom FreeBSD 7.0 install CD for serial console In-Reply-To: <48E3DCB1.3010009@telus.net> References: <48E345AF.6050409@telus.net> <20081001112826.GA20013@icarus.home.lan> <48E3DCB1.3010009@telus.net> Message-ID: <48E87A3D.8030302@telus.net> On Thu Oct 2 06:59:47 UTC 2008 Jonathan McKeown wrote: > On a system running 6.2-RELEASE, with a 6.2-RELEASE Disc 1 in the CD drive but > not mounted: > > mkdir serialcd > > tar xvfC /dev/acd0 serialcd > > These two commands created a directory tree in serialcd containing most of the > contents of the CD. There was a ``tar ignoring out-of-order file'' error, and > when I mounted the CD and ran > > diff -qr /cdrom serialcd > > it reported that RELNOTES.TXT differed - in fact the version in the serialcd > directory turned out to have zero length. [I suspect you could probably do > this comparison quicker with mtree, and I never did bother to fix it or find > out why it was happening] Thanks, Jonathan. So I've redone the process again. I'm working from the original ISO image instead of a physical CD copy of it, so I utilize step 4 from Jeremy Chadwick's document (http://jdc.parodius.com/freebsd/pxeboot_serial_install.html) to make the initial directory tree. There are no tar error messages. > I edited serialcd/boot/loader.conf to include the line > > console="comconsole" I did exactly that, although I also tried adding the following lines instead on a separate attempt: boot_multicons="NO" boot_serial="YES" comconsole_speed="115200" console="comconsole" > I then ran > > mkisofs -J -r -b boot/cdboot -no-emul-boot -o serialcd.iso serialcd > > and got an ISO image, serial.iso, which is about 600MB. Your switches are a little different from my original procedure, so this time I used yours. > The only drawback with this method is that the serial console only cuts in > just before the boot menu. I suspect that if you wanted to have a serial > console for every stage of the boot you would need to mess about with the > ramdisk image on the CD. So creating a boot.config in the root of the CD image cannot be used the way it is for a hard drive installation in order to solve that problem? Anyway, I didn't create a boot.config this time, so I should have ended up with a 7.0 equivalent of your 6.2 serialcd.iso, which I then burned and tried. End result? Abject failure again. All boot stages still use the internal console. Just after "Loading /boot/defaults/loader.conf" appears, there is a *very* long pause added as compared with the unmodified install CD. Eventually it resumes. Don't know why that's happening. Carl / K0802647 From Ludovit_Koren at tempest.sk Sun Oct 5 08:42:22 2008 From: Ludovit_Koren at tempest.sk (Ludovit Koren) Date: Sun Oct 5 08:42:29 2008 Subject: HP DL servers Message-ID: <20081005.102619.40572501.koren@tempest.sk> Hi, I would like to buy HP servers DL 320 G5p or DL 360 G5p. I googled but did not find clear answer if the NICs and disk controllers are supported in FreeBSD 7.x. I read about some problems with NIC in DL 360 but it was not actual and I am not sure about disk controller in DL 320. Any personal recommendations and experience with the servers are welcomed. Thank you very much in advance. Regards, lk From CQG00620 at nifty.ne.jp Sun Oct 5 08:48:44 2008 From: CQG00620 at nifty.ne.jp (WATANABE Kazuhiro) Date: Sun Oct 5 08:48:52 2008 Subject: Canon Pixma iP4500 - problem with colours In-Reply-To: <200810011546.29798.jmc-freebsd2@milibyte.co.uk> References: <200810011546.29798.jmc-freebsd2@milibyte.co.uk> Message-ID: <20081005083034.1F6E65FC50@mail.asahi-net.or.jp> Hello, At Wed, 1 Oct 2008 15:46:29 +0100, Mike Clarke wrote: > I've just installed a Canon Pixma iP4500 on a 6.3 system using CUPS and > gutenprint. Black printing is fine but I've got problems with colours. > The colour wheel on the CUPS test page comes out as a psychedelic > collection of brightly coloured rings. If I print from gimp then the > correct colours appear but they are very dark and "muddy". The colours > start to look a bit more reasonable from the gimp if I push the gamma > value up to 2. > > This isn't a physical problem with the printer, I get good results when > printing from Windows. > > Should I be able to get correct colour rendering "out of the box" or do > I have to fiddle about with the multitude of output control adjustments > available on the CUPS admin panel? > > Or should I be using something other than CUPS, that's what I've always > used so far but I'm happy to try alternatives if necessary. I've used Canon MP810 with CUPS and "IJ Printer Driver" for Linux (supplied by Canon) on FreeBSD. Canon doesn't supply the printer driver for MP810, but I've been able to use the printer with the driver for MP610. These printer specs are very similar. I don't use the printer from FreeBSD so many time, but printing an web page from firefox and the "Print Test Page" from http://localhost:631/ are fine. That color print has no defferences between the Windows's one. So you will be able to use Canon iP4500 (and MP610/MP520/iP3500) with the procedure below [1]. 1. Installng necessary ports 1.1. For the PS to Canon IJ filter print/cups emulators/linux_base-fc4 graphics/linux-jpeg graphics/linux-png graphics/linux-tiff archivers/rpm2cpio 1.2. For compiling the Canon CUPS filter devel/autotools devel/gmake shells/bash 2. Read /usr/ports/print/cups-base/pkg-message, and set some necessary settings. 3. Set the following lines to /etc/rc.conf: linux_enable="YES" cupsd_enable="YES" 4. Download the IJ Printer Driver Ver.2.80 for Linux The following two archives are required: IJ Printer Driver Ver. 2.80 for Linux (rpm Package for iP4500 series) cnijfilter-ip4500series-2.80-1.i386.rpm IJ Printer Driver Ver. 2.80 for Linux (Source file) cnijfilter-common-2.80-1.tar.gz These archives are available at the following sites: Canon Australia - Drivers http://www.canon.com.au/drivers/ Canon Singapore - Support & Download Search http://support-asia.canon-asia.com/ Canon in Japan - "Software Download - Other OSes" (in Japanese) http://cweb.canon.jp/drv-upd/bj/other.html#linux 5. Installing the binary package for iP4500, and a printing test 5.1. Install $ mkdir ip4500 # working directory $ cd ip4500 $ rpm2cpio /PATH/TO/cnijfilter-ip4500series-2.80-1.i386.rpm | cpio -ivd $ su Password: # cp -Ri ./usr /compat/linux/ # /compat/linux/sbin/ldconfig -r /compat/linux 5.2. Printing test (ASCII text) It uses a2ps (ports/print/a2ps-a4). $ su Password: # a2ps -B --borders=no ascii-text.txt | \ gs -q -r600 -dSAFER -dNOPAUSE -dBATCH -sDEVICE=ppmraw -sOutputFile=- - | \ /compat/linux/usr/local/bin/cifip4500 --imageres 600 --media plain > \ /dev/ulpt0 6. Compiling the Canon CUPS filter, and a printing test 6.1. Compile Extract the common source archive, and apply a patch: http://homepage2.nifty.com/dumb_show/unix/cnijfilter-common-2.80-freebsd.diff The patch file is not my original. I got a patch for "Canon Inkjet Print Filter Ver.2.60 for Linux" from http://tabochan.f2g.net/pixus.html (currently the site is down) and modified it for 2.70 and 2.80. Then compile and install the necessary (not all) program. $ mkdir common # working directory $ cd common $ tar zxvf /PATH/TO/cnijfilter-common-2.80-1.tar.gz $ patch < /PATH/TO/cnijfilter-common-2.80-freebsd.diff $ cd cnijfilter-common-2.80/libs $ ./autogen.sh $ gmake $ cd ../pstocanonij $ ./autogen.sh $ gmake $ cd ../ $ su Password: # cp -i pstocanonij/filter/pstocanonij /usr/local/libexec/cups/filter/ # cp -i ppd/*.ppd /usr/local/share/cups/model/ 6.2. Printing test Register the printer. $ su Password: # /usr/local/etc/rc.d/cupsd restart # lpadmin -p PIXUSIP4500 -m canonip4500.ppd -v usb:/dev/ulpt0 -E Finally visit http://localhost:631/ with an web browser, and click "Printers" -> "Print Test Page". [1] The original text was posted to the FreeBSD Japansese mailing list. http://www.mail-archive.com/freebsd-users-jp@jp.freebsd.org/msg02592.html --- WATANABE Kazuhiro (CQG00620@nifty.ne.jp) From edwin at mavetju.org Sun Oct 5 09:02:37 2008 From: edwin at mavetju.org (Edwin Groothuis) Date: Sun Oct 5 09:02:46 2008 Subject: gmirror prerequisite question In-Reply-To: <946647.40848.qm@web51103.mail.re2.yahoo.com> Message-ID: <20081005084801.GA47322@mavetju.org> Today I mirrored my new harddisk with the instructions at http://www.freebsddiary.org/gmirror.php Right now I'm synchronized up to 65% :-) Edwin -- Edwin Groothuis Website: http://www.mavetju.org/ edwin@mavetju.org Weblog: http://www.mavetju.org/weblog/ From edwin at mavetju.org Sun Oct 5 09:07:37 2008 From: edwin at mavetju.org (Edwin Groothuis) Date: Sun Oct 5 09:07:50 2008 Subject: Utility to extract iso files without burning In-Reply-To: <200810032028.45073.shinjii@maydias.com> Message-ID: <20081005085105.GA47348@mavetju.org> Use tar. Simple FreeBSD tar, it's good for everything. -- Edwin Groothuis Website: http://www.mavetju.org/ edwin@mavetju.org Weblog: http://www.mavetju.org/weblog/ From wojtek at wojtek.tensor.gdynia.pl Sun Oct 5 09:08:07 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Sun Oct 5 09:08:15 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: <10435563D3EC45D8A9AE00AECF113945@mickey> References: <20081004181923.N2683@wojtek.tensor.gdynia.pl> <4A5E18EB2ED142C2B97EFD5A82AA805F@mickey> <8e10486b0810041351je5262fbi3bee00f47ef3bc68@mail.gmail.com> <10435563D3EC45D8A9AE00AECF113945@mickey> Message-ID: <20081005110745.T5124@wojtek.tensor.gdynia.pl> >> >> >> I tried using fdisk first, same problem, won't let me write to the disk. > > Do you will use the entire disk in one partition ? If so, just do: > newfs /dev/ad4 > yes you can. i actually do this From frank.cam at webprophets.net.au Sun Oct 5 09:32:24 2008 From: frank.cam at webprophets.net.au (frank.cam@webprophets.net.au) Date: Sun Oct 5 09:32:32 2008 Subject: CARP issue with 2 Masters Message-ID: <1223198445.48e886ede1ea7@webmail.webprophets.net.au> Hi I have CARP running on a master and a slave server and for some unknown reason the slave continues to classify itself as a master, even though the advskew is higher than on the master. It appears that queries sent to the CARP ip address go to the master 50% of the time and the slave 50% of the time when both servers are up. This plays havoc with my databases as I synchronise them asynchronously. When I take the carp interface down on the slave using 'ifconfig carp0 down && ifconfig carp0 up' it lists it's status as 'backup' for about 10 seconds and then goes back to 'master'. Both servers run identical versions of FreeBSD 7.0 with all the same installed ports on identical hardware. The kernel has the following differences from the standard amd64 kernel: ident DBKERNEL options SCHED_ULE device carp The standard kernel includes "options PREEMPTION" which is mentioned as a possible problem in the handbook with the slave not relinquishing the ip address when the master comes back, but that's not exactly what I'm getting here. Here are the relevant setup details for the boxes. MASTER uname -a FreeBSD dbmaster.xxx.net 7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5 #1: Fri Oct 3 13:54:35 EST 2008 xxx@dbmaster.xxx.net:/usr/obj/usr/src/sys/DBKERNEL amd64 /etc/rc.conf ifconfig_em2="inet 192.168.2.11 netmask 255.255.255.248" cloned_interfaces="carp0" ifconfig_carp0="vhid 1 pass mypassword 192.168.2.10/29" ifconfig em2: flags=8943 metric 0 mtu 1500 options=9b ether 00:14:22:20:b0:dc inet 192.168.2.11 netmask 0xfffffff8 broadcast 192.168.2.15 media: Ethernet autoselect (100baseTX ) status: active carp0: flags=49 metric 0 mtu 1500 inet 192.168.2.10 netmask 0xfffffff8 carp: MASTER vhid 1 advbase 1 advskew 0 SLAVE uname -a FreeBSD dbslave.xxx.net 7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5 #1: Fri Oct 3 13:54:42 EST 2008 xxx@dbslave.xxx.net:/usr/obj/usr/src/sys/DBKERNEL amd64 /etc/rc.conf ifconfig_em2="inet 192.168.2.12 netmask 255.255.255.248" cloned_interfaces="carp0" ifconfig_carp0="vhid 1 advskew 200 pass mypassword 192.168.2.10/29" ifconfig em2: flags=8843 metric 0 mtu 1500 options=9b ether 00:14:22:1d:15:d0 inet 192.168.2.12 netmask 0xfffffff8 broadcast 192.168.2.15 media: Ethernet autoselect (100baseTX ) status: active carp0: flags=49 metric 0 mtu 1500 inet 192.168.2.10 netmask 0xfffffff8 carp: MASTER vhid 1 advbase 1 advskew 200 With the advskew on the 'slave', I've tried values of 100, 200, 230, 240 and 250 with no difference in performance. I've also tried ifconfig_carp0="vhid 1 advskew 200 pass mypassword backup 192.168.2.10/29" on the slave but this simply locks it into INIT. I can't figure out if I missed a step in the documentation, made a silly mistake in my setup, or found a bug. Any help would be greatly appreciated. Thank you -------------------------------------------------------------------- Come and visit Web Prophets Website at http://www.webprophets.net.au From m.seaman at infracaninophile.co.uk Sun Oct 5 10:11:45 2008 From: m.seaman at infracaninophile.co.uk (Matthew Seaman) Date: Sun Oct 5 10:11:52 2008 Subject: CARP issue with 2 Masters In-Reply-To: <1223198445.48e886ede1ea7@webmail.webprophets.net.au> References: <1223198445.48e886ede1ea7@webmail.webprophets.net.au> Message-ID: <48E892D2.6050409@infracaninophile.co.uk> frank.cam@webprophets.net.au wrote: > I have CARP running on a master and a slave server and for some unknown reason > the slave continues to classify itself as a master, even though the advskew is > higher than on the master. > It appears that queries sent to the CARP ip address go to the master 50% of the > time and the slave 50% of the time when both servers are up. This plays havoc > with my databases as I synchronise them asynchronously. > > When I take the carp interface down on the slave using 'ifconfig carp0 down && > ifconfig carp0 up' it lists it's status as 'backup' for about 10 seconds and > then goes back to 'master'. Have you by any chance firewalled out the multicast packets that CARP uses to test for interface death? If either one of a CARP pair can't see CARP packets frequently enough it will think the other is down and promote itself to master. If your firewall is blocking, then add a rule like this on both machines: pass quick on $ext_if proto carp \ from $ext_if:network to $carp_mcast keep state $carp_mcast is defined as "224.0.0.18" 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: 258 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081005/c5b126e7/signature.pgp From 000.fbsd at quip.cz Sun Oct 5 10:19:22 2008 From: 000.fbsd at quip.cz (Miroslav Lachman) Date: Sun Oct 5 10:19:35 2008 Subject: Problems moving my jails (mv: Operation not permitted) In-Reply-To: <20081005154926.V49572@sola.nimnet.asn.au> References: <48E7B80F.8040602@gmail.com> <18663.48601.45230.57747@almost.alerce.com> <18663.49808.808955.271579@almost.alerce.com> <20081005154926.V49572@sola.nimnet.asn.au> Message-ID: <48E890F5.70800@quip.cz> Ian Smith wrote: > On Sat, 4 Oct 2008, Redd Vinylene wrote: > > On Sat, Oct 4, 2008 at 9:22 PM, George Hartzell wrote: > > > Redd Vinylene writes: > > > > On Sat, Oct 4, 2008 at 9:02 PM, George Hartzell wrote: > > > > > > > > > > If you do an ls -lo /home/jail/box/usr/bin/chpass, you'll probably see > > > > > the schg flag set. Man chflags for more info and instructions on how > > > > > to unset it > > > > > > > > > > g. > > > > > > > > > > > > > Yes: > > > > > > > > -r-sr-xr-x 6 root wheel schg 18468 Aug 2 19:47 /usr/jail/box/usr/bin/chpass > > > > > > > > So I'd simply have to "chflags noschg /usr/jail/box/usr/bin/chpass" > > > > and then "cp /usr/jail/box/usr/bin/chpass > > > > /home/jail/box/usr/bin/chpass"? > > > > > > I think that you ought to be able to cp it as is. You're just not > > > allowed to change the original (e.g. remove it), which is why your mv > > > and rm failed. > > > > > > g. > > > > > > > I've been told that changing flags might seriously mess things up. Is > > there any way to copy the remaining files from /usr/jail into > > /home/jail, or do I have to rebuild everything from scratch? > > Having read the thread to date, I reckon you should: > > a) find(1) all schg files in your jails (was chpass the only one?) > b) clear the schg flag on any such found as above (-R if you like) > c) use mv as you originally intended (if they're still there :) > d) chflags schg on all files that were originally set that way. > > If you do use cp instead of mv, make sure to use cp -p to preserve > each file's owner/group/permissions/datestamp. > > e) make sure any and all symlinks still point to the right file/s. > > Personally I'd use cp -pR rather than mv in case I stuffed it up :) but > then being perhaps overcautious I'd have started off with a 'ls -lR > /usr/jail > listfile' (if I hadn't made a backup tar) to at least have a > full list of what was where, with what user/perms etc .. > > Also read cp(1) re -R flag carefully .. if there are any hard linked > files, as there may well be, then using tar to move these would be > the safest bet anyway - plus you'd have a backup .. next time anyway :) > > Since it just failed to mv some files, you shouldn't need to rebuild if > you can mv those files and reset their flags/permissions correctly. Yes, there are hardlinks, so "the best" way to move all files with preserving flags, permissions, links etc is something like this: [copy jails by tar (or use cpio if you prefer)] tar -cf - -C /usr/jail . | tar -xpf - -C /home/jail [remove flags from old jail files] chflags -R noschg /usr/jail [remove old jail files] rm -r /usr/jail But it applies only in case before you use chflags -R noschg on original files (as you post earlier - now you do not have flags anymore) Another way is to use getfacl/setfacl or mtree to get backup of original files permissions and restore them later. Miroslav Lachman From fazaeli at sepehrs.com Sun Oct 5 10:24:24 2008 From: fazaeli at sepehrs.com (H.fazaeli) Date: Sun Oct 5 10:24:34 2008 Subject: HP DL servers In-Reply-To: <20081005.102619.40572501.koren@tempest.sk> References: <20081005.102619.40572501.koren@tempest.sk> Message-ID: <48E892D1.60104@sepehrs.com> HP servers usually have NICs with broadcom or intel chipsets which are recognized as bge and em under freebsd and work great. We have the following configurations and they work fine: - freebsd 6.3 on dl320G5 with on-board broadcom network chipset and SATA HDDs. We had problems with hardware RAID and used geom to impl. RAID functionality. - freebsd 6.3 on dl380G5 with SAS HDDs. Hardware RAID controller is recognized by 6.3 and works. Ludovit Koren wrote: > Hi, > > I would like to buy HP servers DL 320 G5p or DL 360 G5p. I googled but > did not find clear answer if the NICs and disk controllers are > supported in FreeBSD 7.x. I read about some problems with NIC in DL > 360 but it was not actual and I am not sure about disk controller > in DL 320. > > Any personal recommendations and experience with the servers are > welcomed. > > Thank you very much in advance. > > Regards, > > lk > _______________________________________________ > 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" > > > -- Best regards. Hooman Fazaeli Sepehr S. T. Co. Ltd. Web: http://www.sepehrs.com Tel: (9821)88975701-2 Fax: (9821)88983352 From koitsu at FreeBSD.org Sun Oct 5 10:41:53 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Sun Oct 5 10:41:59 2008 Subject: Cannot create custom FreeBSD 7.0 install CD for serial console In-Reply-To: <48E87A3D.8030302@telus.net> References: <48E345AF.6050409@telus.net> <20081001112826.GA20013@icarus.home.lan> <48E3DCB1.3010009@telus.net> <48E87A3D.8030302@telus.net> Message-ID: <20081005104151.GA82084@icarus.home.lan> On Sun, Oct 05, 2008 at 01:26:37AM -0700, Carl wrote: > On Thu Oct 2 06:59:47 UTC 2008 Jonathan McKeown wrote: >> On a system running 6.2-RELEASE, with a 6.2-RELEASE Disc 1 in the CD >> drive but not mounted: >> >> mkdir serialcd >> >> tar xvfC /dev/acd0 serialcd >> >> These two commands created a directory tree in serialcd containing most >> of the contents of the CD. There was a ``tar ignoring out-of-order >> file'' error, and when I mounted the CD and ran >> >> diff -qr /cdrom serialcd >> >> it reported that RELNOTES.TXT differed - in fact the version in the >> serialcd directory turned out to have zero length. [I suspect you could >> probably do this comparison quicker with mtree, and I never did bother >> to fix it or find out why it was happening] > > Thanks, Jonathan. So I've redone the process again. I'm working from the > original ISO image instead of a physical CD copy of it, so I utilize > step 4 from Jeremy Chadwick's document > (http://jdc.parodius.com/freebsd/pxeboot_serial_install.html) to make > the initial directory tree. There are no tar error messages. > >> I edited serialcd/boot/loader.conf to include the line >> >> console="comconsole" > > I did exactly that, although I also tried adding the following lines > instead on a separate attempt: > > boot_multicons="NO" > boot_serial="YES" > comconsole_speed="115200" > console="comconsole" > >> I then ran >> >> mkisofs -J -r -b boot/cdboot -no-emul-boot -o serialcd.iso serialcd >> >> and got an ISO image, serial.iso, which is about 600MB. > > Your switches are a little different from my original procedure, so this > time I used yours. > >> The only drawback with this method is that the serial console only cuts >> in just before the boot menu. I suspect that if you wanted to have a >> serial console for every stage of the boot you would need to mess about >> with the ramdisk image on the CD. > > So creating a boot.config in the root of the CD image cannot be used the > way it is for a hard drive installation in order to solve that problem? Correct. It has to "be done differently", since the bootstraps used from the CD are different than those on a hard disk. I choose not to use the loader.conf variables because I feel they get read "too late" into the boot process. For the record, I've never done a CD-based install via serial. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From koitsu at FreeBSD.org Sun Oct 5 10:43:07 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Sun Oct 5 10:43:14 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: <20081005110745.T5124@wojtek.tensor.gdynia.pl> References: <20081004181923.N2683@wojtek.tensor.gdynia.pl> <4A5E18EB2ED142C2B97EFD5A82AA805F@mickey> <8e10486b0810041351je5262fbi3bee00f47ef3bc68@mail.gmail.com> <10435563D3EC45D8A9AE00AECF113945@mickey> <20081005110745.T5124@wojtek.tensor.gdynia.pl> Message-ID: <20081005104253.GB82084@icarus.home.lan> On Sun, Oct 05, 2008 at 11:07:58AM +0200, Wojciech Puchar wrote: >>> >>> >>> I tried using fdisk first, same problem, won't let me write to the disk. >> >> Do you will use the entire disk in one partition ? If so, just do: >> newfs /dev/ad4 >> > yes you can. i actually do this Isn't this what's called "Dangerously Dedicated" mode, and is considered "very risky behaviour" on FreeBSD nowadays? I would be wary of doing it that way. Using slices is the preferred method, e.g. newfs /dev/ad4s1a. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From jmc-freebsd2 at milibyte.co.uk Sun Oct 5 10:46:11 2008 From: jmc-freebsd2 at milibyte.co.uk (Mike Clarke) Date: Sun Oct 5 10:46:18 2008 Subject: Canon Pixma iP4500 - problem with colours In-Reply-To: <20081003165727.GA31034@slackbox.xs4all.nl> References: <200810011546.29798.jmc-freebsd2@milibyte.co.uk> <200810031604.47290.jmc-freebsd2@milibyte.co.uk> <20081003165727.GA31034@slackbox.xs4all.nl> Message-ID: <200810051146.07343.jmc-freebsd2@milibyte.co.uk> On Friday 03 October 2008, Roland Smith wrote: > I can't spot anything suspicous in that. Maybe you should try a > gutenprint mailing-list/forum. I've tried a couple of gutenprint and CUPS lists but no responses yet apart from a recommendation to use Linux Turboprint. Out of curiosity I've tried the Pixma IP4500 on a Linux system (Fedora fc9) but the supplied foomatic driver just spat out blank pages. Turboprint produced excellent results but there's no FreeBSD version and I expect getting it to run under Linux emulation would be difficult or even impossible. -- Mike Clarke From koitsu at FreeBSD.org Sun Oct 5 10:47:27 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Sun Oct 5 10:47:34 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: <20081005104253.GB82084@icarus.home.lan> References: <20081004181923.N2683@wojtek.tensor.gdynia.pl> <4A5E18EB2ED142C2B97EFD5A82AA805F@mickey> <8e10486b0810041351je5262fbi3bee00f47ef3bc68@mail.gmail.com> <10435563D3EC45D8A9AE00AECF113945@mickey> <20081005110745.T5124@wojtek.tensor.gdynia.pl> <20081005104253.GB82084@icarus.home.lan> Message-ID: <20081005104725.GA82205@icarus.home.lan> On Sun, Oct 05, 2008 at 03:42:53AM -0700, Jeremy Chadwick wrote: > On Sun, Oct 05, 2008 at 11:07:58AM +0200, Wojciech Puchar wrote: > >>> > >>> > >>> I tried using fdisk first, same problem, won't let me write to the disk. > >> > >> Do you will use the entire disk in one partition ? If so, just do: > >> newfs /dev/ad4 > >> > > yes you can. i actually do this > > Isn't this what's called "Dangerously Dedicated" mode, and is considered > "very risky behaviour" on FreeBSD nowadays? > > I would be wary of doing it that way. Using slices is the preferred > method, e.g. newfs /dev/ad4s1a. Specific details are covered in the FAQ: http://www.freebsd.org/doc/en/books/faq/disks.html#DANGEROUSLY-DEDICATED The bottom line should be obvious: do not use this method. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From jmc-freebsd2 at milibyte.co.uk Sun Oct 5 11:14:44 2008 From: jmc-freebsd2 at milibyte.co.uk (Mike Clarke) Date: Sun Oct 5 11:14:51 2008 Subject: Canon Pixma iP4500 - problem with colours In-Reply-To: <20081005083034.1F6E65FC50@mail.asahi-net.or.jp> References: <200810011546.29798.jmc-freebsd2@milibyte.co.uk> <20081005083034.1F6E65FC50@mail.asahi-net.or.jp> Message-ID: <200810051214.41042.jmc-freebsd2@milibyte.co.uk> On Sunday 05 October 2008, WATANABE Kazuhiro wrote: > I've used Canon MP810 with CUPS and "IJ Printer Driver" for Linux > (supplied by Canon) on FreeBSD. > > Canon doesn't supply the printer driver for MP810, but I've been able > to use the printer with the driver for MP610. These printer specs > are very similar. > > I don't use the printer from FreeBSD so many time, but printing an > web page from firefox and the "Print Test Page" from > http://localhost:631/ are fine. That color print has no defferences > between the Windows's one. > > > So you will be able to use Canon iP4500 (and MP610/MP520/iP3500) with > the procedure below [1]. [snip] Thanks very much for this clearly detailed explanation of how to install the linux driver. This looks very promising and I'll certainly give it a try. I may have to put this task to one side while I deal with some other jobs but I've downloaded the files and filed your email for reference - I'll report back when I've tried it. -- Mike Clarke From reddvinylene at gmail.com Sun Oct 5 11:23:15 2008 From: reddvinylene at gmail.com (Redd Vinylene) Date: Sun Oct 5 11:23:22 2008 Subject: Problems moving my jails (mv: Operation not permitted) In-Reply-To: <48E890F5.70800@quip.cz> References: <18663.48601.45230.57747@almost.alerce.com> <18663.49808.808955.271579@almost.alerce.com> <20081005154926.V49572@sola.nimnet.asn.au> <48E890F5.70800@quip.cz> Message-ID: Yes, this worked perfectly. Thank y'all so much. May this post be of help to others in the future as well. -- http://www.home.no/reddvinylene From smithi at nimnet.asn.au Sun Oct 5 05:31:49 2008 From: smithi at nimnet.asn.au (Ian Smith) Date: Sun Oct 5 11:32:01 2008 Subject: Problems moving my jails (mv: Operation not permitted) In-Reply-To: References: <48E7B80F.8040602@gmail.com> <18663.48601.45230.57747@almost.alerce.com> <18663.49808.808955.271579@almost.alerce.com> Message-ID: <20081005154926.V49572@sola.nimnet.asn.au> On Sat, 4 Oct 2008, Redd Vinylene wrote: > On Sat, Oct 4, 2008 at 9:22 PM, George Hartzell wrote: > > Redd Vinylene writes: > > > On Sat, Oct 4, 2008 at 9:02 PM, George Hartzell wrote: > > > > > > > > If you do an ls -lo /home/jail/box/usr/bin/chpass, you'll probably see > > > > the schg flag set. Man chflags for more info and instructions on how > > > > to unset it > > > > > > > > g. > > > > > > > > > > Yes: > > > > > > -r-sr-xr-x 6 root wheel schg 18468 Aug 2 19:47 /usr/jail/box/usr/bin/chpass > > > > > > So I'd simply have to "chflags noschg /usr/jail/box/usr/bin/chpass" > > > and then "cp /usr/jail/box/usr/bin/chpass > > > /home/jail/box/usr/bin/chpass"? > > > > I think that you ought to be able to cp it as is. You're just not > > allowed to change the original (e.g. remove it), which is why your mv > > and rm failed. > > > > g. > > > > I've been told that changing flags might seriously mess things up. Is > there any way to copy the remaining files from /usr/jail into > /home/jail, or do I have to rebuild everything from scratch? Having read the thread to date, I reckon you should: a) find(1) all schg files in your jails (was chpass the only one?) b) clear the schg flag on any such found as above (-R if you like) c) use mv as you originally intended (if they're still there :) d) chflags schg on all files that were originally set that way. If you do use cp instead of mv, make sure to use cp -p to preserve each file's owner/group/permissions/datestamp. e) make sure any and all symlinks still point to the right file/s. Personally I'd use cp -pR rather than mv in case I stuffed it up :) but then being perhaps overcautious I'd have started off with a 'ls -lR /usr/jail > listfile' (if I hadn't made a backup tar) to at least have a full list of what was where, with what user/perms etc .. Also read cp(1) re -R flag carefully .. if there are any hard linked files, as there may well be, then using tar to move these would be the safest bet anyway - plus you'd have a backup .. next time anyway :) Since it just failed to mv some files, you shouldn't need to rebuild if you can mv those files and reset their flags/permissions correctly. cheers, Ian From jerrymc at msu.edu Sun Oct 5 13:18:28 2008 From: jerrymc at msu.edu (Jerry McAllister) Date: Sun Oct 5 13:18:36 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: <20081005104253.GB82084@icarus.home.lan> References: <20081004181923.N2683@wojtek.tensor.gdynia.pl> <4A5E18EB2ED142C2B97EFD5A82AA805F@mickey> <8e10486b0810041351je5262fbi3bee00f47ef3bc68@mail.gmail.com> <10435563D3EC45D8A9AE00AECF113945@mickey> <20081005110745.T5124@wojtek.tensor.gdynia.pl> <20081005104253.GB82084@icarus.home.lan> Message-ID: <20081005131637.GA65736@gizmo.acns.msu.edu> On Sun, Oct 05, 2008 at 03:42:53AM -0700, Jeremy Chadwick wrote: > On Sun, Oct 05, 2008 at 11:07:58AM +0200, Wojciech Puchar wrote: > >>> > >>> > >>> I tried using fdisk first, same problem, won't let me write to the disk. > >> > >> Do you will use the entire disk in one partition ? If so, just do: > >> newfs /dev/ad4 > >> > > yes you can. i actually do this > > Isn't this what's called "Dangerously Dedicated" mode, and is considered > "very risky behaviour" on FreeBSD nowadays? It is what is called 'dangerously dedicated' but the 'nowdays' thing is not relevant. It is as old as the slice/partition framework. It is probably not a good name for it because it is not risky for the system you are using it on. It's only problem is if you want to read/write the disk in a different system. You might not be able to do it because it does not follow the most standard way. It is not a problem for a disk that is only used on FreeBSD. On the other hand, I see no reason to not use the slice+partition system that is most standard. fdisk to create slices and bsdlabel to create partitions and then newfs each partition except swap. ////jerry > > I would be wary of doing it that way. Using slices is the preferred > method, e.g. newfs /dev/ad4s1a. > > -- > | Jeremy Chadwick jdc at parodius.com | > | Parodius Networking http://www.parodius.com/ | > | UNIX Systems Administrator Mountain View, CA, USA | > | Making life hard for others since 1977. PGP: 4BD6C0CB | > > _______________________________________________ > 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 fbsd.questions at rachie.is-a-geek.net Sun Oct 5 13:46:31 2008 From: fbsd.questions at rachie.is-a-geek.net (Mel) Date: Sun Oct 5 13:46:39 2008 Subject: processes hanging in _umtx_op In-Reply-To: <86r66v6gsj.fsf@ponoka.ab.hsia.telus.net> References: <86r66v6gsj.fsf@ponoka.ab.hsia.telus.net> Message-ID: <200810051546.28440.fbsd.questions@rachie.is-a-geek.net> On Sunday 05 October 2008 02:12:44 Dale Hagglund wrote: > I can reproduce this reliably with > > $ python -c "import wx" > > I'm running 7.0-RELEASE-p2 with "uname -a" giving the following output, > suitably wrapped. > > FreeBSD ponoka.ab.hsia.telus.net > 7.0-RELEASE-p2 FreeBSD 7.0-RELEASE-p2 > #0: Wed Jun 18 07:33:20 UTC 2008 > root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC > i386 [...] > Dale Hagglund > > ------------------------- start: kdump output ------------------------- > 34453 python 1223164746.661828 CALL munmap(0x2aa00000,0xc1000) > 34453 python 1223164746.661840 RET munmap 0 > 34453 python 1223164746.662541 CALL > _umtx_op(0x283071e0,0x8,0x1,0x283071c0,0 ) Can you change scheduler to ULE and rebuild kernel? Or better yet, try 7.1-PRERELEASE, since it's good to know if this bug persists with 7.1 being close to release. It's not a 'standard answer', btw, but an educated guess, since utmx is (simplified) the kernel equivalent of pthread_(rwlock|mutex)_* and looks like it's hanging in one of those functions. If you're comfy with kernel debugging, print uap->op when it's hanging, so we know which op it's waiting on. Now, it can simply be programmer error (lock twice, unlock once), but most of the time the kernel catches this for me with EDEADLK. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. From fbsd.questions at rachie.is-a-geek.net Sun Oct 5 14:09:51 2008 From: fbsd.questions at rachie.is-a-geek.net (Mel) Date: Sun Oct 5 14:09:58 2008 Subject: Lenovo X200s In-Reply-To: <48E3DF63.103@yahoo.com> References: <48E3DF63.103@yahoo.com> Message-ID: <200810051609.48468.fbsd.questions@rachie.is-a-geek.net> On Wednesday 01 October 2008 22:36:51 Peter Thoenen wrote: > The Thinkpad series has always had strong FreeBSD support with the two > digit models (Xnn) but I am a bit iffy on Lenovo's attempts to morph the > Thinkpads into something else via the three digit series (Xnnn). > Anybody own a X200s and successfully running FreeBSD 7.x? This (rather long) thread contains quite some info on FreeBSD+laptop, along with some Lenovo info. http://lists.freebsd.org/pipermail/freebsd-mobile/2008-July/010831.html -- Mel Problem with today's modular software: they start with the modules and never get to the software part. From nino80 at gmail.com Sun Oct 5 14:48:38 2008 From: nino80 at gmail.com (n j) Date: Sun Oct 5 14:48:44 2008 Subject: Can't get in-kernel IPFW NAT (libalias) to work Message-ID: <92bcbda50810050748x753b0555vc6344a0a6c0ff1ca@mail.gmail.com> Hello all, I resolved my earlier problem ("ipfw: getsockopt(IP_FW_ADD): Invalid argument" when trying "ipfw add nat") by upgrading to 7.1-BETA which includes ipfw_nat as a kernel module; however, it still doesn't seem to work. When I'm directly ping'ing another box, I can see packets arriving at the destination, so the forwarding part (routes) works fine. However, when I add an ipfw rule to send these packets to the nat instance, the packets disappear instead of arriving nat'ted to the same destination. Did anyone have any success in getting the in-kernel (libalias) ipfw nat to work? I'd be grateful for any pointers. Thanks, -- Nino From spomerg at cwu.EDU Sun Oct 5 15:11:05 2008 From: spomerg at cwu.EDU (Gavin Spomer) Date: Sun Oct 5 15:11:12 2008 Subject: HP DL servers Message-ID: <48E87693020000900001E407@hermes.cwu.edu> We also have DL380's and I can't remember what generation my FreeBSD test server is, but it too has the Broadcoms in it which work fine with FreeBSD 7.0. Ours is recognized as bce however. Gavin Spomer Systems Programmer Brooks Library Central Washington University >>> "H.fazaeli" 10/05/08 3:24 AM >>> HP servers usually have NICs with broadcom or intel chipsets which are recognized as bge and em under freebsd and work great. We have the following configurations and they work fine: - freebsd 6.3 on dl320G5 with on-board broadcom network chipset and SATA HDDs. We had problems with hardware RAID and used geom to impl. RAID functionality. - freebsd 6.3 on dl380G5 with SAS HDDs. Hardware RAID controller is recognized by 6.3 and works. Ludovit Koren wrote: > Hi, > > I would like to buy HP servers DL 320 G5p or DL 360 G5p. I googled but > did not find clear answer if the NICs and disk controllers are > supported in FreeBSD 7.x. I read about some problems with NIC in DL > 360 but it was not actual and I am not sure about disk controller > in DL 320. > > Any personal recommendations and experience with the servers are > welcomed. > > Thank you very much in advance. > > Regards, > > lk > _______________________________________________ > 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" > > > -- Best regards. Hooman Fazaeli Sepehr S. T. Co. Ltd. Web: http://www.sepehrs.com Tel: (9821)88975701-2 Fax: (9821)88983352 _______________________________________________ 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 lists_freebsd at bluewin.ch Sun Oct 5 15:53:38 2008 From: lists_freebsd at bluewin.ch (Martin Schweizer) Date: Sun Oct 5 15:53:46 2008 Subject: portupgrade troubles Message-ID: <20081005155758.GB65233@saturn.pcs.ms> Hello I post the questions several months a go but I find until now no solutions. If I use portupgrade -fa I get the folowing error: /usr/local/lib/ruby/site_ruby/1.8/pkgversion.rb:41:in `initialize': ,2: Not in due form: '[_][,]'. (ArgumentError) from /usr/local/sbin/portupgrade:638:in `new' from /usr/local/sbin/portupgrade:638:in `main' from /usr/local/sbin/portupgrade:613:in `each' from /usr/local/sbin/portupgrade:613:in `main' from /usr/local/sbin/portupgrade:588:in `catch' from /usr/local/sbin/portupgrade:588:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:1303:in `call' from /usr/local/lib/ruby/1.8/optparse.rb:1303:in `parse_in_order' ... 7 levels... from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize' from /usr/local/sbin/portupgrade:229:in `new' from /usr/local/sbin/portupgrade:229:in `main' from /usr/local/sbin/portupgrade:2173 But get no answer and find no solution for my problem. Any ideas Regards, In the past I did a lot: - /usr/ports/UPDATING: checked all the ruby hints - Find and read the following posts: [snip] Re: portupgrade error - `deorigin': cannot convert nil into String (PkgDB::DBError) From: Kent Stewart (kstewart_at_owt.com) Date: 06/25/04 To: freebsd-stable@freebsd.org Date: Fri, 25 Jun 2004 13:10:44 -0700 On Friday 25 June 2004 12:25 pm, Andy Smith wrote: > Ever since a recent cvsup of ports and a portsdb -Uu, portupgrade > has been giving the following error: > > ---> Session started at: Fri, 25 Jun 2004 18:58:25 +0000 > ---> Session ended at: Fri, 25 Jun 2004 18:58:28 +0000 (consumed > 00:00:03) /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:323:in > `deorigin': cannot convert nil into String (PkgDB::DBError) from > /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:916:in `tsort_build' from > /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:915:in `each' from > /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:915:in `tsort_build' from > /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:907:in `each' from > /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:907:in `tsort_build' from > /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:929:in `sort_build' from > /usr/local/lib/ruby/site_ruby/1.8/pkgdb.rb:933:in `sort_build!' from > /usr/local/sbin/portupgrade:674:in `main' > from /usr/local/sbin/portupgrade:207:in `initialize' > from /usr/local/sbin/portupgrade:207:in `new' > from /usr/local/sbin/portupgrade:207:in `main' > from /usr/local/sbin/portupgrade:1845 > > I have tried: > > - Waiting a day and doing another cvsup > > - Doing make index / portsdb -Uu > > - Removing ruby and portupgrade and reinstalling > > but I still get the same error. > > I also searched the mailing list archives and found someone with a > very similar error: > > http://lists.freebsd.org/pipermail/freebsd-stable/2003-May/001255.htm >l > > however, I've already learnt my lesson about refusing ports, and so > my sup/refuse contains only: > > ports/INDEX > ports/INDEX-5 > > Anyone have any other ideas? Someone on ports said to run portsdb -fu to fix this one. The cooment was > Probably a ruby bug. Rebuilding {pkg|ports}.db from scratch will do, I think. But I thought that was a pkgdb -fu. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html _______________________________________________ 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" __________________________________________________________________ [snip] Newsgroups: mailing.freebsd.ports Von: s...@FreeBSD.org (Sergey Matveychuk) Datum: Sun, 27 Jan 2008 04:20:30 +0800 (CST) Lokal: Sa 26 Jan. 2008 22:20 Betreff: ports-mgmt/portupgrade-devel Antwort an Autor | Weiterleiten | Drucken | Einzelne Nachricht | Hi! After a long time, I've got a little free time and spent it working for portupgrade. A new version (2.4.0) was released. * Many bugs fixed (thanks to reporters). * At last I've finished rewriting code and portupgrade now controls all tasks (before some port installed without a portupgrade note). As a result portupgrade gathers all depends for a port. It spends a time for preparing in the beginning of a upgrade process. * I've change unused -c and -C options to allow run 'make config-conditional' and 'make config' (force options change) before all processing. Test the release please. To move from portupgrade to portupgrade-devel port, use the command: portupgrade -fo ports-mgmt/portupgrade-devel portupgrade If you'll want to back to stable porupgrade, use the command: portupgrade -o ports-mgmt/portupgrade portupgrade-devel -- Dixi. Sem. _______________________________________________ Von: aryeh.fried...@gmail.com ("Aryeh M. Friedman") Datum: Sun, 27 Jan 2008 07:12:37 +0800 (CST) Lokal: So 27 Jan. 2008 01:12 Sergey Matveychuk wrote: > Hi! > After a long time, I've got a little free time and spent it working for > portupgrade. > A new version (2.4.0) was released. > * Many bugs fixed (thanks to reporters). > * At last I've finished rewriting code and portupgrade now controls all > tasks (before some port installed without a portupgrade note). As a > result portupgrade gathers all depends for a port. It spends a time for > preparing in the beginning of a upgrade process. > * I've change unused -c and -C options to allow run 'make > config-conditional' and 'make config' (force options change) before all > processing. > Test the release please. To move from portupgrade to portupgrade-devel > port, use the command: > portupgrade -fo ports-mgmt/portupgrade-devel portupgrade > If you'll want to back to stable porupgrade, use the command: > portupgrade -o ports-mgmt/portupgrade portupgrade-devel This breaks certain ports (portupgrade -a) that have multiple ports that can satisfy a depends. For example net-p2p/deulge depends on devel/boost but multimedia/miro depends on devel/boost-python. The only difference between boost and boost-python is boost-python sets the -DWITH_PYTHON flag and lists lang/python - -2.5 while boost does not depend on it and makes the user specify the above flag from the command line. Under the old portugrade it relied on miro and/or deluge to detect its own depends and since both did it by xDEP on the installed files either whould be accepted. Under the new one portupgrade attempts to build from index depends thus does not allow this interchangablity. - -- Aryeh M. Friedman FloSoft Systems, Java Tool Developers Developer, not business, friendly http://www.flosoft-systems.com "Free software != Free beer" Blog: Von: do...@FreeBSD.org (Doug Barton) Datum: Sun, 27 Jan 2008 08:26:12 +0800 (CST) Lokal: So 27 Jan. 2008 02:26 Betreff: Re: ports-mgmt/portupgrade-devel On Sat, 26 Jan 2008, Aryeh M. Friedman wrote: > Sergey Matveychuk wrote: >> Hi! >> After a long time, I've got a little free time and spent it working for >> portupgrade. >> A new version (2.4.0) was released. Congrats on both the new version, and finding the time. :) > This breaks certain ports (portupgrade -a) that have multiple ports > that can satisfy a depends. For example net-p2p/deulge depends on > devel/boost but multimedia/miro depends on devel/boost-python. The > only difference between boost and boost-python is boost-python sets > the -DWITH_PYTHON flag and lists lang/python > -2.5 while boost does not depend on it and makes the user specify the > above flag from the command line. Under the old portugrade it relied > on miro and/or deluge to detect its own depends and since both did it > by xDEP on the installed files either whould be accepted. Under the > new one portupgrade attempts to build from index depends thus does not > allow this interchangablity. I handled this in portmaster by analyzing the CONFLICTS. If a requested dependency has a CONFLICTS line I check the glob patterns against the installed ports with pkg_info and keep going if we already have something installed that will work. That's not a perfect solution, but it handles all the cases I've seen personally, or users complained about before that feature was introduced. hope this helps, Doug ------------------------ Newsgroups: mailing.freebsd.ports Von: me...@cox.net ("Jeremy Messenger") Datum: Sun, 27 Jan 2008 12:29:24 +0800 (CST) Lokal: So 27 Jan. 2008 06:29 Betreff: Re: ports-mgmt/portupgrade-devel On Sat, 26 Jan 2008 17:10:50 -0600, Aryeh M. Friedman = wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > Sergey Matveychuk wrote: >> Hi! >> After a long time, I've got a little free time and spent it working f= or >> portupgrade. >> A new version (2.4.0) was released. >> * Many bugs fixed (thanks to reporters). >> * At last I've finished rewriting code and portupgrade now controls a= ll >> tasks (before some port installed without a portupgrade note). As a >> result portupgrade gathers all depends for a port. It spends a time f= or >> preparing in the beginning of a upgrade process. >> * I've change unused -c and -C options to allow run 'make >> config-conditional' and 'make config' (force options change) before a= ll >> processing. >> Test the release please. To move from portupgrade to portupgrade-deve= l >> port, use the command: >> portupgrade -fo ports-mgmt/portupgrade-devel portupgrade >> If you'll want to back to stable porupgrade, use the command: >> portupgrade -o ports-mgmt/portupgrade portupgrade-devel > This breaks certain ports (portupgrade -a) that have multiple ports > that can satisfy a depends. For example net-p2p/deulge depends on > devel/boost but multimedia/miro depends on devel/boost-python. The > only difference between boost and boost-python is boost-python sets > the -DWITH_PYTHON flag and lists lang/python > - -2.5 while boost does not depend on it and makes the user specify th= e > above flag from the command line. Under the old portugrade it relied > on miro and/or deluge to detect its own depends and since both did it > by xDEP on the installed files either whould be accepted. Under the > new one portupgrade attempts to build from index depends thus does not= > allow this interchangablity. The boost and boost-python ports need to be fix, not other tools or othe= r = stuff. It will be great if you quit email me related with this as I am = getting tired with this issue, thanks. Cheers, Mezz > - -- > Aryeh M. Friedman > FloSoft Systems, Java Tool Developers > Developer, not business, friendly > http://www.flosoft-systems.com > "Free software !=3D Free beer" > Blog: > http://www.flosoft-systems.com/flosoft_systems_community/blogs/aryeh/i= ndex.php _______________________________________________ Newsgroups: mailing.freebsd.ports Von: me...@cox.net ("Jeremy Messenger") Datum: Sun, 27 Jan 2008 12:40:17 +0800 (CST) Lokal: So 27 Jan. 2008 06:40 Betreff: Re: ports-mgmt/portupgrade-devel On Sat, 26 Jan 2008 18:25:01 -0600, Doug Barton wrote: > On Sat, 26 Jan 2008, Aryeh M. Friedman wrote: >> Sergey Matveychuk wrote: >>> Hi! >>> After a long time, I've got a little free time and spent it working for >>> portupgrade. >>> A new version (2.4.0) was released. > Congrats on both the new version, and finding the time. :) >> This breaks certain ports (portupgrade -a) that have multiple ports >> that can satisfy a depends. For example net-p2p/deulge depends on >> devel/boost but multimedia/miro depends on devel/boost-python. The >> only difference between boost and boost-python is boost-python sets >> the -DWITH_PYTHON flag and lists lang/python >> -2.5 while boost does not depend on it and makes the user specify the >> above flag from the command line. Under the old portugrade it relied >> on miro and/or deluge to detect its own depends and since both did it >> by xDEP on the installed files either whould be accepted. Under the >> new one portupgrade attempts to build from index depends thus does not >> allow this interchangablity. > I handled this in portmaster by analyzing the CONFLICTS. If a requested > dependency has a CONFLICTS line I check the glob patterns against the > installed ports with pkg_info and keep going if we already have > something installed that will work. > That's not a perfect solution, but it handles all the cases I've seen > personally, or users complained about before that feature was introduced. I love this solution, I remember this: http://lists.freebsd.org/pipermail/freebsd-ports/2006-August/034434.htm l http://lists.freebsd.org/pipermail/freebsd-ports/2006-August/034579.htm l :-) Cheers, Mezz Weitere Optionen 27 Jan., 19:19 Newsgroups: mailing.freebsd.ports Von: ger...@seibercom.net (Gerard) Datum: Mon, 28 Jan 2008 01:19:42 +0800 (CST) Lokal: So 27 Jan. 2008 19:19 Betreff: Re: ports-mgmt/portupgrade-devel Sergey Matveychuk wrote: > Hi! >=20 > After a long time, I've got a little free time and spent it working > for portupgrade. > A new version (2.4.0) was released. > * Many bugs fixed (thanks to reporters). > * At last I've finished rewriting code and portupgrade now controls > all tasks (before some port installed without a portupgrade note). As > a result portupgrade gathers all depends for a port. It spends a time > for preparing in the beginning of a upgrade process. > * I've change unused -c and -C options to allow run 'make > config-conditional' and 'make config' (force options change) before > all processing. >=20 > Test the release please. To move from portupgrade to portupgrade-devel > port, use the command: > portupgrade -fo ports-mgmt/portupgrade-devel portupgrade >=20 > If you'll want to back to stable porupgrade, use the command: > portupgrade -o ports-mgmt/portupgrade portupgrade-devel I just installed the updated version. Unfortunately, it is not working correctly. This is the pertinent output. FreeBSD scorpio.seibercom.net 6.3-STABLE FreeBSD 6.3-STABLE #0: Sat Jan 19 22:26:50 EST 2008 ger...@scorpio.seibercom.net:/usr/obj/usr/src/sys/SCORPIO i386 Script started on Sun Jan 27 06:46:32 2008 /usr/local/sbin/portupgrade:697:in `main': undefined method `get_uninstalled_depends' for main:Object (NoMethodError) from /usr/local/sbin/portupgrade:677:in `each' from /usr/local/sbin/portupgrade:677:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:1303:in `call' from /usr/local/lib/ruby/1.8/optparse.rb:1303:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1299:in `catch' from /usr/local/lib/ruby/1.8/optparse.rb:1299:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1247:in `catch' from /usr/local/lib/ruby/1.8/optparse.rb:1247:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1241:in `order!' from /usr/local/lib/ruby/1.8/optparse.rb:1234:in `order' from /usr/local/sbin/portupgrade:554:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize' from /usr/local/sbin/portupgrade:223:in `new' from /usr/local/sbin/portupgrade:223:in `main' from /usr/local/sbin/portupgrade:2096 Script done on Sun Jan 27 06:46:39 2008 This was started with the command: portupgrade -N devel/ccache --=20 Gerard ger...@seibercom.net Why be difficult, when, with just a little more effort, you can be impossible? Weitere Optionen 30 Jan., 00:29 Newsgroups: mailing.freebsd.ports Von: bucka...@gmx.de (Mark Nowiasz) Datum: Wed, 30 Jan 2008 06:29:53 +0800 (CST) Lokal: Mi 30 Jan. 2008 00:29 Betreff: ports-mgmt/portupgrade-devel Hi, when using portupgrade-devel, I'm getting the following errors: ---> Session ended at: Tue, 29 Jan 2008 22:58:52 +0100 (consumed 00:02:01) /usr/local/lib/ruby/site_ruby/1.8/pkgversion.rb:41:in `initialize': : Not in due form: '[_][,]'. (ArgumentError) from /usr/local/sbin/portupgrade:630:in `new' from /usr/local/sbin/portupgrade:630:in `main' from /usr/local/sbin/portupgrade:618:in `each' from /usr/local/sbin/portupgrade:618:in `main' from /usr/local/sbin/portupgrade:582:in `catch' from /usr/local/sbin/portupgrade:582:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:1303:in `call' from /usr/local/lib/ruby/1.8/optparse.rb:1303:in `parse_in_order' ... 7 levels... from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize' from /usr/local/sbin/portupgrade:228:in `new' from /usr/local/sbin/portupgrade:228:in `main' from /usr/local/sbin/portupgrade:2110 portupgrade --version portupgrade 2.4.1 Regards, Mark -- Q: How do you play religious roulette? A: You stand around in a circle and blaspheme and see who gets struck by lightning first. _______________________________________________ Newsgroups: mailing.freebsd.ports Von: nak...@jp.freebsd.org (NAKAJI Hiroyuki) Datum: Thu, 31 Jan 2008 13:54:06 +0800 (CST) Lokal: Do 31 Jan. 2008 07:54 Betreff: Re: ports-mgmt/portupgrade-devel Hi, I have another error with portupgrade-devel-2.4.1. # portupgrade -a ... ** Port directory not found: japanese/dpkey7 /usr/local/sbin/portupgrade:1357:in `get_pkgname': port directory error (PortDirError) from /usr/local/sbin/portupgrade:623:in `main' from /usr/local/sbin/portupgrade:618:in `each' from /usr/local/sbin/portupgrade:618:in `main' from /usr/local/sbin/portupgrade:582:in `catch' from /usr/local/sbin/portupgrade:582:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:1303:in `call' from /usr/local/lib/ruby/1.8/optparse.rb:1303:in `parse_in_order' from /usr/local/lib/ruby/1.8/optparse.rb:1299:in `catch' ... 6 levels... from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize' from /usr/local/sbin/portupgrade:228:in `new' from /usr/local/sbin/portupgrade:228:in `main' from /usr/local/sbin/portupgrade:2110 Dpkey7 is a third-party product and I add it in HOLD_PKGS list. But now HOLD_PKGS has no effect. Regards, >>>>> In <200801292301.44482.bucka...@gmx.de> >>>>> Mark Nowiasz wrote: > when using portupgrade-devel, I'm getting the following errors: > ---> Session ended at: Tue, 29 Jan 2008 22:58:52 +0100 (consumed 00:02:01) > /usr/local/lib/ruby/site_ruby/1.8/pkgversion.rb:41:in `initialize': : Not in > due form: '[_][,]'. (ArgumentError) > from /usr/local/sbin/portupgrade:630:in `new' > from /usr/local/sbin/portupgrade:630:in `main' > from /usr/local/sbin/portupgrade:618:in `each' > from /usr/local/sbin/portupgrade:618:in `main' > from /usr/local/sbin/portupgrade:582:in `catch' > from /usr/local/sbin/portupgrade:582:in `main' > from /usr/local/lib/ruby/1.8/optparse.rb:1303:in `call' > from /usr/local/lib/ruby/1.8/optparse.rb:1303:in `parse_in_order' > ... 7 levels... > from /usr/local/lib/ruby/1.8/optparse.rb:785:in `initialize' > from /usr/local/sbin/portupgrade:228:in `new' > from /usr/local/sbin/portupgrade:228:in `main' > from /usr/local/sbin/portupgrade:2110 > portupgrade --version > portupgrade 2.4.1 > Regards, > Mark -- NAKAJI Hiroyuki _______________________________________________ Von: bucka...@gmx.de (Mark Nowiasz) Datum: Sat, 2 Feb 2008 04:14:01 +0800 (CST) Lokal: Fr 1 Feb. 2008 22:14 Betreff: Re: ports-mgmt/portupgrade-devel > > Hi, > > when using portupgrade-devel, I'm getting the following errors: > > ---> Session ended at: Tue, 29 Jan 2008 22:58:52 +0100 (consumed > > 00:02:01) /usr/local/lib/ruby/site_ruby/1.8/pkgversion.rb:41:in > > `initialize': : Not in due form: '[_][,]'. > > (ArgumentError) > What port exactly did you upgraded please? Nothing particular - I tried portupgrade (devl) -a -v. Downgrading to the "normal" portupgrade did the trick, though. Regards, Mark -- Hurewitz's Memory Principle: The chance of forgetting something is directly proportional to ..... to ........ uh .............. _______________________________________________ -- Martin Schweizer PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch; public key : http://www.pc-service.ch/pgp/public_key.asc; fingerprint: EC21 CA4D 5C78 BC2D 73B7 10F9 C1AE 1691 D30F D239; From michaek at mail.ru Sun Oct 5 15:58:13 2008 From: michaek at mail.ru (Michael Lednev) Date: Sun Oct 5 15:58:21 2008 Subject: HP DL servers In-Reply-To: <20081005.102619.40572501.koren@tempest.sk> References: <20081005.102619.40572501.koren@tempest.sk> Message-ID: <48E8E03A.1020409@mail.ru> Ludovit Koren ?????: > Hi, > > I would like to buy HP servers DL 320 G5p or DL 360 G5p. I googled but > did not find clear answer if the NICs and disk controllers are > supported in FreeBSD 7.x. I read about some problems with NIC in DL > 360 but it was not actual and I am not sure about disk controller > in DL 320. > > Any personal recommendations and experience with the servers are > welcomed. DL360G5 works flawlessly with 7.0, I can post its dmesg if you want. From dale.hagglund at gmail.com Sun Oct 5 16:07:39 2008 From: dale.hagglund at gmail.com (Dale Hagglund) Date: Sun Oct 5 16:07:46 2008 Subject: processes hanging in _umtx_op In-Reply-To: <200810051546.28440.fbsd.questions@rachie.is-a-geek.net> (Mel's message of "Sun, 5 Oct 2008 15:46:27 +0200") References: <86r66v6gsj.fsf@ponoka.ab.hsia.telus.net> <200810051546.28440.fbsd.questions@rachie.is-a-geek.net> Message-ID: <86bpxz58l9.fsf@ponoka.ab.hsia.telus.net> >>>>> "Mel" == Mel writes: Mel> Can you change scheduler to ULE and rebuild kernel? Mel> Or better yet, try 7.1-PRERELEASE, since it's good to know if Mel> this bug persists with 7.1 being close to release. I'll rebuild with ULE first, and let you and the list know what happens. Mel> It's not a 'standard answer', btw, but an educated guess, since Mel> utmx is (simplified) the kernel equivalent of Mel> pthread_(rwlock|mutex)_* and looks like it's hanging in one of Mel> those functions. This was my guess as well. I first noticed this hang while attempting to build gnuradio around the end of August. During conversations with the maintainer, Diane Bruce, about this hang she recognized it from before and suggested that she'd been able to fix it at that time by upgrading all ports (or maybe just the wx port) on her system. Mel> Now, it can simply be programmer error (lock twice, unlock Mel> once), but most of the time the kernel catches this for me with Mel> EDEADLK. The background with gnuradio and the Diane's suggestion to upgrade ports lead to my thought that I could easily have some sort of conflicting or out-of-date combination of libraries causing some sort of locking problem. That said, I've since upgraded almost all of my ports/packages, but building gnuradio still hangs the same way. Life/work got very busy just after that, so I unfortunately didn't got back to Diane with this update. Also, I just saw the same hang with the openoffice 3.0beta (milestone m5) package. Just out of curiousity, I produced the list of shared dependencies between these packages and have attached these below. Mel> If you're comfy with kernel debugging, print uap->op when it's Mel> hanging, so we know which op it's waiting on. I haven't used the kernel debugger before, but I'd be willing to give it a go after trying some of the things above. If you have a pointer to a slightly more detailed set of instructions, I'd definitely appreciate it. Dale. -------------------- ORBit2-2.14.14 atk-1.22.0_1 bitstream-vera-1.10_4 cairo-1.6.4_2,1 compositeproto-0.4 damageproto-1.1.0_2 encodings-1.0.2,1 expat-2.0.1 fixesproto-4.0 font-bh-ttf-1.0.0 font-misc-ethiopic-1.0.0 font-misc-meltho-1.0.0_1 font-util-1.0.1 fontcacheproto-0.1.2 fontconfig-2.5.0,1 fontsproto-2.0.2 freetype2-2.3.7 gconf2-2.22.0_1 gettext-0.17_1 glib-2.16.5 gnomehier-2.3_10 gtk-2.12.11_1 hicolor-icon-theme-0.10_2 inputproto-1.4.2.1 jpeg-6b_7 kbproto-1.0.3 libFS-1.0.0_1 libICE-1.0.4_1,1 libIDL-0.8.11 libSM-1.0.3_1,1 libX11-1.1.3_1,1 libXScrnSaver-1.1.2 libXTrap-1.0.0 libXau-1.0.3_2 libXaw-1.0.4_1,1 libXcomposite-0.4.0,1 libXcursor-1.1.9_1 libXdamage-1.1.1 libXdmcp-1.0.2_1 libXevie-1.0.2 libXext-1.0.3,1 libXfixes-4.0.3_1 libXfont-1.3.1_3,1 libXfontcache-1.0.4 libXft-2.1.13 libXi-1.1.3,1 libXinerama-1.0.2,1 libXmu-1.0.3,1 libXp-1.0.0,1 libXpm-3.5.7 libXprintAppUtil-1.0.1 libXprintUtil-1.0.1 libXrandr-1.2.2_1 libXrender-0.9.4_1 libXres-1.0.3_3 libXt-1.0.5_1 libXtst-1.0.3_1 libXv-1.0.3_1,1 libXvMC-1.0.4_1 libXxf86dga-1.0.2 libXxf86misc-1.0.1 libXxf86vm-1.0.1 libdmx-1.0.2_1 libfontenc-1.0.4 libiconv-1.11_1 liboldX-1.0.1 libxkbfile-1.0.4 libxkbui-1.0.2_1 libxml2-2.6.32 mkfontdir-1.0.3_1 mkfontscale-1.0.3 pango-1.20.5 pcre-7.7_1 perl-5.8.8_1 pixman-0.10.0_2 pkg-config-0.23_1 png-1.2.31 printproto-1.0.3 python25-2.5.2_3 randrproto-1.2.1 recordproto-1.13.2 renderproto-0.9.3 scrnsaverproto-1.1.0 shared-mime-info-0.51 tiff-3.8.2_1 trapproto-3.4.3 videoproto-2.2.2 xbitmaps-1.0.1 xextproto-7.0.2 xf86dgaproto-2.0.3 xf86miscproto-0.9.2 xf86vidmodeproto-2.2.2 xineramaproto-1.1.2 xorg-fonts-truetype-7.3 xorg-libraries-7.3_2 xproto-7.0.10_1 xtrans-1.0.4 -------------------- From fbsd.questions at rachie.is-a-geek.net Sun Oct 5 16:12:46 2008 From: fbsd.questions at rachie.is-a-geek.net (Mel) Date: Sun Oct 5 16:12:54 2008 Subject: ssh jail In-Reply-To: <48E5070D.8050400@el.net> References: <48E5070D.8050400@el.net> Message-ID: <200810051812.41722.fbsd.questions@rachie.is-a-geek.net> On Thursday 02 October 2008 19:38:21 kalin m wrote: > hi all... > > i have openssh 5. i want to jail the users to their home directories so > they can go down but not up. > > i didn't see a directive that does that in the man or in the sshd_config. On RELENG_7 (aka -stable, aka 7.1-PRERELEASE), isn't this what you're looking for? ChrootDirectory Specifies a path to chroot(2) to after authentication. This path, and all its components, must be root-owned directories that are not writable by any other user or group. The path may contain the following tokens that are expanded at runtime once the connecting user has been authenticated: %% is replaced by a literal '%', %h is replaced by the home directory of the user being authenticated, and %u is replaced by the user- name of that user. The ChrootDirectory must contain the necessary files and directo- ries to support the users' session. For an interactive session this requires at least a shell, typically sh(1), and basic /dev nodes such as null(4), zero(4), stdin(4), stdout(4), stderr(4), arandom(4) and tty(4) devices. For file transfer sessions using ``sftp'', no additional configuration of the environment is nec- essary if the in-process sftp server is used (see Subsystem for details). The default is not to chroot(2). $ ssh -V OpenSSH_5.1p1 FreeBSD-20080901, OpenSSL 0.9.8e 23 Feb 2007 -- Mel Problem with today's modular software: they start with the modules and never get to the software part. From fbsd.questions at rachie.is-a-geek.net Sun Oct 5 16:22:47 2008 From: fbsd.questions at rachie.is-a-geek.net (Mel) Date: Sun Oct 5 16:22:53 2008 Subject: Mysqldump password issue In-Reply-To: <48E51A66.7050507@infracaninophile.co.uk> References: <48E500EC.9010100@gmail.com> <48E51A66.7050507@infracaninophile.co.uk> Message-ID: <200810051822.42644.fbsd.questions@rachie.is-a-geek.net> On Thursday 02 October 2008 21:00:54 Matthew Seaman wrote: > Andrei Brezan wrote: > > Hello list, > > > > I wanna do a > > mysqldump -u user -ppasswd --all-databases > backup.sql > > > > and all I get is > > mysqldump: No match. > > > > This happens either i put --all-databases or I specify any of the > > databases. I want to do a backup as user root, that's why I use > > all-databases opt. > > > > If I use the command: > > mysqldump -u root -p --all-databases >backup.sql > > I get the password prompt, I type the passwd and everythig works great. > > It seems that there is a problem with -p, i've tried --password with > > same result. > > > > If anyone has any ideea please let me know about it. > > I mention that i use Freebsd 7_0 and mysql 5.0.67 > > My guess is that the password (which you've obviously elided) contains > characters of syntactic significance to the shell. Any of the following > will lead to wailing and gnashing of teeth: > > * ? [ < > & ; ! | $ Since I'm writing a parser currently that unescapes make(1)'s :Q modifier, I can tell you: \ ( ) # ~ { } ] " ' belong in the same gnashing category. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. From freebsd at optiksecurite.com Sun Oct 5 16:58:29 2008 From: freebsd at optiksecurite.com (FreeBSD) Date: Sun Oct 5 16:58:36 2008 Subject: Freebsd-update with a custom kernel and jails Message-ID: <48E8F253.6010206@optiksecurite.com> Hi everyone, I'm totally new to freebsd-update. I used to recompile the kernel and the world when I wanted to update. But I think it's now time to take advantages of the binary update possibility. I looked at the man pages and some googling couldn't answer my questions properly. I need to roll out a server quick and I just want to be sure I'm on the good path. There is my situation: I want to be able to use freebsd-update to update a FreeBSD 7.0-Release installation to the latest security patches (I want an update and not an upgrade if I understand correctly). Where this gets more complicated is that I need a custom kernel (for ULE, pf and ALTQ while also disabling some devices I'll never need) and I want to use jails to isolate every services (Apache and MySQL by now). So, I read at some places that you can't use freebsd-update with a custom kernel, but I'm not sure if this apply only in the case of an upgrade between release or if I'll need to manually recompile the kernel with every use of freebsd-update. I also read that it's possible to update the jails from the host system with the -b flag. In this case, I supposed that I need to update the host system before the jail, but is the procedure going to be exactly the same? Talking about procedure, it would be nice if someone could confirm that all I need to do is 'freebsd-update fetch' followed by 'freebsd-update install' to update the host system. I'm sorry if this has been explained before but I couldn't find anything clear on this. I least, your answer will make a good, update to date source of information. Thank you all for your replies, Martin From fbsd.questions at rachie.is-a-geek.net Sun Oct 5 17:09:04 2008 From: fbsd.questions at rachie.is-a-geek.net (Mel) Date: Sun Oct 5 17:09:10 2008 Subject: Running cron jobs as nobody In-Reply-To: <48E4E4B8.90202@pixelhammer.com> References: <48E4E4B8.90202@pixelhammer.com> Message-ID: <200810051909.01619.fbsd.questions@rachie.is-a-geek.net> On Thursday 02 October 2008 17:11:52 DAve wrote: > Good morning all, > > We have a cronjob we need to run as nobody from /etc/crontab and it > seems to be not working. The job runs, but not as user nobody. > > I noticed two things, > > 1) the job to update the locate DB runs as nobody, because the script > uses su to become nobody. > echo /usr/libexec/locate.updatedb | nice -5 su -fm nobody || rc=3 ^^^ -fm: Bypass .cshrc and only change user, use root env. > Is setting the user to nobody in /etc/crontab not possible? pw showuser operator pw showuser nobody Spot the difference (hint: /nonexistent) -- Mel Problem with today's modular software: they start with the modules and never get to the software part. From kitchetech at gmail.com Sun Oct 5 17:47:34 2008 From: kitchetech at gmail.com (matt donovan) Date: Sun Oct 5 17:47:41 2008 Subject: Freebsd-update with a custom kernel and jails In-Reply-To: <48E8F253.6010206@optiksecurite.com> References: <48E8F253.6010206@optiksecurite.com> Message-ID: <28283d910810051047i30de4c4bsd1e8526474009c40@mail.gmail.com> On Sun, Oct 5, 2008 at 12:58 PM, FreeBSD wrote: > > There is my situation: > I want to be able to use freebsd-update to update a FreeBSD 7.0-Release > installation to the latest security patches (I want an update and not an > upgrade if I understand correctly). Where this gets more complicated is that > I need a custom kernel (for ULE, pf and ALTQ while also disabling some > devices I'll never need) and I want to use jails to isolate every services > (Apache and MySQL by now). > > So, I read at some places that you can't use freebsd-update with a custom > kernel, but I'm not sure if this apply only in the case of an upgrade > between release or if I'll need to manually recompile the kernel with every > use of freebsd-update. > > I also read that it's possible to update the jails from the host system > with the -b flag. In this case, I supposed that I need to update the host > system before the jail, but is the procedure going to be exactly the same? > > yes all you need to do is freebsd-update fetch install your kernel won't be > updated but your userland will > From bennett at cs.niu.edu Sun Oct 5 17:53:27 2008 From: bennett at cs.niu.edu (Scott Bennett) Date: Sun Oct 5 17:53:35 2008 Subject: pf vs. RST attack question Message-ID: <200810051753.m95Hr3N5014872@mp.cs.niu.edu> I'm getting a lot of messages like this: Oct 4 14:30:00 hellas kernel: Limiting closed port RST response from 250 to 200 packets/sec Is there some rule I can insert into /etc/pf.conf to reject these apparently invalid RST packets before they can bother TCP? At the same time, I do not want to reject legitimate RST packets. Thanks in advance for any clues! 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 sdavtaker at gmail.com Sun Oct 5 17:59:53 2008 From: sdavtaker at gmail.com (=?UTF-8?Q?Sd=C3=A4vtaker?=) Date: Sun Oct 5 18:00:01 2008 Subject: Touch screen ET&T on Clevo tn120r Message-ID: Hello, I installed FreeBSD 7.0r in a Clevo tablet. I works great, but i am missing the touchscreen. Did someone make it work or got any idea where can i start to try? I got the pciconf -lv and scanpci -v info: Thanks in advance for any help you can give me. pciconf: hostb0@pci0:0:0:0: class=0x060000 card=0x01221558 chip=0x2a008086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Mobile PM965/GM965/GL960 Express Processor to DRAM Controller' class = bridge subclass = HOST-PCI vgapci0@pci0:0:2:0: class=0x030000 card=0x01221558 chip=0x2a028086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Mobile 965 Express Integrated Graphics Controller' class = display subclass = VGA vgapci1@pci0:0:2:1: class=0x038000 card=0x01221558 chip=0x2a038086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Mobile 965 Express Integrated Graphics Controller' class = display uhci0@pci0:0:26:0: class=0x0c0300 card=0x01221558 chip=0x28348086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) USB UHCI' class = serial bus subclass = USB uhci1@pci0:0:26:1: class=0x0c0300 card=0x01221558 chip=0x28358086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) USB UHCI' class = serial bus subclass = USB ehci0@pci0:0:26:7: class=0x0c0320 card=0x01221558 chip=0x283a8086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '81EC1043 (?) ICH8 Enhanced USB2 Enhanced Host Controller' class = serial bus subclass = USB pcm0@pci0:0:27:0: class=0x040300 card=0x01221558 chip=0x284b8086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82801H &SUBSYS_81EC1043&REV_02\3&11583659&0&D8' class = multimedia pcib1@pci0:0:28:0: class=0x060400 card=0x01221558 chip=0x283f8086 rev=0x03 hdr=0x01 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) PCIe Port 1' class = bridge subclass = PCI-PCI pcib2@pci0:0:28:1: class=0x060400 card=0x01221558 chip=0x28418086 rev=0x03 hdr=0x01 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) PCIe Port 2' class = bridge subclass = PCI-PCI pcib3@pci0:0:28:2: class=0x060400 card=0x01221558 chip=0x28438086 rev=0x03 hdr=0x01 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) PCIe Port 3' class = bridge subclass = PCI-PCI pcib4@pci0:0:28:3: class=0x060400 card=0x01221558 chip=0x28458086 rev=0x03 hdr=0x01 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) PCIe Port 4' class = bridge subclass = PCI-PCI uhci2@pci0:0:29:0: class=0x0c0300 card=0x01221558 chip=0x28308086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) USB UHCI' class = serial bus subclass = USB uhci3@pci0:0:29:1: class=0x0c0300 card=0x01221558 chip=0x28318086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) USB UHCI' class = serial bus subclass = USB uhci4@pci0:0:29:2: class=0x0c0300 card=0x01221558 chip=0x28328086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) USB UHCI' class = serial bus subclass = USB ehci1@pci0:0:29:7: class=0x0c0320 card=0x01221558 chip=0x28368086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) USB2 EHCI' class = serial bus subclass = USB pcib5@pci0:0:30:0: class=0x060401 card=0x00000000 chip=0x24488086 rev=0xf3 hdr=0x01 vendor = 'Intel Corporation' device = '82801BAM/CAM/DBM (ICH2-M/3-M/4-M) Hub Interface to PCI Bridge' class = bridge subclass = PCI-PCI isab0@pci0:0:31:0: class=0x060100 card=0x01221558 chip=0x28158086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'ICH8M-E (ICH8 Family) LPC Interface Controller' class = bridge subclass = PCI-ISA atapci0@pci0:0:31:2: class=0x010180 card=0x01221558 chip=0x28288086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'ICH8M (ICH8 Family) 3 port SATA Controller' class = mass storage subclass = ATA none0@pci0:0:31:3: class=0x0c0500 card=0x01221558 chip=0x283e8086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = '82801H (ICH8 Family) SMBus Controller' class = serial bus subclass = SMBus wpi0@pci0:2:0:0: class=0x028000 card=0x10018086 chip=0x42228086 rev=0x02 hdr=0x00 vendor = 'Intel Corporation' device = '10418086 Intel 3945ABG Wireless LAN controller' class = network re0@pci0:7:0:0: class=0x020000 card=0x01221558 chip=0x816810ec rev=0x01 hdr=0x00 vendor = 'Realtek Semiconductor' device = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC' class = network subclass = ethernet none1@pci0:8:7:0: class=0x050100 card=0x01221558 chip=0x07301524 rev=0x00 hdr=0x00 vendor = 'ENE Technology Inc' class = memory subclass = flash none2@pci0:8:7:1: class=0x080501 card=0x01221558 chip=0x07501524 rev=0x00 hdr=0x00 vendor = 'ENE Technology Inc' class = base peripheral none3@pci0:8:7:3: class=0x050100 card=0x01221558 chip=0x07511524 rev=0x00 hdr=0x00 vendor = 'ENE Technology Inc' class = memory subclass = flash fwohci0@pci0:8:9:0: class=0x0c0010 card=0x01221558 chip=0x30441106 rev=0xc0 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT6306 VIA Fire II IEEE-1394 OHCI Link Layer Controller' class = serial bus subclass = FireWire scanpci: pci bus 0x0000 cardnum 0x00 function 0x00: vendor 0x8086 device 0x2a00 Intel Corporation Mobile PM965/GM965/GL960 Memory Controller Hub CardVendor 0x1558 card 0x0122 (CLEVO/KAPOK Computer, Card unknown) STATUS 0x2090 COMMAND 0x0106 CLASS 0x06 0x00 0x00 REVISION 0x03 BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x00 BYTE_0 0x01 BYTE_1 0x90 BYTE_2 0xd1 BYTE_3 0xfe pci bus 0x0000 cardnum 0x02 function 0x00: vendor 0x8086 device 0x2a02 Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller CardVendor 0x1558 card 0x0122 (CLEVO/KAPOK Computer, Card unknown) STATUS 0x0090 COMMAND 0x0007 CLASS 0x03 0x00 0x00 REVISION 0x03 BIST 0x00 HEADER 0x80 LATENCY 0x00 CACHE 0x00 BASE0 0x00000000f8000004 addr 0x00000000f8000000 MEM 64BIT BASE2 0x00000000d000000c addr 0x00000000d0000000 MEM PREFETCHABLE 64BIT BASE4 0x00001801 addr 0x00001800 I/O MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x01 INT_LINE 0x10 pci bus 0x0000 cardnum 0x02 function 0x01: vendor 0x8086 device 0x2a03 Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller CardVendor 0x1558 card 0x0122 (CLEVO/KAPOK Computer, Card unknown) STATUS 0x0090 COMMAND 0x0007 CLASS 0x03 0x80 0x00 REVISION 0x03 BIST 0x00 HEADER 0x80 LATENCY 0x00 CACHE 0x00 BASE0 0x00000000f8100004 addr 0x00000000f8100000 MEM 64BIT pci bus 0x0000 cardnum 0x1a function 0x00: vendor 0x8086 device 0x2834 Intel Corporation 82801H (ICH8 Family) USB UHCI Contoller #4 CardVendor 0x1558 card 0x0122 (CLEVO/KAPOK Computer, Card unknown) STATUS 0x0280 COMMAND 0x0005 CLASS 0x0c 0x03 0x00 REVISION 0x03 BIST 0x00 HEADER 0x80 LATENCY 0x00 CACHE 0x00 BASE4 0x00001821 addr 0x00001820 I/O MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x01 INT_LINE 0x10 pci bus 0x0000 cardnum 0x1a function 0x01: vendor 0x8086 device 0x2835 Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 CardVendor 0x1558 card 0x0122 (CLEVO/KAPOK Computer, Card unknown) STATUS 0x0280 COMMAND 0x0005 CLASS 0x0c 0x03 0x00 REVISION 0x03 BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x00 BASE4 0x00001841 addr 0x00001840 I/O MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x02 INT_LINE 0x15 pci bus 0x0000 cardnum 0x1a function 0x07: vendor 0x8086 device 0x283a Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 CardVendor 0x1558 card 0x0122 (CLEVO/KAPOK Computer, Card unknown) STATUS 0x0290 COMMAND 0x0106 CLASS 0x0c 0x03 0x20 REVISION 0x03 BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x00 BASE0 0xf8704000 addr 0xf8704000 MEM MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x03 INT_LINE 0x12 pci bus 0x0000 cardnum 0x1b function 0x00: vendor 0x8086 device 0x284b Intel Corporation 82801H (ICH8 Family) HD Audio Controller CardVendor 0x1558 card 0x0122 (CLEVO/KAPOK Computer, Card unknown) STATUS 0x0010 COMMAND 0x0106 CLASS 0x04 0x03 0x00 REVISION 0x03 BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x10 BASE0 0x00000000f8700004 addr 0x00000000f8700000 MEM 64BIT MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x01 INT_LINE 0x16 BYTE_0 0x01 BYTE_1 0x00 BYTE_2 0x00 BYTE_3 0x03 pci bus 0x0000 cardnum 0x1c function 0x00: vendor 0x8086 device 0x283f Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 STATUS 0x0010 COMMAND 0x0007 CLASS 0x06 0x04 0x00 REVISION 0x03 HEADER 0x81 LATENCY 0x00 PRIBUS 0x00 SECBUS 0x02 SUBBUS 0x03 SECLT 0x00 SECSTATUS 0x2000 IOBASE 0xf000 IOLIM 0x0fff NOPREFETCH_MEMBASE 0xf8200000 MEMLIM 0xf82fffff PREFETCH_MEMBASE 0x00000000fff00000 MEMLIM 0x00000000000fffff NO_FAST_B2B NO_SEC_BUS_RST NO_M_ABRT NO_VGA_EN ISA_EN NO_SERR_EN NO_PERR_EN pci bus 0x0000 cardnum 0x1c function 0x01: vendor 0x8086 device 0x2841 Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 STATUS 0x0010 COMMAND 0x0107 CLASS 0x06 0x04 0x00 REVISION 0x03 HEADER 0x81 LATENCY 0x00 PRIBUS 0x00 SECBUS 0x04 SUBBUS 0x05 SECLT 0x00 SECSTATUS 0x2000 IOBASE 0x2000 IOLIM 0x2fff NOPREFETCH_MEMBASE 0xf4000000 MEMLIM 0xf7ffffff PREFETCH_MEMBASE 0x00000000f0000000 MEMLIM 0x00000000f3ffffff NO_FAST_B2B NO_SEC_BUS_RST NO_M_ABRT NO_VGA_EN ISA_EN NO_SERR_EN NO_PERR_EN pci bus 0x0000 cardnum 0x1c function 0x02: vendor 0x8086 device 0x2843 Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 STATUS 0x0010 COMMAND 0x0107 CLASS 0x06 0x04 0x00 REVISION 0x03 HEADER 0x81 LATENCY 0x00 PRIBUS 0x00 SECBUS 0x06 SUBBUS 0x06 SECLT 0x00 SECSTATUS 0x2000 IOBASE 0xf000 IOLIM 0x0fff NOPREFETCH_MEMBASE 0xfff00000 MEMLIM 0x000fffff PREFETCH_MEMBASE 0x00000000fff00000 MEMLIM 0x00000000000fffff NO_FAST_B2B NO_SEC_BUS_RST NO_M_ABRT NO_VGA_EN ISA_EN NO_SERR_EN NO_PERR_EN pci bus 0x0000 cardnum 0x1c function 0x03: vendor 0x8086 device 0x2845 Intel Corporation 82801H (ICH8 Family) PCI Express Port 4 STATUS 0x0010 COMMAND 0x0107 CLASS 0x06 0x04 0x00 REVISION 0x03 HEADER 0x81 LATENCY 0x00 PRIBUS 0x00 SECBUS 0x07 SUBBUS 0x07 SECLT 0x00 SECSTATUS 0x6000 IOBASE 0x3000 IOLIM 0x3fff NOPREFETCH_MEMBASE 0xf8300000 MEMLIM 0xf83fffff PREFETCH_MEMBASE 0x00000000fff00000 MEMLIM 0x00000000000fffff NO_FAST_B2B NO_SEC_BUS_RST NO_M_ABRT NO_VGA_EN ISA_EN NO_SERR_EN NO_PERR_EN pci bus 0x0000 cardnum 0x1d function 0x00: vendor 0x8086 device 0x2830 Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 CardVendor 0x1558 card 0x0122 (CLEVO/KAPOK Computer, Card unknown) STATUS 0x0280 COMMAND 0x0005 CLASS 0x0c 0x03 0x00 REVISION 0x03 BIST 0x00 HEADER 0x80 LATENCY 0x00 CACHE 0x00 BASE4 0x00001861 addr 0x00001860 I/O MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x01 INT_LINE 0x17 pci bus 0x0000 cardnum 0x1d function 0x01: vendor 0x8086 device 0x2831 Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 CardVendor 0x1558 card 0x0122 (CLEVO/KAPOK Computer, Card unknown) STATUS 0x0280 COMMAND 0x0005 CLASS 0x0c 0x03 0x00 REVISION 0x03 BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x00 BASE4 0x00001881 addr 0x00001880 I/O MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x02 INT_LINE 0x13 pci bus 0x0000 cardnum 0x1d function 0x02: vendor 0x8086 device 0x2832 Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 CardVendor 0x1558 card 0x0122 (CLEVO/KAPOK Computer, Card unknown) STATUS 0x0280 COMMAND 0x0005 CLASS 0x0c 0x03 0x00 REVISION 0x03 BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x00 BASE4 0x000018a1 addr 0x000018a0 I/O MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x03 INT_LINE 0x12 pci bus 0x0000 cardnum 0x1d function 0x07: vendor 0x8086 device 0x2836 Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 CardVendor 0x1558 card 0x0122 (CLEVO/KAPOK Computer, Card unknown) STATUS 0x0290 COMMAND 0x0106 CLASS 0x0c 0x03 0x20 REVISION 0x03 BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x00 BASE0 0xf8704400 addr 0xf8704400 MEM MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x01 INT_LINE 0x17 pci bus 0x0000 cardnum 0x1e function 0x00: vendor 0x8086 device 0x2448 Intel Corporation 82801 Mobile PCI Bridge STATUS 0x0010 COMMAND 0x0107 CLASS 0x06 0x04 0x01 REVISION 0xf3 HEADER 0x01 LATENCY 0x00 PRIBUS 0x00 SECBUS 0x08 SUBBUS 0x08 SECLT 0x20 SECSTATUS 0x2280 IOBASE 0x4000 IOLIM 0x4fff NOPREFETCH_MEMBASE 0xf8400000 MEMLIM 0xf84fffff PREFETCH_MEMBASE 0x00000000fff00000 MEMLIM 0x00000000000fffff NO_FAST_B2B NO_SEC_BUS_RST NO_M_ABRT NO_VGA_EN ISA_EN NO_SERR_EN NO_PERR_EN pci bus 0x0000 cardnum 0x1f function 0x00: vendor 0x8086 device 0x2815 Intel Corporation 82801HEM (ICH8M) LPC Interface Controller CardVendor 0x1558 card 0x0122 (CLEVO/KAPOK Computer, Card unknown) STATUS 0x0210 COMMAND 0x0107 CLASS 0x06 0x01 0x00 REVISION 0x03 BIST 0x00 HEADER 0x80 LATENCY 0x00 CACHE 0x00 BYTE_0 0x01 BYTE_1 0x10 BYTE_2 0x00 BYTE_3 0x00 pci bus 0x0000 cardnum 0x1f function 0x02: vendor 0x8086 device 0x2828 Intel Corporation 82801HBM/HEM (ICH8M/ICH8M-E) SATA IDE Controller CardVendor 0x1558 card 0x0122 (CLEVO/KAPOK Computer, Card unknown) STATUS 0x02b8 COMMAND 0x0005 CLASS 0x01 0x01 0x80 REVISION 0x03 BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x00 BASE0 0x00000001 addr 0x00000000 I/O BASE1 0x00000001 addr 0x00000000 I/O BASE2 0x00000001 addr 0x00000000 I/O BASE3 0x00000001 addr 0x00000000 I/O BASE4 0x000018e1 addr 0x000018e0 I/O BASE5 0x000018d1 addr 0x000018d0 I/O MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x02 INT_LINE 0xff BYTE_0 0x00 BYTE_1 0x80 BYTE_2 0x73 BYTE_3 0xe3 pci bus 0x0000 cardnum 0x1f function 0x03: vendor 0x8086 device 0x283e Intel Corporation 82801H (ICH8 Family) SMBus Controller CardVendor 0x1558 card 0x0122 (CLEVO/KAPOK Computer, Card unknown) STATUS 0x0280 COMMAND 0x0103 CLASS 0x0c 0x05 0x00 REVISION 0x03 BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x00 BASE4 0x00001c01 addr 0x00001c00 I/O MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x03 INT_LINE 0x13 BYTE_0 0x01 BYTE_1 0x00 BYTE_2 0x00 BYTE_3 0x00 pci bus 0x0002 cardnum 0x00 function 0x00: vendor 0x8086 device 0x4222 Intel Corporation PRO/Wireless 3945ABG Network Connection CardVendor 0x8086 card 0x1001 (Intel Corporation, Card unknown) STATUS 0x0010 COMMAND 0x0106 CLASS 0x02 0x80 0x00 REVISION 0x02 BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x10 BASE0 0xf8200000 addr 0xf8200000 MEM MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x01 INT_LINE 0x10 pci bus 0x0007 cardnum 0x00 function 0x00: vendor 0x10ec device 0x8168 Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller CardVendor 0x1558 card 0x0122 (CLEVO/KAPOK Computer, Card unknown) STATUS 0x4010 COMMAND 0x0107 CLASS 0x02 0x00 0x00 REVISION 0x01 BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x10 BASE0 0x00003001 addr 0x00003000 I/O BASE2 0x00000000f8300004 addr 0x00000000f8300000 MEM 64BIT MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x01 INT_LINE 0x13 BYTE_0 0x01 BYTE_1 0x48 BYTE_2 0xc2 BYTE_3 0xf7 pci bus 0x0008 cardnum 0x07 function 0x00: vendor 0x1524 device 0x0730 ENE Technology Inc ENE PCI Memory Stick Card Reader Controller CardVendor 0x1558 card 0x0122 (CLEVO/KAPOK Computer, Card unknown) STATUS 0x0210 COMMAND 0x0106 CLASS 0x05 0x01 0x00 REVISION 0x00 BIST 0x00 HEADER 0x80 LATENCY 0x20 CACHE 0x10 BASE0 0xf8400800 addr 0xf8400800 MEM MAX_LAT 0x04 MIN_GNT 0x01 INT_PIN 0x01 INT_LINE 0x10 pci bus 0x0008 cardnum 0x07 function 0x01: vendor 0x1524 device 0x0750 ENE Technology Inc ENE PCI SmartMedia / xD Card Reader Controller CardVendor 0x1558 card 0x0122 (CLEVO/KAPOK Computer, Card unknown) STATUS 0x0210 COMMAND 0x0106 CLASS 0x08 0x05 0x01 REVISION 0x00 BIST 0x00 HEADER 0x80 LATENCY 0x20 CACHE 0x10 BASE0 0xf8400c00 addr 0xf8400c00 MEM MAX_LAT 0x48 MIN_GNT 0x20 INT_PIN 0x01 INT_LINE 0x10 pci bus 0x0008 cardnum 0x07 function 0x03: vendor 0x1524 device 0x0751 ENE Technology Inc ENE PCI Secure Digital / MMC Card Reader Controller CardVendor 0x1558 card 0x0122 (CLEVO/KAPOK Computer, Card unknown) STATUS 0x0210 COMMAND 0x0106 CLASS 0x05 0x01 0x00 REVISION 0x00 BIST 0x00 HEADER 0x80 LATENCY 0x20 CACHE 0x10 BASE0 0xf8401000 addr 0xf8401000 MEM MAX_LAT 0x48 MIN_GNT 0x20 INT_PIN 0x01 INT_LINE 0x10 pci bus 0x0008 cardnum 0x09 function 0x00: vendor 0x1106 device 0x3044 VIA Technologies, Inc. IEEE 1394 Host Controller CardVendor 0x1558 card 0x0122 (CLEVO/KAPOK Computer, Card unknown) STATUS 0x0210 COMMAND 0x0107 CLASS 0x0c 0x00 0x10 REVISION 0xc0 BIST 0x00 HEADER 0x00 LATENCY 0x20 CACHE 0x10 BASE0 0xf8400000 addr 0xf8400000 MEM BASE1 0x00004001 addr 0x00004000 I/O MAX_LAT 0x20 MIN_GNT 0x00 INT_PIN 0x01 INT_LINE 0x13 Sdav From db at db.net Sun Oct 5 18:11:07 2008 From: db at db.net (Diane Bruce) Date: Sun Oct 5 18:11:14 2008 Subject: processes hanging in _umtx_op In-Reply-To: <86bpxz58l9.fsf@ponoka.ab.hsia.telus.net> References: <86r66v6gsj.fsf@ponoka.ab.hsia.telus.net> <200810051546.28440.fbsd.questions@rachie.is-a-geek.net> <86bpxz58l9.fsf@ponoka.ab.hsia.telus.net> Message-ID: <20081005173425.GA67502@night.db.net> On Sun, Oct 05, 2008 at 10:07:30AM -0600, Dale Hagglund wrote: > >>>>> "Mel" == Mel writes: > > Mel> Can you change scheduler to ULE and rebuild kernel? > Mel> Or better yet, try 7.1-PRERELEASE, since it's good to know if > Mel> this bug persists with 7.1 being close to release. ... > This was my guess as well. I first noticed this hang while attempting > to build gnuradio around the end of August. During conversations with > the maintainer, Diane Bruce, about this hang she recognized it from > before and suggested that she'd been able to fix it at that time by > upgrading all ports (or maybe just the wx port) on her system. As a data point, I am running ULE here on a single processor with FreeBSD 7.1 (pre-release). gnuradio builds fine here. > > Mel> Now, it can simply be programmer error (lock twice, unlock > Mel> once), but most of the time the kernel catches this for me with > Mel> EDEADLK. > > The background with gnuradio and the Diane's suggestion to upgrade ports > lead to my thought that I could easily have some sort of conflicting or > out-of-date combination of libraries causing some sort of locking > problem. I thought I had recognised this problem, but now I am not so sure, it looked like one a problem I thought I had remembered with wx. > That said, I've since upgraded almost all of my ports/packages, but > building gnuradio still hangs the same way. Life/work got very busy bizarre. > just after that, so I unfortunately didn't got back to Diane with this > update. Also, I just saw the same hang with the openoffice 3.0beta I was going to check with you about it anyway. > (milestone m5) package. Just out of curiousity, I produced the list > of shared dependencies between these packages and have attached these below. Ok. Here is my list. Information for gnuradio-3.1.3: Depends on: Dependency: xineramaproto-1.1.2 Dependency: xf86vidmodeproto-2.2.2 Dependency: xf86miscproto-0.9.2 Dependency: xf86dgaproto-2.0.3 Dependency: xextproto-7.0.2 Dependency: xbitmaps-1.0.1 Dependency: videoproto-2.2.2 Dependency: scrnsaverproto-1.1.0 Dependency: renderproto-0.9.3 Dependency: recordproto-1.13.2 Dependency: randrproto-1.2.1 Dependency: printproto-1.0.3 Dependency: kbproto-1.0.3 Dependency: inputproto-1.4.2.1 Dependency: fixesproto-4.0 Dependency: damageproto-1.1.0_2 Dependency: compositeproto-0.4 Dependency: fontsproto-2.0.2 Dependency: fontcacheproto-0.1.2 Dependency: font-util-1.0.1 Dependency: encodings-1.0.2,1 Dependency: expat-2.0.1 Dependency: hicolor-icon-theme-0.10_2 Dependency: tcl-8.4.19,1 Dependency: python25-2.5.2_2 Dependency: py25-numeric-24.2 Dependency: perl-5.8.8_1 Dependency: png-1.2.28 Dependency: libdrm-2.3.0 Dependency: jpeg-6b_7 Dependency: tiff-3.8.2_1 Dependency: pkg-config-0.23_1 Dependency: xtrans-1.0.4 Dependency: xproto-7.0.10_1 Dependency: pixman-0.10.0_2 Dependency: libtasn1-1.4 Dependency: libfontenc-1.0.4 Dependency: libXdmcp-1.0.2_1 Dependency: libXau-1.0.3_2 Dependency: libX11-1.1.3_1,1 Dependency: tk-8.4.19,2 Dependency: py25-tkinter-2.5.2_2 Dependency: libxkbfile-1.0.4 Dependency: liboldX-1.0.1 Dependency: libXrender-0.9.4_1 Dependency: libXfixes-4.0.3_1 Dependency: libXext-1.0.3,1 Dependency: libdmx-1.0.2_1 Dependency: libXxf86vm-1.0.1 Dependency: libXxf86misc-1.0.1 Dependency: libXxf86dga-1.0.2 Dependency: libXv-1.0.3_1,1 Dependency: libXvMC-1.0.4_1 Dependency: libXtst-1.0.3_1 Dependency: libXres-1.0.3_3 Dependency: libXrandr-1.2.2_1 Dependency: libXp-1.0.0,1 Dependency: libXinerama-1.0.2,1 Dependency: libXi-1.1.3,1 Dependency: libXfontcache-1.0.4 Dependency: libXevie-1.0.2 Dependency: libXdamage-1.1.1 Dependency: libXcursor-1.1.9_1 Dependency: libXcomposite-0.4.0,1 Dependency: libXScrnSaver-1.1.2 Dependency: libICE-1.0.4_1,1 Dependency: libSM-1.0.3_1,1 Dependency: libXt-1.0.5_1 Dependency: trapproto-3.4.3 Dependency: libxkbui-1.0.2_1 Dependency: libXprintUtil-1.0.1 Dependency: libXprintAppUtil-1.0.1 Dependency: libXpm-3.5.7 Dependency: libXmu-1.0.3,1 Dependency: libXaw-1.0.4_1,1 Dependency: libXTrap-1.0.0 Dependency: libGL-7.0.3 Dependency: libGLU-7.0.3 Dependency: libFS-1.0.0_1 Dependency: freetype2-2.3.7 Dependency: py25-imaging-1.1.6_2 Dependency: mkfontscale-1.0.3 Dependency: mkfontdir-1.0.3_1 Dependency: libXfont-1.3.1_3,1 Dependency: fontconfig-2.5.0,1 Dependency: libXft-2.1.13 Dependency: xorg-libraries-7.3_2 Dependency: libglut-7.0.1_1 Dependency: py25-opengl-2.0.1.07_4 Dependency: font-misc-meltho-1.0.0_1 Dependency: font-misc-ethiopic-1.0.0 Dependency: font-bh-ttf-1.0.0 Dependency: fftw3-float-3.1.2 Dependency: fftw3-3.1.2 Dependency: cairo-1.6.4_2,1 Dependency: bitstream-vera-1.10_4 Dependency: xorg-fonts-truetype-7.3 Dependency: pcre-7.7_1 Dependency: libusb-0.1.12_2 Dependency: boost-python-1.34.1 Dependency: libiconv-1.11_1 Dependency: libxml2-2.6.32 Dependency: gettext-0.17_1 Dependency: libgpg-error-1.6_1 Dependency: libgcrypt-1.4.1_1 Dependency: opencdk-0.6.6,1 Dependency: gnutls-2.4.1_1 Dependency: glib-2.16.5 Dependency: gamin-0.1.9_2 Dependency: gio-fam-backend-2.16.5 Dependency: shared-mime-info-0.51 Dependency: pango-1.20.5 Dependency: cups-base-1.3.7_4 Dependency: pyephem-3.7.3.1,1 Dependency: libmspack-0.0.20040308_3 Dependency: atk-1.22.0_1 Dependency: gtk-2.12.11 Dependency: wxgtk2-common-2.6.3_4 Dependency: wxgtk2-contrib-common-2.6.3_3 Dependency: wxgtk2-2.6.3_5 Dependency: wxgtk2-contrib-2.6.3_3 Dependency: py25-wxPython-common-2.6.3.3_2 Dependency: py25-wxPython-2.6.3.3_1 - Diane -- - db@FreeBSD.org db@db.net http://www.db.net/~db From fbsd.questions at rachie.is-a-geek.net Sun Oct 5 18:19:04 2008 From: fbsd.questions at rachie.is-a-geek.net (Mel) Date: Sun Oct 5 18:19:11 2008 Subject: processes hanging in _umtx_op In-Reply-To: <86bpxz58l9.fsf@ponoka.ab.hsia.telus.net> References: <86r66v6gsj.fsf@ponoka.ab.hsia.telus.net> <200810051546.28440.fbsd.questions@rachie.is-a-geek.net> <86bpxz58l9.fsf@ponoka.ab.hsia.telus.net> Message-ID: <200810052019.01920.fbsd.questions@rachie.is-a-geek.net> On Sunday 05 October 2008 18:07:30 Dale Hagglund wrote: > >>>>> "Mel" == Mel writes: > Mel> It's not a 'standard answer', btw, but an educated guess, since > Mel> utmx is (simplified) the kernel equivalent of > Mel> pthread_(rwlock|mutex)_* and looks like it's hanging in one of > Mel> those functions. > > This was my guess as well. I first noticed this hang while attempting > to build gnuradio around the end of August. During conversations with > the maintainer, Diane Bruce, about this hang she recognized it from > before and suggested that she'd been able to fix it at that time by > upgrading all ports (or maybe just the wx port) on her system. > > Mel> Now, it can simply be programmer error (lock twice, unlock > Mel> once), but most of the time the kernel catches this for me with > Mel> EDEADLK. > > The background with gnuradio and the Diane's suggestion to upgrade ports > lead to my thought that I could easily have some sort of conflicting or > out-of-date combination of libraries causing some sort of locking > problem. If upgrading ports is a possible solution, then you have the fine task of finding out, which library in everything that's being loaded is *NOT* linked with libthr, cause a likely candidate would be two different threading libraries being used. I would start with ldd -a /path/to/python/wx.so and see if both libthr.so and libpthread.so (or maybe even libkse) show up. Also inspect /etc/libmap.conf for entries you may have added in a not too recent past and forgot about. Unfortunately, I see no obvious candidates in your package list (ie: compat-[456]x, *flash*). -- Mel Problem with today's modular software: they start with the modules and never get to the software part. From johnny64 at swissjabber.org Sun Oct 5 18:23:40 2008 From: johnny64 at swissjabber.org ((-K JohnNy) Date: Sun Oct 5 18:23:47 2008 Subject: pf vs. RST attack question In-Reply-To: <200810051753.m95Hr3N5014872@mp.cs.niu.edu> References: <200810051753.m95Hr3N5014872@mp.cs.niu.edu> Message-ID: <20081005182326.GE1787@georg.localdomain> On Sun, Oct 05, 2008 at 12:53:03PM -0500, Scott Bennett wrote: > I'm getting a lot of messages like this: > > Oct 4 14:30:00 hellas kernel: Limiting closed port RST response from 250 to 200 packets/sec > > Is there some rule I can insert into /etc/pf.conf to reject these apparently > invalid RST packets before they can bother TCP? At the same time, I do not > want to reject legitimate RST packets. > Thanks in advance for any clues! Well, just to clarify a bit, the RST packets aren't the ones you are getting. You are apparently getting port-scanned. The message just says it won't reply by an RST packet to a SYN going to a closed port more than 200 times per second. I would suggest ignoring all SYN packets going to closed ports. Haven't yet used pf though, so I can't say how exactly to do this. -- (-K JohnNy alias Partial Derivative ? [home] http://johnny64.fixinko.sk/ [icq] 338328204 [abandoned] [jabber] JohnNy64@swissjabber.org [skype] JohnNy64-konik [abandoned] -------------- 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/20081005/7e867431/attachment.pgp From fbsd.questions at rachie.is-a-geek.net Sun Oct 5 18:27:07 2008 From: fbsd.questions at rachie.is-a-geek.net (Mel) Date: Sun Oct 5 18:27:14 2008 Subject: pf vs. RST attack question In-Reply-To: <200810051753.m95Hr3N5014872@mp.cs.niu.edu> References: <200810051753.m95Hr3N5014872@mp.cs.niu.edu> Message-ID: <200810052027.05712.fbsd.questions@rachie.is-a-geek.net> On Sunday 05 October 2008 19:53:03 Scott Bennett wrote: > I'm getting a lot of messages like this: > > Oct 4 14:30:00 hellas kernel: Limiting closed port RST response from 250 > to 200 packets/sec > > Is there some rule I can insert into /etc/pf.conf to reject these > apparently invalid RST packets before they can bother TCP? At the same > time, I do not want to reject legitimate RST packets. > Thanks in advance for any clues! Chances are pf is *creating* them. RST responses are used to signal that a port is closed, which is what block-policy return does. Combined with default block all, a simple portscan will generate this. Switch to block-policy drop and set return for real denies, not default denies. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. From db at db.net Sun Oct 5 19:01:10 2008 From: db at db.net (Diane Bruce) Date: Sun Oct 5 19:01:17 2008 Subject: processes hanging in _umtx_op In-Reply-To: <200810052019.01920.fbsd.questions@rachie.is-a-geek.net> References: <86r66v6gsj.fsf@ponoka.ab.hsia.telus.net> <200810051546.28440.fbsd.questions@rachie.is-a-geek.net> <86bpxz58l9.fsf@ponoka.ab.hsia.telus.net> <200810052019.01920.fbsd.questions@rachie.is-a-geek.net> Message-ID: <20081005190107.GA94902@night.db.net> On Sun, Oct 05, 2008 at 08:19:01PM +0200, Mel wrote: > On Sunday 05 October 2008 18:07:30 Dale Hagglund wrote: > > >>>>> "Mel" == Mel writes: > ... > > If upgrading ports is a possible solution, then you have the fine task of > finding out, which library in everything that's being loaded is *NOT* linked > with libthr, cause a likely candidate would be two different threading > libraries being used. > I would start with ldd -a /path/to/python/wx.so and see if both libthr.so and > libpthread.so (or maybe even libkse) show up. That would do it. - Diane -- - db@FreeBSD.org db@db.net http://www.db.net/~db From kline at thought.org Sun Oct 5 19:42:41 2008 From: kline at thought.org (Gary Kline) Date: Sun Oct 5 19:42:48 2008 Subject: kde4 question Message-ID: <20081005194232.GA72859@thought.org> Over the past four days I've managed to get my FreeBSD server running KDE up by installing kde4. Now, for some reason, konqueror fails to conntect anywhere. How can I free up my old kde3 files and get konqueror working again? gary -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org From freebsd at optiksecurite.com Sun Oct 5 19:44:41 2008 From: freebsd at optiksecurite.com (FreeBSD) Date: Sun Oct 5 19:44:48 2008 Subject: Freebsd-update with a custom kernel and jails In-Reply-To: <28283d910810051047i30de4c4bsd1e8526474009c40@mail.gmail.com> References: <48E8F253.6010206@optiksecurite.com> <28283d910810051047i30de4c4bsd1e8526474009c40@mail.gmail.com> Message-ID: <48E91947.4080204@optiksecurite.com> matt donovan a ?crit : > On Sun, Oct 5, 2008 at 12:58 PM, FreeBSD wrote: > > >> There is my situation: >> I want to be able to use freebsd-update to update a FreeBSD 7.0-Release >> installation to the latest security patches (I want an update and not an >> upgrade if I understand correctly). Where this gets more complicated is that >> I need a custom kernel (for ULE, pf and ALTQ while also disabling some >> devices I'll never need) and I want to use jails to isolate every services >> (Apache and MySQL by now). >> >> So, I read at some places that you can't use freebsd-update with a custom >> kernel, but I'm not sure if this apply only in the case of an upgrade >> between release or if I'll need to manually recompile the kernel with every >> use of freebsd-update. >> >> I also read that it's possible to update the jails from the host system >> with the -b flag. In this case, I supposed that I need to update the host >> system before the jail, but is the procedure going to be exactly the same? >> >> yes all you need to do is freebsd-update fetch install your kernel won't be >> updated but your userland will >> >> So it is right to say that the custom kernel "problem" applies only when upgrading to a newer release? All I have to do is 'freebsd-update fetch install' to update the base system then 'freebsd-update -b /usr/jail/jail_name fetch install' to update the jails? I hope so because it would be very impressing :) Martin From koitsu at FreeBSD.org Mon Oct 6 00:36:03 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Mon Oct 6 00:36:10 2008 Subject: pf vs. RST attack question In-Reply-To: <200810051753.m95Hr3N5014872@mp.cs.niu.edu> References: <200810051753.m95Hr3N5014872@mp.cs.niu.edu> Message-ID: <20081006003601.GA5733@icarus.home.lan> On Sun, Oct 05, 2008 at 12:53:03PM -0500, Scott Bennett wrote: > I'm getting a lot of messages like this: > > Oct 4 14:30:00 hellas kernel: Limiting closed port RST response from 250 to 200 packets/sec > > Is there some rule I can insert into /etc/pf.conf to reject these apparently > invalid RST packets before they can bother TCP? At the same time, I do not > want to reject legitimate RST packets. They're outbound RST packets coming from your box as a result of incoming packets someone is sending you (possibly an attack). Proper firewalling rules should help defeat this, but there is no "magic rule" you can place into pf.conf that will stop this. If you want a "magic solution", see blackhole(4). -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From frank.com at blastoff.com.au Mon Oct 6 00:48:58 2008 From: frank.com at blastoff.com.au (Frank Cam) Date: Mon Oct 6 00:49:07 2008 Subject: CARP issue with 2 Masters In-Reply-To: References: Message-ID: <1223253255.48e95d077976f@webmail.webprophets.net.au> Hi Matthew That did the trick, have accidentally been using an old pre-carp set of firewall rules for the last few days. After your response, I went back and updated to the new rule-set. It's always the simple things. Thank you, your response was greatly appreciated. Frank > > I have CARP running on a master and a slave server and for some unknown > reason > > the slave continues to classify itself as a master, even though the > advskew is > > higher than on the master. > > It appears that queries sent to the CARP ip address go to the master 50% > of the > > time and the slave 50% of the time when both servers are up. This plays > havoc > > with my databases as I synchronise them asynchronously. > > > > When I take the carp interface down on the slave using 'ifconfig carp0 > down && > > ifconfig carp0 up' it lists it's status as 'backup' for about 10 seconds > and > > then goes back to 'master'. > > Have you by any chance firewalled out the multicast packets that CARP uses > to test for interface death? If either one of a CARP pair can't see CARP > packets > frequently enough it will think the other is down and promote itself to > master. > > If your firewall is blocking, then add a rule like this on both machines: > > pass quick on $ext_if proto carp \ > from $ext_if:network to $carp_mcast keep state > > $carp_mcast is defined as "224.0.0.18" > > 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 > > -------------------------------------------------------------------- Come and visit Web Prophets Website at http://www.webprophets.net.au From dale.hagglund at gmail.com Mon Oct 6 03:33:12 2008 From: dale.hagglund at gmail.com (Dale Hagglund) Date: Mon Oct 6 03:33:19 2008 Subject: processes hanging in _umtx_op In-Reply-To: <200810052019.01920.fbsd.questions@rachie.is-a-geek.net> (Mel's message of "Sun, 5 Oct 2008 20:19:01 +0200") References: <86r66v6gsj.fsf@ponoka.ab.hsia.telus.net> <200810051546.28440.fbsd.questions@rachie.is-a-geek.net> <86bpxz58l9.fsf@ponoka.ab.hsia.telus.net> <200810052019.01920.fbsd.questions@rachie.is-a-geek.net> Message-ID: <86skra4cuo.fsf@ponoka.ab.hsia.telus.net> [Mel, the last time I replied to your @rachie address, I got a bounce. I'm still including it here on the CC list. Should I remove it and just reply to you via this list? --rdh] Diane, Mel, thanks for your suggestions so far. Mel> If upgrading ports is a possible solution, then you have the Mel> fine task of finding out, which library in everything that's Mel> being loaded is *NOT* linked with libthr, cause a likely Mel> candidate would be two different threading libraries being Mel> used. I would start with ldd -a /path/to/python/wx.so and see Mel> if both libthr.so and libpthread.so (or maybe even libkse) show Mel> up. What I did was this: $ python -c "import wx"& which hangs. Then I did $ lsof -p $pid | grep '\.so' to get a list of open shared objects. The only matches for "thr" are /lib/libthr.so.3 /usr/local/lib/libgthread-2.0.so.0 There are no matches for "kse". Then I started doing $ lsof -p $pid | > grep '\.so' | > awk '{print $NF}' | > xargs -n 1 ldd -a | less When I looked closely at the many libthr.so.3 references, though, I saw something quite interesting. As far as I can tell, not all are loaded at the same address. This is quite confusing to me. $ lsof -p $pid | > grep '\.so' | > awk '{print $NF}' | > xargs -n 1 ldd -f '\t%o %p %x\n' -a | > awk 'NF==1 {prefix=$1; next} {print prefix, $0}' | > awk '$2 ~ /libthr/ { print $4 }' | > sort | > uniq -c | > sort -nr 22 0x28bc8000 7 0x2953f000 5 0x2945f000 5 0x29371000 4 0x29407000 4 0x293fa000 3 0x2934d000 2 0x28952000 2 0x2894b000 1 0x29a79000 1 0x2960d000 1 0x289fb000 1 0x28921000 1 0x28548000 1 0x281b6000 $ However, closer inspection shows that, confusing as it is, this behaviour is common to almost all the shared libraries loaded into the stuck python process. Indeed, only libc seems to have just one loaded address. Also, this pipeline is actually inspecting the results from many different runs of ldd on each .so, instead of looking at the state of the running process. A little more poking leads to the following result that is again confusing to me $ lsof -p 79117 | > grep '\.so' | > awk '{print $NF}' | > sort | uniq -c | sort -nr | > head 2 /usr/local/lib/python2.5/site-packages/wx-2.8-gtk2-ansi/wx/_core_.so 1 /usr/local/lib/libxml2.so.5 1 /usr/local/lib/libwx_gtk2_xrc-2.8.so.0.2.0 1 /usr/local/lib/libwx_gtk2_qa-2.8.so.0.2.0 1 /usr/local/lib/libwx_gtk2_html-2.8.so.0.2.0 1 /usr/local/lib/libwx_gtk2_core-2.8.so.0.2.0 1 /usr/local/lib/libwx_gtk2_aui-2.8.so.0.2.0 1 /usr/local/lib/libwx_gtk2_adv-2.8.so.0.2.0 1 /usr/local/lib/libwx_base_xml-2.8.so.0.2.0 1 /usr/local/lib/libwx_base_net-2.8.so.0.2.0 $ The python wx core library seem to have been opened twice, unlike every other shared object that the python process has opened. Anyway, I don't know what to make of these results. Also, they seem at least somewhat unlikely to be related to seeing the same hang in ooo3. Mel> Also inspect /etc/libmap.conf for entries you may have added in Mel> a not too recent past and forgot about. No such file on my system. Mel> Unfortunately, I see no obvious candidates in your package list (ie: Mel> compat-[456]x, *flash*). I had compat-5x installed and removed it, but the problem persisted. I still have compat-6x installed. So, the upshot is I still don't see a smoking gun anywhere, but I certainly see some things that are confusing, although that has no bearing on whether or not they're actually problems. If anything above inspires you with more questions, let me know and I can do more poking around. The next step, I guess, is to rebuild with ULE and/or try out 7.1 prerelease. Thanks again for your help so far. Dale. From freebsd at optiksecurite.com Mon Oct 6 03:34:11 2008 From: freebsd at optiksecurite.com (FreeBSD) Date: Mon Oct 6 03:34:18 2008 Subject: Freebsd-update with a custom kernel and jails In-Reply-To: <48E91947.4080204@optiksecurite.com> References: <48E8F253.6010206@optiksecurite.com> <28283d910810051047i30de4c4bsd1e8526474009c40@mail.gmail.com> <48E91947.4080204@optiksecurite.com> Message-ID: <48E98751.10605@optiksecurite.com> FreeBSD a ?crit : > matt donovan a ?crit : >> On Sun, Oct 5, 2008 at 12:58 PM, FreeBSD >> wrote: >> >> >>> There is my situation: >>> I want to be able to use freebsd-update to update a FreeBSD 7.0-Release >>> installation to the latest security patches (I want an update and >>> not an >>> upgrade if I understand correctly). Where this gets more complicated >>> is that >>> I need a custom kernel (for ULE, pf and ALTQ while also disabling some >>> devices I'll never need) and I want to use jails to isolate every >>> services >>> (Apache and MySQL by now). >>> >>> So, I read at some places that you can't use freebsd-update with a >>> custom >>> kernel, but I'm not sure if this apply only in the case of an upgrade >>> between release or if I'll need to manually recompile the kernel >>> with every >>> use of freebsd-update. >>> >>> I also read that it's possible to update the jails from the host system >>> with the -b flag. In this case, I supposed that I need to update the >>> host >>> system before the jail, but is the procedure going to be exactly the >>> same? >>> >>> yes all you need to do is freebsd-update fetch install your kernel >>> won't be >>> updated but your userland will >>> >>> > So it is right to say that the custom kernel "problem" applies only > when upgrading to a newer release? > > All I have to do is 'freebsd-update fetch install' to update the base > system then 'freebsd-update -b /usr/jail/jail_name fetch install' to > update the jails? > > I hope so because it would be very impressing :) > > Martin Another question just came to my head: May I update the src before compiling my custom kernel or should I keep the original src that shipped with the release to be able to use freebsd-update? Thank you very much for your help! Martin From rambiusparkisanius at gmail.com Mon Oct 6 05:14:50 2008 From: rambiusparkisanius at gmail.com (Ivan "Rambius" Ivanov) Date: Mon Oct 6 05:14:56 2008 Subject: How to generate password hashes for vipw and chpass Message-ID: <89ce7f740810052214k4419d939s8bb8ebce5e703626@mail.gmail.com> Hello, According to man pages of chpass(1) and vipw(1) I can create and modify users by supplying a user database entry in passwd(5) format. The only problem I face is that I do not know how to generate the password hashes for the password field. Following section 14.4 [http://www.freebsd.org/doc/en/books/handbook/crypt.html] from the handbook I found out that my system is using md5 to encrypt the passwords. I tried to use /sbin/md5 to generate the hash: # /sbin/md5 -s newpassword and then I passed the output to chpass. I tried to use the new password for the next login but it failed - so I believe this is wrong. Can you please show me how to generate the password hashes? Regards Rambius -- Tangra Mega Rock: http://www.radiotangra.com From talk at holon.urwis.cc Mon Oct 6 05:59:38 2008 From: talk at holon.urwis.cc (Adam Zaleski) Date: Mon Oct 6 05:59:46 2008 Subject: How to generate password hashes for vipw and chpass In-Reply-To: <89ce7f740810052214k4419d939s8bb8ebce5e703626@mail.gmail.com> References: <89ce7f740810052214k4419d939s8bb8ebce5e703626@mail.gmail.com> Message-ID: <48E9A4D1.6020008@holon.urwis.cc> Ivan "Rambius" Ivanov pisze: > # /sbin/md5 -s newpassword > and then I passed the output to chpass. I tried to use the new > password for the next login but it failed - so I believe this is > wrong. > Can you please show me how to generate the password hashes? You can add new account with one command like this: echo user_password |pw user add new_user -h0 Also if you only want to generate valid password hash you can use 'openssl passwd -1 new_password' From dhaneshkk at hotmail.com Mon Oct 6 06:07:18 2008 From: dhaneshkk at hotmail.com (dhaneshk k) Date: Mon Oct 6 06:07:25 2008 Subject: acpi_tz0: _TMP value is absurd ignored (-269.7C) Message in every 3 seconds . Message-ID: People ; I installed freebsd-7.0 in a p4 machine , after installation when I reboot the machine , I am getting the message acpi_tz0: _TMP value is absurd ignored (-269.7C) in every 3 seconds .. intel p4 3.0 GHz Intel 82915G (915G GMCH ) How can i get rid off this ... can someone shed some light on this regard .. Thanks in advance Dhanesh _________________________________________________________________ Movies, sports & news! Get your daily entertainment fix, only on live.com http://www.live.com/?scope=video&form=MICOAL From talk at holon.urwis.cc Mon Oct 6 06:07:39 2008 From: talk at holon.urwis.cc (Adam Zaleski) Date: Mon Oct 6 06:07:46 2008 Subject: How to generate password hashes for vipw and chpass In-Reply-To: <89ce7f740810052214k4419d939s8bb8ebce5e703626@mail.gmail.com> References: <89ce7f740810052214k4419d939s8bb8ebce5e703626@mail.gmail.com> Message-ID: <48E9A71C.90004@holon.urwis.cc> Ivan "Rambius" Ivanov pisze: > # /sbin/md5 -s newpassword > and then I passed the output to chpass. I tried to use the new > password for the next login but it failed - so I believe this is > wrong. > Can you please show me how to generate the password hashes? You can add new account with one command like this: echo user_password |pw user add new_user -h0 Also if you only want to generate valid password hash you can use 'openssl passwd -1 new_password' From koitsu at FreeBSD.org Mon Oct 6 06:11:09 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Mon Oct 6 06:11:15 2008 Subject: acpi_tz0: _TMP value is absurd ignored (-269.7C) Message in every 3 seconds . In-Reply-To: References: Message-ID: <20081006061107.GA11751@icarus.home.lan> On Mon, Oct 06, 2008 at 06:07:17AM +0000, dhaneshk k wrote: > People ; > I installed freebsd-7.0 in a p4 machine , after installation when I reboot the machine , I am getting the message > acpi_tz0: _TMP value is absurd ignored (-269.7C) in every 3 seconds .. > intel p4 3.0 GHz > Intel 82915G (915G GMCH ) > > How can i get rid off this ... can someone shed some light on this regard .. You posted this mail 3 days ago; I'm not sure why you're re-posting it. This question should go to the freebsd-acpi list, not freebsd-questions, as the problem is ACPI-related. (I am not subscribed to freebsd-acpi). A BIOS upgrade might fix the problem. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From rambiusparkisanius at gmail.com Mon Oct 6 06:18:02 2008 From: rambiusparkisanius at gmail.com (Ivan "Rambius" Ivanov) Date: Mon Oct 6 06:18:10 2008 Subject: How to generate password hashes for vipw and chpass In-Reply-To: <48E9A4D1.6020008@holon.urwis.cc> References: <89ce7f740810052214k4419d939s8bb8ebce5e703626@mail.gmail.com> <48E9A4D1.6020008@holon.urwis.cc> Message-ID: <89ce7f740810052318u6bf50560h8c79549f25ece641@mail.gmail.com> Hello Adam, On Mon, Oct 6, 2008 at 8:40 AM, Adam Zaleski wrote: > Ivan "Rambius" Ivanov pisze: > >> # /sbin/md5 -s newpassword >> and then I passed the output to chpass. I tried to use the new >> password for the next login but it failed - so I believe this is >> wrong. >> Can you please show me how to generate the password hashes? > > You can add new account with one command like this: > > echo user_password |pw user add new_user -h0 > > Also if you only want to generate valid password hash > you can use 'openssl passwd -1 new_password' Thank you, this is the command I was looking for. Regards Ivan -- Tangra Mega Rock: http://www.radiotangra.com From mailing_list at orange.nl Mon Oct 6 07:14:57 2008 From: mailing_list at orange.nl (Aniruddha) Date: Mon Oct 6 07:15:04 2008 Subject: USB mouse problems Message-ID: <1223275319.4116.7.camel@debian> I have one Razer Lachesis USB mouse attached to the rear usb ports of my pc. This mouse has never worked, however when I plug in another USB mouse in the front of my pc it works?! I wonder; how do I get the Razer Lachesis working without plugging it in the front? Furthermore I wondered if there is a way to use both the mouse in a terminal (gpm) and in xorg? -- Regards, Aniruddha From m.seaman at infracaninophile.co.uk Mon Oct 6 07:19:36 2008 From: m.seaman at infracaninophile.co.uk (Matthew Seaman) Date: Mon Oct 6 07:19:43 2008 Subject: pf vs. RST attack question In-Reply-To: <20081006003601.GA5733@icarus.home.lan> References: <200810051753.m95Hr3N5014872@mp.cs.niu.edu> <20081006003601.GA5733@icarus.home.lan> Message-ID: <48E9BBED.7090607@infracaninophile.co.uk> Jeremy Chadwick wrote: > On Sun, Oct 05, 2008 at 12:53:03PM -0500, Scott Bennett wrote: >> I'm getting a lot of messages like this: >> >> Oct 4 14:30:00 hellas kernel: Limiting closed port RST response from 250 to 200 packets/sec >> >> Is there some rule I can insert into /etc/pf.conf to reject these apparently >> invalid RST packets before they can bother TCP? At the same time, I do not >> want to reject legitimate RST packets. > > They're outbound RST packets coming from your box as a result of > incoming packets someone is sending you (possibly an attack). > > Proper firewalling rules should help defeat this, but there is no "magic > rule" you can place into pf.conf that will stop this. > > If you want a "magic solution", see blackhole(4). > block drop all looks fairly magical to me. Stick that at the top of your ruleset as your default policy, add more specific rules beneath it to allow the traffic you do want to pass, and Robert is your Mother's Brother. No more floods of RST packets. (Actually, I'd recommend always adding a 'log' clause to any rules that drop packets like so: 'block log drop all'. Makes running 'tcpdump -i pflog0' an invaluable debugging aid.) 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: 258 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081006/cbcbdda8/signature.pgp From koitsu at FreeBSD.org Mon Oct 6 07:26:13 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Mon Oct 6 07:26:20 2008 Subject: pf vs. RST attack question In-Reply-To: <48E9BBED.7090607@infracaninophile.co.uk> References: <200810051753.m95Hr3N5014872@mp.cs.niu.edu> <20081006003601.GA5733@icarus.home.lan> <48E9BBED.7090607@infracaninophile.co.uk> Message-ID: <20081006072611.GA13147@icarus.home.lan> On Mon, Oct 06, 2008 at 08:19:09AM +0100, Matthew Seaman wrote: > Jeremy Chadwick wrote: >> On Sun, Oct 05, 2008 at 12:53:03PM -0500, Scott Bennett wrote: >>> I'm getting a lot of messages like this: >>> >>> Oct 4 14:30:00 hellas kernel: Limiting closed port RST response from 250 to 200 packets/sec >>> >>> Is there some rule I can insert into /etc/pf.conf to reject these apparently >>> invalid RST packets before they can bother TCP? At the same time, I do not >>> want to reject legitimate RST packets. >> >> They're outbound RST packets coming from your box as a result of >> incoming packets someone is sending you (possibly an attack). >> >> Proper firewalling rules should help defeat this, but there is no "magic >> rule" you can place into pf.conf that will stop this. >> >> If you want a "magic solution", see blackhole(4). >> > > block drop all > > looks fairly magical to me. Stick that at the top of your ruleset as > your default policy, add more specific rules beneath it to allow > the traffic you do want to pass, and Robert is your Mother's Brother. > No more floods of RST packets. This is incredibly draconian. :-) I was trying my best to remain realistic. > (Actually, I'd recommend always adding a 'log' clause to any rules that > drop packets like so: 'block log drop all'. Makes running 'tcpdump -i pflog0' > an invaluable debugging aid.) I cannot advocate use of "log" on such "vague" rules, and my attitude is based on experience: We had "log" set on some of our deny rules, specifically on an entry which blocked any traffic to an IP to any ports other than 53 (DNS). Someone initiated an attack against that IP, to a destination port of something other than 53, which caused pflog to go crazy with logging. What inadvertently resulted was a local system DoS -- the system began sporting a load average between 40 and 50, and was sluggish. The root cause? /var/log/pflog was growing at such a tremendous rate that newsyslog (trying to rotate and compress the logs) could not keep up. When I got to it, I found 8 or 9 gzip/newsyslog processes running trying to deal with the chaos. Bottom line: be very, very cautious what rules you use "log" on, and be sure to remove it once the system is in production. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From m.seaman at infracaninophile.co.uk Mon Oct 6 08:35:12 2008 From: m.seaman at infracaninophile.co.uk (Matthew Seaman) Date: Mon Oct 6 08:35:20 2008 Subject: pf vs. RST attack question In-Reply-To: <20081006072611.GA13147@icarus.home.lan> References: <200810051753.m95Hr3N5014872@mp.cs.niu.edu> <20081006003601.GA5733@icarus.home.lan> <48E9BBED.7090607@infracaninophile.co.uk> <20081006072611.GA13147@icarus.home.lan> Message-ID: <48E9CDA6.80508@infracaninophile.co.uk> Jeremy Chadwick wrote: > On Mon, Oct 06, 2008 at 08:19:09AM +0100, Matthew Seaman wrote: >> Jeremy Chadwick wrote: >>> If you want a "magic solution", see blackhole(4). >>> >> block drop all >> >> looks fairly magical to me. Stick that at the top of your ruleset as >> your default policy, add more specific rules beneath it to allow >> the traffic you do want to pass, and Robert is your Mother's Brother. >> No more floods of RST packets. > > This is incredibly draconian. :-) I was trying my best to remain > realistic. It's no such thing. This is the recommended standard practice when designing firewalls: always start from the premise that all traffic will be dropped by default and add specific exceptions to allow the traffic you want. Trying to work the other way round is a recipe for disaster: 'allow everything, but block what is then shown to be deleterious' means that you're always playing catch-up as changes on your servers expose new attack vectors and as attackers discover and try to exploit those holes. Not recommended, unless you actually /like/ being paged in the wee small hours. >> (Actually, I'd recommend always adding a 'log' clause to any rules that >> drop packets like so: 'block log drop all'. Makes running 'tcpdump -i pflog0' >> an invaluable debugging aid.) > > I cannot advocate use of "log" on such "vague" rules, and my attitude is > based on experience: > > We had "log" set on some of our deny rules, specifically on an entry > which blocked any traffic to an IP to any ports other than 53 (DNS). > Someone initiated an attack against that IP, to a destination port of > something other than 53, which caused pflog to go crazy with logging. > > What inadvertently resulted was a local system DoS -- the system began > sporting a load average between 40 and 50, and was sluggish. > > The root cause? /var/log/pflog was growing at such a tremendous rate > that newsyslog (trying to rotate and compress the logs) could not keep > up. When I got to it, I found 8 or 9 gzip/newsyslog processes running > trying to deal with the chaos. > > Bottom line: be very, very cautious what rules you use "log" on, and be > sure to remove it once the system is in production. > You have a point here, I will certainly admit that. In my experience, I've not yet run into that scenario. I've tended to see systems more easily DoSed by running out of pf states due to excessive DoS traffic to allowed ports than to any extra load from pflogd and newsyslog from logging denied traffic. The machines in question already log so much legitimate traffic from Squid and Apache that pflog is trivial by comparison. Of course, now I've said 'it never happens' I'm expecting half our firewalls to explode any minute now... 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: 258 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081006/0c242f85/signature.pgp From zszalbot at gmail.com Mon Oct 6 08:39:43 2008 From: zszalbot at gmail.com (Zbigniew Szalbot) Date: Mon Oct 6 08:39:50 2008 Subject: update.FreeBSD.org / No mirrors remaining, giving up Message-ID: <94136a2c0810060139r740c3a96hc9c79028e7b93a4d@mail.gmail.com> Hello, I am not sure why but whenever I do: $ freebsd-update fetch Fetching metadata signature for 7.0-RELEASE from update.FreeBSD.org... failed. No mirrors remaining, giving up. but if type: $ portsnap fetch Fetching snapshot tag from portsnap.FreeBSD.org... done. Many thanks for any hint as to what may be wrong with update.FreeBSD.org on this machine! -- Zbigniew Szalbot From aryeh.friedman at gmail.com Mon Oct 6 09:06:39 2008 From: aryeh.friedman at gmail.com (Aryeh M. Friedman) Date: Mon Oct 6 09:06:46 2008 Subject: Setting up skype Message-ID: <48E9CE0E.7000404@gmail.com> I am running the most recent version of net/skype (not -devel) and do not have a mic or camera and want to know what people recommend. Ideally I would like a all in one phone type head set for the audio. bTW I am usinf xfce on 8-CURRENT (i386) From koitsu at FreeBSD.org Mon Oct 6 09:07:07 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Mon Oct 6 09:07:17 2008 Subject: pf vs. RST attack question In-Reply-To: <48E9CDA6.80508@infracaninophile.co.uk> References: <200810051753.m95Hr3N5014872@mp.cs.niu.edu> <20081006003601.GA5733@icarus.home.lan> <48E9BBED.7090607@infracaninophile.co.uk> <20081006072611.GA13147@icarus.home.lan> <48E9CDA6.80508@infracaninophile.co.uk> Message-ID: <20081006090704.GB13975@icarus.home.lan> On Mon, Oct 06, 2008 at 09:34:46AM +0100, Matthew Seaman wrote: > Jeremy Chadwick wrote: >> On Mon, Oct 06, 2008 at 08:19:09AM +0100, Matthew Seaman wrote: >>> Jeremy Chadwick wrote: > > >>>> If you want a "magic solution", see blackhole(4). >>>> >>> block drop all >>> >>> looks fairly magical to me. Stick that at the top of your ruleset as >>> your default policy, add more specific rules beneath it to allow >>> the traffic you do want to pass, and Robert is your Mother's Brother. >>> No more floods of RST packets. >> >> This is incredibly draconian. :-) I was trying my best to remain >> realistic. > > It's no such thing. This is the recommended standard practice when designing > firewalls: always start from the premise that all traffic will be dropped by > default and add specific exceptions to allow the traffic you want. Trying to > work the other way round is a recipe for disaster: 'allow everything, but block > what is then shown to be deleterious' means that you're always playing catch-up > as changes on your servers expose new attack vectors and as attackers discover > and try to exploit those holes. Not recommended, unless you actually /like/ > being paged in the wee small hours. What I mean by 'draconian': "block drop all" includes both incoming *and* outgoing traffic. I have absolutely no qualms with "block in all", but "block out all" is too unrealistic, depending greatly on what the purpose of the machine is. Any outbound sockets are going to be allocated dynamically (e.g. non-static port number), so there's no effective way to add pass rules for outbound traffic. Using uid/gid is not sufficient. I often advocate using "block in all", "pass out all", and then adding specific "pass" rules for incoming traffic (e.g. an Internet request wishing to speak to BIND on port 53, Apache on 80/443, etc.). Like I said: I'm being realistic. >>> (Actually, I'd recommend always adding a 'log' clause to any rules that >>> drop packets like so: 'block log drop all'. Makes running 'tcpdump -i pflog0' >>> an invaluable debugging aid.) >> >> I cannot advocate use of "log" on such "vague" rules, and my attitude is >> based on experience: >> >> We had "log" set on some of our deny rules, specifically on an entry >> which blocked any traffic to an IP to any ports other than 53 (DNS). >> Someone initiated an attack against that IP, to a destination port of >> something other than 53, which caused pflog to go crazy with logging. >> >> What inadvertently resulted was a local system DoS -- the system began >> sporting a load average between 40 and 50, and was sluggish. >> >> The root cause? /var/log/pflog was growing at such a tremendous rate >> that newsyslog (trying to rotate and compress the logs) could not keep >> up. When I got to it, I found 8 or 9 gzip/newsyslog processes running >> trying to deal with the chaos. >> >> Bottom line: be very, very cautious what rules you use "log" on, and be >> sure to remove it once the system is in production. > > You have a point here, I will certainly admit that. In my experience, I've not > yet run into that scenario. I've tended to see systems more easily DoSed by > running out of pf states due to excessive DoS traffic to allowed ports than to > any extra load from pflogd and newsyslog from logging denied traffic. The > machines in question already log so much legitimate traffic from Squid and Apache > that pflog is trivial by comparison. Of course, now I've said 'it never happens' > I'm expecting half our firewalls to explode any minute now... :-) I sure hope not! The situation we experienced came as a great surprise, and it wasn't something I even remotely considered when setting up the rules in question. Since then, "log" has been removed from all of our rules, but I keep pflog running in the case that "something" starts happening and I need to temporary add "log" to rules + /etc/rc.d/pf reload to see what's going on. Of course, tcpdump also works wonders here. Good discussion! (And I hope the OP is learning something :-) ) -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From aryeh.friedman at gmail.com Mon Oct 6 09:09:29 2008 From: aryeh.friedman at gmail.com (Aryeh M. Friedman) Date: Mon Oct 6 09:09:36 2008 Subject: stupid xfce clock question Message-ID: <48E9CEB8.4090406@gmail.com> I work remotely with a company that is across the international date line from me and I can do the math in my head but want to know if it is possible to add a clock to my xfce panel that shows the time their (and keep the one that has my time on it) From yurtesen at ispro.net.tr Mon Oct 6 10:15:26 2008 From: yurtesen at ispro.net.tr (Evren Yurtesen) Date: Mon Oct 6 10:15:34 2008 Subject: continuous backup solution for freebsd? Message-ID: <48E9E146.9040308@ispro.net.tr> Hello, Is there a known continuous backup solution similar to r1soft backup for FreeBSD? I googled a lot but couldnt find anything. R1soft says they need help to develop FreeBSD support in their product. Do you know anybody who can help r1soft on this issue? Please see: http://forum.r1soft.com/showpost.php?p=3414&postcount=9 Thanks, Evren From m.seaman at infracaninophile.co.uk Mon Oct 6 11:04:59 2008 From: m.seaman at infracaninophile.co.uk (Matthew Seaman) Date: Mon Oct 6 11:05:07 2008 Subject: pf vs. RST attack question In-Reply-To: <20081006090704.GB13975@icarus.home.lan> References: <200810051753.m95Hr3N5014872@mp.cs.niu.edu> <20081006003601.GA5733@icarus.home.lan> <48E9BBED.7090607@infracaninophile.co.uk> <20081006072611.GA13147@icarus.home.lan> <48E9CDA6.80508@infracaninophile.co.uk> <20081006090704.GB13975@icarus.home.lan> Message-ID: <48E9F0B8.6070708@infracaninophile.co.uk> Jeremy Chadwick wrote: > On Mon, Oct 06, 2008 at 09:34:46AM +0100, Matthew Seaman wrote: >> Jeremy Chadwick wrote: >>> On Mon, Oct 06, 2008 at 08:19:09AM +0100, Matthew Seaman wrote: >>>> Jeremy Chadwick wrote: >> >>>>> If you want a "magic solution", see blackhole(4). >>>>> >>>> block drop all >>>> >>>> looks fairly magical to me. Stick that at the top of your ruleset as >>>> your default policy, add more specific rules beneath it to allow >>>> the traffic you do want to pass, and Robert is your Mother's Brother. >>>> No more floods of RST packets. >>> This is incredibly draconian. :-) I was trying my best to remain >>> realistic. >> It's no such thing. This is the recommended standard practice when designing >> firewalls: always start from the premise that all traffic will be dropped by >> default and add specific exceptions to allow the traffic you want. Trying to >> work the other way round is a recipe for disaster: 'allow everything, but block >> what is then shown to be deleterious' means that you're always playing catch-up >> as changes on your servers expose new attack vectors and as attackers discover >> and try to exploit those holes. Not recommended, unless you actually /like/ >> being paged in the wee small hours. > > What I mean by 'draconian': "block drop all" includes both incoming > *and* outgoing traffic. Well, yeah. But 'block drop in all' is pretty much just an optimised variant of block drop all pass out all even if you never write it out that way. You're just starting two steps into the process I was talking about. > I have absolutely no qualms with "block in all", but "block out all" is > too unrealistic, depending greatly on what the purpose of the machine > is. Any outbound sockets are going to be allocated dynamically (e.g. > non-static port number), so there's no effective way to add pass rules > for outbound traffic. Using uid/gid is not sufficient. > I often advocate using "block in all", "pass out all", and then adding > specific "pass" rules for incoming traffic (e.g. an Internet request > wishing to speak to BIND on port 53, Apache on 80/443, etc.). > > Like I said: I'm being realistic. One man's realism is another's open proxy or information disclosure and having to deal with abuse complaints. Yes, in practice for some of the firewalls we manage the policy is 'all outgoing is allowed', but by no means the majority. Most of the time we do permit outgoing for some or all of these protocols: FTP(passive), SSH, SMTP, DNS, HTTP, NTP, HTTPS, RSYNC, CVSUP and frequently that's allowing outgoing to any unless there's a requirement to restrict things further. We aren't concerned with writing filter rules that operate on the local port numbers here, but with the port numbers on the remote sites we're connecting to. As you say, local port numbers are unpredictable, but stateful firewall rules handle all that sort of thing easily, even for stateless (UDP) protocols like DNS. Not only that, but looking up a packet in the state table is generally quite a bit faster than having to traverse the whole rule set. At least, it is when using pf. 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: 258 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081006/d93c6e33/signature.pgp From patfbsd at davenulle.org Mon Oct 6 11:09:33 2008 From: patfbsd at davenulle.org (Patrick =?ISO-8859-15?Q?Lamaizi=E8re?=) Date: Mon Oct 6 11:10:26 2008 Subject: USB mouse problems In-Reply-To: <1223275319.4116.7.camel@debian> References: <1223275319.4116.7.camel@debian> Message-ID: <20081006130929.386aebb7@baby-jane-lamaiziere-net.local> Le Mon, 06 Oct 2008 08:41:59 +0200, Aniruddha a ?crit : > I have one Razer Lachesis USB mouse attached to the rear usb ports of > my pc. This mouse has never worked, however when I plug in another USB > mouse in the front of my pc it works?! I wonder; how do I get the > Razer Lachesis working without plugging it in the front? I don't know. > Furthermore I wondered if there is a way to use both the mouse in a > terminal (gpm) and in xorg? Yes, see moused(8) and vidcontrol(1). Regards. From rock_on_the_web at comcen.com.au Mon Oct 6 11:12:27 2008 From: rock_on_the_web at comcen.com.au (Da Rock) Date: Mon Oct 6 11:12:45 2008 Subject: Touch screen ET&T on Clevo tn120r In-Reply-To: References: Message-ID: <1223291610.27632.21.camel@laptop1.herveybayaustralia.com.au> On Sun, 2008-10-05 at 14:59 -0300, Sd?vtaker wrote: > Hello, > I installed FreeBSD 7.0r in a Clevo tablet. > I works great, but i am missing the touchscreen. > Did someone make it work or got any idea where can i start to try? > I got the pciconf -lv and scanpci -v info: > Thanks in advance for any help you can give me. Check your usb connections- copy the info here as with the pci stuff you sent. Most of these types of features are connected via usb. From kiffin.gish at planet.nl Mon Oct 6 11:19:25 2008 From: kiffin.gish at planet.nl (kiffin.gish@planet.nl) Date: Mon Oct 6 11:19:31 2008 Subject: The disc in your drive looks more like an Audio CD than a FreeBSD release Message-ID: Hi there. I tried to install 7.1-BETA from the CD I burned from 7.1-BETA-i386-disc1.iso, but after I created all the partitions etc and then selected to install, I get the following error message: "The disc in your drive looks more like an Audio CD than a FreeBSD release" Any idea what's wrong? -- Kiffin Gish Gouda, The Netherlands From koitsu at FreeBSD.org Mon Oct 6 11:22:28 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Mon Oct 6 11:22:35 2008 Subject: continuous backup solution for freebsd? In-Reply-To: <48E9E146.9040308@ispro.net.tr> References: <48E9E146.9040308@ispro.net.tr> Message-ID: <20081006112030.GA18670@icarus.home.lan> On Mon, Oct 06, 2008 at 12:58:30PM +0300, Evren Yurtesen wrote: > Hello, > > Is there a known continuous backup solution similar to r1soft backup for > FreeBSD? I googled a lot but couldnt find anything. > > R1soft says they need help to develop FreeBSD support in their product. > Do you know anybody who can help r1soft on this issue? > > Please see: http://forum.r1soft.com/showpost.php?p=3414&postcount=9 Would the GEOM gate class handle this? See ggatec(8) and ggated(8). -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From keramida at ceid.upatras.gr Mon Oct 6 11:34:07 2008 From: keramida at ceid.upatras.gr (Giorgos Keramidas) Date: Mon Oct 6 11:34:23 2008 Subject: pf vs. RST attack question In-Reply-To: <20081006072611.GA13147@icarus.home.lan> (Jeremy Chadwick's message of "Mon, 6 Oct 2008 00:26:11 -0700") References: <200810051753.m95Hr3N5014872@mp.cs.niu.edu> <20081006003601.GA5733@icarus.home.lan> <48E9BBED.7090607@infracaninophile.co.uk> <20081006072611.GA13147@icarus.home.lan> Message-ID: <871vyuj6ul.fsf@kobe.laptop> On Mon, 6 Oct 2008 00:26:11 -0700, Jeremy Chadwick wrote: > On Mon, Oct 06, 2008 at 08:19:09AM +0100, Matthew Seaman wrote: >> block drop all >> >> looks fairly magical to me. Stick that at the top of your ruleset as >> your default policy, add more specific rules beneath it to allow the >> traffic you do want to pass, and Robert is your Mother's Brother. No >> more floods of RST packets. > > This is incredibly draconian. :-) I was trying my best to remain > realistic. Yes this is a bit draconian, but it is also pretty ``realistic'', as in ``it works fine if all you need is a very basic, but strict firewall''. I run my laptop with a `pf.conf' that (putting most of the comments and other disabled rules for one-off tests aside) looks pretty much like: set block-policy drop set require-order yes set skip on lo0 scrub in all block in all block out all pass in quick proto icmp all pass out quick proto icmp all pass out proto { tcp, udp } all keep state Depending on the network I am connected to, I may leave DHCP replies open too, i.e.: pass in quick proto udp from 192.168.1.1/24 to 255.255.255.255 port = 68 This seems to have worked pretty well so far, but this is, as I wrote, merely a laptop. For production servers, there are probably going to be quite a few other rules to allow incoming connections. > I cannot advocate use of "log" on such "vague" rules, and my attitude > is based on experience: > > We had "log" set on some of our deny rules, specifically on an entry > which blocked any traffic to an IP to any ports other than 53 (DNS). > Someone initiated an attack against that IP, to a destination port of > something other than 53, which caused pflog to go crazy with logging. Heh, that's indeed a possibility. Hence the lack of 'log' in my default ruleset shown above. From keramida at ceid.upatras.gr Mon Oct 6 11:36:49 2008 From: keramida at ceid.upatras.gr (Giorgos Keramidas) Date: Mon Oct 6 11:36:56 2008 Subject: pf vs. RST attack question In-Reply-To: <20081006090704.GB13975@icarus.home.lan> (Jeremy Chadwick's message of "Mon, 6 Oct 2008 02:07:04 -0700") References: <200810051753.m95Hr3N5014872@mp.cs.niu.edu> <20081006003601.GA5733@icarus.home.lan> <48E9BBED.7090607@infracaninophile.co.uk> <20081006072611.GA13147@icarus.home.lan> <48E9CDA6.80508@infracaninophile.co.uk> <20081006090704.GB13975@icarus.home.lan> Message-ID: <87wsgmhs5h.fsf@kobe.laptop> On Mon, 6 Oct 2008 02:07:04 -0700, Jeremy Chadwick wrote: >>> This is incredibly draconian. :-) I was trying my best to remain >>> realistic. >> >> It's no such thing. This is the recommended standard practice when >> designing firewalls: always start from the premise that all traffic >> will be dropped by default and add specific exceptions to allow the >> traffic you want. [...] > > What I mean by 'draconian': "block drop all" includes both incoming > *and* outgoing traffic. > > I have absolutely no qualms with "block in all", but "block out all" > is too unrealistic, depending greatly on what the purpose of the > machine is. Any outbound sockets are going to be allocated > dynamically (e.g. non-static port number), so there's no effective > way to add pass rules for outbound traffic. Using uid/gid is not > sufficient. > > I often advocate using "block in all", "pass out all", and then adding > specific "pass" rules for incoming traffic (e.g. an Internet request > wishing to speak to BIND on port 53, Apache on 80/443, etc.). Ah! :) I was a bit confused in my last post then. I thought you were talking about `block in all' too. > Good discussion! (And I hope the OP is learning something :-) ) :-) From keramida at ceid.upatras.gr Mon Oct 6 11:45:36 2008 From: keramida at ceid.upatras.gr (Giorgos Keramidas) Date: Mon Oct 6 11:45:47 2008 Subject: stupid xfce clock question In-Reply-To: <48E9CEB8.4090406@gmail.com> (Aryeh M. Friedman's message of "Mon, 06 Oct 2008 04:39:20 -0400") References: <48E9CEB8.4090406@gmail.com> Message-ID: <87skrahrqm.fsf@kobe.laptop> On Mon, 06 Oct 2008 04:39:20 -0400, "Aryeh M. Friedman" wrote: > I work remotely with a company that is across the international date > line from me and I can do the math in my head but want to know if it > is possible to add a clock to my xfce panel that shows the time their > (and keep the one that has my time on it) If you are using XFCE4 then you are reaping all the benefits of the freely available work of others. This style of subject is offensive to their efforts to provide a light-weight, beautiful, functional and fast performing desktop environment in a multitude of UNIX platforms. Please consider using a less confrontational style for posting questions in the future. Now, regarding the timezone question: You can use the `Orage Clock'. It is bundled with the current XFCE4 in the FreeBSD Ports, and its startup options include one that sets the clock timezone. From koitsu at FreeBSD.org Mon Oct 6 11:51:03 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Mon Oct 6 11:51:11 2008 Subject: pf vs. RST attack question In-Reply-To: <871vyuj6ul.fsf@kobe.laptop> References: <200810051753.m95Hr3N5014872@mp.cs.niu.edu> <20081006003601.GA5733@icarus.home.lan> <48E9BBED.7090607@infracaninophile.co.uk> <20081006072611.GA13147@icarus.home.lan> <871vyuj6ul.fsf@kobe.laptop> Message-ID: <20081006115101.GA19442@icarus.home.lan> On Mon, Oct 06, 2008 at 02:33:38PM +0300, Giorgos Keramidas wrote: > On Mon, 6 Oct 2008 00:26:11 -0700, Jeremy Chadwick wrote: > > On Mon, Oct 06, 2008 at 08:19:09AM +0100, Matthew Seaman wrote: > >> block drop all > >> > >> looks fairly magical to me. Stick that at the top of your ruleset as > >> your default policy, add more specific rules beneath it to allow the > >> traffic you do want to pass, and Robert is your Mother's Brother. No > >> more floods of RST packets. > > > > This is incredibly draconian. :-) I was trying my best to remain > > realistic. > > Yes this is a bit draconian, but it is also pretty ``realistic'', as in > ``it works fine if all you need is a very basic, but strict firewall''. > > I run my laptop with a `pf.conf' that (putting most of the comments and > other disabled rules for one-off tests aside) looks pretty much like: > > set block-policy drop > set require-order yes > set skip on lo0 > scrub in all > block in all > block out all > pass in quick proto icmp all > pass out quick proto icmp all > pass out proto { tcp, udp } all keep state A couple things to point out here: First, ICMP rules coming first (especially with "quick") might not be ideal; ICMP is often considered a "last resort" protocol, meaning TCP and UDP packets should have priority over it. It all depends on what you want, but this is often the industry norm. Second, and much more importantly, if you're on RELENG_7, "keep state" serves no purpose here; "flags S/SA" is implicit on TCP rules, and "keep state" is implicit in TCP, UDP, and ICMP rules. If you're using RELENG_6, then your above rules have a serious problem: you're tracking state for all outbound packets regardless of flags, and not just initial setup (SYN). This is Very Bad(tm). In that case, you should use these rules instead: pass out proto tcp all flags S/SA keep state pass out proto udp all keep state pass out proto icmp all keep state I've never gotten a definite answer as to what happens if you use "flags S/SA" on a rule that is for UDP, since UDP is a non-negotiated protocol. That's why I split them up per protocol on RELENG_6 boxes. Happy firewalling! :-) -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From andrewd at webzone.net.au Mon Oct 6 11:51:23 2008 From: andrewd at webzone.net.au (Andrew D) Date: Mon Oct 6 11:51:30 2008 Subject: USB mouse problems In-Reply-To: <20081006130929.386aebb7@baby-jane-lamaiziere-net.local> References: <1223275319.4116.7.camel@debian> <20081006130929.386aebb7@baby-jane-lamaiziere-net.local> Message-ID: <48E9F93A.5020806@webzone.net.au> Patrick Lamaizi?re wrote: > Le Mon, 06 Oct 2008 08:41:59 +0200, > Aniruddha a ?crit : > >> I have one Razer Lachesis USB mouse attached to the rear usb ports of >> my pc. This mouse has never worked, however when I plug in another USB >> mouse in the front of my pc it works?! I wonder; how do I get the >> Razer Lachesis working without plugging it in the front? > > I don't know. Some motherboards have a jumper (or BIOS option) to that has to be set, so that the front connectors work at the expense of other ports. > >> Furthermore I wondered if there is a way to use both the mouse in a >> terminal (gpm) and in xorg? > > Yes, see moused(8) and vidcontrol(1). > > Regards. > _______________________________________________ > 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 koitsu at FreeBSD.org Mon Oct 6 11:52:14 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Mon Oct 6 11:52:22 2008 Subject: stupid xfce clock question In-Reply-To: <87skrahrqm.fsf@kobe.laptop> References: <48E9CEB8.4090406@gmail.com> <87skrahrqm.fsf@kobe.laptop> Message-ID: <20081006115208.GB19442@icarus.home.lan> On Mon, Oct 06, 2008 at 02:45:21PM +0300, Giorgos Keramidas wrote: > On Mon, 06 Oct 2008 04:39:20 -0400, "Aryeh M. Friedman" wrote: > > I work remotely with a company that is across the international date > > line from me and I can do the math in my head but want to know if it > > is possible to add a clock to my xfce panel that shows the time their > > (and keep the one that has my time on it) > > If you are using XFCE4 then you are reaping all the benefits of the > freely available work of others. This style of subject is offensive to > their efforts to provide a light-weight, beautiful, functional and fast > performing desktop environment in a multitude of UNIX platforms. > > Please consider using a less confrontational style for posting questions > in the future. It depends on how you read it. I read the Subject line to mean "I'm asking a stupid question", not "xfce is stupid". I'm pretty sure Aryeh meant the lesser, not the latter. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From keramida at ceid.upatras.gr Mon Oct 6 12:03:37 2008 From: keramida at ceid.upatras.gr (Giorgos Keramidas) Date: Mon Oct 6 12:03:44 2008 Subject: pf vs. RST attack question In-Reply-To: <20081006115101.GA19442@icarus.home.lan> (Jeremy Chadwick's message of "Mon, 6 Oct 2008 04:51:01 -0700") References: <200810051753.m95Hr3N5014872@mp.cs.niu.edu> <20081006003601.GA5733@icarus.home.lan> <48E9BBED.7090607@infracaninophile.co.uk> <20081006072611.GA13147@icarus.home.lan> <871vyuj6ul.fsf@kobe.laptop> <20081006115101.GA19442@icarus.home.lan> Message-ID: <87ej2uexsx.fsf@kobe.laptop> On Mon, 6 Oct 2008 04:51:01 -0700, Jeremy Chadwick wrote: >> I run my laptop with a `pf.conf' that (putting most of the comments and >> other disabled rules for one-off tests aside) looks pretty much like: >> >> set block-policy drop >> set require-order yes >> set skip on lo0 >> scrub in all >> block in all >> block out all >> pass in quick proto icmp all >> pass out quick proto icmp all >> pass out proto { tcp, udp } all keep state > > A couple things to point out here: > > First, ICMP rules coming first (especially with "quick") might not be > ideal; ICMP is often considered a "last resort" protocol, meaning TCP > and UDP packets should have priority over it. It all depends on what > you want, but this is often the industry norm. That's nice. > Second, and much more importantly, if you're on RELENG_7, "keep state" > serves no purpose here; "flags S/SA" is implicit on TCP rules, and > "keep state" is implicit in TCP, UDP, and ICMP rules. 8.0-CURRENT so `flags S/SA' is indeed implicit. I updated the rules to include `flags S/SA' too. Both this part and `keep state' are implicit now, but I like being slightly less verbose because I tend to forget what is `default' and what is not, at the expense of being slightly more verbose :) > Happy firewalling! :-) Thanks :) From gandalf at shopzeus.com Mon Oct 6 12:57:20 2008 From: gandalf at shopzeus.com (Laszlo Nagy) Date: Mon Oct 6 12:57:27 2008 Subject: VNC server embedded into Xorg server Message-ID: <48EA0B4A.9080405@shopzeus.com> Hi All, There was a port called net/vnc that contained a vnc.so file. That file could be loaded into the Xorg server and then I was able to monitor the X desktop with VNC. Now I'm using gnome, and gnome2-fifth-toe installs tightvnc. It conflicts with net/vnc. So I cannot install net/vnc. What other options I have to run an X server? The only extra wish is that the X server must be able to start automatically, e.g. without logging into gnome. I need this because the X server will be located at a distant location and I have to be able to use it after a system restart. Thanks, Laszlo From aryeh.friedman at gmail.com Mon Oct 6 13:28:33 2008 From: aryeh.friedman at gmail.com (Aryeh M. Friedman) Date: Mon Oct 6 13:34:39 2008 Subject: stupid xfce clock question In-Reply-To: <20081006115208.GB19442@icarus.home.lan> References: <48E9CEB8.4090406@gmail.com> <87skrahrqm.fsf@kobe.laptop> <20081006115208.GB19442@icarus.home.lan> Message-ID: <48EA126C.6040407@gmail.com> Jeremy Chadwick wrote: > On Mon, Oct 06, 2008 at 02:45:21PM +0300, Giorgos Keramidas wrote: > >> On Mon, 06 Oct 2008 04:39:20 -0400, "Aryeh M. Friedman" wrote: >> >>> I work remotely with a company that is across the international date >>> line from me and I can do the math in my head but want to know if it >>> is possible to add a clock to my xfce panel that shows the time their >>> (and keep the one that has my time on it) >>> >> If you are using XFCE4 then you are reaping all the benefits of the >> freely available work of others. This style of subject is offensive to >> their efforts to provide a light-weight, beautiful, functional and fast >> performing desktop environment in a multitude of UNIX platforms. >> >> Please consider using a less confrontational style for posting questions >> in the future. >> > > It depends on how you read it. I read the Subject line to mean "I'm > asking a stupid question", not "xfce is stupid". I'm pretty sure Aryeh > meant the lesser, not the latter. > > Just for clarity thats what I meant... I use it specifically because it is the best desktop out there and has not made the same mistakes gnome and/or kde did (the only complaint I have is it your be nice if the desktop would updat7e it self as you change the contents of ~/Desktop) From andrewd at webzone.net.au Mon Oct 6 13:34:42 2008 From: andrewd at webzone.net.au (Andrew D) Date: Mon Oct 6 13:38:21 2008 Subject: multihomed fbsd7 router with nat Message-ID: <48EA13E0.9040600@webzone.net.au> G'Day all, Got a network that has 2 DSL connections. The 1st has cheap data and the 2nd is a more reliable provider. Basically all data goes out the first provider except some IPs which will use the second provider (just a ipfw fwd rule). If the cheap one goes offline data has to route out via the 2nd ISP, likewise if the 2nd does happen to go off then the fwd rule needs to be dropped. I have already solved this with an attached script (for suggestions and maybe to help others who may face this problem in the future). Anyway I plan to put the 2 modems into bridge mode use the ppp that comes with fbsd to do the auth side of things. My question is what should I use for NAT. Use the inbuilt NAT that comes with PPP or firewall based? TIA Cheers cya Andrew -------------- next part -------------- #!/usr/local/bin/bash FWRUL=10000 # put main connection first # the names must match the config names in /etc/ppp/ppp.conf # Must also have a /etc/namedb/named.conf.ISP_NAME for each # ISP so that named's forward lookups points to the right name server PISP='isp1' BISP='isp2' FWBLOCK='192.168.1.209/28' LAN='192.168.1.0/24' # Functions function getgwip { PID=$1 GW='' for i in 0 1 2 3 4 5 6 7 8 9; do STR=`ifconfig tun$i 2>/dev/null |grep "PID $pid" ` if [ -n "$STR" ]; then GW=`ifconfig tun$i |grep inet |tail -n 1|awk '{print $2 " " $4}'` fi done echo $GW } function ch_route { X="Changing routing for all data to: $2\nOld default gateway: $3" GW=`getgwip $1 |awk '{print $2}'` if [ "$GW" == "$3" ]; then exit; fi echo "$X" /sbin/route delete default /sbin/route add default $GW echo "New default gateway: $GW" cp /etc/named/named.conf.$ROUTO /etc/namedb/named.conf /etc/rc.d/named reload exit } function ch_firewall { if [ "$1" != "$PISP" ]; then /sbin/ipfw -q delete $FWRUL >/dev/null 2>&1 else F=`ipfw show $FWRUL 2>/dev/null|| echo FAIL` if [ "$F" == "FAIL" ]; then /sbin/ipfw -q add $FWRUL fwd $2 ip from $FWBLOCK to not $LAN fi fi } PPPCOM='/usr/sbin/ppp -quiet -ddial -nat ' PID1=`ps ax | grep ppp | grep -v grep |grep "$PISP" |awk '{print $1}'` PID2=`ps ax | grep ppp | grep -v grep |grep "$BISP" |awk '{print $1}'` ROUTO='' if [ -z "$PID1" ] then $PPPCOM $PISP >/dev/null 2>&1 & ROUTO=$BISP RPID="$PID2" fi if [ -z "$PID2" ] then $PPPCOM $BISP >/dev/null 2>&1 & ROUTO=$PISP RPID=$PID1 fi CGW=`netstat -rn | grep "^default" | awk '{print $2}'` if [ -n "$ROUTO" ]; then echo "restarting $ROUTO" ch_firewall clear ch_route $RPID "$ROUTO" "$CGW" fi TMP=`getgwip $PISP` PGW=`echo $TMP | awk '{print $2}'` PIP=`echo $TMP | awk '{print $1}'` TMP=`getgwip $BISP` BGW=`echo $TMP | awk '{print $2}'` BIP=`echo $TMP | awk '{print $1}'` OUT="Current default gateway: $CGW" if [ -z "$PIP" -a -z "$BIP" ]; then logg "BOTH $PISP and $BISP are DOWN!!" exit fi if [ -z "$PIP" ]; then if [ "$CGW" != "$BGW" ]; then logg "$PISP currently down" ch_firewall clear ch_route $PID2 "$BISP" "$CGW" fi exit fi if [ -z "$BIP" ]; then if [ "$CGW" != "$PGW" ]; then logg "$BISP currently down" ch_firewall clear ch_route $PID1 "$PISP" "$CGW" fi exit fi PISPING=`ping -n -s 1 -o -c 5 -S $PIP -W 5000 -t 6 $PGW >/dev/null 2>&1 || echo FAIL` BISPING=`ping -n -s 1 -o -c 5 -S $BIP -W 5000 -t 6 $BGW >/dev/null 2>&1 || echo FAIL` if [ "$PISPING" == "FAIL" ]; then if [ "$CGW" != "$BGW" ]; then logg "$PISP currently down" ch_firewall clear ch_route $PID2 "$BISP" "$CGW" fi exit fi if [ "$BISPING" == "FAIL" ]; then if [ "$CGW" != "$PGW" ]; then logg "$BISP currently down" ch_firewall clear ch_route $PID1 "$PISP" "$CGW" fi exit fi FWCHECK=`ipfw show $FWRUL 2>/dev/null || echo FAIL` if [ "$FWCHECK" != "FAIL" ]; logg "Added policy routing for $FWBLOCK" ch_firewall $PISP fi if [ "$CGW" != "$PGW" ]; then logg "Changed routing back to $PISP" ch_route $PID1 "$PISP" "$CGW" fi From jamesoff at gmail.com Mon Oct 6 13:44:56 2008 From: jamesoff at gmail.com (James Seward) Date: Mon Oct 6 13:45:14 2008 Subject: pf vs. RST attack question In-Reply-To: <20081006115101.GA19442@icarus.home.lan> References: <200810051753.m95Hr3N5014872@mp.cs.niu.edu> <20081006003601.GA5733@icarus.home.lan> <48E9BBED.7090607@infracaninophile.co.uk> <20081006072611.GA13147@icarus.home.lan> <871vyuj6ul.fsf@kobe.laptop> <20081006115101.GA19442@icarus.home.lan> Message-ID: <720051dc0810060644n14495ee4k8f2942d16e634c78@mail.gmail.com> On Mon, Oct 6, 2008 at 12:51 PM, Jeremy Chadwick wrote: > I've never gotten a definite answer as to what happens if you use "flags > S/SA" on a rule that is for UDP, since UDP is a non-negotiated protocol. > That's why I split them up per protocol on RELENG_6 boxes. It intelligently ignores it: % pfctl -vn -f- pass out proto { tcp udp } all flags S/SA keep state Output: pass out proto tcp all flags S/SA keep state pass out proto udp all keep state /JMS From jcigar at ulb.ac.be Mon Oct 6 13:57:42 2008 From: jcigar at ulb.ac.be (Julien Cigar) Date: Mon Oct 6 13:57:49 2008 Subject: continuous backup solution for freebsd? In-Reply-To: <20081006112030.GA18670@icarus.home.lan> References: <48E9E146.9040308@ispro.net.tr> <20081006112030.GA18670@icarus.home.lan> Message-ID: <1223292567.1307.1.camel@rivendell.lan> Bacula ? http://www.bacula.org I use it at work to backup linux and freebsd boxes and it works like a charm. On Mon, 2008-10-06 at 04:20 -0700, Jeremy Chadwick wrote: > On Mon, Oct 06, 2008 at 12:58:30PM +0300, Evren Yurtesen wrote: > > Hello, > > > > Is there a known continuous backup solution similar to r1soft backup for > > FreeBSD? I googled a lot but couldnt find anything. > > > > R1soft says they need help to develop FreeBSD support in their product. > > Do you know anybody who can help r1soft on this issue? > > > > Please see: http://forum.r1soft.com/showpost.php?p=3414&postcount=9 > > Would the GEOM gate class handle this? See ggatec(8) and ggated(8). > From keramida at freebsd.org Mon Oct 6 14:01:51 2008 From: keramida at freebsd.org (Giorgos Keramidas) Date: Mon Oct 6 14:02:01 2008 Subject: stupid xfce clock question In-Reply-To: <48EA126C.6040407@gmail.com> (Aryeh M. Friedman's message of "Mon, 06 Oct 2008 09:28:12 -0400") References: <48E9CEB8.4090406@gmail.com> <87skrahrqm.fsf@kobe.laptop> <20081006115208.GB19442@icarus.home.lan> <48EA126C.6040407@gmail.com> Message-ID: <874p3pstz5.fsf@kobe.laptop> On Mon, 06 Oct 2008 09:28:12 -0400, "Aryeh M. Friedman" wrote: >>> If you are using XFCE4 then you are reaping all the benefits of the >>> freely available work of others. This style of subject is offensive >>> to their efforts to provide a light-weight, beautiful, functional >>> and fast performing desktop environment in a multitude of UNIX >>> platforms. >>> >>> Please consider using a less confrontational style for posting >>> questions in the future. >> >> It depends on how you read it. I read the Subject line to mean "I'm >> asking a stupid question", not "xfce is stupid". I'm pretty sure >> Aryeh meant the lesser, not the latter. > > Just for clarity thats what I meant... I use it specifically because it > is the best desktop out there and has not made the same mistakes gnome > and/or kde did (the only complaint I have is it your be nice if the > desktop would updat7e it self as you change the contents of ~/Desktop) Ok, an apology from me is in order then. My non-native English failed to parse the subject correctly, sorry about that :-/ From keramida at freebsd.org Mon Oct 6 14:03:08 2008 From: keramida at freebsd.org (Giorgos Keramidas) Date: Mon Oct 6 14:03:14 2008 Subject: pf vs. RST attack question In-Reply-To: <720051dc0810060644n14495ee4k8f2942d16e634c78@mail.gmail.com> (James Seward's message of "Mon, 6 Oct 2008 14:44:54 +0100") References: <200810051753.m95Hr3N5014872@mp.cs.niu.edu> <20081006003601.GA5733@icarus.home.lan> <48E9BBED.7090607@infracaninophile.co.uk> <20081006072611.GA13147@icarus.home.lan> <871vyuj6ul.fsf@kobe.laptop> <20081006115101.GA19442@icarus.home.lan> <720051dc0810060644n14495ee4k8f2942d16e634c78@mail.gmail.com> Message-ID: <87zllhrfcq.fsf@kobe.laptop> On Mon, 6 Oct 2008 14:44:54 +0100, "James Seward" wrote: > On Mon, Oct 6, 2008 at 12:51 PM, Jeremy Chadwick wrote: >> I've never gotten a definite answer as to what happens if you use "flags >> S/SA" on a rule that is for UDP, since UDP is a non-negotiated protocol. >> That's why I split them up per protocol on RELENG_6 boxes. > > It intelligently ignores it: > % pfctl -vn -f- > pass out proto { tcp udp } all flags S/SA keep state > > Output: > pass out proto tcp all flags S/SA keep state > pass out proto udp all keep state The ruleset optimizer displays something similar too: > pfctl -sr -o basic shows the same pair of rules :) From yurtesen at ispro.net.tr Mon Oct 6 14:36:29 2008 From: yurtesen at ispro.net.tr (Evren Yurtesen) Date: Mon Oct 6 14:36:36 2008 Subject: continuous backup solution for freebsd? In-Reply-To: <20081006112030.GA18670@icarus.home.lan> References: <48E9E146.9040308@ispro.net.tr> <20081006112030.GA18670@icarus.home.lan> Message-ID: <48EA2270.2080405@ispro.net.tr> Jeremy Chadwick wrote: > On Mon, Oct 06, 2008 at 12:58:30PM +0300, Evren Yurtesen wrote: >> Hello, >> >> Is there a known continuous backup solution similar to r1soft backup for >> FreeBSD? I googled a lot but couldnt find anything. >> >> R1soft says they need help to develop FreeBSD support in their product. >> Do you know anybody who can help r1soft on this issue? >> >> Please see: http://forum.r1soft.com/showpost.php?p=3414&postcount=9 > > Would the GEOM gate class handle this? See ggatec(8) and ggated(8). > I am not saying it is impossible. They just need somebody to put them to right track I guess. I personally cant do that. It would be nice if somebody who has knowledge in this area contacts r1soft. At the very least r1soft seems to be willing to communicate on this issue. Continuous backups as well as bare-metal-restore seem to be a key feature for many hosters. FreeBSD is loosing users because of this issue. Thanks, Evren From kirk at strauser.com Mon Oct 6 14:39:47 2008 From: kirk at strauser.com (Kirk Strauser) Date: Mon Oct 6 14:39:54 2008 Subject: Coretemp seems to be off quite a bit Message-ID: I have a Gigabyte motherboard with an Intel ICH-9 chipset, and a 3.0GHz Core 2 Duo (E8400). The coretemp sysctls seem to always show 50C as the baseline temperature: $ sysctl dev.cpu | grep temp dev.cpu.0.temperature: 50 dev.cpu.1.temperature: 50 This is with a big PSU fan, a good CPU fan, a clean heatsink, and two case fans aimed the right direction (front fan pulling cool air in, rear fan pushing warm air out). If I reboot and go into the BIOS, I get numbers around 42-43C. I know it's kind of hard to compare directly, but the coretemp numbers are from a totally idle system with powerd scaling it back to 373MHz, so it should be as cool as when sitting idle in the BIOS screens. When I work the system hard, like running "make -j4 buildworld", I see temperatures up around 63-64C, and I'm almost positive that's not right. Any ideas why coretemp and the BIOS would show such different numbers? -- Kirk Strauser From yurtesen at ispro.net.tr Mon Oct 6 14:47:25 2008 From: yurtesen at ispro.net.tr (Evren Yurtesen) Date: Mon Oct 6 14:47:32 2008 Subject: continuous backup solution for freebsd? In-Reply-To: <1223292567.1307.1.camel@rivendell.lan> References: <48E9E146.9040308@ispro.net.tr> <20081006112030.GA18670@icarus.home.lan> <1223292567.1307.1.camel@rivendell.lan> Message-ID: <48EA24FF.5060505@ispro.net.tr> Julien Cigar wrote: > Bacula ? http://www.bacula.org > I use it at work to backup linux and freebsd boxes and it works like a > charm. > > On Mon, 2008-10-06 at 04:20 -0700, Jeremy Chadwick wrote: >> On Mon, Oct 06, 2008 at 12:58:30PM +0300, Evren Yurtesen wrote: >>> Hello, >>> >>> Is there a known continuous backup solution similar to r1soft backup for >>> FreeBSD? I googled a lot but couldnt find anything. >>> >>> R1soft says they need help to develop FreeBSD support in their product. >>> Do you know anybody who can help r1soft on this issue? >>> >>> Please see: http://forum.r1soft.com/showpost.php?p=3414&postcount=9 >> Would the GEOM gate class handle this? See ggatec(8) and ggated(8). >> > Bacula does not support continuous backups as far as I know. It has to scan all the files to find new/changed files to backup. The r1soft agent monitors file system writes and backs up changed parts immediately. This does allow r1soft backup to restore the system to its latest state (10-15minutes ago state, thus continuous backup is achieved) as it continually updates the backups. Also has much less stress on the systems where the writes are not so much since it doesnt have to check every file at each backup cycle. Also r1soft cdp has support for MySQL where you can easily restore mysql data in table level if required. It is as well supported by a wide variety of web hosting automation systems for example H-Sphere ( http://www.parallels.com/hsphere/ ) etc. through plugins. Please see the info about continuous data protection: http://en.wikipedia.org/wiki/Continuous_Data_Protection Otherwise I am currently using BackupPC (which is pretty good in my opinion and easier to use compared to Bacula) to take nightly backups of the servers. Thanks, Evren From lists at lizardhill.com Mon Oct 6 15:03:48 2008 From: lists at lizardhill.com (Don O'Neil) Date: Mon Oct 6 15:03:55 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: <20081005013016.GA71103@icarus.home.lan> References: <20081005013016.GA71103@icarus.home.lan> Message-ID: <498C8B62AC3C4663A58D134BFE231685@mickey> > I just swapped out an old 500G disk with a 1TB one and I'm trying to > label it and mount it... > > If I run bsdlabel -w ad4, I get: > > bsdlabel: Geom not found > > If I run sysinstall, it tells me that it can't write to the disk. > > I've tried an old 'bypass': sysctl kern.geom.debugflags=16, but that > didn't help. > > Can anyone help me get this new disk installed without having to boot > off a recovery CD? The server is 500 miles away from me and I don't > have direct console access. > Can you provide output from dmesg, as well as "geom disk list"? OK... I tried: # dd if=/dev/zero of=/dev/ad4 bs=512 count=1000 dd: /dev/ad4: Operation not permitted # fdisk /dev/ad4 ******* Working on device /dev/ad4 ******* parameters extracted from in-core disklabel are: cylinders=1938021 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=1938021 heads=16 sectors/track=63 (1008 blks/cyl) fdisk: invalid fdisk partition table found 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 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 1953525105 (953869 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 612/ head 15/ sector 63 The data for partition 2 is: The data for partition 3 is: The data for partition 4 is: Geometry output: Geom name: ad4 Providers: 1. Name: ad4 Mediasize: 1000204886016 (932G) Sectorsize: 512 Mode: r0w0e0 fwsectors: 63 fwheads: 16 Nothing exciting coming from dmesg. From lists at jnielsen.net Mon Oct 6 15:31:47 2008 From: lists at jnielsen.net (John Nielsen) Date: Mon Oct 6 15:31:54 2008 Subject: acpi_tz0: _TMP value is absurd ignored (-269.7C) Message in every 3 seconds . Message-ID: <200810061131.43660.lists@jnielsen.net> On Monday 06 October 2008 02:07:17 am dhaneshk k wrote: > I installed freebsd-7.0 in a p4 machine , after installation when I > reboot the machine , I am getting the message > > acpi_tz0: _TMP value is absurd ignored (-269.7C) in every 3 seconds I have a machine that does this as well. I haven't done any research into the cause or an actual fix, but a workaround is to add hw.acpi.thermal.polling_rate=0 to /etc/sysctl.conf. JN From jcw at highperformance.net Mon Oct 6 15:31:59 2008 From: jcw at highperformance.net (Jason C. Wells) Date: Mon Oct 6 15:32:12 2008 Subject: stupid xfce clock question In-Reply-To: <48E9CEB8.4090406@gmail.com> References: <48E9CEB8.4090406@gmail.com> Message-ID: <48EA26D4.8060008@highperformance.net> Aryeh M. Friedman wrote: > I work remotely with a company that is across the international date > line from me and I can do the math in my head but want to know if it > is possible to add a clock to my xfce panel that shows the time their > (and keep the one that has my time on it) > _______________________________________________ You can run two instances of orage. I think they read the same config file. I think you would have little trouble hacking up a TZ1, TZ2 variable for seperate instances to read. Later, Jason From freebsd at optiksecurite.com Mon Oct 6 15:32:01 2008 From: freebsd at optiksecurite.com (FreeBSD) Date: Mon Oct 6 15:32:13 2008 Subject: Freebsd-update with a custom kernel and jails In-Reply-To: <48E98751.10605@optiksecurite.com> References: <48E8F253.6010206@optiksecurite.com> <28283d910810051047i30de4c4bsd1e8526474009c40@mail.gmail.com> <48E91947.4080204@optiksecurite.com> <48E98751.10605@optiksecurite.com> Message-ID: <48EA2F6C.20907@optiksecurite.com> FreeBSD a ?crit : > FreeBSD a ?crit : >> matt donovan a ?crit : >>> On Sun, Oct 5, 2008 at 12:58 PM, FreeBSD >>> wrote: >>> >>> >>>> There is my situation: >>>> I want to be able to use freebsd-update to update a FreeBSD 7.0-Release >>>> installation to the latest security patches (I want an update and >>>> not an >>>> upgrade if I understand correctly). Where this gets more complicated >>>> is that >>>> I need a custom kernel (for ULE, pf and ALTQ while also disabling some >>>> devices I'll never need) and I want to use jails to isolate every >>>> services >>>> (Apache and MySQL by now). >>>> >>>> So, I read at some places that you can't use freebsd-update with a >>>> custom >>>> kernel, but I'm not sure if this apply only in the case of an upgrade >>>> between release or if I'll need to manually recompile the kernel >>>> with every >>>> use of freebsd-update. >>>> >>>> I also read that it's possible to update the jails from the host system >>>> with the -b flag. In this case, I supposed that I need to update the >>>> host >>>> system before the jail, but is the procedure going to be exactly the >>>> same? >>>> >>>> yes all you need to do is freebsd-update fetch install your kernel >>>> won't be >>>> updated but your userland will >>>> >>>> >> So it is right to say that the custom kernel "problem" applies only >> when upgrading to a newer release? >> >> All I have to do is 'freebsd-update fetch install' to update the base >> system then 'freebsd-update -b /usr/jail/jail_name fetch install' to >> update the jails? >> >> I hope so because it would be very impressing :) >> >> Martin > Another question just came to my head: May I update the src before > compiling my custom kernel or should I keep the original src that > shipped with the release to be able to use freebsd-update? > > Thank you very much for your help! > > Martin > I just tried it (freebsd-update fetch install) and after a reboot uname -a still shows FreeBSD 7.0-RELEASE #0 while freebsd-update told me I was going to update to 7.0-RELEASE-p5. But, I noticed that the files that needed to be updated were updated. I'm a little confused...can someone explain this behaviour to me? Thanks, Martin From koitsu at FreeBSD.org Mon Oct 6 15:33:59 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Mon Oct 6 15:34:07 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: <498C8B62AC3C4663A58D134BFE231685@mickey> References: <20081005013016.GA71103@icarus.home.lan> <498C8B62AC3C4663A58D134BFE231685@mickey> Message-ID: <20081006153357.GA24159@icarus.home.lan> On Mon, Oct 06, 2008 at 08:03:46AM -0700, Don O'Neil wrote: > > I just swapped out an old 500G disk with a 1TB one and I'm trying to > > label it and mount it... > > > > If I run bsdlabel -w ad4, I get: > > > > bsdlabel: Geom not found > > > > If I run sysinstall, it tells me that it can't write to the disk. > > > > I've tried an old 'bypass': sysctl kern.geom.debugflags=16, but that > > didn't help. > > > > Can anyone help me get this new disk installed without having to boot > > off a recovery CD? The server is 500 miles away from me and I don't > > have direct console access. > > Can you provide output from dmesg, as well as "geom disk list"? > > OK... I tried: > > # dd if=/dev/zero of=/dev/ad4 bs=512 count=1000 > dd: /dev/ad4: Operation not permitted Did you "sysctl kern.geom.debugflags=16" before doing this? What's happening here is that GEOM isn't letting you overwrite the MBR on the disk. Setting kern.geom.debugflags=16 should permit that to happen. > # fdisk /dev/ad4 > ******* Working on device /dev/ad4 ******* > parameters extracted from in-core disklabel are: > cylinders=1938021 heads=16 sectors/track=63 (1008 blks/cyl) > > Figures below won't work with BIOS for partitions not in cyl 1 > parameters to be used for BIOS calculations are: > cylinders=1938021 heads=16 sectors/track=63 (1008 blks/cyl) > > fdisk: invalid fdisk partition table found This line right here looks very bad. I would recommend running sade(8) and properly configuring this disk. > 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 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 63, size 1953525105 (953869 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 612/ head 15/ sector 63 This portion looks okay, although I guess the addressing mode chosen is different on your system. Most of my systems show the end CHS as 1023/254/63. > Geometry output: > > Geom name: ad4 > Providers: > 1. Name: ad4 > Mediasize: 1000204886016 (932G) > Sectorsize: 512 > Mode: r0w0e0 > fwsectors: 63 > fwheads: 16 This looks okay. > Nothing exciting coming from dmesg. Thanks for providing the output like I requested. :-) -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From mksmith at adhost.com Mon Oct 6 15:37:35 2008 From: mksmith at adhost.com (Michael K. Smith - Adhost) Date: Mon Oct 6 15:37:42 2008 Subject: Problem with Passive FTP through PF Message-ID: <17838240D9A5544AAA5FF95F8D52031604BE2EC8@ad-exh01.adhost.lan> Hello All: We are running the following: - FreeBSD 6.3 Release #1 - PF - pftpx for our ftp proxy We have several ftp servers of different flavors behind the PF firewalls and we are getting a lot of the following when users are trying to connect using passive mode. "Server sent passive reply with unroutable address" We're running pftpx as a daemon with no specific flags. From a ps: proxy 4845 0.0 0.0 1452 1100 ?? Is 27Sep08 0:02.13 /usr/local/sbin/pftpx Here is a sample of the rules we are using to allow traffic and to proxy. The server macros are defined and working correctly. Any help would be greatly appreciated. nat-anchor "pftpx/*" rdr-anchor "pftpx/*" rdr on ! $vlan10_if proto { udp tcp } from any to $f1_cps01_ext0 port { 80 443 2087 2083 ftp 49152:65535 } -> $f1_cps01_int0 sticky-address rdr on ! $vlan10_if proto { udp tcp } from any to $f1_cps01_ext1 port { 80 443 ftp 49152:65535 } -> $f1_cps01_int1 sticky-address -- Michael K. Smith - CISSP, GISP Chief Technical Officer - Adhost Internet LLC mksmith@adhost.com w: +1 (206) 404-9500 f: +1 (206) 404-9050 PGP: B49A DDF5 8611 27F3 08B9 84BB E61E 38C0 (Key ID: 0x9A96777D) -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 474 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081006/8d887d87/PGP.pgp From koitsu at FreeBSD.org Mon Oct 6 15:40:33 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Mon Oct 6 15:40:42 2008 Subject: continuous backup solution for freebsd? In-Reply-To: <48EA2270.2080405@ispro.net.tr> References: <48E9E146.9040308@ispro.net.tr> <20081006112030.GA18670@icarus.home.lan> <48EA2270.2080405@ispro.net.tr> Message-ID: <20081006152430.GA23608@icarus.home.lan> On Mon, Oct 06, 2008 at 05:36:32PM +0300, Evren Yurtesen wrote: > Jeremy Chadwick wrote: >> On Mon, Oct 06, 2008 at 12:58:30PM +0300, Evren Yurtesen wrote: >>> Hello, >>> >>> Is there a known continuous backup solution similar to r1soft backup >>> for FreeBSD? I googled a lot but couldnt find anything. >>> >>> R1soft says they need help to develop FreeBSD support in their >>> product. Do you know anybody who can help r1soft on this issue? >>> >>> Please see: http://forum.r1soft.com/showpost.php?p=3414&postcount=9 >> >> Would the GEOM gate class handle this? See ggatec(8) and ggated(8). >> > > I am not saying it is impossible. They just need somebody to put them to > right track I guess. I personally cant do that. It would be nice if > somebody who has knowledge in this area contacts r1soft. At the very > least r1soft seems to be willing to communicate on this issue. First and foremost, the URL you gave is terse and out of context. Let people read the entire thread: http://forum.r1soft.com/showthread.php?p=3414 So let me throw around some ideas. First and foremost, David appears to be saying "We'll take FreeBSD seriously if we can get proper documentation, and it needs to be thorough, that explains how to interface with devices on a block level so we can perform block-level backups and write our software appropriately". AFAIK we don't have any documentation that outlines that in a clear, concise manner. With regards to "providing protocol documentation and letting the open-source community write the software", R1Soft is generally right. Time and resources are the biggest problem with open-source; do not think for a moment that just because millions of users can look at source code means they understand it, or even know how to write it, or will even *want* to. The majority do/will not. That said, I'd like to know exactly how "low-level" R1Soft's software truly is. dump(8), AFAIK, is "block-level" -- and that's a userland program. Does R1Soft's software *truly* require kernel-land? I have more to say on that issue (not against R1Soft, but speaking with regards to the current state of FreeBSD's developer count) if it truly does. I'm somewhat surprised that their software focuses on Linux and Windows and not Solaris and Linux, especially given that they're interested in "dedicated server markets". Solaris is always the first OS that comes to my mind when talking about hardcore server operating systems. > Continuous backups as well as bare-metal-restore seem to be a key > feature for many hosters. Regarding continuous backups: the GEOM gate class could be used for this. Meaning, I think it could be used as an alternate to R1Soft's software. Regarding bare-metal restoration I'm not aware of how to do that under FreeBSD, Linux, or even Solaris "with ease". In most cases, companies develop their own PXE-booting environments which wipe the disks and reinstall + restore data as they see fit. There is no "standard". > FreeBSD is loosing users because of this issue. Why does the "number of FreeBSD users" matter? Quantity does not necessarily represent quality. I'm sorry for sounding anti-FreeBSD, but the reality is that people should use whatever solutions work best for them -- if that's using Windows, Solaris, or Linux, great! Remember that open-source is about choice: and choice means supporting the possibility that someone chooses something else. Blind one-sided advocacy is very damaging to the open-source model and concept. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From dino_vliet at yahoo.com Mon Oct 6 16:08:42 2008 From: dino_vliet at yahoo.com (Dino Vliet) Date: Mon Oct 6 16:08:49 2008 Subject: gmirror prerequisite question SOLVED Message-ID: <932690.98115.qm@web51103.mail.re2.yahoo.com> > I've bought a secondary HDD to attach to my server running freebsd 7.0. > I want to enable gmirror on it (will reinstall everything from scratch), you don't have to. >but I want to know if my hardware is setup correctly as a prerequisite for doing this operation. > > The command > > dmesg | grep Seagate > > Yields: > > ad4: 76319MB at ata2-master UDMA33 > ad6: 76319MB at ata3-master UDMA33 yes it is. ? ***************** Thanks for all your help! I managed to install it on my working system and it was a fairly simple procedure. Now I need to restructure my system because I've installed it as a desktop system, but want to use the system more like a server (database & ruby & weka ). So I will need to deinstall all installed packages like KDE4.1, Xorg, Firefox etc etc. Will still need to figure that out (assuming a pkg_delete -a is what I need) Brgds Dino From jerrymc at msu.edu Mon Oct 6 16:09:02 2008 From: jerrymc at msu.edu (Jerry McAllister) Date: Mon Oct 6 16:09:09 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: <498C8B62AC3C4663A58D134BFE231685@mickey> References: <20081005013016.GA71103@icarus.home.lan> <498C8B62AC3C4663A58D134BFE231685@mickey> Message-ID: <20081006160708.GA70792@gizmo.acns.msu.edu> On Mon, Oct 06, 2008 at 08:03:46AM -0700, Don O'Neil wrote: > > I just swapped out an old 500G disk with a 1TB one and I'm trying to > > label it and mount it... > > > > If I run bsdlabel -w ad4, I get: > > > > bsdlabel: Geom not found > > > > If I run sysinstall, it tells me that it can't write to the disk. > > > > I've tried an old 'bypass': sysctl kern.geom.debugflags=16, but that > > didn't help. > > > > Can anyone help me get this new disk installed without having to boot > > off a recovery CD? The server is 500 miles away from me and I don't > > have direct console access. > > Can you provide output from dmesg, as well as "geom disk list"? > > OK... I tried: > > # dd if=/dev/zero of=/dev/ad4 bs=512 count=1000 > dd: /dev/ad4: Operation not permitted > > # fdisk /dev/ad4 > ******* Working on device /dev/ad4 ******* > parameters extracted from in-core disklabel are: > cylinders=1938021 heads=16 sectors/track=63 (1008 blks/cyl) > > Figures below won't work with BIOS for partitions not in cyl 1 > parameters to be used for BIOS calculations are: > cylinders=1938021 heads=16 sectors/track=63 (1008 blks/cyl) > > fdisk: invalid fdisk partition table found > 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 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 63, size 1953525105 (953869 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 612/ head 15/ sector 63 > The data for partition 2 is: > > The data for partition 3 is: > > The data for partition 4 is: > OK. That looks pretty normal. Did you try doing an: fdisk -I ad4 or maybe fdisk -BI ad4 It takes that to get fdisk to initialize the disk. (the -B puts the master boot block there. Just doing an fdisk ad4 only had fdisk read out stuff and there isn't anything there yet to read - so of course it is invalid. ////jerry > > Geometry output: > > Geom name: ad4 > Providers: > 1. Name: ad4 > Mediasize: 1000204886016 (932G) > Sectorsize: 512 > Mode: r0w0e0 > fwsectors: 63 > fwheads: 16 > > Nothing exciting coming from dmesg. > > > _______________________________________________ > 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 Oct 6 16:14:15 2008 From: jerrymc at msu.edu (Jerry McAllister) Date: Mon Oct 6 16:14:22 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: <20081006160708.GA70792@gizmo.acns.msu.edu> References: <20081005013016.GA71103@icarus.home.lan> <498C8B62AC3C4663A58D134BFE231685@mickey> <20081006160708.GA70792@gizmo.acns.msu.edu> Message-ID: <20081006161221.GB70792@gizmo.acns.msu.edu> On Mon, Oct 06, 2008 at 12:07:08PM -0400, Jerry McAllister wrote: > On Mon, Oct 06, 2008 at 08:03:46AM -0700, Don O'Neil wrote: > > > > I just swapped out an old 500G disk with a 1TB one and I'm trying to > > > label it and mount it... > > > > > > If I run bsdlabel -w ad4, I get: > > > > > > bsdlabel: Geom not found > > > > > > If I run sysinstall, it tells me that it can't write to the disk. > > > > > > I've tried an old 'bypass': sysctl kern.geom.debugflags=16, but that > > > didn't help. > > > > > > Can anyone help me get this new disk installed without having to boot > > > off a recovery CD? The server is 500 miles away from me and I don't > > > have direct console access. > > > Can you provide output from dmesg, as well as "geom disk list"? > > > > OK... I tried: > > > > # dd if=/dev/zero of=/dev/ad4 bs=512 count=1000 > > dd: /dev/ad4: Operation not permitted > > > > # fdisk /dev/ad4 > > ******* Working on device /dev/ad4 ******* > > parameters extracted from in-core disklabel are: > > cylinders=1938021 heads=16 sectors/track=63 (1008 blks/cyl) > > > > Figures below won't work with BIOS for partitions not in cyl 1 > > parameters to be used for BIOS calculations are: > > cylinders=1938021 heads=16 sectors/track=63 (1008 blks/cyl) > > > > fdisk: invalid fdisk partition table found > > 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 165 (0xa5),(FreeBSD/NetBSD/386BSD) > > start 63, size 1953525105 (953869 Meg), flag 80 (active) > > beg: cyl 0/ head 1/ sector 1; > > end: cyl 612/ head 15/ sector 63 > > The data for partition 2 is: > > > > The data for partition 3 is: > > > > The data for partition 4 is: > > > > > OK. That looks pretty normal. Well, except for not allowing the dd to the disk. I haven't had that happen on a disk. (I used to see that a lot on DAT tapes) So, maybe, as someone else suggested, you also need: > > OK... I tried: > > > > # dd if=/dev/zero of=/dev/ad4 bs=512 count=1000 > > dd: /dev/ad4: Operation not permitted > > > Did you "sysctl kern.geom.debugflags=16" before doing this? > > > What's happening here is that GEOM isn't letting you overwrite the MBR > on the disk. Setting kern.geom.debugflags=16 should permit that to > happen. > But, do the following too. > > Did you try doing an: fdisk -I ad4 or maybe fdisk -BI ad4 > > It takes that to get fdisk to initialize the disk. > (the -B puts the master boot block there. > > Just doing an fdisk ad4 only had fdisk read out stuff > and there isn't anything there yet to read - so of course > it is invalid. > > ////jerry > > > > > > > Geometry output: > > > > Geom name: ad4 > > Providers: > > 1. Name: ad4 > > Mediasize: 1000204886016 (932G) > > Sectorsize: 512 > > Mode: r0w0e0 > > fwsectors: 63 > > fwheads: 16 > > > > Nothing exciting coming from dmesg. > > > > > > _______________________________________________ > > 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" > _______________________________________________ > 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 lists at lizardhill.com Mon Oct 6 16:36:22 2008 From: lists at lizardhill.com (Don O'Neil) Date: Mon Oct 6 16:36:28 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: <20081006161221.GB70792@gizmo.acns.msu.edu> References: <20081005013016.GA71103@icarus.home.lan><498C8B62AC3C4663A58D134BFE231685@mickey><20081006160708.GA70792@gizmo.acns.msu.edu> <20081006161221.GB70792@gizmo.acns.msu.edu> Message-ID: <4C2FBF89DECE47FC8C5AA51B62FF8710@mickey> > On Mon, Oct 06, 2008 at 08:03:46AM -0700, Don O'Neil wrote: > > > > I just swapped out an old 500G disk with a 1TB one and I'm trying > > > to label it and mount it... > > > > > > If I run bsdlabel -w ad4, I get: > > > > > > bsdlabel: Geom not found > > > > > > If I run sysinstall, it tells me that it can't write to the disk. > > > > > > I've tried an old 'bypass': sysctl kern.geom.debugflags=16, but > > > that didn't help. > > > > > > Can anyone help me get this new disk installed without having to > > > boot off a recovery CD? The server is 500 miles away from me and I > > > don't have direct console access. > > > Can you provide output from dmesg, as well as "geom disk list"? > > > > OK... I tried: > > > > # dd if=/dev/zero of=/dev/ad4 bs=512 count=1000 > > dd: /dev/ad4: Operation not permitted > > > > # fdisk /dev/ad4 > > ******* Working on device /dev/ad4 ******* parameters extracted from > > in-core disklabel are: > > cylinders=1938021 heads=16 sectors/track=63 (1008 blks/cyl) > > > > Figures below won't work with BIOS for partitions not in cyl 1 > > parameters to be used for BIOS calculations are: > > cylinders=1938021 heads=16 sectors/track=63 (1008 blks/cyl) > > > > fdisk: invalid fdisk partition table found 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 165 (0xa5),(FreeBSD/NetBSD/386BSD) > > start 63, size 1953525105 (953869 Meg), flag 80 (active) > > beg: cyl 0/ head 1/ sector 1; > > end: cyl 612/ head 15/ sector 63 The data for partition 2 > > is: > > > > The data for partition 3 is: > > > > The data for partition 4 is: > > > > > OK. That looks pretty normal. > > Well, except for not allowing the dd to the disk. > I haven't had that happen on a disk. (I used to see that a lot on DAT tapes) > > So, maybe, as someone else suggested, you also need: > > > OK... I tried: > > > > # dd if=/dev/zero of=/dev/ad4 bs=512 count=1000 > > dd: /dev/ad4: Operation not permitted > > > Did you "sysctl kern.geom.debugflags=16" before doing this? > > > What's happening here is that GEOM isn't letting you overwrite the MBR > on the disk. Setting kern.geom.debugflags=16 should permit that to > happen. > > > But, do the following too. > > > Did you try doing an: fdisk -I ad4 or maybe fdisk -BI ad4 > > It takes that to get fdisk to initialize the disk. > (the -B puts the master boot block there. > > Just doing an fdisk ad4 only had fdisk read out stuff > and there isn't anything there yet to read - so of course it is > invalid. > > > > > > Geometry output: > > > > Geom name: ad4 > > Providers: > > 1. Name: ad4 > > Mediasize: 1000204886016 (932G) > > Sectorsize: 512 > > Mode: r0w0e0 > > fwsectors: 63 > > fwheads: 16 > > > > Nothing exciting coming from dmesg. I tried kern.geom.debugflags=16 originally, still doesn't help. Someone else recommended running sade(8) and properly configuring this disk. What is sade(8)? I don't have such an application on 6.1, and there is nothing in the ports. I think that sade is a 7.0+ tool. Any other ideas? From koitsu at FreeBSD.org Mon Oct 6 16:45:56 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Mon Oct 6 16:46:03 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: <4C2FBF89DECE47FC8C5AA51B62FF8710@mickey> References: <20081006161221.GB70792@gizmo.acns.msu.edu> <4C2FBF89DECE47FC8C5AA51B62FF8710@mickey> Message-ID: <20081006164552.GA25629@icarus.home.lan> On Mon, Oct 06, 2008 at 09:36:19AM -0700, Don O'Neil wrote: > > > On Mon, Oct 06, 2008 at 08:03:46AM -0700, Don O'Neil wrote: > > > > > > I just swapped out an old 500G disk with a 1TB one and I'm trying > > > > to label it and mount it... > > > > > > > > If I run bsdlabel -w ad4, I get: > > > > > > > > bsdlabel: Geom not found > > > > > > > > If I run sysinstall, it tells me that it can't write to the disk. > > > > > > > > I've tried an old 'bypass': sysctl kern.geom.debugflags=16, but > > > > that didn't help. > > > > > > > > Can anyone help me get this new disk installed without having to > > > > boot off a recovery CD? The server is 500 miles away from me and I > > > > don't have direct console access. > > > > Can you provide output from dmesg, as well as "geom disk list"? > > > > > > OK... I tried: > > > > > > # dd if=/dev/zero of=/dev/ad4 bs=512 count=1000 > > > dd: /dev/ad4: Operation not permitted > > > > > > # fdisk /dev/ad4 > > > ******* Working on device /dev/ad4 ******* parameters extracted from > > > in-core disklabel are: > > > cylinders=1938021 heads=16 sectors/track=63 (1008 blks/cyl) > > > > > > Figures below won't work with BIOS for partitions not in cyl 1 > > > parameters to be used for BIOS calculations are: > > > cylinders=1938021 heads=16 sectors/track=63 (1008 blks/cyl) > > > > > > fdisk: invalid fdisk partition table found 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 165 (0xa5),(FreeBSD/NetBSD/386BSD) > > > start 63, size 1953525105 (953869 Meg), flag 80 (active) > > > beg: cyl 0/ head 1/ sector 1; > > > end: cyl 612/ head 15/ sector 63 The data for partition 2 > > > is: > > > > > > The data for partition 3 is: > > > > > > The data for partition 4 is: > > > > > > > > > OK. That looks pretty normal. > > > > Well, except for not allowing the dd to the disk. > > I haven't had that happen on a disk. (I used to see that a lot on DAT > tapes) > > > > So, maybe, as someone else suggested, you also need: > > > > > OK... I tried: > > > > > > # dd if=/dev/zero of=/dev/ad4 bs=512 count=1000 > > > dd: /dev/ad4: Operation not permitted > > > > > Did you "sysctl kern.geom.debugflags=16" before doing this? > > > > > What's happening here is that GEOM isn't letting you overwrite the MBR > > on the disk. Setting kern.geom.debugflags=16 should permit that to > > happen. > > > > > > But, do the following too. > > > > > > Did you try doing an: fdisk -I ad4 or maybe fdisk -BI ad4 > > > > It takes that to get fdisk to initialize the disk. > > (the -B puts the master boot block there. > > > > Just doing an fdisk ad4 only had fdisk read out stuff > > and there isn't anything there yet to read - so of course it is > > invalid. > > > > > > > > > > Geometry output: > > > > > > Geom name: ad4 > > > Providers: > > > 1. Name: ad4 > > > Mediasize: 1000204886016 (932G) > > > Sectorsize: 512 > > > Mode: r0w0e0 > > > fwsectors: 63 > > > fwheads: 16 > > > > > > Nothing exciting coming from dmesg. > > I tried kern.geom.debugflags=16 originally, still doesn't help. Can you please do it and then attempt the exact dd you ran above? The reason I'm hounding: you're not providing a lot of detail between whatever it is you're doing. Just a lot of one-liner responses "No didn't work, next". It's very difficult to discern what exactly you're doing; for example, you could've run the sysctl and then attempted an install, rather than re-execute the dd. I can refer you to historic data that shows people have gotten the exact error you're seeing when attempting to write to block 0 (MBR), stopped by GEOM, which is why I'm a little wary. > Someone else recommended running sade(8) and properly configuring this disk. > What is sade(8)? I don't have such an application on 6.1, and there is > nothing in the ports. I think that sade is a 7.0+ tool. 6.1? Why? This is a new install, right? Is there some reason you're installing 6.1 and not 6.3, or better yet, 7.0? That's a separate question, but it does make me wonder if something was fixed between 6.1 and 6.3/7.0 which might address this problem. There is one thing about later FreeBSDs which I am aware of: 48-bit LBA addressing. I'm left wondering if what you're running into is a bug or a problem with older FreeBSD (6.1) not supporting this. I would have to go back through CVS commit lots for ata(4) to find out when 48-bit LBA was added. I think 48-bit LBA support is required for disks >500GB. sade(8) is the "famous" console UI for disk partitioning and labelling inside of sysinstall. It's a separate application, and was introduced in FreeBSD 6.3. You can get the exact same functionality out of sysinstall on earlier FreeBSDs. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From mailing_list at orange.nl Mon Oct 6 16:48:14 2008 From: mailing_list at orange.nl (Aniruddha) Date: Mon Oct 6 16:48:22 2008 Subject: USB mouse problems In-Reply-To: <20081006130929.386aebb7@baby-jane-lamaiziere-net.local> References: <1223275319.4116.7.camel@debian> <20081006130929.386aebb7@baby-jane-lamaiziere-net.local> Message-ID: <1223311696.24138.0.camel@debian> On Mon, 2008-10-06 at 13:09 +0200, Patrick Lamaizi?re wrote: > Le Mon, 06 Oct 2008 08:41:59 +0200, > Aniruddha a ?crit : > > > I have one Razer Lachesis USB mouse attached to the rear usb ports of > > my pc. This mouse has never worked, however when I plug in another USB > > mouse in the front of my pc it works?! I wonder; how do I get the > > Razer Lachesis working without plugging it in the front? > > I don't know. > > > Furthermore I wondered if there is a way to use both the mouse in a > > terminal (gpm) and in xorg? > > Yes, see moused(8) and vidcontrol(1). > > Regards. > _______________________________________________ Thanks for your help! I'll look into moused and vidcontrol. -- Regards, Aniruddha From mailing_list at orange.nl Mon Oct 6 16:52:21 2008 From: mailing_list at orange.nl (Aniruddha) Date: Mon Oct 6 16:52:29 2008 Subject: USB mouse problems In-Reply-To: <48E9F93A.5020806@webzone.net.au> References: <1223275319.4116.7.camel@debian> <20081006130929.386aebb7@baby-jane-lamaiziere-net.local> <48E9F93A.5020806@webzone.net.au> Message-ID: <1223311942.24138.6.camel@debian> On Mon, 2008-10-06 at 22:10 +1030, Andrew D wrote: > Patrick Lamaizi?re wrote: > > Le Mon, 06 Oct 2008 08:41:59 +0200, > > Aniruddha a ?crit : > > > >> I have one Razer Lachesis USB mouse attached to the rear usb ports of > >> my pc. This mouse has never worked, however when I plug in another USB > >> mouse in the front of my pc it works?! I wonder; how do I get the > >> Razer Lachesis working without plugging it in the front? > > > > I don't know. > > Some motherboards have a jumper (or BIOS option) to that has to be set, > so that the front connectors work at the expense of other ports. I don't think this has something to with a bios setting/jumper. My other USB ports are working fine ( I also have an USB keyboard plugged in). Furthermore in Linux nor Vista I've encountered this problem. Therefor I suspect it must have something to do with FreeBSD. Maybe it's an bug? If someone has an solution that would be great! -- Regards, Aniruddha From koitsu at FreeBSD.org Mon Oct 6 17:01:09 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Mon Oct 6 17:01:18 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: <20081006164552.GA25629@icarus.home.lan> References: <20081006161221.GB70792@gizmo.acns.msu.edu> <4C2FBF89DECE47FC8C5AA51B62FF8710@mickey> <20081006164552.GA25629@icarus.home.lan> Message-ID: <20081006170104.GA25818@icarus.home.lan> On Mon, Oct 06, 2008 at 09:45:52AM -0700, Jeremy Chadwick wrote: > There is one thing about later FreeBSDs which I am aware of: 48-bit LBA > addressing. I'm left wondering if what you're running into is a bug or > a problem with older FreeBSD (6.1) not supporting this. I would have to > go back through CVS commit lots for ata(4) to find out when 48-bit LBA > was added. I think 48-bit LBA support is required for disks >500GB. The issue I'm referring to has been touched on many times. First and foremost, 6.1-RELEASE was released in May 2006. Keep that date in mind when reading the below. The first incident, according to CVS commit logs, was adding 48-bit LBA support, supporting disks >137GB. That would've been in RELENG_4, dated 2002/01/05. FreeBSD 6.1 should have this. Next, we have a commit dated 2003/01/19, affecting 48-bit LBA support on Promise 66/100 controllers. FreeBSD 6.1 should have this. Next, 2004/12/09, talking about disk firmware bugs affecting 48-bit LBA addressing, which was affecting a significant number of users. That was applied to HEAD and RELENG_5, so FreeBSD 6.1 ("HEAD" at that time) should have this. Next, 2005/04/14, something about "read back the real taskfile register values when in 48-bit mode". Committed to HEAD, which would've been during days shortly before RELENG_6 was tagged (6.0). Next, 2005/08/17, "support for working around controllers that can't do DMA in 48-bit LBA mode", forcing the disk to use PIO mode allowing the disk to address >137GB. This was added to HEAD and RELENG_6, so this should also exist in 6.1. Next, 2007/12/13, "also fix 48-bit LBA addressing issues, apparently newe chips need 16-bit writes and not the usual FIFO thing". This was committed to HEAD first, RELENG_7 on 2008/01/09, and RELENG_6 on 2008/01/09. This is one which FreeBSD 6.1 *would not* have fixes for. I do not know if this is the problem -- I'm just speculating. Because dmesg output was not provided ("nothing interesting"), we can't tell what sort of controller your disks are hooked to, yadda yadda. This is explicitly why I asked for that information. If you could please try 7.0-STABLE or 7.1-PRERELEASE, that would be highly recommended. It would at least allow us to determine if you're being affected by a bug in older FreeBSD, or if this is something that is unique to your environment or applies to present-day FreeBSD. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From lists at lizardhill.com Mon Oct 6 17:02:53 2008 From: lists at lizardhill.com (Don O'Neil) Date: Mon Oct 6 17:03:02 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: <20081006164552.GA25629@icarus.home.lan> References: <20081006161221.GB70792@gizmo.acns.msu.edu><4C2FBF89DECE47FC8C5AA51B62FF8710@mickey> <20081006164552.GA25629@icarus.home.lan> Message-ID: <660A3C7B5A0744789B4CCAD6BD2814BB@mickey> > > > > I just swapped out an old 500G disk with a 1TB one and I'm > > > > trying to label it and mount it... > > > > > > > > If I run bsdlabel -w ad4, I get: > > > > > > > > bsdlabel: Geom not found > > > > > > > > If I run sysinstall, it tells me that it can't write to the disk. > > > > > > > > I've tried an old 'bypass': sysctl kern.geom.debugflags=16, but > > > > that didn't help. > > > > > > > > Can anyone help me get this new disk installed without having to > > > > boot off a recovery CD? The server is 500 miles away from me and > > > > I don't have direct console access. > > > > Can you provide output from dmesg, as well as "geom disk list"? > > > > > > OK... I tried: > > > > > > # dd if=/dev/zero of=/dev/ad4 bs=512 count=1000 > > > dd: /dev/ad4: Operation not permitted > > > > > > # fdisk /dev/ad4 > > > ******* Working on device /dev/ad4 ******* parameters extracted > > > from in-core disklabel are: > > > cylinders=1938021 heads=16 sectors/track=63 (1008 blks/cyl) > > > > > > Figures below won't work with BIOS for partitions not in cyl 1 > > > parameters to be used for BIOS calculations are: > > > cylinders=1938021 heads=16 sectors/track=63 (1008 blks/cyl) > > > > > > fdisk: invalid fdisk partition table found 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 165 (0xa5),(FreeBSD/NetBSD/386BSD) > > > start 63, size 1953525105 (953869 Meg), flag 80 (active) > > > beg: cyl 0/ head 1/ sector 1; > > > end: cyl 612/ head 15/ sector 63 The data for partition 2 > > > is: > > > > > > The data for partition 3 is: > > > > > > The data for partition 4 is: > > > > > > > > > OK. That looks pretty normal. > > > > Well, except for not allowing the dd to the disk. > > I haven't had that happen on a disk. (I used to see that a lot on > > DAT > tapes) > > > > So, maybe, as someone else suggested, you also need: > > > > > OK... I tried: > > > > > > # dd if=/dev/zero of=/dev/ad4 bs=512 count=1000 > > > dd: /dev/ad4: Operation not permitted > > > > > Did you "sysctl kern.geom.debugflags=16" before doing this? > > > > > What's happening here is that GEOM isn't letting you overwrite the > > MBR on the disk. Setting kern.geom.debugflags=16 should permit that > > to happen. > > > > > > But, do the following too. > > > > > > Did you try doing an: fdisk -I ad4 or maybe fdisk -BI ad4 > > > > It takes that to get fdisk to initialize the disk. > > (the -B puts the master boot block there. > > > > Just doing an fdisk ad4 only had fdisk read out stuff > > and there isn't anything there yet to read - so of course it is > > invalid. > > > > > > > > > > Geometry output: > > > > > > Geom name: ad4 > > > Providers: > > > 1. Name: ad4 > > > Mediasize: 1000204886016 (932G) > > > Sectorsize: 512 > > > Mode: r0w0e0 > > > fwsectors: 63 > > > fwheads: 16 > > > > > > Nothing exciting coming from dmesg. > > I tried kern.geom.debugflags=16 originally, still doesn't help. > Can you please do it and then attempt the exact dd you ran above? # sysctl kern.geom.debugflags=16 kern.geom.debugflags: 16 -> 16 # dd if=/dev/zero of=/dev/ad4 bs=512 count=1000 dd: /dev/ad4: Operation not permitted >The reason I'm hounding: you're not providing a lot of detail between whatever it is you're doing. Just a lot of >one-liner responses "No didn't work, next". It's very difficult to discern what exactly you're doing; for example, >you could've run the sysctl and then attempted an install, rather than re-execute the dd. I did exactly as you suggested, and I've posed all my results here... I'm scratching my head on this one as much as you are. >I can refer you to historic data that shows people have gotten the exact error you're seeing when attempting to >write to block 0 (MBR), stopped by GEOM, which is why I'm a little wary. >> Someone else recommended running sade(8) and properly configuring this disk. >> What is sade(8)? I don't have such an application on 6.1, and there is >> nothing in the ports. I think that sade is a 7.0+ tool. >6.1? Why? This is a new install, right? Is there some reason you're installing 6.1 and not 6.3, or better yet, >7.0? That's a separate question, but it does make me wonder if something was fixed between 6.1 and 6.3/7.0 which >might address this problem. No, it's not a new install, I'm just trying to add a new disk on an older server. I REALLY don't want to do an OS upgrade at this point on a production box that is running fine. We do that 1x a year, and I'm not in the mood to do it just to add a bigger disk. >There is one thing about later FreeBSDs which I am aware of: 48-bit LBA addressing. I'm left wondering if what >you're running into is a bug or a problem with older FreeBSD (6.1) not supporting this. I would have to go back> through CVS commit lots for ata(4) to find out when 48-bit LBA was added. I think 48-bit LBA support is required >for disks >500GB. Thart's a good point... I'll have to look into that to see when the 48 bit LBA was added. HOWEVER, I believe 48 bit LBA was needed for anything >248 GB, and I had a 500 G drive in there before. I had this EXACT same problem with the 500G drive I had in there before, and the only work around then was to boot off a recovery/boot CD. >sade(8) is the "famous" console UI for disk partitioning and labelling inside of sysinstall. It's a separate >application, and was introduced in FreeBSD 6.3. You can get the exact same functionality out of sysinstall on >earlier FreeBSDs. I was originally trying sysinstall, and it failed miserably too. From koitsu at FreeBSD.org Mon Oct 6 17:05:03 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Mon Oct 6 17:05:10 2008 Subject: USB mouse problems In-Reply-To: <1223311942.24138.6.camel@debian> References: <1223275319.4116.7.camel@debian> <20081006130929.386aebb7@baby-jane-lamaiziere-net.local> <48E9F93A.5020806@webzone.net.au> <1223311942.24138.6.camel@debian> Message-ID: <20081006170501.GA26115@icarus.home.lan> On Mon, Oct 06, 2008 at 06:52:22PM +0200, Aniruddha wrote: > On Mon, 2008-10-06 at 22:10 +1030, Andrew D wrote: > > Patrick Lamaizi?re wrote: > > > Le Mon, 06 Oct 2008 08:41:59 +0200, > > > Aniruddha a ?crit : > > > > > >> I have one Razer Lachesis USB mouse attached to the rear usb ports of > > >> my pc. This mouse has never worked, however when I plug in another USB > > >> mouse in the front of my pc it works?! I wonder; how do I get the > > >> Razer Lachesis working without plugging it in the front? > > > > > > I don't know. > > > > Some motherboards have a jumper (or BIOS option) to that has to be set, > > so that the front connectors work at the expense of other ports. > > I don't think this has something to with a bios setting/jumper. My > other USB ports are working fine ( I also have an USB keyboard plugged > in). > > Furthermore in Linux nor Vista I've encountered this problem. Therefor I > suspect it must have something to do with FreeBSD. Maybe it's an bug? If > someone has an solution that would be great! FreeBSD's existing USB stack is known to be... shall we say, flaky. It's well-established at this point. The possibility of it being related to FreeBSD's USB stack is very likely. A new USB stack is available for CURRENT, but requires manual patching. If you're willing to try this, you should get in contact with Alfred Perlstein to discuss/get the patch. Keep in mind that this patch, as I stated, only applies to CURRENT, and not to FreeBSD 7 or earlier. You can download a CURRENT ISO here: ftp://ftp4.freebsd.org/pub/FreeBSD/snapshots/200809/ -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From mister.olli at googlemail.com Mon Oct 6 17:06:58 2008 From: mister.olli at googlemail.com (Mister Olli) Date: Mon Oct 6 17:07:05 2008 Subject: analyzing freebsd core dumps Message-ID: <1223273047.23248.25.camel@phoenix.blechhirn.net> hi list... I have a freebsd maschine running for more 6 months without any problems. the machine's only service is to be an openvpn gateway for a hand of users. 2 weeks ago the first problems started. the openvpn exited with signal 11 and 4 and core dumps were written. the same happend yesterday with the postfix/cleanup process, and the suddenly the machine rebooted without any further log messages. what is the best way to troubleshoot the cause of this problem? greetz olli From yurtesen at ispro.net.tr Mon Oct 6 17:07:31 2008 From: yurtesen at ispro.net.tr (Evren Yurtesen) Date: Mon Oct 6 17:07:39 2008 Subject: continuous backup solution for freebsd? In-Reply-To: <20081006152430.GA23608@icarus.home.lan> References: <48E9E146.9040308@ispro.net.tr> <20081006112030.GA18670@icarus.home.lan> <48EA2270.2080405@ispro.net.tr> <20081006152430.GA23608@icarus.home.lan> Message-ID: <48EA45D2.70502@ispro.net.tr> First of all, I am not an r1soft advocate, but they seem to be making a software which is popular and affordable and interested in giving FreeBSD support... r1soft is not the issue here, the problem is that there is no way to do near continuous backups on FreeBSD servers. Jeremy Chadwick wrote: > That said, I'd like to know exactly how "low-level" R1Soft's software > truly is. dump(8), AFAIK, is "block-level" -- and that's a userland > program. Does R1Soft's software *truly* require kernel-land? I have > more to say on that issue (not against R1Soft, but speaking with regards > to the current state of FreeBSD's developer count) if it truly does. I think you might not have understood the concept of near continuous backups. The R1Soft backup monitors the filesystem operations and backs up written blocks. So it has to know what is written and when to be able to back it up. The dump command simply reads/writes the blocks. It cant only read changed blocks. It has to read the whole thing (inefficient). >> Continuous backups as well as bare-metal-restore seem to be a key >> feature for many hosters. > > Regarding continuous backups: the GEOM gate class could be used for > this. Meaning, I think it could be used as an alternate to R1Soft's > software. The GEOM gate allows mirroring to a remote machine, am I not right? That would be more or less same as same as using RAID. The continuous backup (or near continuous) means that you can restore the filesystem to a point like 15 minutes ago, or 1 hour ago. Besides, I hear geom might have network delay problems and it is much more complicated setup to build two machines in mirror configuration just for backup purposes as well as you cant restore to a point in the past. > Regarding bare-metal restoration I'm not aware of how to do that under > FreeBSD, Linux, or even Solaris "with ease". In most cases, companies > develop their own PXE-booting environments which wipe the disks and > reinstall + restore data as they see fit. There is no "standard". OK. Actually there is more than one solution which can do bare-metal-restores for FreeBSD also. However those solutions at best rely on nightly backups of the filesystems. With R1Soft, you can restore the system to only few minutes before the total meltdown. Unrelated to bare metal restore, with normal backups you are not taking backups of files which are created/deleted often. For example this can be customer mails or if a hacker hacks the box and removes his trails. Even sometimes customers upload some file and remove from their computer the same they and then accidentally remove from the server. With R1Soft backup the data would go into the backup server right away and you an restore every single file independent of when it was put or removed. >> FreeBSD is loosing users because of this issue. > > Why does the "number of FreeBSD users" matter? Quantity does not > necessarily represent quality. Thats a perfectly fine statement. But a quality product would be nothing without users. As well as this problem effects the quality. Consider a system which has sensitive data which shouldnt get lost, with continuous data protecton you can restore such failed system to only few minutes before the failure point. Doing this is currently impossible with FreeBSD. Best we can do is to return to previous snapshot taken (which might be a day old). This is an important design criteria since restoring the lost data might be time consuming and expensive. Thge issue is not even r1soft, they are just the most popular company giving such solution, only if there was at least one backup solution which could provide near continuous data protection... In addition to this, near continuous backups create less load on boxes with a lot of reads but little writes. Standart backups have to scan all the files to detect which files were changed. > I'm sorry for sounding anti-FreeBSD, but the reality is that people > should use whatever solutions work best for them -- if that's using > Windows, Solaris, or Linux, great! Remember that open-source is about > choice: and choice means supporting the possibility that someone chooses > something else. Blind one-sided advocacy is very damaging to the > open-source model and concept. I agree, and please dont shoot the messenger :) I just have a bunch of customers who would use FreeBSD but not using only because of this problem. In addition to that I myself would like to use near continuous backups as well. I was just trying to inform the FreeBSD community here so if somebody can have some time to divert to giving the right advices to r1soft then we all could benefit from it. It doesnt even have to be free even, with a reasonable price they can probably hire somebody to work for building the basics of this feature. So the real question is, is there anybody who is willing and have the experience to help on this issue? Thanks, Evren From gabrimate at gmail.com Mon Oct 6 17:11:58 2008 From: gabrimate at gmail.com (=?UTF-8?Q?G=C3=A1bri_M=C3=A1t=C3=A9?=) Date: Mon Oct 6 17:12:05 2008 Subject: carp no working after upgrade Message-ID: Dear List, i have a FreeBSD 7-release cluster firewall using carp for the public IP addresses. Last evening i've upgraded one of the firewalls to 7-release-p5 and after that carp stopped working. The two nodes can't understang each others cap packets so both of them are in master state. Does p5 differs from the original release so that the carp packets are different two? From koitsu at FreeBSD.org Mon Oct 6 17:18:11 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Mon Oct 6 17:18:19 2008 Subject: analyzing freebsd core dumps In-Reply-To: <1223273047.23248.25.camel@phoenix.blechhirn.net> References: <1223273047.23248.25.camel@phoenix.blechhirn.net> Message-ID: <20081006171809.GA26368@icarus.home.lan> On Mon, Oct 06, 2008 at 08:04:07AM +0200, Mister Olli wrote: > hi list... > > I have a freebsd maschine running for more 6 months without any > problems. > the machine's only service is to be an openvpn gateway for a hand of > users. > > 2 weeks ago the first problems started. the openvpn exited with signal > 11 and 4 and core dumps were written. > > the same happend yesterday with the postfix/cleanup process, and the > suddenly the machine rebooted without any further log messages. > > what is the best way to troubleshoot the cause of this problem? Signal 11 happening "out of no where" on machines which have been running fine, most of the time, is a sign of hardware failure (usually RAM, but sometimes motherboard or PSU). The fact you got a reboot is also further evidence of this. http://www.freebsd.org/doc/en/books/faq/troubleshoot.html#SIGNAL11 I would recommend taking the machine offline and running something like memtest86+ on it for 6-7 hours. Any errors seen are a pretty good sign that you should replace the memory or the motherboard. You can download an ISO or floppy disk images here: http://www.memtest.org/ Bottom line is that this is probably a hardware issue. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From mailing_list at orange.nl Mon Oct 6 17:22:59 2008 From: mailing_list at orange.nl (Aniruddha) Date: Mon Oct 6 17:23:06 2008 Subject: USB mouse problems In-Reply-To: <20081006170501.GA26115@icarus.home.lan> References: <1223275319.4116.7.camel@debian> <20081006130929.386aebb7@baby-jane-lamaiziere-net.local> <48E9F93A.5020806@webzone.net.au> <1223311942.24138.6.camel@debian> <20081006170501.GA26115@icarus.home.lan> Message-ID: <1223313780.24138.8.camel@debian> On Mon, 2008-10-06 at 10:05 -0700, Jeremy Chadwick wrote: > > I don't think this has something to with a bios setting/jumper. My > > other USB ports are working fine ( I also have an USB keyboard plugged > > in). > > > > Furthermore in Linux nor Vista I've encountered this problem. Therefor I > > suspect it must have something to do with FreeBSD. Maybe it's an bug? If > > someone has an solution that would be great! > > FreeBSD's existing USB stack is known to be... shall we say, flaky. > It's well-established at this point. The possibility of it being > related to FreeBSD's USB stack is very likely. > > A new USB stack is available for CURRENT, but requires manual patching. > If you're willing to try this, you should get in contact with Alfred > Perlstein to discuss/get the patch. Keep in mind > that this patch, as I stated, only applies to CURRENT, and not to > FreeBSD 7 or earlier. > > You can download a CURRENT ISO here: > > ftp://ftp4.freebsd.org/pub/FreeBSD/snapshots/200809/ > Lol, during my search for a solution I did see numerous problems with mice. Out of curiosity; is CURRENT the same as FreeBSD 7.1-BETA? -- Regards, Aniruddha From rsmith at xs4all.nl Mon Oct 6 17:38:24 2008 From: rsmith at xs4all.nl (Roland Smith) Date: Mon Oct 6 17:38:32 2008 Subject: continuous backup solution for freebsd? In-Reply-To: <48E9E146.9040308@ispro.net.tr> References: <48E9E146.9040308@ispro.net.tr> Message-ID: <20081006173815.GA46342@slackbox.xs4all.nl> On Mon, Oct 06, 2008 at 12:58:30PM +0300, Evren Yurtesen wrote: > Hello, > > Is there a known continuous backup solution similar to r1soft backup for > FreeBSD? I googled a lot but couldnt find anything. I don't think so. The closest thing I know of is rsnapshot (http://www.rsnapshot.org/). My solution is to run rsync in a cron job. In my situation this takes about 5 minutes for approximately 100GB of data. The time it takes will obviously depend on the rate of change in the data. You could also use local snapshots with mksnap_ffs(8), to solve the "oh shit I deleted my files" situation. 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: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081006/f47bd058/attachment.pgp From jerrymc at msu.edu Mon Oct 6 17:46:56 2008 From: jerrymc at msu.edu (Jerry McAllister) Date: Mon Oct 6 17:47:03 2008 Subject: analyzing freebsd core dumps In-Reply-To: <20081006171809.GA26368@icarus.home.lan> References: <1223273047.23248.25.camel@phoenix.blechhirn.net> <20081006171809.GA26368@icarus.home.lan> Message-ID: <20081006174502.GB71024@gizmo.acns.msu.edu> On Mon, Oct 06, 2008 at 10:18:09AM -0700, Jeremy Chadwick wrote: > On Mon, Oct 06, 2008 at 08:04:07AM +0200, Mister Olli wrote: > > hi list... > > > > I have a freebsd maschine running for more 6 months without any > > problems. > > the machine's only service is to be an openvpn gateway for a hand of > > users. > > > > 2 weeks ago the first problems started. the openvpn exited with signal > > 11 and 4 and core dumps were written. > > > > the same happend yesterday with the postfix/cleanup process, and the > > suddenly the machine rebooted without any further log messages. > > > > what is the best way to troubleshoot the cause of this problem? > > Signal 11 happening "out of no where" on machines which have been > running fine, most of the time, is a sign of hardware failure (usually > RAM, but sometimes motherboard or PSU). The fact you got a reboot is > also further evidence of this. > > http://www.freebsd.org/doc/en/books/faq/troubleshoot.html#SIGNAL11 > > I would recommend taking the machine offline and running something like > memtest86+ on it for 6-7 hours. Any errors seen are a pretty good sign > that you should replace the memory or the motherboard. You can > download an ISO or floppy disk images here: > > http://www.memtest.org/ > > Bottom line is that this is probably a hardware issue. Could also be a contacts if it is not the actual memory or board. A marginal contact where something is plugged in can over time build up deposits that make it fail. Of course, this is still a hardware problem, but can often be cured by reseating everything. If it is bad enough, it could also be exacerbated by reseating everything. ////jerry > > -- > | Jeremy Chadwick jdc at parodius.com | > | Parodius Networking http://www.parodius.com/ | > | UNIX Systems Administrator Mountain View, CA, USA | > | Making life hard for others since 1977. PGP: 4BD6C0CB | > > _______________________________________________ > 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 koitsu at FreeBSD.org Mon Oct 6 17:59:44 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Mon Oct 6 17:59:52 2008 Subject: continuous backup solution for freebsd? In-Reply-To: <48EA45D2.70502@ispro.net.tr> References: <48E9E146.9040308@ispro.net.tr> <20081006112030.GA18670@icarus.home.lan> <48EA2270.2080405@ispro.net.tr> <20081006152430.GA23608@icarus.home.lan> <48EA45D2.70502@ispro.net.tr> Message-ID: <20081006175940.GB26368@icarus.home.lan> On Mon, Oct 06, 2008 at 08:07:30PM +0300, Evren Yurtesen wrote: > First of all, I am not an r1soft advocate, but they seem to be making a > software which is popular and affordable and interested in giving > FreeBSD support... r1soft is not the issue here, the problem is that > there is no way to do near continuous backups on FreeBSD servers. > > Jeremy Chadwick wrote: > >> That said, I'd like to know exactly how "low-level" R1Soft's software >> truly is. dump(8), AFAIK, is "block-level" -- and that's a userland >> program. Does R1Soft's software *truly* require kernel-land? I have >> more to say on that issue (not against R1Soft, but speaking with regards >> to the current state of FreeBSD's developer count) if it truly does. > > I think you might not have understood the concept of near continuous > backups. The R1Soft backup monitors the filesystem operations and backs > up written blocks. So it has to know what is written and when to be able > to back it up. The dump command simply reads/writes the blocks. It cant > only read changed blocks. It has to read the whole thing (inefficient). It depends on how it's implemented, but in general, yes, I guess this would advocate reliance on GEOM, which would be kernel. The thing is, the GEOM gate class could be extended to handle this situation -- it's a class intended for filesystem replication in real-time, over a network. That said, I shall unleash with the comments I had originally planned on including, but removed them since I felt it might be too hasty of me. The sad reality with FreeBSD is that we do not have enough clueful folks who are familiar with the kernel innards. Those who are clueful are very busy (with other things, and with real life), and often do not have the time to give direct/constant focus on a single item for long periods of time. I have a mental list of those who are absolutely incredible FreeBSD developers (and I will name one of them: pjd@, who should be given tens of thousands of dollars, IMHO, for his work on bringing ZFS to FreeBSD), but the list is small compared to how many *users* we have. The learning curve for getting familiar with pieces of the FreeBSD kernel is astoundingly large. I myself have tried it on a couple of occasions, but lack of concise and up-to-date documentation makes it very difficult to accomplish. (I'm familiar with very old operating systems, such as MS-DOS, ProDOS, and GS/OS on the Apple IIGS -- FreeBSD is far from those). Books are also not of much help, as I've been told that the existing book which covers FreeBSD engineering models is "long outdated" and that "many pieces now are completely different". A complete and total moral killer right there. The book is for FreeBSD 5.2, by the way. We cannot rely on the FreeBSD Documentation folks to write the necessary docs either, because they do not have the knowledge of the kernel to write such. As someone who's written software, I can assure you that the only way to get good documentation for low-level pieces is to write the documentation in parallel to the code; otherwise, you end up with lots of "after-the-fact" reverse engineering efforts, which takes tons of time, and requires a lot of communication between the code author(s) and the documenters. We're talking thousands of hours here. Requiring the user/developer to reverse-engineer hundreds of thousands of lines of C code is not reasonable/plausible; hardly anyone is willing to do that for free. This is why Linux often has the upper hand: they have multiple eyes and individuals fully familiar with different pieces of the kernel. If one or two people go on hiatus or disappear (death, life, whatever), the existing kernel piece does not sit in limbo for years -- there are other people to pick up the responsibilities. Much of the FreeBSD kernel and device layer does not have this degree of freedom; much is single-person, single-maintainer, single-point-of-failure. Then there's commercial company support -- by that I mean, actual hardware vendors that support the OS. FreeBSD has some of this, but most are very small companies (few employees), with limited funds, or have very *very* limited/specific focus; there are a couple big ones, but they are few and far between. Linux has hundreds, and many of the vendors are *very* large. In fact, the support is so large that freelance Linux developers are able to get things like development PCI boards for new NICs from the vendors directly; FreeBSD? Rare. What this means is that the commercial world takes Linux seriously, while FreeBSD not so. Sorry, but that's reality. It amazes me how "easy" someone can pick up programming something in kernel-land for Linux, while for FreeBSD it just doesn't happen on a regular basis. When I see it happen, it's bizarre -- suddenly out of no where comes this one fellow (we'll call him Bob), appearing on a mailing list with a bunch of patches. Heard of him before? Nope, but here he is, and somehow he engineered all of this. What's his background? I don't know, maybe some old guy who lives in a cave and has been studying BSD code in the steam tunnels; who knows. It's like they literally come out of the woodwork, while I don't see this sort of behaviour with Linux. With Linux, it's often "Hi I work for , we're adding support for Linux, I need some help with regards to the following kernel piece..." and they've got responses from 20 people in 24 hours. What I'm saying is that Linux has the upper hand here. More eyes, more people, more developers, larger community, larger vendor support, and much **much** faster turn-around time on fixes/bugs. We can sit here and argue about those facts all we want (it's the equivalent of doing burn-outs in an AMC Pacer in a parking lot -- wasted time, zero gain), but nothing changes the facts. >>> Continuous backups as well as bare-metal-restore seem to be a key >>> feature for many hosters. >> >> Regarding continuous backups: the GEOM gate class could be used for >> this. Meaning, I think it could be used as an alternate to R1Soft's >> software. > > The GEOM gate allows mirroring to a remote machine, am I not right? That > would be more or less same as same as using RAID. The continuous backup > (or near continuous) means that you can restore the filesystem to a > point like 15 minutes ago, or 1 hour ago. What you're talking about sounds like filesystem snapshots, with an *immense* amount of granularity. Enterprise-level filers have this capability (I'm talking Network Appliance), and UFS2 with softupdates have it (called snapshots; but please be aware that there are *HUGE* problems with it, and it should not be relied upon for this kind of functionality) -- but nothing that can be restored within *minutes*. Even Netapp filers do not have that kind of granularity -- the amount of disk it would require would be astounding. Netapp filers often do snapshot generation hourly or nightly (it's configurable how often); minutes is unheard of. ZFS also has snapshot capability, but does not have real-time filesystem mirroring capabilities over a network (keyword: real-time). > Besides, I hear geom might > have network delay problems and it is much more complicated setup to > build two machines in mirror configuration just for backup purposes as > well as you cant restore to a point in the past. Well, GEOM gate is the only thing I know of which replicates filesystems over a network in real-time. >> Regarding bare-metal restoration I'm not aware of how to do that under >> FreeBSD, Linux, or even Solaris "with ease". In most cases, companies >> develop their own PXE-booting environments which wipe the disks and >> reinstall + restore data as they see fit. There is no "standard". > > OK. Actually there is more than one solution which can do > bare-metal-restores for FreeBSD also. However those solutions at best > rely on nightly backups of the filesystems. With R1Soft, you can restore > the system to only few minutes before the total meltdown. > > Unrelated to bare metal restore, with normal backups you are not taking > backups of files which are created/deleted often. For example this can > be customer mails or if a hacker hacks the box and removes his trails. > Even sometimes customers upload some file and remove from their computer > the same they and then accidentally remove from the server. With R1Soft > backup the data would go into the backup server right away and you an > restore every single file independent of when it was put or removed. Right. We're definitely talking about snapshots, at least in concept. The fact that you're able to restore data within *minutes* is pretty impressive. I'm curious what sort of disk requirements are needed though (I guess it depends on how often changes happen on the filesystem). >>> FreeBSD is loosing users because of this issue. >> >> Why does the "number of FreeBSD users" matter? Quantity does not >> necessarily represent quality. > > Thats a perfectly fine statement. But a quality product would be nothing > without users. As well as this problem effects the quality. Consider a > system which has sensitive data which shouldnt get lost, with continuous > data protecton you can restore such failed system to only few minutes > before the failure point. Doing this is currently impossible with > FreeBSD. Best we can do is to return to previous snapshot taken (which > might be a day old). This is an important design criteria since > restoring the lost data might be time consuming and expensive. Thge > issue is not even r1soft, they are just the most popular company giving > such solution, only if there was at least one backup solution which > could provide near continuous data protection... Part of the "design issue" here is that there's two concepts being merged into one thing: snapshots and backup restoration. I for one have never correlated snapshots and backup restorations (bare-metal recovery). I consider them completely separate things, and handled *very* differently. I have a feeling that no one's done this on FreeBSD because the amount of effort required is quite large. Someone did mention HAMMER on DragonflyBSD, but I have no knowledge of it or what it provides -- that said, Matt (Dillon)'s stuff is usually very, very good. > In addition to this, near continuous backups create less load on boxes > with a lot of reads but little writes. Standart backups have to scan all > the files to detect which files were changed. It depends on how the filesystem is done. For example, with UFS2+SU snapshots, snapshot generation can take literally hours: completely unreasonable. While with ZFS, snapshot generation usually takes 2-3 seconds -- even on massive changes (e.g. take a snapshot, then rm a 600MB ISO image, then compare present vs. snapshot -- the diff is something like 40KBytes). >> I'm sorry for sounding anti-FreeBSD, but the reality is that people >> should use whatever solutions work best for them -- if that's using >> Windows, Solaris, or Linux, great! Remember that open-source is about >> choice: and choice means supporting the possibility that someone chooses >> something else. Blind one-sided advocacy is very damaging to the >> open-source model and concept. > > I agree, and please dont shoot the messenger :) I just have a bunch of > customers who would use FreeBSD but not using only because of this > problem. In addition to that I myself would like to use near continuous > backups as well. Understood. I now realise the full importance of what it is you've described, and what R1Soft has developed. Thank you for taking the time to educate me -- I appreciate it! > I was just trying to inform the FreeBSD community here so if somebody > can have some time to divert to giving the right advices to r1soft then > we all could benefit from it. It doesnt even have to be free even, with > a reasonable price they can probably hire somebody to work for building > the basics of this feature. > > So the real question is, is there anybody who is willing and have the > experience to help on this issue? The response you're going to get is: "why don't you state how much you're willing to pay for this feature, so that anyone who IS interested can decide if that amount of money is worth the time required?" My response is different: this sort of thing should definitely be pawned off onto the FreeBSD Foundation. IMHO, this is the sort of thing the Foundation *should* be handling. There is money there, and this sounds like a project which could benefit FreeBSD as a whole. It's possible that R1Soft, if paid, would take up such a challenge, assuming some key folks (like Kirk McKusick; not volunteering him, just saying he has experience with filesystems) could help with the development process and learning curve. I can't speak for the Foundation, but it really sounds like that's the way to go with this. I don't think you'll get any responses from interested parties on freebsd-questions. :-) -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From fbsd.questions at rachie.is-a-geek.net Mon Oct 6 18:00:29 2008 From: fbsd.questions at rachie.is-a-geek.net (Mel) Date: Mon Oct 6 18:00:36 2008 Subject: continuous backup solution for freebsd? In-Reply-To: <48EA45D2.70502@ispro.net.tr> References: <48E9E146.9040308@ispro.net.tr> <20081006152430.GA23608@icarus.home.lan> <48EA45D2.70502@ispro.net.tr> Message-ID: <200810062000.26501.fbsd.questions@rachie.is-a-geek.net> On Monday 06 October 2008 19:07:30 Evren Yurtesen wrote: > First of all, I am not an r1soft advocate, but they seem to be making a > software which is popular and affordable and interested in giving > FreeBSD support... r1soft is not the issue here, the problem is that > there is no way to do near continuous backups on FreeBSD servers. > > Jeremy Chadwick wrote: > > That said, I'd like to know exactly how "low-level" R1Soft's software > > truly is. dump(8), AFAIK, is "block-level" -- and that's a userland > > program. Does R1Soft's software *truly* require kernel-land? I have > > more to say on that issue (not against R1Soft, but speaking with regards > > to the current state of FreeBSD's developer count) if it truly does. > > I think you might not have understood the concept of near continuous > backups. The R1Soft backup monitors the filesystem operations So does ggate. But read on. > So it has to know what is written and when to be able > to back it up. The dump command simply reads/writes the blocks. It cant > only read changed blocks. It has to read the whole thing (inefficient). But Jeremy's point being, dump(8) does not need /dev/special_device to read/write at block level. > >> Continuous backups as well as bare-metal-restore seem to be a key > >> feature for many hosters. > > > > Regarding continuous backups: the GEOM gate class could be used for > > this. Meaning, I think it could be used as an alternate to R1Soft's > > software. > > The GEOM gate allows mirroring to a remote machine, am I not right? That > would be more or less same as same as using RAID. The continuous backup > (or near continuous) means that you can restore the filesystem to a > point like 15 minutes ago, or 1 hour ago. Besides, I hear geom might > have network delay problems and it is much more complicated setup to > build two machines in mirror configuration just for backup purposes as > well as you cant restore to a point in the past. I think once you and R1soft step out of the "I need a block level device" paradigm, you will see that modifying ggate with a "copy and fall through" mode, as well as a mechanism to block writes to the local provider, when the remote provider wants to write is the best solution all around and your best bet to get support for it. Right now, ggate does "intercept and redirect", but the concept of copy and fall through is not that far away. Bringing the R1soft devs in contact with the FreeBSD geom list and having them browse the sys/geom/ggate sources to see how trivial it is to hook into filesystem operations would be the course of action I'd recommend. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. From koitsu at FreeBSD.org Mon Oct 6 18:01:00 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Mon Oct 6 18:01:06 2008 Subject: USB mouse problems In-Reply-To: <1223313780.24138.8.camel@debian> References: <1223275319.4116.7.camel@debian> <20081006130929.386aebb7@baby-jane-lamaiziere-net.local> <48E9F93A.5020806@webzone.net.au> <1223311942.24138.6.camel@debian> <20081006170501.GA26115@icarus.home.lan> <1223313780.24138.8.camel@debian> Message-ID: <20081006180058.GC26368@icarus.home.lan> On Mon, Oct 06, 2008 at 07:23:00PM +0200, Aniruddha wrote: > On Mon, 2008-10-06 at 10:05 -0700, Jeremy Chadwick wrote: > > > I don't think this has something to with a bios setting/jumper. My > > > other USB ports are working fine ( I also have an USB keyboard plugged > > > in). > > > > > > Furthermore in Linux nor Vista I've encountered this problem. Therefor I > > > suspect it must have something to do with FreeBSD. Maybe it's an bug? If > > > someone has an solution that would be great! > > > > FreeBSD's existing USB stack is known to be... shall we say, flaky. > > It's well-established at this point. The possibility of it being > > related to FreeBSD's USB stack is very likely. > > > > A new USB stack is available for CURRENT, but requires manual patching. > > If you're willing to try this, you should get in contact with Alfred > > Perlstein to discuss/get the patch. Keep in mind > > that this patch, as I stated, only applies to CURRENT, and not to > > FreeBSD 7 or earlier. > > > > You can download a CURRENT ISO here: > > > > ftp://ftp4.freebsd.org/pub/FreeBSD/snapshots/200809/ > > > > Lol, during my search for a solution I did see numerous problems with > mice. Out of curiosity; is CURRENT the same as FreeBSD 7.1-BETA? No -- significantly different. CURRENT is "super alpha it's probably going to break", while 7.1-BETA is simply the upcoming release of 7.1 which is slated to become -STABLE after a few months. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From koitsu at FreeBSD.org Mon Oct 6 18:07:35 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Mon Oct 6 18:07:42 2008 Subject: Coretemp seems to be off quite a bit In-Reply-To: References: Message-ID: <20081006145651.GA23281@icarus.home.lan> On Mon, Oct 06, 2008 at 09:39:40AM -0500, Kirk Strauser wrote: > I have a Gigabyte motherboard with an Intel ICH-9 chipset, and a 3.0GHz > Core 2 Duo (E8400). The coretemp sysctls seem to always show 50C as the > baseline temperature: > > $ sysctl dev.cpu | grep temp > dev.cpu.0.temperature: 50 > dev.cpu.1.temperature: 50 > > This is with a big PSU fan, a good CPU fan, a clean heatsink, and two > case fans aimed the right direction (front fan pulling cool air in, rear > fan pushing warm air out). If I reboot and go into the BIOS, I get > numbers around 42-43C. First and foremost: there is always the possibility of a bug in coretemp(4). I'm not dissuading that possibility, but let's talk about the other aspects first. There is a common misconception that what the BIOS reports is the on-die CPU temperature. This is often not the case. In 90% of the motherboards out there, the temperatures shown in the BIOS are taken from external sensors: that is to say, a thermistor on the motherboard intended for monitoring system temperature. This is very different from the on-die processor core temperatures that coretemp(4) shows. You didn't state what exact model of Gigabyte motherboard you're using, nor did you state what BIOS version, so I can't help here. But all of these boards come with 1) the ability to monitor voltages, 2) the ability to monitor fan RPMs, and 2) the ability to monitor temperatures. All of these requires an external H/W monitoring IC, which *is not* the same thing coretemp(4) reports. Secondly, if the BIOS does in fact report on-die core temperatures, then there is a certain amount of differential which should be allowed. That's often 4-5C, believe it or not. The BIOS has a tendency to run hotter, because it does not do things such as execute HLT instructions on idle processors and so on, like FreeBSD, Linux, and Windows do. Thirdly, there is a known "issue" with on-die temperature reporting. On my E6550, the Windows program called RMClock reports my cores at something like 56C each, yet CoreTemp (which uses the same data) reports them at 36C. While on my Q9550, all cores are reported properly in both CoreTemp and RMClock (about 30-36C per core; the variance between cores is normal). The 20C difference seen on my E6550 between RMClock and CoreTemp has to do with something called "TJunction", or at least that's what I'm told by the RMClock author. You can Google for that term and see exactly what I'm talking about. Different software authors implement the calculation formula differently. http://www.alcpu.com/CoreTemp/howitworks.html Finally, there's also something called "TjunctionMax", which is the temperature point where if any of the cores reach, will result in the processor literally shutting off. CoreTemp also shows this. I believe it's set to 85C on my E6550, while 100C on my Q9550. God forbid the temperatures ever reach that. > I know it's kind of hard to compare directly, but the coretemp numbers > are from a totally idle system with powerd scaling it back to 373MHz, > so it should be as cool as when sitting idle in the BIOS screens. > When I work the system hard, like running "make -j4 buildworld", I see > temperatures up around 63-64C, and I'm almost positive that's not > right. If at all possible, boot Windows and run CoreTemp. If the numbers shown there are identical to what FreeBSD shows (give or take a couple degrees), then they are correct. If Windows is not an option, surely Linux has something that can show core temperatures. Be aware that the stock retail heatsink/fan on Intel CPUs is known to be *horrible* at cooling, and after a few months of use will become noisy as hell. If you're using your own heatsink/fan, I highly recommend you consider removing it and reseating it. The temperatures you're reporting, in or out of the BIOS, are what I consider "high". I used to see ~36-37C on my E6550 per core when idling, and ~43-44C under load. On my Q9550 I see ~30-36C on idle, and 40-42C on load. > Any ideas why coretemp and the BIOS would show such different numbers? See above. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From lists at lizardhill.com Mon Oct 6 18:08:36 2008 From: lists at lizardhill.com (Don O'Neil) Date: Mon Oct 6 18:08:43 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: <20081006170104.GA25818@icarus.home.lan> References: <20081006161221.GB70792@gizmo.acns.msu.edu> <4C2FBF89DECE47FC8C5AA51B62FF8710@mickey> <20081006164552.GA25629@icarus.home.lan> <20081006170104.GA25818@icarus.home.lan> Message-ID: > On Mon, Oct 06, 2008 at 09:45:52AM -0700, Jeremy Chadwick wrote: > > There is one thing about later FreeBSDs which I am aware of: 48-bit > > LBA addressing. I'm left wondering if what you're running > into is a > > bug or a problem with older FreeBSD (6.1) not supporting this. I > > would have to go back through CVS commit lots for ata(4) to > find out > > when 48-bit LBA was added. I think 48-bit LBA support is > required for disks >500GB. > > The issue I'm referring to has been touched on many times. > > First and foremost, 6.1-RELEASE was released in May 2006. > Keep that date in mind when reading the below. > > The first incident, according to CVS commit logs, was adding > 48-bit LBA support, supporting disks >137GB. That would've > been in RELENG_4, dated 2002/01/05. FreeBSD 6.1 should have this. > > Next, we have a commit dated 2003/01/19, affecting 48-bit LBA > support on Promise 66/100 controllers. FreeBSD 6.1 should have this. > > Next, 2004/12/09, talking about disk firmware bugs affecting > 48-bit LBA addressing, which was affecting a significant > number of users. That was applied to HEAD and RELENG_5, so > FreeBSD 6.1 ("HEAD" at that time) should have this. > > Next, 2005/04/14, something about "read back the real > taskfile register values when in 48-bit mode". Committed to > HEAD, which would've been during days shortly before RELENG_6 > was tagged (6.0). > > Next, 2005/08/17, "support for working around controllers > that can't do DMA in 48-bit LBA mode", forcing the disk to > use PIO mode allowing the disk to address >137GB. This was > added to HEAD and RELENG_6, so this should also exist in 6.1. > > Next, 2007/12/13, "also fix 48-bit LBA addressing issues, > apparently newe chips need 16-bit writes and not the usual > FIFO thing". This was committed to HEAD first, RELENG_7 on > 2008/01/09, and RELENG_6 on 2008/01/09. > > This is one which FreeBSD 6.1 *would not* have fixes for. > > I do not know if this is the problem -- I'm just speculating. > > Because dmesg output was not provided ("nothing > interesting"), we can't tell what sort of controller your > disks are hooked to, yadda yadda. > This is explicitly why I asked for that information. > > If you could please try 7.0-STABLE or 7.1-PRERELEASE, that > would be highly recommended. It would at least allow us to > determine if you're being affected by a bug in older FreeBSD, > or if this is something that is unique to your environment or > applies to present-day FreeBSD. The hardware I have is the built in SATA controller on the motherboard, which is GIGABYTE GA-M61P-S3. With the NVIDIA GeForce 6100 / nForce 430 and Super I/O chip: ITE IT8716. Dmesg had no output pertaining to the partition/format/dd, etc... Just messages from my ftp daemon. If you're wanting to see the boot messages, this is from the last time I rebooted when I installed the disk: Oct 4 04:07:30 kermit kernel: Copyright (c) 1992-2006 The FreeBSD Project. Oct 4 04:07:30 kermit kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 Oct 4 04:07:30 kermit kernel: The Regents of the University of California. All rights reserved. Oct 4 04:07:30 kermit kernel: FreeBSD 6.1-STABLE-200608 #0: Mon Mar 19 22:52:31 PDT 2007 Oct 4 04:07:30 kermit kernel: root@kermit.lizardhill.com:/usr/src/sys/i386/compile/KERMIT Oct 4 04:07:30 kermit kernel: ACPI APIC Table: Oct 4 04:07:30 kermit kernel: Timecounter "i8254" frequency 1193182 Hz quality 0 Oct 4 04:07:30 kermit kernel: CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ (2611.90-MHz 686-class CPU) Oct 4 04:07:30 kermit kernel: Origin = "AuthenticAMD" Id = 0x40f32 Stepping = 2 Oct 4 04:07:30 kermit kernel: Features=0x178bfbff Oct 4 04:07:30 kermit kernel: Features2=0x2001 Oct 4 04:07:30 kermit kernel: AMD Features=0xea500800 Oct 4 04:07:30 kermit kernel: AMD Features2=0x1f,,CR8> Oct 4 04:07:30 kermit kernel: Cores per package: 2 Oct 4 04:07:30 kermit kernel: real memory = 3724476416 (3551 MB) Oct 4 04:07:30 kermit kernel: avail memory = 3647496192 (3478 MB) Oct 4 04:07:30 kermit kernel: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs Oct 4 04:07:30 kermit kernel: cpu0 (BSP): APIC ID: 0 Oct 4 04:07:30 kermit kernel: cpu1 (AP): APIC ID: 1 Oct 4 04:07:30 kermit kernel: ioapic0: Changing APIC ID to 2 Oct 4 04:07:30 kermit kernel: ioapic0 irqs 0-23 on motherboard Oct 4 04:07:30 kermit kernel: kbd1 at kbdmux0 Oct 4 04:07:30 kermit kernel: acpi0: on motherboard Oct 4 04:07:30 kermit kernel: acpi_bus_number: can't get _ADR Oct 4 04:07:30 kermit kernel: acpi_bus_number: can't get _ADR Oct 4 04:07:30 kermit kernel: acpi0: Power Button (fixed) Oct 4 04:07:30 kermit kernel: acpi_bus_number: can't get _ADR Oct 4 04:07:30 kermit kernel: acpi_bus_number: can't get _ADR Oct 4 04:07:30 kermit kernel: Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 Oct 4 04:07:30 kermit kernel: acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 Oct 4 04:07:30 kermit kernel: cpu0: on acpi0 Oct 4 04:07:30 kermit kernel: cpu1: on acpi0 Oct 4 04:07:30 kermit kernel: acpi_button0: on acpi0 Oct 4 04:07:30 kermit kernel: CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ (2611.90-MHz 686-class CPU) Oct 4 04:07:30 kermit kernel: Origin = "AuthenticAMD" Id = 0x40f32 Stepping = 2 Oct 4 04:07:30 kermit kernel: Features=0x178bfbff Oct 4 04:07:30 kermit kernel: Features2=0x2001 Oct 4 04:07:30 kermit kernel: AMD Features=0xea500800 Oct 4 04:07:30 kermit kernel: AMD Features2=0x1f,,CR8> Oct 4 04:07:30 kermit kernel: Cores per package: 2 Oct 4 04:07:30 kermit kernel: real memory = 3724476416 (3551 MB) Oct 4 04:07:30 kermit kernel: avail memory = 3647496192 (3478 MB) Oct 4 04:07:30 kermit kernel: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs Oct 4 04:07:30 kermit kernel: cpu0 (BSP): APIC ID: 0 Oct 4 04:07:30 kermit kernel: cpu1 (AP): APIC ID: 1 Oct 4 04:07:30 kermit kernel: ioapic0: Changing APIC ID to 2 Oct 4 04:07:30 kermit kernel: ioapic0 irqs 0-23 on motherboard Oct 4 04:07:30 kermit kernel: kbd1 at kbdmux0 Oct 4 04:07:30 kermit kernel: acpi0: on motherboard Oct 4 04:07:30 kermit kernel: acpi_bus_number: can't get _ADR Oct 4 04:07:30 kermit kernel: acpi_bus_number: can't get _ADR Oct 4 04:07:30 kermit kernel: acpi0: Power Button (fixed) Oct 4 04:07:30 kermit kernel: acpi_bus_number: can't get _ADR Oct 4 04:07:30 kermit kernel: acpi_bus_number: can't get _ADR Oct 4 04:07:30 kermit kernel: Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 Oct 4 04:07:30 kermit kernel: acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 Oct 4 04:07:30 kermit kernel: cpu0: on acpi0 Oct 4 04:07:30 kermit kernel: cpu1: on acpi0 Oct 4 04:07:30 kermit kernel: acpi_button0: on acpi0 Oct 4 04:07:30 kermit kernel: pcib0: port 0xcf8-0xcff on acpi0 Oct 4 04:07:30 kermit kernel: pci0: on pcib0 Oct 4 04:07:30 kermit kernel: pci0: at device 0.0 (no driver attached) Oct 4 04:07:30 kermit kernel: isab0: at device 1.0 on pci0 Oct 4 04:07:30 kermit kernel: isa0: on isab0 Oct 4 04:07:30 kermit kernel: pci0: at device 1.1 (no driver attached) Oct 4 04:07:30 kermit kernel: pci0: at device 1.2 (no driver attached) Oct 4 04:07:30 kermit kernel: pci0: at device 2.0 (no driver attached) Oct 4 04:07:30 kermit kernel: pci0: at device 2.1 (no driver attached) Oct 4 04:07:30 kermit kernel: pcib1: at device 4.0 on pci0 Oct 4 04:07:30 kermit kernel: pci1: on pcib1 Oct 4 04:07:30 kermit kernel: fxp0: port 0xa000-0xa03f mem 0xf4901000-0xf4901fff,0xf4800000-0xf48fffff i rq 16 at device 6.0 on pci1 Oct 4 04:07:30 kermit kernel: miibus0: on fxp0 Oct 4 04:07:30 kermit kernel: inphy0: on miibus0 Oct 4 04:07:30 kermit kernel: inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto Oct 4 04:07:30 kermit kernel: fxp0: Ethernet address: 00:d0:b7:93:1d:9d Oct 4 04:07:30 kermit kernel: twe0: <3ware Storage Controller. Driver version 1.50.01.002> port 0xa400-0xa40f mem 0xf4000000-0xf47fffff irq 17 at device 7.0 on pci1 Oct 4 04:07:30 kermit kernel: twe0: [GIANT-LOCKED] Oct 4 04:07:30 kermit kernel: twe0: 4 ports, Firmware FE7X 1.05.00.065, BIOS BE7X 1.08.00.048 Oct 4 04:07:30 kermit kernel: atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 6.0 on pci0 Oct 4 04:07:30 kermit kernel: ata0: on atapci0 Oct 4 04:07:30 kermit kernel: ata1: on atapci0 Oct 4 04:07:30 kermit kernel: pci0: at device 7.0 (no driver attached) Oct 4 04:07:30 kermit kernel: atapci1: port 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xd000-0xd00f mem 0xf7004000-0xf7004fff irq 20 at device 8.0 on pci0 Oct 4 04:07:30 kermit kernel: ata2: on atapci1 Oct 4 04:07:30 kermit kernel: ata3: on atapci1 Oct 4 04:07:30 kermit kernel: atapci2: port 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xe400-0xe40f mem 0xf7000000-0xf7000fff irq 21 at device 8.1 on pci0 Oct 4 04:07:30 kermit kernel: ata4: on atapci2 Oct 4 04:07:30 kermit kernel: ata5: on atapci2 Oct 4 04:07:30 kermit kernel: pci0: at device 13.0 (no driver attached) Oct 4 04:07:30 kermit kernel: fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 Oct 4 04:07:30 kermit kernel: fdc0: [FAST] Oct 4 04:07:30 kermit kernel: fd0: <1440-KB 3.5" drive> on fdc0 drive 0 Oct 4 04:07:30 kermit kernel: sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 Oct 4 04:07:30 kermit kernel: sio0: type 16550A Oct 4 04:07:30 kermit kernel: sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 Oct 4 04:07:30 kermit kernel: sio1: type 16550A Oct 4 04:07:30 kermit kernel: pmtimer0 on isa0 Oct 4 04:07:30 kermit kernel: orm0: at iomem 0xd0000-0xd3fff,0xd4000-0xd57ff,0xd6000-0xd6fff on isa0 Oct 4 04:07:30 kermit kernel: atkbdc0: at port 0x60,0x64 on isa0 Oct 4 04:07:30 kermit kernel: atkbd0: irq 1 on atkbdc0 Oct 4 04:07:30 kermit kernel: kbd0 at atkbd0 Oct 4 04:07:30 kermit kernel: atkbd0: [GIANT-LOCKED] Oct 4 04:07:30 kermit kernel: psm0: irq 12 on atkbdc0 Oct 4 04:07:30 kermit kernel: psm0: [GIANT-LOCKED] Oct 4 04:07:30 kermit kernel: psm0: model Generic PS/2 mouse, device ID 0 Oct 4 04:07:30 kermit kernel: sc0: at flags 0x100 on isa0 Oct 4 04:07:30 kermit kernel: sc0: VGA <16 virtual consoles, flags=0x300> Oct 4 04:07:30 kermit kernel: vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Oct 4 04:07:30 kermit kernel: Timecounters tick every 1.000 msec Oct 4 04:07:30 kermit kernel: ad0: 76293MB at ata0-master UDMA33 Oct 4 04:07:30 kermit kernel: ad4: 953869MB at ata2-master UDMA33 Oct 4 04:07:30 kermit kernel: twed0: on twe0 Oct 4 04:07:30 kermit kernel: twed0: 476948MB (976789504 sectors) Oct 4 04:07:30 kermit kernel: SMP: AP CPU #1 Launched! This is actually a FreeBSD-Stable install... From 08/2006.... I realize it's probably time to do an OS upgrade, but this is the ONLY issue I've run into running this code base. Some of the software I'm running hasn't been tested with 7.X, so I'm not comfortable going there yet. From jcigar at ulb.ac.be Mon Oct 6 18:25:10 2008 From: jcigar at ulb.ac.be (Julien Cigar) Date: Mon Oct 6 18:25:17 2008 Subject: continuous backup solution for freebsd? In-Reply-To: <20081006173815.GA46342@slackbox.xs4all.nl> References: <48E9E146.9040308@ispro.net.tr> <20081006173815.GA46342@slackbox.xs4all.nl> Message-ID: <1223317494.1307.13.camel@rivendell.lan> Sorry for once more but: you can make incremental backups every x minutes with Bacula too .. it only takes one or two minutes on my box to scan for changed files for ~150GB (even faster if you tweak it a bit). It's not really a "true" continuous backup solution, but it's perfectly possible to restore directories/files for changes which occurred x minutes ago, and with retention periods of x days/months/years. On Mon, 2008-10-06 at 19:38 +0200, Roland Smith wrote: > On Mon, Oct 06, 2008 at 12:58:30PM +0300, Evren Yurtesen wrote: > > Hello, > > > > Is there a known continuous backup solution similar to r1soft backup for > > FreeBSD? I googled a lot but couldnt find anything. > > I don't think so. The closest thing I know of is rsnapshot > (http://www.rsnapshot.org/). > > My solution is to run rsync in a cron job. In my situation this takes > about 5 minutes for approximately 100GB of data. The time it takes will > obviously depend on the rate of change in the data. > > You could also use local snapshots with mksnap_ffs(8), to solve the "oh > shit I deleted my files" situation. > > Roland From koitsu at FreeBSD.org Mon Oct 6 18:48:57 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Mon Oct 6 18:49:03 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: References: <20081006161221.GB70792@gizmo.acns.msu.edu> <4C2FBF89DECE47FC8C5AA51B62FF8710@mickey> <20081006164552.GA25629@icarus.home.lan> <20081006170104.GA25818@icarus.home.lan> Message-ID: <20081006184850.GD26368@icarus.home.lan> On Mon, Oct 06, 2008 at 11:08:34AM -0700, Don O'Neil wrote: > The hardware I have is the built in SATA controller on the motherboard, > which is GIGABYTE GA-M61P-S3. With the NVIDIA GeForce 6100 / nForce 430 and > Super I/O chip: ITE IT8716. > > Oct 4 04:07:30 kermit kernel: atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 6.0 on pci0 > Oct 4 04:07:30 kermit kernel: ata0: on atapci0 > Oct 4 04:07:30 kermit kernel: ata1: on atapci0 > Oct 4 04:07:30 kermit kernel: pci0: at device 7.0 (no driver attached) > Oct 4 04:07:30 kermit kernel: atapci1: port 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xd000-0xd00f mem 0xf7004000-0xf7004fff irq 20 at device 8.0 on pci0 > Oct 4 04:07:30 kermit kernel: ata2: on atapci1 > Oct 4 04:07:30 kermit kernel: ata3: on atapci1 > Oct 4 04:07:30 kermit kernel: atapci2: port 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xe400-0xe40f mem 0xf7000000-0xf7000fff irq 21 at device 8.1 on pci0 > Oct 4 04:07:30 kermit kernel: ata4: on atapci2 > Oct 4 04:07:30 kermit kernel: ata5: on atapci2 > Oct 4 04:07:30 kermit kernel: ad0: 76293MB at ata0-master UDMA33 > Oct 4 04:07:30 kermit kernel: ad4: 953869MB at ata2-master UDMA33 This motherboard uses the nForce 430, but the SATA portion is actually a subset chip called the MCP61. I've confirmed this by looking at PRs 116880 and 108830. I can see two things from the dmesg: 1) FreeBSD has no idea what this controller is, or any "quirks" surrounding the controller (meaning it's possible that disk or block addressing is being done incorrectly), 2) The disks are seen as classic PATA disks and not SATA. This could be a result of there being no nForce 430 support in 6.1, but it could also be due to a BIOS setting on that motherboard. I'm looking at the User Manual for this motherboard, but I can't find the BIOS option that I'm used to seeing on other nForce-based boards, and Intel ICH-based boards: A feature where you can change the way the OS sees the underlying SATA controller; it's called "Emulated" or "Emulation" mode. The controller is able to interface with SATA disks, but the OS sees the controller as a classic PATA/IDE controller. This is often used for OSes which lack SATA support or native SATA drivers, such as MS-DOS. The only thing in the User Manual I see which sets off red flags is the "Serial-ATA RAID Config" item under the Integrated Peripherals menu. I really hope the "NV SATA Raid Function" is set to Disabled on your box. Looking at CVS commit logs for src/sys/dev/ata/ata-chipset.c, I can see that MCP61 support was officially added to HEAD on on 2007/06/26. I'm having a difficult time determining what HEAD meant at that date. I can't figure out for the life of me if it was referring to RELENG_6 or RELENG_7. Either way, point is, FreeBSD 6.1 flat out does not have support for that chip, even a 6.1 dated August 2006. I can't help but wonder if that's what's causing the odd problem. I also found another LBA48-related issue, dated 2007/10/04, labelled "fix the LBA28/LBA48 crossover bug". I'm still not sure what that is. And I haven't even begun to look at GEOM changes/bugfixes, which might be a more likely place. > This is actually a FreeBSD-Stable install... From 08/2006.... I realize it's > probably time to do an OS upgrade, but this is the ONLY issue I've run into > running this code base. Some of the software I'm running hasn't been tested > with 7.X, so I'm not comfortable going there yet. What this means is that it's a 6.1-RELEASE install which follows the RELENG_6 tag, and has been cvsup'd at least up until August 2006. I understand you're not comfortable upgrading to FreeBSD 7, but it would be worthwhile if you could download FreeBSD 7.1-PRERELEASE (specifically disc 1 or a live CD), and see if that reports the same problem as 6.1. I still can't explain why booting the 6.1 installer and using a fixit image lets you work around the problem. That is just flat out bizarre. You have to understand: there's been a lot of evolution/bugfixes applied between 6.1 and 7.1. There's almost too much for me to try and track down. I'm trying very hard, but it's difficult. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From koitsu at FreeBSD.org Mon Oct 6 18:50:32 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Mon Oct 6 18:50:39 2008 Subject: Problem with Passive FTP through PF In-Reply-To: <17838240D9A5544AAA5FF95F8D52031604BE2EC8@ad-exh01.adhost.lan> References: <17838240D9A5544AAA5FF95F8D52031604BE2EC8@ad-exh01.adhost.lan> Message-ID: <20081006154540.GA24585@icarus.home.lan> On Mon, Oct 06, 2008 at 08:00:11AM -0700, Michael K. Smith - Adhost wrote: > Hello All: > > We are running the following: > - FreeBSD 6.3 Release #1 > - PF > - pftpx for our ftp proxy > > We have several ftp servers of different flavors behind the PF firewalls and we are getting a lot of the following when users are trying to connect using passive mode. > > "Server sent passive reply with unroutable address" > > We're running pftpx as a daemon with no specific flags. From a ps: > > proxy 4845 0.0 0.0 1452 1100 ?? Is 27Sep08 0:02.13 /usr/local/sbin/pftpx > > Here is a sample of the rules we are using to allow traffic and to proxy. The server macros are defined and working correctly. Any help would be greatly appreciated. > > nat-anchor "pftpx/*" > rdr-anchor "pftpx/*" > rdr on ! $vlan10_if proto { udp tcp } from any to $f1_cps01_ext0 port { 80 443 2087 2083 ftp 49152:65535 } -> $f1_cps01_int0 sticky-address > rdr on ! $vlan10_if proto { udp tcp } from any to $f1_cps01_ext1 port { 80 443 ftp 49152:65535 } -> $f1_cps01_int1 sticky-address I can't help you with regards to the "rdr" rules, as I'm still fairly unfamiliar with redirecting packets around, but with regards to actual firewall rules, these are what we use on our RELENG_6 boxes. (On RELENG_7, you can use the same thing, but remove the "flags S/SA keep state" portion -- it's implicit). # Punch holes for FTP. The rule looks complex, so here it is explained: # - Make sure pass rule only applies to the XXXXX IP (ftp.server.com) # - Permit incoming connections to port 21 (main FTP service) # - Permit incoming connections to ports 49152-65535 (FTP passive mode) # - TCP port 20 is actually for **outbound** connections in FTP active mode, # and since we allow all outbound traffic, we don't need a rule for it. # - TCP ports 49152-65535 come from ftpd(8) and ip(4) manpages; there are # sysctl(8) knobs for theses, but we shouldn't mess with those. # pass in quick on $ext_if proto tcp from any to XXXXX port { ftp, 49152:65535 } flags S/SA keep state Hope this helps, particularly the comments in our pf.conf. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From craig001 at lerwick.hopto.org Mon Oct 6 18:51:43 2008 From: craig001 at lerwick.hopto.org (Craig Butler) Date: Mon Oct 6 18:51:50 2008 Subject: has anyone actually received a bsdmag ? Message-ID: <1223317488.51334.13.camel@main.lerwick.hopto.org> Hi Guys I have been subscribed to BSD Magazine since the start of September, I was hoping to get the first issue sent to me.... I am still waiting. Looking on their website they have the second issue published.... again I am waiting to receive it. I have tried emailing them but have not had any replies. Has anybody else received their copy ? Cheers Craig B From mailing_list at orange.nl Mon Oct 6 18:53:28 2008 From: mailing_list at orange.nl (Aniruddha) Date: Mon Oct 6 18:53:35 2008 Subject: USB mouse problems In-Reply-To: <20081006180058.GC26368@icarus.home.lan> References: <1223275319.4116.7.camel@debian> <20081006130929.386aebb7@baby-jane-lamaiziere-net.local> <48E9F93A.5020806@webzone.net.au> <1223311942.24138.6.camel@debian> <20081006170501.GA26115@icarus.home.lan> <1223313780.24138.8.camel@debian> <20081006180058.GC26368@icarus.home.lan> Message-ID: <1223319210.4138.8.camel@debian> On Mon, 2008-10-06 at 11:00 -0700, Jeremy Chadwick wrote: > On Mon, Oct 06, 2008 at 07:23:00PM +0200, Aniruddha wrote: > > On Mon, 2008-10-06 at 10:05 -0700, Jeremy Chadwick wrote: > > > > I don't think this has something to with a bios setting/jumper. My > > > > other USB ports are working fine ( I also have an USB keyboard plugged > > > > in). > > > > > > > > Furthermore in Linux nor Vista I've encountered this problem. Therefor I > > > > suspect it must have something to do with FreeBSD. Maybe it's an bug? If > > > > someone has an solution that would be great! > > > > > > FreeBSD's existing USB stack is known to be... shall we say, flaky. > > > It's well-established at this point. The possibility of it being > > > related to FreeBSD's USB stack is very likely. > No -- significantly different. CURRENT is "super alpha it's probably > going to break", while 7.1-BETA is simply the upcoming release of 7.1 > which is slated to become -STABLE after a few months. Ah I see. Unfortunately I think I have found the problem. My Razer Lachesis doesn't work with FreeBSD. It doesn't matter which USB port I use. I found this patch though: http://www.freebsd.org/cgi/query-pr.cgi?pr=usb/118670 What does "3-20-2008: Fix merged to RELENG_7" mean? Is this fix available in the FreeBSD 7 (stable) release I'm running? Thanks in advance! -- Regards, Aniruddha From koitsu at FreeBSD.org Mon Oct 6 19:03:14 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Mon Oct 6 19:03:23 2008 Subject: USB mouse problems In-Reply-To: <1223319210.4138.8.camel@debian> References: <1223275319.4116.7.camel@debian> <20081006130929.386aebb7@baby-jane-lamaiziere-net.local> <48E9F93A.5020806@webzone.net.au> <1223311942.24138.6.camel@debian> <20081006170501.GA26115@icarus.home.lan> <1223313780.24138.8.camel@debian> <20081006180058.GC26368@icarus.home.lan> <1223319210.4138.8.camel@debian> Message-ID: <20081006190310.GA28336@icarus.home.lan> On Mon, Oct 06, 2008 at 08:53:30PM +0200, Aniruddha wrote: > On Mon, 2008-10-06 at 11:00 -0700, Jeremy Chadwick wrote: > > On Mon, Oct 06, 2008 at 07:23:00PM +0200, Aniruddha wrote: > > > On Mon, 2008-10-06 at 10:05 -0700, Jeremy Chadwick wrote: > > > > > I don't think this has something to with a bios setting/jumper. My > > > > > other USB ports are working fine ( I also have an USB keyboard plugged > > > > > in). > > > > > > > > > > Furthermore in Linux nor Vista I've encountered this problem. Therefor I > > > > > suspect it must have something to do with FreeBSD. Maybe it's an bug? If > > > > > someone has an solution that would be great! > > > > > > > > FreeBSD's existing USB stack is known to be... shall we say, flaky. > > > > It's well-established at this point. The possibility of it being > > > > related to FreeBSD's USB stack is very likely. > > > No -- significantly different. CURRENT is "super alpha it's probably > > going to break", while 7.1-BETA is simply the upcoming release of 7.1 > > which is slated to become -STABLE after a few months. > > Ah I see. Unfortunately I think I have found the problem. My Razer > Lachesis doesn't work with FreeBSD. It doesn't matter which USB port I > use. I found this patch though: > http://www.freebsd.org/cgi/query-pr.cgi?pr=usb/118670 > > What does "3-20-2008: Fix merged to RELENG_7" mean? Is this fix > available in the FreeBSD 7 (stable) release I'm running? Thanks in > advance! It means the original fix was applied to CURRENT (what is also known as HEAD), and then "backported" to RELENG_7 (what you would call FreeBSD 7.x-STABLE) on 2008/03/20. "MFC" stands for "Merge From CURRENT". You can confirm this by looking at cvsweb for the file in question: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/usb/ums.c The change for HEAD/CURRENT was made in Revision 1.98 (date = Mar 12) The MFC to RELENG_7 was made in Revision 1.96.2.1 (date = Mar 20) If you csup your src tree (use /usr/share/examples/cvsup/stable-supfile) the patched code will be downloaded and used. You'll have to rebuild world to get the changes, of course. See the FreeBSD Handbook for doing a csup as well as for rebuilding world. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From kline at thought.org Mon Oct 6 19:05:20 2008 From: kline at thought.org (Gary Kline) Date: Mon Oct 6 19:05:26 2008 Subject: what are the top few mp3[4] Podcast helpers-apps for firefox-3.03? Message-ID: <20081006190512.GA2010@thought.org> Guys, Even tho firefox3 doesn't do all that (I think) it should, my main use for the web is listening to audio streams. So: what should I select to be my default mp3/postcast player? thanks, gary -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org From gnemmi at gmail.com Mon Oct 6 19:15:10 2008 From: gnemmi at gmail.com (Gonzalo Nemmi) Date: Mon Oct 6 19:15:18 2008 Subject: has anyone actually received a bsdmag ? In-Reply-To: <1223317488.51334.13.camel@main.lerwick.hopto.org> References: <1223317488.51334.13.camel@main.lerwick.hopto.org> Message-ID: <200810061614.49837.gnemmi@gmail.com> On Monday 06 October 2008 4:24:47 pm Craig Butler wrote: > Hi Guys > > I have been subscribed to BSD Magazine since the start of September, I > was hoping to get the first issue sent to me.... I am still waiting. > > Looking on their website they have the second issue published.... again > I am waiting to receive it. > > I have tried emailing them but have not had any replies. > > Has anybody else received their copy ? > > Cheers > > Craig B > > _______________________________________________ > 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" Good to know that ... I bought the first issue on .pdf format back when it was release and I was seconds away from subscribing for a full year (printed version) until I read your mail ... So .. I guess I'll put my subscription on hold until I know for sure that they do send the mag to your door and that they do it on time ... Please, let me know how things end up for you. Regards -- Blessings Gonzalo Nemmi From kline at thought.org Mon Oct 6 19:26:43 2008 From: kline at thought.org (Gary Kline) Date: Mon Oct 6 19:26:50 2008 Subject: widescreen: np, :-) Message-ID: <20081006192632.GA2296@thought.org> [np (in the Subject:line) does not refer to a category of algorithm. it means: "No Problem"] Some time back I was determined to get rid of that battle-ship anchor 19" CRT and upgrade to at least a 20" LCD, preferably widescreen. An older, even nerdier friend *was* not only to heft it to my office floor, but carry it out to the garage and install my new 20.1" LCD and it worked for my Ubuntu system. --I only needed to do an # X -configure then test it and move xorg.conf.new to /etc/X11. I just have KDE4 up (hopefully) and am about to find out what is broken. O/wise, the new display works here on my home FBSD computer. IOW, those who said it should/world work were right. Thanks to all of you who encouraged the switch. :-) , :-D , [!!!] -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org From jerrymc at msu.edu Mon Oct 6 19:37:01 2008 From: jerrymc at msu.edu (Jerry McAllister) Date: Mon Oct 6 19:37:08 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: References: <20081006161221.GB70792@gizmo.acns.msu.edu> <4C2FBF89DECE47FC8C5AA51B62FF8710@mickey> <20081006164552.GA25629@icarus.home.lan> <20081006170104.GA25818@icarus.home.lan> Message-ID: <20081006193506.GA71557@gizmo.acns.msu.edu> On Mon, Oct 06, 2008 at 11:08:34AM -0700, Don O'Neil wrote: > > On Mon, Oct 06, 2008 at 09:45:52AM -0700, Jeremy Chadwick wrote: > > > There is one thing about later FreeBSDs which I am aware of: 48-bit > > > LBA addressing. I'm left wondering if what you're running > > into is a > > > bug or a problem with older FreeBSD (6.1) not supporting this. I > > > would have to go back through CVS commit lots for ata(4) to > > find out > > > when 48-bit LBA was added. I think 48-bit LBA support is > > required for disks >500GB. > > > > The issue I'm referring to has been touched on many times. > > > > First and foremost, 6.1-RELEASE was released in May 2006. > > Keep that date in mind when reading the below. > > > > The first incident, according to CVS commit logs, was adding > > 48-bit LBA support, supporting disks >137GB. That would've > > been in RELENG_4, dated 2002/01/05. FreeBSD 6.1 should have this. > > > > Next, we have a commit dated 2003/01/19, affecting 48-bit LBA > > support on Promise 66/100 controllers. FreeBSD 6.1 should have this. > > > > Next, 2004/12/09, talking about disk firmware bugs affecting > > 48-bit LBA addressing, which was affecting a significant > > number of users. That was applied to HEAD and RELENG_5, so > > FreeBSD 6.1 ("HEAD" at that time) should have this. > > > > Next, 2005/04/14, something about "read back the real > > taskfile register values when in 48-bit mode". Committed to > > HEAD, which would've been during days shortly before RELENG_6 > > was tagged (6.0). > > > > Next, 2005/08/17, "support for working around controllers > > that can't do DMA in 48-bit LBA mode", forcing the disk to > > use PIO mode allowing the disk to address >137GB. This was > > added to HEAD and RELENG_6, so this should also exist in 6.1. > > > > Next, 2007/12/13, "also fix 48-bit LBA addressing issues, > > apparently newe chips need 16-bit writes and not the usual > > FIFO thing". This was committed to HEAD first, RELENG_7 on > > 2008/01/09, and RELENG_6 on 2008/01/09. > > > > This is one which FreeBSD 6.1 *would not* have fixes for. > > > > I do not know if this is the problem -- I'm just speculating. > > > > Because dmesg output was not provided ("nothing > > interesting"), we can't tell what sort of controller your > > disks are hooked to, yadda yadda. > > This is explicitly why I asked for that information. > > > > If you could please try 7.0-STABLE or 7.1-PRERELEASE, that > > would be highly recommended. It would at least allow us to > > determine if you're being affected by a bug in older FreeBSD, > > or if this is something that is unique to your environment or > > applies to present-day FreeBSD. > > The hardware I have is the built in SATA controller on the motherboard, > which is GIGABYTE GA-M61P-S3. With the NVIDIA GeForce 6100 / nForce 430 and > Super I/O chip: ITE IT8716. > > Dmesg had no output pertaining to the partition/format/dd, etc... Just > messages from my ftp daemon. If you're wanting to see the boot messages, > this is from the last time I rebooted when I installed the disk: Dmesg never has anything pertaining to the slicing/partitioning/newfsing a disk. But, it should have information about the physical drive and the controller and such. Do you see the drive even show up in dmesg? Also, what does the controller look like in dmesg? Namely, your drives seem to be: > Oct 4 04:07:30 kermit kernel: ad0: 76293MB at > ata0-master UDMA33 > Oct 4 04:07:30 kermit kernel: ad4: 953869MB at > ata2-master UDMA33 etc. ////jerry > > Oct 4 04:07:30 kermit kernel: Copyright (c) 1992-2006 The FreeBSD Project. > Oct 4 04:07:30 kermit kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, > 1989, 1991, 1992, 1993, 1994 > Oct 4 04:07:30 kermit kernel: The Regents of the University of California. > All rights reserved. > Oct 4 04:07:30 kermit kernel: FreeBSD 6.1-STABLE-200608 #0: Mon Mar 19 > 22:52:31 PDT 2007 > Oct 4 04:07:30 kermit kernel: > root@kermit.lizardhill.com:/usr/src/sys/i386/compile/KERMIT > Oct 4 04:07:30 kermit kernel: ACPI APIC Table: > Oct 4 04:07:30 kermit kernel: Timecounter "i8254" frequency 1193182 Hz > quality 0 > Oct 4 04:07:30 kermit kernel: CPU: AMD Athlon(tm) 64 X2 Dual Core Processor > 5200+ (2611.90-MHz 686-class CPU) > Oct 4 04:07:30 kermit kernel: Origin = "AuthenticAMD" Id = 0x40f32 > Stepping = 2 > Oct 4 04:07:30 kermit kernel: > Features=0x178bfbff ,CMOV,PAT,PSE36,CLFLUSH,MMX,F > XSR,SSE,SSE2,HTT> > Oct 4 04:07:30 kermit kernel: Features2=0x2001 > Oct 4 04:07:30 kermit kernel: AMD > Features=0xea500800 > Oct 4 04:07:30 kermit kernel: AMD Features2=0x1f,,CR8> > Oct 4 04:07:30 kermit kernel: Cores per package: 2 > Oct 4 04:07:30 kermit kernel: real memory = 3724476416 (3551 MB) > Oct 4 04:07:30 kermit kernel: avail memory = 3647496192 (3478 MB) > Oct 4 04:07:30 kermit kernel: FreeBSD/SMP: Multiprocessor System Detected: > 2 CPUs > Oct 4 04:07:30 kermit kernel: cpu0 (BSP): APIC ID: 0 > Oct 4 04:07:30 kermit kernel: cpu1 (AP): APIC ID: 1 > Oct 4 04:07:30 kermit kernel: ioapic0: Changing APIC ID to 2 > Oct 4 04:07:30 kermit kernel: ioapic0 irqs 0-23 on > motherboard > Oct 4 04:07:30 kermit kernel: kbd1 at kbdmux0 > Oct 4 04:07:30 kermit kernel: acpi0: on motherboard > Oct 4 04:07:30 kermit kernel: acpi_bus_number: can't get _ADR > Oct 4 04:07:30 kermit kernel: acpi_bus_number: can't get _ADR > Oct 4 04:07:30 kermit kernel: acpi0: Power Button (fixed) > Oct 4 04:07:30 kermit kernel: acpi_bus_number: can't get _ADR > Oct 4 04:07:30 kermit kernel: acpi_bus_number: can't get _ADR > Oct 4 04:07:30 kermit kernel: Timecounter "ACPI-fast" frequency 3579545 Hz > quality 1000 > Oct 4 04:07:30 kermit kernel: acpi_timer0: <24-bit timer at 3.579545MHz> > port 0x1008-0x100b on acpi0 > Oct 4 04:07:30 kermit kernel: cpu0: on acpi0 > Oct 4 04:07:30 kermit kernel: cpu1: on acpi0 > Oct 4 04:07:30 kermit kernel: acpi_button0: on acpi0 > Oct 4 04:07:30 kermit kernel: CPU: AMD Athlon(tm) 64 X2 Dual Core Processor > 5200+ (2611.90-MHz 686-class CPU) > Oct 4 04:07:30 kermit kernel: Origin = "AuthenticAMD" Id = 0x40f32 > Stepping = 2 > Oct 4 04:07:30 kermit kernel: > Features=0x178bfbff ,CMOV,PAT,PSE36,CLFLUSH,MMX,F > XSR,SSE,SSE2,HTT> > Oct 4 04:07:30 kermit kernel: Features2=0x2001 > Oct 4 04:07:30 kermit kernel: AMD > Features=0xea500800 > Oct 4 04:07:30 kermit kernel: AMD Features2=0x1f,,CR8> > Oct 4 04:07:30 kermit kernel: Cores per package: 2 > Oct 4 04:07:30 kermit kernel: real memory = 3724476416 (3551 MB) > Oct 4 04:07:30 kermit kernel: avail memory = 3647496192 (3478 MB) > Oct 4 04:07:30 kermit kernel: FreeBSD/SMP: Multiprocessor System Detected: > 2 CPUs > Oct 4 04:07:30 kermit kernel: cpu0 (BSP): APIC ID: 0 > Oct 4 04:07:30 kermit kernel: cpu1 (AP): APIC ID: 1 > Oct 4 04:07:30 kermit kernel: ioapic0: Changing APIC ID to 2 > Oct 4 04:07:30 kermit kernel: ioapic0 irqs 0-23 on > motherboard > Oct 4 04:07:30 kermit kernel: kbd1 at kbdmux0 > Oct 4 04:07:30 kermit kernel: acpi0: on motherboard > Oct 4 04:07:30 kermit kernel: acpi_bus_number: can't get _ADR > Oct 4 04:07:30 kermit kernel: acpi_bus_number: can't get _ADR > Oct 4 04:07:30 kermit kernel: acpi0: Power Button (fixed) > Oct 4 04:07:30 kermit kernel: acpi_bus_number: can't get _ADR > Oct 4 04:07:30 kermit kernel: acpi_bus_number: can't get _ADR > Oct 4 04:07:30 kermit kernel: Timecounter "ACPI-fast" frequency 3579545 Hz > quality 1000 > Oct 4 04:07:30 kermit kernel: acpi_timer0: <24-bit timer at 3.579545MHz> > port 0x1008-0x100b on acpi0 > Oct 4 04:07:30 kermit kernel: cpu0: on acpi0 > Oct 4 04:07:30 kermit kernel: cpu1: on acpi0 > Oct 4 04:07:30 kermit kernel: acpi_button0: on acpi0 > Oct 4 04:07:30 kermit kernel: pcib0: port > 0xcf8-0xcff on acpi0 > Oct 4 04:07:30 kermit kernel: pci0: on pcib0 > Oct 4 04:07:30 kermit kernel: pci0: at device 0.0 (no driver > attached) > Oct 4 04:07:30 kermit kernel: isab0: at device 1.0 on pci0 > Oct 4 04:07:30 kermit kernel: isa0: on isab0 > Oct 4 04:07:30 kermit kernel: pci0: at device 1.1 (no > driver attached) > Oct 4 04:07:30 kermit kernel: pci0: at device 1.2 (no driver > attached) > Oct 4 04:07:30 kermit kernel: pci0: at device 2.0 (no > driver attached) > Oct 4 04:07:30 kermit kernel: pci0: at device 2.1 (no > driver attached) > Oct 4 04:07:30 kermit kernel: pcib1: at device 4.0 on > pci0 > Oct 4 04:07:30 kermit kernel: pci1: on pcib1 > Oct 4 04:07:30 kermit kernel: fxp0: port > 0xa000-0xa03f mem 0xf4901000-0xf4901fff,0xf4800000-0xf48fffff i > rq 16 at device 6.0 on pci1 > Oct 4 04:07:30 kermit kernel: miibus0: on fxp0 > Oct 4 04:07:30 kermit kernel: inphy0: on > miibus0 > Oct 4 04:07:30 kermit kernel: inphy0: 10baseT, 10baseT-FDX, 100baseTX, > 100baseTX-FDX, auto > Oct 4 04:07:30 kermit kernel: fxp0: Ethernet address: 00:d0:b7:93:1d:9d > Oct 4 04:07:30 kermit kernel: twe0: <3ware Storage Controller. Driver > version 1.50.01.002> port 0xa400-0xa40f mem 0xf4000000-0xf47fffff > irq 17 at device 7.0 on pci1 > Oct 4 04:07:30 kermit kernel: twe0: [GIANT-LOCKED] > Oct 4 04:07:30 kermit kernel: twe0: 4 ports, Firmware FE7X 1.05.00.065, > BIOS BE7X 1.08.00.048 > Oct 4 04:07:30 kermit kernel: atapci0: port > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 6.0 on > pci0 > Oct 4 04:07:30 kermit kernel: ata0: on atapci0 > Oct 4 04:07:30 kermit kernel: ata1: on atapci0 > Oct 4 04:07:30 kermit kernel: pci0: at device 7.0 (no driver > attached) > Oct 4 04:07:30 kermit kernel: atapci1: port > 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xd000-0xd00f mem > 0xf7004000-0xf7004fff irq 20 at device 8.0 on pci0 > Oct 4 04:07:30 kermit kernel: ata2: on atapci1 > Oct 4 04:07:30 kermit kernel: ata3: on atapci1 > Oct 4 04:07:30 kermit kernel: atapci2: port > 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xe400-0xe40f mem > 0xf7000000-0xf7000fff irq 21 at device 8.1 on pci0 > Oct 4 04:07:30 kermit kernel: ata4: on atapci2 > Oct 4 04:07:30 kermit kernel: ata5: on atapci2 > Oct 4 04:07:30 kermit kernel: pci0: at device 13.0 (no > driver attached) > Oct 4 04:07:30 kermit kernel: fdc0: port > 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 > Oct 4 04:07:30 kermit kernel: fdc0: [FAST] > Oct 4 04:07:30 kermit kernel: fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > Oct 4 04:07:30 kermit kernel: sio0: <16550A-compatible COM port> port > 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 > Oct 4 04:07:30 kermit kernel: sio0: type 16550A > Oct 4 04:07:30 kermit kernel: sio1: <16550A-compatible COM port> port > 0x2f8-0x2ff irq 3 on acpi0 > Oct 4 04:07:30 kermit kernel: sio1: type 16550A > Oct 4 04:07:30 kermit kernel: pmtimer0 on isa0 > Oct 4 04:07:30 kermit kernel: orm0: at iomem > 0xd0000-0xd3fff,0xd4000-0xd57ff,0xd6000-0xd6fff on isa0 > Oct 4 04:07:30 kermit kernel: atkbdc0: at > port 0x60,0x64 on isa0 > Oct 4 04:07:30 kermit kernel: atkbd0: irq 1 on atkbdc0 > Oct 4 04:07:30 kermit kernel: kbd0 at atkbd0 > Oct 4 04:07:30 kermit kernel: atkbd0: [GIANT-LOCKED] > Oct 4 04:07:30 kermit kernel: psm0: irq 12 on atkbdc0 > Oct 4 04:07:30 kermit kernel: psm0: [GIANT-LOCKED] > Oct 4 04:07:30 kermit kernel: psm0: model Generic PS/2 mouse, device ID 0 > Oct 4 04:07:30 kermit kernel: sc0: at flags 0x100 on isa0 > Oct 4 04:07:30 kermit kernel: sc0: VGA <16 virtual consoles, flags=0x300> > Oct 4 04:07:30 kermit kernel: vga0: at port 0x3c0-0x3df > iomem 0xa0000-0xbffff on isa0 > Oct 4 04:07:30 kermit kernel: Timecounters tick every 1.000 msec > Oct 4 04:07:30 kermit kernel: ad0: 76293MB at > ata0-master UDMA33 > Oct 4 04:07:30 kermit kernel: ad4: 953869MB at > ata2-master UDMA33 > Oct 4 04:07:30 kermit kernel: twed0: on twe0 > Oct 4 04:07:30 kermit kernel: twed0: 476948MB (976789504 sectors) > Oct 4 04:07:30 kermit kernel: SMP: AP CPU #1 Launched! > > This is actually a FreeBSD-Stable install... From 08/2006.... I realize it's > probably time to do an OS upgrade, but this is the ONLY issue I've run into > running this code base. Some of the software I'm running hasn't been tested > with 7.X, so I'm not comfortable going there yet. > > _______________________________________________ > 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 cyb. at gmx.net Mon Oct 6 19:40:32 2008 From: cyb. at gmx.net (Andreas Rudisch) Date: Mon Oct 6 19:40:39 2008 Subject: what are the top few mp3[4] Podcast helpers-apps for firefox-3.03? In-Reply-To: <20081006190512.GA2010@thought.org> References: <20081006190512.GA2010@thought.org> Message-ID: <20081006214023.a31273d2.cyb.@gmx.net> On Mon, 6 Oct 2008 12:05:15 -0700 Gary Kline wrote: > what should I select to be my default mp3/postcast player? mplayer? 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: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081006/2c03632b/attachment.pgp From mailing_list at orange.nl Mon Oct 6 19:58:17 2008 From: mailing_list at orange.nl (Aniruddha) Date: Mon Oct 6 19:58:23 2008 Subject: USB mouse problems In-Reply-To: <20081006190310.GA28336@icarus.home.lan> References: <1223275319.4116.7.camel@debian> <20081006130929.386aebb7@baby-jane-lamaiziere-net.local> <48E9F93A.5020806@webzone.net.au> <1223311942.24138.6.camel@debian> <20081006170501.GA26115@icarus.home.lan> <1223313780.24138.8.camel@debian> <20081006180058.GC26368@icarus.home.lan> <1223319210.4138.8.camel@debian> <20081006190310.GA28336@icarus.home.lan> Message-ID: <1223323099.4093.2.camel@debian> On Mon, 2008-10-06 at 12:03 -0700, Jeremy Chadwick wrote: > It means the original fix was applied to CURRENT (what is also known as > HEAD), and then "backported" to RELENG_7 (what you would call FreeBSD > 7.x-STABLE) on 2008/03/20. "MFC" stands for "Merge From CURRENT". > > You can confirm this by looking at cvsweb for the file in question: > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/usb/ums.c > > The change for HEAD/CURRENT was made in Revision 1.98 (date = Mar 12) > The MFC to RELENG_7 was made in Revision 1.96.2.1 (date = Mar 20) > > If you csup your src tree (use /usr/share/examples/cvsup/stable-supfile) > the patched code will be downloaded and used. You'll have to rebuild > world to get the changes, of course. See the FreeBSD Handbook for doing > a csup as well as for rebuilding world. > Thanks for your help and patience. If I'm not mistaken I can also install 7.1 Beta. It would be logical to assume it contains the fix right? -- Regards, Aniruddha From kelly.terry.jones at gmail.com Mon Oct 6 19:59:05 2008 From: kelly.terry.jones at gmail.com (Kelly Jones) Date: Mon Oct 6 19:59:25 2008 Subject: Installing multiple ports quietly and efficiently Message-ID: <26face530810061228g660203ebxe3e287f4e47c3b06@mail.gmail.com> Here's one way to install multiple FreeBSD ports "unattended" on a machine: cd /usr/port/foo/prog1; make install; cd/usr/ports/foo/prog2; make install and so on (perhaps even in a shell script). Two problems: % It's ugly. I'd prefer "cd /usr/ports; make foo/prog1 foo/prog2 ..." % "make install" often pops up windows asking me to choose configuration options, and hangs until I do so. I want to install 50 apps on a new server, but not have to watch it constantly. I want to tell ports: "just use the default options for now: if I'm unhappy w/ them, I'll come back, do a 'make rmconfig' and rebuild". How can I do this? -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile. From lists at lizardhill.com Mon Oct 6 20:04:52 2008 From: lists at lizardhill.com (Don O'Neil) Date: Mon Oct 6 20:04:59 2008 Subject: Can't add new 1TB disk in FreeBSD 6.1 In-Reply-To: <20081006184850.GD26368@icarus.home.lan> References: <20081006161221.GB70792@gizmo.acns.msu.edu> <4C2FBF89DECE47FC8C5AA51B62FF8710@mickey> <20081006164552.GA25629@icarus.home.lan> <20081006170104.GA25818@icarus.home.lan> <20081006184850.GD26368@icarus.home.lan> Message-ID: <2DDA4B1851DE480EB11836530F1031EF@mickey> > > The hardware I have is the built in SATA controller on the > > motherboard, which is GIGABYTE GA-M61P-S3. With the NVIDIA GeForce > > 6100 / nForce 430 and Super I/O chip: ITE IT8716. > > > > Oct 4 04:07:30 kermit kernel: atapci0: controller> port > > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 6.0 on > > pci0 Oct 4 04:07:30 kermit kernel: ata0: > on atapci0 > > Oct 4 04:07:30 kermit kernel: ata1: on > atapci0 Oct 4 > > 04:07:30 kermit kernel: pci0: at device 7.0 (no driver > > attached) Oct 4 04:07:30 kermit kernel: atapci1: > controller> port > > 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xd000-0xd00f mem > > 0xf7004000-0xf7004fff irq 20 at device 8.0 on pci0 Oct 4 04:07:30 > > kermit kernel: ata2: on atapci1 Oct 4 > 04:07:30 kermit > > kernel: ata3: on atapci1 Oct 4 04:07:30 kermit > > kernel: atapci2: port > > 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xe400-0xe40f mem > > 0xf7000000-0xf7000fff irq 21 at device 8.1 on pci0 Oct 4 04:07:30 > > kermit kernel: ata4: on atapci2 Oct 4 > 04:07:30 kermit > > kernel: ata5: on atapci2 Oct 4 04:07:30 kermit > > kernel: ad0: 76293MB at > ata0-master UDMA33 > > Oct 4 04:07:30 kermit kernel: ad4: 953869MB > SD15> at ata2-master UDMA33 > > This motherboard uses the nForce 430, but the SATA portion is > actually a subset chip called the MCP61. I've confirmed this > by looking at PRs 116880 and 108830. > > I can see two things from the dmesg: > > 1) FreeBSD has no idea what this controller is, or any "quirks" > surrounding the controller (meaning it's possible that disk > or block addressing is being done incorrectly), > > 2) The disks are seen as classic PATA disks and not SATA. > This could be a result of there being no nForce 430 support > in 6.1, but it could also be due to a BIOS setting on that > motherboard. > > I'm looking at the User Manual for this motherboard, but I > can't find the BIOS option that I'm used to seeing on other > nForce-based boards, and Intel ICH-based boards: > > A feature where you can change the way the OS sees the > underlying SATA controller; it's called "Emulated" or > "Emulation" mode. The controller is able to interface with > SATA disks, but the OS sees the controller as a classic > PATA/IDE controller. This is often used for OSes which lack > SATA support or native SATA drivers, such as MS-DOS. > > The only thing in the User Manual I see which sets off red > flags is the "Serial-ATA RAID Config" item under the > Integrated Peripherals menu. I really hope the "NV SATA Raid > Function" is set to Disabled on your box. > > Looking at CVS commit logs for src/sys/dev/ata/ata-chipset.c, > I can see that MCP61 support was officially added to HEAD on > on 2007/06/26. I'm having a difficult time determining what > HEAD meant at that date. I can't figure out for the life of > me if it was referring to RELENG_6 or RELENG_7. > > Either way, point is, FreeBSD 6.1 flat out does not have > support for that chip, even a 6.1 dated August 2006. I can't > help but wonder if that's what's causing the odd problem. > > I also found another LBA48-related issue, dated 2007/10/04, > labelled "fix the LBA28/LBA48 crossover bug". I'm still not > sure what that is. > > And I haven't even begun to look at GEOM changes/bugfixes, > which might be a more likely place. > > > This is actually a FreeBSD-Stable install... From 08/2006.... I > > realize it's probably time to do an OS upgrade, but this is > the ONLY > > issue I've run into running this code base. Some of the > software I'm > > running hasn't been tested with 7.X, so I'm not comfortable > going there yet. > > What this means is that it's a 6.1-RELEASE install which follows the > RELENG_6 tag, and has been cvsup'd at least up until August 2006. > > I understand you're not comfortable upgrading to FreeBSD 7, > but it would be worthwhile if you could download FreeBSD > 7.1-PRERELEASE (specifically disc 1 or a live CD), and see if > that reports the same problem as 6.1. > > I still can't explain why booting the 6.1 installer and using > a fixit image lets you work around the problem. That is just > flat out bizarre. > > You have to understand: there's been a lot of > evolution/bugfixes applied between 6.1 and 7.1. There's > almost too much for me to try and track down. I'm trying > very hard, but it's difficult. Thanks for all the clarifications, I didn't realize there have been that many changes since 6.1. I suppose its time to upgrade. What I need to do is build an identical server to that one and test it all out locally. Since the drive is currently 500 miles away it will take me some time, but I'll see what I can do. I'll also check my BIOS settings to make sure the RAID is disabled. I'm almost positive it is, but who knows. Jerry pointed out that the boot process is seeing it as a regular ATA device, so it may be running in some sort of compatibility mode like you suspect and it may be the entire reason it's failing. From lists-fbsd at shadypond.com Mon Oct 6 20:09:46 2008 From: lists-fbsd at shadypond.com (Pollywog) Date: Mon Oct 6 20:09:52 2008 Subject: kde4 question In-Reply-To: <20081005194232.GA72859@thought.org> References: <20081005194232.GA72859@thought.org> Message-ID: <200810061937.27985.lists-fbsd@shadypond.com> On Sunday 05 October 2008 19:42:36 Gary Kline wrote: > Over the past four days I've managed to get my FreeBSD server running KDE > up by installing kde4. Now, for some reason, konqueror fails to conntect > anywhere. > > How can I free up my old kde3 files and get konqueror working again? Have you tried running Konqueror from konsole in order to see the errors? You might also check the proxy settings and make sure your other browsers are working properly (Firefox for example). From vince at unsane.co.uk Mon Oct 6 20:26:49 2008 From: vince at unsane.co.uk (Vincent Hoffman) Date: Mon Oct 6 20:26:56 2008 Subject: Installing multiple ports quietly and efficiently In-Reply-To: <26face530810061228g660203ebxe3e287f4e47c3b06@mail.gmail.com> References: <26face530810061228g660203ebxe3e287f4e47c3b06@mail.gmail.com> Message-ID: <48EA7487.2050901@unsane.co.uk> Kelly Jones wrote: > Here's one way to install multiple FreeBSD ports "unattended" on a > machine: > > cd /usr/port/foo/prog1; make install; cd/usr/ports/foo/prog2; make install > > and so on (perhaps even in a shell script). Two problems: > > % It's ugly. I'd prefer "cd /usr/ports; make foo/prog1 foo/prog2 ..." > I'd suggest using portupgrade then just portinstall prog1 prog2 prog3 > % "make install" often pops up windows asking me to choose > configuration options, and hangs until I do so. > > > I want to install 50 apps on a new server, but not have to watch it > constantly. I want to tell ports: "just use the default options for > now: if I'm unhappy w/ them, I'll come back, do a 'make rmconfig' and > rebuild". > > How can I do this? > > add BATCH=yes to /etc/make.conf Vince From wojtek at wojtek.tensor.gdynia.pl Mon Oct 6 20:41:31 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Mon Oct 6 20:41:38 2008 Subject: TRUE realtime priority Message-ID: <20081006221523.P3921@wojtek.tensor.gdynia.pl> is it possible on FreeBSD i run asterisk with realtime priority. it works perfectly no matter how much CPU is loaded by other non-telephony tasks. but with lots of VM pressure it starts to so... like like tha..that... what causes it to behave like that and how to fix it. for example when lots of spam comes to server and lots of resource hungry spamassassin processes are spawned our calls starts to be crappy. CPU load for asterisk rarely exceed few percent! i think having separate computer just for this is stupid, i would do this having no other choice, but can it be done without this. realtime priority is realtime priority anyway - it should work. i understand that asterisk may stall requesting memory when VM pressure is high, but asterisk's thread that processes already set-up call - just moving voicepackets in and out - it doesn't need to allocate more memory so why it's stalled? any network problems are eliminated, the effect happens even with 2 local phones. From mailing_list at orange.nl Mon Oct 6 20:52:53 2008 From: mailing_list at orange.nl (Aniruddha) Date: Mon Oct 6 20:53:01 2008 Subject: USB mouse problems (SOLVED) In-Reply-To: <1223323099.4093.2.camel@debian> References: <1223275319.4116.7.camel@debian> <20081006130929.386aebb7@baby-jane-lamaiziere-net.local> <48E9F93A.5020806@webzone.net.au> <1223311942.24138.6.camel@debian> <20081006170501.GA26115@icarus.home.lan> <1223313780.24138.8.camel@debian> <20081006180058.GC26368@icarus.home.lan> <1223319210.4138.8.camel@debian> <20081006190310.GA28336@icarus.home.lan> <1223323099.4093.2.camel@debian> Message-ID: <1223326374.4120.1.camel@debian> On Mon, 2008-10-06 at 21:58 +0200, Aniruddha wrote: > On Mon, 2008-10-06 at 12:03 -0700, Jeremy Chadwick wrote: > > It means the original fix was applied to CURRENT (what is also known as > > HEAD), and then "backported" to RELENG_7 (what you would call FreeBSD > > 7.x-STABLE) on 2008/03/20. "MFC" stands for "Merge From CURRENT". > > > > You can confirm this by looking at cvsweb for the file in question: > > > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/usb/ums.c > > > > The change for HEAD/CURRENT was made in Revision 1.98 (date = Mar 12) > > The MFC to RELENG_7 was made in Revision 1.96.2.1 (date = Mar 20) > > > > If you csup your src tree (use /usr/share/examples/cvsup/stable-supfile) > > the patched code will be downloaded and used. You'll have to rebuild > > world to get the changes, of course. See the FreeBSD Handbook for doing > > a csup as well as for rebuilding world. > > > > Thanks for your help and patience. If I'm not mistaken I can also > install 7.1 Beta. It would be logical to assume it contains the fix > right? I just installed 7.1 Beta and now my Razer Lachesis works :D -- Regards, Aniruddha From roberthuff at rcn.com Mon Oct 6 21:02:30 2008 From: roberthuff at rcn.com (Robert Huff) Date: Mon Oct 6 21:02:42 2008 Subject: Installing multiple ports quietly and efficiently In-Reply-To: <48EA7487.2050901@unsane.co.uk> References: <26face530810061228g660203ebxe3e287f4e47c3b06@mail.gmail.com> <48EA7487.2050901@unsane.co.uk> Message-ID: <18666.31928.85367.319704@jerusalem.litteratus.org> Vincent Hoffman writes: > > I want to install 50 apps on a new server, but not have to watch it > > constantly. I want to tell ports: "just use the default options for > > now: if I'm unhappy w/ them, I'll come back, do a 'make rmconfig' and > > rebuild". > > > > How can I do this? > > add > BATCH=yes > to /etc/make.conf Only if you remember to take it out (or comment it out) again when you're done. Personally, I'd run a new shell, set the variable, do the builds, then kill the shell. Next: edit make.conf and put it in comented out and with additional comments. Robert Huff From kitchetech at gmail.com Mon Oct 6 21:48:15 2008 From: kitchetech at gmail.com (matt donovan) Date: Mon Oct 6 21:48:22 2008 Subject: has anyone actually received a bsdmag ? In-Reply-To: <200810061614.49837.gnemmi@gmail.com> References: <1223317488.51334.13.camel@main.lerwick.hopto.org> <200810061614.49837.gnemmi@gmail.com> Message-ID: <28283d910810061448u76f29538jf050209fd32deaa2@mail.gmail.com> On Mon, Oct 6, 2008 at 2:14 PM, Gonzalo Nemmi wrote: > On Monday 06 October 2008 4:24:47 pm Craig Butler wrote: > > Hi Guys > > > > I have been subscribed to BSD Magazine since the start of September, I > > was hoping to get the first issue sent to me.... I am still waiting. > > > > Looking on their website they have the second issue published.... again > > I am waiting to receive it. > > > > I have tried emailing them but have not had any replies. > > > > Has anybody else received their copy ? > > > > Cheers > > > > Craig B > > > > _______________________________________________ > > 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" > > Good to know that ... > > I bought the first issue on .pdf format back when it was release and I was > seconds away from subscribing for a full year (printed version) until I > read > your mail ... > > So .. I guess I'll put my subscription on hold until I know for sure that > they > do send the mag to your door and that they do it on time ... > > Please, let me know how things end up for you. > > Regards > -- > Blessings > Gonzalo Nemmi > _______________________________________________ > 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" > BSDmagazine is not the same as Linux Magazine they don't follow teh same release dates I believe BSDmag is like every 4 months or something you'll get one From fbsd.questions at rachie.is-a-geek.net Mon Oct 6 21:53:02 2008 From: fbsd.questions at rachie.is-a-geek.net (Mel) Date: Mon Oct 6 21:53:09 2008 Subject: Installing multiple ports quietly and efficiently In-Reply-To: <26face530810061228g660203ebxe3e287f4e47c3b06@mail.gmail.com> References: <26face530810061228g660203ebxe3e287f4e47c3b06@mail.gmail.com> Message-ID: <200810062352.59473.fbsd.questions@rachie.is-a-geek.net> On Monday 06 October 2008 21:28:25 Kelly Jones wrote: > Here's one way to install multiple FreeBSD ports "unattended" on a > machine: > > cd /usr/port/foo/prog1; make install; cd/usr/ports/foo/prog2; make install > > and so on (perhaps even in a shell script). Two problems: > > % It's ugly. I'd prefer "cd /usr/ports; make foo/prog1 foo/prog2 ..." > > % "make install" often pops up windows asking me to choose > configuration options, and hangs until I do so. As others said, BATCH turns off config target. But don't clutter /etc/make.conf with stuff like that, cause you will forget you put it there. make -DBATCH is short enough to type. It is however useful to inspect pkg-install files and set variables in either /etc/make.conf or /etc/(profile|login.conf). For example POSTFIX_DEFAULT_MTA will replace /etc/mail/mailer.conf when -DBATCH is set. Over time you'll pick up quite a few of these that save you doing the same thing all over. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. From stevefranks at ieee.org Mon Oct 6 21:55:15 2008 From: stevefranks at ieee.org (Steve Franks) Date: Mon Oct 6 21:55:23 2008 Subject: compat/linux program claims "no write access to ~" Message-ID: <539c60b90810061455g19c6bbc2h98e97083e3d7a42f@mail.gmail.com> Sounds like a bogus error to me. I just downgraded amd64 to i386, reinstalled a linux program and it claims it can't write to ~ now. I'm running it, and I have no reason to think it wouldn't run as me. ~ is 775 anyway. Also, running the linux program as su or sudo gives the same error. Any ideas just where this might be coming from? I'm on 7-STABLE, i386, linux-base-fc4. Best, Steve From craig001 at lerwick.hopto.org Mon Oct 6 21:56:31 2008 From: craig001 at lerwick.hopto.org (Craig Butler) Date: Mon Oct 6 21:56:40 2008 Subject: has anyone actually received a bsdmag ? In-Reply-To: <28283d910810061448u76f29538jf050209fd32deaa2@mail.gmail.com> References: <1223317488.51334.13.camel@main.lerwick.hopto.org> <200810061614.49837.gnemmi@gmail.com> <28283d910810061448u76f29538jf050209fd32deaa2@mail.gmail.com> Message-ID: <1223330171.52193.1.camel@main.lerwick.hopto.org> On Mon, 2008-10-06 at 17:48 -0400, matt donovan wrote: > On Mon, Oct 6, 2008 at 2:14 PM, Gonzalo Nemmi wrote: > > > On Monday 06 October 2008 4:24:47 pm Craig Butler wrote: > > > Hi Guys > > > > > > I have been subscribed to BSD Magazine since the start of September, I > > > was hoping to get the first issue sent to me.... I am still waiting. > > > > > > Looking on their website they have the second issue published.... again > > > I am waiting to receive it. > > > > > > I have tried emailing them but have not had any replies. > > > > > > Has anybody else received their copy ? > > > > > > Cheers > > > > > > Craig B > > > > > > _______________________________________________ > > > 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" > > > > Good to know that ... > > > > I bought the first issue on .pdf format back when it was release and I was > > seconds away from subscribing for a full year (printed version) until I > > read > > your mail ... > > > > So .. I guess I'll put my subscription on hold until I know for sure that > > they > > do send the mag to your door and that they do it on time ... > > > > Please, let me know how things end up for you. > > > > Regards > > -- > > Blessings > > Gonzalo Nemmi > > _______________________________________________ > > 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" > > > > BSDmagazine is not the same as Linux Magazine they don't follow teh same > release dates I believe BSDmag is like every 4 months or something you'll > get one > _______________________________________________ > 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" Yep that correct Its meant to be quarterly.... (every 3 months) However I am still waiting for the first issue let alone the second.. From rsmith at xs4all.nl Mon Oct 6 21:57:52 2008 From: rsmith at xs4all.nl (Roland Smith) Date: Mon Oct 6 21:58:00 2008 Subject: TRUE realtime priority In-Reply-To: <20081006221523.P3921@wojtek.tensor.gdynia.pl> References: <20081006221523.P3921@wojtek.tensor.gdynia.pl> Message-ID: <20081006215749.GA68933@slackbox.xs4all.nl> On Mon, Oct 06, 2008 at 10:21:01PM +0200, Wojciech Puchar wrote: > is it possible on FreeBSD No, I think. > i run asterisk with realtime priority. it works perfectly no matter how > much CPU is loaded by other non-telephony tasks. > > but with lots of VM pressure it starts to so... like like tha..that... > > what causes it to behave like that and how to fix it. Well, basically you are the only one who can answer that. And that's not a paradox or an attempt at humor. You should investigate. Maybe interrupts aren't processed fast enough (hardware sharing an interrupt?), or memory or kernel resources are low. > for example when lots of spam comes to server and lots of resource hungry > spamassassin processes are spawned our calls starts to be crappy. > > CPU load for asterisk rarely exceed few percent! Yes, but FreeBSD isn't a _hard_ real-time OS (see below). > i think having separate computer just for this is stupid, i would do this > having no other choice, but can it be done without this. > > realtime priority is realtime priority anyway - it should work. It does depend what you mean by real-time. Usually real-time systems are devided into the "soft" and "hard" categories. See the Wikipedia article on real-time computing [http://en.wikipedia.org/wiki/Real-time_computing] and operating systems [http://en.wikipedia.org/wiki/Real-time_operating_system]. Most hard real-time systems are embedded systems with a specific function (say, ECU, FADEC, ABS, digital music player). I don't think there are general use OS's which would classify as hard real-time (AFAIK, RTLinux runs Linux as a low-priority task on a real-time core). Most of them support soft real-time, as in "we'll try to get these tasks done before a specific deadline, but no promises." 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: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081006/e66e1618/attachment.pgp From jaymax36 at gmail.com Mon Oct 6 22:31:44 2008 From: jaymax36 at gmail.com (jaymax) Date: Mon Oct 6 22:31:51 2008 Subject: Cant remove /var, in relocating /var to a symbolic link Message-ID: <19847627.post@talk.nabble.com> I am attempting to relocate /var to avoid files system full issues. Using a - mkdir /usr/var cd /var tar cf - . | (cd /usr/var; tar xf - ) cd / rm -rf /var ln -s /usr/var /var approach at the rm -rf /var step, the following was received rm: /var/empty: Operation not permitted rm: /var/named/dev: Device busy rm: /var/named: Directory not empty rm: /var: Device busy Te contents of /var at this site was ls /var ./ ../ empty/ named/ and ls /var/empty/ ./ ../ ls -l /var/empty/ total 4 dr-xr-xr-x 2 root wheel 512 Nov 3 2005 ./ drwxr-xr-x 4 root wheel 512 Oct 6 14:02 ../ Can't change permissons either chmod 755 /var/empty/ chmod: /var/empty/: Operation not permitted while ls /var/named/ ./ ../ dev/ ls -l /var/named/ total 5 drwxr-xr-x 3 root wheel 512 Oct 4 19:46 ./ drwxr-xr-x 5 root wheel 512 Oct 6 14:16 ../ dr-xr-xr-x 4 root wheel 512 Jan 1 2002 dev/ ls -l /var/named/dev total 0 Could chmod755 but still cant remove, dev, dir empty but => Device busy How can I remove these two directories so that I can create a link from /usr/var to /var -- View this message in context: http://www.nabble.com/Cant-remove--var%2C-in-relocating--var-to-a-symbolic-link-tp19847627p19847627.html Sent from the freebsd-questions mailing list archive at Nabble.com. From kenneth.hatteland at kleppnett.no Mon Oct 6 22:32:18 2008 From: kenneth.hatteland at kleppnett.no (kenneth hatteland) Date: Mon Oct 6 22:32:25 2008 Subject: has anyone actually received a bsdmag ? Message-ID: <48EA8D6E.5090107@kleppnett.no> Bought printed copy quite a while before the first release and have gotten both released issues delivered flawlessly here in Norway. I am very pleased with the magazine and recommend everyone to subscribe. They were a bit slow to reply on emails but always comes around at a later time....that is my experience so far. Kenneth Hatteland From jerrymc at msu.edu Mon Oct 6 22:39:50 2008 From: jerrymc at msu.edu (Jerry McAllister) Date: Mon Oct 6 22:39:57 2008 Subject: Cant remove /var, in relocating /var to a symbolic link In-Reply-To: <19847627.post@talk.nabble.com> References: <19847627.post@talk.nabble.com> Message-ID: <20081006223755.GA72109@gizmo.acns.msu.edu> On Mon, Oct 06, 2008 at 03:31:42PM -0700, jaymax wrote: > > I am attempting to relocate /var to avoid files system full issues. > Using a - > mkdir /usr/var > cd /var > tar cf - . | (cd /usr/var; tar xf - ) > cd / > rm -rf /var > ln -s /usr/var /var > approach > > at the > rm -rf /var step, the following was received > rm: /var/empty: Operation not permitted > rm: /var/named/dev: Device busy > rm: /var/named: Directory not empty > rm: /var: Device busy > > Te contents of /var at this site was > ls /var > ./ ../ empty/ named/ > and > ls /var/empty/ > ./ ../ > > ls -l /var/empty/ > total 4 > dr-xr-xr-x 2 root wheel 512 Nov 3 2005 ./ > drwxr-xr-x 4 root wheel 512 Oct 6 14:02 ../ > > Can't change permissons either > chmod 755 /var/empty/ > chmod: /var/empty/: Operation not permitted > > while > ls /var/named/ > ./ ../ dev/ > ls -l /var/named/ > total 5 > drwxr-xr-x 3 root wheel 512 Oct 4 19:46 ./ > drwxr-xr-x 5 root wheel 512 Oct 6 14:16 ../ > dr-xr-xr-x 4 root wheel 512 Jan 1 2002 dev/ > > ls -l /var/named/dev > total 0 > Could chmod755 but still cant remove, dev, dir empty but => Device busy > > How can I remove these two directories so that I can create a link from > /usr/var to /var The best way is to boot the 'fixit' image and do it from that. On a running system, the var directory is likely to always be busy. You might also be able to do it just from a boot to single user mode if the /var directory is not mounted. But, I would suggest actually not moving the whole /var filesystem. Rather, move some of the move heavily used directories such as /var/log and /var/mail, maybe even /var/db and /var/spool. Copy them over to the larger space and make sym links in /var to the new ones. Careful of your naming so you don't get confused on a sleepy morning. I tend to name the new alternates something like var.log and var.mail, etc which helps keep them straight in my mind. ////jerry > -- > View this message in context: http://www.nabble.com/Cant-remove--var%2C-in-relocating--var-to-a-symbolic-link-tp19847627p19847627.html > Sent from the freebsd-questions mailing list archive at Nabble.com. > > _______________________________________________ > 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 rsmith at xs4all.nl Mon Oct 6 22:46:34 2008 From: rsmith at xs4all.nl (Roland Smith) Date: Mon Oct 6 22:46:43 2008 Subject: Cant remove /var, in relocating /var to a symbolic link In-Reply-To: <19847627.post@talk.nabble.com> References: <19847627.post@talk.nabble.com> Message-ID: <20081006224632.GA71290@slackbox.xs4all.nl> On Mon, Oct 06, 2008 at 03:31:42PM -0700, jaymax wrote: > > I am attempting to relocate /var to avoid files system full issues. > Using a - > mkdir /usr/var > cd /var > tar cf - . | (cd /usr/var; tar xf - ) > cd / > rm -rf /var > ln -s /usr/var /var > approach > > at the > rm -rf /var step, the following was received > rm: /var/empty: Operation not permitted /var/empty has the system immutable flag set :-) slackbox:~> ls -lod /var/empty dr-xr-xr-x 2 root wheel schg 512 Oct 9 2005 /var/empty/ > rm: /var/named/dev: Device busy If you have named(8) running with named_chrootdir set to /var/named in /etc/rc.conf, a devfs(5) filesystem will be mounted on /var/named/dev. That's what keeping the device busy. 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: 195 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081006/adddd98e/attachment.pgp From yurtesen at ispro.net.tr Mon Oct 6 22:55:53 2008 From: yurtesen at ispro.net.tr (Evren Yurtesen) Date: Mon Oct 6 22:56:00 2008 Subject: continuous backup solution for freebsd? In-Reply-To: <20081006173815.GA46342@slackbox.xs4all.nl> References: <48E9E146.9040308@ispro.net.tr> <20081006173815.GA46342@slackbox.xs4all.nl> Message-ID: <48EA97EB.9000501@ispro.net.tr> Roland Smith wrote: > On Mon, Oct 06, 2008 at 12:58:30PM +0300, Evren Yurtesen wrote: >> Hello, >> >> Is there a known continuous backup solution similar to r1soft backup for >> FreeBSD? I googled a lot but couldnt find anything. > > I don't think so. The closest thing I know of is rsnapshot > (http://www.rsnapshot.org/). > > My solution is to run rsync in a cron job. In my situation this takes > about 5 minutes for approximately 100GB of data. The time it takes will > obviously depend on the rate of change in the data. > > You could also use local snapshots with mksnap_ffs(8), to solve the "oh > shit I deleted my files" situation. > > Thanks I am using BackupPC for such task already. Although it takes more than 5 minutes to traverse millions of files using rsync independent of if they were changed or not (since rsync has to scan all the files to detect what is changed or not even if it only checks modification times, this takes time for so many files). I just was curious about if anybody could contact r1soft and ask for a pile of money to implement a driver for FreeBSD, since I couldnt do it even if I wanted to :) Thanks, Evren From alancyang at gmail.com Mon Oct 6 23:06:33 2008 From: alancyang at gmail.com (alan yang) Date: Mon Oct 6 23:06:41 2008 Subject: kgdb debugging Message-ID: <290865fd0810061544ubbe92fdsf75501bb729da3f0@mail.gmail.com> hi, there, wonder people can shed some lights on remote debugging. i have freebsd7 configured with option DDB / KDB / GDB but after entering the db on the target system the command gdb gives "the remote GDB backend could not be selected". i browsed through the mailing list, and do find 1 similar post but without answer. thanks in advance & apology if i overlooked things ... cheers, alan From gahr at FreeBSD.org Mon Oct 6 23:26:52 2008 From: gahr at FreeBSD.org (Pietro Cerutti) Date: Mon Oct 6 23:27:29 2008 Subject: kgdb debugging In-Reply-To: <290865fd0810061544ubbe92fdsf75501bb729da3f0@mail.gmail.com> References: <290865fd0810061544ubbe92fdsf75501bb729da3f0@mail.gmail.com> Message-ID: <48EA9E95.80105@FreeBSD.org> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 alan yang wrote: | hi, there, | | wonder people can shed some lights on remote debugging. i have | freebsd7 configured with option DDB / KDB / GDB but after entering the | db on the target system the command gdb gives "the remote GDB backend | could not be selected". | | i browsed through the mailing list, and do find 1 similar post but | without answer. | | thanks in advance & apology if i overlooked things ... I suggest the following tutorial: http://www.lemis.com/grog/Papers/Debug-tutorial/tutorial.pdf Have fun :) | | cheers, | alan | _______________________________________________ | freebsd-hackers@freebsd.org mailing list | http://lists.freebsd.org/mailman/listinfo/freebsd-hackers | To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" - -- Pietro Cerutti gahr@FreeBSD.org PGP Public Key: http://gahr.ch/pgp -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEAREKAAYFAkjqnpQACgkQwMJqmJVx945RSwCgoDb0JTr8LSFDB1vpAbGUjb76 ZH0An19HpFVJJTUB5/XnyZc0pIDzgxc3 =6Pdm -----END PGP SIGNATURE----- From kline at thought.org Mon Oct 6 23:42:32 2008 From: kline at thought.org (Gary Kline) Date: Mon Oct 6 23:42:43 2008 Subject: what are the top few mp3[4] Podcast helpers-apps for firefox-3.03? In-Reply-To: <20081006214023.a31273d2.cyb.@gmx.net> References: <20081006190512.GA2010@thought.org> <20081006214023.a31273d2.cyb.@gmx.net> Message-ID: <20081006234224.GA10443@thought.org> On Mon, Oct 06, 2008 at 09:40:23PM +0200, Andreas Rudisch wrote: > On Mon, 6 Oct 2008 12:05:15 -0700 > Gary Kline wrote: > > > what should I select to be my default mp3/postcast player? > > mplayer? > > Andreas Well, I tried Kmplayer; it works for some sites and hangs on kuow.org; so you somebody confirm this. Maybe it's the radio station and their mp3 feed is broken. (It says: "Connecting... " and hangs. BTW, I tried every other audio driver that kmplayer talks to. No diff. > -- > GnuPG key : 0x2A573565 | http://www.gnupg.org/howtos/de/ > Fingerprint: 925D 2089 0BF9 8DE5 9166 33BB F0FD CD37 2A57 3565 -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org From lists-fbsd at shadypond.com Mon Oct 6 23:48:25 2008 From: lists-fbsd at shadypond.com (Pollywog) Date: Mon Oct 6 23:48:32 2008 Subject: has anyone actually received a bsdmag ? In-Reply-To: <28283d910810061448u76f29538jf050209fd32deaa2@mail.gmail.com> References: <1223317488.51334.13.camel@main.lerwick.hopto.org> <200810061614.49837.gnemmi@gmail.com> <28283d910810061448u76f29538jf050209fd32deaa2@mail.gmail.com> Message-ID: <200810062348.11941.lists-fbsd@shadypond.com> On Monday 06 October 2008 21:48:12 matt donovan wrote: > On Mon, Oct 6, 2008 at 2:14 PM, Gonzalo Nemmi wrote: > > On Monday 06 October 2008 4:24:47 pm Craig Butler wrote: > > > Hi Guys > > > > > > I have been subscribed to BSD Magazine since the start of September, I > > > was hoping to get the first issue sent to me.... I am still waiting. > > > > > > Looking on their website they have the second issue published.... again > > > I am waiting to receive it. > > > > > > I have tried emailing them but have not had any replies. > > > > > > Has anybody else received their copy ? > > > > > > Cheers > > > > > > Craig B > > > > > > _______________________________________________ > > > 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" > > > > Good to know that ... > > > > I bought the first issue on .pdf format back when it was release and I > > was seconds away from subscribing for a full year (printed version) until > > I read > > your mail ... > > > > So .. I guess I'll put my subscription on hold until I know for sure that > > they > > do send the mag to your door and that they do it on time ... > > > > Please, let me know how things end up for you. > > > > Regards > > -- > > Blessings > > Gonzalo Nemmi > > _______________________________________________ > > 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" > > BSDmagazine is not the same as Linux Magazine they don't follow teh same > release dates I believe BSDmag is like every 4 months or something you'll > get one I bought the most recent issue (it is only the second issue of the magazine) at Borders approximately two weeks ago. The second issue is an issue about OpenBSD. From yurtesen at ispro.net.tr Mon Oct 6 23:55:24 2008 From: yurtesen at ispro.net.tr (Evren Yurtesen) Date: Mon Oct 6 23:55:34 2008 Subject: continuous backup solution for freebsd? In-Reply-To: <20081006175940.GB26368@icarus.home.lan> References: <48E9E146.9040308@ispro.net.tr> <20081006112030.GA18670@icarus.home.lan> <48EA2270.2080405@ispro.net.tr> <20081006152430.GA23608@icarus.home.lan> <48EA45D2.70502@ispro.net.tr> <20081006175940.GB26368@icarus.home.lan> Message-ID: <48EAA5E4.8030805@ispro.net.tr> Jeremy Chadwick wrote: > What I'm saying is that Linux has the upper hand here. More eyes, more > people, more developers, larger community, larger vendor support, and > much **much** faster turn-around time on fixes/bugs. We can sit here > and argue about those facts all we want (it's the equivalent of doing > burn-outs in an AMC Pacer in a parking lot -- wasted time, zero gain), > but nothing changes the facts. Sorry, I had to remove the whole bunch of text that you wrote :) but I get the point. I think it is a funny historical fact that BSD was commercially licensed way too long to allow Linux to be developed at first place. If BSD was not commercial at that times, Linus Torvalds probably wouldnt have started writing the Linux kernel. Thus we wouldnt be having this sort of conversation now and it might as well be that Microsoft wouldnt have become so huge. If we look at this from that point of view then eventually all BSD and Linux etc. are bound to disappear in time and Microsoft will stand all alone. But things can change one step at a time. I prefer(or try) to look at this positively. I thought it wouldnt hurt to ask for help if somebody could contact r1soft and perhaps ask a pile of money to develop a driver. It would have been a win-win situation eh? > Right. We're definitely talking about snapshots, at least in concept. > > The fact that you're able to restore data within *minutes* is pretty > impressive. I'm curious what sort of disk requirements are needed > though (I guess it depends on how often changes happen on the > filesystem). Well it is not so fine grained (5 to 10 minutes intervals as mentioned). http://www.r1soft.com/CDP.html (there is more information in the link above, with links to outside sources on the concept such as wikipedia articles etc.) I know some large hosters who use this technology with Linux servers. As a matter of fact the only reason they went with Linux instead of FreeBSD is because they cant get CDP with FreeBSD. I can ask how much space it is using and return back to you. But if you think about it for a second, a traditional backup program would copy the whole file even if there was 1 byte changed in it. Lets say 10mbyte file and 1 byte is changed. R1soft copies only 1 byte. Sure enough the tables can turn around if the filesystem was modified really a lot. But it looks like this type of solution is mostly effective (at least I didnt see anywhere that anybody is complaining that it is using too much disk space yet). The best is, all it would take for FreeBSD users to be able to utilize this technology is a driver to interface with r1soft agent and buy a license. Now I am not expecting anybody to write this for free or nobody is obligated to help. I just dont know anybody who can help so I thought I would drop in a line here so... > I for one have never correlated snapshots and backup restorations > (bare-metal recovery). I consider them completely separate things, and > handled *very* differently. I have a feeling that no one's done this on > FreeBSD because the amount of effort required is quite large. Someone > did mention HAMMER on DragonflyBSD, but I have no knowledge of it or > what it provides -- that said, Matt (Dillon)'s stuff is usually very, > very good. I also dont know much about HAMMER either. But it doesnt look like it will make mainstream usage anytime soon on FreeBSD if it ever does. Actually I found a nice document here: http://www.dragonflybsd.org/hammer/hammer.pdf http://www.dragonflybsd.org/hammer/index.shtml > It depends on how the filesystem is done. For example, with UFS2+SU > snapshots, snapshot generation can take literally hours: completely > unreasonable. While with ZFS, snapshot generation usually takes 2-3 > seconds -- even on massive changes (e.g. take a snapshot, then rm a > 600MB ISO image, then compare present vs. snapshot -- the diff is > something like 40KBytes). Yes, but r1soft backup can restore a single file at a consistent state without restoring the whole filesystem from a graphical user interface and can restore mysql databases at a table level. While I agree that there might be different solutions that I dont know about, it just takes a driver to get this functionality on current FreeBSD systems without everybody to change to ZFS or HAMMER. One has to think, would people change their filesystems or install a driver? :) I would rather pay license fee to a backup program and use the driver. The price of the software is very well justified if I can return back to 5min before in my backups. The data I might loose is much more expensive. >>> I'm sorry for sounding anti-FreeBSD, but the reality is that people >>> should use whatever solutions work best for them -- if that's using >>> Windows, Solaris, or Linux, great! Remember that open-source is about >>> choice: and choice means supporting the possibility that someone chooses >>> something else. Blind one-sided advocacy is very damaging to the >>> open-source model and concept. >> I agree, and please dont shoot the messenger :) I just have a bunch of >> customers who would use FreeBSD but not using only because of this >> problem. In addition to that I myself would like to use near continuous >> backups as well. > > Understood. I now realise the full importance of what it is you've > described, and what R1Soft has developed. Thank you for taking the time > to educate me -- I appreciate it! There are other companies with similar products for Linux ( you can search for continuous backup in google to find ) . However R1Soft is the most active one. Besides the possibility of continous backup, they have been partnering up with hosting control panel software vendors, for example they support cPanel or H-Sphere where the users can restore their own content from backups etc. Since most of the servers on the internet are used for such services, it makes much sense. While there are other backup or backup like solutions ranging from HAMMER and ZFS built in features or Bacula etc. as far as I know these do not allow such flexibility. >> I was just trying to inform the FreeBSD community here so if somebody >> can have some time to divert to giving the right advices to r1soft then >> we all could benefit from it. It doesnt even have to be free even, with >> a reasonable price they can probably hire somebody to work for building >> the basics of this feature. >> >> So the real question is, is there anybody who is willing and have the >> experience to help on this issue? > > The response you're going to get is: "why don't you state how much > you're willing to pay for this feature, so that anyone who IS interested > can decide if that amount of money is worth the time required?" It is a possibility but then I am not working for R1Soft. People who has the knowledge to be able to pull this off can ask this to R1Soft. I am probably reporting a job possibility to an idle developer if there is such thing as an idle developer. R1soft is even willing to develop this themselves as far as I can tell. Maybe they just need the right information to be pointed out to them to start development only. > My response is different: this sort of thing should definitely be pawned > off onto the FreeBSD Foundation. IMHO, this is the sort of thing the > Foundation *should* be handling. There is money there, and this sounds > like a project which could benefit FreeBSD as a whole. It's possible > that R1Soft, if paid, would take up such a challenge, assuming some key > folks (like Kirk McKusick; not volunteering him, just saying he has > experience with filesystems) could help with the development process and > learning curve. I can't speak for the Foundation, but it really sounds > like that's the way to go with this. I don't think you'll get any > responses from interested parties on freebsd-questions. :-) > Thanks, I like your response :) But I dont know anybody in FreeBSD Foundation or anybody who can help. That is exactly why I came to here to mention the issue. If somebody knows somebody who can help then please pass along the word. I am in no way saying that anybody is obligated to do anything. Just informing that this great technology exists but FreeBSD users are not able to use it yet because of development issues. My personal opinion is that backups are an important issue for a serious company and it is a key selection criteria when choosing components and design for a system. I might be right or wrong of course. I just got pissed off enough that lately people I work with just wouldnt use FreeBSD only because of this problem... :( if you check r1soft forums, you can also see that I was bugging r1soft about this issue a lot and they ended up saying that it is probably not possible in FreeBSD to create such kernel module. At least I feel satisfied that I was doing or trying to do something in my skill levels to help to FreeBSD community and I am happy that some people are listening. But it is obvious that I dont know the right people to directly contact and inform about these stuff so please go ahead and forward this information to whomever you feel can help. Thanks, Evren From kline at thought.org Mon Oct 6 23:56:00 2008 From: kline at thought.org (Gary Kline) Date: Mon Oct 6 23:56:06 2008 Subject: kde4 question In-Reply-To: <200810061937.27985.lists-fbsd@shadypond.com> References: <20081005194232.GA72859@thought.org> <200810061937.27985.lists-fbsd@shadypond.com> Message-ID: <20081006235556.GB10443@thought.org> On Mon, Oct 06, 2008 at 07:37:27PM +0000, Pollywog wrote: > On Sunday 05 October 2008 19:42:36 Gary Kline wrote: > > Over the past four days I've managed to get my FreeBSD server running KDE > > up by installing kde4. Now, for some reason, konqueror fails to conntect > > anywhere. > > > > How can I free up my old kde3 files and get konqueror working again? > > Have you tried running Konqueror from konsole in order to see the errors? > You might also check the proxy settings and make sure your other browsers are > working properly (Firefox for example). > firefox-3.03 is the only other one I use regularly; it works, more/less. But nothing is printed to stdout or stderr by exec'ing konq by the commandline. --I have, FWIW, pkg_deleted the whole bunch of kde3 binaries. > _______________________________________________ > 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 From kline at thought.org Tue Oct 7 00:06:32 2008 From: kline at thought.org (Gary Kline) Date: Tue Oct 7 00:06:40 2008 Subject: kde4 question In-Reply-To: <20081006235556.GB10443@thought.org> References: <20081005194232.GA72859@thought.org> <200810061937.27985.lists-fbsd@shadypond.com> <20081006235556.GB10443@thought.org> Message-ID: <20081007000627.GA14154@thought.org> On Mon, Oct 06, 2008 at 04:55:56PM -0700, Gary Kline wrote: > On Mon, Oct 06, 2008 at 07:37:27PM +0000, Pollywog wrote: > > On Sunday 05 October 2008 19:42:36 Gary Kline wrote: > > > Over the past four days I've managed to get my FreeBSD server running KDE > > > up by installing kde4. Now, for some reason, konqueror fails to conntect > > > anywhere. > > > > > > How can I free up my old kde3 files and get konqueror working again? > > > > Have you tried running Konqueror from konsole in order to see the errors? > > You might also check the proxy settings and make sure your other browsers are > > working properly (Firefox for example). > > > > > firefox-3.03 is the only other one I use regularly; it works, more/less. > But nothing is printed to stdout or stderr by exec'ing konq by the > commandline. --I have, FWIW, pkg_deleted the whole bunch of kde3 > binaries. HA: follow-up: I re deinstalled and reinstalled, and for the heck of it tried konq as root. looks like i was missing some initialization files (in /tmp). . . . kbuildsycoca running... and hundreds of other lines. It's still a head-scratch, but at least thing gives more insights. > > _______________________________________________ > > 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 > > > _______________________________________________ > 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 From yurtesen at ispro.net.tr Tue Oct 7 00:15:24 2008 From: yurtesen at ispro.net.tr (Evren Yurtesen) Date: Tue Oct 7 00:15:31 2008 Subject: continuous backup solution for freebsd? In-Reply-To: <200810062000.26501.fbsd.questions@rachie.is-a-geek.net> References: <48E9E146.9040308@ispro.net.tr> <20081006152430.GA23608@icarus.home.lan> <48EA45D2.70502@ispro.net.tr> <200810062000.26501.fbsd.questions@rachie.is-a-geek.net> Message-ID: <48EAA658.5050506@ispro.net.tr> Mel wrote: > I think once you and R1soft step out of the "I need a block level device" > paradigm, you will see that modifying ggate with a "copy and fall through" > mode, as well as a mechanism to block writes to the local provider, when the > remote provider wants to write is the best solution all around and your best > bet to get support for it. > Right now, ggate does "intercept and redirect", but the concept of copy and > fall through is not that far away. Bringing the R1soft devs in contact with > the FreeBSD geom list and having them browse the sys/geom/ggate sources to > see how trivial it is to hook into filesystem operations would be the course > of action I'd recommend. > Would it be too much to ask if you can send this information to R1Soft and refer to the post I linked? I just dont think that I can be an efficient gateway of information here :) Thanks, Evren From chris at vindaloo.com Tue Oct 7 00:16:09 2008 From: chris at vindaloo.com (Christopher Sean Hilton) Date: Tue Oct 7 00:16:15 2008 Subject: Installing multiple ports quietly and efficiently In-Reply-To: <200810062352.59473.fbsd.questions@rachie.is-a-geek.net> References: <26face530810061228g660203ebxe3e287f4e47c3b06@mail.gmail.com> <200810062352.59473.fbsd.questions@rachie.is-a-geek.net> Message-ID: On Oct 6, 2008, at 5:52 PM, Mel wrote: > On Monday 06 October 2008 21:28:25 Kelly Jones wrote: >> Here's one way to install multiple FreeBSD ports "unattended" on a >> machine: >> >> cd /usr/port/foo/prog1; make install; cd/usr/ports/foo/prog2; make >> install >> >> and so on (perhaps even in a shell script). Two problems: >> >> % It's ugly. I'd prefer "cd /usr/ports; make foo/prog1 foo/prog2 ..." >> >> % "make install" often pops up windows asking me to choose >> configuration options, and hangs until I do so. > > As others said, BATCH turns off config target. But don't > clutter /etc/make.conf with stuff like that, cause you will forget > you put it > there. make -DBATCH is short enough to type. > It is however useful to inspect pkg-install files and set variables in > either /etc/make.conf or /etc/(profile|login.conf). For example > POSTFIX_DEFAULT_MTA will replace /etc/mail/mailer.conf when -DBATCH > is set. > Over time you'll pick up quite a few of these that save you doing > the same > thing all over. > Either one of: # cd /usr/ports/foo/bar; env BATCH=yes make install clean of # cd /usr/ports/foo/bar; make -DBATCH install clean will work. Both are cleaner than sticking "BATCH = yes" into /etc/ make.conf. You should watch out for three things here. 1. This writes files into the ports database (/var/db/ something...) that sets the configuration of the port the knobs so to speak. So building for example postfix this way will get you a postfix that doesn't have SASL or LDAP or whatever you may actually want. Effectively this sets all the ports "knobs" to the defaults. To chose the knobs on a particular port visit the directory and run make config: # cd /usr/ports/mail/postfix; make config Once you've got the port configured correctly you can run make clean; make deinstall; make install to build and reinstall it to your specs. 2. You may not get exactly want you want. In fact the process my stall in the middle because of conflicts. In the nicest case you will end up with multiple ports that do the same thing. Building postfix with LDAP support for example is likely to result in two copies of the Berkeley Database port being installed. This is okay if they don't conflict. The build will fail if they do. I've seen this a lot on things that need LDAP. Some ports want version 2.3 and others want version 2.4 To get past this you need to figure out which WITH__VER/WANT__VER variables you need to tweak and for that you will need to add to /etc/make.conf 3. You may not get all the pieces that you need. Note carefully that some ports are split into client and server pieces. This largely affects databases (MySQL / PostgreSQL). -- Chris Chris Hilton e: chris|at|vindaloo| dot|com ---------------------------------------------------------------------------- "The pattern juggler lifts his hand; The orchestra begin. As slowly turns the grinding wheel in the court of the crimson king." -- Ian McDonald / Peter Sinfield From sahil at tandon.net Tue Oct 7 00:53:27 2008 From: sahil at tandon.net (Sahil Tandon) Date: Tue Oct 7 00:53:34 2008 Subject: How to generate password hashes for vipw and chpass In-Reply-To: <89ce7f740810052214k4419d939s8bb8ebce5e703626@mail.gmail.com> References: <89ce7f740810052214k4419d939s8bb8ebce5e703626@mail.gmail.com> Message-ID: <20081007005325.GA12031@shepherd> Ivan Rambius Ivanov wrote: > Can you please show me how to generate the password hashes? There are many tools; I use security/makepasswd. -- Sahil Tandon From mksmith at adhost.com Tue Oct 7 01:08:55 2008 From: mksmith at adhost.com (Michael K. Smith - Adhost) Date: Tue Oct 7 01:09:03 2008 Subject: FreeBSD as PF/Router/Firewall dying on the vine Message-ID: <17838240D9A5544AAA5FF95F8D52031604BE2FC7@ad-exh01.adhost.lan> Hello All: We have a load balanced pair of PF boxes sitting in front of a whole bunch of server doing all manner of things! It's been working great up until today when it, well, didn't. Here's what I see in top -S. PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 14 root 1 -44 -163 0K 8K CPU1 0 44:21 88.18% swi1: net 11 root 1 171 52 0K 8K RUN 0 24:58 53.32% idle: cpu0 10 root 1 171 52 0K 8K RUN 1 17:44 35.50% idle: cpu1 24 root 1 -68 -187 0K 8K *Giant 0 5:30 11.62% irq16: em2 uhci3 23 root 1 -68 -187 0K 8K WAIT 0 1:27 3.08% irq25: em1 25 root 1 -68 -187 0K 8K WAIT 1 1:16 2.64% irq17: em3 This is 6.3 with Intel 1000 Fiber and Copper interfaces, all using the 'em' driver. Also, there are 15 VLAN's configured on one of the NIC's for subnet separation. If anyone has any ideas I'm all ears. My google-fu is coming up empty with the swi1: net Thank You, Mike -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 474 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081007/8d6682d1/PGP.pgp From edwin at mavetju.org Tue Oct 7 01:32:38 2008 From: edwin at mavetju.org (Edwin Groothuis) Date: Tue Oct 7 01:32:44 2008 Subject: what are the top few mp3[4] Podcast helpers-apps for firefox-3.03? In-Reply-To: <20081006190512.GA2010@thought.org> Message-ID: <20081007011313.GA66422@mavetju.org> > Even tho firefox3 doesn't do all that (I think) it should, my main use > for the web is listening to audio streams. So: what should I select to > be my default mp3/postcast player? Have a look at net/penguintv, I use it to track my podcasts. It can keep track of the feeds, download the media, and open it in the right player. Also it can be used to read other peoples pages (uses firefox libraries for the rendering), but I only use that for the Planet FreeBSD feed. Edwin -- Edwin Groothuis Website: http://www.mavetju.org/ edwin@mavetju.org Weblog: http://www.mavetju.org/weblog/ From forums.office at gmail.com Tue Oct 7 02:40:25 2008 From: forums.office at gmail.com (Xenophan) Date: Tue Oct 7 02:40:32 2008 Subject: Help With [seemingly] Simple Problem Message-ID: <19850089.post@talk.nabble.com> Alright, this is one of those moments when a normal person is forced to become terminal typing freak (sorry guys =)) against their will... I have a FreeBSD7 server box in my garage that serves the computers on my network with files. It has been a godsend: 2 1TB SATA drives raid-1'd and I have a peace of mind that all my files are secure in one place in the house that has doubled as my office. The box has basic non-gui install of FreeBSD7 and I access it through WinSCP from other boxes around the house. Voila! So easy! Well it was until I decided to bring some order to it - sort files in the right directories. This is usually a snap in XP, but UNIX would not allow things to be simple I guess: When I want to empty out few folders into another folder ("DUMP") and there are same files in both folders (one I am copying from (Downloads) and one I am moving them to(DUMP)) I get an error: [HTML]General failure (server should provide error description). Error code: 4 Error message from server: Failure Request code: 18[/HTML] My guess was that it found similar named files and flipped out only leaving me the options to skip or abort (I skipped). So I decided to do it through command line via Putty. Friend of mine suggested this command through bash:[HTML] mv Downloads/* .[/HTML] Effect was the same: I get a polite error notifying me that: : [HTML]FileName.extension: Directory not empty[/HTML] Whoopty do! XP would be nice enough to give me options: name of conflicting file; sizes; options: Abort, Overwrite, Skip These options are crucial because some files may have changed and I may want to rename the file and save it as a newer version while keeping the old one. I usually find this out by looking at the file sizes. Is there a way to do the same from command line? I asked my friend and he just said I will have to manually look all the information up (to compare) and delete or rename. This would be madness when I have to deal with hundreds or thousands of files...I would be sitting in front of the monitor for weeks just busy with one task. He also said "I''m sure you can write a script" I guess that's the best way to tell the noob to bug off. :mad: Please tell me if there is an easier way to approach my task. -- View this message in context: http://www.nabble.com/Help-With--seemingly--Simple-Problem-tp19850089p19850089.html Sent from the freebsd-questions mailing list archive at Nabble.com. From bri at brianwhalen.net Tue Oct 7 02:40:55 2008 From: bri at brianwhalen.net (Brian) Date: Tue Oct 7 02:41:02 2008 Subject: continuous backup solution for freebsd? In-Reply-To: <1223317494.1307.13.camel@rivendell.lan> References: <48E9E146.9040308@ispro.net.tr> <20081006173815.GA46342@slackbox.xs4all.nl> <1223317494.1307.13.camel@rivendell.lan> Message-ID: <48EACC36.60408@brianwhalen.net> rsync via cron or raid? Brian From bri at brianwhalen.net Tue Oct 7 02:45:21 2008 From: bri at brianwhalen.net (Brian) Date: Tue Oct 7 02:45:28 2008 Subject: has anyone actually received a bsdmag ? In-Reply-To: <48EA8D6E.5090107@kleppnett.no> References: <48EA8D6E.5090107@kleppnett.no> Message-ID: <48EACD41.3020309@brianwhalen.net> kenneth hatteland wrote: > Bought printed copy quite a while before the first release and have > gotten both released issues delivered flawlessly here in Norway. > I am very pleased with the magazine and recommend everyone to > subscribe. They were a bit slow to reply on emails but always comes > around at a later time....that is my experience so far. > > Kenneth Hatteland > _______________________________________________ > 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 had no idea there was a paper style bsd mag. Does it also address other BSDs? Brian From gnemmi at gmail.com Tue Oct 7 02:57:00 2008 From: gnemmi at gmail.com (Gonzalo Nemmi) Date: Tue Oct 7 02:57:07 2008 Subject: has anyone actually received a bsdmag ? In-Reply-To: <48EACD41.3020309@brianwhalen.net> References: <48EA8D6E.5090107@kleppnett.no> <48EACD41.3020309@brianwhalen.net> Message-ID: <200810062356.41369.gnemmi@gmail.com> On Tuesday 07 October 2008 12:45:21 am Brian wrote: > kenneth hatteland wrote: > > Bought printed copy quite a while before the first release and have > > gotten both released issues delivered flawlessly here in Norway. > > I am very pleased with the magazine and recommend everyone to > > subscribe. They were a bit slow to reply on emails but always comes > > around at a later time....that is my experience so far. > > > > Kenneth Hatteland > > _______________________________________________ > > 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 had no idea there was a paper style bsd mag. Does it also address > other BSDs? > > Brian > > _______________________________________________ > 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" Yup ... it does .. Here you go: http://www.bsdmag.org/ -- Blessings Gonzalo Nemmi From shroyer_phillip at yahoo.com Tue Oct 7 02:22:01 2008 From: shroyer_phillip at yahoo.com (Phillip Shroyer) Date: Tue Oct 7 02:57:12 2008 Subject: freebsd 7.0 mobile Message-ID: <248776.34629.qm@web45712.mail.sp1.yahoo.com> i dont know whats going on but i cant get free bsd to run anything but a console on a micron transport gx+ laptop. it always says no drivers found for xserver. i have a s3 Savage/IX 16MB card that supports up to 1400x1050 and i dont know what else to do. please help me! Phil Shroyer From unga888 at yahoo.com Tue Oct 7 03:41:33 2008 From: unga888 at yahoo.com (Unga) Date: Tue Oct 7 03:41:40 2008 Subject: TRUE realtime priority In-Reply-To: <20081006221523.P3921@wojtek.tensor.gdynia.pl> Message-ID: <830154.59280.qm@web57003.mail.re3.yahoo.com> --- On Tue, 10/7/08, Wojciech Puchar wrote: Hello Wojciech > is it possible on FreeBSD > Its soft RT. Try to use the latest ULE scheduler. > i run asterisk with realtime priority. it works perfectly > no matter how > much CPU is loaded by other non-telephony tasks. > > but with lots of VM pressure it starts to so... like like > tha..that... > > what causes it to behave like that and how to fix it. > VM (interrupt priority) runs higher priority than RT in FreeBSD. The interrupt priority preempts RT. To fix it, don't have any VM activity. Increase your RAM. > for example when lots of spam comes to server and lots of > resource hungry > spamassassin processes are spawned our calls starts to be > crappy. > > CPU load for asterisk rarely exceed few percent! > > i think having separate computer just for this is stupid, i > would do this > having no other choice, but can it be done without this. > When a postman deliver mail, do you check whether are they to you before accept or just blindly accept all and check later? :) Best regards Unga From koitsu at FreeBSD.org Tue Oct 7 04:30:12 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Tue Oct 7 04:30:27 2008 Subject: FreeBSD as PF/Router/Firewall dying on the vine In-Reply-To: <17838240D9A5544AAA5FF95F8D52031604BE2FC7@ad-exh01.adhost.lan> References: <17838240D9A5544AAA5FF95F8D52031604BE2FC7@ad-exh01.adhost.lan> Message-ID: <20081007043009.GA38719@icarus.home.lan> On Mon, Oct 06, 2008 at 06:08:50PM -0700, Michael K. Smith - Adhost wrote: > Hello All: > > We have a load balanced pair of PF boxes sitting in front of a whole bunch of server doing all manner of things! It's been working great up until today when it, well, didn't. Here's what I see in top -S. > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > 14 root 1 -44 -163 0K 8K CPU1 0 44:21 88.18% swi1: net > 11 root 1 171 52 0K 8K RUN 0 24:58 53.32% idle: cpu0 > 10 root 1 171 52 0K 8K RUN 1 17:44 35.50% idle: cpu1 > 24 root 1 -68 -187 0K 8K *Giant 0 5:30 11.62% irq16: em2 uhci3 > 23 root 1 -68 -187 0K 8K WAIT 0 1:27 3.08% irq25: em1 > 25 root 1 -68 -187 0K 8K WAIT 1 1:16 2.64% irq17: em3 > > This is 6.3 with Intel 1000 Fiber and Copper interfaces, all using the 'em' driver. Also, there are 15 VLAN's configured on one of the NIC's for subnet separation. > > If anyone has any ideas I'm all ears. My google-fu is coming up empty with the swi1: net Can you explain what the problem is? -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From edwin at mavetju.org Tue Oct 7 04:58:40 2008 From: edwin at mavetju.org (Edwin Groothuis) Date: Tue Oct 7 04:58:49 2008 Subject: TRUE realtime priority In-Reply-To: <20081006221523.P3921@wojtek.tensor.gdynia.pl> Message-ID: <20081007045757.GA69017@mavetju.org> > for example when lots of spam comes to server and lots of resource hungry > spamassassin processes are spawned our calls starts to be crappy. And that's why I always have isolated my telephony servers from normal-ISP tasks: They provide real-time tasks and should be running in memory only. Edwin -- Edwin Groothuis Website: http://www.mavetju.org/ edwin@mavetju.org Weblog: http://www.mavetju.org/weblog/ From zszalbot at gmail.com Tue Oct 7 05:09:54 2008 From: zszalbot at gmail.com (Zbigniew Szalbot) Date: Tue Oct 7 05:10:01 2008 Subject: update.FreeBSD.org / No mirrors remaining, giving up In-Reply-To: <94136a2c0810060139r740c3a96hc9c79028e7b93a4d@mail.gmail.com> References: <94136a2c0810060139r740c3a96hc9c79028e7b93a4d@mail.gmail.com> Message-ID: <94136a2c0810062209x7c1376d7gfe92ad91c4f8ccaa@mail.gmail.com> Hi there, Any idea how I can troubleshoot it? Thanks! > Hello, > > I am not sure why but whenever I do: > > $ freebsd-update fetch > Fetching metadata signature for 7.0-RELEASE from update.FreeBSD.org... failed. > No mirrors remaining, giving up. > > but if type: > $ portsnap fetch > Fetching snapshot tag from portsnap.FreeBSD.org... done. > > Many thanks for any hint as to what may be wrong with > update.FreeBSD.org on this machine! > > -- > Zbigniew Szalbot > -- Zbigniew Szalbot From zszalbot at gmail.com Tue Oct 7 05:59:09 2008 From: zszalbot at gmail.com (Zbigniew Szalbot) Date: Tue Oct 7 05:59:16 2008 Subject: update.FreeBSD.org / No mirrors remaining, giving up In-Reply-To: <94136a2c0810062209x7c1376d7gfe92ad91c4f8ccaa@mail.gmail.com> References: <94136a2c0810060139r740c3a96hc9c79028e7b93a4d@mail.gmail.com> <94136a2c0810062209x7c1376d7gfe92ad91c4f8ccaa@mail.gmail.com> Message-ID: <94136a2c0810062259v754d2159w5d01e35b277d13e7@mail.gmail.com> Hello, FYI. Solved. I changed update.freebsd.org with update1.freebsd.org in /etc/freebsd-update.con Thanks! ZS > Hi there, > > Any idea how I can troubleshoot it? Thanks! > >> Hello, >> >> I am not sure why but whenever I do: >> >> $ freebsd-update fetch >> Fetching metadata signature for 7.0-RELEASE from update.FreeBSD.org... failed. >> No mirrors remaining, giving up. >> >> but if type: >> $ portsnap fetch >> Fetching snapshot tag from portsnap.FreeBSD.org... done. >> >> Many thanks for any hint as to what may be wrong with >> update.FreeBSD.org on this machine! >> >> -- >> Zbigniew Szalbot >> > > > -- > Zbigniew Szalbot > -- Zbigniew Szalbot From cyberleo at cyberleo.net Tue Oct 7 06:47:54 2008 From: cyberleo at cyberleo.net (CyberLeo Kitsana) Date: Tue Oct 7 06:48:02 2008 Subject: VNC server embedded into Xorg server In-Reply-To: <48EA0B4A.9080405@shopzeus.com> References: <48EA0B4A.9080405@shopzeus.com> Message-ID: <48EB0618.6050903@cyberleo.net> Laszlo Nagy wrote: > > Hi All, > > There was a port called net/vnc that contained a vnc.so file. That file > could be loaded into the Xorg server and then I was able to monitor the > X desktop with VNC. > > Now I'm using gnome, and gnome2-fifth-toe installs tightvnc. It > conflicts with net/vnc. So I cannot install net/vnc. What other options > I have to run an X server? > > The only extra wish is that the X server must be able to start > automatically, e.g. without logging into gnome. I need this because the > X server will be located at a distant location and I have to be able to > use it after a system restart. I use x11vnc (net/x11vnc), as it doesn't require loading anything into the X server itself--it's a standard X client. >From there, it wouldn't be difficult to hack together something that starts x11vnc when the X server starts up. XDM and GDM tend to store their X authority files in easy-to-find locations. -- Fuzzy love, -CyberLeo Technical Administrator CyberLeo.Net Webhosting http://www.CyberLeo.Net Furry Peace! - http://wwww.fur.com/peace/ From bsam at ipt.ru Tue Oct 7 07:18:28 2008 From: bsam at ipt.ru (Boris Samorodov) Date: Tue Oct 7 07:18:54 2008 Subject: compat/linux program claims "no write access to ~" In-Reply-To: <539c60b90810061455g19c6bbc2h98e97083e3d7a42f@mail.gmail.com> (Steve Franks's message of "Mon\, 6 Oct 2008 14\:55\:13 -0700") References: <539c60b90810061455g19c6bbc2h98e97083e3d7a42f@mail.gmail.com> Message-ID: <72204541@bs1.sp34.ru> "Steve Franks" writes: > Sounds like a bogus error to me. I just downgraded amd64 to i386, > reinstalled a linux program and it claims it can't write to ~ now. > I'm running it, and I have no reason to think it wouldn't run as me. > ~ is 775 anyway. Also, running the linux program as su or sudo gives > the same error. Any ideas just where this might be coming from? I'm > on 7-STABLE, i386, linux-base-fc4. You may use ktrace/linux_kdump to find a culprit. BTW, make sure you don't have LINUXBASE/home/user as well as ~. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From karolina.lesinska at lpmagazine.org Tue Oct 7 07:48:24 2008 From: karolina.lesinska at lpmagazine.org (Karolina =?utf-8?q?Lesi=C5=84ska?=) Date: Tue Oct 7 07:48:31 2008 Subject: BSD mag Message-ID: <200810070925.37103.karolina.lesinska@lpmagazine.org> Dear Craig, Thanks for your interest in BSD mag and sorry for all inconviniences. I have checked your subscription status. You have subscribed on September 18th, and the issues were sent on September 22nd. You should have the mags any day now. Let me know in case you do not have them till Friday and I will send it once again. Could you please send your address again- just in case there are some mistakes. Thanks and once again sorry for all toubles! best regards Karolina -- Linux+ DVD BSD magazine Karolina Lesi?ska Product Manager /////////////////////////////////////////////// Software Media LLC 1521 Concord Pike, Suite 301 Brandywine Executive Center Wilmington, DE 19803 USA phone number: 1-917-338 - 3631 fax: +48 22 244 24 59 www.lpmagazine.org/en www.bsdmag.org http://www.buyitpress.com/en/ From edwin at mavetju.org Tue Oct 7 07:56:07 2008 From: edwin at mavetju.org (Edwin Groothuis) Date: Tue Oct 7 07:57:16 2008 Subject: update.FreeBSD.org / No mirrors remaining, giving up In-Reply-To: <94136a2c0810060139r740c3a96hc9c79028e7b93a4d@mail.gmail.com> Message-ID: <20081007075524.GA72002@mavetju.org> > $ freebsd-update fetch > Fetching metadata signature for 7.0-RELEASE from update.FreeBSD.org... failed. > No mirrors remaining, giving up. I've heard this before and it is caused by resolvers (most likely your router?) which don't understand requests for SRV records. Use your ISPs nameservers instead of your router and it should be fine. Edwin -- Edwin Groothuis Website: http://www.mavetju.org/ edwin@mavetju.org Weblog: http://www.mavetju.org/weblog/ From zszalbot at gmail.com Tue Oct 7 07:59:17 2008 From: zszalbot at gmail.com (Zbigniew Szalbot) Date: Tue Oct 7 07:59:26 2008 Subject: update.FreeBSD.org / No mirrors remaining, giving up In-Reply-To: <20081007075524.GA72002@mavetju.org> References: <94136a2c0810060139r740c3a96hc9c79028e7b93a4d@mail.gmail.com> <20081007075524.GA72002@mavetju.org> Message-ID: <94136a2c0810070059i297172b9la05c37befc8ae3e6@mail.gmail.com> Hi, 2008/10/7 Edwin Groothuis: >> $ freebsd-update fetch >> Fetching metadata signature for 7.0-RELEASE from update.FreeBSD.org... failed. >> No mirrors remaining, giving up. > > I've heard this before and it is caused by resolvers (most likely > your router?) which don't understand requests for SRV records. > > Use your ISPs nameservers instead of your router and it should be > fine. This issue and its fix have been described here: http://www.nabble.com/misc-127498:-update.freebsd.org-does-not-exist-td19572945.html I was already using my ISP nameserver so it was not the problem. -- Zbigniew Szalbot From craig001 at lerwick.hopto.org Tue Oct 7 08:32:14 2008 From: craig001 at lerwick.hopto.org (Craig Butler) Date: Tue Oct 7 08:32:43 2008 Subject: BSD mag In-Reply-To: <200810070925.37103.karolina.lesinska@lpmagazine.org> References: <200810070925.37103.karolina.lesinska@lpmagazine.org> Message-ID: <1223368322.52193.17.camel@main.lerwick.hopto.org> On Tue, 2008-10-07 at 09:25 +0200, Karolina Lesi?ska wrote: > Dear Craig, > > Thanks for your interest in BSD mag and sorry for all inconviniences. > > I have checked your subscription status. You have subscribed on September > 18th, and the issues were sent on September 22nd. > > You should have the mags any day now. Let me know in case you do not have them > till Friday and I will send it once again. > > Could you please send your address again- just in case there are some > mistakes. > > Thanks and once again sorry for all toubles! > > best regards > Karolina > Hi Karolina Thank you for the reply. I have sent you an email off list with my address details in. Hopefully I can be a happy BSD mag reader soon. Kind Regards Craig Butler From wojtek at wojtek.tensor.gdynia.pl Tue Oct 7 09:16:55 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Tue Oct 7 09:17:02 2008 Subject: TRUE realtime priority In-Reply-To: <20081007045757.GA69017@mavetju.org> References: <20081007045757.GA69017@mavetju.org> Message-ID: <20081007111631.W5855@wojtek.tensor.gdynia.pl> >> for example when lots of spam comes to server and lots of resource hungry >> spamassassin processes are spawned our calls starts to be crappy. > > And that's why I always have isolated my telephony servers from > normal-ISP tasks: They provide real-time tasks and should be running > in memory only. i know that but it's not an answer to my question anyway. From wojtek at wojtek.tensor.gdynia.pl Tue Oct 7 09:18:38 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Tue Oct 7 09:18:44 2008 Subject: TRUE realtime priority In-Reply-To: <20081006215749.GA68933@slackbox.xs4all.nl> References: <20081006221523.P3921@wojtek.tensor.gdynia.pl> <20081006215749.GA68933@slackbox.xs4all.nl> Message-ID: <20081007111712.X5855@wojtek.tensor.gdynia.pl> > Well, basically you are the only one who can answer that. And that's not > a paradox or an attempt at humor. You should investigate. Maybe > interrupts aren't processed fast enough (hardware sharing an > interrupt?), or memory or kernel resources are low. well last night i tested it with SCHED_4BSD instead of sched_ule, reduced quantum to 20000 from 100000 and for now - no voice chopping under high load. but i will test it more. From mcoyles at horbury.wakefield.sch.uk Tue Oct 7 09:20:57 2008 From: mcoyles at horbury.wakefield.sch.uk (Marc Coyles) Date: Tue Oct 7 09:21:05 2008 Subject: Script works fine from CLI, but not when Cron'd Message-ID: <003001c9285d$f2a3a410$d7eaec30$@wakefield.sch.uk> I've got a script to backup my MySQL databases, which works absolutely fine from the command line, but when I add it in to root's cronjobs it always fails with "mysqldump: not found" - what am I doing wrong? Script as follows: #!/bin/sh USER= PASS= mysqldump --opt -h localhost -u $USER -p$PASS horbury_dppd06 >/home/horbury/backup_mysql/dppd06.sql And that's it... When run as root from CLI, works with no errors. When run from cron as root, get the "not found" problem. Marc A Coyles - Horbury School ICT Support Team Mbl: 07850 518106 Land: 01924 282740 ext 730 Helpdesk: 01924 282740 ext 2000 From jamesoff at gmail.com Tue Oct 7 09:28:28 2008 From: jamesoff at gmail.com (James Seward) Date: Tue Oct 7 09:28:35 2008 Subject: Script works fine from CLI, but not when Cron'd In-Reply-To: <003001c9285d$f2a3a410$d7eaec30$@wakefield.sch.uk> References: <003001c9285d$f2a3a410$d7eaec30$@wakefield.sch.uk> Message-ID: <720051dc0810070228o68f0a67bx8cab7869ace8269f@mail.gmail.com> On Tue, Oct 7, 2008 at 10:20 AM, Marc Coyles wrote: > I've got a script to backup my MySQL databases, which works absolutely > fine from the command line, but when I add it in to root's cronjobs it > always fails with "mysqldump: not found" - what am I doing wrong? Things started from cron inherit a different PATH. Either add the appropriate directories to PATH or specify the full path to mysqldump. -- /JMS From craig001 at lerwick.hopto.org Tue Oct 7 09:30:52 2008 From: craig001 at lerwick.hopto.org (Craig Butler) Date: Tue Oct 7 09:30:59 2008 Subject: Script works fine from CLI, but not when Cron'd In-Reply-To: <003001c9285d$f2a3a410$d7eaec30$@wakefield.sch.uk> References: <003001c9285d$f2a3a410$d7eaec30$@wakefield.sch.uk> Message-ID: <1223371831.54577.3.camel@main.lerwick.hopto.org> On Tue, 2008-10-07 at 10:20 +0100, Marc Coyles wrote: > I've got a script to backup my MySQL databases, which works absolutely > fine from the command line, but when I add it in to root's cronjobs it > always fails with "mysqldump: not found" - what am I doing wrong? > > Script as follows: > > #!/bin/sh > USER= > PASS= > > mysqldump --opt -h localhost -u $USER -p$PASS horbury_dppd06 > >/home/horbury/backup_mysql/dppd06.sql > > > And that's it... > When run as root from CLI, works with no errors. When run from cron as > root, get the "not found" problem. > > > Marc A Coyles - Horbury School ICT Support Team > Mbl: 07850 518106 > Land: 01924 282740 ext 730 > Helpdesk: 01924 282740 ext 2000 > > > > > _______________________________________________ > 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" When it is run from cron it is not picking up the shell .profile so PATH is not set. As mysqldump is sitting in a directory in one of the paths (/usr/local/bin ??) Quick fix use full path details in the mysqldump line. Or Source in a .profile .... to set the paths. Regards Craig B From koitsu at FreeBSD.org Tue Oct 7 09:31:09 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Tue Oct 7 09:31:17 2008 Subject: TRUE realtime priority In-Reply-To: <20081007111712.X5855@wojtek.tensor.gdynia.pl> References: <20081006221523.P3921@wojtek.tensor.gdynia.pl> <20081006215749.GA68933@slackbox.xs4all.nl> <20081007111712.X5855@wojtek.tensor.gdynia.pl> Message-ID: <20081007093107.GA44339@icarus.home.lan> On Tue, Oct 07, 2008 at 11:18:32AM +0200, Wojciech Puchar wrote: >> Well, basically you are the only one who can answer that. And that's not >> a paradox or an attempt at humor. You should investigate. Maybe >> interrupts aren't processed fast enough (hardware sharing an >> interrupt?), or memory or kernel resources are low. > > well last night i tested it with SCHED_4BSD instead of sched_ule, reduced > quantum to 20000 from 100000 and for now - no voice chopping under high > load. but i will test it more. What version of FreeBSD are you using for this? Yes, it matters. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From koitsu at FreeBSD.org Tue Oct 7 09:32:27 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Tue Oct 7 09:32:35 2008 Subject: Script works fine from CLI, but not when Cron'd In-Reply-To: <003001c9285d$f2a3a410$d7eaec30$@wakefield.sch.uk> References: <003001c9285d$f2a3a410$d7eaec30$@wakefield.sch.uk> Message-ID: <20081007093226.GA44366@icarus.home.lan> On Tue, Oct 07, 2008 at 10:20:32AM +0100, Marc Coyles wrote: > I've got a script to backup my MySQL databases, which works absolutely > fine from the command line, but when I add it in to root's cronjobs it > always fails with "mysqldump: not found" - what am I doing wrong? mysqldump is in /usr/local/bin, which $PATH does not contain when running from a cronjob. (PATH inside of cron has a very limited scope, I believe it's /bin:/usr/bin). Either set PATH to include /usr/local/bin, or just refer to the fully-qualified path of mysqldump (/usr/local/bin/mysqldump). -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From artemrts at ukr.net Tue Oct 7 10:04:46 2008 From: artemrts at ukr.net (Vitaliy Vladimirovich) Date: Tue Oct 7 10:04:53 2008 Subject: Unable install FreeBSD7 on IBM BladeCenter HS21 Message-ID: Hello! ?I have problem in installation FreeBSD on the blade. After the beginning of copying of files there is an error: ? /: write failed, filesystem is full Disk In what problem? TIA. From wojtek at wojtek.tensor.gdynia.pl Tue Oct 7 10:28:04 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Tue Oct 7 10:28:11 2008 Subject: TRUE realtime priority In-Reply-To: <20081007093107.GA44339@icarus.home.lan> References: <20081006221523.P3921@wojtek.tensor.gdynia.pl> <20081006215749.GA68933@slackbox.xs4all.nl> <20081007111712.X5855@wojtek.tensor.gdynia.pl> <20081007093107.GA44339@icarus.home.lan> Message-ID: <20081007122658.D6274@wojtek.tensor.gdynia.pl> >> quantum to 20000 from 100000 and for now - no voice chopping under high >> load. but i will test it more. > > What version of FreeBSD are you using for this? Yes, it matters. 7.0 please give me few days to make more precise reports from my users and me being on place today (not just testing this through echo). From Rajeshwar.Patil at aricent.com Tue Oct 7 10:32:58 2008 From: Rajeshwar.Patil at aricent.com (Rajeshwar Patil) Date: Tue Oct 7 10:33:11 2008 Subject: sleep is not working to avoid starvation among threads of same priority Message-ID: Hi, I have two threads of same priority lets say thread A and thread B, thread A is starving since thread B has got a for loop of size 100k. So, to avoid starvation I am processing 1000 iterations of for loop(that of thread B) in one batch and giving sleep of 1ms, but still thread A is starving. If I increase the batch size used in for loop from 1k to 10k then starvation of thread A is little less whereas it should be more as Im increasing processing time of thread B. I tried various combinations of sleeps and batches, but I couldnt solve the starvation of thread A. Is the sleep right solution? I will be grateful if someone could answer on this. Thanks Rajeshwar ________________________________ "DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error,please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus." From Rajeshwar.Patil at aricent.com Tue Oct 7 10:33:00 2008 From: Rajeshwar.Patil at aricent.com (Rajeshwar Patil) Date: Tue Oct 7 10:33:12 2008 Subject: sleep is not working to avoid starvation among threads of same priority Message-ID: Hi, I have two threads of same priority lets say thread A and thread B, thread A is starving since thread B has got a for loop of size 100k. So, to avoid starvation I am processing 1000 iterations of for loop(that of thread B) in one batch and giving sleep of 1ms, but still thread A is starving. If I increase the batch size used in for loop from 1k to 10k then starvation of thread A is little less whereas it should be more as Im increasing processing time of thread B. I tried various combinations of sleeps and batches, but I couldnt solve the starvation of thread A. Is the sleep right solution? I will be grateful if someone could answer on this. Thanks Rajeshwar ________________________________ "DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error,please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus." From koitsu at FreeBSD.org Tue Oct 7 10:35:18 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Tue Oct 7 10:35:25 2008 Subject: sleep is not working to avoid starvation among threads of same priority In-Reply-To: References: Message-ID: <20081007103517.GA46537@icarus.home.lan> On Tue, Oct 07, 2008 at 03:34:41PM +0530, Rajeshwar Patil wrote: > I have two threads of same priority lets say thread A and thread B, > thread A is starving since thread B has got a for loop of size 100k. > So, to avoid starvation I am processing 1000 iterations of for > loop(that of thread B) in one batch and giving sleep of 1ms, but still > thread A is starving. If I increase the batch size used in for loop > from 1k to 10k then starvation of thread A is little less whereas it > should be more as Im increasing processing time of thread B. I tried > various combinations of sleeps and batches, but I couldnt solve the > starvation of thread A. > > Is the sleep right solution? > > I will be grateful if someone could answer on this. This might be a question for freebsd-hackers, which is more developer-oriented than -questions. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From joeb at a1poweruser.com Tue Oct 7 10:42:28 2008 From: joeb at a1poweruser.com (joeb) Date: Tue Oct 7 10:42:36 2008 Subject: The disc in your drive looks more like an Audio CD than a FreeBSDrelease In-Reply-To: Message-ID: Yea I would say your burn of the .iso file to your cd did not work. Mount the cd and see if it contains a directory tree of Freebsd install files or mp3 files. -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of kiffin.gish@planet.nl Sent: Monday, October 06, 2008 7:07 PM To: freebsd-questions@freebsd.org Subject: The disc in your drive looks more like an Audio CD than a FreeBSDrelease Hi there. I tried to install 7.1-BETA from the CD I burned from 7.1-BETA-i386-disc1.iso, but after I created all the partitions etc and then selected to install, I get the following error message: "The disc in your drive looks more like an Audio CD than a FreeBSD release" Any idea what's wrong? -- Kiffin Gish Gouda, The Netherlands _______________________________________________ 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 qj at huawei.com Tue Oct 7 11:54:11 2008 From: qj at huawei.com (=?gb2312?B?x/G9ow==?=) Date: Tue Oct 7 11:54:18 2008 Subject: kernel profiling: spinlock_exit consumes 36% CPU time. Message-ID: <004001c92871$fdec0a10$01000001@china.huawei.com> Hi, folks, I did kernel profiling when a single thread client sends UDP packets to a single thread server on the same machine. In the output kernel profile, the first few kernel functions that consumes the most CPU time are listed below: granularity: each sample hit covers 16 byte(s) for 0.01% of 25.68 seconds % cumulative self self total time seconds seconds calls ms/call ms/call name 42.4 10.88 10.88 0 100.00% __mcount [1] 36.1 20.14 9.26 17937541 0.00 0.00 spinlock_exit [4] 4.2 21.22 1.08 3145728 0.00 0.00 in_cksum_skip [40] 1.8 21.68 0.45 7351987 0.00 0.00 generic_copyin [43] 1.1 21.96 0.29 3146028 0.00 0.00 generic_copyout [48] 1.0 22.21 0.24 2108904 0.00 0.00 Xint0x80_syscall [3] 0.8 22.42 0.21 6292131 0.00 0.00 uma_zalloc_arg [46] 0.8 22.62 0.20 1048576 0.00 0.00 soreceive_generic [9] 0.7 22.80 0.19 3145852 0.00 0.00 free [47] 0.6 22.96 0.15 6292172 0.00 0.00 uma_zfree_arg [52] 0.6 23.10 0.14 5243413 0.00 0.00 generic_bzero [53] 0.5 23.23 0.14 1048581 0.00 0.00 ip_output [23] 0.5 23.36 0.13 4221855 0.00 0.00 generic_bcopy [57] 0.4 23.47 0.11 36865859 0.00 0.00 critical_enter [61] 0.4 23.57 0.10 36865859 0.00 0.00 critical_exit [62] 0.4 23.67 0.09 17937541 0.00 0.00 spinlock_enter [63] 0.4 23.76 0.09 1048582 0.00 0.00 udp_input [21] 0.3 23.85 0.09 2108904 0.00 0.00 syscall [5] 0.3 23.93 0.08 1048587 0.00 0.00 ip_input [20] 0.3 24.00 0.07 2097156 0.00 0.00 getsock [65] 0.3 24.07 0.07 1048576 0.00 0.00 udp_send [22] It is very strange that spinlock_exit consumes over 36% CPU time while it seems a very simple function. For clarity, I paste the code of spinlock_exit here: void spinlock_exit(void) { struct thread *td; td = curthread; critical_exit(); td->td_md.md_spinlock_count--; if (td->td_md.md_spinlock_count == 0) intr_restore(td->td_md.md_saved_flags); } Since critical_exit consumes only 0.4% CPU time, does this mean the rest of spinlock_exit consume ~36% CPU time? Am I missing something? Could anybody help me understand this? Many thanks. BTW, the kernel is compiled with SMP and PREEMPTION disabled. The scheduler is ULE. Best regards, Qiu Jian From mexas at bristol.ac.uk Tue Oct 7 11:55:12 2008 From: mexas at bristol.ac.uk (Anton Shterenlikht) Date: Tue Oct 7 11:55:25 2008 Subject: detecting monitor's sync and refresh rate? Message-ID: <20081007115504.GA78610@mech-cluster238.men.bris.ac.uk> I've a monitor (Mobi M15MPC) with no docs. I've searched the net but cannot find any info on sync and refresh rate for it. I've done Xorg -configure, but testing with X -config xorg.conf.new shows screen shifted to the side and very nasty blinking, from which I deduced that perhaps I need to specify correct sync, refresh and mode. Are there any commands to get sync and refresh from the monitor? many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423 From koitsu at FreeBSD.org Tue Oct 7 11:57:53 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Tue Oct 7 11:58:02 2008 Subject: kernel profiling: spinlock_exit consumes 36% CPU time. In-Reply-To: <004001c92871$fdec0a10$01000001@china.huawei.com> References: <004001c92871$fdec0a10$01000001@china.huawei.com> Message-ID: <20081007115748.GA48154@icarus.home.lan> On Tue, Oct 07, 2008 at 07:44:00PM +0800, ???? wrote: > Hi, folks, > > I did kernel profiling when a single thread client sends UDP packets to a > single thread server on the same machine. > > In the output kernel profile, the first few kernel functions that consumes > the most CPU time are listed below: > > granularity: each sample hit covers 16 byte(s) for 0.01% of 25.68 seconds > > % cumulative self self total > time seconds seconds calls ms/call ms/call name > 42.4 10.88 10.88 0 100.00% __mcount [1] > 36.1 20.14 9.26 17937541 0.00 0.00 spinlock_exit [4] > 4.2 21.22 1.08 3145728 0.00 0.00 in_cksum_skip [40] > 1.8 21.68 0.45 7351987 0.00 0.00 generic_copyin [43] > 1.1 21.96 0.29 3146028 0.00 0.00 generic_copyout [48] > 1.0 22.21 0.24 2108904 0.00 0.00 Xint0x80_syscall [3] > 0.8 22.42 0.21 6292131 0.00 0.00 uma_zalloc_arg [46] > 0.8 22.62 0.20 1048576 0.00 0.00 soreceive_generic [9] > 0.7 22.80 0.19 3145852 0.00 0.00 free [47] > 0.6 22.96 0.15 6292172 0.00 0.00 uma_zfree_arg [52] > 0.6 23.10 0.14 5243413 0.00 0.00 generic_bzero [53] > 0.5 23.23 0.14 1048581 0.00 0.00 ip_output [23] > 0.5 23.36 0.13 4221855 0.00 0.00 generic_bcopy [57] > 0.4 23.47 0.11 36865859 0.00 0.00 critical_enter [61] > 0.4 23.57 0.10 36865859 0.00 0.00 critical_exit [62] > 0.4 23.67 0.09 17937541 0.00 0.00 spinlock_enter [63] > 0.4 23.76 0.09 1048582 0.00 0.00 udp_input [21] > 0.3 23.85 0.09 2108904 0.00 0.00 syscall [5] > 0.3 23.93 0.08 1048587 0.00 0.00 ip_input [20] > 0.3 24.00 0.07 2097156 0.00 0.00 getsock [65] > 0.3 24.07 0.07 1048576 0.00 0.00 udp_send [22] > > It is very strange that spinlock_exit consumes over 36% CPU time while it > seems a very simple function. > > For clarity, I paste the code of spinlock_exit here: > > void > spinlock_exit(void) > { > struct thread *td; > > td = curthread; > critical_exit(); > td->td_md.md_spinlock_count--; > if (td->td_md.md_spinlock_count == 0) > intr_restore(td->td_md.md_saved_flags); > } > > Since critical_exit consumes only 0.4% CPU time, does this mean the rest of > spinlock_exit consume ~36% CPU time? > > Am I missing something? Could anybody help me understand this? Many thanks. > > BTW, the kernel is compiled with SMP and PREEMPTION disabled. The scheduler > is ULE. What FreeBSD version, and what build date of the kernel? -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From dave.list at pixelhammer.com Tue Oct 7 12:36:14 2008 From: dave.list at pixelhammer.com (DAve) Date: Tue Oct 7 12:36:21 2008 Subject: Running cron jobs as nobody In-Reply-To: <200810051909.01619.fbsd.questions@rachie.is-a-geek.net> References: <48E4E4B8.90202@pixelhammer.com> <200810051909.01619.fbsd.questions@rachie.is-a-geek.net> Message-ID: <48EB57B4.2030406@pixelhammer.com> Mel wrote: > On Thursday 02 October 2008 17:11:52 DAve wrote: >> Good morning all, >> >> We have a cronjob we need to run as nobody from /etc/crontab and it >> seems to be not working. The job runs, but not as user nobody. >> >> I noticed two things, >> >> 1) the job to update the locate DB runs as nobody, because the script >> uses su to become nobody. >> echo /usr/libexec/locate.updatedb | nice -5 su -fm nobody || rc=3 > ^^^ > -fm: Bypass .cshrc and only change user, use root env. > >> Is setting the user to nobody in /etc/crontab not possible? > > pw showuser operator > pw showuser nobody > > Spot the difference (hint: /nonexistent) > That was my first thought as well. After reading some of the responses I still thought it odd that cron would not run the script as "nobody". So I setup two scripts to dump the env vars into a file, one script runs from /etc/crontab and one from nobody's crontab. Both are functioning perfectly. I have told the developer to re investigate his script and his directory perms. I looks like a case of PEBKAC to me. Thanks for the responses. DAve -- Don't tell me I'm driving the cart! From c.kworr at gmail.com Tue Oct 7 12:48:09 2008 From: c.kworr at gmail.com (Volodymyr Kostyrko) Date: Tue Oct 7 12:48:17 2008 Subject: Unable install FreeBSD7 on IBM BladeCenter HS21 In-Reply-To: References: Message-ID: Vitaliy Vladimirovich wrote: > Hello! > I have problem in installation FreeBSD on the blade. After the beginning of copying of files there is an error: > > /: write failed, filesystem is full > > Disk > In what problem? df -h Perhaps your / is too small. Try repartitioning or strip something out of kernel. -- Sphinx of black quartz judge my vow. From jalmberg at identry.com Tue Oct 7 12:54:40 2008 From: jalmberg at identry.com (John Almberg) Date: Tue Oct 7 12:54:47 2008 Subject: thorny (for me) permissions problem Message-ID: <0C63914A-E3A3-4FC7-92AD-797F407A5FF7@identry.com> The following permissions problem has me stumped: 1. User A uploads a file (using ftp) to the server, into a directory called 'data' owned by user B. Permissions on directory set to allow this, like this: drwxrwxr-x 2 user_b user_b 512 Oct 7 08:40 data 2. A cron job, run by user B, then processes the file 3. When the processing is complete, the cron job needs to delete the file from the server 4. however, after upload, the file has the ownership A:B (i.e, owned by A, group B) with permissions -rw-r--r--. So B does not have permission to delete the file. -rw-r--r-- 1 user_a user_b 154879 Oct 7 08:40 data_file.csv The ftp user can manually change the permissions on the file to -rw- rw-r--, but I do not want to depend on the user remembering to change permissions. If he forgets, the cronjob will process the file over and over again. I need the server to handle this, so it gets done correctly 100% of the time. B does not have sufficient permissions to delete the file or change it's permissions. The only thing I can think of is to have ANOTHER cron job, run by A, run every few minutes to check for the existence of a file, and change the permissions so B can delete it. But this smells like a kludge to me. Is there a correct way to handle this? For instance, is there something I can set in A's profile, so when he uploads a file, the group permission is set to rw? That would be a nice clean way to do it, but I can't find anything like that. Any help, much appreciated. -- John From artemrts at ukr.net Tue Oct 7 12:56:59 2008 From: artemrts at ukr.net (Vitaliy Vladimirovich) Date: Tue Oct 7 12:57:06 2008 Subject: Unable install FreeBSD7 on IBM BladeCenter HS21 In-Reply-To: Message-ID: --- Original Message --- From: Volodymyr Kostyrko To: freebsd-questions@freebsd.org Date: 7 october, 15:47:48 Subject: Re: Unable install FreeBSD7 on IBM BladeCenter HS21 Vitaliy Vladimirovich wrote: > Hello! > I have problem in installation FreeBSD on the blade. After the beginning of copying of files there is an error: > > /: write failed, filesystem is full > > Disk > In what problem? df -h Perhaps your / is too small. Try repartitioning or strip something out of kernel. ?No,no. ?This is problem in acpi. https://www.bsdwiki.de/FreeBSD_on_IBM_Blade ? From valentin.bud at gmail.com Tue Oct 7 13:00:35 2008 From: valentin.bud at gmail.com (Valentin Bud) Date: Tue Oct 7 13:00:42 2008 Subject: thorny (for me) permissions problem In-Reply-To: <0C63914A-E3A3-4FC7-92AD-797F407A5FF7@identry.com> References: <0C63914A-E3A3-4FC7-92AD-797F407A5FF7@identry.com> Message-ID: <139b44430810070600o99c3a7aw51e6d54a88d4246c@mail.gmail.com> Hello mr. John, On Tue, Oct 7, 2008 at 2:54 PM, John Almberg wrote: > The following permissions problem has me stumped: > > 1. User A uploads a file (using ftp) to the server, into a directory called > 'data' owned by user B. Permissions on directory set to allow this, like > this: > drwxrwxr-x 2 user_b user_b 512 Oct 7 08:40 data > > 2. A cron job, run by user B, then processes the file > > 3. When the processing is complete, the cron job needs to delete the file > from the server > > 4. however, after upload, the file has the ownership A:B (i.e, owned by A, > group B) with permissions -rw-r--r--. So B does not have permission to > delete the file. > -rw-r--r-- 1 user_a user_b 154879 Oct 7 08:40 data_file.csv > > The ftp user can manually change the permissions on the file to -rw-rw-r--, > but I do not want to depend on the user remembering to change permissions. > If he forgets, the cronjob will process the file over and over again. I need > the server to handle this, so it gets done correctly 100% of the time. > > B does not have sufficient permissions to delete the file or change it's > permissions. The only thing I can think of is to have ANOTHER cron job, run > by A, run every few minutes to check for the existence of a file, and change > the permissions so B can delete it. But this smells like a kludge to me. > > Is there a correct way to handle this? For instance, is there something I > can set in A's profile, so when he uploads a file, the group permission is > set to rw? That would be a nice clean way to do it, but I can't find > anything like that. > > Any help, much appreciated. > > -- John Depends on what ftp daemon you use. All the ftp server programs have a way to enforce the umask. See http://en.wikipedia.org/wiki/Umask for a better understanding to what umask is. all the best, v > > > _______________________________________________ > 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 valentin.bud at gmail.com Tue Oct 7 13:01:37 2008 From: valentin.bud at gmail.com (Valentin Bud) Date: Tue Oct 7 13:01:49 2008 Subject: Unable install FreeBSD7 on IBM BladeCenter HS21 In-Reply-To: References: Message-ID: <139b44430810070601o9ff17dbmaaa51b4b999b4c85@mail.gmail.com> 2008/10/7 Vitaliy Vladimirovich > > > --- Original Message --- > From: Volodymyr Kostyrko > To: freebsd-questions@freebsd.org > Date: 7 october, 15:47:48 > Subject: Re: Unable install FreeBSD7 on IBM BladeCenter HS21 > > Vitaliy Vladimirovich wrote: > > Hello! > > I have problem in installation FreeBSD on the blade. After the beginning > of copying of files there is an error: > > > > /: write failed, filesystem is full > > > > Disk > > In what problem? > > df -h > > Perhaps your / is too small. Try repartitioning or strip something out > of kernel. > > No,no. > This is problem in acpi. Then disable ACPI from BIOS and give it a go. After finish re-enable ACPI. all the best, v > > > https://www.bsdwiki.de/FreeBSD_on_IBM_Blade > > > _______________________________________________ > 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 kenneth.hatteland at kleppnett.no Tue Oct 7 13:14:14 2008 From: kenneth.hatteland at kleppnett.no (kenneth hatteland) Date: Tue Oct 7 13:14:22 2008 Subject: has anyone actually received a bsdmag ? In-Reply-To: <20081007120025.E1003106572D@hub.freebsd.org> References: <20081007120025.E1003106572D@hub.freebsd.org> Message-ID: <48EB60A3.7090501@kleppnett.no> The first 2 issues have covered topics from FreeBSD, NetBSD, OpenBSD and actually a short one on MAC. In addition PCBSD is quite heavily featured. As far as I know this leaves only Dragonfly and DesktopBSD out for now in addition to Monowall, FreeNAS and FreeSBIE and others I do not know. Maybe these will be featured in later issues ? :) Kenneth From koitsu at FreeBSD.org Tue Oct 7 13:25:09 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Tue Oct 7 13:25:17 2008 Subject: thorny (for me) permissions problem In-Reply-To: <0C63914A-E3A3-4FC7-92AD-797F407A5FF7@identry.com> References: <0C63914A-E3A3-4FC7-92AD-797F407A5FF7@identry.com> Message-ID: <20081007132506.GA49321@icarus.home.lan> On Tue, Oct 07, 2008 at 08:54:36AM -0400, John Almberg wrote: > The following permissions problem has me stumped: > > 1. User A uploads a file (using ftp) to the server, into a directory > called 'data' owned by user B. Permissions on directory set to allow > this, like this: > drwxrwxr-x 2 user_b user_b 512 Oct 7 08:40 data This aimplies that User A's account is in group "user_b". > 2. A cron job, run by user B, then processes the file > > 3. When the processing is complete, the cron job needs to delete the > file from the server > > 4. however, after upload, the file has the ownership A:B (i.e, owned by > A, group B) with permissions -rw-r--r--. So B does not have permission to > delete the file. This doesn't make sense. Any user in "group B" (the group that's assigned to the "data" directory) should be able to remove files in that directory. That means: 1) Any user in the group called "user_b", 2) The user "user_b" himself. See below. > The ftp user can manually change the permissions on the file to -rw- > rw-r--, but I do not want to depend on the user remembering to change > permissions. If he forgets, the cronjob will process the file over and > over again. I need the server to handle this, so it gets done correctly > 100% of the time. > > B does not have sufficient permissions to delete the file or change it's > permissions. The only thing I can think of is to have ANOTHER cron job, > run by A, run every few minutes to check for the existence of a file, and > change the permissions so B can delete it. But this smells like a kludge > to me. > > Is there a correct way to handle this? For instance, is there something I > can set in A's profile, so when he uploads a file, the group permission > is set to rw? That would be a nice clean way to do it, but I can't find > anything like that. What you're describing is understandable, but something is wrong with the setup or description of the problem. Here's proof of what I'm talking about: # egrep 'somegroup' /etc/group somegroup:*:9999:bob,jim # id bob uid=2000(bob) gid=1000(users) groups=1000(users),9999(somegroup) # id jim uid=2001(jim) gid=1000(users) groups=1000(users),9999(somegroup) Both of these users are in group "somegroup". So let's make some directories and files: drwxrwxr-x 2 jim somegroup 2 Oct 7 06:22 data/ -rw-r----- 1 bob somegroup 0 Oct 7 06:22 data/somefile In this scenario, user "jim" will be able to remove "somefile", as can be seen here: # su jim % id -a uid=2001(jim) gid=1000(users) groups=1000(users),9999(somegroup) % ls -l total 1 -rw-r----- 1 bob somegroup 0 Oct 7 06:22 somefile % rm somefile override rw-r----- bob/somegroup for somefile? y % ls -l total 0 So, possibly the FTP server you're using does not inherit users groups, only GIDs? -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From frank at shute.org.uk Tue Oct 7 13:25:31 2008 From: frank at shute.org.uk (Frank Shute) Date: Tue Oct 7 13:25:38 2008 Subject: Coretemp seems to be off quite a bit In-Reply-To: References: Message-ID: <20081007132517.GA31229@melon.esperance-linux.co.uk> On Mon, Oct 06, 2008 at 09:39:40AM -0500, Kirk Strauser wrote: > > I have a Gigabyte motherboard with an Intel ICH-9 chipset, and a > 3.0GHz Core 2 Duo (E8400). The coretemp sysctls seem to always show > 50C as the baseline temperature: > > $ sysctl dev.cpu | grep temp > dev.cpu.0.temperature: 50 > dev.cpu.1.temperature: 50 > > This is with a big PSU fan, a good CPU fan, a clean heatsink, and two > case fans aimed the right direction (front fan pulling cool air in, > rear fan pushing warm air out). If I reboot and go into the BIOS, I > get numbers around 42-43C. I know it's kind of hard to compare > directly, but the coretemp numbers are from a totally idle system with > powerd scaling it back to 373MHz, so it should be as cool as when > sitting idle in the BIOS screens. When I work the system hard, like > running "make -j4 buildworld", I see temperatures up around 63-64C, > and I'm almost positive that's not right. > > Any ideas why coretemp and the BIOS would show such different numbers? To add some numbers, I've got an E6550 on a Gigabyte GA-P35-DS3L (ICH9) and I get: $ sysctl dev.cpu | grep temp dev.cpu.0.temperature: 24 dev.cpu.1.temperature: 28 Ambient room temp: 23?C That's running powerd and the machine idle, standard heatsink/fan combo, 1x12cm case fan. Your's might run hotter (higher clock speed? Mine: 2.33GHz) but I wouldn't expect it to run *so* much hotter. I'd expect your numbers to be right if all the ACPI stuff is working. To confirm this, check in Windows, if you can: http://www.techpowerup.com/realtemp/ Tom's hardware has some stuff about Intel temps: http://www.tomshardware.co.uk/forum/221745-11-core-quad-temperature-guide If that is high too and is outside the proper temperature envelope for your CPU, that leaves a possibility that your heatsink/fan might not be seated properly. What we could do with is some numbers from somebody running a similar CPU. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html From koitsu at FreeBSD.org Tue Oct 7 13:28:35 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Tue Oct 7 13:28:41 2008 Subject: Coretemp seems to be off quite a bit In-Reply-To: <20081007132517.GA31229@melon.esperance-linux.co.uk> References: <20081007132517.GA31229@melon.esperance-linux.co.uk> Message-ID: <20081007132832.GA49914@icarus.home.lan> On Tue, Oct 07, 2008 at 02:25:17PM +0100, Frank Shute wrote: > On Mon, Oct 06, 2008 at 09:39:40AM -0500, Kirk Strauser wrote: > > > > I have a Gigabyte motherboard with an Intel ICH-9 chipset, and a > > 3.0GHz Core 2 Duo (E8400). The coretemp sysctls seem to always show > > 50C as the baseline temperature: > > > > $ sysctl dev.cpu | grep temp > > dev.cpu.0.temperature: 50 > > dev.cpu.1.temperature: 50 > > > > This is with a big PSU fan, a good CPU fan, a clean heatsink, and two > > case fans aimed the right direction (front fan pulling cool air in, > > rear fan pushing warm air out). If I reboot and go into the BIOS, I > > get numbers around 42-43C. I know it's kind of hard to compare > > directly, but the coretemp numbers are from a totally idle system with > > powerd scaling it back to 373MHz, so it should be as cool as when > > sitting idle in the BIOS screens. When I work the system hard, like > > running "make -j4 buildworld", I see temperatures up around 63-64C, > > and I'm almost positive that's not right. > > > > Any ideas why coretemp and the BIOS would show such different numbers? > > To add some numbers, I've got an E6550 on a Gigabyte GA-P35-DS3L > (ICH9) and I get: > > $ sysctl dev.cpu | grep temp > dev.cpu.0.temperature: 24 > dev.cpu.1.temperature: 28 > > Ambient room temp: 23?C > > That's running powerd and the machine idle, standard heatsink/fan > combo, 1x12cm case fan. > > Your's might run hotter (higher clock speed? Mine: 2.33GHz) but I > wouldn't expect it to run *so* much hotter. > > I'd expect your numbers to be right if all the ACPI stuff is working. Clarification here is needed: coretemp(4) has nothing to do with ACPI. It gets thermal statistics from the processor by talking *directly* to the processor with specific opcodes, the results returned in specific CPU registers. It does not rely on ACPI. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From julian at elischer.org Tue Oct 7 13:39:44 2008 From: julian at elischer.org (Julian Elischer) Date: Tue Oct 7 13:39:50 2008 Subject: kernel profiling: spinlock_exit consumes 36% CPU time. In-Reply-To: <004001c92871$fdec0a10$01000001@china.huawei.com> References: <004001c92871$fdec0a10$01000001@china.huawei.com> Message-ID: <48EB63E3.60604@elischer.org> ?? wrote: > Hi, folks, [...] spinlocks disable interrupts so the profiling interrupt is held off from the moment that the spinlock is entered to the moment it is exited, and all of that time is attributed to spinlock_exit(). so that this tells you that 3% of your time is spent under spinlocks which is a lot. as others have asked, "what version"? you should look up lock profiling to see WHICH lock is teh ine in question. From andrewlylegould at gmail.com Tue Oct 7 13:43:32 2008 From: andrewlylegould at gmail.com (Andrew Gould) Date: Tue Oct 7 13:43:39 2008 Subject: has anyone actually received a bsdmag ? In-Reply-To: <48EB60A3.7090501@kleppnett.no> References: <20081007120025.E1003106572D@hub.freebsd.org> <48EB60A3.7090501@kleppnett.no> Message-ID: On Tue, Oct 7, 2008 at 8:14 AM, kenneth hatteland < kenneth.hatteland@kleppnett.no> wrote: > The first 2 issues have covered topics from FreeBSD, NetBSD, OpenBSD and > actually a short one on MAC. In addition PCBSD is quite heavily featured. > > As far as I know this leaves only Dragonfly and DesktopBSD out for now in > addition to Monowall, FreeNAS and FreeSBIE and others I do not know. Maybe > these will be featured in later issues ? :) > > Kenneth > > Actually, I think there have been articles introducing PC-BSD and DesktopBSD. I haven't seen articles regarding Dragonfly; but version 1.12.2 is on the DVD. (FYI - DragonFly BSD version 2.0.1 was released on September 27.) The BSDMag website mentioned that it would be available at Barnes & Noble. I couldn't find it there; but I found it at Borders bookstores. Andrew From sdavtaker at gmail.com Tue Oct 7 13:53:16 2008 From: sdavtaker at gmail.com (=?UTF-8?Q?Sd=C3=A4vtaker?=) Date: Tue Oct 7 13:53:23 2008 Subject: Touch screen ET&T on Clevo tn120r In-Reply-To: <1223291610.27632.21.camel@laptop1.herveybayaustralia.com.au> References: <1223291610.27632.21.camel@laptop1.herveybayaustralia.com.au> Message-ID: Thanks, here is the usb data: usbdevs -dv Controller /dev/usb0: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 uhub0 port 1 powered port 2 powered Controller /dev/usb1: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 uhub1 port 1 powered port 2 addr 2: full speed, power 100 mA, config 1, Fingerprint Sensor(0x2016), TouchStrip(0x147e), rev 0.01 ugen0 Controller /dev/usb2: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x0000), rev 1.00 uhub2 port 1 powered port 2 powered port 3 powered port 4 powered Controller /dev/usb3: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 uhub3 port 1 powered port 2 powered Controller /dev/usb4: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 uhub4 port 1 powered port 2 powered Controller /dev/usb5: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 uhub5 port 1 addr 2: full speed, power 100 mA, config 1, TC4UM(0x0306), ET&T Technology(0x0664), rev 1.00 uhid0 port 2 powered Controller /dev/usb6: addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x0000), rev 1.00 uhub6 port 1 powered port 2 powered port 3 powered port 4 powered port 5 powered port 6 powered From jhb at freebsd.org Tue Oct 7 14:04:17 2008 From: jhb at freebsd.org (John Baldwin) Date: Tue Oct 7 14:04:29 2008 Subject: kernel profiling: spinlock_exit consumes 36% CPU time. In-Reply-To: <004001c92871$fdec0a10$01000001@china.huawei.com> References: <004001c92871$fdec0a10$01000001@china.huawei.com> Message-ID: <200810070938.04673.jhb@freebsd.org> On Tuesday 07 October 2008 07:44:00 am ?? wrote: > Hi, folks, > > I did kernel profiling when a single thread client sends UDP packets to a > single thread server on the same machine. > > In the output kernel profile, the first few kernel functions that consumes > the most CPU time are listed below: > > granularity: each sample hit covers 16 byte(s) for 0.01% of 25.68 seconds > > % cumulative self self total > time seconds seconds calls ms/call ms/call name > 42.4 10.88 10.88 0 100.00% __mcount [1] > 36.1 20.14 9.26 17937541 0.00 0.00 spinlock_exit [4] > 4.2 21.22 1.08 3145728 0.00 0.00 in_cksum_skip [40] > 1.8 21.68 0.45 7351987 0.00 0.00 generic_copyin [43] > 1.1 21.96 0.29 3146028 0.00 0.00 generic_copyout [48] > 1.0 22.21 0.24 2108904 0.00 0.00 Xint0x80_syscall [3] > 0.8 22.42 0.21 6292131 0.00 0.00 uma_zalloc_arg [46] > 0.8 22.62 0.20 1048576 0.00 0.00 soreceive_generic [9] > > It is very strange that spinlock_exit consumes over 36% CPU time while it > seems a very simple function. It's because the intr_restore() re-enables interrupts and the resulting time spent executing the handlers for any pending interrupts are attributed to spinlock_exit(). -- John Baldwin From jeremyhooks at googlemail.com Tue Oct 7 14:05:36 2008 From: jeremyhooks at googlemail.com (Jeremy Hooks) Date: Tue Oct 7 14:05:43 2008 Subject: thorny (for me) permissions problem In-Reply-To: <0C63914A-E3A3-4FC7-92AD-797F407A5FF7@identry.com> References: <0C63914A-E3A3-4FC7-92AD-797F407A5FF7@identry.com> Message-ID: >> 4. however, after upload, the file has the ownership A:B (i.e, owned by A, group B) with permissions -rw-r--r--. So B does not have permission to delete the file. -rw-r--r-- 1 user_a user_b 154879 Oct 7 08:40 data_file.csv Hi John. Correct me if I am wrong but permission to delete a file depends on the users permissions for the containing directory. If B has write permission on the directory then B can delete the file. However you will likely need to use 'rm -f'. Regards. Jeremy. On Tue, Oct 7, 2008 at 1:54 PM, John Almberg wrote: > The following permissions problem has me stumped: > > 1. User A uploads a file (using ftp) to the server, into a directory called > 'data' owned by user B. Permissions on directory set to allow this, like > this: > drwxrwxr-x 2 user_b user_b 512 Oct 7 08:40 data > > 2. A cron job, run by user B, then processes the file > > 3. When the processing is complete, the cron job needs to delete the file > from the server > > 4. however, after upload, the file has the ownership A:B (i.e, owned by A, > group B) with permissions -rw-r--r--. So B does not have permission to > delete the file. > -rw-r--r-- 1 user_a user_b 154879 Oct 7 08:40 data_file.csv > > The ftp user can manually change the permissions on the file to -rw-rw-r--, > but I do not want to depend on the user remembering to change permissions. > If he forgets, the cronjob will process the file over and over again. I need > the server to handle this, so it gets done correctly 100% of the time. > > B does not have sufficient permissions to delete the file or change it's > permissions. The only thing I can think of is to have ANOTHER cron job, run > by A, run every few minutes to check for the existence of a file, and change > the permissions so B can delete it. But this smells like a kludge to me. > > Is there a correct way to handle this? For instance, is there something I > can set in A's profile, so when he uploads a file, the group permission is > set to rw? That would be a nice clean way to do it, but I can't find > anything like that. > > Any help, much appreciated. > > -- John > > _______________________________________________ > 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 gandalf at shopzeus.com Tue Oct 7 14:18:00 2008 From: gandalf at shopzeus.com (Laszlo Nagy) Date: Tue Oct 7 14:18:07 2008 Subject: dd piperd Message-ID: <48EB6F91.2050109@shopzeus.com> Sziasztok, Ilyet l?tok top-ban: PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 11475 gandalf 1 -8 0 4600K 864K piperd 5 21:41 8.06% cat 11472 gandalf 1 -8 0 4604K 876K piperd 3 21:30 8.06% dd Teh?t ?sszesen 16% procit zab?l valami, amir?l nem tudom hogy mi! ps ezt mondja: 1001 11472 11471 0 -8 0 4604 876 piperd S ?? 21:24.52 dd bs=1 count=1926717440 ilyet ?n biztosan nem futtatok magamt?l. De akkor ki? Van ?tletetek arra hogy a cat + dd p?rost melyik program futtathatja ilyen h?lye m?don? Valami maintenance cron job esetleg? Par?zok hogy valaki bet?rt. K?szi, Laci From jalmberg at identry.com Tue Oct 7 14:23:55 2008 From: jalmberg at identry.com (John Almberg) Date: Tue Oct 7 14:24:03 2008 Subject: thorny (for me) permissions problem In-Reply-To: References: <0C63914A-E3A3-4FC7-92AD-797F407A5FF7@identry.com> Message-ID: On Oct 7, 2008, at 9:34 AM, Jeremy Hooks wrote: >>> 4. however, after upload, the file has the ownership A:B (i.e, >>> owned by > A, group B) with permissions -rw-r--r--. So B does not have > permission to > delete the file. > -rw-r--r-- 1 user_a user_b 154879 Oct 7 08:40 data_file.csv > > Hi John. > > Correct me if I am wrong but permission to delete a file depends on > the > users permissions for the containing directory. If B has write > permission > on the directory then B can delete the file. However you will > likely need > to use 'rm -f'. Argh!!!! As a newbie admin, I really have a tough time with permissions. I swear I got a permissions error when I tried to delete this dang file, but I just logged in as B and was able to delete it just fine. Of course this is because B owns the directory. I guess I must have done something boneheaded an hour or two ago... gosh, I hate wasting time. Mine, and the lists, of course. Well, thanks to Valintin, I did figure out how to change the umask for pure-ftpd. So now uploaded files have the permissions I wanted, even if they are not needed. And thanks to the rest, I figured out it was working all along... And now I can't even duplicate the error I saw before... Does this ever get any easier??? How can any one person remember all this stuff??? -- John From koitsu at FreeBSD.org Tue Oct 7 14:30:56 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Tue Oct 7 14:31:07 2008 Subject: thorny (for me) permissions problem In-Reply-To: References: <0C63914A-E3A3-4FC7-92AD-797F407A5FF7@identry.com> Message-ID: <20081007143053.GA51120@icarus.home.lan> On Tue, Oct 07, 2008 at 10:23:53AM -0400, John Almberg wrote: > > On Oct 7, 2008, at 9:34 AM, Jeremy Hooks wrote: > >>>> 4. however, after upload, the file has the ownership A:B (i.e, >>>> owned by >> A, group B) with permissions -rw-r--r--. So B does not have permission >> to >> delete the file. >> -rw-r--r-- 1 user_a user_b 154879 Oct 7 08:40 data_file.csv >> >> Hi John. >> >> Correct me if I am wrong but permission to delete a file depends on >> the >> users permissions for the containing directory. If B has write >> permission >> on the directory then B can delete the file. However you will likely >> need >> to use 'rm -f'. > > Argh!!!! > > As a newbie admin, I really have a tough time with permissions. I swear I > got a permissions error when I tried to delete this dang file, but I just > logged in as B and was able to delete it just fine. Of course this is > because B owns the directory. > > I guess I must have done something boneheaded an hour or two ago... > gosh, I hate wasting time. Mine, and the lists, of course. > > Well, thanks to Valintin, I did figure out how to change the umask for > pure-ftpd. So now uploaded files have the permissions I wanted, even if > they are not needed. Be careful with what you've done. If you changed the umask on the ftpd as a whole, then suddenly unrelated users are going to find their files writeable by whatever group/GID they default to. For example, on my systems, everyone's default group is "users", and I definitely would not want group-write set to files people upload on their accounts! The idea of a user being able to edit or zero out other users' data is not good. But that's also what the underlying directory permissions are for... As you've learned/remembered today. :-) > And thanks to the rest, I figured out it was working all along... And > now I can't even duplicate the error I saw before... > > Does this ever get any easier??? How can any one person remember > all this stuff??? It gets easier with time; don't rush yourself. :-) Even those of us who have been using UNIX for almost 20 years forget the simplest of things on a regular basis. Be sure to let us know when you make the infamous "rm -fr" typo that nukes either / or ~. :-) -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From mcoyles at horbury.wakefield.sch.uk Tue Oct 7 14:37:04 2008 From: mcoyles at horbury.wakefield.sch.uk (Marc Coyles) Date: Tue Oct 7 14:37:12 2008 Subject: Consistency of MySQL dumps... Message-ID: <008101c9288a$1cffbdd0$56ff3970$@wakefield.sch.uk> Here's one that's puzzling me... If I use /usr/local/bin/mysqldump to make a backup of a database, the file it produces fails to restore with "Check syntax near..." error. If I then head into cPanel, to their "Backup" menu, and take a backup of the database from there, the file it produces also fails to restore with "Check syntax near..." error, but at a COMPLETELY different point thru the restore. If I head into cPanel, to phpmyadmin, and do an export from there... the file restores PERFECTLY without errors. Sooo... how can I write a script that'll backup a MySQL database and produce a useable file?? This problem is occurring on 2 of my 8 databases... it appears the chosen software used to produce the dump of MySQL data is the culprit... what is the best commandline (ie: cron-able) tool to use for the task? Marc A Coyles - Horbury School ICT Support Team Mbl: 07850 518106 Land: 01924 282740 ext 730 Helpdesk: 01924 282740 ext 2000 From fbsd06 at mlists.homeunix.com Tue Oct 7 14:53:11 2008 From: fbsd06 at mlists.homeunix.com (RW) Date: Tue Oct 7 14:53:18 2008 Subject: update.FreeBSD.org / No mirrors remaining, giving up In-Reply-To: <20081007075524.GA72002@mavetju.org> References: <94136a2c0810060139r740c3a96hc9c79028e7b93a4d@mail.gmail.com> <20081007075524.GA72002@mavetju.org> Message-ID: <20081007154135.535dbd12@gumby.homeunix.com.> On Tue, 7 Oct 2008 18:55:24 +1100 Edwin Groothuis wrote: > > $ freebsd-update fetch > > Fetching metadata signature for 7.0-RELEASE from > > update.FreeBSD.org... failed. No mirrors remaining, giving up. > > I've heard this before and it is caused by resolvers (most likely > your router?) which don't understand requests for SRV records. freebsd-update and portsnap should fall back to the configured server if they can't get SRV records, they should be able to work through an http-proxy without any DNS access at all on the local machine. It sounds like a bug if SRV records are needed. From m.seaman at infracaninophile.co.uk Tue Oct 7 15:01:49 2008 From: m.seaman at infracaninophile.co.uk (Matthew Seaman) Date: Tue Oct 7 15:02:02 2008 Subject: Consistency of MySQL dumps... In-Reply-To: <008101c9288a$1cffbdd0$56ff3970$@wakefield.sch.uk> References: <008101c9288a$1cffbdd0$56ff3970$@wakefield.sch.uk> Message-ID: <48EB79CA.7080901@infracaninophile.co.uk> -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Marc Coyles wrote: | Here's one that's puzzling me... | | If I use /usr/local/bin/mysqldump to make a backup of a database, the | file it produces fails to restore with "Check syntax near..." error. | | If I then head into cPanel, to their "Backup" menu, and take a backup of | the database from there, the file it produces also fails to restore | with "Check syntax near..." error, but at a COMPLETELY different point | thru the restore. cPanel probably runs mysqldump internally, but with slightly different options than you've been using on the command line. | If I head into cPanel, to phpmyadmin, and do an export from there... the | file restores PERFECTLY without errors. phpMyAdmin I happen to know generates the dump file by running its own dynamically generated SQL. If it works for you... | Sooo... how can I write a script that'll backup a MySQL database and | produce a useable file?? | | This problem is occurring on 2 of my 8 databases... it appears the | chosen software used to produce the dump of MySQL data is the culprit... | what is the best commandline (ie: cron-able) tool to use for the task? Without seeing the error message is (the interesting bit is usually slightly before the 'Check syntax near...' instruction) and what exactly the SQL code around that point is, I'm shooting in the dark somewhat. mysqldump(1) is the canonical tool for producing database dumps for backup. There's a classic problem to do with 'Max Packet Size' where mysqldump is allowed to produce much larger chunks of SQL than mysql client is allowed to swallow. This is easily cured by setting the max-packet-size variable during your data load session -- or set the variable from my.cnf so it's there all the time. Other possible problems: mysqldump usually works by locking each table in sequence while dumping it out. This means that things like Foreign Keys can get out of sync if you're dumping the database while it is particularly active. To cure that problem, either you need to tell mysqldump to acquire a DB-wide lock (which will block all other access) or you have to use InnoDB tables and enable transactions. You can in theory dump all of the databases in an instance of MySQL as a single transaction, although you may well run into the 4GB transaction size limit on 32bit machines if your databases are that large. (64bit machines have a max transaction size so large it's unfeasible to ever run into it). In summary: you should always be able to get a good backup out of mysqldump, but you'll have to play around with variables and command line options a bit to make it work smoothly in your specific circumstanes. 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREDAAYFAkjrecoACgkQ3jDkPpsZ+VZzwgCfaUFLS7L1uY93TazYk3wensoo 3HgAoMHeMGvgNGIJByB/WeESuBfp/gfj =2pXg -----END PGP SIGNATURE----- From mail at ozzmosis.com Tue Oct 7 15:10:12 2008 From: mail at ozzmosis.com (andrew clarke) Date: Tue Oct 7 15:10:19 2008 Subject: update.FreeBSD.org / No mirrors remaining, giving up In-Reply-To: <94136a2c0810060139r740c3a96hc9c79028e7b93a4d@mail.gmail.com> References: <94136a2c0810060139r740c3a96hc9c79028e7b93a4d@mail.gmail.com> Message-ID: <20081007151008.GA66624@ozzmosis.com> On Mon 2008-10-06 10:39:42 UTC+0200, Zbigniew Szalbot (zszalbot@gmail.com) wrote: > I am not sure why but whenever I do: > > $ freebsd-update fetch > Fetching metadata signature for 7.0-RELEASE from update.FreeBSD.org... failed. > No mirrors remaining, giving up. > > but if type: > $ portsnap fetch > Fetching snapshot tag from portsnap.FreeBSD.org... done. > > Many thanks for any hint as to what may be wrong with > update.FreeBSD.org on this machine! A similar problem to this: http://lists.freebsd.org/pipermail/freebsd-questions/2008-April/173725.html It may be your ISP's nameservers do not support SRV record lookups. From jalmberg at identry.com Tue Oct 7 15:19:05 2008 From: jalmberg at identry.com (John Almberg) Date: Tue Oct 7 15:19:11 2008 Subject: thorny (for me) permissions problem In-Reply-To: <20081007143053.GA51120@icarus.home.lan> References: <0C63914A-E3A3-4FC7-92AD-797F407A5FF7@identry.com> <20081007143053.GA51120@icarus.home.lan> Message-ID: <8A0EE6C2-4862-482A-9EB5-4DE5E1A5F51A@identry.com> >> Well, thanks to Valintin, I did figure out how to change the umask >> for >> pure-ftpd. So now uploaded files have the permissions I wanted, >> even if >> they are not needed. > > Be careful with what you've done. If you changed the umask on the > ftpd > as a whole, then suddenly unrelated users are going to find their > files > writeable by whatever group/GID they default to. > A good point. The default group for my users is their own group... i.e., user_a's default group is user_a, so that should not be a problem, but why give away more rights than necessary? So, I've put the pure-ftpd umask back to 137:077 (this inverted octal was a brain twister until I had my second cup of coffee :-), retested, and it all works the way I wanted it to. Three hours gone, but I guess I learned a few things, which I have documented in my Solutions Log. By the way, for any Mac users on the list, I highly recommend Yojimbo as a Solutions Log. Yojimbo is a program that's hard to explain, but incredibly useful. It is basically a place that you can throw all sorts of useful information, such as notes on how to solve things you've already figured out (I hate having to figure things out twice), PDFs, book marks, whole web pages (archived), emails (archived), passwords (encrypted)... any information that you want to be able to find easily in the future. You can 'tag' each bit of information with as many keywords as you want. Then, when you need to retrieve some vital bit of information, it has a search engine that lets you find it quickly. It sounds trivial, when you read it, but I don't know any other tool that lets you store so many types of documents in the same place, with such easy retrieval. Anyway, that's my tip of the day. Thanks to everyone for the help. Now I just need to catch up on the rest of the day's work! -- John From kline at thought.org Tue Oct 7 16:08:11 2008 From: kline at thought.org (Gary Kline) Date: Tue Oct 7 16:08:19 2008 Subject: any idea why kde4 konqueor fails? Message-ID: <20081007160801.GA43682@thought.org> Well, I've finally gotten Konq to exec, but something causes it to hang instantly whenever I click on an external link. The wristwatch icon shows up with the hang. Any idea what I'm missing? tia, gary -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org From kline at thought.org Tue Oct 7 16:13:37 2008 From: kline at thought.org (Gary Kline) Date: Tue Oct 7 16:13:45 2008 Subject: From konsole, konq: Message-ID: <20081007161330.GA43881@thought.org> Here's what I get con my knosole: p8 1:20 [5112] konqueror konqueror: WARNING: Can't open /usr/home/kline/.kde/share/apps/konqueror/bookmarks.xml kio (KMimeType): WARNING: KServiceType::offers : servicetype not found kio (KMimeType): WARNING: KServiceType::offers : servicetype not found p8 9:00 [5113] konqueror -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org From fbsd06 at mlists.homeunix.com Tue Oct 7 17:01:46 2008 From: fbsd06 at mlists.homeunix.com (RW) Date: Tue Oct 7 17:01:53 2008 Subject: From konsole, konq: In-Reply-To: <20081007161330.GA43881@thought.org> References: <20081007161330.GA43881@thought.org> Message-ID: <20081007180115.175ee89b@gumby.homeunix.com.> On Tue, 7 Oct 2008 09:13:33 -0700 Gary Kline wrote: > > Here's what I get con my knosole: > > > p8 1:20 [5112] konqueror > konqueror: WARNING: Can't > open /usr/home/kline/.kde/share/apps/konqueror/bookmarks.xml kio > (KMimeType): WARNING: KServiceType::offers : servicetype not found > kio (KMimeType): WARNING: KServiceType::offers : servicetype not > found p8 9:00 [5113] konqueror Is ~/.kde from kde 3.x? If it is I'd try renaming it and starting over. When you use KDE 4 at the same time as KDE 3, it uses a separate .kde4 directory. From frank at shute.org.uk Tue Oct 7 17:33:24 2008 From: frank at shute.org.uk (Frank Shute) Date: Tue Oct 7 17:33:32 2008 Subject: Coretemp seems to be off quite a bit In-Reply-To: <20081007132832.GA49914@icarus.home.lan> References: <20081007132517.GA31229@melon.esperance-linux.co.uk> <20081007132832.GA49914@icarus.home.lan> Message-ID: <20081007173315.GA35592@melon.esperance-linux.co.uk> On Tue, Oct 07, 2008 at 06:28:32AM -0700, Jeremy Chadwick wrote: > > On Tue, Oct 07, 2008 at 02:25:17PM +0100, Frank Shute wrote: > > On Mon, Oct 06, 2008 at 09:39:40AM -0500, Kirk Strauser wrote: > > > > > > I have a Gigabyte motherboard with an Intel ICH-9 chipset, and a > > > 3.0GHz Core 2 Duo (E8400). The coretemp sysctls seem to always show > > > 50C as the baseline temperature: > > > > > > $ sysctl dev.cpu | grep temp > > > dev.cpu.0.temperature: 50 > > > dev.cpu.1.temperature: 50 > > > > > > This is with a big PSU fan, a good CPU fan, a clean heatsink, and two > > > case fans aimed the right direction (front fan pulling cool air in, > > > rear fan pushing warm air out). If I reboot and go into the BIOS, I > > > get numbers around 42-43C. I know it's kind of hard to compare > > > directly, but the coretemp numbers are from a totally idle system with > > > powerd scaling it back to 373MHz, so it should be as cool as when > > > sitting idle in the BIOS screens. When I work the system hard, like > > > running "make -j4 buildworld", I see temperatures up around 63-64C, > > > and I'm almost positive that's not right. > > > > > > Any ideas why coretemp and the BIOS would show such different numbers? > > > > To add some numbers, I've got an E6550 on a Gigabyte GA-P35-DS3L > > (ICH9) and I get: > > > > $ sysctl dev.cpu | grep temp > > dev.cpu.0.temperature: 24 > > dev.cpu.1.temperature: 28 > > > > Ambient room temp: 23?C > > > > That's running powerd and the machine idle, standard heatsink/fan > > combo, 1x12cm case fan. > > > > Your's might run hotter (higher clock speed? Mine: 2.33GHz) but I > > wouldn't expect it to run *so* much hotter. > > > > I'd expect your numbers to be right if all the ACPI stuff is working. > > Clarification here is needed: > > coretemp(4) has nothing to do with ACPI. It gets thermal statistics > from the processor by talking *directly* to the processor with specific > opcodes, the results returned in specific CPU registers. It does not > rely on ACPI. Thanks for the clarification. What I meant was that the core temperatures are dependent on clock speed which is dependent on powerd which is dependent on ACPI, if I'm not mistaken. i.e: If powerd isn't working properly due to ACPI bugs then you may have your CPU running at full clock, hence high temps. No? So one possible scenario is that powerd isn't working, although Kirk implies that it is. One piece of evidence that powerd is not working properly is that it clocked the CPU back to 373MHz - which seems an odd-looking number to me. On my machine: $ sysctl dev.cpu | grep freq dev.cpu.0.freq: 250 dev.cpu.0.freq_levels: 2333/22464 2041/19656 2000/22464 1750/19656 1500/16848 1250/14040 1000/11232 750/8424 500/5616 250/2808 i.e: I've got 2 odd steps high up but the rest are divisible by 50. I don't know if Kirk has fiddled with powerd. I just installed it & started it. Even if he used a percentage, it still seems a weird number - unless I missed something in powerd(4). Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html From kirk at strauser.com Tue Oct 7 17:41:08 2008 From: kirk at strauser.com (Kirk Strauser) Date: Tue Oct 7 17:41:15 2008 Subject: Coretemp seems to be off quite a bit In-Reply-To: <20081007173315.GA35592@melon.esperance-linux.co.uk> References: <20081007132517.GA31229@melon.esperance-linux.co.uk> <20081007132832.GA49914@icarus.home.lan> <20081007173315.GA35592@melon.esperance-linux.co.uk> Message-ID: <847CFBBD-9889-4F9F-8AD6-9810A72727A9@strauser.com> On Oct 7, 2008, at 12:33 PM, Frank Shute wrote: > $ sysctl dev.cpu | grep freq > dev.cpu.0.freq: 250 > dev.cpu.0.freq_levels: 2333/22464 2041/19656 2000/22464 1750/19656 > 1500/16848 1250/14040 1000/11232 750/8424 500/5616 250/2808 For some reason, versions of FreeBSD after 7.0-RELEASE think I have an odd-MHz CPU: $ sysctl dev.cpu.0.freq_levels dev.cpu.0.freq_levels: 2984/-1 2611/-1 2238/-1 1865/-1 1492/-1 1119/-1 746/-1 373/-1 > I don't know if Kirk has fiddled with powerd. I just installed it & > started it. That's all I did. I put 'powerd_enable="YES"' in /etc/rc.conf and started it. -- Kirk Strauser From koitsu at FreeBSD.org Tue Oct 7 17:51:26 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Tue Oct 7 17:51:38 2008 Subject: Coretemp seems to be off quite a bit In-Reply-To: <20081007173315.GA35592@melon.esperance-linux.co.uk> References: <20081007132517.GA31229@melon.esperance-linux.co.uk> <20081007132832.GA49914@icarus.home.lan> <20081007173315.GA35592@melon.esperance-linux.co.uk> Message-ID: <20081007175124.GA54581@icarus.home.lan> On Tue, Oct 07, 2008 at 06:33:15PM +0100, Frank Shute wrote: > On Tue, Oct 07, 2008 at 06:28:32AM -0700, Jeremy Chadwick wrote: > > > > On Tue, Oct 07, 2008 at 02:25:17PM +0100, Frank Shute wrote: > > > On Mon, Oct 06, 2008 at 09:39:40AM -0500, Kirk Strauser wrote: > > > > > > > > I have a Gigabyte motherboard with an Intel ICH-9 chipset, and a > > > > 3.0GHz Core 2 Duo (E8400). The coretemp sysctls seem to always show > > > > 50C as the baseline temperature: > > > > > > > > $ sysctl dev.cpu | grep temp > > > > dev.cpu.0.temperature: 50 > > > > dev.cpu.1.temperature: 50 > > > > > > > > This is with a big PSU fan, a good CPU fan, a clean heatsink, and two > > > > case fans aimed the right direction (front fan pulling cool air in, > > > > rear fan pushing warm air out). If I reboot and go into the BIOS, I > > > > get numbers around 42-43C. I know it's kind of hard to compare > > > > directly, but the coretemp numbers are from a totally idle system with > > > > powerd scaling it back to 373MHz, so it should be as cool as when > > > > sitting idle in the BIOS screens. When I work the system hard, like > > > > running "make -j4 buildworld", I see temperatures up around 63-64C, > > > > and I'm almost positive that's not right. > > > > > > > > Any ideas why coretemp and the BIOS would show such different numbers? > > > > > > To add some numbers, I've got an E6550 on a Gigabyte GA-P35-DS3L > > > (ICH9) and I get: > > > > > > $ sysctl dev.cpu | grep temp > > > dev.cpu.0.temperature: 24 > > > dev.cpu.1.temperature: 28 > > > > > > Ambient room temp: 23?C > > > > > > That's running powerd and the machine idle, standard heatsink/fan > > > combo, 1x12cm case fan. > > > > > > Your's might run hotter (higher clock speed? Mine: 2.33GHz) but I > > > wouldn't expect it to run *so* much hotter. > > > > > > I'd expect your numbers to be right if all the ACPI stuff is working. > > > > Clarification here is needed: > > > > coretemp(4) has nothing to do with ACPI. It gets thermal statistics > > from the processor by talking *directly* to the processor with specific > > opcodes, the results returned in specific CPU registers. It does not > > rely on ACPI. > > Thanks for the clarification. > > What I meant was that the core temperatures are dependent on clock > speed which is dependent on powerd which is dependent on ACPI, if I'm > not mistaken. I believe powerd(8) is reliant upon cpufreq(4), which is reliant upon many different pieces (depending upon what you've enabled in your kernel and what you've configured in loader.conf). See the cpufreq(4) man page for details of all the drivers/methods supported -- and yep, ACPI-based throttling is indeed there. > i.e: If powerd isn't working properly due to ACPI bugs then you may > have your CPU running at full clock, hence high temps. No? Processors/hardware are not dependent upon operating systems "calming them down" or "telling them to idle". I forget if I mentioned use of HLT opcodes and what not on idling processors -- this is just an "added bonus", as HLT will often put the processor into a "deeper sleep" than it would if it was just sitting there doing nothing. That's why you might see some occasional Windows programs advertising "cool your CPU down by running this program!!!" Let's say his average idle temperature is 40C. If he does not use powerd(8), his processor temperature should probably be 40C, maybe up or down a degree. If he starts doing something CPU-intensive, that will obviously increase the temperature. But when the processor isn't doing anything, it shouldn't have a high temperature. Keep in mind that powerd(8) using frequency or clock throttling does not necessarily guarantee lower/colder temperatures. It all depends on what cpufreq(4) module is being relied upon, and what sorts of power saving states the CPU has in it. In the case of Core 2 Duos, there's 4 or 5 states (C1 through C5 I believe), and I've read that there's a couple different "severities" of some of those states. RMClock for Windows does an awful good job of showing you what all the states are, and you can enable/disable them (as power-down states available) simply by clicking check boxes. > So one possible scenario is that powerd isn't working, although Kirk > implies that it is. > > One piece of evidence that powerd is not working properly is that it > clocked the CPU back to 373MHz - which seems an odd-looking number to > me. It doesn't appear odd to me. It greatly depends on what processor model you have, what cpufreq(4) driver you're using, what CPU features you have turned on or off (BIOSes sometimes can set these for you), what your FreeBSD settings are (loader.conf specifically), and what motherboard you're using. Case in point: here's some from a PDSMi+ board, although I'm using debug.cpufreq.lowest="1191" in loader.conf (I don't care to have the system downclock beyond that): dev.cpu.0.freq: 1191 dev.cpu.0.freq_levels: 2382/-1 2084/-1 1786/-1 1488/-1 1191/-1 It would help if we could see some of his sysctl date, specifically these: debug.cpufreq.* dev.cpufreq.[0-9].* dev.cpu.[0-9].freq dev.cpu.[0-9].freq_levels debug.cpufreq.verbose="1" and rebooting might help too. But let's take a step back first. The problem reported is that his core temperatures appear very high, and even higher when his machine is under load. But what are we comparing against? We'd need an exact duplicate machine (CPU, motherboard, and BIOS version) to see if the temps there were identical. For all we know, it could be the heatsink/fan is not properly mounted, or there's too much thermal paste. Who knows. This is why I recommended booting Windows and using CoreTemp. The temperatures shown there will be correct. If those are significantly lower than what FreeBSD reports, then we've either got a bug in the CPU temperature stuff in FreeBSD, or the machine really is running hotter (in which case we can start down that trail). -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From alancyang at gmail.com Tue Oct 7 17:53:23 2008 From: alancyang at gmail.com (alan yang) Date: Tue Oct 7 17:53:33 2008 Subject: kgdb debugging In-Reply-To: <290865fd0810061712sfdf5a0p4d3954773ee27a3d@mail.gmail.com> References: <290865fd0810061544ubbe92fdsf75501bb729da3f0@mail.gmail.com> <48EA9E95.80105@FreeBSD.org> <290865fd0810061712sfdf5a0p4d3954773ee27a3d@mail.gmail.com> Message-ID: <290865fd0810071053k6da13d96j391ade1a30599fa1@mail.gmail.com> Could people shed some light how to get remote debugging going, must be something that i overlooked, really appreciate. Two FreeBSD7 systems, target and development, connected with null modem cable on each's COM1. step 1) - rebuild kernel with following options: options DDB options KDB options GDB makeoptions DEBUG=-g step 2) - from development system cd to /usr/src/sys/i386/comiple/MYKERNEL kgdb -r /dev/cuad0 kernel.debug it displays the following: Switching to remote protocol Ignoring packet error, continuing ......... Couldn't establish connection to remote target Malformed response to offset query, timeout step 3) - from targetsystem: 1. Ctrl + Alt + Esc to go into db 2. from db> type gdb 3. it displays: "The remote GDB backend could not be selected" On Mon, Oct 6, 2008 at 5:12 PM, alan yang wrote: > the problem is, when entering gdb from db as described in the following: > -- > Enter ing gdb from ddb > In FreeBSD you can build a kernel with support for both ddb and gdb. > You can then > change backwards and forwards between them. For example, if you're in > ddb, you can > go to gdb like this: > db> gdb > Next trap will enter GDB remote protocol mode > db> si step a single instruction to reenter ddb > -- > after typing gdb command, it says: "The remote GDB backend could not > be selected" > that i am not sure what this indicates; looking at subr_kdb.c, wonder > maybe kdb_dbbe_set is not set? seems kdb_dbbe_set is not referenced > anywhere, not sure how to get it right. > > thanks for shed some light ... > > On Mon, Oct 6, 2008 at 4:26 PM, Pietro Cerutti wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA512 >> >> alan yang wrote: >> | hi, there, >> | >> | wonder people can shed some lights on remote debugging. i have >> | freebsd7 configured with option DDB / KDB / GDB but after entering the >> | db on the target system the command gdb gives "the remote GDB backend >> | could not be selected". >> | >> | i browsed through the mailing list, and do find 1 similar post but >> | without answer. >> | >> | thanks in advance & apology if i overlooked things ... >> >> I suggest the following tutorial: >> http://www.lemis.com/grog/Papers/Debug-tutorial/tutorial.pdf >> >> Have fun :) >> >> | >> | cheers, >> | alan >> | _______________________________________________ >> | freebsd-hackers@freebsd.org mailing list >> | http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> | To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >> >> >> - -- >> Pietro Cerutti >> gahr@FreeBSD.org >> >> PGP Public Key: >> http://gahr.ch/pgp >> >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v2.0.9 (FreeBSD) >> >> iEYEAREKAAYFAkjqnpQACgkQwMJqmJVx945RSwCgoDb0JTr8LSFDB1vpAbGUjb76 >> ZH0An19HpFVJJTUB5/XnyZc0pIDzgxc3 >> =6Pdm >> -----END PGP SIGNATURE----- >> > From julian at elischer.org Tue Oct 7 18:14:13 2008 From: julian at elischer.org (Julian Elischer) Date: Tue Oct 7 18:14:20 2008 Subject: kgdb debugging In-Reply-To: <290865fd0810071053k6da13d96j391ade1a30599fa1@mail.gmail.com> References: <290865fd0810061544ubbe92fdsf75501bb729da3f0@mail.gmail.com> <48EA9E95.80105@FreeBSD.org> <290865fd0810061712sfdf5a0p4d3954773ee27a3d@mail.gmail.com> <290865fd0810071053k6da13d96j391ade1a30599fa1@mail.gmail.com> Message-ID: <48EBA6F2.2090606@elischer.org> alan yang wrote: > Could people shed some light how to get remote debugging going, must > be something that i overlooked, really appreciate. > > Two FreeBSD7 systems, target and development, connected with null > modem cable on each's COM1. > > step 1) > - rebuild kernel with following options: > options DDB > options KDB > options GDB > > makeoptions DEBUG=-g add hints.dev.uart.0.flags=0xc0 (or whatever it is) (see man uart or man sio) to /boot/device.hints > > step 2) > - from development system > cd to /usr/src/sys/i386/comiple/MYKERNEL > kgdb -r /dev/cuad0 kernel.debug > > it displays the following: > Switching to remote protocol > Ignoring packet error, continuing > ......... > Couldn't establish connection to remote target > Malformed response to offset query, timeout > > step 3) > - from targetsystem: > 1. Ctrl + Alt + Esc to go into db > 2. from db> type gdb > 3. it displays: "The remote GDB backend could not be selected" > > > > On Mon, Oct 6, 2008 at 5:12 PM, alan yang wrote: >> the problem is, when entering gdb from db as described in the following: >> -- >> Enter ing gdb from ddb >> In FreeBSD you can build a kernel with support for both ddb and gdb. >> You can then >> change backwards and forwards between them. For example, if you're in >> ddb, you can >> go to gdb like this: >> db> gdb >> Next trap will enter GDB remote protocol mode >> db> si step a single instruction to reenter ddb >> -- >> after typing gdb command, it says: "The remote GDB backend could not >> be selected" >> that i am not sure what this indicates; looking at subr_kdb.c, wonder >> maybe kdb_dbbe_set is not set? seems kdb_dbbe_set is not referenced >> anywhere, not sure how to get it right. >> >> thanks for shed some light ... >> >> On Mon, Oct 6, 2008 at 4:26 PM, Pietro Cerutti wrote: >>> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA512 >>> >>> alan yang wrote: >>> | hi, there, >>> | >>> | wonder people can shed some lights on remote debugging. i have >>> | freebsd7 configured with option DDB / KDB / GDB but after entering the >>> | db on the target system the command gdb gives "the remote GDB backend >>> | could not be selected". >>> | >>> | i browsed through the mailing list, and do find 1 similar post but >>> | without answer. >>> | >>> | thanks in advance & apology if i overlooked things ... >>> >>> I suggest the following tutorial: >>> http://www.lemis.com/grog/Papers/Debug-tutorial/tutorial.pdf >>> >>> Have fun :) >>> >>> | >>> | cheers, >>> | alan >>> | _______________________________________________ >>> | freebsd-hackers@freebsd.org mailing list >>> | http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >>> | To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >>> >>> >>> - -- >>> Pietro Cerutti >>> gahr@FreeBSD.org >>> >>> PGP Public Key: >>> http://gahr.ch/pgp >>> >>> -----BEGIN PGP SIGNATURE----- >>> Version: GnuPG v2.0.9 (FreeBSD) >>> >>> iEYEAREKAAYFAkjqnpQACgkQwMJqmJVx945RSwCgoDb0JTr8LSFDB1vpAbGUjb76 >>> ZH0An19HpFVJJTUB5/XnyZc0pIDzgxc3 >>> =6Pdm >>> -----END PGP SIGNATURE----- >>> > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From nparhar at gmail.com Tue Oct 7 18:51:41 2008 From: nparhar at gmail.com (Navdeep Parhar) Date: Tue Oct 7 18:51:48 2008 Subject: kgdb debugging In-Reply-To: <290865fd0810071053k6da13d96j391ade1a30599fa1@mail.gmail.com> References: <290865fd0810061544ubbe92fdsf75501bb729da3f0@mail.gmail.com> <48EA9E95.80105@FreeBSD.org> <290865fd0810061712sfdf5a0p4d3954773ee27a3d@mail.gmail.com> <290865fd0810071053k6da13d96j391ade1a30599fa1@mail.gmail.com> Message-ID: On Tue, Oct 7, 2008 at 10:53 AM, alan yang wrote: > Could people shed some light how to get remote debugging going, must > be something that i overlooked, really appreciate. > Do you have the right flags for sio or uart in /boot/device.hints? I have this (for a recent HEAD):: hint.uart.0.flags="0x90" You are probably using sio as it is a FreeBSD7 system. From the man page of sio (the part that talks about flags):: ... 0x00080 use this port for remote kernel debugging ... Make sure you have this bit set. Regards, Navdeep > Two FreeBSD7 systems, target and development, connected with null > modem cable on each's COM1. > > step 1) > - rebuild kernel with following options: > options DDB > options KDB > options GDB > > makeoptions DEBUG=-g > > step 2) > - from development system > cd to /usr/src/sys/i386/comiple/MYKERNEL > kgdb -r /dev/cuad0 kernel.debug > > it displays the following: > Switching to remote protocol > Ignoring packet error, continuing > ......... > Couldn't establish connection to remote target > Malformed response to offset query, timeout > > step 3) > - from targetsystem: > 1. Ctrl + Alt + Esc to go into db > 2. from db> type gdb > 3. it displays: "The remote GDB backend could not be selected" > > > > On Mon, Oct 6, 2008 at 5:12 PM, alan yang wrote: >> the problem is, when entering gdb from db as described in the following: >> -- >> Enter ing gdb from ddb >> In FreeBSD you can build a kernel with support for both ddb and gdb. >> You can then >> change backwards and forwards between them. For example, if you're in >> ddb, you can >> go to gdb like this: >> db> gdb >> Next trap will enter GDB remote protocol mode >> db> si step a single instruction to reenter ddb >> -- >> after typing gdb command, it says: "The remote GDB backend could not >> be selected" >> that i am not sure what this indicates; looking at subr_kdb.c, wonder >> maybe kdb_dbbe_set is not set? seems kdb_dbbe_set is not referenced >> anywhere, not sure how to get it right. >> >> thanks for shed some light ... >> >> On Mon, Oct 6, 2008 at 4:26 PM, Pietro Cerutti wrote: >>> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA512 >>> >>> alan yang wrote: >>> | hi, there, >>> | >>> | wonder people can shed some lights on remote debugging. i have >>> | freebsd7 configured with option DDB / KDB / GDB but after entering the >>> | db on the target system the command gdb gives "the remote GDB backend >>> | could not be selected". >>> | >>> | i browsed through the mailing list, and do find 1 similar post but >>> | without answer. >>> | >>> | thanks in advance & apology if i overlooked things ... >>> >>> I suggest the following tutorial: >>> http://www.lemis.com/grog/Papers/Debug-tutorial/tutorial.pdf >>> >>> Have fun :) >>> >>> | >>> | cheers, >>> | alan >>> | _______________________________________________ >>> | freebsd-hackers@freebsd.org mailing list >>> | http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >>> | To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >>> >>> >>> - -- >>> Pietro Cerutti >>> gahr@FreeBSD.org >>> >>> PGP Public Key: >>> http://gahr.ch/pgp >>> >>> -----BEGIN PGP SIGNATURE----- >>> Version: GnuPG v2.0.9 (FreeBSD) >>> >>> iEYEAREKAAYFAkjqnpQACgkQwMJqmJVx945RSwCgoDb0JTr8LSFDB1vpAbGUjb76 >>> ZH0An19HpFVJJTUB5/XnyZc0pIDzgxc3 >>> =6Pdm >>> -----END PGP SIGNATURE----- >>> >> > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From kline at thought.org Tue Oct 7 19:33:26 2008 From: kline at thought.org (Gary Kline) Date: Tue Oct 7 19:33:32 2008 Subject: From konsole, konq: In-Reply-To: <20081007180115.175ee89b@gumby.homeunix.com.> References: <20081007161330.GA43881@thought.org> <20081007180115.175ee89b@gumby.homeunix.com.> Message-ID: <20081007193316.GA49861@thought.org> On Tue, Oct 07, 2008 at 06:01:15PM +0100, RW wrote: > On Tue, 7 Oct 2008 09:13:33 -0700 > Gary Kline wrote: > > > > > Here's what I get con my knosole: > > > > > > p8 1:20 [5112] konqueror > > konqueror: WARNING: Can't > > open /usr/home/kline/.kde/share/apps/konqueror/bookmarks.xml kio > > (KMimeType): WARNING: KServiceType::offers : servicetype not found > > kio (KMimeType): WARNING: KServiceType::offers : servicetype not > > found p8 9:00 [5113] konqueror > > Is ~/.kde from kde 3.x? If it is I'd try renaming it and starting over. > > When you use KDE 4 at the same time as KDE 3, it uses a separate .kde4 > directory. I don't see any .kde4 dir. I finally did move .kde to .KDE.OLD I didn't want to lose all my bookmarks and mail files... I'll try again: see what happens. > _______________________________________________ > 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 From datahead4 at gmail.com Tue Oct 7 19:43:07 2008 From: datahead4 at gmail.com (Matt) Date: Tue Oct 7 19:43:14 2008 Subject: From konsole, konq: In-Reply-To: <20081007193316.GA49861@thought.org> References: <20081007161330.GA43881@thought.org> <20081007180115.175ee89b@gumby.homeunix.com.> <20081007193316.GA49861@thought.org> Message-ID: On Tue, Oct 7, 2008 at 2:33 PM, Gary Kline wrote: > On Tue, Oct 07, 2008 at 06:01:15PM +0100, RW wrote: >> On Tue, 7 Oct 2008 09:13:33 -0700 >> Gary Kline wrote: >> >> > >> > Here's what I get con my knosole: >> > >> > >> > p8 1:20 [5112] konqueror >> > konqueror: WARNING: Can't >> > open /usr/home/kline/.kde/share/apps/konqueror/bookmarks.xml kio >> > (KMimeType): WARNING: KServiceType::offers : servicetype not found >> > kio (KMimeType): WARNING: KServiceType::offers : servicetype not >> > found p8 9:00 [5113] konqueror >> >> Is ~/.kde from kde 3.x? If it is I'd try renaming it and starting over. >> >> When you use KDE 4 at the same time as KDE 3, it uses a separate .kde4 >> directory. > > > I don't see any .kde4 dir. I finally did move .kde to .KDE.OLD > I didn't want to lose all my bookmarks and mail files... > > I'll try again: see what happens. > Also, make sure your path includes the /usr/local/kde4/bin directory, preferably listed before /usr/local/bin if you have KDE3 installed as well. Matt From kline at thought.org Tue Oct 7 19:52:50 2008 From: kline at thought.org (Gary Kline) Date: Tue Oct 7 19:53:00 2008 Subject: From konsole, konq: In-Reply-To: <20081007180115.175ee89b@gumby.homeunix.com.> References: <20081007161330.GA43881@thought.org> <20081007180115.175ee89b@gumby.homeunix.com.> Message-ID: <20081007195243.GB49861@thought.org> On Tue, Oct 07, 2008 at 06:01:15PM +0100, RW wrote: > On Tue, 7 Oct 2008 09:13:33 -0700 > Gary Kline wrote: > > > > > Here's what I get con my knosole: > > > > > > p8 1:20 [5112] konqueror > > konqueror: WARNING: Can't > > open /usr/home/kline/.kde/share/apps/konqueror/bookmarks.xml kio > > (KMimeType): WARNING: KServiceType::offers : servicetype not found > > kio (KMimeType): WARNING: KServiceType::offers : servicetype not > > found p8 9:00 [5113] konqueror > > Is ~/.kde from kde 3.x? If it is I'd try renaming it and starting over. > > When you use KDE 4 at the same time as KDE 3, it uses a separate .kde4 > directory. Hmm. I mv'd .kde elsewhere. Also /tmp and /var/tmp are free. But" p8 12:49 [5125] kontact just hangs. Any ideas? -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org From kirk at strauser.com Tue Oct 7 19:59:03 2008 From: kirk at strauser.com (Kirk Strauser) Date: Tue Oct 7 19:59:09 2008 Subject: Coretemp seems to be off quite a bit In-Reply-To: <20081007175124.GA54581@icarus.home.lan> References: <20081007132517.GA31229@melon.esperance-linux.co.uk> <20081007132832.GA49914@icarus.home.lan> <20081007173315.GA35592@melon.esperance-linux.co.uk> <20081007175124.GA54581@icarus.home.lan> Message-ID: On Oct 7, 2008, at 12:51 PM, Jeremy Chadwick wrote: > It would help if we could see some of his sysctl date, specifically > these: > > debug.cpufreq.* > dev.cpufreq.[0-9].* > dev.cpu.[0-9].freq > dev.cpu.[0-9].freq_levels $ sysctl debug.cpufreq debug.cpufreq.verbose: 0 debug.cpufreq.lowest: 0 $ sysctl dev.cpufreq.0 dev.cpufreq.0.%driver: cpufreq dev.cpufreq.0.%parent: cpu0 $ sysctl dev.cpufreq.1 dev.cpufreq.1.%driver: cpufreq dev.cpufreq.1.%parent: cpu1 $ sysctl dev.cpu | grep freq dev.cpu.0.freq: 2984 dev.cpu.0.freq_levels: 2984/-1 2611/-1 2238/-1 1865/-1 1492/-1 1119/-1 746/-1 373/-1 > For all we know, it could be the heatsink/fan is not properly mounted, > or there's too much thermal paste. Who knows. I remounted the heatsink (side note: curse you, Intel - was that meant to be funny?), and didn't apply a single bit of paste other than what came on it. I don't have the ability to boot Windows on this system, or at least not without some pain (it's a server with no extra drive space I could readily set aside to install it, for starters). Since fiddling with the heatsink, the temperature was down to 45C at boot. I did another "make -j4 buildworld" and it got up to 58C. Since killing that build, it's slowly working its way back into the high 40s (currently bouncing between 48 and 49). -- Kirk Strauser From kline at thought.org Tue Oct 7 20:17:48 2008 From: kline at thought.org (Gary Kline) Date: Tue Oct 7 20:17:55 2008 Subject: From konsole, konq: In-Reply-To: References: <20081007161330.GA43881@thought.org> <20081007180115.175ee89b@gumby.homeunix.com.> <20081007193316.GA49861@thought.org> Message-ID: <20081007201737.GA50884@thought.org> On Tue, Oct 07, 2008 at 02:43:05PM -0500, Matt wrote: > On Tue, Oct 7, 2008 at 2:33 PM, Gary Kline wrote: > > On Tue, Oct 07, 2008 at 06:01:15PM +0100, RW wrote: > >> On Tue, 7 Oct 2008 09:13:33 -0700 > >> Gary Kline wrote: > >> > >> > > >> > Here's what I get con my knosole: > >> > > >> > > >> > p8 1:20 [5112] konqueror > >> > konqueror: WARNING: Can't > >> > open /usr/home/kline/.kde/share/apps/konqueror/bookmarks.xml kio > >> > (KMimeType): WARNING: KServiceType::offers : servicetype not found > >> > kio (KMimeType): WARNING: KServiceType::offers : servicetype not > >> > found p8 9:00 [5113] konqueror > >> > >> Is ~/.kde from kde 3.x? If it is I'd try renaming it and starting over. > >> > >> When you use KDE 4 at the same time as KDE 3, it uses a separate .kde4 > >> directory. > > > > > > I don't see any .kde4 dir. I finally did move .kde to .KDE.OLD > > I didn't want to lose all my bookmarks and mail files... > > > > I'll try again: see what happens. > > > Also, make sure your path includes the /usr/local/kde4/bin directory, > preferably listed before /usr/local/bin if you have KDE3 installed as > well. > > Matt This is getting stranger and stranger. I did a pkg_delete -f kde, but / p8 13:08 [5146] which konqueror /usr/local/bin/konqueror ls -ls konqueror in /usr/local/kde4/bin gives me: 8 -rwxr-xr-x 1 root wheel 7541 Oct 3 22:39 konqueror p8 13:12 [5151] lt `which konqueror` -r-xr-xr-x 1 root wheel 4028 Oct 3 19:38 /usr/local/bin/konqueror So this tells me I should not have been in kde while doing my pkg_delete. Any ideas how to get rid of all the kde3 binaries? i means automagically:) gary -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org From fbsd06 at mlists.homeunix.com Tue Oct 7 20:33:21 2008 From: fbsd06 at mlists.homeunix.com (RW) Date: Tue Oct 7 20:33:29 2008 Subject: From konsole, konq: In-Reply-To: <20081007201737.GA50884@thought.org> References: <20081007161330.GA43881@thought.org> <20081007180115.175ee89b@gumby.homeunix.com.> <20081007193316.GA49861@thought.org> <20081007201737.GA50884@thought.org> Message-ID: <20081007213302.778c80a7@gumby.homeunix.com.> On Tue, 7 Oct 2008 13:17:37 -0700 Gary Kline wrote: > > This is getting stranger and stranger. I did a pkg_delete -f > kde, but / > p8 13:08 [5146] which konqueror > /usr/local/bin/konqueror That's normal, the kde3 port is just a metaport - a dummy port that that causes a collection ports to be built as dependencies. Try using pkg_cutleaves. From freebsd-questions-local at be-well.ilk.org Tue Oct 7 20:42:10 2008 From: freebsd-questions-local at be-well.ilk.org (Lowell Gilbert) Date: Tue Oct 7 20:42:23 2008 Subject: detecting monitor's sync and refresh rate? In-Reply-To: <20081007115504.GA78610@mech-cluster238.men.bris.ac.uk> (Anton Shterenlikht's message of "Tue\, 7 Oct 2008 12\:55\:04 +0100") References: <20081007115504.GA78610@mech-cluster238.men.bris.ac.uk> Message-ID: <44abdgf880.fsf@be-well.ilk.org> Anton Shterenlikht writes: > I've a monitor (Mobi M15MPC) with no docs. > I've searched the net but cannot find any info on sync and refresh rate for it. > I've done Xorg -configure, but testing with X -config xorg.conf.new > shows screen shifted to the side and very nasty blinking, from which > I deduced that perhaps I need to specify correct sync, refresh and mode. > > Are there any commands to get sync and refresh from the monitor? If X can't probe the monitor for its settings, I wouldn't trust any other method of probing it either. Not to overlook the obvious: are the settings written on the back of the monitor? You can always try Google... -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ From mailing_list at orange.nl Tue Oct 7 20:42:11 2008 From: mailing_list at orange.nl (Aniruddha) Date: Tue Oct 7 20:42:24 2008 Subject: Can't get soundcard to work Message-ID: <1223412136.3966.10.camel@debian> I've read the "Setting Up the Sound Card" part in the FreeBSD handbook unfortunately I can't get my Intel HDA card to work. Any ideas would be appreciated! Here's some relevant output: sndstat: > FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386) > Installed devices: > pcm0: at memory 0xff9ec000 irq 17 kld snd_hda [20080420_0052] [MPSAFE] (mixer only) > pcm1: at memory 0xffafc000 irq 19 kld snd_hda [20080420_0052] [MPSAFE] (1p:1v/1r:1v channels duplex) from dmesg: > pcm1: mem 0xffafc000-0xffafffff irq 19 at device 27.0 on pci0 > pcm1: [ITHREAD] > pcib2: irq 16 at device 28.0 on pci0 > pci4: on pcib2 > pcib3: irq 19 at device 28.3 on pci0 > pci3: on pcib3 cat dmesg > /dev/dsp > su: /dev/dsp: Operation not supported from pciconf: > pcm1@pci0:0:27:0: class=0x040300 card=0x81d81043 chip=0x27d88086 rev=0x01 hdr=0x00 > vendor = 'Intel Corporation' > device = '82801G (ICH7 Family) High Definition Audio' > class = multimedia > vgapci0@pci0:5:0:0: class=0x030000 card=0xe630174b chip=0x95051002 rev=0x00 hdr=0x00 > vendor = 'ATI Technologies Inc' > class = display > subclass = VGA > pcm0@pci0:5:0:1: class=0x040300 card=0xaa18174b chip=0xaa181002 rev=0x00 hdr=0x00 > vendor = 'ATI Technologies Inc' > class = multimedia -- Regards, Aniruddha From wtf.jlaine at gmail.com Tue Oct 7 20:53:02 2008 From: wtf.jlaine at gmail.com (Jeff Laine) Date: Tue Oct 7 20:53:10 2008 Subject: Sound troubles with high res modes in console Message-ID: <20081007205244.GA2133@a3500l.bsd.loc> Hello, everybody! The system is ASUS "A3500L", old laptop on Intel Montara platform, running 7.1-PRERELEASE I have one trouble while listening music with console players. Sound became crippled when I have output to STDOUT or whenever I use text-scrolling in editors or switching between consoles. This trouble appeared right after I changed vidcontrol setting to 1024x786 mode. In order to get VESA modes I recompilled my kernel with these additional options: >cat /sys/i386/conf/CUSTOM # not sure if I should use these actually :) ... device drm device i915drm device acpi_video options SC_PIXEL_MODE options VESA ... Also I put 'allscreens_flags="-i mode MODE_279"' in /etc/rc.conf to have 1024x768 mode in my consoles. >vidcontrol -i mode ... 277 (0x115) 0x0000000f G 800x600x32 1 8x16 0xa0000 64k 64k 0xf0000000 32576k 279 (0x117) 0x0000000f G 1024x768x16 1 8x16 0xa0000 64k 64k 0xf0000000 32576k 280 (0x118) 0x0000000f G 1024x768x32 1 8x16 0xa0000 64k 64k 0xf0000000 32576k I'm loading sound module for my Intel ICH4 chipset: >cat /boot/loader.conf acpi_video_load="YES" snd_ich_load="YES" # Intel ICH > kldstat kernel snd_ich.ko sound.ko acpi_video.ko acpi.ko atapicam.ko pflog.ko pf.ko logo_saver.ko When I'm switching vidcontrol mode back to default setting, playback becames smooth again. So, is there any way to get smooth playback in console with high res settings? Any advises will be much appreciated. Thanks! -- Best regards, Jeff _ ( ) ASCII ribbon campaign X - against HTML, vCards and / \ - proprietary attachments in e-mail -------------- next part -------------- cpu I686_CPU ident CUSTOM makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols options SCHED_ULE # ULE scheduler options PREEMPTION # Enable kernel thread preemption options INET # InterNETworking options INET6 # IPv6 communications protocols options SCTP # Stream Control Transmission Protocol options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options UFS_GJOURNAL # Enable gjournal-based UFS journaling options MD_ROOT # MD is a potential root device options NFSCLIENT # Network Filesystem Client options NFSSERVER # Network Filesystem Server options NFSLOCKD # Network Lock Manager options NFS_ROOT # NFS usable as /, requires NFSCLIENT options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS # Pseudo-filesystem framework options GEOM_PART_GPT # GUID Partition Tables. options COMPAT_43TTY # BSD 4.3 TTY compat [KEEP THIS!] options COMPAT_FREEBSD4 # Compatible with FreeBSD4 options COMPAT_FREEBSD5 # Compatible with FreeBSD5 options COMPAT_FREEBSD6 # Compatible with FreeBSD6 options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI options KTRACE # ktrace(1) support options STACK # stack(9) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options KBD_INSTALL_CDEV # install a CDEV entry in /dev options ADAPTIVE_GIANT # Giant mutex is adaptive. options STOP_NMI # Stop CPUS using NMI instead of IPI options AUDIT # Security event auditing device apic # I/O APIC device cpufreq device eisa device pci device fdc device ata device atadisk # ATA disk drives device ataraid # ATA RAID drives device atapicd # ATAPI CDROM drives device atapifd # ATAPI floppy drives device atapist # ATAPI tape drives options ATA_STATIC_ID # Static device numbering device scbus # SCSI bus (required for SCSI) device ch # SCSI media changers device da # Direct Access (disks) device sa # Sequential Access (tape etc) device cd # CD device pass # Passthrough device (direct SCSI access) device ses # SCSI Environmental Services (and SAF-TE) device atkbdc # AT keyboard controller device atkbd # AT keyboard device psm # PS/2 mouse device kbdmux # keyboard multiplexer device vga # VGA video card driver device splash # Splash screen and screen saver support device sc device agp # support several AGP chipsets device drm device i915drm options SC_PIXEL_MODE options VESA device ichwd device acpi_video device pmtimer device cbb # cardbus (yenta) bridge device pccard # PC Card (16-bit) bus device cardbus # CardBus (32-bit) bus device sio # 8250, 16[45]50 based serial ports device uart # Generic UART driver device ppc device ppbus # Parallel port bus (required) device lpt # Printer device plip # TCP/IP over parallel device ppi # Parallel port interface device device miibus # MII bus support device rl # RealTek 8129/8139 device cs # Crystal Semiconductor CS89x0 NIC device wlan # 802.11 support device wlan_wep # 802.11 WEP support device wlan_ccmp # 802.11 CCMP support device wlan_tkip # 802.11 TKIP support device wlan_amrr # AMRR transmit rate control algorithm device wlan_scan_ap # 802.11 AP mode scanning device wlan_scan_sta # 802.11 STA mode scanning device an # Aironet 4500/4800 802.11 wireless NICs. device ath # Atheros pci/cardbus NIC's device ath_hal # Atheros HAL (Hardware Access Layer) device ath_rate_sample # SampleRate tx rate control for ath device awi # BayStack 660 and others device ral # Ralink Technology RT2500 wireless NICs. device wi # WaveLAN/Intersil/Symbol 802.11 wireless NICs. device wl # Older non 802.11 Wavelan wireless NIC. device loop # Network loopback device random # Entropy device device ether # Ethernet support device sl # Kernel SLIP device ppp # Kernel PPP device tun # Packet tunnel. device pty # Pseudo-ttys (telnet etc) device md # Memory "disks" device gif # IPv6 and IPv4 tunneling device faith # IPv6-to-IPv4 relaying (translation) device firmware # firmware assist module device bpf # Berkeley packet filter device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface device ehci # EHCI PCI->USB interface (USB 2.0) device usb # USB Bus (required) device ugen # Generic device uhid # "Human Interface Devices" device ukbd # Keyboard device ulpt # Printer device umass # Disks/Mass storage - Requires scbus and da device ums # Mouse device ural # Ralink Technology RT2500USB wireless NICs device rum # Ralink Technology RT2501USB wireless NICs device urio # Diamond Rio 500 MP3 player device uscanner # Scanners device ucom # Generic com ttys device uark # Technologies ARK3116 based serial adapters device ubsa # Belkin F5U103 and compatible serial adapters device ubser # BWCT console serial adapters device uftdi # For FTDI usb serial adapters device uipaq # Some WinCE based devices device uplcom # Prolific PL-2303 serial adapters device uslcom # SI Labs CP2101/CP2102 serial adapters device uvisor # Visor and Palm devices device uvscom # USB serial support for DDI pocket's PHS device aue # ADMtek USB Ethernet device axe # ASIX Electronics USB Ethernet device cdce # Generic USB over Ethernet device cue # CATC USB Ethernet device kue # Kawasaki LSI USB Ethernet device rue # RealTek RTL8150 USB Ethernet device firewire # FireWire bus code device sbp # SCSI over FireWire (Requires scbus and da) device fwe # Ethernet over FireWire (non-standard!) device fwip # IP over FireWire (RFC 2734,3146) device dcons # Dumb console driver device dcons_crom # Configuration ROM for dcons -------------- next part -------------- Copyright (c) 1992-2008 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 7.1-PRERELEASE #0: Wed Oct 1 21:01:14 MSD 2008 root@a3500l.bsd.loc:/usr/obj/usr/src/sys/CUSTOM Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Celeron(R) M processor 1.60GHz (1600.06-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6d8 Stepping = 8 Features=0xafe9fbff real memory = 1576271872 (1503 MB) avail memory = 1527959552 (1457 MB) ACPI APIC Table: ioapic0: Changing APIC ID to 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ichwd module loaded ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 5df00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 0.1 (no driver attached) pci0: at device 0.3 (no driver attached) vgapci0: port 0xdc00-0xdc07 mem 0xf0000000-0xf7ffffff,0xfeb80000-0xfebfffff irq 16 at device 2.0 on pci0 agp0: on vgapci0 agp0: detected 32636k stolen memory agp0: aperture size is 128M acpi_video0: on vgapci0 drm0: on vgapci0 info: [drm] AGP at 0xf0000000 128MB info: [drm] Initialized i915 1.5.0 20060119 vgapci1: mem 0xe8000000-0xefffffff,0xfea80000-0xfeafffff at device 2.1 on pci0 drm1: on vgapci1 info: [drm] AGP at 0xf0000000 128MB info: [drm] Initialized i915 1.5.0 20060119 uhci0: port 0xd480-0xd49f irq 16 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xd800-0xd81f irq 19 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xd880-0xd89f irq 18 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: on uhci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered ehci0: mem 0xfeb7fc00-0xfeb7ffff irq 23 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: on usb3 uhub3: 6 ports with 6 removable, self powered pcib1: at device 30.0 on pci0 pci1: on pcib1 rl0: port 0xc800-0xc8ff mem 0xfe8ff400-0xfe8ff4ff irq 18 at device 0.0 on pci1 miibus0: on rl0 rlphy0: PHY 0 on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:15:f2:80:71:14 rl0: [ITHREAD] cbb0: at device 5.0 on pci1 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 cbb0: [ITHREAD] cbb1: at device 5.1 on pci1 cardbus1: on cbb1 pccard1: <16-bit PCCard bus> on cbb1 cbb1: [ITHREAD] fwohci0: mem 0xfe8ff800-0xfe8fffff irq 19 at device 5.2 on pci1 fwohci0: [FILTER] fwohci0: OHCI version 1.0 (ROM=1) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:e0:18:00:03:47:92:ea fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 sbp0: on firewire0 dcons_crom0: on firewire0 dcons_crom0: bus_addr 0x1ad0000 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:e0:18:47:92:ea fwe0: Ethernet address: 02:e0:18:47:92:ea fwip0: on firewire0 fwip0: Firewire address: 00:e0:18:00:03:47:92:ea @ 0xfffe00000000, S400, maxrec 2048 fwohci0: Initiate bus reset fwohci0: BUS reset fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] pcm0: port 0xe000-0xe0ff,0xe100-0xe13f at device 31.5 on pci0 pcm0: [ITHREAD] pcm0: pci0: at device 31.6 (no driver attached) acpi_button0: on acpi0 acpi_lid0: on acpi0 acpi_tz0: on acpi0 acpi_acad0: on acpi0 battery0: 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 Generic PS/2 mouse, device ID 0 sio0: configured irq 3 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: configured irq 3 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: port 0x2f8-0x2ff irq 3 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] cpu0: on acpi0 p4tcc0: on cpu0 ichss0: on cpu0 ichss0: enabling SpeedStep support ichwd0: on isa0 ichwd0: Intel 82801DBM watchdog timer (ICH4 or equivalent) pmtimer0 on isa0 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/16 bytes threshold ppbus0: on ppc0 ppbus0: [ITHREAD] plip0: on ppbus0 plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ums0: on uhub0 ums0: 3 buttons and Z dir. Timecounter "TSC" frequency 1600064646 Hz quality 800 Timecounters tick every 1.000 msec firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) ad0: 152627MB at ata0-master UDMA100 acd0: DVDR at ata1-master UDMA33 cardbus1: at device 0.0 (no driver attached) cardbus1: at device 0.1 (no driver attached) acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x40 0x00 0x01 acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 sks=0x40 0x00 0x01 cd0 at ata1 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: cd present [109696 x 2048 byte records] Trying to mount root from ufs:/dev/ad0s3a From yuri at rawbw.com Tue Oct 7 20:54:16 2008 From: yuri at rawbw.com (Yuri) Date: Tue Oct 7 20:54:23 2008 Subject: Strange memory/cpu behavior Message-ID: <48EBCC75.1040908@rawbw.com> I have STABLE-71 machine with 2GB memory and single 2GHz AMD3200 CPU. There is one large active process slowly growing in memory from 500MB to 1300MB, not reading or writing any files. There are many dormant processes almost not running at all. Swap size remains constant (185MB). Total physical memory used remains 2GB (whole memory used). ps shows that the active process only takes 15-18% CPU. But total CPU consumption on the machine is 100% (user). Since the active process grows but swap+physical memory doesn't grow I assume that OS pushes out other processes code since it's unchanged on disk. Why such operation is so expensive and takes 80-85% CPU? Why total of all user processes CPU consumption is ~20% but total CPU(user) consumption shows as 100%? Shouldn't they be the same. Yuri From stevefranks at ieee.org Tue Oct 7 20:56:39 2008 From: stevefranks at ieee.org (Steve Franks) Date: Tue Oct 7 20:56:47 2008 Subject: how to break portsnap Message-ID: <539c60b90810071356g1d07d339yeaa5bc6f20b14109@mail.gmail.com> I've googled high & low but I cannot find much other that "this cannot happen" replies. I've got a dual boot to amd64 and i386. The amd64 hasn't been able to portsnap fetch or cron since march. The i386 I just installed, and it portsnap's fine, so it's not a firewall or related issue. I've checked my key and it looks ok. What am I missing? Best, Steve dystant# portsnap fetch Looking up portsnap.FreeBSD.org mirrors... 3 mirrors found. Fetching snapshot tag from portsnap1.FreeBSD.org... done. Fetching snapshot metadata... done. Updating from Mon Mar 3 07:50:14 MST 2008 to Tue Oct 7 12:43:25 MST 2008. Fetching 0 metadata patches. done. Applying metadata patches... done. Fetching 0 metadata files... done. Fetching 12365 patches.. done. Applying patches... done. Fetching 13708 new ports or files... /usr/sbin/portsnap: cannot open e53d7ea3f6fbc2e6a87a1f194ea623fc6b27c74d9aecfd61e0d765e86d861ad5.gz: No such file or directory snapshot is corrupt. dystant# From cpghost at cordula.ws Tue Oct 7 20:59:29 2008 From: cpghost at cordula.ws (cpghost) Date: Tue Oct 7 20:59:36 2008 Subject: stupid xfce clock question In-Reply-To: <48E9CEB8.4090406@gmail.com> References: <48E9CEB8.4090406@gmail.com> Message-ID: <20081007210002.GB961@phenom.cordula.ws> On Mon, Oct 06, 2008 at 04:39:20AM -0400, Aryeh M. Friedman wrote: > I work remotely with a company that is across the international date > line from me and I can do the math in my head but want to know if it is > possible to add a clock to my xfce panel that shows the time their (and > keep the one that has my time on it) It's not as elegant as an additional clocklet in a task bar, but how about running multiple instances of xclock instead? #!/bin/sh # tzxclock -- run a timezoned instance of xclock env TZ=$1 xclock -digital -twentyfour -title $1 That wouldn't depend on the specifics of the window manager, and can still be customized with multiple flags like -fn, -fg, -bg, -geometry, -strftime etc... Regards, -cpghost. -- Cordula's Web. http://www.cordula.ws/ From martin at dc.cis.okstate.edu Tue Oct 7 21:15:25 2008 From: martin at dc.cis.okstate.edu (Martin McCormick) Date: Tue Oct 7 21:15:32 2008 Subject: Strange Core Dump Error Message on a FreeBSD6.3 System Message-ID: <200810072115.m97LFOpA087733@dc.cis.okstate.edu> I am running some C code I wrote on a couple of FreeBSD6.3 systems, one of which has never exhibited this message and the other has now done it twice in about 6 months. The error is as follows: mem.c:877: INSIST(ctx->stats[i].gets == 0U) failed. Abort trap (core dumped) Something obviously is wrong regarding memory allocation but why this one system? Is there anything I can look for in netstat -m that might help me solve the puzzle? Thanks. Martin McCormick WB5AGZ Stillwater, OK Systems Engineer OSU Information Technology Department Telecommunications Services Group From kline at thought.org Tue Oct 7 21:15:47 2008 From: kline at thought.org (Gary Kline) Date: Tue Oct 7 21:15:53 2008 Subject: From konsole, konq: In-Reply-To: <20081007213302.778c80a7@gumby.homeunix.com.> References: <20081007161330.GA43881@thought.org> <20081007180115.175ee89b@gumby.homeunix.com.> <20081007193316.GA49861@thought.org> <20081007201737.GA50884@thought.org> <20081007213302.778c80a7@gumby.homeunix.com.> Message-ID: <20081007211541.GA2525@thought.org> On Tue, Oct 07, 2008 at 09:33:02PM +0100, RW wrote: > On Tue, 7 Oct 2008 13:17:37 -0700 > Gary Kline wrote: > > > > > > This is getting stranger and stranger. I did a pkg_delete -f > > kde, but / > > p8 13:08 [5146] which konqueror > > /usr/local/bin/konqueror > > That's normal, the kde3 port is just a metaport - a dummy port that > that causes a collection ports to be built as dependencies. Try using > pkg_cutleaves. Sure, but you'd think the the metaport would have the slew of subport delete everything. Thanks for the tip on cutleaves. > _______________________________________________ > 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 From fbsd06 at mlists.homeunix.com Tue Oct 7 21:17:45 2008 From: fbsd06 at mlists.homeunix.com (RW) Date: Tue Oct 7 21:17:52 2008 Subject: how to break portsnap In-Reply-To: <539c60b90810071356g1d07d339yeaa5bc6f20b14109@mail.gmail.com> References: <539c60b90810071356g1d07d339yeaa5bc6f20b14109@mail.gmail.com> Message-ID: <20081007221731.40cbf5d6@gumby.homeunix.com.> On Tue, 7 Oct 2008 13:56:37 -0700 "Steve Franks" wrote: > I've googled high & low but I cannot find much other that "this cannot > happen" replies. I've got a dual boot to amd64 and i386. The amd64 > hasn't been able to portsnap fetch or cron since march. The i386 I > just installed, and it portsnap's fine, so it's not a firewall or > related issue. I've checked my key and it looks ok. What am I > missing? > >... > Fetching 13708 new ports or files... /usr/sbin/portsnap: cannot open > e53d7ea3f6fbc2e6a87a1f194ea623fc6b27c74d9aecfd61e0d765e86d861ad5.gz: > No such file or directory > snapshot is corrupt. It's pretty self-explanatory, the snapshot is corrupt. delete /var/db/portsnap/* and then start-again by do a "fetch" and "extract". From yuri at rawbw.com Tue Oct 7 21:35:13 2008 From: yuri at rawbw.com (Yuri) Date: Tue Oct 7 21:35:21 2008 Subject: gimp: all output plugins crash Message-ID: <48EBD60F.3090607@rawbw.com> Every time I am trying to save some image all input plugins crash with the message like this: /usr/local/libexec/gimp/2.2/plug-ins/jpeg: fatal error: Segmentation fault: 11 I use gimp-2.4.7,2. I reported the problem to gnome@FreeBSD.org (listed as maintainer) but got no response. How can I reach those who is responsible for the port? Anyone has the same problem? Yuri From freebsd-questions-local at be-well.ilk.org Tue Oct 7 21:39:54 2008 From: freebsd-questions-local at be-well.ilk.org (Lowell Gilbert) Date: Tue Oct 7 21:40:01 2008 Subject: Can't get soundcard to work In-Reply-To: <1223412136.3966.10.camel@debian> (Aniruddha's message of "Tue\, 07 Oct 2008 22\:42\:16 +0200") References: <1223412136.3966.10.camel@debian> Message-ID: <4463o4qe3c.fsf@be-well.ilk.org> Aniruddha writes: > I've read the "Setting Up the Sound Card" part in the FreeBSD handbook > unfortunately I can't get my Intel HDA card to work. Any ideas would be > appreciated! Here's some relevant output: > > sndstat: >> FreeBSD Audio Driver (newpcm: 32bit 2007061600/i386) >> Installed devices: >> pcm0: at memory 0xff9ec000 irq 17 kld snd_hda [20080420_0052] [MPSAFE] (mixer only) >> pcm1: at memory 0xffafc000 irq 19 kld snd_hda [20080420_0052] [MPSAFE] (1p:1v/1r:1v channels duplex) > > from dmesg: >> pcm1: mem 0xffafc000-0xffafffff irq 19 at device 27.0 on pci0 >> pcm1: [ITHREAD] >> pcib2: irq 16 at device 28.0 on pci0 >> pci4: on pcib2 >> pcib3: irq 19 at device 28.3 on pci0 >> pci3: on pcib3 > > cat dmesg > /dev/dsp >> su: /dev/dsp: Operation not supported > > from pciconf: >> pcm1@pci0:0:27:0: class=0x040300 card=0x81d81043 chip=0x27d88086 rev=0x01 hdr=0x00 >> vendor = 'Intel Corporation' >> device = '82801G (ICH7 Family) High Definition Audio' >> class = multimedia > >> vgapci0@pci0:5:0:0: class=0x030000 card=0xe630174b chip=0x95051002 rev=0x00 hdr=0x00 >> vendor = 'ATI Technologies Inc' >> class = display >> subclass = VGA >> pcm0@pci0:5:0:1: class=0x040300 card=0xaa18174b chip=0xaa181002 rev=0x00 hdr=0x00 >> vendor = 'ATI Technologies Inc' >> class = multimedia I think you will need a somewhat recent FreeBSD to support that controller. What version are you running? What drivers have you loaded? snd_driver? -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ From glen.j.barber at gmail.com Tue Oct 7 21:45:08 2008 From: glen.j.barber at gmail.com (Glen Barber) Date: Tue Oct 7 21:45:15 2008 Subject: how to break portsnap In-Reply-To: <539c60b90810071356g1d07d339yeaa5bc6f20b14109@mail.gmail.com> References: <539c60b90810071356g1d07d339yeaa5bc6f20b14109@mail.gmail.com> Message-ID: <4ad871310810071445t4ecd958drc839f5b055525f11@mail.gmail.com> On Tue, Oct 7, 2008 at 4:56 PM, Steve Franks wrote: > I've googled high & low but I cannot find much other that "this cannot > happen" replies. I've got a dual boot to amd64 and i386. The amd64 > hasn't been able to portsnap fetch or cron since march. The i386 I > just installed, and it portsnap's fine, so it's not a firewall or > related issue. I've checked my key and it looks ok. What am I > missing? I've had this problem before, and it turns out it was a bad CPU in my case. I would imagine bad RAM would play a part in this as well. You may want to try to run Memtest. Regards, -- Glen Barber From freebsd-questions-local at be-well.ilk.org Tue Oct 7 21:47:24 2008 From: freebsd-questions-local at be-well.ilk.org (Lowell Gilbert) Date: Tue Oct 7 21:47:31 2008 Subject: Help With [seemingly] Simple Problem In-Reply-To: <19850089.post@talk.nabble.com> (Xenophan's message of "Mon\, 6 Oct 2008 19\:40\:23 -0700 \(PDT\)") References: <19850089.post@talk.nabble.com> Message-ID: <441vysqdqt.fsf@be-well.ilk.org> Xenophan writes: > Alright, this is one of those moments when a normal person is forced to > become terminal typing freak (sorry guys =)) against their will... > > I have a FreeBSD7 server box in my garage that serves the computers on my > network with files. It has been a godsend: 2 1TB SATA drives raid-1'd and I > have a peace of mind that all my files are secure in one place in the house > that has doubled as my office. > > The box has basic non-gui install of FreeBSD7 and I access it through WinSCP > from other boxes around the house. Voila! So easy! > > Well it was until I decided to bring some order to it - sort files in the > right directories. This is usually a snap in XP, but UNIX would not allow > things to be simple I guess: When I want to empty out few folders into > another folder ("DUMP") and there are same files in both folders (one I am > copying from (Downloads) and one I am moving them to(DUMP)) I get an error: > > [HTML]General failure (server should provide error description). > Error code: 4 > Error message from server: Failure > Request code: 18[/HTML] That error is being displayed by a Windows application? I'm guessing you're using Samba on the server, and that there may be more information in the Samba logs. > My guess was that it found similar named files and flipped out only leaving > me the options to skip or abort (I skipped). So I decided to do it through > command line via Putty. Friend of mine suggested this command through > bash:[HTML] mv Downloads/* .[/HTML] Sounds about right. > Effect was the same: I get a polite error notifying me that: : > [HTML]FileName.extension: Directory not empty[/HTML] In future, try to cut and paste the *exact* text from the terminal window (in this case, the Putty window). I'll take a guess, but I'm working in the dark a bit here. Are there any sub-directories in the "Downloads" directory? Do you have the permissions to remove them? Make sure that the user account (the one under which you are executing the command) has write permissions to the directories being modified. > Whoopty do! > > XP would be nice enough to give me options: name of conflicting file; sizes; > options: Abort, Overwrite, Skip > > These options are crucial because some files may have changed and I may want > to rename the file and save it as a newer version while keeping the old one. > I usually find this out by looking at the file sizes. > > Is there a way to do the same from command line? Many. I would recommend using rsync, which is available from ports. Good luck. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/ From Albert.Shih at obspm.fr Tue Oct 7 21:54:35 2008 From: Albert.Shih at obspm.fr (Albert Shih) Date: Tue Oct 7 21:54:42 2008 Subject: gimp: all output plugins crash In-Reply-To: <48EBD60F.3090607@rawbw.com> References: <48EBD60F.3090607@rawbw.com> Message-ID: <20081007215432.GC45938@obspm.fr> Le 07/10/2008 ? 14:35:11-0700, Yuri a ?crit > Every time I am trying to save some image all input plugins crash with > the message like this: > /usr/local/libexec/gimp/2.2/plug-ins/jpeg: fatal error: Segmentation > fault: 11 > > I use gimp-2.4.7,2. > > I reported the problem to gnome@FreeBSD.org (listed as maintainer) but > got no response. > > How can I reach those who is responsible for the port? > Anyone has the same problem? > I'm not a developper, but no I don't have any problem with gimp, everything work fine for me. I use gimp frequently on a FreeBSD 7.1-PRE and gimp never crash. I can say gimp is one of those big applications (firefox, OpenOffice etc.) most stable, never crash. Have you all your ports up2date ? What's version of FreeBSD you running ? Regards. -- Albert SHIH SIO batiment 15 Observatoire de Paris Meudon 5 Place Jules Janssen 92195 Meudon Cedex Heure local/Local time: Mar 7 oct 2008 23:52:17 CEST From stevefranks at ieee.org Tue Oct 7 21:59:47 2008 From: stevefranks at ieee.org (Steve Franks) Date: Tue Oct 7 21:59:54 2008 Subject: how to break portsnap In-Reply-To: <20081007221731.40cbf5d6@gumby.homeunix.com.> References: <539c60b90810071356g1d07d339yeaa5bc6f20b14109@mail.gmail.com> <20081007221731.40cbf5d6@gumby.homeunix.com.> Message-ID: <539c60b90810071459t17b4cd65qc6865472317cfd29@mail.gmail.com> Aaaaaagh! I thought the snapshot was the thing being downloaded! Here I was double-checking my key and the like. I sort of would've expected the process to include overwriting everything local with the new stuff. My mistake, obviously. Sometimes one does need the obvious pointed out to them, thanks. Steve On Tue, Oct 7, 2008 at 2:17 PM, RW wrote: > On Tue, 7 Oct 2008 13:56:37 -0700 > "Steve Franks" wrote: > >> I've googled high & low but I cannot find much other that "this cannot >> happen" replies. I've got a dual boot to amd64 and i386. The amd64 >> hasn't been able to portsnap fetch or cron since march. The i386 I >> just installed, and it portsnap's fine, so it's not a firewall or >> related issue. I've checked my key and it looks ok. What am I >> missing? >> >>... >> Fetching 13708 new ports or files... /usr/sbin/portsnap: cannot open >> e53d7ea3f6fbc2e6a87a1f194ea623fc6b27c74d9aecfd61e0d765e86d861ad5.gz: >> No such file or directory >> snapshot is corrupt. > > It's pretty self-explanatory, the snapshot is corrupt. > > delete /var/db/portsnap/* and then start-again by do a "fetch" and > "extract". > > From kline at thought.org Tue Oct 7 22:05:48 2008 From: kline at thought.org (Gary Kline) Date: Tue Oct 7 22:05:54 2008 Subject: how to connect kde4 to my mail server...?? Message-ID: <20081007220540.GA2753@thought.org> I didn't set up my LAN and the guy who did, didn't explain enough to help me get too far with things-kde3 in /usr/local/bin to everything-kde4 in /usr/local/kde4/bin/* I just got kde4 kmail set up, but it does not see mail on my mail server:: aristotle.thought.org. Anybody help me with this? gary PS: i don't think i have a typo. -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org From rich at math.missouri.edu Tue Oct 7 22:07:59 2008 From: rich at math.missouri.edu (Rich Winkel) Date: Tue Oct 7 22:08:06 2008 Subject: Mathematica fonts (fbsd 7.0, mma 6.03) Message-ID: <20081007220758.GA75561@pencil.math.missouri.edu> Hi, has anyone tried this combination? It seems to have problems dealing with fonts created under mac and windows mathematica. Thanks, Rich From koitsu at FreeBSD.org Tue Oct 7 22:25:31 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Tue Oct 7 22:25:38 2008 Subject: Strange memory/cpu behavior In-Reply-To: <48EBCC75.1040908@rawbw.com> References: <48EBCC75.1040908@rawbw.com> Message-ID: <20081007222528.GA60058@icarus.home.lan> On Tue, Oct 07, 2008 at 01:54:13PM -0700, Yuri wrote: > I have STABLE-71 machine with 2GB memory and single 2GHz AMD3200 CPU. > > There is one large active process slowly growing in memory from 500MB to > 1300MB, not reading or writing any files. > There are many dormant processes almost not running at all. > Swap size remains constant (185MB). Total physical memory used remains > 2GB (whole memory used). > > ps shows that the active process only takes 15-18% CPU. But total CPU > consumption on the machine is 100% (user). > > Since the active process grows but swap+physical memory doesn't grow I > assume that OS pushes out other processes code since it's unchanged on > disk. > > Why such operation is so expensive and takes 80-85% CPU? > Why total of all user processes CPU consumption is ~20% but total > CPU(user) consumption shows as 100%? Shouldn't they be the same. Regarding the "memory bloat", what field in top(1) are you basing this on? -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From koitsu at FreeBSD.org Tue Oct 7 22:26:55 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Tue Oct 7 22:27:02 2008 Subject: Strange Core Dump Error Message on a FreeBSD6.3 System In-Reply-To: <200810072115.m97LFOpA087733@dc.cis.okstate.edu> References: <200810072115.m97LFOpA087733@dc.cis.okstate.edu> Message-ID: <20081007222652.GB60058@icarus.home.lan> On Tue, Oct 07, 2008 at 04:15:24PM -0500, Martin McCormick wrote: > I am running some C code I wrote on a couple of > FreeBSD6.3 systems, one of which has never exhibited this > message and the other has now done it twice in about 6 months. > The error is as follows: > > mem.c:877: INSIST(ctx->stats[i].gets == 0U) failed. > Abort trap (core dumped) > > Something obviously is wrong regarding memory allocation > but why this one system? > > Is there anything I can look for in netstat -m that > might help me solve the puzzle? > > Thanks. Try freebsd-hackers for this sort of question. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From craig001 at lerwick.hopto.org Tue Oct 7 22:33:48 2008 From: craig001 at lerwick.hopto.org (Craig Butler) Date: Tue Oct 7 22:33:54 2008 Subject: adding a slice to gmirror instead of a whole disk, will it work? Message-ID: <1223418804.3361.3.camel@main.lerwick.hopto.org> Hi Guys Will adding a slice to a gmirror instead of a whole disk work? The slice is big enough to accommodate the old disk. Thanks Craig B From walt at wump.org Tue Oct 7 23:40:53 2008 From: walt at wump.org (Walt Pawley) Date: Tue Oct 7 23:41:00 2008 Subject: Coretemp seems to be off quite a bit In-Reply-To: References: <20081007132517.GA31229@melon.esperance-linux.co.uk> <20081007132832.GA49914@icarus.home.lan> <20081007173315.GA35592@melon.esperance-linux.co.uk> <20081007175124.GA54581@icarus.home.lan> Message-ID: >On Oct 7, 2008, at 12:51 PM, Jeremy Chadwick wrote: >... >I remounted the heatsink (side note: curse you, Intel - was that meant >to be funny?), and didn't apply a single bit of paste other than what >came on it. FWIW: one needs to be careful with the application of heat sink "paste" if one doesn't want to do more harm than good. A very many years ago, when I was young enough to be a practicing engineer, National Semiconductor published some notes about various component to heat sink mounting methodologies. There were two results that stood out. First, using too much heat sink compound is worse than using nothing at all. The reason is that metal to metal is quite good and the proper application of of compound should only just fill the voids where the two "flat" surfaces don't touch. Second, metal to metal is quite good - as evidenced by a very large jump in heat conductivity when the component was surface soldered to the heat sink. -- Walter M. Pawley Wump Research & Company 676 River Bend Road, Roseburg, OR 97471 541-672-8975 From yuri at rawbw.com Tue Oct 7 23:43:12 2008 From: yuri at rawbw.com (Yuri) Date: Tue Oct 7 23:43:18 2008 Subject: Strange memory/cpu behavior In-Reply-To: <20081007222528.GA60058@icarus.home.lan> References: <48EBCC75.1040908@rawbw.com> <20081007222528.GA60058@icarus.home.lan> Message-ID: <48EBF40D.5050807@rawbw.com> Jeremy Chadwick wrote: > Regarding the "memory bloat", what field in top(1) are you basing this > on? > For the total CPU usage I used CPU: 100.0% user Active... all others were zeros. For the process CPU I looked at WCPU. Yuri From freebsd at yourprofit.org Wed Oct 8 00:14:23 2008 From: freebsd at yourprofit.org (Soeren Todt) Date: Wed Oct 8 00:14:38 2008 Subject: something wrong with freebsd-current maillist? In-Reply-To: <4715.10.202.77.103.1179582505.squirrel@webmail.superhero.nl> References: <4715.10.202.77.103.1179582505.squirrel@webmail.superhero.nl> Message-ID: Hi, I unsubscribed - and am back again. Another try to unsubscribe does not work. Cant log in on the Webtool, do not get an answer via mail. Whats going on? Regards sworn ----- Original Message ----- From: "Gelsema, P (Patrick) - FreeBSD" To: Cc: ; Sent: Saturday, May 19, 2007 3:48 PM Subject: something wrong with freebsd-current maillist? > Hi, > > I sent about an hour ago an email to the freebsd-current maillinglist. > This email has not yet arrived to the list, I can see the email leaving my > mailserver and being delivered to one of the freebsd boxes but after that > it seems stuck. > Also when I look at the archives the last message date is Wed May 16 > 20:06:09 UTC 2007. > > I got an issue with the current that I cannot make update anymore. I get > the following error: /libexec/ld-elf.so.1: /lib/libthr.so.2: unsupported > file layout. > > I tried rebuilding world, installing cvsup from ports but both failed. Any > pointers appreciated. > > hulk# uname -a > FreeBSD hulk.superhero.nl 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Fri May 18 > 17:10:44 CEST 2007 > admin@hulk.superhero.nl:/usr/obj/usr/src/sys/GENERIC amd64 > hulk# pwd > /usr/src > hulk# make update > -------------------------------------------------------------- >>>> Running /usr/bin/csup > -------------------------------------------------------------- > /libexec/ld-elf.so.1: /lib/libthr.so.2: unsupported file layout > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > hulk# > > Rgds, > > Patrick > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > From kline at thought.org Wed Oct 8 03:19:38 2008 From: kline at thought.org (Gary Kline) Date: Wed Oct 8 03:19:44 2008 Subject: question about "sound-juicer" Message-ID: <20081008031929.GA12117@thought.org> Guys, There's a very useful audio app called "sound-juicer"; I have it installed but whenever I try to use it, a popup warns: "Could not read the CD\n Sound juicer could not access the CD-ROM Device '1,1,0' Reason: No such file or directory" I've got two CD/DVD optical drives; both are correctly configured in /etc/fstab and in /media and in my home directory. I'm stuck. Any ideas on what's wrong? thanks in advance, gary -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org From koitsu at FreeBSD.org Wed Oct 8 04:04:26 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Wed Oct 8 04:04:36 2008 Subject: Strange memory/cpu behavior In-Reply-To: <48EBF40D.5050807@rawbw.com> References: <48EBCC75.1040908@rawbw.com> <20081007222528.GA60058@icarus.home.lan> <48EBF40D.5050807@rawbw.com> Message-ID: <20081008040420.GA66117@icarus.home.lan> On Tue, Oct 07, 2008 at 04:43:09PM -0700, Yuri wrote: > Jeremy Chadwick wrote: >> Regarding the "memory bloat", what field in top(1) are you basing this >> on? >> > > For the total CPU usage I used > CPU: 100.0% user Active... all others were zeros. > For the process CPU I looked at WCPU. I'm a little confused. I was mainly referring to your statement: "There is one large active process slowly growing in memory from 500MB to 1300MB, not reading or writing any files." What field in top(1) were you looking at to determine this kind of growth? -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From yuri at rawbw.com Wed Oct 8 04:10:10 2008 From: yuri at rawbw.com (Yuri) Date: Wed Oct 8 04:10:16 2008 Subject: Strange memory/cpu behavior In-Reply-To: <20081008040420.GA66117@icarus.home.lan> References: <48EBCC75.1040908@rawbw.com> <20081007222528.GA60058@icarus.home.lan> <48EBF40D.5050807@rawbw.com> <20081008040420.GA66117@icarus.home.lan> Message-ID: <48EC329F.9070902@rawbw.com> Jeremy Chadwick wrote: > I'm a little confused. I was mainly referring to your statement: > > "There is one large active process slowly growing in memory from 500MB > to 1300MB, not reading or writing any files." > > What field in top(1) were you looking at to determine this kind of > growth? > Sorry, I misunderstood the question first. Memory is taken from the SIZE column, but RES is always very close. Yuri From on at cs.ait.ac.th Wed Oct 8 04:17:01 2008 From: on at cs.ait.ac.th (Olivier Nicole) Date: Wed Oct 8 04:17:09 2008 Subject: Script works fine from CLI, but not when Cron'd In-Reply-To: <720051dc0810070228o68f0a67bx8cab7869ace8269f@mail.gmail.com> (jamesoff@gmail.com) References: <003001c9285d$f2a3a410$d7eaec30$@wakefield.sch.uk> <720051dc0810070228o68f0a67bx8cab7869ace8269f@mail.gmail.com> Message-ID: <200810070938.m979c30l096572@banyan.cs.ait.ac.th> > > I've got a script to backup my MySQL databases, which works absolutely > > fine from the command line, but when I add it in to root's cronjobs it > > always fails with "mysqldump: not found" - what am I doing wrong? > > Things started from cron inherit a different PATH. Either add the > appropriate directories to PATH or specify the full path to mysqldump. In a script aimed to be run by cron, try to always use full path to the commands. It's the safest solution. Olivier From on at cs.ait.ac.th Wed Oct 8 04:18:56 2008 From: on at cs.ait.ac.th (Olivier Nicole) Date: Wed Oct 8 04:19:03 2008 Subject: VNC server embedded into Xorg server In-Reply-To: <48EB0618.6050903@cyberleo.net> (message from CyberLeo Kitsana on Tue, 07 Oct 2008 01:47:52 -0500) References: <48EA0B4A.9080405@shopzeus.com> <48EB0618.6050903@cyberleo.net> Message-ID: <200810070706.m9776X0C093438@banyan.cs.ait.ac.th> Hi, Sorry for jumping in the middle of the thread. > There was a port called net/vnc that contained a vnc.so file. That file > could be loaded into the Xorg server and then I was able to monitor the > X desktop with VNC. > > Now I'm using gnome, and gnome2-fifth-toe installs tightvnc. It > conflicts with net/vnc. So I cannot install net/vnc. What other options > I have to run an X server? I would: - deinstall net/vnc - install gnome and let it install tinyvnc - manually deinstall tinyvnc - install net/vnc > The only extra wish is that the X server must be able to start > automatically, e.g. without logging into gnome. I need this because the > X server will be located at a distant location and I have to be able to > use it after a system restart. Especially with gnome, the X server starts before you do any authentication, when gnome present the loggin window, X has already started. To do X over vnc remotely, you need quite some amount of bandwidth. Are you sure you need a graphical access? X protocol is designed natively to run over the network, so you may not need vnc. With X you can have an application running on your remote computer, with the display coming to your desktop machine (if your desktop machine is some Windows thing, there are good "X emulators for Windows"). If you really want to keep your setting, there should exist a gnome startup script that you can hack to run vnc somewhere between the line starting X and the line starting gnome authentication. Best regards, Olivier From koitsu at FreeBSD.org Wed Oct 8 04:37:28 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Wed Oct 8 04:37:35 2008 Subject: Strange memory/cpu behavior In-Reply-To: <48EC329F.9070902@rawbw.com> References: <48EBCC75.1040908@rawbw.com> <20081007222528.GA60058@icarus.home.lan> <48EBF40D.5050807@rawbw.com> <20081008040420.GA66117@icarus.home.lan> <48EC329F.9070902@rawbw.com> Message-ID: <20081008043726.GA66683@icarus.home.lan> On Tue, Oct 07, 2008 at 09:10:07PM -0700, Yuri wrote: > Jeremy Chadwick wrote: >> I'm a little confused. I was mainly referring to your statement: >> >> "There is one large active process slowly growing in memory from 500MB >> to 1300MB, not reading or writing any files." >> >> What field in top(1) were you looking at to determine this kind of >> growth? >> > > Sorry, I misunderstood the question first. > Memory is taken from the SIZE column, but RES is always very close. Generally speaking, you do not want to be looking at SIZE to determine how much memory a process is taking up -- you want to look at RES. SIZE includes memory shared across all processes which rely on loaded shared objects. For example, if you had 20 processes running which were all linked with libssh.so.4, only one copy of libssh.so.4 would exist in memory, and all 20 of those processes would share it. On later versions of FreeBSD 7.0 and on 7.1, there is the procstat(1) utility which can be used to break down memory usage. As for your CPU usage issue, I'm not quite sure what you're referring to. It might help if we could see some actual output from top(1) pointing to what you're describing. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From jotawski at gmail.com Wed Oct 8 05:10:15 2008 From: jotawski at gmail.com (fire jotawski) Date: Wed Oct 8 05:10:23 2008 Subject: sysinstall Message-ID: hi sirs, apologize me for disturbing the list but i really have problem with adding packages using sysinstall. i start my day with sysinstall configPackages and ending with loop at media selection site. i can not go out from that menu. i do not know what wrong i had done. my box is 7.0-RELEASE FreeBSD thanks in advance for any helps and hints best regards, psr From mailing_list at orange.nl Wed Oct 8 05:22:56 2008 From: mailing_list at orange.nl (Aniruddha) Date: Wed Oct 8 05:23:03 2008 Subject: Can't get soundcard to work In-Reply-To: <4463o4qe3c.fsf@be-well.ilk.org> References: <1223412136.3966.10.camel@debian> <4463o4qe3c.fsf@be-well.ilk.org> Message-ID: <1223443383.4084.3.camel@debian> On Tue, 2008-10-07 at 17:39 -0400, Lowell Gilbert wrote: > Aniruddha writes: > > > I've read the "Setting Up the Sound Card" part in the FreeBSD handbook > > unfortunately I can't get my Intel HDA card to work. Any ideas would be > > appreciated! Here's some relevant output: ... > I think you will need a somewhat recent FreeBSD to support that > controller. What version are you running? > > What drivers have you loaded? snd_driver? Thanks for the help. I'm running FreeBSD 7-1 BETA. From what I can tell my card should be supported. "cat dmesg > /dev/dsp" did give me sound the first time. Any thoughts on how to troubleshoot this would be welcome. -- Regards, Aniruddha From kalpin at muliahost.com Wed Oct 8 05:41:58 2008 From: kalpin at muliahost.com (Kalpin Erlangga Silaen) Date: Wed Oct 8 05:42:05 2008 Subject: bash script on FreeBSD Message-ID: <48EC410C.2030707@muliahost.com> Dear all, I am going to extract field username and UID from /etc/passwd and passed into some scripts. Let say I got line admin 100 admin2 200 admin3 300 admin4 400 and then I want to echoing into screen: admin has uid 100 admin2 has uid 200 admin3 has uid 300 admin4 has uid 400 How do I make this with bash script? Thank you Kalpin Erlangga Silaen From zszalbot at gmail.com Wed Oct 8 05:48:49 2008 From: zszalbot at gmail.com (Zbigniew Szalbot) Date: Wed Oct 8 05:48:55 2008 Subject: mysql binlogs and their expiry times Message-ID: <94136a2c0810072248t7143c6am7b5740a7d770317d@mail.gmail.com> Hi there, I hope someone can help. Due to they way my HD has been sliced I had to move mysql database to /usr/local/mysql. All works fine. Last week I added this entry #expire bin logs expire_logs_days = 7 to /usr/local/mysql/my.cnf I restarted the MySQL server and now I have been waiting for the binlogs to automatically expire but this is not happening: $ ls -l /usr/local/mysql -r--r--r-- 1 mysql mysql 4954 Oct 1 07:30 my.cnf drwx------ 2 mysql mysql 1536 Sep 27 07:10 mysql -rw-rw---- 1 mysql mysql 1073745213 Sep 2 04:07 mysql-bin.000047 -rw-rw---- 1 mysql mysql 1073746878 Sep 7 03:48 mysql-bin.000048 -rw-rw---- 1 mysql mysql 1073745707 Sep 11 20:07 mysql-bin.000049 -rw-rw---- 1 mysql mysql 175527890 Sep 12 08:32 mysql-bin.000050 -rw-rw---- 1 mysql mysql 128272 Sep 12 08:40 mysql-bin.000051 -rw-rw---- 1 mysql mysql 1073745119 Sep 17 04:35 mysql-bin.000052 -rw-rw---- 1 mysql mysql 1073747657 Sep 22 04:26 mysql-bin.000053 -rw-rw---- 1 mysql mysql 1073744456 Sep 27 03:28 mysql-bin.000054 -rw-rw---- 1 mysql mysql 986782722 Oct 1 07:32 mysql-bin.000055 -rw-rw---- 1 mysql mysql 1073742442 Oct 6 04:18 mysql-bin.000056 -rw-rw---- 1 mysql mysql 536487381 Oct 8 07:45 mysql-bin.000057 -rw-r----- 1 mysql mysql 209 Oct 6 04:18 mysql-bin.index Do you have any idea why? Or if /usr/local/mysql/ is a correct location for my.cnf file? Perhaphs it should go to /usr/local/etc/ ? If it matters, I use $ pkg_info -Ix mysql-s mysql-server-5.0.67 Multithreaded SQL database (server) from ports. Thanks! -- Zbigniew Szalbot From que_deseja at hotmail.com Wed Oct 8 05:50:20 2008 From: que_deseja at hotmail.com (Desmond Chapman) Date: Wed Oct 8 05:50:28 2008 Subject: freebsd-questions Digest, Vol 236, Issue 8: 9. Re: detecting monitor's sync and refresh rate? (Lowell Gilbert) In-Reply-To: <20081008001441.1C0551065739@hub.freebsd.org> References: <20081008001441.1C0551065739@hub.freebsd.org> Message-ID: > From: freebsd-questions-request@freebsd.org > Subject: freebsd-questions Digest, Vol 236, Issue 8 > To: freebsd-questions@freebsd.org > Date: Wed, 8 Oct 2008 00:14:41 +0000 > > Send freebsd-questions mailing list submissions to > freebsd-questions@freebsd.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > or, via email, send a message with subject or body 'help' to > freebsd-questions-request@freebsd.org > > You can reach the person managing the list at > freebsd-questions-owner@freebsd.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of freebsd-questions digest..." > > > Message: 9 > Date: Tue, 07 Oct 2008 16:42:07 -0400 > From: Lowell Gilbert > Subject: Re: detecting monitor's sync and refresh rate? > To: Anton Shterenlikht > Cc: freebsd-questions@freebsd.org > Message-ID: <44abdgf880.fsf@be-well.ilk.org> > Content-Type: text/plain; charset=us-ascii > > Anton Shterenlikht writes: > > > I've a monitor (Mobi M15MPC) with no docs. > > I've searched the net but cannot find any info on sync and refresh rate for it. > > I've done Xorg -configure, but testing with X -config xorg.conf.new > > shows screen shifted to the side and very nasty blinking, from which > > I deduced that perhaps I need to specify correct sync, refresh and mode. > > > > Are there any commands to get sync and refresh from the monitor? > > If X can't probe the monitor for its settings, I wouldn't trust any > other method of probing it either. > > Not to overlook the obvious: are the settings written on the back of > the monitor? > > You can always try Google... > > -- > Lowell Gilbert, embedded/networking software engineer, Boston area > http://be-well.ilk.org/~lowell/ > > I have the same problem only when the screen shuts off. The problem doesn't exist if I switch to a virtual terminal. It also corrects itself once I login or start using the gui. Lowell has a point here. It may be your monitor. I'm using a generic monitor and the problem also exists with X.org on Debian Linux with the same monitor. _________________________________________________________________ Get more out of the Web. Learn 10 hidden secrets of Windows Live. http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_domore_092008 From freebsdemail at gmail.com Wed Oct 8 05:58:17 2008 From: freebsdemail at gmail.com (Tom Stuart) Date: Wed Oct 8 05:58:25 2008 Subject: KDE 4 Cannot run as regular user Message-ID: <5cdef660810072258o67330470n9b1f92a160716cfa@mail.gmail.com> Hello, I just installed KDE4 via ports and am getting errors upon attempting to start as a "regular" user. When I run startkde as root it works fine but I don't want to use root on this machine. Error Generated when started as a regular user $ startx /libexec/ld-elf.so.1: Shared object "libXau.so.6" not found, required by "xauth" /libexec/ld-elf.so.1: Shared object "libXau.so.6" not found, required by "xauth" /libexec/ld-elf.so.1: Shared object "libXau.so.6" not found, required by "xauth" /libexec/ld-elf.so.1: Shared object "libXau.so.6" not found, required by "xauth" /libexec/ld-elf.so.1: Shared object "libXau.so.6" not found, required by "xauth" /libexec/ld-elf.so.1: Shared object "libX11.so.6" not found, required by "xinit" /libexec/ld-elf.so.1: Shared object "libXau.so.6" not found, required by "xauth" The files are there $ ls -l /usr/local/lib/libXau.so /usr/local/lib/libX11.so lrwxr-xr-x 1 root wheel 11 Oct 6 03:09 /usr/local/lib/libX11.so -> libX11.so.6 lrwxr-xr-x 1 root wheel 11 Oct 6 03:06 /usr/local/lib/libXau.so -> libXau.so.6 $ ls -l /usr/local/lib/libXau.so.6 /usr/local/lib/libX11.so.6 -rwxr-xr-x 1 root wheel 1080722 Oct 6 03:09 /usr/local/lib/libX11.so.6 -rwxr-xr-x 1 root wheel 10604 Oct 6 03:06 /usr/local/lib/libXau.so.6 $ cat .xinitrc exec /usr/local/kde4/bin/startkde $ uname -a FreeBSD xxx.xxx.net 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #2: Mon Oct 6 02:45:38 MDT 2008 root@xxx.xxx.net:/usr/obj/usr/src/sys/xxx i386 I'm sure this is a very little issue but I appreciate your patience and help in resolving this issue. Best Regards, Tom From koitsu at FreeBSD.org Wed Oct 8 06:08:11 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Wed Oct 8 06:08:24 2008 Subject: mysql binlogs and their expiry times In-Reply-To: <94136a2c0810072248t7143c6am7b5740a7d770317d@mail.gmail.com> References: <94136a2c0810072248t7143c6am7b5740a7d770317d@mail.gmail.com> Message-ID: <20081008060808.GA68413@icarus.home.lan> On Wed, Oct 08, 2008 at 07:48:47AM +0200, Zbigniew Szalbot wrote: > Hi there, > > I hope someone can help. Due to they way my HD has been sliced I had > to move mysql database to /usr/local/mysql. All works fine. Last week > I added this entry > > #expire bin logs > expire_logs_days = 7 > > to /usr/local/mysql/my.cnf > > I restarted the MySQL server and now I have been waiting for the > binlogs to automatically expire but this is not happening: > > $ ls -l /usr/local/mysql > > -r--r--r-- 1 mysql mysql 4954 Oct 1 07:30 my.cnf > drwx------ 2 mysql mysql 1536 Sep 27 07:10 mysql > -rw-rw---- 1 mysql mysql 1073745213 Sep 2 04:07 mysql-bin.000047 > -rw-rw---- 1 mysql mysql 1073746878 Sep 7 03:48 mysql-bin.000048 > -rw-rw---- 1 mysql mysql 1073745707 Sep 11 20:07 mysql-bin.000049 > -rw-rw---- 1 mysql mysql 175527890 Sep 12 08:32 mysql-bin.000050 > -rw-rw---- 1 mysql mysql 128272 Sep 12 08:40 mysql-bin.000051 > -rw-rw---- 1 mysql mysql 1073745119 Sep 17 04:35 mysql-bin.000052 > -rw-rw---- 1 mysql mysql 1073747657 Sep 22 04:26 mysql-bin.000053 > -rw-rw---- 1 mysql mysql 1073744456 Sep 27 03:28 mysql-bin.000054 > -rw-rw---- 1 mysql mysql 986782722 Oct 1 07:32 mysql-bin.000055 > -rw-rw---- 1 mysql mysql 1073742442 Oct 6 04:18 mysql-bin.000056 > -rw-rw---- 1 mysql mysql 536487381 Oct 8 07:45 mysql-bin.000057 > -rw-r----- 1 mysql mysql 209 Oct 6 04:18 mysql-bin.index > > Do you have any idea why? Or if /usr/local/mysql/ is a correct > location for my.cnf file? Perhaphs it should go to /usr/local/etc/ ? > > If it matters, I use > $ pkg_info -Ix mysql-s > mysql-server-5.0.67 Multithreaded SQL database (server) > from ports. Shouldn't this question be going to the MySQL people and not FreeBSD? -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From mister.olli at googlemail.com Wed Oct 8 06:30:21 2008 From: mister.olli at googlemail.com (Mister Olli) Date: Wed Oct 8 06:30:29 2008 Subject: analyzing freebsd core dumps In-Reply-To: <20081006174502.GB71024@gizmo.acns.msu.edu> References: <1223273047.23248.25.camel@phoenix.blechhirn.net> <20081006171809.GA26368@icarus.home.lan> <20081006174502.GB71024@gizmo.acns.msu.edu> Message-ID: <1223447412.5896.9.camel@phoenix.blechhirn.net> hi... thanks for the feedback on this topic. the first step to clean the machine and check all connectors has been done yesterday. I hope that this will fix the problem, and that it's not some kind of hardware failure. to run tests with memtest is quite a problem, since the machine has high availability requirements. to take it off for nearly one hour for cleaning and checking during daily work of our company was a pain. 6 hours or more of RAM tests is not possible. is there some other way to detect hardware failure with less time consuming tool/ process? greetz olli Am Montag, den 06.10.2008, 13:45 -0400 schrieb Jerry McAllister: > On Mon, Oct 06, 2008 at 10:18:09AM -0700, Jeremy Chadwick wrote: > > > On Mon, Oct 06, 2008 at 08:04:07AM +0200, Mister Olli wrote: > > > hi list... > > > > > > I have a freebsd maschine running for more 6 months without any > > > problems. > > > the machine's only service is to be an openvpn gateway for a hand of > > > users. > > > > > > 2 weeks ago the first problems started. the openvpn exited with signal > > > 11 and 4 and core dumps were written. > > > > > > the same happend yesterday with the postfix/cleanup process, and the > > > suddenly the machine rebooted without any further log messages. > > > > > > what is the best way to troubleshoot the cause of this problem? > > > > Signal 11 happening "out of no where" on machines which have been > > running fine, most of the time, is a sign of hardware failure (usually > > RAM, but sometimes motherboard or PSU). The fact you got a reboot is > > also further evidence of this. > > > > http://www.freebsd.org/doc/en/books/faq/troubleshoot.html#SIGNAL11 > > > > I would recommend taking the machine offline and running something like > > memtest86+ on it for 6-7 hours. Any errors seen are a pretty good sign > > that you should replace the memory or the motherboard. You can > > download an ISO or floppy disk images here: > > > > http://www.memtest.org/ > > > > Bottom line is that this is probably a hardware issue. > > Could also be a contacts if it is not the actual memory or board. > A marginal contact where something is plugged in can over time > build up deposits that make it fail. Of course, this is still > a hardware problem, but can often be cured by reseating everything. > If it is bad enough, it could also be exacerbated by reseating > everything. > > ////jerry > > > > > -- > > | Jeremy Chadwick jdc at parodius.com | > > | Parodius Networking http://www.parodius.com/ | > > | UNIX Systems Administrator Mountain View, CA, USA | > > | Making life hard for others since 1977. PGP: 4BD6C0CB | > > > > _______________________________________________ > > 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 artis.caune at gmail.com Wed Oct 8 07:00:42 2008 From: artis.caune at gmail.com (Artis Caune) Date: Wed Oct 8 07:00:49 2008 Subject: bash script on FreeBSD In-Reply-To: <48EC410C.2030707@muliahost.com> References: <48EC410C.2030707@muliahost.com> Message-ID: <9e20d71e0810080000g7720cba3je2d734fd30c01e45@mail.gmail.com> On Wed, Oct 8, 2008 at 8:11 AM, Kalpin Erlangga Silaen wrote: > I am going to extract field username and UID from /etc/passwd and passed > into some scripts. Let say I got line > > admin 100 > admin2 200 > admin3 300 > admin4 400 > > and then I want to echoing into screen: > > admin has uid 100 > admin2 has uid 200 > admin3 has uid 300 > admin4 has uid 400 > > How do I make this with bash script? # echo $line |awk '{ print $1 " has uid " $2 }' -- regards, Artis Caune <----. CCNA | BSDA <----|==================== <----' didii FreeBSD From koitsu at FreeBSD.org Wed Oct 8 07:01:45 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Wed Oct 8 07:01:52 2008 Subject: analyzing freebsd core dumps In-Reply-To: <1223447412.5896.9.camel@phoenix.blechhirn.net> References: <1223273047.23248.25.camel@phoenix.blechhirn.net> <20081006171809.GA26368@icarus.home.lan> <20081006174502.GB71024@gizmo.acns.msu.edu> <1223447412.5896.9.camel@phoenix.blechhirn.net> Message-ID: <20081008070142.GA69250@icarus.home.lan> On Wed, Oct 08, 2008 at 08:30:12AM +0200, Mister Olli wrote: > hi... > > thanks for the feedback on this topic. > the first step to clean the machine and check all connectors has been > done yesterday. I hope that this will fix the problem, and that it's not > some kind of hardware failure. > > to run tests with memtest is quite a problem, since the machine has high > availability requirements. to take it off for nearly one hour for > cleaning and checking during daily work of our company was a pain. > 6 hours or more of RAM tests is not possible. > > is there some other way to detect hardware failure with less time > consuming tool/ process? Yes -- you start replacing hardware one piece at a time until the problem goes away. That will also require downtime, quite regularly, and waste money. So to answer your question: no, there is no way to easily track down the source of a hardware failure, or determine what piece has failed (if any). This is completely 100% normal when it comes to computers, especially x86 PCs. Anyone who has worked in the IT field for many years knows this. :-) I'm amazed that in this day and age, any company would have a single host as a single-point-of-failure. You can't take this machine down for troubleshooting, but you have no failover available. The company has put themselves into this situation. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From frank at shute.org.uk Wed Oct 8 07:12:11 2008 From: frank at shute.org.uk (Frank Shute) Date: Wed Oct 8 07:12:18 2008 Subject: bash script on FreeBSD In-Reply-To: <48EC410C.2030707@muliahost.com> References: <48EC410C.2030707@muliahost.com> Message-ID: <20081008071156.GA94922@melon.esperance-linux.co.uk> On Wed, Oct 08, 2008 at 12:11:40PM +0700, Kalpin Erlangga Silaen wrote: > > Dear all, > > I am going to extract field username and UID from /etc/passwd and passed > into some scripts. Let say I got line > > admin 100 > admin2 200 > admin3 300 > admin4 400 > > and then I want to echoing into screen: > > admin has uid 100 > admin2 has uid 200 > admin3 has uid 300 > admin4 has uid 400 > > How do I make this with bash script? > > Thank you > > > Kalpin Erlangga Silaen $ sed -e 's/\(admin[0-9]*\)\ \([0-9]*\)/\1 has uid \2/g' /etc/passwd Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html From qj at huawei.com Wed Oct 8 07:13:10 2008 From: qj at huawei.com (=?gb2312?B?x/G9ow==?=) Date: Wed Oct 8 07:13:23 2008 Subject: kernel profiling: spinlock_exit consumes 36% CPU time. In-Reply-To: <20081007115748.GA48154@icarus.home.lan> Message-ID: <000301c92915$1cd0ae60$01000001@china.huawei.com> Forgot to meantion that the test is based on FreeBSD kernel 7.0 2000807 snapshot. The kernel was compiled with a modified version of GENERIC configuration. With SMP and PREEMPTION disabled and kernel profiling enabled. -----Original Message----- From: Jeremy Chadwick [mailto:koitsu@FreeBSD.org] Sent: Tuesday, October 07, 2008 7:58 PM To: ???? Cc: freebsd-questions@freebsd.org; freebsd-net@FreeBSD.org; freebsd-threads@freebsd.org Subject: Re: kernel profiling: spinlock_exit consumes 36% CPU time. On Tue, Oct 07, 2008 at 07:44:00PM +0800, ???? wrote: > Hi, folks, > > I did kernel profiling when a single thread client sends UDP packets > to a single thread server on the same machine. > > In the output kernel profile, the first few kernel functions that > consumes the most CPU time are listed below: > > granularity: each sample hit covers 16 byte(s) for 0.01% of 25.68 > seconds > > % cumulative self self total > time seconds seconds calls ms/call ms/call name > 42.4 10.88 10.88 0 100.00% __mcount [1] > 36.1 20.14 9.26 17937541 0.00 0.00 spinlock_exit [4] > 4.2 21.22 1.08 3145728 0.00 0.00 in_cksum_skip [40] > 1.8 21.68 0.45 7351987 0.00 0.00 generic_copyin [43] > 1.1 21.96 0.29 3146028 0.00 0.00 generic_copyout [48] > 1.0 22.21 0.24 2108904 0.00 0.00 Xint0x80_syscall [3] > 0.8 22.42 0.21 6292131 0.00 0.00 uma_zalloc_arg [46] > 0.8 22.62 0.20 1048576 0.00 0.00 soreceive_generic [9] > 0.7 22.80 0.19 3145852 0.00 0.00 free [47] > 0.6 22.96 0.15 6292172 0.00 0.00 uma_zfree_arg [52] > 0.6 23.10 0.14 5243413 0.00 0.00 generic_bzero [53] > 0.5 23.23 0.14 1048581 0.00 0.00 ip_output [23] > 0.5 23.36 0.13 4221855 0.00 0.00 generic_bcopy [57] > 0.4 23.47 0.11 36865859 0.00 0.00 critical_enter [61] > 0.4 23.57 0.10 36865859 0.00 0.00 critical_exit [62] > 0.4 23.67 0.09 17937541 0.00 0.00 spinlock_enter [63] > 0.4 23.76 0.09 1048582 0.00 0.00 udp_input [21] > 0.3 23.85 0.09 2108904 0.00 0.00 syscall [5] > 0.3 23.93 0.08 1048587 0.00 0.00 ip_input [20] > 0.3 24.00 0.07 2097156 0.00 0.00 getsock [65] > 0.3 24.07 0.07 1048576 0.00 0.00 udp_send [22] > > It is very strange that spinlock_exit consumes over 36% CPU time while > it seems a very simple function. > > For clarity, I paste the code of spinlock_exit here: > > void > spinlock_exit(void) > { > struct thread *td; > > td = curthread; > critical_exit(); > td->td_md.md_spinlock_count--; > if (td->td_md.md_spinlock_count == 0) > intr_restore(td->td_md.md_saved_flags); > } > > Since critical_exit consumes only 0.4% CPU time, does this mean the > rest of spinlock_exit consume ~36% CPU time? > > Am I missing something? Could anybody help me understand this? Many thanks. > > BTW, the kernel is compiled with SMP and PREEMPTION disabled. The > scheduler is ULE. What FreeBSD version, and what build date of the kernel? -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From frank at shute.org.uk Wed Oct 8 07:21:31 2008 From: frank at shute.org.uk (Frank Shute) Date: Wed Oct 8 07:21:39 2008 Subject: bash script on FreeBSD In-Reply-To: <20081008071156.GA94922@melon.esperance-linux.co.uk> References: <48EC410C.2030707@muliahost.com> <20081008071156.GA94922@melon.esperance-linux.co.uk> Message-ID: <20081008072121.GB94922@melon.esperance-linux.co.uk> On Wed, Oct 08, 2008 at 08:11:56AM +0100, Frank Shute wrote: > > On Wed, Oct 08, 2008 at 12:11:40PM +0700, Kalpin Erlangga Silaen wrote: > > > > Dear all, > > > > I am going to extract field username and UID from /etc/passwd and passed > > into some scripts. Let say I got line > > > > admin 100 > > admin2 200 > > admin3 300 > > admin4 400 > > > > and then I want to echoing into screen: > > > > admin has uid 100 > > admin2 has uid 200 > > admin3 has uid 300 > > admin4 has uid 400 > > > > How do I make this with bash script? > > > > Thank you > > > > > > Kalpin Erlangga Silaen > > $ sed -e 's/\(admin[0-9]*\)\ \([0-9]*\)/\1 has uid \2/g' /etc/passwd > Correction: You can't use that on /etc/passwd directly. But assuming you've got a file already in the format you specified, then you can use it on that. If you want to grab the data directly from /etc/passwd then you'd be better off using awk(1). Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html From kalpin at muliahost.com Wed Oct 8 07:22:57 2008 From: kalpin at muliahost.com (Kalpin Erlangga Silaen) Date: Wed Oct 8 07:23:08 2008 Subject: bash script on FreeBSD In-Reply-To: <20081008072121.GB94922@melon.esperance-linux.co.uk> References: <48EC410C.2030707@muliahost.com> <20081008071156.GA94922@melon.esperance-linux.co.uk> <20081008072121.GB94922@melon.esperance-linux.co.uk> Message-ID: <48EC5FC5.7030103@muliahost.com> Dear Frank, you are correct. Finally, I write my script using awk. Thank you Kalpin Erlangga Silaen Frank Shute wrote: > On Wed, Oct 08, 2008 at 08:11:56AM +0100, Frank Shute wrote: > >> On Wed, Oct 08, 2008 at 12:11:40PM +0700, Kalpin Erlangga Silaen wrote: >> >>> Dear all, >>> >>> I am going to extract field username and UID from /etc/passwd and passed >>> into some scripts. Let say I got line >>> >>> admin 100 >>> admin2 200 >>> admin3 300 >>> admin4 400 >>> >>> and then I want to echoing into screen: >>> >>> admin has uid 100 >>> admin2 has uid 200 >>> admin3 has uid 300 >>> admin4 has uid 400 >>> >>> How do I make this with bash script? >>> >>> Thank you >>> >>> >>> Kalpin Erlangga Silaen >>> >> $ sed -e 's/\(admin[0-9]*\)\ \([0-9]*\)/\1 has uid \2/g' /etc/passwd >> >> > > Correction: You can't use that on /etc/passwd directly. But assuming > you've got a file already in the format you specified, then you can > use it on that. > > If you want to grab the data directly from /etc/passwd then you'd be > better off using awk(1). > > Regards, > > From kline at thought.org Wed Oct 8 07:25:50 2008 From: kline at thought.org (Gary Kline) Date: Wed Oct 8 07:25:57 2008 Subject: question about "sound-juicer" In-Reply-To: <20081008031929.GA12117@thought.org> References: <20081008031929.GA12117@thought.org> Message-ID: <20081008072545.GA38553@thought.org> On Tue, Oct 07, 2008 at 08:19:32PM -0700, Gary Kline wrote: > > Guys, > > There's a very useful audio app called "sound-juicer"; I have it > installed but whenever I try to use it, a popup warns: > > "Could not read the CD\n > > Sound juicer could not access the CD-ROM Device '1,1,0' > Reason: No such file or directory" > > I've got two CD/DVD optical drives; both are correctly configured in > /etc/fstab and in /media and in my home directory. I'm stuck. Any ideas > on what's wrong? > > thanks in advance, > > gary It's probably bad form to respond to one's post, but here's the deal: while I *could* transfer audio data from one CD to my hard drive or elsewhere, I wantedt o use sound-juicer (like I did on my Ubuntu platform. There, both gnome and kde both work. Until very recently, I assumed that the same rule applied to our OS as well. But I have had to set up things to have evolution's icons be displayed on FBSD, and now this difficulty with the audio app. Is there some magic incantation that will let me use applications of either/or bothe Gnome and KDE? I use KDE primarily for one reason:: it has speech wirh konqueror. firefox does not. ANother reason is the KDE had seemed to have given people with disabilities more consideration. I'm not blind, but it helps to have an essay read back to me so I can hear the flubs. &c. (*****) -- Gary Kline kline@thought.org http://www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org From gandalf at shopzeus.com Wed Oct 8 07:37:23 2008 From: gandalf at shopzeus.com (Laszlo Nagy) Date: Wed Oct 8 07:37:30 2008 Subject: GEOM_JOURNAL: Timeout. Journal gjournal XXXX cannot be completed. Message-ID: <48EC63A2.7000706@shopzeus.com> Hi, I'm trying to add a new disk to my system. I'm ready with labeling the disk. It is an SCSI device with and UFS partition and a SWAP partition. The swap is turned off, and I would like to use it as journal space. There is a screenshot attached showing what happens after entering single user mode. swaps are turned off, and the journal cannot be initialized. The message says: GEOM_JOURNAL: Timeout. Journal gjournal 2578807269 cannot be completed. Why is that? Thanks, Laszlo From steinex at nognu.de Wed Oct 8 07:58:10 2008 From: steinex at nognu.de (Frank Steinborn) Date: Wed Oct 8 07:58:47 2008 Subject: how to connect kde4 to my mail server...?? In-Reply-To: References: <20081007220540.GA2753@thought.org> Message-ID: 2008/10/8 Gary Kline > > I didn't set up my LAN and the guy who did, didn't explain enough > to help me get too far with things-kde3 in /usr/local/bin to > everything-kde4 in /usr/local/kde4/bin/* > > I just got kde4 kmail set up, but it does not see mail on my mail > server:: aristotle.thought.org. Anybody help me with this? Do you get some error message from KMail like "connection refused", "wrong password" or something? What mail-protocol are you using? -- Servus, Frank Take me drunk, I'm home again! From mcoyles at horbury.wakefield.sch.uk Wed Oct 8 08:18:35 2008 From: mcoyles at horbury.wakefield.sch.uk (Marc Coyles) Date: Wed Oct 8 08:18:53 2008 Subject: Consistency of MySQL dumps... Message-ID: <002b01c9291e$6c1198a0$4434c9e0$@wakefield.sch.uk> > (MySQLFront running on Windows XP, connecting to > MySQL5.2.5 on FreeBSD7.0REL) Sorry, brain fade... it's early! MySQL 4.1.22... was thinking about PHP at the time... Cheers! Marc A Coyles - Horbury School ICT Support Team Mbl: 07850 518106 Land: 01924 282740 ext 730 Helpdesk: 01924 282740 ext 2000 From mexas at bristol.ac.uk Wed Oct 8 08:39:28 2008 From: mexas at bristol.ac.uk (Anton Shterenlikht) Date: Wed Oct 8 08:39:37 2008 Subject: detecting monitor's sync and refresh rate? In-Reply-To: <44abdgf880.fsf@be-well.ilk.org> References: <20081007115504.GA78610@mech-cluster238.men.bris.ac.uk> <44abdgf880.fsf@be-well.ilk.org> Message-ID: <20081008083923.GB88736@mech-cluster238.men.bris.ac.uk> On Tue, Oct 07, 2008 at 04:42:07PM -0400, Lowell Gilbert wrote: > Anton Shterenlikht writes: > > > I've a monitor (Mobi M15MPC) with no docs. > > I've searched the net but cannot find any info on sync and refresh rate for it. > > I've done Xorg -configure, but testing with X -config xorg.conf.new > > shows screen shifted to the side and very nasty blinking, from which > > I deduced that perhaps I need to specify correct sync, refresh and mode. > > > > Are there any commands to get sync and refresh from the monitor? > > If X can't probe the monitor for its settings, I wouldn't trust any > other method of probing it either. > > Not to overlook the obvious: are the settings written on the back of > the monitor? no, nothing there. Can I make anything from this fragment of /var/log/Xorg.0.log: (II) intel(0): Printing DDC gathered Modelines: (II) intel(0): Modeline "1024x768"x0.0 65.00 1024 1048 1184 1184 768 771 777 806 -hsync -vsync (54.9 kHz) (II) intel(0): Modeline "800x600"x0.0 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz) (II) intel(0): Modeline "640x480"x0.0 25.20 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz) (II) intel(0): Modeline "720x400"x0.0 28.32 720 738 846 900 400 412 414 449 -hsync +vsync (31.5 kHz) (II) intel(0): Modeline "1024x768"x0.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz) > You can always try Google... so far no luck thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423 From barry.byrne at wbtsystems.com Wed Oct 8 09:25:13 2008 From: barry.byrne at wbtsystems.com (Barry Byrne) Date: Wed Oct 8 09:25:20 2008 Subject: how to break portsnap In-Reply-To: <539c60b90810071356g1d07d339yeaa5bc6f20b14109@mail.gmail.com> References: <539c60b90810071356g1d07d339yeaa5bc6f20b14109@mail.gmail.com> Message-ID: <80C987422C3A4FB58CAC85EC960E99CC@wbt.wbtsystems.com> > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Steve Franks > Sent: 07 October 2008 21:57 > I've googled high & low but I cannot find much other that "this cannot > happen" replies. I've got a dual boot to amd64 and i386. The amd64 > hasn't been able to portsnap fetch or cron since march. The i386 I > just installed, and it portsnap's fine, so it's not a firewall or > related issue. I've checked my key and it looks ok. What am I > missing? > > Best, > Steve > > > dystant# portsnap fetch > Looking up portsnap.FreeBSD.org mirrors... 3 mirrors found. > Fetching snapshot tag from portsnap1.FreeBSD.org... done. > Fetching snapshot metadata... done. > Updating from Mon Mar 3 07:50:14 MST 2008 to Tue Oct 7 > 12:43:25 MST 2008. > Fetching 0 metadata patches. done. > Applying metadata patches... done. > Fetching 0 metadata files... done. > Fetching 12365 patches.. done. > Applying patches... done. > Fetching 13708 new ports or files... /usr/sbin/portsnap: cannot open > e53d7ea3f6fbc2e6a87a1f194ea623fc6b27c74d9aecfd61e0d765e86d861ad5.gz: > No such file or directory > snapshot is corrupt. > dystant# Steve: Are you using a proxy server? If so this could be perhaps the proxy server not fully supporting HTTP/1.1 persistent connections. Can you try this: sysctl net.inet.ip.portrange.randomized=0 portsnap fetch update Cheers, Barry From talon at lpthe.jussieu.fr Wed Oct 8 09:45:19 2008 From: talon at lpthe.jussieu.fr (Michel Talon) Date: Wed Oct 8 09:45:26 2008 Subject: adding a slice to gmirror instead of a whole disk, will it work? Message-ID: <20081008094514.GA96151@lpthe.jussieu.fr> Craig Butler wrote: > Will adding a slice to a gmirror instead of a whole disk work? > The slice is big enough to accommodate the old disk. It will work no problem. The only possible trouble is to have the last sector of the disk or slice free to be able to put the geom marker on it. For example i have a mirror with 2 slices: asmodee% gmirror list Geom name: gms1 State: COMPLETE Components: 2 Balance: load Slice: 4096 Flags: NONE GenID: 0 SyncID: 2 ID: 1193348252 Providers: 1. Name: mirror/gms1 Mediasize: 16776699904 (16G) Sectorsize: 512 Mode: r5w5e5 Consumers: 1. Name: ad0s1 Mediasize: 16776700416 (16G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: DIRTY GenID: 0 SyncID: 2 ID: 1158494643 2. Name: ad4s1 Mediasize: 16776700416 (16G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: DIRTY GenID: 0 SyncID: 2 ID: 2277636746 Note that in this case (one of the disks is slower than the other) i observed that the "round-robin" strategy was giving poor results (slower than the slowest of the two disks) while the "load" strategy gives performance like the faster disk. Consumers can be absolutely anything, this is the beauty of the GEOM idea. -- Michel TALON From jeremyhooks at googlemail.com Wed Oct 8 11:05:56 2008 From: jeremyhooks at googlemail.com (Jeremy Hooks) Date: Wed Oct 8 11:06:03 2008 Subject: detecting monitor's sync and refresh rate? In-Reply-To: <20081008083923.GB88736@mech-cluster238.men.bris.ac.uk> References: <20081007115504.GA78610@mech-cluster238.men.bris.ac.uk> <44abdgf880.fsf@be-well.ilk.org> <20081008083923.GB88736@mech-cluster238.men.bris.ac.uk> Message-ID: I cheated a little and pulled this out of openSUSE 11's monitor database: #============================================== # 1024X768@60HZ #---------------------------------------------- --> LCD:1024X768@60HZ { Option=DPMS Hsync=31-60 Modeline="1024x768" 65.0 1024 1048 1184 1344 768 771 777 806 -hsync -vsync Vsync=30-60 } That should be about right for your 15" LCD monitor if it supports 1024x768@60Hz - quite common for 15" monitors. You'll notice modeline matches the last modeline in your logs. It might not be optimal, but it should work if your monitor is VESA compliant. Another option, if you have the Windows driver disk, would be to extract the .inf file and get the settings from that. 2008/10/8 Anton Shterenlikht > On Tue, Oct 07, 2008 at 04:42:07PM -0400, Lowell Gilbert wrote: > > Anton Shterenlikht writes: > > > > > I've a monitor (Mobi M15MPC) with no docs. > > > I've searched the net but cannot find any info on sync and refresh rate > for it. > > > I've done Xorg -configure, but testing with X -config xorg.conf.new > > > shows screen shifted to the side and very nasty blinking, from which > > > I deduced that perhaps I need to specify correct sync, refresh and > mode. > > > > > > Are there any commands to get sync and refresh from the monitor? > > > > If X can't probe the monitor for its settings, I wouldn't trust any > > other method of probing it either. > > > > Not to overlook the obvious: are the settings written on the back of > > the monitor? > > no, nothing there. > > Can I make anything from this fragment of /var/log/Xorg.0.log: > > (II) intel(0): Printing DDC gathered Modelines: > (II) intel(0): Modeline "1024x768"x0.0 65.00 1024 1048 1184 1184 768 > 771 777 > 806 -hsync -vsync (54.9 kHz) > (II) intel(0): Modeline "800x600"x0.0 40.00 800 840 968 1056 600 601 > 605 628 > +hsync +vsync (37.9 kHz) > (II) intel(0): Modeline "640x480"x0.0 25.20 640 656 752 800 480 490 492 > 525 > -hsync -vsync (31.5 kHz) > (II) intel(0): Modeline "720x400"x0.0 28.32 720 738 846 900 400 412 414 > 449 > -hsync +vsync (31.5 kHz) > (II) intel(0): Modeline "1024x768"x0.0 65.00 1024 1048 1184 1344 768 > 771 777 > 806 -hsync -vsync (48.4 kHz) > > > > You can always try Google... > > so far no luck > > thanks > anton > > -- > Anton Shterenlikht > Room 2.6, Queen's Building > Mech Eng Dept > Bristol University > University Walk, Bristol BS8 1TR, UK > Tel: +44 (0)117 928 8233 > Fax: +44 (0)117 929 4423 > _______________________________________________ > 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 qj at huawei.com Wed Oct 8 07:51:54 2008 From: qj at huawei.com (=?gb2312?B?x/G9ow==?=) Date: Wed Oct 8 11:30:17 2008 Subject: kernel profiling: spinlock_exit consumes 36% CPU time. In-Reply-To: <200810070938.04673.jhb@freebsd.org> Message-ID: <000a01c9291a$b81fa560$01000001@china.huawei.com> Many thanks for the information. Could we say that interrupt handlers consumed ~36% execution time? Is this number too high? Is it possible that we abuse the use of critical sections in kernel? Looking forward to your options. Many thanks. Qiu Jian On Tuesday 07 October 2008 07:44:00 am ?? wrote: > Hi, folks, > > I did kernel profiling when a single thread client sends UDP packets > to a single thread server on the same machine. > > In the output kernel profile, the first few kernel functions that > consumes the most CPU time are listed below: > > granularity: each sample hit covers 16 byte(s) for 0.01% of 25.68 > seconds > > % cumulative self self total > time seconds seconds calls ms/call ms/call name > 42.4 10.88 10.88 0 100.00% __mcount [1] > 36.1 20.14 9.26 17937541 0.00 0.00 spinlock_exit [4] > 4.2 21.22 1.08 3145728 0.00 0.00 in_cksum_skip [40] > 1.8 21.68 0.45 7351987 0.00 0.00 generic_copyin [43] > 1.1 21.96 0.29 3146028 0.00 0.00 generic_copyout [48] > 1.0 22.21 0.24 2108904 0.00 0.00 Xint0x80_syscall [3] > 0.8 22.42 0.21 6292131 0.00 0.00 uma_zalloc_arg [46] > 0.8 22.62 0.20 1048576 0.00 0.00 soreceive_generic [9] > > It is very strange that spinlock_exit consumes over 36% CPU time while > it seems a very simple function. It's because the intr_restore() re-enables interrupts and the resulting time spent executing the handlers for any pending interrupts are attributed to spinlock_exit(). -- John Baldwin From sonic2000gr at gmail.com Wed Oct 8 11:46:14 2008 From: sonic2000gr at gmail.com (Manolis Kiagias) Date: Wed Oct 8 11:46:20 2008 Subject: GEOM_JOURNAL: Timeout. Journal gjournal XXXX cannot be completed. In-Reply-To: <48EC63A2.7000706@shopzeus.com> References: <48EC63A2.7000706@shopzeus.com> Message-ID: <48EC9D80.50704@gmail.com> Laszlo Nagy wrote: > Hi, > > I'm trying to add a new disk to my system. I'm ready with labeling the > disk. It is an SCSI device with and UFS partition and a SWAP > partition. The swap is turned off, and I would like to use it as > journal space. There is a screenshot attached showing what happens > after entering single user mode. swaps are turned off, and the journal > cannot be initialized. The message says: > > GEOM_JOURNAL: Timeout. Journal gjournal 2578807269 cannot be completed. > > Why is that? > > Thanks, > > Laszlo > Screenshots will not come through on the list, could you upload them somewhere and send a link? Is the partition you are trying to journal mounted? From gpbuono at gmail.com Wed Oct 8 12:21:39 2008 From: gpbuono at gmail.com (Gian Paolo Buono) Date: Wed Oct 8 12:21:46 2008 Subject: mirror disk across network Message-ID: Hi, do you know a metod from mirror a disk or partition across network same drdb for linux ? Bye.,., :) From wojtek at wojtek.tensor.gdynia.pl Wed Oct 8 12:25:06 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Wed Oct 8 12:25:13 2008 Subject: mirror disk across network In-Reply-To: References: Message-ID: <20081008142438.G4623@wojtek.tensor.gdynia.pl> i don't know what's drdb, but man ggated man ggatec On Wed, 8 Oct 2008, Gian Paolo Buono wrote: > Hi, > > do you know a metod from mirror a disk or partition across network same drdb > for linux ? > > Bye.,., :) > _______________________________________________ > 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 gandalf at shopzeus.com Wed Oct 8 12:49:04 2008 From: gandalf at shopzeus.com (Laszlo Nagy) Date: Wed Oct 8 12:49:11 2008 Subject: php5 segfault Message-ID: <48ECACB4.8080103@shopzeus.com> uname -a: FreeBSD shopzeus.com 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #3: Mon Oct 6 07:50:31 EDT 2008 gandalf@shopzeus.chello.hu:/usr/obj/usr/src/sys/SHOPZEUS amd64 when compiling /usr/ports/php5 I see messages like: bin/sh /usr/ports/lang/php5/work/php-5.2.6/libtool --silent --preserve-dup-deps --mode=compile cc -IZend/ -I/usr/ports/lang/php5/work/php-5.2.6/Zend/ -DPHP_ATOM_INC -I/usr/ports/lang/php5/work/php-5.2.6/include -I/usr/ports/lang/php5/work/php-5.2.6/main -I/usr/ports/lang/php5/work/php-5.2.6 -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/ports/lang/php5/work/php-5.2.6/ext/date/lib -I/usr/ports/lang/php5/work/php-5.2.6/TSRM -I/usr/ports/lang/php5/work/php-5.2.6/Zend -O2 -fno-strict-aliasing -pipe -c /usr/ports/lang/php5/work/php-5.2.6/Zend/zend_API.c -o Zend/zend_API.lo So it is using -O2 and -pipe. Is this something that I can disable? It might be because we are using postgresql connections. For pages without pgsql connection, there is no segfault. It must be noted that the segfault happens on cleanup. E.g. all web sites are working fine, except that we are getting many many segfault messages in the logs all the time. Thanks, Laszlo From koitsu at FreeBSD.org Wed Oct 8 13:12:50 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Wed Oct 8 13:13:00 2008 Subject: php5 segfault In-Reply-To: <48ECACB4.8080103@shopzeus.com> References: <48ECACB4.8080103@shopzeus.com> Message-ID: <20081008131248.GA77388@icarus.home.lan> On Wed, Oct 08, 2008 at 02:51:00PM +0200, Laszlo Nagy wrote: > uname -a: > > FreeBSD shopzeus.com 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #3: Mon Oct > 6 07:50:31 EDT 2008 > gandalf@shopzeus.chello.hu:/usr/obj/usr/src/sys/SHOPZEUS amd64 > > when compiling /usr/ports/php5 I see messages like: > > bin/sh /usr/ports/lang/php5/work/php-5.2.6/libtool --silent > --preserve-dup-deps --mode=compile cc -IZend/ > -I/usr/ports/lang/php5/work/php-5.2.6/Zend/ -DPHP_ATOM_INC > -I/usr/ports/lang/php5/work/php-5.2.6/include > -I/usr/ports/lang/php5/work/php-5.2.6/main > -I/usr/ports/lang/php5/work/php-5.2.6 -I/usr/local/include/libxml2 > -I/usr/local/include -I/usr/ports/lang/php5/work/php-5.2.6/ext/date/lib > -I/usr/ports/lang/php5/work/php-5.2.6/TSRM > -I/usr/ports/lang/php5/work/php-5.2.6/Zend -O2 -fno-strict-aliasing > -pipe -c /usr/ports/lang/php5/work/php-5.2.6/Zend/zend_API.c -o > Zend/zend_API.lo > > So it is using -O2 and -pipe. Is this something that I can disable? If you want. "make config" in /usr/ports/lang/php5 will give you a menu option for DEBUG; turn it on. I'm not sure what the compile options you're showing have *anything* to do with the segfault you're reporting. I don't see any backtraces or details of the segfault. > It might be because we are using postgresql connections. For pages without > pgsql connection, there is no segfault. I've personally used PHP5 (as a CGI only, not as an Apache module) with PostgreSQL and experienced no segfaults. > It must be noted that the segfault happens on cleanup. E.g. all web > sites are working fine, except that we are getting many many segfault > messages in the logs all the time. Many people have found that re-ordering the "extensions" lines in /usr/local/etc/php/extensions.ini has solved odd segfaults. I personally have never seen this, nor have ever needed to adjust that file, but it has worked for others. Also, you cannot use a threaded Apache (e.g. threaded MPMs) with PHP since not all extensions support threading. Your Apache needs to be built without threads and use a non-thread model (e.g. prefork). I've also had success with Apache-ITK-mpm. Search the mailing lists for this situation, try the recommendations, and then if nothing fixes it, provide a backtrace. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From jdrouard at ankama.com Wed Oct 8 13:23:28 2008 From: jdrouard at ankama.com (Julien Drouard) Date: Wed Oct 8 13:23:35 2008 Subject: Problem with writes on HD with FreeBSD 7 Message-ID: <7AFA66599AC41847AD8E021A1DBB9D1403E32A56D2@pandore.ankama.com> Hi, Since a few weeks some of our database servers are running under FreeBSD 7 and we have noticed that writes on HD take a lot of time. To confirm our impression we ran sysbench. The results are the following : * Under FreeBSD 7 : Random write : Operations performed: 0 Read, 10000 Write, 12800 Other = 22800 Total Read 0b Written 156.25Mb Total transferred 156.25Mb (1.6459Mb/sec) 105.34 Requests/sec executed Test execution summary: total time: 94.9312s total number of events: 10000 total time taken by event execution: 41.1071 per-request statistics: min: 0.0000s avg: 0.0041s max: 0.1653s approx. 95 percentile: 0.0251s * Under FreeBSD 6.2 : random write Operations performed: 0 Read, 10005 Write, 12673 Other = 22678 Total Read 0b Written 156.33Mb Total transferred 156.33Mb (10.505Mb/sec) 672.32 Requests/sec executed Test execution summary: total time: 14.8814s total number of events: 10005 total time taken by event execution: 112.2531 per-request statistics: min: 0.0000s avg: 0.0112s max: 0.9868s approx. 95 percentile: 0.0010s The command used for sysbench is : sysbench --num-threads=16 --test=fileio --file-total-size=3G --file-test-mode=rndwr run I have found absolutely nothing to explain that differences so if someone can help me to solve this problem I would be very grateful. Kind Regards, Julien -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From wojtek at wojtek.tensor.gdynia.pl Wed Oct 8 13:55:19 2008 From: wojtek at wojtek.tensor.gdynia.pl (Wojciech Puchar) Date: Wed Oct 8 13:55:26 2008 Subject: adding a slice to gmirror instead of a whole disk, will it work? In-Reply-To: <1223418804.3361.3.camel@main.lerwick.hopto.org> References: <1223418804.3361.3.camel@main.lerwick.hopto.org> Message-ID: <20081008155450.J5473@wojtek.tensor.gdynia.pl> > > Will adding a slice to a gmirror instead of a whole disk work? of course. slice, partition, even remote partition etc. > The slice is big enough to accommodate the old disk. > > Thanks > > Craig B > > _______________________________________________ > 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 jmc-freebsd2 at milibyte.co.uk Wed Oct 8 14:38:36 2008 From: jmc-freebsd2 at milibyte.co.uk (Mike Clarke) Date: Wed Oct 8 14:38:44 2008 Subject: Canon Pixma iP4500 - problem with colours In-Reply-To: <20081005083034.1F6E65FC50@mail.asahi-net.or.jp> References: <200810011546.29798.jmc-freebsd2@milibyte.co.uk> <20081005083034.1F6E65FC50@mail.asahi-net.or.jp> Message-ID: <200810081538.32584.jmc-freebsd2@milibyte.co.uk> On Sunday 05 October 2008, WATANABE Kazuhiro wrote: > So you will be able to use Canon iP4500 (and MP610/MP520/iP3500) with > the procedure below. Thanks for the detailed installation instructions for the Pixma iP4500 linux drivers from Canon. I followed the instructions and everything went very smoothly apart from one minor problem. Using rpm2cpio and cpio to extract the files from cnijfilter-ip4500series-2.80-1.i386.rpm resulted in all the directories being created with mode 700. This resulted in "permission denied" errors when piping an ascii test file through a2ps and gs to cifip4500. After setting the directory permissions to 755 everything was fine and I now have a functional printer. The output quality is much better than I could get with the gutenprint driver but the output is limited to 600 dpi so it's nothing like as good as the windows driver in high quality mode. But it is certainly good enough for normal day to day use and I don't mind switching to Windows for the occasional high quality photo print. -- Mike Clarke From cmarshall at ahm-inc.com Wed Oct 8 16:12:02 2008 From: cmarshall at ahm-inc.com (Chad Marshall) Date: Wed Oct 8 16:12:09 2008 Subject: uptime 2 years! Message-ID: Hello, Would like to share a success story which I'm sure you've had in the past but one of my servers running FreeBSD will have an uptime of 2 years tomorrow. I plan on putting on my blog but as it doesn't have much reach but wanted to share with you since your community has made this possible. Please indicate where I could post this to have a bit more reach or if you'd like to put a link to my blog, I'd be more than happy to provide that. Best Regards, -------------- next part -------------- From koitsu at FreeBSD.org Wed Oct 8 16:21:55 2008 From: koitsu at FreeBSD.org (Jeremy Chadwick) Date: Wed Oct 8 16:22:02 2008 Subject: uptime 2 years! In-Reply-To: References: Message-ID: <20081008162153.GA80866@icarus.home.lan> On Wed, Oct 08, 2008 at 08:54:47AM -0700, Chad Marshall wrote: > Would like to share a success story which I'm sure you've had in the > past but one of my servers running FreeBSD will have an uptime of 2 > years tomorrow. I plan on putting on my blog but as it doesn't have much > reach but wanted to share with you since your community has made this > possible. Please indicate where I could post this to have a bit more > reach or if you'd like to put a link to my blog, I'd be more than happy > to provide that. I don't want to rain on your parade, but uptime ultimately means squat. I can install FreeBSD on a box under my desk at home, on a UPS, and leave it powered on for the next 30 years -- it tells people absolutely nothing about the reliability of the OS, or what kind of stress it's undergone during that time. Additionally, long uptimes also reflect directly on sysadmins: I take it to mean "the administrator is very lazy". There are security holes (kernel or userland/library-level) which are exploitable on boxes which have been up for that kind of time. I'm also making the assumption that said boxes have Internet connectivity, hence my point. Food for thought. :-) -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From mihai.dontu at gmail.com Wed Oct 8 16:41:45 2008 From: mihai.dontu at gmail.com (Mihai =?utf-8?q?Don=C8=9Bu?=) Date: Wed Oct 8 16:41:53 2008 Subject: uptime 2 years! In-Reply-To: <20081008162153.GA80866@icarus.home.lan> References: <20081008162153.GA80866@icarus.home.lan> Message-ID: <200810081941.39649.mihai.dontu@gmail.com> On Wednesday 08 October 2008, Jeremy Chadwick wrote: > On Wed, Oct 08, 2008 at 08:54:47AM -0700, Chad Marshall wrote: > > Would like to share a success story which I'm sure you've had in the > > past but one of my servers running FreeBSD will have an uptime of 2 > > years tomorrow. I plan on putting on my blog but as it doesn't have much > > reach but wanted to share with you since your community has made this > > possible. Please indicate where I could post this to have a bit more > > reach or if you'd like to put a link to my blog, I'd be more than happy > > to provide that. > > I don't want to rain on your parade, but uptime ultimately means squat. > I can install FreeBSD on a box under my desk at home, on a UPS, and > leave it powered on for the next 30 years -- it tells people absolutely > nothing about the reliability of the OS, or what kind of stress it's > undergone during that time. > > Additionally, long uptimes also reflect directly on sysadmins: I take it > to mean "the administrator is very lazy". There are security holes > (kernel or userland/library-level) which are exploitable on boxes which > have been up for that kind of time. I'm also making the assumption that > said boxes have Internet connectivity, hence my point. > > Food for thought. :-) Or to put it mildly and not alienate Chad :), what was the box used for and, if it had Internet connectivity, how were the potential security issues handled within the last two years? A Guy Ritchie kind of story will do just fine. :) -- Mihai Don?u unices.bitdefender.com From mail at ozzmosis.com Wed Oct 8 16:45:44 2008 From: mail at ozzmosis.com (andrew clarke) Date: Wed Oct 8 16:45:52 2008 Subject: uptime 2 years! In-Reply-To: <20081008162153.GA80866@icarus.home.lan> References: <20081008162153.GA80866@icarus.home.lan> Message-ID: <20081008164540.GA78500@ozzmosis.com> On Wed 2008-10-08 09:21:53 UTC-0700, Jeremy Chadwick (koitsu@FreeBSD.org) wrote: > I don't want to rain on your parade, but uptime ultimately means squat. Agreed. > I can install FreeBSD on a box under my desk at home, on a UPS, and > leave it powered on for the next 30 years -- it tells people absolutely > nothing about the reliability of the OS, or what kind of stress it's > undergone during that time. I'd be impressed if an ordinary PC lasted 30 years continuously running. Even if the HDD is solid-state you still have to think about other moving parts, particularly the CPU and PSU cooling fans. I've had a bad run with PSU fans recently. Is FreeBSD 7.1 2038-proof? ;-) http://en.wikipedia.org/wiki/Year_2038_problem (I wonder what version of FreeBSD will be the latest in 2038?) > Additionally, long uptimes also reflect directly on sysadmins: I take it > to mean "the administrator is very lazy". There are security holes > (kernel or userland/library-level) which are exploitable on boxes which > have been up for that kind of time. I'm also making the assumption that > said boxes have Internet connectivity, hence my point. Yes, my initial thought was "what, you don't use freebsd-update?". Regards Andrew From pauls at utdallas.edu Wed Oct 8 17:38:27 2008 From: pauls at utdallas.edu (Paul Schmehl) Date: Wed Oct 8 17:38:34 2008 Subject: uptime 2 years! In-Reply-To: References: Message-ID: <78D99868E4A234797CBB3987@utd65257.utdallas.edu> --On Wednesday, October 08, 2008 10:54:47 -0500 Chad Marshall wrote: > > > Hello, > > Would like to share a success story which I'm sure you've had in the > past but one of my servers running FreeBSD will have an uptime of 2 > years tomorrow. I plan on putting on my blog but as it doesn't have > much reach but wanted to share with you since your community has made > this possible. Please indicate where I could post this to have a bit > more reach or if you'd like to put a link to my blog, I'd be more than > happy to provide that. > All this means is that you haven't applied any security patches in the past two years. I don't think it would be wise to advertise that fact on the internet. -- Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/ From nightrecon at verizon.net Wed Oct 8 17:50:09 2008 From: nightrecon at verizon.net (Michael Powell) Date: Wed Oct 8 17:50:16 2008 Subject: php5 segfault References: <48ECACB4.8080103@shopzeus.com> <20081008131248.GA77388@icarus.home.lan> Message-ID: Jeremy Chadwick wrote: > On Wed, Oct 08, 2008 at 02:51:00PM +0200, Laszlo Nagy wrote: [snip] >> >> So it is using -O2 and -pipe. Is this something that I can disable? > > If you want. "make config" in /usr/ports/lang/php5 will give you a > menu option for DEBUG; turn it on. > > I'm not sure what the compile options you're showing have *anything* to > do with the segfault you're reporting. I don't see any backtraces or > details of the segfault. I've used -pipe -O2 for years and never had it cause me trouble. >> It might be because we are using postgresql connections. For pages >> without pgsql connection, there is no segfault. Still using MySQL so I can't speak to PostgreSQL PHP connectivity. > I've personally used PHP5 (as a CGI only, not as an Apache module) > with PostgreSQL and experienced no segfaults. > >> It must be noted that the segfault happens on cleanup. E.g. all web >> sites are working fine, except that we are getting many many segfault >> messages in the logs all the time. This will inhibit performance. The ones that are failing are having the script(s) restarted. If you can fix this performance will improve. > Many people have found that re-ordering the "extensions" lines in > /usr/local/etc/php/extensions.ini has solved odd segfaults. I > personally have never seen this, nor have ever needed to adjust that > file, but it has worked for others. One quickie shortcut to try as experimentation is to just comment out hash.so in extensions.ini. I have had trouble with this one, ie to the extent Apache wouldn't even start. I've read/heard about the reorder thing too and never needed it. What I suspect is there is a possibility that what happened is people went in after the fact and installed xyz extensions after the first main install after discoverring they forgot or left out something they needed. This results in the line(s) just getting tacked on at the bottom. If they had wiped all PHP and done it again from scratch the list in extensions.ini would then be correct. Only a theory on my part. > Also, you cannot use a threaded Apache (e.g. threaded MPMs) with PHP > since not all extensions support threading. Your Apache needs to be > built without threads and use a non-thread model (e.g. prefork). I've > also had success with Apache-ITK-mpm. This is very true for mod_php, but less so if PHP is run as FastCGI. I am currently running a box at work with the event mpm and mod_fcgid for testing and it seems to be doing well. YMMV > Search the mailing lists for this situation, try the recommendations, > and then if nothing fixes it, provide a backtrace. > The normal default of error_reporting = E_ALL & ~E_NOTICE is present, but if you want it to log to it's own file uncomment ;error_log = filename (or syslog if you prefer). You may need to do a 'touch on the and make it's permissions match those the webserver runs under. If things get really bad take a look at http://www.xdebug.org/ I don't think this really belongs on a production machine (IMHO), but I have used it on my development server. Better as a last ditch effort probably. -Mike From perrin at apotheon.com Wed Oct 8 17:50:28 2008 From: perrin at apotheon.com (Chad Perrin) Date: Wed Oct 8 17:50:35 2008 Subject: has anyone actually received a bsdmag ? In-Reply-To: References: <20081007120025.E1003106572D@hub.freebsd.org> <48EB60A3.7090501@kleppnett.no> Message-ID: <20081008174214.GA4704@kokopelli.hydra> On Tue, Oct 07, 2008 at 08:43:29AM -0500, Andrew Gould wrote: > > The BSDMag website mentioned that it would be available at Barnes & Noble. > I couldn't find it there; but I found it at Borders bookstores. I've seen a copy at Barnes & Noble, but I'm more concerned about the fact that Craig B subscribed and hasn't received an issue yet. -- Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ] Common Reformulation of Greenspun's Tenth Rule: Any sufficiently complicated non-Lisp program contains an ad hoc informally-specified bug-ridden slow implementation of half of Common Lisp. -------------- 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/20081008/12f7554f/attachment.pgp From mailing_list at orange.nl Wed Oct 8 18:21:03 2008 From: mailing_list at orange.nl (Aniruddha) Date: Wed Oct 8 18:21:11 2008 Subject: Can't get soundcard to work In-Reply-To: <4463o4qe3c.fsf@be-well.ilk.org> References: <1223412136.3966.10.camel@debian> <4463o4qe3c.fsf@be-well.ilk.org> Message-ID: <1223490072.3978.3.camel@debian> On Tue, 2008-10-07 at 17:39 -0400, Lowell Gilbert wrote: > Aniruddha writes: > > cat dmesg > /dev/dsp > >> su: /dev/dsp: Operation not supported > > > > from pciconf: > >> pcm1@pci0:0:27:0: class=0x040300 card=0x81d81043 chip=0x27d88086 rev=0x01 hdr=0x00 > >> vendor = 'Intel Corporation' > >> device = '82801G (ICH7 Family) High Definition Audio' > >> class = multimedia > > > >> vgapci0@pci0:5:0:0: class=0x030000 card=0xe630174b chip=0x95051002 rev=0x00 hdr=0x00 > >> vendor = 'ATI Technologies Inc' > >> class = display > >> subclass = VGA > >> pcm0@pci0:5:0:1: class=0x040300 card=0xaa18174b chip=0xaa181002 rev=0x00 hdr=0x00 > >> vendor = 'ATI Technologies Inc' > >> class = multimedia > > I think you will need a somewhat recent FreeBSD to support that > controller. What version are you running? > > What drivers have you loaded? snd_driver? > Maybe it's related to my HDMI capable ATI card. Could this interfere? I also tried adding snd_driver_load="YES" to /boot/loader.conf but this didn't help either :( -- Regards, Aniruddha From andrewlylegould at gmail.com Wed Oct 8 18:37:30 2008 From: andrewlylegould at gmail.com (Andrew Gould) Date: Wed Oct 8 18:37:37 2008 Subject: has anyone actually received a bsdmag ? In-Reply-To: <20081008174214.GA4704@kokopelli.hydra> References: <20081007120025.E1003106572D@hub.freebsd.org> <48EB60A3.7090501@kleppnett.no> <20081008174214.GA4704@kokopelli.hydra> Message-ID: On Wed, Oct 8, 2008 at 12:42 PM, Chad Perrin wrote: > On Tue, Oct 07, 2008 at 08:43:29AM -0500, Andrew Gould wrote: > > > > The BSDMag website mentioned that it would be available at Barnes & > Noble. > > I couldn't find it there; but I found it at Borders bookstores. > > I've seen a copy at Barnes & Noble, but I'm more concerned about the fact > that Craig B subscribed and hasn't received an issue yet. > The observation was not intended as a solution. BSDMag has responded 'on list' -- it appeared in my email as a separate thread. Andrew From eitanadlerlist at gmail.com Wed Oct 8 18:44:15 2008 From: eitanadlerlist at gmail.com (Eitan Adler) Date: Wed Oct 8 18:44:22 2008 Subject: uptime 2 years! In-Reply-To: <20081008164540.GA78500@ozzmosis.com> References: <20081008162153.GA80866@icarus.home.lan> <20081008164540.GA78500@ozzmosis.com> Message-ID: <48ECF908.5080100@gmail.com> andrew clarke wrote: > > Is FreeBSD 7.1 2038-proof? ;-) > As far as I know the amd64 version is (anyone care to verify/correct?) -- GNU Key fingerptrint: 2E13 BC16 5F54 0FBD 62ED 42B6 B65F 24AB E9C2 CCD1 From jhb at freebsd.org Wed Oct 8 19:11:02 2008 From: jhb at freebsd.org (John Baldwin) Date: Wed Oct 8 19:11:14 2008 Subject: kernel profiling: spinlock_exit consumes 36% CPU time. In-Reply-To: <000a01c9291a$b81fa560$01000001@china.huawei.com> References: <000a01c9291a$b81fa560$01000001@china.huawei.com> Message-ID: <200810081116.10298.jhb@freebsd.org> On Wednesday 08 October 2008 03:51:48 am ?? wrote: > Many thanks for the information. > > Could we say that interrupt handlers consumed ~36% execution time? > > Is this number too high? Is it possible that we abuse the use of critical > sections in kernel? I think whether or not it is high depends on the workload. -- John Baldwin From keramida at ceid.upatras.gr Wed Oct 8 19:16:22 2008 From: keramida at ceid.upatras.gr (Giorgos Keramidas) Date: Wed Oct 8 19:16:35 2008 Subject: bash script on FreeBSD In-Reply-To: <48EC410C.2030707@muliahost.com> (Kalpin Erlangga Silaen's message of "Wed, 08 Oct 2008 12:11:40 +0700") References: <48EC410C.2030707@muliahost.com> Message-ID: <87wsgidhjh.fsf@kobe.laptop> On Wed, 08 Oct 2008 12:11:40 +0700, Kalpin Erlangga Silaen wrote: > Dear all, > > I am going to extract field username and UID from /etc/passwd and > passed into some scripts. Let say I got line > > admin 100 > admin2 200 > admin3 300 > admin4 400 > > and then I want to echoing into screen: > > admin has uid 100 > admin2 has uid 200 > admin3 has uid 300 > admin4 has uid 400 > > How do I make this with bash script? You don't really need bash for this. Here's a sample awk script that should work: % cat -n /tmp/userlist.awk 1 #!/usr/bin/awk -f 2 3 { 4 print $1,"has uid",$2; 5 } % chmod 0755 /tmp/userlist.awk % cat /tmp/user-data admin 100 admin2 200 admin3 300 admin4 400 % /tmp/userlist.awk < /tmp/user-data admin has uid 100 admin2 has uid 200 admin3 has uid 300 admin4 has uid 400 % From m.seaman at infracaninophile.co.uk Wed Oct 8 19:27:18 2008 From: m.seaman at infracaninophile.co.uk (Matthew Seaman) Date: Wed Oct 8 19:27:25 2008 Subject: mysql binlogs and their expiry times In-Reply-To: <94136a2c0810072248t7143c6am7b5740a7d770317d@mail.gmail.com> References: <94136a2c0810072248t7143c6am7b5740a7d770317d@mail.gmail.com> Message-ID: <48ED0986.6060100@infracaninophile.co.uk> Zbigniew Szalbot wrote: > Hi there, > > I hope someone can help. Due to they way my HD has been sliced I had > to move mysql database to /usr/local/mysql. All works fine. Last week > I added this entry > > #expire bin logs > expire_logs_days = 7 > > to /usr/local/mysql/my.cnf > > I restarted the MySQL server and now I have been waiting for the > binlogs to automatically expire but this is not happening: > > $ ls -l /usr/local/mysql > > -r--r--r-- 1 mysql mysql 4954 Oct 1 07:30 my.cnf > drwx------ 2 mysql mysql 1536 Sep 27 07:10 mysql > -rw-rw---- 1 mysql mysql 1073745213 Sep 2 04:07 mysql-bin.000047 > -rw-rw---- 1 mysql mysql 1073746878 Sep 7 03:48 mysql-bin.000048 > -rw-rw---- 1 mysql mysql 1073745707 Sep 11 20:07 mysql-bin.000049 > -rw-rw---- 1 mysql mysql 175527890 Sep 12 08:32 mysql-bin.000050 > -rw-rw---- 1 mysql mysql 128272 Sep 12 08:40 mysql-bin.000051 > -rw-rw---- 1 mysql mysql 1073745119 Sep 17 04:35 mysql-bin.000052 > -rw-rw---- 1 mysql mysql 1073747657 Sep 22 04:26 mysql-bin.000053 > -rw-rw---- 1 mysql mysql 1073744456 Sep 27 03:28 mysql-bin.000054 > -rw-rw---- 1 mysql mysql 986782722 Oct 1 07:32 mysql-bin.000055 > -rw-rw---- 1 mysql mysql 1073742442 Oct 6 04:18 mysql-bin.000056 > -rw-rw---- 1 mysql mysql 536487381 Oct 8 07:45 mysql-bin.000057 > -rw-r----- 1 mysql mysql 209 Oct 6 04:18 mysql-bin.index > > Do you have any idea why? Or if /usr/local/mysql/ is a correct > location for my.cnf file? Perhaphs it should go to /usr/local/etc/ ? > > If it matters, I use > $ pkg_info -Ix mysql-s > mysql-server-5.0.67 Multithreaded SQL database (server) > from ports. > What's the output from running this SQL: "SHOW BINARY LOGS ;" ? MySQL can get confused if you physically move the data directory -- especially if you set the logging directory explicitly in my.cnf rather than just accepting the default location. Look at the mysql-bin.index file -- it's pure ascii text -- and it should list all the known binlog file names. If what you have doesn't correspond with reality, then stop the mysql process, edit that index file back into sanity and restart mysql. Easy. 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: 258 bytes Desc: OpenPGP digital signature Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081008/e56f0c68/signature.pgp From mikesw at adhost.com Wed Oct 8 19:29:09 2008 From: mikesw at adhost.com (Mike Sweetser - Adhost) Date: Wed Oct 8 19:29:16 2008 Subject: Unexpected PF Round Robin Behavior Message-ID: <17838240D9A5544AAA5FF95F8D52031604BE314F@ad-exh01.adhost.lan> Hello: We're noticing some unexpected behavior regarding load balancing with our FreeBSD 6.2 server running PF. We have a pool set up for a two-server cluster: table persist { \ 192.168.1.183 \ 192.168.2.183 \ } web_183_ext="xxx.xxx.xxx.183" And the following rdr rule to handle it: rdr on ! $vlanX_if proto { udp tcp } from any to $web_183_ext port { 80 443 } -> round-robin sticky-address It's working - too well. We're noticing that it's round-robining not only based on the IP address, but the port as well - connections from the same machine to ports 80 and 443 are hitting different servers: self tcp 192.168.1.183:80 <- xxx.xxx.xxx.183:80 <- yyy.yyy.yyy.80:53601 FIN_WAIT_2:FIN_WAIT_2 self tcp 192.168.1.183:80 <- xxx.xxx.xxx.183:80 <- yyy.yyy.yyy.80:53602 FIN_WAIT_2:FIN_WAIT_2 self tcp 192.168.1.183:80 <- xxx.xxx.xxx.183:80 <- yyy.yyy.yyy.80:53603 ESTABLISHED:ESTABLISHED self tcp 192.168.2.183:443 <- xxx.xxx.xxx.183:443 <- yyy.yyy.yyy.80:53604 FIN_WAIT_2:FIN_WAIT_2 self tcp 192.168.2.183:443 <- xxx.xxx.xxx.183:443 <- yyy.yyy.yyy.80:53605 ESTABLISHED:ESTABLISHED Is there any way to set this so that a given client IP will hit the same server in the pool, regardless of port? Thank You, Mike Sweetser -------------------------- Mike Sweetser | Systems Administrator Adhost Internet 140 Fourth Avenue North, Suite 360, Seattle, Washington 98109 USA P 206.404.9000 T 888.234.6781 (ADHOST-1) F 206.404.9050 W adhost.com Our brand new Adhost West data center is open - contact us for a tour at 1-888-234-6781 (ADHOST-1) From brde at optusnet.com.au Wed Oct 8 19:32:40 2008 From: brde at optusnet.com.au (Bruce Evans) Date: Wed Oct 8 19:32:58 2008 Subject: kernel profiling: spinlock_exit consumes 36% CPU time. In-Reply-To: <200810070938.04673.jhb@freebsd.org> References: <004001c92871$fdec0a10$01000001@china.huawei.com> <200810070938.04673.jhb@freebsd.org> Message-ID: <20081008210104.S20625@delplex.bde.org> On Tue, 7 Oct 2008, John Baldwin wrote: > On Tuesday 07 October 2008 07:44:00 am Ηρ½£ wrote: >> Hi, folks, >> >> I did kernel profiling when a single thread client sends UDP packets to a >> single thread server on the same machine. >> >> In the output kernel profile, the first few kernel functions that consumes >> the most CPU time are listed below: >> >> granularity: each sample hit covers 16 byte(s) for 0.01% of 25.68 seconds >> >> % cumulative self self total >> time seconds seconds calls ms/call ms/call name >> 42.4 10.88 10.88 0 100.00% __mcount [1] >> 36.1 20.14 9.26 17937541 0.00 0.00 spinlock_exit [4] >> 4.2 21.22 1.08 3145728 0.00 0.00 in_cksum_skip [40] >> 1.8 21.68 0.45 7351987 0.00 0.00 generic_copyin [43] >> 1.1 21.96 0.29 3146028 0.00 0.00 generic_copyout [48] >> 1.0 22.21 0.24 2108904 0.00 0.00 Xint0x80_syscall [3] >> 0.8 22.42 0.21 6292131 0.00 0.00 uma_zalloc_arg [46] >> 0.8 22.62 0.20 1048576 0.00 0.00 soreceive_generic [9] >> >> It is very strange that spinlock_exit consumes over 36% CPU time while it >> seems a very simple function. > > It's because the intr_restore() re-enables interrupts and the resulting time > spent executing the handlers for any pending interrupts are attributed to > spinlock_exit(). This is one of many defects that are not present in high resolution kernel profiling (kgmon -B instead of kgmon -b; availaible on amd64 and i386). However, high resolution kernel profiling doesn't work right with SMP, and was completely broken by gcc-4. Ordinary profiling was less completely broken by gcc-4, and you can recover the old behaviour by turning off new optimizations (mainly -funit-at-a-time and/or -finline-functions-called-once and or all of -O2). Bruce From martin at dc.cis.okstate.edu Wed Oct 8 19:42:58 2008 From: martin at dc.cis.okstate.edu (Martin McCormick) Date: Wed Oct 8 19:43:15 2008 Subject: Can an Account be Locked out for ssh but allow su? Message-ID: <200810081942.m98JgvvH006080@dc.cis.okstate.edu> Is there a way to configure an account such that one can su - this-account from another login on the system, but not ssh directly in to it from the outside, similar to the way root works if you set the terminal type in /etc/ttys to insecure? The idea is to make a common place for group projects but know who logged in and su'd in to this common space. We don't care if they logged in as themselves via ssh but we do care if they log in as this common user because we then don't know who accidentally deleted all the files or whatever accident one can imagine. Martin McCormick WB5AGZ Stillwater, OK Systems Engineer OSU Information Technology Department Telecommunications Services Group From fcondo at quinn.com Wed Oct 8 19:50:54 2008 From: fcondo at quinn.com (Fred Condo) Date: Wed Oct 8 19:51:02 2008 Subject: php5 segfault In-Reply-To: References: <48ECACB4.8080103@shopzeus.com> <20081008131248.GA77388@icarus.home.lan> Message-ID: On Oct 8, 2008, at 10:53 AM, Michael Powell wrote: > Jeremy Chadwick wrote: > >> On Wed, Oct 08, 2008 at 02:51:00PM +0200, Laszlo Nagy wrote: > [snip] >>> >>> So it is using -O2 and -pipe. Is this something that I can disable? >> >> If you want. "make config" in /usr/ports/lang/php5 will give you a >> menu option for DEBUG; turn it on. >> >> I'm not sure what the compile options you're showing have >> *anything* to >> do with the segfault you're reporting. I don't see any backtraces or >> details of the segfault. > > I've used -pipe -O2 for years and never had it cause me trouble. > >>> It might be because we are using postgresql connections. For pages >>> without pgsql connection, there is no segfault. > > Still using MySQL so I can't speak to PostgreSQL PHP connectivity. > >> I've personally used PHP5 (as a CGI only, not as an Apache module) >> with PostgreSQL and experienced no segfaults. >> >>> It must be noted that the segfault happens on cleanup. E.g. all web >>> sites are working fine, except that we are getting many many >>> segfault >>> messages in the logs all the time. > > This will inhibit performance. The ones that are failing are having > the > script(s) restarted. If you can fix this performance will improve. > >> Many people have found that re-ordering the "extensions" lines in >> /usr/local/etc/php/extensions.ini has solved odd segfaults. I >> personally have never seen this, nor have ever needed to adjust that >> file, but it has worked for others. > > One quickie shortcut to try as experimentation is to just comment out > hash.so in extensions.ini. I have had trouble with this one, ie to the > extent Apache wouldn't even start. > > I've read/heard about the reorder thing too and never needed it. > What I > suspect is there is a possibility that what happened is people went in > after the fact and installed xyz extensions after the first main > install > after discoverring they forgot or left out something they needed. This > results in the line(s) just getting tacked on at the bottom. If they > had > wiped all PHP and done it again from scratch the list in > extensions.ini > would then be correct. Only a theory on my part. > >> Also, you cannot use a threaded Apache (e.g. threaded MPMs) with PHP >> since not all extensions support threading. Your Apache needs to be >> built without threads and use a non-thread model (e.g. prefork). >> I've >> also had success with Apache-ITK-mpm. > > This is very true for mod_php, but less so if PHP is run as FastCGI. > I am > currently running a box at work with the event mpm and mod_fcgid for > testing and it seems to be doing well. YMMV > >> Search the mailing lists for this situation, try the recommendations, >> and then if nothing fixes it, provide a backtrace. >> > > The normal default of error_reporting = E_ALL & ~E_NOTICE is > present, but if > you want it to log to it's own file uncomment ;error_log = filename > (or > syslog if you prefer). You may need to do a 'touch on the > and > make it's permissions match those the webserver runs under. > > If things get really bad take a look at http://www.xdebug.org/ > I don't think this really belongs on a production machine (IMHO), > but I have > used it on my development server. Better as a last ditch effort > probably. > > -Mike Have a look at http://www.pingle.org/2007/09/22/php-crashes-extensions-workaround PHP extensions have to be loaded in a particular order to avoid the segfaults at cleanup. From lists at rhavenn.net Wed Oct 8 20:23:04 2008 From: lists at rhavenn.net (Henrik Hudson) Date: Wed Oct 8 20:23:11 2008 Subject: Can an Account be Locked out for ssh but allow su? In-Reply-To: <200810081942.m98JgvvH006080@dc.cis.okstate.edu> References: <200810081942.m98JgvvH006080@dc.cis.okstate.edu> Message-ID: <200810081222.58010.lists@rhavenn.net> On Wednesday 08 October 2008, Martin McCormick sent a missive stating: > Is there a way to configure an account such that one can > su - this-account from another login on the system, but not ssh > directly in to it from the outside, similar to the way root > works if you set the terminal type in /etc/ttys to insecure? Check the sshd_config man page for AllowUsers and DenyUsers directives. THis should do what you want. Henrik -- Henrik Hudson lists@rhavenn.net ------------------------------ "God, root, what is difference?" Pitr; UF (http://www.userfriendly.org/) From mailing_list at orange.nl Wed Oct 8 20:42:34 2008 From: mailing_list at orange.nl (Aniruddha) Date: Wed Oct 8 20:42:41 2008 Subject: What is a recommended soundcard for FreeBSD? Message-ID: <1223498563.3978.19.camel@debian> Because of the problems with my onboard Intel HDA audio chip I plan to buy a soundcard that is supported by FreeBSD. Question is which soundcard has great quality, comes with hardware mixing and is (natively) supported by FreeBSD? The Creative X-fi cards fits in this profile and I see that they are supported by FreeBSD. Who has experience with these cards in FreeBSD? Are they 100% supported? Are there any alternatives? Thanks in advance! -- Regards, Aniruddha From martin at dc.cis.okstate.edu Wed Oct 8 20:54:20 2008 From: martin at dc.cis.okstate.edu (Martin McCormick) Date: Wed Oct 8 20:54:27 2008 Subject: Can an Account be Locked out for ssh but allow su? Message-ID: <200810082054.m98KsJhR018475@dc.cis.okstate.edu> Henrik Hudson writes: > Check the sshd_config man page for AllowUsers and DenyUsers directives. Many thanks. DenyUsers did the trick. From wahjava.ml at gmail.com Wed Oct 8 20:56:51 2008 From: wahjava.ml at gmail.com (=?utf-8?B?4KSG4KS24KWA4KS3IOCktuClgeCkleCljeCksg==?= Ashish Shukla) Date: Wed Oct 8 20:56:59 2008 Subject: Ekiga segfaulting with stack overflow Message-ID: <20081008205717.GA51954@chateau.d.lf> Hi all, I'm experiencing following issue with ekiga-2.0.11_4 package. ----8<----8<----- % gdb `which ekiga` GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"... (gdb) run Starting program: /usr/local/bin/ekiga [New LWP 100218] [New Thread 0x80a701120 (LWP 100218)] [New Thread 0x80a701400 (LWP 100257)] [New Thread 0x80a701570 (LWP 100258)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x80a701120 (LWP 100218)] 0x0000000808fc4a82 in __opendir2 (name=0x80c5ade40 "/dev/ext2fs/", flags=3) at /usr/src/lib/libc/gen/opendir.c:77 77 if (stat(name, &statb) != 0) Current language: auto; currently c (gdb) bt #0 0x0000000808fc4a82 in __opendir2 (name=0x80c5ade40 "/dev/ext2fs/", flags=3) at /usr/src/lib/libc/gen/opendir.c:77 #1 0x0000000807ca8f27 in PDirectory::Open (this=0x7fffffc007b0, ScanMask=511) at osutil.cxx:546 #2 0x000000080aa18b7c in CollectSoundDevices (devdir=@0x7fffffc007b0, dsp=@0x7fffffffe0b0, mixer=@0x7fffffffe090, collect_with_names=1) at sound_oss.cxx:347 #3 0x000000080aa18c4c in CollectSoundDevices (devdir=@0x7fffffc00b70, dsp=@0x7fffffffe0b0, mixer=@0x7fffffffe090, collect_with_names=1) at sound_oss.cxx:354 #4 0x000000080aa18c4c in CollectSoundDevices (devdir=@0x7fffffc00f30, dsp=@0x7fffffffe0b0, mixer=@0x7fffffffe090, collect_with_names=1) at sound_oss.cxx:354 #5 0x000000080aa18c4c in CollectSoundDevices (devdir=@0x7fffffc012f0, dsp=@0x7fffffffe0b0, mixer=@0x7fffffffe090, collect_with_names=1) at sound_oss.cxx:354 #6 0x000000080aa18c4c in CollectSoundDevices (devdir=@0x7fffffc016b0, dsp=@0x7fffffffe0b0, mixer=@0x7fffffffe090, collect_with_names=1) at sound_oss.cxx:354 #7 0x000000080aa18c4c in CollectSoundDevices (devdir=@0x7fffffc01a70, dsp=@0x7fffffffe0b0, mixer=@0x7fffffffe090, collect_with_names=1) at sound_oss.cxx:354 #8 0x000000080aa18c4c in CollectSoundDevices (devdir=@0x7fffffc01e30, dsp=@0x7fffffffe0b0, mixer=@0x7fffffffe090, collect_with_names=1) at sound_oss.cxx:354 #9 0x000000080aa18c4c in CollectSoundDevices (devdir=@0x7fffffc021f0, dsp=@0x7fffffffe0b0, mixer=@0x7fffffffe090, collect_with_names=1) at sound_oss.cxx:354 #10 0x000000080aa18c4c in CollectSoundDevices (devdir=@0x7fffffc025b0, dsp=@0x7fffffffe0b0, mixer=@0x7fffffffe090, c