Re: PS/2 problems
Hi Tanner, On 27/07/07, Tanner Currie [EMAIL PROTECTED] wrote: Hi I just installed FreeBSD 6.2 and it's working great except my keyboard (PS/2 connected) cuts in and out. I tested the keyboard which works perfectly on another machine. It will work fine for 5 or 10 minutes and then it cuts in and out (it also beeps sometimes before it dies). I was suspicious of a purely physical problem but sometimes it will be completely unresponsive and 30 seconds later it will puke out everything I was trying to type. I also plugged in a PS/2 to USB adapter thinking I could try a different door but that was completely dead (I don't know how to diagnose the USB connection). Any advise? I don't remember that a PS/2 keyboard contains some sort of buffer that can store several key presses. What you describe sounds as if some part of your kernel locks up. Maybe you've got an interrupt problem somewhere, or some other piece of hardware is broken. Firstly, what configuration do you have? Are you using a GENERIC kernel, or one you compiled on your own? In case you built your own kernel: Does this happen when you switch to GENERIC, too? What HW are you on? An output of dmesg would be great here. Is your system networked? If your answer is yes here: When the problem occurs, are you able to access the machine from another computer? E.g. does it respond to anything from a remote machine? Christian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: awk question
awk '{print $(NF-1)}' user.csv Yup, those blank lines will kill it for sure. A sed filter to remove blank lines ahead of the awk statement should allow it to work properly. Or awk only i.e. no sed: awk '!(/^$/) { print $(NF-1) }' user.csv -- Nino ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
mysql upgrade from 5.0.27 to 5.0.45
Hello, I currently have mysql Ver 14.12 Distrib 5.0.27. I can see that the most current ports version is 5.0.45. So I tried to portupgrade and it tells me: --- Session started at: Fri, 27 Jul 2007 09:17:39 +0200 ** No need to upgrade 'mysql-server-5.0.45' (= mysql-server-5.0.45). (specify -f to force) --- ** Upgrade tasks 1: 0 done, 1 ignored, 0 skipped and 0 failed --- Listing the results (+:done / -:ignored / *:skipped / !:failed) - databases/mysql50-server (mysql-server-5.0.45) --- Packages processed: 0 done, 1 ignored, 0 skipped and 0 failed --- Session ended at: Fri, 27 Jul 2007 09:17:44 +0200 (consumed 00:00:04) I know I can use -f to upgrade but why would it say that there is no need to upgrade when the versions differ so much? Thank you in advance! -- Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
GEOM_MIRROR: Device gm0: provider ad0 disconnected
Hello, I have a FreeBSD 5.3 system with two IDE disks. This is the dmesg at boot time: ad0: 117246MB Maxtor 6B120P0/BAH41G10 [238216/16/63] at ata0-master UDMA100 ad2: 117246MB Maxtor 6Y120L0/YAR41BW0 [238216/16/63] at ata1-master UDMA100 GEOM_MIRROR: Device gm0 created (id=2190829866). GEOM_MIRROR: Device gm0: provider ad0 detected. GEOM_MIRROR: Device gm0: provider ad2 detected. GEOM_MIRROR: Device gm0: provider ad2 activated. GEOM_MIRROR: Device gm0: provider mirror/gm0 launched. GEOM_MIRROR: Device gm0: rebuilding provider ad0. GEOM_MIRROR: Device gm0: provider ad0 disconnected. The problem is that after reboot the gm0 mirror is DEGRADED. Why? After I gmirror forget it and then gmirror insert it back, it is COMPLETE again. I have tried to read all sectors of the drive but the drive seem not to be failing (smartctl also shows no indication of an error). This started to happen after a while; before (quite some time after gmirror was set up), everything worked perfectly. Any ideas? Thanks, Nejc ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
mechanical drawing program
I do a little woodworking and would like to use a computer drawing program where I could create some mechanical drawings for various jigs and projects I do. Mostly simple things, but would also like to be able to handle some curves if I ever get ambitious enough to design a stripper canoe. I'd like to be able to have proper scaled dimensions and such. The cad ports section seems to be all electrical CAD instead of mechanical and the graphics section is quite large. Does anyone have a recommendation for a ports mechanical drawing package ? Thanks Chris Kottaridis([EMAIL PROTECTED]) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: make buildworld fails on 6.2-STABLE
On Thu, Jul 26, 2007 at 11:12:26AM -0500, J.D. Bronson wrote: so I deleted /usr/src redownloaded from a different mirror and tried make buildworld again... It still failed -but this time at a different point: Standard behaviour of failing hardware - most likely memory. -- Jonathan Chen [EMAIL PROTECTED] -- Experience is a hard teacher because she gives the test first, the lesson afterwards ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Simple SMTP forwarder
Hi, I need a daemon that will accept SMTP connections and will call the 'sendmail' command to have them transported. I should be able to configure it so it will only accept connections from certain IP addresses. Is there a small, simple and elegant daemon available for this, or will I have to use something like Sendmail, Postfix or qmail? Suggestions are welcome! Ernst PS. In my case, I will configure the 'sendmail' command in /etc/mail/ mailer.conf to forward to the 'ssmtp' command (the mail/ssmtp port). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mysql upgrade from 5.0.27 to 5.0.45
Zbigniew Szalbot wrote: Hello, I currently have mysql Ver 14.12 Distrib 5.0.27. I can see that the most current ports version is 5.0.45. So I tried to portupgrade and it tells me: --- Session started at: Fri, 27 Jul 2007 09:17:39 +0200 ** No need to upgrade 'mysql-server-5.0.45' (= mysql-server-5.0.45). (specify -f to force) --- ** Upgrade tasks 1: 0 done, 1 ignored, 0 skipped and 0 failed --- Listing the results (+:done / -:ignored / *:skipped / !:failed) - databases/mysql50-server (mysql-server-5.0.45) --- Packages processed: 0 done, 1 ignored, 0 skipped and 0 failed --- Session ended at: Fri, 27 Jul 2007 09:17:44 +0200 (consumed 00:00:04) I know I can use -f to upgrade but why would it say that there is no need to upgrade when the versions differ so much? Thank you in advance! According to your portupgrade messages, you ALREADY have mysql 5.0.45. Are you quite sure about the installed version? It might be an error of portupgrade or something wrong with your package database, but I surely haven't seen it before. Why don't you just confirm your installed version with something like: pkg_info | grep -i mysql-server In my system this actually shows 5.0.45, and I started with 5.0.2x something. I didn't even realise when it was upraded. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mysql upgrade from 5.0.27 to 5.0.45
Hello, On Fri, 27 Jul 2007 11:06:42 +0300, Manolis Kiagias [EMAIL PROTECTED] wrote: Zbigniew Szalbot wrote: Hello, I currently have mysql Ver 14.12 Distrib 5.0.27. I can see that the most current ports version is 5.0.45. So I tried to portupgrade and it tells me: --- Session started at: Fri, 27 Jul 2007 09:17:39 +0200 ** No need to upgrade 'mysql-server-5.0.45' (= mysql-server-5.0.45). (specify -f to force) --- ** Upgrade tasks 1: 0 done, 1 ignored, 0 skipped and 0 failed --- Listing the results (+:done / -:ignored / *:skipped / !:failed) - databases/mysql50-server (mysql-server-5.0.45) --- Packages processed: 0 done, 1 ignored, 0 skipped and 0 failed --- Session ended at: Fri, 27 Jul 2007 09:17:44 +0200 (consumed 00:00:04) I know I can use -f to upgrade but why would it say that there is no need to upgrade when the versions differ so much? Thank you in advance! According to your portupgrade messages, you ALREADY have mysql 5.0.45. Are you quite sure about the installed version? It might be an error of portupgrade or something wrong with your package database, but I surely haven't seen it before. Why don't you just confirm your installed version with something like: pkg_info | grep -i mysql-server In my system this actually shows 5.0.45, and I started with 5.0.2x something. I didn't even realise when it was upraded. Yes, indeed I now know what happened. The *-server version got upgraded and I was unaware that *-client stayed at 0.27. I was sure that upgrading *-server will upgrade *-client too. Apparently it did not happen: $ pkg_info -Ix mysql mysql-client-5.0.27 Multithreaded SQL database (client) mysql-server-5.0.45 Multithreaded SQL database (server) I guess this is something I can fix by setting appropriate option in pkgtools.conf? Thanks for your explanation! -- Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: porteasy vs portupgrade
On Thu, 26 Jul 2007 18:02:21 +0100 Adam J Richardson [EMAIL PROTECTED] wrote: To upgrade all ports plus deps, I use sudo portupgrade -aRr, usually inside a screen session so I can disconnect and go do something else for a while, like sleep. [I can't remember what the flags do, I just pretend to be a pirate when I want to upgrade my apps. :P ] I'm sure portmaster is just as easy. There was just something about it I didn't like. Is there a tutorial out there somewhere that tells people to use -aRr? The number of times I see this in FreeBSD related fora is unreal. From portupgrade(1): -a Do with all the installed packages. -r Act on all those packages depending on the given packages as well. -RAct on all those packages required by the given packages as well. Both -r and -R are utterly redundant when used with the -a flag. I think somebody out there has shares in a company that manufactures replacement r keys... -fr. -- Feargal Reilly, Chief Techie, FBI. PGP Key: 0xBD252C01 (expires: 2006-11-30) Web: http://www.fbi.ie/ | Tel: +353.14988588 | Fax: +353.14988489 Communications House, 11 Sallymount Avenue, Ranelagh, Dublin 6. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: mysql upgrade from 5.0.27 to 5.0.45
Zbigniew Szalbot wrote: Yes, indeed I now know what happened. The *-server version got upgraded and I was unaware that *-client stayed at 0.27. I was sure that upgrading *-server will upgrade *-client too. Apparently it did not happen: $ pkg_info -Ix mysql mysql-client-5.0.27 Multithreaded SQL database (client) mysql-server-5.0.45 Multithreaded SQL database (server) I guess this is something I can fix by setting appropriate option in pkgtools.conf? Thanks for your explanation! They don't seem to have a dependency on each other, so it is quite normal for one to stay at a previous version if you upgrade the other manually. I usually portupgrade -a my system so I never noticed it. As for pkgtools.conf quite a few settings are there, but I never really messed with it, can't really tell if it can make a difference ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: recover corrupt 6.2 installation
Hi Phil, [or is it Alain?] Alain wrote: It looks like the / partition is corrupt. snip Now, on bootup, the hdd appears to be read correctly but the messages come up: fsck: Bad file descriptor Unknown error; help! init: /rescue/sh on /etc/rc terminated abnormally, going to single user mode If you have a friend with a CD burner, how about using FreeSBIE? At least that will get you a working FreeBSD system to work with. Then you can examine the drive further. Might be a good idea to mount the damaged drive read only, so you don't do further damage. HtH, Adam J Richardson ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: panic : swap_pager
Hi, Cannot dump. No dump device defined. At least I know what this means. If you don't define a dump device, the swapper can't dump the corrupted swap data anywhere so you can analyse it later. Rather than explain here I recommend you, and everyone else in fact, read and digest these tutorials. http://www.onlamp.com/pub/a/bsd/2002/03/21/Big_Scary_Daemons.html http://www.onlamp.com/pub/a/bsd/2002/04/04/Big_Scary_Daemons.html They're a little out of date but still work perfectly well. I managed to help Ben Close stomp a bug in the wpi driver after reading these tutorials. All hail Michael Lucas. :P HtH Adam J Richardson ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Redirect Incoming port 80 connections to port 8080.
On 07/26/2007 04:51 PM, Jeff Hedley wrote: I am having a problem getting a Dansguardian + Squid transparent proxying system going for a client. The following is what i want to do, but cannot figure out how to get it working using ipfw + natd: [Host] - 10.0.0.150/24 - sends request to router google.com:80 | | | v [Router] - 10.0.0.1/24 - receives request for google.com:80 but sets | proxy server as next hop for transparent proxy purposes. |- Not transparently proxyed yet. | v [FreeBSD Proxy] - 10.0.0.2/24 - receives request for google.com:80 | - request gets transparently proxied to 10.0.0.2:8080 | (this is the part I don't know how to do). | - runs through Dans, then Squid. | - Squid sends request out to router again. | - Outing squid requests get NATed to 10.0.0.2 (also | don't know how to do this). | v [Router] - 10.0.0.1/24 - receives the request for google.com again, | but request is allowed through since it's coming from | 10.0.0.2. | v (interweb) Can you tell me how I would setup the FreeBSD box to do what i want using ipfw and natd? Here's some more infos: By doing a tcpdump i could see that the packets come into the FreeBSD box like this: 11:54:57.763623 IP 10.0.0.150.3628 64.233.167.147.80: S 2718548697:2718548697(0) win 16384 mss 1460,nop,nop,sackOK 11:54:57.763662 IP 10.0.0.150.3628 64.233.167.147.80: S 2718548697:2718548697(0) win 16384 mss 1460,nop,nop,sackOK 11:54:57.763677 IP 10.0.0.2 10.0.0.150: icmp 36: redirect 64.233.167.147 to host 10.0.0.1 11:54:57.763757 IP 10.0.0.150.3628 64.233.167.147.80: S 2718548697:2718548697(0) win 16384 mss 1460,nop,nop,sackOK 11:54:57.763768 IP 10.0.0.150.3628 64.233.167.147.80: S 2718548697:2718548697(0) win 16384 mss 1460,nop,nop,sackOK 11:54:57.763773 IP 10.0.0.2 10.0.0.150: icmp 36: redirect 64.233.167.147 to host 10.0.0.1 11:54:57.763861 IP 10.0.0.150.3628 64.233.167.147.80: S 2718548697:2718548697(0) win 16384 mss 1460,nop,nop,sackOK 11:54:57.763870 IP 10.0.0.150.3628 64.233.167.147.80: S 2718548697:2718548697(0) win 16384 mss 1460,nop,nop,sackOK 11:54:57.763875 IP 10.0.0.2 10.0.0.150: icmp 36: redirect 64.233.167.147 to host 10.0.0.1 11:54:57.763964 IP 10.0.0.150.3628 64.233.167.147.80: S 2718548697:2718548697(0) win 16384 mss 1460,nop,nop,sackOK 11:54:57.763974 IP 10.0.0.150.3628 64.233.167.147.80: S 2718548697:2718548697(0) win 16384 mss 1460,nop,nop,sackOK snip I tried turning off the ICMP redirect packets by setting the following: sysctl -w net.inet.icmp.drop_redirect=1 sysctl -w net.inet.icmp.log_redirect=1 sysctl -w net.inet.ip.redirect=0 But the packet dumps don't change much: The icmp 36 redirect lines simply aren't there anymore. This is the ipfw line i'm using: /sbin/ipfw add divert natd tcp from not 10.0.0.2 to any dst-port 80 via en0 and it seems no matter what natd command i use, nothing gets diverted to natd: I run natd in verbose mode and nothing ever appears on stdout except for the following line: natd[2570]: Aliasing to 10.0.0.2, mtu 1500 bytes I can forward all the natd configurations I've tried as well if anyone's interested. Any help you all could offer would be greatly appreciated. -- Jeff Hedley TC Networks, Inc. signature.asc Description: OpenPGP digital signature
updating mysql database
David Banning writes: I installed mysql 5.1 on a new system and I want to run a 4.1 database. I notice that not all tables work. Is there a conversion to take the database from 4.1 to 5.1? It is my understanding that you will have to dump (using the appropriate MySQL utilities) the database, the import it to the new version. But you should check the documentation for the official policy. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
updating mysql database
I installed mysql 5.1 on a new system and I want to run a 4.1 database. I notice that not all tables work. Is there a conversion to take the database from 4.1 to 5.1? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: porteasy vs portupgrade
Hi Fergal, Ack! I mean Feargal! Sorry... Adam J Richardson ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ISC bind9 with dynamic DNS update (chroot problem)
Hi I use FreeBSD 6.2 and the base bind9. For dynamic DNS update, bind9 automatically generate the journal file (end in .jnl). The default config is to use chroot and the running user as 'bind'. The problem is that after named is started (/etc/init.d/named start), the default chroot directory /var/named/etc/named permission will be reset to own by root. So the named daemon (run as user 'bind') cannot create the journal file and complain: Jul 27 21:06:54 fbsd62 named[2862]: general: localdomain.db.jnl: create: permission denied One temp fix is to use chroot and run as root, any suggestions? Regards Patrick Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545469 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't burn cds
Sam Lawrance wrote: On 27/07/2007, at 12:35 PM, Paul Schmehl wrote: --On July 26, 2007 5:59:01 PM -0500 Josh Paetzel [EMAIL PROTECTED] wrote: camcontrol isn't going to know anything about IDE devices, it only knows about SCSI. So why does it show the first cd, which is also ide? The device listed by camcontrol seems to be an external hard drive. That said, I think it's possible for camcontrol to talk to IDE devices via atapicam. according to http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html if you dont want to use burncd for burning CDROMSs you need to use atapicam (section 18.6.9) either kldload atapicam or add the following line to the /boot/loader.conf file: atapicam_load=YES then, reboot your machine. As root, you can run the following command to get the SCSI address of the burner: # camcontrol devlist This didnt work for me last time I tried for some reason but I usually just use burncd anyway. Vince ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: stop portmanager from building mysql-client-4.1.22
Gerard wrote: On July 25, 2007 at 12:14PM Noah wrote: Even with the following IGNORE settings mysql-4.1.22 is still attempting to be built. # grep IGNORE /usr/local/etc/portmanager/pm-020.conf #IGNORE|editors/openoffice*| #IGNORE|java/jdk14| IGNORE|www/apache13| IGNORE|www/apache13*| IGNORE|www/mod_perl| IGNORE|net/openldap23-client| IGNORE|net/openldap23-client*| IGNORE|databases/mysql4*-client| IGNORE|databases/mysql4*-server*| IGNORE|databases/mysql3*-client| IGNORE|databases/postgresql*| Probably should be: IGNORE|databases/mysql41-server| See if that works. The '*' after server might be screwing thing up. Ypu might try this also: IGNORE|databases/mysql4*| That should prevent any version '4' of mysql being build. How about the HOLD_PKGS section in /usr/local/etc/pkgtools.conf? Does portmanager pay attention to pkgtools.conf? HtH, Adam J Richardson ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ICH8R and SATA drives at boot
Bruce Caruthers wrote: During boot, it takes about one minute for every drive I have attached to the SATA ports before I get the listing of detected drives and RAID arrays (Press Ctrl-I to ...). snip Is this normal? I'm thinking it isn't, since I cannot seem to find anyone complaining about it on any message boards. Hi Bruce, Your system sounds a lot like my HP e800 NetServer, internals unknown. It has one IDE hard disk and takes about a minute to get past the BIOS boot screen. :/ Also, it doesn't reboot. You have to press the power switch, wait, and press it again. No remote reboots for me. And FreeBSD 6.2-RELEASE-p3 doesn't start the second CPU, for some reason. So you're not alone in having unreasonable and uncooperative hardware. These things just don't bother me enough to get me talking about it much. [It's FreeBSD! Who reboots? :D ] Adam J Richardson ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Simple SMTP forwarder
On 2007-07-27 09:40, Ernst de Haan [EMAIL PROTECTED] wrote: Hi, I need a daemon that will accept SMTP connections and will call the 'sendmail' command to have them transported. I should be able to configure it so it will only accept connections from certain IP addresses. That's precisely the reason why Sendmail exists. Why do you have to use something else? It should be relatively painless to set up Sendmail to accept incoming email from a specific set of hosts/addresses using any method you find more convenient: * Firewall rules which block access to port *:smtp from hosts which should not be able to access it. * /etc/hosts.deny controls * The /etc/mail/access file of Sendmail itself. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: make and gmake on FreeBSD
Hi. See below. Lots of software sources are configured with GNU autotools, which is why a lot of third party software will only compile with GNU make. In the case of dealii, not only are its sources configured with autotools, but I looked at their docs and at http://www.dealii.org/developer/index.html you can plainly see that they use GNU make, version 3.78 or later. I'm not sure where the confusion is ... but it seems like you think you have to invoke GNU make under the moniker 'make'. But you don't, it's just a Linux convention to have GNU make installed as 'make'. The root of confusion is not in FreeBSD :) but in my thinking. I totally forgot about the existence of BSD make untill it came back to me: During installation of ATLAS some shell script or C program calls 'make' by the name make, and I totally forgot it can be not the 'make' I called the build process with. After I was explained about it (by ATLAS people), everything went just fine. Thanks, Dima. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: make and gmake on FreeBSD
Written by Dima Sorkin on 07/26/07 16:37 Hi. Thank you very much. See below. Regards, Dima. On 7/27/07, Nikola Lecic wrote: No, make (BSD make) is a part of FreeBSD, gmake (GNU make) is a third-party application, available through devel/gmake port. They _are_ different. Yes, I forgot there was an alias. See at the bottom of the message. and only with gmake I succeed to build serious projects. This is very interesting observation, could you expand on this? Well, I don't want to make claims without basis, as it is based only on my memories :). I so completely switched to gmake during the winter that I even forgot I have an alias. I didn't succeeded to compile projects from my univ studies, but I afraid I use all those gnu extensions. I _think_ I didn't succeeded to compile the DEAL.II lib without gmake. These are projects that don't use the recursive make paradigm, at least not in all places. They -include makefiles from lower hierarchies, but I afraid gnu extension sit there in every place. Not shure, though ... [EMAIL PROTECTED] /usr/home/dsorkin]$ /usr/bin/make --version make: illegal option -- - usage: make [-BPSXeiknqrstv] [-C directory] [-D variable] [-d flags] [-E variable] [-f makefile] [-I directory] [-j max_jobs] [-m directory] [-V variable] [variable=value] [target ...] [EMAIL PROTECTED] /usr/home/dsorkin]$ alias make alias make='gmake' ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Lots of software sources are configured with GNU autotools, which is why a lot of third party software will only compile with GNU make. In the case of dealii, not only are its sources configured with autotools, but I looked at their docs and at http://www.dealii.org/developer/index.html you can plainly see that they use GNU make, version 3.78 or later. I'm not sure where the confusion is ... but it seems like you think you have to invoke GNU make under the moniker 'make'. But you don't, it's just a Linux convention to have GNU make installed as 'make'. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Please Help with Confusion about ipfw rules.
I use the sample ipfw rules with keep state as shown in the handbook firewall section. People on this list don't have ESP so they can't read your mind about what rules you have coded. Posting your ipfw rule set will go a long way to getting a response from readers of this list. That being said I recommend you read the ipfw section of the handbook and use the sample rules listed there. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Martin McCormick Sent: Thursday, July 26, 2007 10:15 AM To: freebsd-questions@freebsd.org Subject: Please Help with Confusion about ipfw rules. This is a situation where I thought I knew more than I actually do. I set up a new domain name server with a client-type firewall after having tested it first, but there is nothing like hundreds of thousands of packets per hour to show the weak spots. I made the mistake of setting up keep-state rules both coming and going and I now see ipfw complaining frequently about too many dynamic rules. All I am really trying to do is give crackers a lot of nothing to look at when scanning the ports on the system. It isn't doing any NAT or routing, etc. I am not sure if I really need any keep-state rules. The DNS needs to be accessible to the world and be able to talk to the world on port 53 and that is all as far as bind is concerned. What I am confused about is when I actually need keep-state rules and when a simple rule like: ${fwcmd} add pass all from any to ${ip} 53 and ${fwcmd} add pass all from ${ip} to any 53 That theoretically should leave port 53 wide open to all types of in-bound and out-bound traffic. Fortunately, the new system is still working, but I am afraid we might be dropping some packets so I need to modify the port 53 access. Thanks for your help. Martin McCormick WB5AGZ Stillwater, OK Systems Engineer OSU Information Technology Department Network Operations Group ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
php4 compile errors - need some help
I need some help identifying what causes this error and how to fix it: #portupgrade php4 [snip] mv -f ext/standard/base64.o ext/standard/base64.lo /bin/sh /usr/ports/lang/php4/work/php-4.4.7/libtool --preserve-dup-deps --mode=compile cc -Iext/standard/ -I/usr/ports/lang/php4/work/php-4.4.7/ext/standard/ -DPHP_ATOM_INC -I/usr/ports/lang/php4/work/php-4.4.7/include -I/usr/ports/lang/php4/work/php-4.4.7/main -I/usr/ports/lang/php4/work/php- 4.4.7 -I/usr/ports/lang/php4/work/php-4.4.7/TSRM -I/usr/ports/lang/php4/work/php-4.4.7/Zend-pipe -g -Wall -prefer-non-pic -c /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c -o ext/standard/basic_functions.lo cc -Iext/standard/ -I/usr/ports/lang/php4/work/php-4.4.7/ext/standard/ -DPHP_ATOM_INC -I/usr/ports/lang/php4/work/php-4.4.7/include -I/usr/ports/lang/php4/work/php-4.4.7/main -I/usr/ports/lang/php4/work/php- 4.4.7 -I/usr/ports/lang/php4/work/php-4.4.7/TSRM -I/usr/ports/lang/php4/work/php-4.4.7/Zend -pipe -g -Wall -c /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c -o ext/standard/basic_functions.o /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:71: getopt.h: No such file or directory /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1479: warning: `struct option' declared inside parameter list /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1479: warning: its scope is only this definition or declaration, which is probably not what you want. /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c: In function `free_longopts': /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1484: dereferencing pointer to incomplete type /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1484: increment of pointer to unknown structure /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1484: arithmetic on pointer to an incomplete type /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1485: dereferencing pointer to incomplete type /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c: In function `zif_getopt': /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1560: sizeof applied to an incomplete type /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1572: dereferencing pointer to incomplete type /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1576: dereferencing pointer to incomplete type /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1579: dereferencing pointer to incomplete type /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1584: dereferencing pointer to incomplete type /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1585: dereferencing pointer to incomplete type /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1586: dereferencing pointer to incomplete type /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1589: increment of pointer to unknown structure /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1589: arithmetic on pointer to an incomplete type /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1607: warning: implicit declaration of function `getopt_long' /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1619: arithmetic on pointer to an incomplete type /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1619: dereferencing pointer to incomplete type /usr/ports/lang/php4/work/php-4.4.7/ext/standard/basic_functions.c:1651: warning: passing arg 1 of `free_longopts' from incompatible pointer type *** Error code 1 Stop in /usr/ports/lang/php4/work/php-4.4.7. *** Error code 1 Stop in /usr/ports/lang/php4. *** Error code 1 Stop in /usr/ports/lang/php4. ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade84922.0 make ** Fix the problem and try again. ** Listing the failed packages (*:skipped / !:failed) ! lang/php4 (php4-4.4.4_1) (missing header) --- Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed System FreeBSD 4.11 STABLE (yes, this will be the final update before the machine is taken offline in a month). Thanks, Andreas ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cdrecord on fbsd-6.1-R amd64
On 7/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Not at amd64... I've tried this option and the output is cannot open scsi driver; for possible transport specifiers try cdrecord-dev --help. I've searched man cdrecord and it tells about some integer just put after dev which is called cam as it follows: $ cdrecord -v dev=cam:1,1,1 speed=4 something.iso I got no output! On 7/15/07, Roland Smith [EMAIL PROTECTED] wrote: On Sun, Jul 15, 2007 at 02:07:17PM -0300, [EMAIL PROTECTED] wrote: How to write CDs on amd64? My cd driver is an IDE-ATAPI and needs scsi emulation. cdrecord says it needs some scsi transport emulation like cam... $ cdrecord -v dev=cam:1,1,1 speed=4 something.iso its output claims for scsi specifier transp Try 'cdrecord -scanbus'. That tells you which devices are available. Im my case it produces; Cdrecord-ProDVD-Clone 2.01.01a11 (amd64-unknown-freebsd6.2) Copyright (C) 1995-2006 Jörg Schilling Using libscg version 'schily-0.8'. scsibus1: 1,0,0 100) 'HL-DT-ST' 'DVD-ROM GDR8163B' '0L23' Removable CD-ROM 1,1,0 101) 'PLEXTOR ' 'DVDR PX-716A ' '1.08' Removable CD-ROM 1,2,0 102) * 1,3,0 103) * 1,4,0 104) * 1,5,0 105) * 1,6,0 106) * 1,7,0 107) * So I use cdrecord -dao -speed=52 driveropts=burnfree dev=1,1,0 -pad -data some.iso HTH, 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) Check if the following link helps: http://thegaul.org/?p=51 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't burn cds
--On Friday, July 27, 2007 13:53:19 +0100 Vince [EMAIL PROTECTED] wrote: Sam Lawrance wrote: On 27/07/2007, at 12:35 PM, Paul Schmehl wrote: --On July 26, 2007 5:59:01 PM -0500 Josh Paetzel [EMAIL PROTECTED] wrote: camcontrol isn't going to know anything about IDE devices, it only knows about SCSI. So why does it show the first cd, which is also ide? The device listed by camcontrol seems to be an external hard drive. That said, I think it's possible for camcontrol to talk to IDE devices via atapicam. according to http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.ht ml if you dont want to use burncd for burning CDROMSs you need to use atapicam (section 18.6.9) either kldload atapicam or add the following line to the /boot/loader.conf file: atapicam_load=YES That did the trick. Thanks. camcontrol devlist Maxtor 3200 0344 at scbus0 target 0 lun 0 (pass0,da0) USB 2.0 Flash Disk 1100 at scbus1 target 0 lun 0 (pass1,da1) HL-DT-ST DVD-ROM GDR8163B 0D20 at scbus2 target 0 lun 0 (pass2,cd0) TSSTcorp CD-RW TS-H292B DE03 at scbus2 target 1 lun 0 (pass3,cd1) -- Paul Schmehl ([EMAIL PROTECTED]) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/
Re: porteasy vs portupgrade
Hi Fergal, Is there a tutorial out there somewhere that tells people to use -aRr? The number of times I see this in FreeBSD related fora is unreal. Yes, there is a tutorial. It's either Dru Lavigne or Michael Lucas who is the culprit. One second and I'll find the URL. http://www.onlamp.com/pub/a/bsd/2003/08/28/FreeBSD_Basics.html?page=2 It's Dru. All complaints etc to her email address, I don't recall it offhand. Both -r and -R are utterly redundant when used with the -a flag. So now we know. Thanks. At least it doesn't actually break anything... I think somebody out there has shares in a company that manufactures replacement r keys... -fr Heh. :D Adam J Richardson ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
error on console on startup?
Jul 27 06:18:06 router kernel: Starting devd. Jul 27 06:18:07 router kernel: hw.acpi.cpu.cx_lowest: Jul 27 06:18:07 router kernel: C1 Jul 27 06:18:07 router kernel: Jul 27 06:18:07 router kernel: sysctl: Jul 27 06:18:07 router kernel: hw.acpi.cpu.cx_lowest Jul 27 06:18:07 router kernel: : Jul 27 06:18:07 router kernel: Invalid argument Jul 27 06:18:07 router kernel: Additional TCP options: Jul 27 06:18:07 router kernel: . Can someone point me to what might be causing this 'invalid' argument? This is on a Pentium3 machine... sysctl -a | grep cx hw.acpi.cpu.cx_lowest: C1 dev.cpu.0.cx_supported: C1/0 dev.cpu.0.cx_lowest: C1 dev.cpu.0.cx_usage: 100.00% -JD ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't burn cds
--On Friday, July 27, 2007 04:54:18 + Pollywog [EMAIL PROTECTED] wrote: On Friday 27 July 2007 02:38:31 Paul Schmehl wrote: --On July 27, 2007 2:07:47 AM + Pollywog [EMAIL PROTECTED] wrote: I had trouble getting CD burning to work, but the FreeBSD Handbook had the info I needed to get it to work. I had to modify my fstab and in order to use k3b, I had to mount the CD on the command line first. It won't work if the CD is not mounted first, it's not as easy as it is in Linux, but it works. Thanks a lot. You've made me feel like a complete idiot. :-) I'll try it tomorrow, but I'm pretty certain that is precisely what my problem was. The fact that I didn't think of it is rather embarrassing. Well don't feel that way yet because I might be wrong and it might be something else that is causing the problem you are having. :) Turns out that wasn't the solution. I had to kldload atapicam for it to work. Thanks, though. You reminded me to never forget the simple things. -- Paul Schmehl ([EMAIL PROTECTED]) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/
Re: mechanical drawing program
Chris Kottaridis skrev: I do a little woodworking and would like to use a computer drawing program where I could create some mechanical drawings for various jigs and projects I do. Mostly simple things, but would also like to be able to handle some curves if I ever get ambitious enough to design a stripper canoe. I'd like to be able to have proper scaled dimensions and such. The cad ports section seems to be all electrical CAD instead of mechanical and the graphics section is quite large. Does anyone have a recommendation for a ports mechanical drawing package ? Thanks Chris Kottaridis([EMAIL PROTECTED]) Have a look at qcad, it's for mechanical drawings. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: make buildworld fails on 6.2-STABLE
At 08:19 PM 7/27/2007 +1200, Jonathan Chen wrote: On Thu, Jul 26, 2007 at 11:12:26AM -0500, J.D. Bronson wrote: so I deleted /usr/src redownloaded from a different mirror and tried make buildworld again... It still failed -but this time at a different point: Standard behaviour of failing hardware - most likely memory. yes. I removed/cleaned/replaced the RAM and it built. Not sure if the issue will return or not :) -JD ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't burn cds
On 27/07/2007, at 12:35 PM, Paul Schmehl wrote: --On July 26, 2007 5:59:01 PM -0500 Josh Paetzel [EMAIL PROTECTED] wrote: camcontrol isn't going to know anything about IDE devices, it only knows about SCSI. So why does it show the first cd, which is also ide? The device listed by camcontrol seems to be an external hard drive. That said, I think it's possible for camcontrol to talk to IDE devices via atapicam. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Xvnc query to gdm failing
Hi all, I'm trying to use VNC to log into my FreeBSD laptop from another laptop [why? to learn how], but I'm stuck. I'm logged into gdm using display 0, typing this email at the keyboard that's physically attached to the gdm box. I'm getting the grey screen problem when I log in remotely though. The VNC client connects to Xvnc fine, but the gdm login client does not appear on the VNC display. A quick netstat -an | grep 177 shows port udp/177 in LISTEN mode, as expected. I figure perhaps it's a user permissions problem. I'm using xinetd to run Xvnc as user nobody, so perhaps nobody has no access rights to gdm? The only problem is, I can't seem to find gdm.conf. It doesn't exist on the system. The command sudo find / | grep gdm.conf yields nothing. Where is it storing its settings if not in gdm.conf? Adam J Richardson ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: updating mysql database
David Banning escribió: I installed mysql 5.1 on a new system and I want to run a 4.1 database. I notice that not all tables work. Is there a conversion to take the database from 4.1 to 5.1? I think you only have to run REPAIR TABLE or OPTIMIZE TABLE on the broken tables. IIRC, the indexing changed between 4.X and 5.X versions. Regards, -- Gabor Kovesdan FreeBSD Volunteer EMAIL: [EMAIL PROTECTED] .:|:. [EMAIL PROTECTED] WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Please Help with Confusion about ipfw rules. Solved.
fbsd2 writes: I use the sample ipfw rules with keep state as shown in the handbook they do work fine. They just aren't meant for the kind of load they were under. I needed to know how to get the same functionality by other means. If you use the keep-state directive, high traffic can basically kill ipfw by running it out of dynamic rule space. People on this list don't have ESP so they can't read your mind about what rules you have coded. But they can read down to where it says: ${fwcmd} add pass all from any to ${ip} 53 and ${fwcmd} add pass all from ${ip} to any 53 It turns out that I didn't catch on to the need for supporting the reply traffic that each of those two rules generate. This stateless set of rules solved the problem and does not use up dynamic rule space. ${fwcmd} add allow ip from any to ${ip} dst-port 53 ${fwcmd} add allow ip from ${ip} 53 to any // allow reply traffic ${fwcmd} add allow ip from ${ip} to any dst-port 53 ${fwcmd} add allow ip from any 53 to ${ip} // allow reply traffic ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: awk question
n j writes: Or awk only i.e. no sed: awk '!(/^$/) { print $(NF-1) }' user.csv That's right. I originally suggested the sed and then was thinking about it as I walked home yesterday and knew that awk could test for the blank line condition before committing suicide.:-) Martin ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Xvnc query to gdm failing
sudo find / | grep gdm.conf yields nothing. Where is it storing its settings if not in gdm.conf? Did you check /usr/local/etc/gdm/ ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to get best results from FreeBSD-questions
How to get the best results from FreeBSD questions. === Last update $Date: 2005/08/10 02:21:44 $ This is a regular posting to the FreeBSD questions mailing list. If you got it in answer to a message you sent, it means that the sender thinks that at least one of the following things was wrong with your message: - You left out a subject line, or the subject line was not appropriate. - You formatted it in such a way that it was difficult to read. - You asked more than one unrelated question in one message. - You sent out a message with an incorrect date, time or time zone. - You sent out the same message more than once. - You sent an 'unsubscribe' message to FreeBSD-questions. If you have done any of these things, there is a good chance that you will get more than one copy of this message from different people. Read on, and your next message will be more successful. This document is also available on the web at http://www.lemis.com/questions.html. = Contents: I:Introduction II: How to unsubscribe from FreeBSD-questions III: Should I ask -questions or -hackers? IV: How to submit a question to FreeBSD-questions V:How to answer a question to FreeBSD-questions I: Introduction === This is a regular posting aimed to help both those seeking advice from FreeBSD-questions (the newcomers), and also those who answer the questions (the hackers). Note that the term hacker has nothing to do with breaking into other people's computers. The correct term for the latter activity is cracker, but the popular press hasn't found out yet. The FreeBSD hackers disapprove strongly of cracking security, and have nothing to do with it. In the past, there has been some friction which stems from the different viewpoints of the two groups. The newcomers accused the hackers of being arrogant, stuck-up, and unhelpful, while the hackers accused the newcomers of being stupid, unable to read plain English, and expecting everything to be handed to them on a silver platter. Of course, there's an element of truth in both these claims, but for the most part these viewpoints come from a sense of frustration. In this document, I'd like to do something to relieve this frustration and help everybody get better results from FreeBSD-questions. In the following section, I recommend how to submit a question; after that, we'll look at how to answer one. II: How to unsubscribe from FreeBSD-questions == When you subscribed to FreeBSD-questions, you got a welcome message from [EMAIL PROTECTED] In this message, amongst other things, it told you how to unsubscribe. Here's a typical message: Welcome to the freebsd-questions@freebsd.org mailing list! If you ever want to unsubscribe or change your options (eg, switch to or from digest mode, change your password, etc.), visit your subscription page at: http://lists.freebsd.org/mailman/options/freebsd-questions/[EMAIL PROTECTED] (obviously, substitute your mail address for [EMAIL PROTECTED]). You can also make such adjustments via email by sending a message to: [EMAIL PROTECTED] with the word 'help' in the subject or body (don't include the quotes), and you will get back a message with instructions. You must know your password to change your options (including changing the password, itself) or to unsubscribe. Normally, Mailman will remind you of your freebsd.org mailing list passwords once every month, although you can disable this if you prefer. This reminder will also include instructions on how to unsubscribe or change your account options. There is also a button on your options page that will email your current password to you. Here's the general information for the list you've subscribed to, in case you don't already have it: FREEBSD-QUESTIONS User questions This is the mailing list for questions about FreeBSD. You should not send how to questions to the technical lists unless you consider the question to be pretty technical. Normally, unsubscribing is even simpler than the message suggests: you don't need to specify your mail ID unless it is different from the one which you specified when you subscribed. If Majordomo replies and tells you (incorrectly) that you're not on the list, this may mean one of two things: 1. You have changed your mail ID since you subscribed. That's where keeping the original message from majordomo comes in handy. For example, the sample message above shows my mail ID as [EMAIL PROTECTED] Since then, I have changed it to [EMAIL PROTECTED] If I were to try to remove [EMAIL PROTECTED] from the list, it would fail: I would have to specify the name with which I joined. 2. You're subscribed to a mailing list which is subscribed to
The Complete FreeBSD: errata and addenda
The trouble with books is that you can't update them the way you can a web page or any other online documentation. The result is that most leading edge computer books are out of date almost before they are printed. Unfortunately, The Complete FreeBSD, published by O'Reilly, is no exception. Inevitably, a number of bugs and changes have surfaced. The Complete FreeBSD has been through a total of five editions, including its predecessor Installing and Running FreeBSD. Two of these have been reprinted with corrections. I maintain a series of errata pages. Start at http://www.lemis.com/errata-4.html to find out how to get the errata information. Note also that the book has now been released for free download in PDF form. Instead of downloading the changed pages, you may prefer to download the entire book. See http://www.lemis.com/grog/Documentation/CFBSD/ for more information. Have you found a problem with the book, or maybe something confusing? Please let me know: I'm no longer constantly updating it, but I may be able to help Greg ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
imap errors with vpn connections
I am running Freebsd 6.2-p6 with eGroupWare-1.2.106_1, dovecot-1.0.r2 and mpd-3.18_5. When I connect from home via vpn to the server then try to check mail thru egroupware I get imap authentication errors. Anyone at work checking their mail will also get the same error, kill the vpn connection everything works fine. I would like to be able to work from home and not block others from checking their mail. Below are config files and rule sets I have configured. dovecot.conf nothing changed from default config. ipfw rules allow gre from any to x.x.x.x in recv dc0 allow gre from any to any out xmit dc0 allow ip from any to any via ng0 allow ip from any to any via ng1 allow ip from any to any via ng2 allow ip from any to any via ng3 mpd.conf default: load pptp0 load pptp1 load pptp2 pptp0: new -i ng0 pptp0 pptp0 set iface disable on-demand set iface enable proxy-arp set iface idle 1800 # set bundle disable multilink set link yes acfcomp protocomp set link no pap chap set link enable chap set link keep-alive 10 60 set link mtu 1460 set ipcp yes vjcomp set ipcp ranges 192.168.1.2/32 192.168.1.50/32 set ipcp dns 68.94.156.1 set ipcp nbns 192.168.1.2 set bundle enable compression set ccp yes mppc set ccp yes mpp-e40 set ccp yes mpp-e128 set ccp yes mpp-stateless ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: updating mysql database
Although MySQL has worked very hard to ensure a high level of quality, protect your data by making a backup as you would for any other software beta release. MySQL generally recommends that you dump and reload your tables from any previous version to upgrade to 5.2. Troy http://primoris.com On 7/27/07, Robert Huff [EMAIL PROTECTED] wrote: David Banning writes: I installed mysql 5.1 on a new system and I want to run a 4.1 database. I notice that not all tables work. Is there a conversion to take the database from 4.1 to 5.1? It is my understanding that you will have to dump (using the appropriate MySQL utilities) the database, the import it to the new version. But you should check the documentation for the official policy. Robert Huff ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
freebsd pear port
Hello list, I've written an email to Pear port maintainer - but had no answer. Is there anybody who can advice on below. Many thanks, Tofig. Hello Alex, first of all big thanks for maintaining the PEAR port for the FreeBSD operating system ! Excellent work ! If you have a spare minute I would like to ask a question about this port. I am trying to build the port (/usr/ports/devel/pear) using the latest tree of today but no success. Please see the output below: jis# make install === Installing for pear-1.6.1 === pear-1.6.1 depends on file: /usr/local/include/php/main/php.h - found === pear-1.6.1 depends on file: /usr/local/lib/php/20060613/pcre.so - found === pear-1.6.1 depends on file: /usr/local/lib/php/20060613/xml.so - found === Generating temporary packing list === Checking if devel/pear already installed mkdir failed: / ** FATAL ERROR! We cannot initialize the temp directory. Please be sure to give full write access to this directory and the install directory. '/tmp' was given.sed: /usr/local/share/pear/peclcmd.php: No such file or directory *** Error code 1 Stop in /usr/ports/devel/pear. Any thoughts ? Kind regards, Tofig. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Xvnc query to gdm failing
Pollywog wrote: sudo find / | grep gdm.conf yields nothing. Where is it storing its settings if not in gdm.conf? Did you check /usr/local/etc/gdm/ ? Ah... thanks. We both got halfway there, thus yielding a complete solution. For some reason gdm.conf exists in some versions of gdm before 2.18, but not in 2.18 itself. Guess who updated recently? :D Presumably users were having terrible difficulties with a file called gdm.conf. Possibly it was confusing or something. Anyway, the gdm devs changed it to custom.conf in /usr/local/etc/gdm/ and I'm sure they were right to do so. Sigh. Hey, I said something pretty stupid... I said the UDP port was in LISTEN mode. Of course UDP ports normally wait for datagrams, not listen for connections. Although as I understand it UDP sockets can be configured for streams. But that's not the point, because I was reading the line above in error. Whoops! :D No luck with Xvnc/gdm yet. I tried setting the gdm user to nobody as well, but it hasn't helped. I'll go back to this tomorrow, my brain hurts. I'll get on with some nice simple Apache chrooting instead. Thanks, Adam J Richardson ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [kde-freebsd] BEL (primarily for vi).
Gary Kline schrieb: Sorry for the late reply, I simply forgot. Sounds like a good guess! Since Gnome is my main desktop, where do I find the KDE control center/system notifications? The executable is called kcontrol and is installed by the x11/kdebase3 port. Bear with me: I've used CTWM for at least 10 years... . I *do* use artsd for my text-to-speech apps, so do have artsd running. I've poked around the FreeBSD knotifyrc config file and find nothing on the External player= line. But the ^[Misc] section is in my Ubuntu KDE file. What goes there? A path to a wav file? The path to, say, xmms?? player needs for clarification, so an example would help. The path to a program that can play soundfiles, yes. /usr/local/bin/play as installed by the audio/sox port would be a good candidate. Cheers, -- ,_, | Michael Nottebrock | [EMAIL PROTECTED] (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org signature.asc Description: OpenPGP digital signature
Re: Can't burn cds
I had trouble getting CD burning to work, but the FreeBSD Handbook had the info I needed to get it to work. I had to modify my fstab and in order to use k3b, I had to mount the CD on the command line first. It won't work if the CD is not mounted first, it's not as easy as it is in Linux, but it works. Have you read the k3b pkg-message? You can find it in k3b port directory. It contains detailed step-by-step instructions about how to allow a non-privileged user to mount what they need. It works just fine. Andriy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
emacs22 and portsdb
Hello, We've been having a problem with generating the ports Index ever since upgrading to emacs22. As per /usr/ports/UPDATING, we added EMACS_PORT_NAME=*emacs22* to /etc/make.conf Everything went fine. Now running emacs22. But ever since, our daily routine of cvsup'ing and portsdb -Uu has gone south, first with this error: lsdb-*emacs22*-0.10_1: /usr/ports/editors/flim-*emacs22* non-existent -- dependency list incomplete === devel/lsdb failed *** Error code 1 1 error and now today this: Updating the ports index ... Generating INDEX.tmp - please wait..eieio-emacs22-0.17_2: /usr/ports/editors/speedbar-emacs22 non-existent -- dependency list incomplete === devel/eieio failed *** Error code 1 1 error ... *** Error code 1 Stop in /usr/ports. *** Error code 1 Stop in /usr/ports. failed to generate INDEX! Perhaps we should be doing a portsdb -Fu instead of -Uu? (that works when I tried it) I'm not sure, because according to the portsdb manpage, If you define special macros in /etc/make.conf and the dependency of some ports are changed, you should create INDEX by yourself by using this option. Otherwise, using -F option is recommended since it is much faster. but we do have that EMACS_PORT_NAME=emacs22 in /etc/make.conf, so I'm not sure. We are also not sure what the implications are of doing a portupgrade -a or portinstall after after a failed portsdb. Some of our ports are getting out of date, and we're not sure what to do. Also, I'm not sure if EMACS_PORT_NAME=emacs22 even needs to stay in /etc/make.conf after upgrading. I just did a fresh install of FreeBSD a new server yesterday, and emacs22 was installed by default when I did my portinstall emacs anyway, so is there any sense in keeping it in make.conf on boxes where I've upgraded? On one test machine, I took that line out /etc/make.conf, and portsdb -Uu works again, so any guidance on this topic would also be appreciated. Thank you, DW ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: [kde-freebsd] BEL (primarily for vi).
On Fri, Jul 27, 2007 at 09:11:03PM +0200, Michael Nottebrock wrote: Gary Kline schrieb: Sorry for the late reply, I simply forgot. Sounds like a good guess! Since Gnome is my main desktop, where do I find the KDE control center/system notifications? The executable is called kcontrol and is installed by the x11/kdebase3 port. Bear with me: I've used CTWM for at least 10 years... . I *do* use artsd for my text-to-speech apps, so do have artsd running. I've poked around the FreeBSD knotifyrc config file and find nothing on the External player= line. But the ^[Misc] section is in my Ubuntu KDE file. What goes there? A path to a wav file? The path to, say, xmms?? player needs for clarification, so an example would help. The path to a program that can play soundfiles, yes. /usr/local/bin/play as installed by the audio/sox port would be a good candidate. The bell *does* work if I use Konsole; it sounds almost like a sonar echo. I'd like to have the file play in the Gnome terminal too, tho. So I'll experiment. thanks for your help, gary Cheers, -- ,_, | Michael Nottebrock | [EMAIL PROTECTED] (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Remote Execution of sudo Command Hangs.
We have 3 FreeBSD systems. One is trying to use ssh and sudo to run commands on two other systems. The remote command being executed is: ssh remote.system.domain sudo dhcpreset dhcpreset is an expect script most of which is shown here: spawn $env(SHELL) expect -exact \# send -- date\r expect -exact \# #body start send -- cd /usr/local/etc\r expect -exact \# send -- /usr/local/etc/zap dhcpd\r expect -exact \# send_user Stopped [exec hostname] dhcpd at [exec date +%y%m%d%H%M%S ].\n\r send -- /usr/local/sbin/dhcpd -q \r expect -exact \# send_user Partially restarted [exec hostname] dhcpd at [exec date +%y%m%d%H%M%S ].\n\r send -- tail -1f /var/log/syslog\r expect -exact peer moves from communications-interrupted to normal send -- $CONTROL_C #body end expect -exact \# send_user Fully restarted dhcpd at [exec date +%y%m%d%H%M%S ].\n\r send -- date;exit\r expect eof The script works perfectly if you run it from a login shell on the system where it actually lives as in: sudo dhcpreset. If you run it via ssh from a remote system, however, it runs, produces the proper status messages and does its job and then . . . . . . You have to hit a Control-C to kill off the ssh connection which doesn't drop on its own. I think my script must somehow make sudo not see the exit. Even though you see the dhcpd -q process started as a background process, dhcpd daemonizes almost immediately and you even see the completion message in a log of the activity so it isn't that. Besides, it exits properly when called locally. Other remote commands using sudo properly exit. Any idea how I might figure out what is hanging things up? If you do a ps on the remote system, the expect script has ended. On the calling system, you still see ssh to the remote system. Reading the expect manual shows an exit command but also says that it is implied when the end of the script is reached. I have tried it with and without that command at the end with no effect. Thanks for any other suggestions for making this command terminate when done. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
The output of ls
Hi, I'm wondering what the output means when one does an ls -lR. Here's some sample output from my home dir: ./programs: total 900 -rwxr-xr-x 1 afalanga afalanga5467 Sep 25 2006 4or6 -rw-r--r-- 1 afalanga afalanga 606 Dec 20 2006 abc.cxx -rwxr-xr-x 1 afalanga afalanga8436 Dec 20 2006 abs -rw-r--r-- 1 afalanga afalanga 970 Dec 12 2006 bindtest.c -rwxr-xr-x 1 afalanga afalanga5666 Dec 12 2006 bt -rw-r--r-- 1 afalanga afalanga 654 Jun 5 08:12 filetest.cxx -rwxr-xr-x 1 afalanga afalanga5223 Nov 16 2006 foo -rw-r--r-- 1 afalanga afalanga 397 Nov 16 2006 foo.c -rw-r--r-- 1 afalanga afalanga 502 May 25 07:20 foo.cxx -rwxr-xr-x 1 afalanga afalanga8733 May 25 07:20 foocxx -rwxr-xr-x 1 afalanga afalanga9359 Jun 5 08:12 ft -rw-r--r-- 1 afalanga afalanga 172 Dec 20 2006 negtest.cxx -rwxr-xr-x 1 afalanga afalanga6986 Dec 20 2006 nt -rw-r--r-- 1 afalanga afalanga 100 Nov 16 2006 obj.c -rw-r--r-- 1 afalanga afalanga 796 Nov 16 2006 obj.o -rwxr-xr-x 1 afalanga afalanga6316 May 23 10:43 td -rw--- 1 afalanga afalanga 327680 May 23 10:22 td.core -rwxr-xr-x 1 root afalanga5552 Jul 26 2006 test -rw-r--r-- 1 afalanga afalanga1267 May 23 10:43 test.c -rw-r--r-- 1 afalanga afalanga 407 Jan 10 2007 test.cxx -rwxr-xr-x 1 afalanga afalanga8760 Jan 10 2007 testc -rw--- 1 afalanga afalanga 430080 Jan 3 2007 testc.core -rw-r--r-- 1 afalanga afalanga 100 Jun 5 07:45 testtest.txt -rw-r--r-- 1 afalanga afalanga 185 Dec 15 2006 timetest.cxx -rwxr-xr-x 1 afalanga afalanga7008 Dec 15 2006 tt -rw-r--r-- 1 afalanga afalanga1142 Sep 25 2006 v6.c -rw-r--r-- 1 afalanga afalanga 67 Jan 5 2007 willitwork ./scripts: total 4 -rw-r--r-- 1 afalanga afalanga 970 Oct 12 2006 newtables.sql -rwxr--r-- 1 afalanga afalanga 1777 Jun 1 10:59 test.tcl Right underneath the directory that is being probed at that point is a number, total X. What is X referring to? Is it blocks, bytes, what? Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: The output of ls
On Jul 27, 2007, at 12:57 PM, Andrew Falanga wrote: Right underneath the directory that is being probed at that point is a number, total X. What is X referring to? Is it blocks, bytes, what? It's probably the number of disk blocks occupied by all of the files in the directory. -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
burncd and driveropts=burnfree?
I recently installed FreeBSD 6.2 release and see there are two programs for burning CDs: burncd and cdrtools (cdrecord). My CD-RW drive is ATAPI. I looked through the online manpage for burncd and saw nothing comparable to driveropts=burnfree, which I use in Linux with cdrecord. So how would I achieve this buffer-underrun protection with burncd in FreeBSD? Or would I need to use cdrecord with kldload atapicam (taking from another current thread on this list)? As far as I could see, Linux and NetBSD use cdrecord, and there is no burncd. I have burned CDs, data only so far, from Linux but not from any other OS. Under FreeBSD, am I better off with burncd or with cdrecord? Tom ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 7-Current: turn off debugging (kqread?)
On Tue, Jul 03, 2007 at 11:12:36AM -0500, Kevin Kramer wrote: thanks. I rebuild this morning with this and still no change. I can't even find any info on these flags... Dunno if anyone ever gave you the real answer to your question, but if not then here it is: your DNS is broken and taking ages to respond to lookups (or more likely, not responding at all). kqread means the application is waiting to read more data from an I/O request. It's not a 7.0 optimization issue. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: The output of ls
On Fri, Jul 27, 2007 at 01:57:54PM -0600, Andrew Falanga wrote: Hi, I'm wondering what the output means when one does an ls -lR. Here's some sample output from my home dir: ./programs: total 900 -rwxr-xr-x 1 afalanga afalanga5467 Sep 25 2006 4or6 -rw-r--r-- 1 afalanga afalanga 606 Dec 20 2006 abc.cxx -rwxr-xr-x 1 afalanga afalanga8436 Dec 20 2006 abs -rw-r--r-- 1 afalanga afalanga 970 Dec 12 2006 bindtest.c -rwxr-xr-x 1 afalanga afalanga5666 Dec 12 2006 bt -rw-r--r-- 1 afalanga afalanga 654 Jun 5 08:12 filetest.cxx -rwxr-xr-x 1 afalanga afalanga5223 Nov 16 2006 foo -rw-r--r-- 1 afalanga afalanga 397 Nov 16 2006 foo.c -rw-r--r-- 1 afalanga afalanga 502 May 25 07:20 foo.cxx -rwxr-xr-x 1 afalanga afalanga8733 May 25 07:20 foocxx -rwxr-xr-x 1 afalanga afalanga9359 Jun 5 08:12 ft -rw-r--r-- 1 afalanga afalanga 172 Dec 20 2006 negtest.cxx -rwxr-xr-x 1 afalanga afalanga6986 Dec 20 2006 nt -rw-r--r-- 1 afalanga afalanga 100 Nov 16 2006 obj.c -rw-r--r-- 1 afalanga afalanga 796 Nov 16 2006 obj.o -rwxr-xr-x 1 afalanga afalanga6316 May 23 10:43 td -rw--- 1 afalanga afalanga 327680 May 23 10:22 td.core -rwxr-xr-x 1 root afalanga5552 Jul 26 2006 test -rw-r--r-- 1 afalanga afalanga1267 May 23 10:43 test.c -rw-r--r-- 1 afalanga afalanga 407 Jan 10 2007 test.cxx -rwxr-xr-x 1 afalanga afalanga8760 Jan 10 2007 testc -rw--- 1 afalanga afalanga 430080 Jan 3 2007 testc.core -rw-r--r-- 1 afalanga afalanga 100 Jun 5 07:45 testtest.txt -rw-r--r-- 1 afalanga afalanga 185 Dec 15 2006 timetest.cxx -rwxr-xr-x 1 afalanga afalanga7008 Dec 15 2006 tt -rw-r--r-- 1 afalanga afalanga1142 Sep 25 2006 v6.c -rw-r--r-- 1 afalanga afalanga 67 Jan 5 2007 willitwork ./scripts: total 4 -rw-r--r-- 1 afalanga afalanga 970 Oct 12 2006 newtables.sql -rwxr--r-- 1 afalanga afalanga 1777 Jun 1 10:59 test.tcl Right underneath the directory that is being probed at that point is a number, total X. What is X referring to? Is it blocks, bytes, what? RTFM ;-) The listing of a directory's contents is preceded by a labeled total num- ber of blocks used in the file system by the files which are listed as the directory's contents (which may or may not include . and .. and other files which start with a dot, depending on other options). Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: The output of ls
On 7/27/07, Kris Kennaway [EMAIL PROTECTED] wrote: On Fri, Jul 27, 2007 at 01:57:54PM -0600, Andrew Falanga wrote: RTFM ;-) Ouch! I deserved that one. Thanks. This is really going to hurt (me that is), but the reason I didn't find it in the manual is because the manual page I read was on Linux. Before asking the question here, I wanted to make sure that FreeBSD's 'ls -lR' worked in the same manner. I didn't think to read the manual pages for FreeBSD before posting. Honestly, yet another reason I've ultimately decided I don't care for Linux. The documentation is rather poor compared to FreeBSD. Thanks again, Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 6.2-RELEASE hangs on boot on Ultra 80
On Fri, Jun 29, 2007 at 10:27:17PM -0700, brian dye wrote: Greetings, I'm trying to install freebsd 6.2-RELEASE on a Sun Ultra 80 expert 3D-Lite workstation. I've tried the bootonly and disc1 .iso files with no luck. In both cases the system hangs after the following message: ... Booting [/boot/kernel/kernel]... nothing to autoload yet. jumping to kernel entry at 0x006. The splash for this box reads: Sun Ultra 80 UPA/PCI (4 X UltraSPARC-II 450MHz), Keyboard Present OpenBoot 3.29, 4096 MB memory installed, Serial #51547294. Ethernet address 0:3:ba:12:8c:9e, Host ID: 83128c9e. This box has two expert 3D-Lite frame buffers. I've read some other posts where the problem was with an unsuported frame buffer. If that is the case here what are some recommended or at least supported options for an Ultra 80? Any information you can provide will be appreciated. You need to use the serial console. It's not actually hung, it's just not displaying any output on the system console while it boots. All support for the system console on sparc systems appears to have been broken around Feb 2005. Kris pgpUvTmRgOgjF.pgp Description: PGP signature
ELI passphrase on boot with USB keyboard
Hi, I recently purchased a new USB keyboard, since my old PS/2 one has seen its best days. This has caused me annoying problems with my ELI disks, though. I have four SATA harddrives, all of which are encrypted using ELI encryption. I've encrypted the raw disks, ad0, ad1, ad2 and ad3. The resulting devices ad0.eli, ad1.eli, ad2.eli and ad3.eli, I've concatenated into a large device, cc0, on which I have several partitions. To get this working, I of course need to boot from a separate device, and for that I use an SD card, which holds a boot directory. With my old PS/2 keyboard, this worked like a charm, but it seems to me, the ukbd driver isnt activated until after the ELI encryption, which means I'm unable to enter the passphrases for the disks, thus I can't get the computer passed the first passphrase prompt. Currently I have both the old keyboard and the new USB one connected. I use the PS/2 one to enter the passphrases, then I put it on the floor under my desk and use the USB keyboard. As you may very well understand, this is quite annoying. Is there a way to get the USB keyboard to work at the point where I enter the passphrases? I've tried to change the keys for the disks to not use a passphrase, but only keyfiles and load them from loader.conf, just as described in the GELI man page (yes I did set the -P option), but that simply will not work (and to be honest, it's not a solution I'd favour); if I set the -b option (ask for passphrase on boot), it still asks for the passphrase, though there is none, and if I set the -B option (don't ask for passphrase on boot), the computer ends up at the mountroot prompt. I'd appreciate any help. Sincerly, Rolf Nielsen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 64bit sysv ipc
On Fri, Jul 20, 2007 at 02:06:19PM -0600, Dan Gish wrote: Hi, We are working off the latest 6.2 amd64 snapshot. # uname -a FreeBSD anton 6.2-STABLE-200706 FreeBSD 6.2-STABLE-200706 #0: Fri Jul 20 13:17:02 MDT 2007 [EMAIL PROTECTED]:/usr/src/sys/amd64/compile/MYKERNEL amd64 The system has 8 gigs of memory. We need to set a high SHMMAXPGS for Postgresql, and we're unable to set it above 2 gigs. This message back in December mentions that someone needs to go over the sysv ipc code and make it 64-bit capable: http://lists.freebsd.org/pipermail/freebsd-questions/2006-December/137633.html Does anyone have an update on this? We are close to ditching FreeBSD in order to use Postgresql in a high memory configuration. I think Mark was working on this. Kris pgpdphYciLXA5.pgp Description: PGP signature
ELI passphrase on boot with USB keyboard... (supplement)
Forgot to mention, I've also tried a USB to PS/2 adaptor, but with that one, the USB keyboard won't work at all. Rolf Nielsen P.S. I'm sorry about the request for receit for the previous message. I have it activated by default, and forgot to deactivate it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: updating mysql database
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Gabor Kovesdan wrote: David Banning escribió: I installed mysql 5.1 on a new system and I want to run a 4.1 database. I notice that not all tables work. Is there a conversion to take the database from 4.1 to 5.1? I think you only have to run REPAIR TABLE or OPTIMIZE TABLE on the broken tables. IIRC, the indexing changed between 4.X and 5.X versions. Recent versions of mysql come with a handy utility called 'mysql_upgrade' -- it basically does what you need in changing the internal format of the tables so that recent MySQL can use them. Plus it should update the mysql.* tables so they can grok all the new GRANTS and stuff. 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 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGqlpU8Mjk52CukIwRCFxYAJ9mG9sf0u1BJ6HcIcEKlSsVOeSqhgCeLpx9 5310RRJSEHyf9Pd5M4dLJ2w= =6fmY -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: powerd on dual core
On Tue, Jul 24, 2007 at 10:32:34AM +0200, Gabriel Linder wrote: Hi, I use a T2300 Core Duo laptop with SMP kernel and powerd enabled on FreeBSD 6.2. When I try to check my CPU settings with sysctl dev.cpu I get a value only for dev.cpu.0.freq (no dev.cpu.1.freq, but there are some fields for dev.cpu.1), so I wonder if powerd manage only one core or if the two cores are running at the same speed ? The latter. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ELI passphrase on boot with USB keyboard
Written by Rolf G Nielsen on 07/27/07 15:21 Hi, I recently purchased a new USB keyboard, since my old PS/2 one has seen its best days. This has caused me annoying problems with my ELI disks, though. I have four SATA harddrives, all of which are encrypted using ELI encryption. I've encrypted the raw disks, ad0, ad1, ad2 and ad3. The resulting devices ad0.eli, ad1.eli, ad2.eli and ad3.eli, I've concatenated into a large device, cc0, on which I have several partitions. To get this working, I of course need to boot from a separate device, and for that I use an SD card, which holds a boot directory. With my old PS/2 keyboard, this worked like a charm, but it seems to me, the ukbd driver isnt activated until after the ELI encryption, which means I'm unable to enter the passphrases for the disks, thus I can't get the computer passed the first passphrase prompt. Currently I have both the old keyboard and the new USB one connected. I use the PS/2 one to enter the passphrases, then I put it on the floor under my desk and use the USB keyboard. As you may very well understand, this is quite annoying. Is there a way to get the USB keyboard to work at the point where I enter the passphrases? I've tried to change the keys for the disks to not use a passphrase, but only keyfiles and load them from loader.conf, just as described in the GELI man page (yes I did set the -P option), but that simply will not work (and to be honest, it's not a solution I'd favour); if I set the -b option (ask for passphrase on boot), it still asks for the passphrase, though there is none, and if I set the -B option (don't ask for passphrase on boot), the computer ends up at the mountroot prompt. I'd appreciate any help. Sincerly, Rolf Nielsen Try setting hints.atkbd0.disabled to 1 in the loader, or in the device.hints file. Your usb keyboard may work in early stages with that device hint. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: panic : swap_pager
On Wed, Jul 25, 2007 at 01:55:45PM +0800, Zhang hw wrote: Sometimes when I shutdown my system, it would tell me : ... All buffers synced Swap_pager: I/O error - pagein failed, blkno 744, size 4096, error 5 panic: swap_pager_force_pagein: read from swap failed Uptime:... #define EIO 5 /* Input/output error */ The device on which your swap partition lives returned an I/O error when data was read from it. Probably your hard drive is failing. Kris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: The output of ls
On Fri, Jul 27, 2007 at 02:10:56PM -0600, Andrew Falanga wrote: On 7/27/07, Kris Kennaway [EMAIL PROTECTED] wrote: On Fri, Jul 27, 2007 at 01:57:54PM -0600, Andrew Falanga wrote: RTFM ;-) Ouch! I deserved that one. Thanks. No problem ;-) This is really going to hurt (me that is), but the reason I didn't find it in the manual is because the manual page I read was on Linux. Before asking the question here, I wanted to make sure that FreeBSD's 'ls -lR' worked in the same manner. I didn't think to read the manual pages for FreeBSD before posting. Honestly, yet another reason I've ultimately decided I don't care for Linux. The documentation is rather poor compared to FreeBSD. Yes, the consistently excellent quality of documentation (manpages, handbook, etc), is one of FreeBSD's strong points. Kris pgpN7SDUW1CjM.pgp Description: PGP signature
Re: ELI passphrase on boot with USB keyboard
Written by Reid Linnemann on 07/27/07 15:49 Written by Rolf G Nielsen on 07/27/07 15:21 Hi, I recently purchased a new USB keyboard, since my old PS/2 one has seen its best days. This has caused me annoying problems with my ELI disks, though. I have four SATA harddrives, all of which are encrypted using ELI encryption. I've encrypted the raw disks, ad0, ad1, ad2 and ad3. The resulting devices ad0.eli, ad1.eli, ad2.eli and ad3.eli, I've concatenated into a large device, cc0, on which I have several partitions. To get this working, I of course need to boot from a separate device, and for that I use an SD card, which holds a boot directory. With my old PS/2 keyboard, this worked like a charm, but it seems to me, the ukbd driver isnt activated until after the ELI encryption, which means I'm unable to enter the passphrases for the disks, thus I can't get the computer passed the first passphrase prompt. Currently I have both the old keyboard and the new USB one connected. I use the PS/2 one to enter the passphrases, then I put it on the floor under my desk and use the USB keyboard. As you may very well understand, this is quite annoying. Is there a way to get the USB keyboard to work at the point where I enter the passphrases? I've tried to change the keys for the disks to not use a passphrase, but only keyfiles and load them from loader.conf, just as described in the GELI man page (yes I did set the -P option), but that simply will not work (and to be honest, it's not a solution I'd favour); if I set the -b option (ask for passphrase on boot), it still asks for the passphrase, though there is none, and if I set the -B option (don't ask for passphrase on boot), the computer ends up at the mountroot prompt. I'd appreciate any help. Sincerly, Rolf Nielsen Try setting hints.atkbd0.disabled to 1 in the loader, or in the device.hints file. Your usb keyboard may work in early stages with that device hint. Erm, set the hint in the loader _first_, and then only put it in device.hints if it works! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ELI passphrase on boot with USB keyboard
Reid Linnemann wrote: Written by Reid Linnemann on 07/27/07 15:49 Written by Rolf G Nielsen on 07/27/07 15:21 Hi, I recently purchased a new USB keyboard, since my old PS/2 one has seen its best days. This has caused me annoying problems with my ELI disks, though. I have four SATA harddrives, all of which are encrypted using ELI encryption. I've encrypted the raw disks, ad0, ad1, ad2 and ad3. The resulting devices ad0.eli, ad1.eli, ad2.eli and ad3.eli, I've concatenated into a large device, cc0, on which I have several partitions. To get this working, I of course need to boot from a separate device, and for that I use an SD card, which holds a boot directory. With my old PS/2 keyboard, this worked like a charm, but it seems to me, the ukbd driver isnt activated until after the ELI encryption, which means I'm unable to enter the passphrases for the disks, thus I can't get the computer passed the first passphrase prompt. Currently I have both the old keyboard and the new USB one connected. I use the PS/2 one to enter the passphrases, then I put it on the floor under my desk and use the USB keyboard. As you may very well understand, this is quite annoying. Is there a way to get the USB keyboard to work at the point where I enter the passphrases? I've tried to change the keys for the disks to not use a passphrase, but only keyfiles and load them from loader.conf, just as described in the GELI man page (yes I did set the -P option), but that simply will not work (and to be honest, it's not a solution I'd favour); if I set the -b option (ask for passphrase on boot), it still asks for the passphrase, though there is none, and if I set the -B option (don't ask for passphrase on boot), the computer ends up at the mountroot prompt. I'd appreciate any help. Sincerly, Rolf Nielsen Try setting hints.atkbd0.disabled to 1 in the loader, or in the device.hints file. Your usb keyboard may work in early stages with that device hint. Erm, set the hint in the loader _first_, and then only put it in device.hints if it works! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Thanks. I'll try it next time I reboot (which will be a while). I'm not sure it'll work, though; I've tried a kernel without the atkbd and atkbdc devices compiled in. -- Vänligen / Sincerly, Rolf Nielsen P.S. Om du svarar på detta mail, placera svaret nedanför den tidigare texten, annars kommer ditt svar automatiskt att kasseras, och därför inte bli läst. Svaret kommer också att kasseras automatiskt och alltså inte bli läst, om det innehåller HTML; skicka alltid e-post som oformaterad text. If you reply to this mail, please put the reply beneath the older text. Otherwise your reply will be automatically discarded, thus it will not be read. You reply will also be discarded if it contains HTML; always send e-mail as plain text. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ISC bind9 with dynamic DNS update (chroot problem)
Patrick Dung wrote: Hi I use FreeBSD 6.2 and the base bind9. For dynamic DNS update, bind9 automatically generate the journal file (end in .jnl). The default config is to use chroot and the running user as 'bind'. The problem is that after named is started (/etc/init.d/named start), Are you sure you're doing this on FreeBSD? We have rc.d, not initd. Assuming that was just a typo ... the default chroot directory /var/named/etc/named The default directory is /etc/namedb, which is a symlink to /var/named/etc/namedb. permission will be reset to own by root. So the named daemon (run as user 'bind') cannot create the journal file and complain: You shouldn't be creating journal files in the config directory anyway. One temp fix is to use chroot and run as root, any suggestions? Yeah, don't run named as root. Ever. :) Assuming that you are actually running FreeBSD, and that you have not turned off the mtree option, you should have the following directories in /etc/namedb: drwxr-xr-x 2 bind wheel512 Jul 23 00:47 dynamic/ drwxr-xr-x 2 root wheel512 Jul 13 22:33 master/ drwxr-xr-x 2 bind wheel512 Jul 27 14:05 slave/ The dynamic directory is obviously designed to hold dynamic zones, and it (like the slave directory) is chowned to user bind so that named can write to it after it drops privileges. hth, Doug -- This .signature sanitized for your protection ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: emacs22 and portsdb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Duane Winner wrote: We've been having a problem with generating the ports Index ever since upgrading to emacs22. As per /usr/ports/UPDATING, we added EMACS_PORT_NAME=*emacs22* to /etc/make.conf Errr --- that should probably read: EMACS_PORT_NAME=emacs22 You certainly don't need the asterisks there. In any case, setting this variable will screw up indexing, because a number of e-lisp ports will try and append the EMACS_PORT_NAME to their package origin if it is set. However not all the ports that do that also have a slave port 'foo-emacs22' hence the problems with building the INDEX. The best answer is don't set EMACS_PORT_NAME in /etc/make.conf -- emacs22 is the default now anyhow. The INDEX will build just fine, and the various e-lisp packages seem to work OK as well, so long as you've reinstall all the e-lisp packages once you've upgraded from emacs21 to emacs22. 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 -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGql0a8Mjk52CukIwRCJkgAJ0fh9qkl4eWFQRwrrG8DIwAOqUmlACeMT19 8AWFPYKQdh8Fvko14TCwyxs= =vZLj -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Abit VP6 Mother Board no USB
I moved a hard drive from a system that had working usb to an abit VP6 PIII board, and FreeBSD is complaining that it can't find the USB host controller. Any suggestions? Chris Maness ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ELI passphrase on boot with USB keyboard
Reid Linnemann wrote: Written by Reid Linnemann on 07/27/07 15:49 Written by Rolf G Nielsen on 07/27/07 15:21 Hi, I recently purchased a new USB keyboard, since my old PS/2 one has seen its best days. This has caused me annoying problems with my ELI disks, though. I have four SATA harddrives, all of which are encrypted using ELI encryption. I've encrypted the raw disks, ad0, ad1, ad2 and ad3. The resulting devices ad0.eli, ad1.eli, ad2.eli and ad3.eli, I've concatenated into a large device, cc0, on which I have several partitions. To get this working, I of course need to boot from a separate device, and for that I use an SD card, which holds a boot directory. With my old PS/2 keyboard, this worked like a charm, but it seems to me, the ukbd driver isnt activated until after the ELI encryption, which means I'm unable to enter the passphrases for the disks, thus I can't get the computer passed the first passphrase prompt. Currently I have both the old keyboard and the new USB one connected. I use the PS/2 one to enter the passphrases, then I put it on the floor under my desk and use the USB keyboard. As you may very well understand, this is quite annoying. Is there a way to get the USB keyboard to work at the point where I enter the passphrases? I've tried to change the keys for the disks to not use a passphrase, but only keyfiles and load them from loader.conf, just as described in the GELI man page (yes I did set the -P option), but that simply will not work (and to be honest, it's not a solution I'd favour); if I set the -b option (ask for passphrase on boot), it still asks for the passphrase, though there is none, and if I set the -B option (don't ask for passphrase on boot), the computer ends up at the mountroot prompt. I'd appreciate any help. Sincerly, Rolf Nielsen Try setting hints.atkbd0.disabled to 1 in the loader, or in the device.hints file. Your usb keyboard may work in early stages with that device hint. Erm, set the hint in the loader _first_, and then only put it in device.hints if it works! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Moreover, the usb keyboard works upto and including the boot menu (I guess the hardware is strictly under BIOS control then, and the kernel doesnt really know if the keboard is usb or ps/2). Then, as soon as the kernel starts probing devices, it stops working. It comes back when daemons have been started. Does usbd have to be running for a usb keyboard to work? If so, could it be worked around? -- Vänligen / Sincerly, Rolf Nielsen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Master volume doesn't work with headphones
(Posted this yesterday to the multimedia list, but questions list seems to be more appropriate. Sorry for double posting.) Hi FreeBSD people, I have a simple mixer question. What I can do to get Master volume working the same way with and without headphones? If I plug in headphones (dell i5100), master volume does nothing (even if I set it to 0 or 100), and I must use pcm; this is not nice because then KDE tray volume control doesn't work. What is the cause of this and how can I change it? Apologize if this is a stupid question. %sysctl -a | grep snd hw.snd.report_soft_formats: 1 hw.snd.targetirqrate: 32 hw.snd.verbose: 1 hw.snd.maxautovchans: 4 hw.snd.unit: 0 hw.snd.pcm0.buffersize: 16384 %mixer SM Mixer vol is currently set to 83:83 Mixer pcm is currently set to 78:78 Mixer speaker is currently set to 75:75 Mixer line is currently set to 75:75 Mixer mic is currently set to 0:0 Mixer cd is currently set to 75:75 Mixer rec is currently set to 100:100 Mixer igainis currently set to 100:100 Mixer ogainis currently set to 70:70 Mixer line1is currently set to 0:0 Mixer phin is currently set to 0:0 Mixer phoutis currently set to 0:0 Mixer videois currently set to 75:75 Recording source: mic %kldstat Id Refs AddressSize Name 1 14 0xc040 742370 kernel 32 0xc0b4e000 1af50linux.ko 41 0xc0b69000 58554acpi.ko 51 0xc3adf000 5000 snd_ich.ko 61 0xc3ae4000 1c000sound.ko 71 0xc3b12000 6000 linprocfs.ko 81 0xc3b22000 4000 logo_saver.ko Thank you SM ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Master volume doesn't work with headphones
On Fri, 27 Jul 2007, Snow Mountains wrote: (Posted this yesterday to the multimedia list, but questions list seems to be more appropriate. Sorry for double posting.) Hi FreeBSD people, I have a simple mixer question. What I can do to get Master volume working the same way with and without headphones? If I plug in headphones (dell i5100), master volume does nothing (even if I set it to 0 or 100), and I must use pcm; this is not nice because then KDE tray volume control doesn't work. What is the cause of this and how can I change it? Apologize if this is a stupid question. %sysctl -a | grep snd hw.snd.report_soft_formats: 1 hw.snd.targetirqrate: 32 hw.snd.verbose: 1 hw.snd.maxautovchans: 4 hw.snd.unit: 0 hw.snd.pcm0.buffersize: 16384 %mixer SM Mixer vol is currently set to 83:83 Mixer pcm is currently set to 78:78 Mixer speaker is currently set to 75:75 Mixer line is currently set to 75:75 Mixer mic is currently set to 0:0 Mixer cd is currently set to 75:75 Mixer rec is currently set to 100:100 Mixer igainis currently set to 100:100 Mixer ogainis currently set to 70:70 Mixer line1is currently set to 0:0 Mixer phin is currently set to 0:0 Mixer phoutis currently set to 0:0 Mixer videois currently set to 75:75 Recording source: mic %kldstat Id Refs AddressSize Name 1 14 0xc040 742370 kernel 32 0xc0b4e000 1af50linux.ko 41 0xc0b69000 58554acpi.ko 51 0xc3adf000 5000 snd_ich.ko 61 0xc3ae4000 1c000sound.ko 71 0xc3b12000 6000 linprocfs.ko 81 0xc3b22000 4000 logo_saver.ko Thank you SM That's most likely an arts config issue. I haven't toyed around with it for ages so I don't think I can really help you with the problem. HTH (get you started in the right direction..), -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Abit VP6 Mother Board no USB
On Fri, 27 Jul 2007, Chris Maness wrote: I moved a hard drive from a system that had working usb to an abit VP6 PIII board, and FreeBSD is complaining that it can't find the USB host controller. Any suggestions? Chris Maness 1. Check that the BIOS a) has USB support turned on, b) has PnP support properly setup (ASUS for instance has a non-PnP capable USB setting where the BIOS arbitrates USB usage and resource configuration, but since FreeBSD is PnP capable I turn that option off). 2. Make sure that you have correct USB support compiled into your kernel (just compile in ehci, ohci, and uhci in case). 3. Try a 7-CURRENT snapshot disk and see if USB support works or not. More information would be helpful as well if those suggestions don't work (what version of FreeBSD are you running, exact motherboard specs, etc). Thanks, -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Abit VP6 Mother Board no USB
On Fri, 27 Jul 2007, Chris Maness wrote: I moved a hard drive from a system that had working usb to an abit VP6 PIII board, and FreeBSD is complaining that it can't find the USB host controller. Any suggestions? Chris Maness 1. Check that the BIOS a) has USB support turned on, b) has PnP support properly setup (ASUS for instance has a non-PnP capable USB setting where the BIOS arbitrates USB usage and resource configuration, but since FreeBSD is PnP capable I turn that option off). 2. Make sure that you have correct USB support compiled into your kernel (just compile in ehci, ohci, and uhci in case). 3. Try a 7-CURRENT snapshot disk and see if USB support works or not. More information would be helpful as well if those suggestions don't work (what version of FreeBSD are you running, exact motherboard specs, etc). Thanks, -Garrett I am such a retard. I took your advice and scanned through the BIOS, and I saw where USB needed to enabled. That is wierd that USB is turned off by default. I had to reset the CMOS after changing a battery. Thanks, Chris Maness ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
USB Mouse not Working
I am having issues getting my USB mouse running. I don't get any error messages of the sort, and when I do #cat /dev/ums0 I don't get any funny garbage like I normally do out of a IO device. (That is after I kill moused). Any suggestions? Chris Maness (909) 223-9179 http://www.chrismaness.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: USB Mouse not Working
Chris Maness wrote: I am having issues getting my USB mouse running. I don't get any error messages of the sort, and when I do #cat /dev/ums0 I don't get any funny garbage like I normally do out of a IO device. (That is after I kill moused). Any suggestions? I had this. I had to start some daemon before starting X... what was it now... devd? usbd? psmd? moused? Something like that, anyway. And I had to specify the mouse port IIRC. You know, something like moused -p /dev/ums0. Adam J Richardson ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: USB Mouse not Working
Adam J Richardson wrote: Chris Maness wrote: I am having issues getting my USB mouse running. I don't get any error messages of the sort, and when I do #cat /dev/ums0 I don't get any funny garbage like I normally do out of a IO device. (That is after I kill moused). Any suggestions? I had this. I had to start some daemon before starting X... what was it now... devd? usbd? psmd? moused? Something like that, anyway. And I had to specify the mouse port IIRC. You know, something like moused -p /dev/ums0. Adam J Richardson I tried that, but I get nothing. Should I expect to see garbage from #cat /dev/sysmouse and then move the mouse around? Can you do that in console mode, and see if that gives you anything? Chris Maness ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FastCGI PHP does not start on server reboot (via rc script).
On 7/25/07, Maxim Khitrov [EMAIL PROTECTED] wrote: On 7/24/07, Maxim Khitrov [EMAIL PROTECTED] wrote: Hello, I have this problem that I can't figure out. One of my web servers is using a combination of lighttpd and FastCGI php to run a few sites. On lighttpd website there is an rc script to help FreeBSD users start FastCGI php processes automatically. I've pasted that script below. I should say that if I run it manually as root, everything works beautifully. As you can see, the script creates a unix socket at /var/run/fastcgi/php.sock, and lighttpd is then able to execute php scripts. The problem is that every time the server is rebooted, the script does not start back up. I have to start it manually. I can't find any log entries that would indicate a problem, so I'm not even sure where to start looking. Below is the script that I'm trying to run, file permissions for relevant files, and contents of my rc.conf. Would greatly appreciate it if someone could at least tell me where to start looking for a solution to this problem. Thanks, Maxim Khitrov /etc/rc.conf: fcgiphp_enable=YES /var/run/fastcgi: -rw-r--r-- 1 www www -5B Jul 24 17:06 php.pid srwxr-xr-x 1 www www -0B Jul 24 17:06 php.sock= /usr/local/etc/rc.d: -r-xr-xr-x 1 root wheel - 1.6K May 23 17:28 fastcgi-php* /usr/local/etc/rc.d/fastcgi-php: #!/bin/sh # FreeBSD rc.d script for fastcgi+php # in rc.conf # fcgiphp_enable (bool):Set it to YES to enable fastcgi+php # Default is NO. # other options see below # . /etc/rc.subr name=fcgiphp rcvar=`set_rcvar` load_rc_config $name : ${fcgiphp_enable=NO} : ${fcgiphp_bin_path=/usr/local/bin/php-cgi} : ${fcgiphp_user=www} : ${fcgiphp_group=www} : ${fcgiphp_children=2} : ${fcgiphp_port=8002} : ${fcgiphp_socket=/var/run/fastcgi/php.sock} : ${fcgiphp_env=SHELL PATH USER} : ${fcgiphp_max_requests=100} : ${fcgiphp_addr=localhost} pidfile=/var/run/fastcgi/php.pid procname=${fcgiphp_bin_path} command_args=/usr/local/bin/spawn-fcgi 2 /dev/null -f ${fcgiphp_bin_path} -u ${fcgiphp_user} -g ${fcgiphp_group} -C ${fcgiphp_children} -P ${pidfile} start_precmd=start_precmd stop_postcmd=stop_postcmd start_precmd() { PHP_FCGI_MAX_REQUESTS=${fcgiphp_max_requests} FCGI_WEB_SERVER_ADDRS=$fcgiphp_addr export PHP_FCGI_MAX_REQUESTS export FCGI_WEB_SERVER_ADDRS allowed_env=${fcgiphp_env} PHP_FCGI_MAX_REQUESTS FCGI_WEB_SERVER_ADDRS # copy the allowed environment variables E= for i in $allowed_env; do eval x=\$$i E=$E $i=$x done command=env - $E if [ -n ${fcgiphp_socket} ]; then command_args=${command_args} -s ${fcgiphp_socket} elif [ -n ${fcgiphp_port} ]; then command_args=${command_args} -p ${fcgiphp_port} else echo socket or port must be specified! exit fi } stop_postcmd() { rm -f ${pidfile} # eval ipcs | awk '{ if (\$5 == \${fcgiphp_user}\) print \ipcrm -s \\$2}' | /bin/sh } run_rc_command $1 Sorry for replying to myself, but I forgot to mention that this server is actually running inside a jail. I have no idea if that has anything to do with it. I also have other services being started from /usr/local/etc/rc.d (lighttpd, mysql, and a few others), but this fastcgi script is the only one that fails to work. One other thing to add... I moved the script from /usr/local/etc/rc.d/ to /etc/rc.d/ and it works perfectly. Didn't change a thing other than where the script is running from. All my rc scripts in /etc are also unmodified. Is it really the case that no one has seen something like this before? Why would a script run from one location, but not from another? Especially given the fact that other scripts in /usr/local/etc/rc.d are being executed normally. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Abit VP6 Mother Board no USB
[EMAIL PROTECTED] wrote: On Fri, 27 Jul 2007, Chris Maness wrote: I moved a hard drive from a system that had working usb to an abit VP6 PIII board, and FreeBSD is complaining that it can't find the USB host controller. Any suggestions? Chris Maness 1. Check that the BIOS a) has USB support turned on, b) has PnP support properly setup (ASUS for instance has a non-PnP capable USB setting where the BIOS arbitrates USB usage and resource configuration, but since FreeBSD is PnP capable I turn that option off). 2. Make sure that you have correct USB support compiled into your kernel (just compile in ehci, ohci, and uhci in case). 3. Try a 7-CURRENT snapshot disk and see if USB support works or not. More information would be helpful as well if those suggestions don't work (what version of FreeBSD are you running, exact motherboard specs, etc). Thanks, -Garrett I am such a retard. I took your advice and scanned through the BIOS, and I saw where USB needed to enabled. That is wierd that USB is turned off by default. I had to reset the CMOS after changing a battery. Thanks, Chris Maness No problem. Silly mistakes happen to everyone ;).. Cheers! -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: USB Mouse not Working
Chris Maness wrote: Adam J Richardson wrote: Chris Maness wrote: I am having issues getting my USB mouse running. I don't get any error messages of the sort, and when I do #cat /dev/ums0 I don't get any funny garbage like I normally do out of a IO device. (That is after I kill moused). Any suggestions? I had this. I had to start some daemon before starting X... what was it now... devd? usbd? psmd? moused? Something like that, anyway. And I had to specify the mouse port IIRC. You know, something like moused -p /dev/ums0. Adam J Richardson I tried that, but I get nothing. Should I expect to see garbage from #cat /dev/sysmouse and then move the mouse around? Can you do that in console mode, and see if that gives you anything? Chris Maness moused(1) with usbd(1). Don't forget to compile uhid, ums, and all other dependent drivers into the kernel, either statically or as modules (man ums, uhid will get you on your way here). Try moused with auto detection, using /dev/ums0. If you don't see anything about a USB mouse being attached in dmesg, you don't have the right drivers compiled for your kernel. If you do, moused / usbd hasn't been setup yet. cat /dev/sysmouse will yield you the info you seek in the end, but you should try /dev/ums0 first, because that will work regardless of whether or not moused is started. Good luck :), -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Remote Execution of sudo Command Hangs.
Hi Martin, On 27/07/07, Martin McCormick [EMAIL PROTECTED] wrote: We have 3 FreeBSD systems. One is trying to use ssh and sudo to run commands on two other systems. The remote command being executed is: ssh remote.system.domain sudo dhcpreset dhcpreset is an expect script most of which is shown here: [Script removed] The script works perfectly if you run it from a login shell on the system where it actually lives as in: sudo dhcpreset. If you run it via ssh from a remote system, however, it runs, produces the proper status messages and does its job and then . . . . . . You have to hit a Control-C to kill off the ssh connection which doesn't drop on its own. I think my script must somehow make sudo not see the exit. Even though you see the dhcpd -q process started as a background process, dhcpd daemonizes almost immediately and you even see the completion message in a log of the activity so it isn't that. Besides, it exits properly when called locally. Other remote commands using sudo properly exit. Any idea how I might figure out what is hanging things up? If you do a ps on the remote system, the expect script has ended. On the calling system, you still see ssh to the remote system. Reading the expect manual shows an exit command but also says that it is implied when the end of the script is reached. I have tried it with and without that command at the end with no effect. Thanks for any other suggestions for making this command terminate when done. Try using pseudo tty allocation with your ssh command, it's the -t option. So, use ssh -t remote.system.domain sudo dhcpreset as the command. If this doesn't work directly, you can even try several ts. I had best results with -ttt. If this still doesn't work, try using nohup dhcpd -q as command. HTH Christian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]