Apache leaks sensitive info in PHP phpinfo() calls
Hi, I wanted to get some opinions on this subject before I submit a PR about it. I don't know if there are any pitfalls with the 'fix' I suggested and though it best to run it past people here before submitting. If there's a better place to post this please let me know (freebsd-ports?). The send-pr output I was about to send explains everything so I'll just paste it here: -snip- To: [EMAIL PROTECTED] From: Jez Hancock [EMAIL PROTECTED] Reply-To: Jez Hancock [EMAIL PROTECTED] Submitter-Id: current-users Originator:Jez Hancock Organization: n/a Confidential: no Synopsis: Apache httpd leaks environment information in PHP phpinfo() calls Severity: non-critical Priority: low Category: ports Class: change-request Release: FreeBSD 4.8-STABLE i386 Environment: System: FreeBSD users.munk.nu 4.8-STABLE FreeBSD 4.8-STABLE #1: Fri Apr 18 14:38:46 BST 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MUNKBOXEN i386 Description: The apache13 port control script /usr/local/sbin/apachectl is used to control the apache httpd daemon. However the apachectl script does not start with a clean environment, inheriting the environment of the user that invokes the script. As a consequence the environment variables set by the shell of the user that invokes apachectl (usually a UID 0 user) are visible to users when executing a command such as phpinfo() in the PHP $_ENV superglobal array. How-To-Repeat: Invoke the apachectl control script as a user who has shell environment variables set. Browse to a web page served by the httpd that contains a PHP phpinfo() call and observe the environment of the user in the $_ENV superglobal array. Fix: Add a single line to the apachectl control script to ensure apache runs with a clean environment: *** /usr/local/sbin/apachectl Thu Nov 13 06:59:05 2003 --- /usr/local/sbin/apachectl.bak Thu Nov 13 06:58:54 2003 *** *** 26,32 # # the path to your httpd binary, including options if necessary HTTPD=/usr/local/sbin/httpd - HTTPD=`echo /usr/bin/env -i $HTTPD` # # a command that outputs a formatted text version of the HTML at the # url given on the command line. Designed for lynx, however other --- 26,31 -snip- This appears to work as required, removing any details about the apachectl-invoking user's environment from the $_ENV array. Are there any pitfalls of using env in this way though? -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
deleted ports
Hi, I had a problem with the Mesa3-Port. Someone told me that the port has moved to libglut. The problem was, that /usr/ports/graphics/Mesa3 was not deleted and the only in this directory was README.html. When I deleted the file and the mesa-directory libglut was installed and everything was okay. So I have 2 questions: 1. Why the mesa-port dir wasnt deleted ? 2. Is there anywhere a description of the ports mechanism inclusive meaning of files like MOVED? Thanks, lutz ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: deleted ports
On Thu, Nov 13, 2003 at 08:16:50AM +0100, Lutz Kittler wrote: Hi, I had a problem with the Mesa3-Port. Someone told me that the port has moved to libglut. The problem was, that /usr/ports/graphics/Mesa3 was not deleted and the only in this directory was README.html. When I deleted the file and the mesa-directory libglut was installed and everything was okay. So I have 2 questions: 1. Why the mesa-port dir wasnt deleted ? Because you had created the README.html file in that directory. (You have probably issued a 'make readmes' at some point in the past.) cvsup does not delete non-empty directories. 2. Is there anywhere a description of the ports mechanism inclusive meaning of files like MOVED? The ports(7) man page is a good place to start. In there you can find pointers to the rest of the documentation. -- Insert your favourite quote here. Erik Trulsson [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: which apache
On Wed, Nov 12, 2003 at 03:39:20PM -0700, David Bear wrote: well, since I will be running apache on freebsd I thought I ask which one will be the best to use, v1.3 series on v2.x series. Personally I use apache13 but I believe apache2 is now very stable (although some features like the perchild(?) mpm which would allow extra privacy for virtual domains/users are still experimental to say the least). Essentially if you want total stability, go for apache 1.3.x. If the server's not for production and you're just curious then go for apache 2. -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: deleted ports
Am Donnerstag, 13. November 2003 08:32 schrieb Erik Trulsson: On Thu, Nov 13, 2003 at 08:16:50AM +0100, Lutz Kittler wrote: Hi, I had a problem with the Mesa3-Port. Someone told me that the port has moved to libglut. The problem was, that /usr/ports/graphics/Mesa3 was not deleted and the only in this directory was README.html. When I deleted the file and the mesa-directory libglut was installed and everything was okay. So I have 2 questions: 1. Why the mesa-port dir wasnt deleted ? Because you had created the README.html file in that directory. (You have probably issued a 'make readmes' at some point in the past.) cvsup does not delete non-empty directories. Thanks, but I havent done any 'make readmes' explicitly. I only did 'make build/package/install' or install ports by portupgrade. Is there a possibility that some of these commands has done 'make readmes' implicitly? In this case it would be good to know in which configuration file I can change this behaviour. Is there a standard way to get rid of README.html of deleted ports ? lutz ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FReeBSD 4.9 and X11 under vmware
hello, I Am not able to make X11 work on vmware. anyone has done it before ? the problem if that when I choose vmware as video option then X does nto work and tells me: (EE) VMWARE(0): Virtual height (0) is too small for the hardware (min 128) (EE) Screen(s) found, but none have a usable configuration than kyou vey much Rick ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: file sizes
Thanks. Just what I was looking for. On Wed, 12 Nov 2003 23:12:30 +0100 Jakob Breivik Grimstveit [EMAIL PROTECTED] wrote: On Thu, 2003-11-13 at 00:01, Bryan Cassidy wrote: Trying to figure out how to find out the size of a file. Try... ls -l filename ls -lh filename du -h directory -- Jakob Breivik Grimstveit, http://www.grimstveit.no/~jakob, +47 48298152 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: deleted ports
On Thu, Nov 13, 2003 at 08:43:13AM +0100, Lutz Kittler wrote: Because you had created the README.html file in that directory. (You have probably issued a 'make readmes' at some point in the past.) cvsup does not delete non-empty directories. Thanks, but I havent done any 'make readmes' explicitly. I only did 'make build/package/install' or install ports by portupgrade. Is there a possibility that some of these commands has done 'make readmes' implicitly? In this case it would be good to know in which configuration file I can change this behaviour. No, readmes are not built by any of the other makefile targets. Is there a standard way to get rid of README.html of deleted ports ? find(1) Kris pgp0.pgp Description: PGP signature
Re: Downloading OOo, other ports outside of the system?
On Wed, 12 Nov 2003 17:14:38 -0700 Robin Schoonover [EMAIL PROTECTED] probably wrote: On Wed, 12 Nov 2003 13:48:20 -0700, Preston Crawford [EMAIL PROTECTED] wrote: I have what may seem like an odd question. I have a new FreeBSD 4.9 system that I want to install OpenOffice and some other stuff on. Most of the stuff left to install is pretty big and thus will be hard to download via ports over my dial-up connection (yes, I use dial-up). I know it's possible to download tarballs and drop them into the ports tree somewhere so you don't have to do the download. I'm wondering how easy this is, though. By that I mean, if I wanted to say install Tomcat, Java, OpenOffice, etc. in this manner how would I know which package to download? And from where? I'd like to download these at work, burn them on a CD and take them home. However, since I'm not in front of my machine I don't know where ports will be looking for these files. Anyone know? running make fetch-recursive-list will tell you everything including -all- the places you can get the files. If you use a windoze box at work however, it'll be slightly painful, since you have to copy each url one by one (I imagine using something else like linux wouldn't be too bad, since you can generally make it use wget by running it with FETCH_CMD=wget). I've never actually done it this way though, and one issue I see is the fact that /usr/ports/distfiles has certain things semi-ordered (openoffice stuff is dumped into /usr/ports/distfiles/openoffice for example), and I don't think fetch-recursive-list does anything about it. Of course, this just means you have to move a few things around when you get home. You can learn where exatly you need the distfile by looking at the line starting with ftp://ftp.FreeBSD.org/: [I use wget as my fetch command][lines wrapped on ||] $ cd /usr/ports/editors/openoffice/; make fetch-recursive-list| head -n 1 /usr/bin/env wget -c -T 5 ftp://ftp.sunet.se/pub/FreeBSD/distfiles/OOo_1.0.3_source.tar.bz2 || /usr/bin/env wget -c -T 5 http://openofficeorg.secsup.org/stable/1.0.3/OOo_1.0.3_source.tar.bz2 || /usr/bin/env wget -c -T 5 http://mirrors.sunsite.dk/openoffice/stable/1.0.3/OOo_1.0.3_source.tar.bz2 || /usr/bin/env wget -c -T 5 http://ftp.gwdg.de/pub/misc/openoffice/stable/1.0.3/OOo_1.0.3_source.tar.bz2 || /usr/bin/env wget -c -T 5 ftp://www.t.ring.gr.jp/pub/misc/openoffice/stable/1.0.3/OOo_1.0.3_source.tar.bz2 || /usr/bin/env wget -c -T 5 http://www.t.ring.gr.jp/archives/misc/openoffice/stable/1.0.3/OOo_1.0.3_source.tar.bz2 || /usr/bin/env wget -c -T 5 ftp://ftp.chg.ru/pub/OpenOffice/stable/1.0.3/OOo_1.0.3_source.tar.bz2 || /usr/bin/env wget -c -T 5 ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/openoffice1.0/OOo_1.0.3_source.tar.bz2 || echo OOo_1.0.3_source.tar.bz2 not fetched This means that the distfile OOo_1.0.3_source.tar.bz2 should be put in /usr/ports/distfiles/openoffice1.0/ -- Robin Schoonover (aka End) # # Smoking is one of the leading causes of statistics. -- Fletcher Knebel # ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- DoubleF Virtual means never knowing where your next byte is coming from. pgp0.pgp Description: PGP signature
Re: which apache
* David Bear [EMAIL PROTECTED] [031113 09:30]: well, since I will be running apache on freebsd I thought I ask which one will be the best to use, v1.3 series on v2.x series. Hi, David! Apache 1.3 was originally designed for the Unix platform. Although it also runs with Windows and others, it's not optimized for them. The Apache 2.x was designed for multi-platform-usage and uses some portability libraries etc. (And I have the feeling, it's slower on FreeBSD, but that's only a personal impression). So, as a FreeBSD user, Version 1.3.x should be the right choice. Cheers, Martin. -- Martin Möller mm at bsdsi.com - ICQ # 82221572 GnuPG/PGP ID: 0xDD74108DFingerabdruck: 7D8D 3D10 CC46 0083 591C 6B84 A5CB 361A DD74 108D Bei Problemen: http://www.bsdsi.com/email.html pgp0.pgp Description: PGP signature
Re: Mount SMB share on bootup
Lines prefixed with are what Chirhart, Brian wrote. Ed - that worked great... Thanks!! I am not sure what I did, but it worked. What language is that script in? It isn't perl - is it C? No, it's a simple bourne script. If you put bourne shell scripting into Google, you will get tutorials and information. You could write an rc.d script in perl if you wanted to. The scripts in /usr/ local/etc/rc.d need to match the following rules in order to be executed at system startup/shutdown: (taken from the rc man page) o Scripts are only executed if their basename(1) matches the shell globbing pattern *.sh, and they are executable. Any other files or directories present within the directory are silently ignored. o When a script is executed at boot time, it is passed the string ``start'' as its first and only argument. At shutdown time, it is passed the string ``stop'' as its first and only argument. All rc.d scripts are expected to handle these arguments appropriately. If no action needs to be taken at a given time (either boot time or shut- down time) the script should exit successfully and without producing an error message. o The scripts within each directory are executed in lexicographical order. If a specific order is required, numbers may be used as a prefix to the existing filenames, so for example 100.foo would be executed before 200.bar; without the numeric prefixes the opposite would be true. -Ed -Original Message- From: Edward Epstein [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 5:43 PM To: Chirhart, Brian; [EMAIL PROTECTED] Subject: Re: Mount SMB share on bootup Lines prefixed with are what Chirhart, Brian wrote. point is password protected (on the XP side) so I am prompted for a password. How can I automate that? Or should I create the share without a password? I am not too worried about internal security so the share could have no password and that would be fine. Create a script called whatever.sh, chmod +x 755 whatever.sh and put that script in a /usr/local/etc/rc.d. Put the following lines in that script #!/bin/sh smbmount username=user password=pass and the rest of the parametars that you are normaly using when mounting smb partition. Mind that if your startup script for samba is samba.sh your mounting script must start with a letter after the letter s otherwise you would mounting a samba share without smb daemon started. When I try the smbmount I get a command not Found I checked the man pages on mount and found mount_smbfs, but I can not find any options that would allow me to specify a username and password. I am not using Samba (at least I didn't load it... may be there by default???) - To map the drive I have a line in my /etc/fstab file that reads: # Device #Mountpoint FSType OPtion //[EMAIL PROTECTED]/share /ftprootsmbfs rw.nosuto 0 0 Once the server boots, I type mount /ftproot and then it asks me for the password for User. After the password is entered, /ftproot contains the contents of the share on my XP system. It was one of the things that I fell in love with about BSD - the ability to see XP shares with no special magic. So anyway - I think there are several different approaches to this. Can I modify my fstab file so that auto would work by somehow specifing a password? Or is there a password option that I am missing in the mount or mount_smbfs commands? OR... is there a reason I don't have the smbmount command? You are on the right track; it took me a while to figure this one out too. You've got your /etc/fstab file set up correctly. This is how the line for me looks, it's just like yours. //[EMAIL PROTECTED]/SHARE /mnt/chaos smbfs rw,noauto 0 0 To specify your username and password for the mount, you should create /etc/nsmb.conf the syntax for this file is shown in /usr/share/examples/smbfs/dot.nsmbrc Here is an example from my machine: #nsmb.conf [CHAOS] addr=10.0.3.3 [CHAOS:EDWARD] password=X Finally, to mount on bootup, create a file in /usr/local/etc/rc.d with the following contents (or something similar; you probably didn't name your share CHAOS): [EMAIL PROTECTED] more /usr/local/etc/rc.d/010.chaos.sh #! /bin/sh case $1 in start) echo Mounting CHAOS... mount /mnt/CHAOS 2 ;; stop) echo Unmounting CHAOS... umount /mnt/CHAOS 2 ;; esac Also, I make sure my /etc/nsmb.conf file is owned by root and chmod'ed 600 because it contains a password in plaintext. Don't forget to make sure that your file in /usr/local/etc/rc.d is chmodded at least 700 so that it's executable by, at the very least, the owner (should be root). I hope this is clear
Re: statvfs.h
On Wed, Nov 12, 2003 at 07:32:11PM -0500, SWIT wrote: spiderman# find / -name statvfs.h -print spiderman# comes up empty. now what ? statvfs.h is a new header in 5.x, as are the statvfs() and fstatvfs() functions prototyped in that header file. Basically there's no chance of your being able to install the Filesys::Statvfs perl module on 4.x, since it's just a perlxs wrapper around the underlying C library functions. If this module is that important, I'm afraid you're going to have to upgrade your whole system in order for it to be supported. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgp0.pgp Description: PGP signature
conformance FreeBSD's TCP/IP stack
Does anybody can help me with informaion about conformance FreeBSD's TCP/IP stack to modern standard. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: backup drive bootabel
On Wed, Nov 12, 2003 at 02:32:20PM -0800, Noah wrote: i) Make the 2nd disk an identical copy to the 1st one. In this case should the 1st drive go AWOL, you would have to open the case and either remove the first drive or modify the jumpering on the disks to swap their order on the bus. You will need to mark the FreeBSD slice bootable in the disk partition label by running: # boot0cfg -B -b /boot/mbr -s 1 da1 okay this is the command I was Looking for but I am arriving at an error: # boot0cfg -B -b /boot/mbr -s 1 da1 boot0cfg: /boot/mbr: unknown or incompatible boot code I think the partitions are about the same so I am not clear why this is happening. Hmmm... What FreeBSD version are you using? I had assumed 4.x, because that's what I'm using. It may well be the case that the sample mbr has been moved somewhere else in the filesystem. Checking the fdisk(8) and boot0cfg(8) man pages for clues doesn't confirm that though. The mbr should be a 512 byte file generated from the assembler sources in /usr/src/sys/boot/i386/mbr Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgp0.pgp Description: PGP signature
Re: ip-up script of pppd no triggered
Hi Alex, hi list, On Thursday, November 13, 2003, at 04:23 AM, Alex de Kruijff wrote: On Wed, Nov 12, 2003 at 07:31:29PM +0200, Jim Xochellis wrote: Hi list, I need persuade pppd to call its ip-up script in order to add a non-default route when the link is up and running. Unfortunately it seems that my ip-up script is not being called. The mode of the file is rwxr-xr-x and the owner root:wheel. I am calling the pppd from inside a /usr/local/etc/rc.d/ppp.sh script by using the following command: /usr/sbin/pppd /dev/cuaa0 115200 A.A.A.A:B.B.B.B noauth persist netmask 255.255.255.252 Am I doing something wrong? This is, if i'm not mistaiken, written down in the handbook. -- Alex Articles based on solutions that I use: http://www.kruijff.org/alex/index.php?dir=docs/FreeBSD/ I have just read all the chapter #18 of the handbook, but I haven't found anything about the ip-up script. On the contrary the PPPD(8) man page claims that the /etc/ppp/ip-up is executed when the link is available for sending and receiving IP packets. My link becomes available for sending/receiving IP packets, but ip-up is never executed. Any ideas why? By the way, I am using kernel PPP, (on ppp0) if it makes any difference. Thanks for responding Jim Xochellis ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: a road to nowhere
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, On Thursday 13 November 2003 03:20, .VWV. wrote: I still can't believe what people of GNOME and KDE have done. With GTK 1.x And what is that then? and KDE 2.x there were only some little adjustments missing, to obtain the 'perfect' desktop, compatible with GNUstep's Windowmaker. They have decided If Window Maker obeys the NetWM specifications from freedesktop.org, it will work fine as a replacement for KWin in KDE: http://www.freedesktop.org/Standards/wm-spec If it doesn't... well it's their fault. - -- Cheers, Chris Howells -- [EMAIL PROTECTED], [EMAIL PROTECTED] Web: http://chrishowells.co.uk, PGP ID: 0x33795A2C KDE/Qt/C++/PHP Developer: http://www.kde.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/s1kkF8Iu1zN5WiwRAlRVAJwKVnQxg4UVxje4llrV1SG/enPp+wCfegsB xMZygXLJfyNpmKN/LFDpO7E= =eKpj -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: a road to nowhere
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, On Thursday 13 November 2003 03:20, .VWV. wrote: Whoops, sent too early. I have tried and retried, but the result is always the same: there is no common style under GTK 2.x and KDE 3.x. Keramik/Geramik? Bluecurve? There is no style matching GNUstep, Why should there be? there aren't customizable windowmanagers any more. ??? - -- Cheers, Chris Howells -- [EMAIL PROTECTED], [EMAIL PROTECTED] Web: http://chrishowells.co.uk, PGP ID: 0x33795A2C KDE/Qt/C++/PHP Developer: http://www.kde.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/s1otF8Iu1zN5WiwRAlxSAJ44agEAOTWiChsuySHFUm+PpFDTcwCgj0Vw 0rssz8yVGrpcSJPBq8sYs88= =BPbf -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Adding packages to the 4.7-RELEASE
If you've installed the ports collection from the 4.7 CD-ROM, you should be able to say cd /usr/ports/lang/python make install and as long as the source tarballs are still available, you will have python. - Original Message - From: Steve Blair [EMAIL PROTECTED] Subject: Adding packages to the 4.7-RELEASE Hello: I'm having difficulty locating a download site where I can get a python interpreter. I am running 4.7-RELEASE and both /stand/sysinstall and browing mirror sites using a web browser turn up nothing. Can you either mail me the python package or point me to a site where I get retrieve it? I've tried setting my release to any but that has not fixed or changed the problem. Thanks,Steve -- ISC Network Engineering The University of Pennsylvania 3401 Walnut Street, Suite 221A Philadelphia, PA 19104 voice: 215-573-8396 fax: 215-898-9348 sip:[EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Essay.
[Apologies for not quoting - braindead MUA] A good overview of BSD history is at http://www.oreillynet.com/pub/a/network/2000/03/17/bsd.html - you could then research some aspect of the story that interests you. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Essay.
On Wed, 12 Nov 2003, Lewis Thompson wrote: Hey guys, I'm a first year CS student at Manchester and I've been given the task of writing a 1,000 word essay on something computer-related. It can be pretty much anything I want (I think). I've decided FreeBSD is interesting, the OS I advocate and that I shall write about this. Hi! salon.com had a nice article in around late 2000 or early 2001, I already used it to found some parts of my speech at Linuxtag 2001 in Germany. http://dir.salon.com/tech/fsp/2000/05/16/chapter_2_part_one/index.html my (german) speech can be found here: http://hydra.linuxtag.uni-kl.de/~spindler/talks/Hoyer/ HTH Olaf Hoyer -- Olaf Hoyer[EMAIL PROTECTED] Fuerchterliche Erlebniss geben zu raten, ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist. (Nietzsche, Jenseits von Gut und Boese) ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: md5/des ?
Oles Hnatkevych wrote: Hello! /usr/bin/passwd does my passwords MD5 encrypted (accordingly to /etc/login.conf) But /usr/sbin/adduser creates users with DES encrypted passwords. How do I make it use MD5 instead of DES? Seems like it's perls crypt() problem, and the DES is the default... In case you're running FreeBSD 4.x, please see the attached patch. I pulled it from the Internet some time ago and subsequently improved it slightly, as far as I recall. With this patch applied 'adduser' honors the 'passwd_format' parameter in '/etc/login.conf'. Uwe -- Uwe Doering | EscapeBox - Managed On-Demand UNIX Servers [EMAIL PROTECTED] | http://www.escapebox.net --- src-4.5-RELEASE/usr.sbin/adduser/adduser.perl Wed Nov 21 02:46:56 2001 +++ src/usr.sbin/adduser/adduser.perl Wed Apr 9 11:41:17 2003 @@ -26,6 +26,7 @@ # # $FreeBSD: src/usr.sbin/adduser/adduser.perl,v 1.44.2.3 2001/10/15 13:43:18 dd Exp $ +use DB_File; # read variables sub variables { @@ -687,6 +688,7 @@ local($userhome); local($groupmembers_bak, $cryptpwd); local($new_users_ok) = 1; +local($salt_extended); $new_groups = no; @@ -712,7 +714,10 @@ $new_users_ok = 1; $cryptpwd = ; - $cryptpwd = crypt($password, salt) if $password ne ; + $salt_extended = passwd_format_prefix($class); + $salt_extended .= salt; + $cryptpwd = crypt($password, $salt_extended) if $password ne ; + # obscure perl bug $new_entry = $name\: . $cryptpwd . \:$u_id\:$g_id\:$class\:0:0:$fullname:$userhome:$sh; @@ -786,11 +791,36 @@ return @array; } +# determine and return salt prefix depended on login_class given +sub passwd_format_prefix { +local($class) = shift; +local(%hash,$v); +local($ret) = ; + +tie %hash, 'DB_File', /etc/login.conf.db, O_RDONLY, 0644, $DB_HASH || + return ; + +$class = default if($class eq ); +if (exists($hash{$class})) { + $v = $hash{$class}; + $v =~ /passwd_format=([a-z0-9]*):/; + if ($1 eq 'md5') { + $ret = \$1\$; + } elsif ($1 eq 'blf') { + $ret = \$2\$; + } +} + +untie %hash; + +return $ret; +} + # see /usr/src/usr.bin/passwd/local_passwd.c or librcypt, crypt(3) sub salt { local($salt); # initialization local($i, $rand); -local(@itoa64) = ( '0' .. '9', 'a' .. 'z', 'A' .. 'Z' ); # 0 .. 63 +local(@itoa64) = ( '.', '/', '0' .. '9', 'a' .. 'z', 'A' .. 'Z' ); # 0 .. 63 warn calculate salt\n if $verbose 1; # to64 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
GDM - configured as per the documentation but stil chrashes - FreeBSD 4.9 an d 5.1
I cannot get GDM2 to work on neither 4.9(nor 5.1.) GDM chrashes at boot time no matter what I do. I use the gnome2-2.4.0 package. I have tried to install it at install time(which results in the gdm users not being created), installed it afterwards and compiled it from source(using ports), but the result is the same: gdm chrashes X at boot time. I have followed the instructions given at package install, that is copied the /usr/X11R6/etc/rc.d/gdm.sh.sample to /usr/X11R6/etc/rc.d/gdm.sh. I have also copied the /usr/x11R6/etc/gdm/factory-gdm.conf to /usr/X11R6/etc/gdm/gdm.conf. I have not touched the /etc/ttys file, it is vanilla as installed. I have searched the net in vain for any tips on how to fix this, the only things I have found are the ones I have tried already. The pam fix(from http://people.freebsd.org/~marcus/pam_get_user.c.diff ) should not apply to 4.9 so I have not treid that. Any help would be greatly appreciated. Martin ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: How to find our what version of ports your running?
Hmmm... Thanks for that Lowell. Yes I knew about the pkg_version cmd. I was just hoping that I had missed a command or file that explain it all. I started digging around, and found that the /usr/ports/LEGAL file has the following: # $FreeBSD: ports/LEGAL,v 1.274 2003/02/19 04:24:53 marcus Exp $ as one of the headers, so I guess, that is a rough indication of when it was compiled. Perhaps it might even roughly tie in with the FTP site iso Hmmm, just checked, and they only show 4.8 as the oldest: April 2003 So I guess, that ports version came with 4.7. Anyway, thanks everyone. Cheers, Paul Hamilton -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Lowell Gilbert Sent: Wednesday, 12 November 2003 11:26 PM To: Paul Hamilton Cc: horio shoichi; Freebsd-Questions Subject: Re: How to find our what version of ports your running? Paul Hamilton [EMAIL PROTECTED] writes: Is there a way to find out the ports version, from a CD upgrade? i.e.. initial install was 4.2 then a 4.6 upgrade, then a 4.7 and then a 4.8 upgrade. Hmm, was the ports tree upgraded along with main upgrades or not? Ports are not updated along with the base system. You can do that separately, but usually don't need to. You can determine the versions of the ports installed on your system with the pkg_version(1) command. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
exim not running after portupgrade?
I recently ran portupgrade to get to a state that approximates current, and when I rebooted exim is not running. It used to, just fine, but now when I boot I've got no MTA. I can tell you, fetchmail thinks this is quite the problem :-) What could have caused this? As far as I can tell it was being started *somehow* before, and now it isn't. It works fine if I just remember to # sudo exim -bd -q5m but I think it shouldn't have stopped starting just because of a portupgrade. I went from exim 4.12 to 4.24, but there are no changes in the configuration needed for that update. Any ideas? -- yours, William ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
where to find info on ipfw programming interface?
Hi ppl! I need to be able to control ipfw rules from within my program. A year ago I spent a week to get how to do this using ipfw utility sources. And at last successfully did it after a lot of probes and falls :0) But now since 5.0 FreeBSD is using another implementation (so called IPFW2) which is much more comprehensive and I believe robust at least as I got from ip_fw.h But in any case some thing are still unclear for me. So the question is: where can I find some kind of formal specification on what order commands and actions must be placed in a rule and what kind of parameters are needed for every kind of op_code. If there're anything about thsi problem I'd be very glad to have a copy or at last a link to :0) Alex ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: exim not running after portupgrade?
On Thu, Nov 13, 2003 at 08:50:31AM -0500, William O'Higgins wrote: I recently ran portupgrade to get to a state that approximates current, and when I rebooted exim is not running. It used to, just fine, but now when I boot I've got no MTA. I can tell you, fetchmail thinks this is quite the problem :-) What could have caused this? As far as I can tell it was being started *somehow* before, and now it isn't. It works fine if I just remember to # sudo exim -bd -q5m but I think it shouldn't have stopped starting just because of a portupgrade. I went from exim 4.12 to 4.24, but there are no changes in the configuration needed for that update. I'm pretty sure that sometime during that gap a requirement for exim_enable=YES in /etc/rc.conf was introduced. Ceri -- pgp0.pgp Description: PGP signature
Re: FreeBSD Essay.
On Wed, 12 Nov 2003, Lewis Thompson wrote: Hey guys, I'm a first year CS student at Manchester and I've been given the task of writing a 1,000 word essay on something computer-related. It can be pretty much anything I want (I think). I've decided FreeBSD is interesting, the OS I advocate and that I shall write about this. I am planning to write a brief history of the four BSDs, going way back in time (probably a few words on Ritchie, etc.) but then concentrate on FreeBSD. 1000 words is awfully short to cover such a general topic in any detail--a few sentences on each would use up that much space easily. A couple of alternatives I can think of would be: to use FreeBSD as representative of the BSD's in general and focus on open source technology and describe some of the advantages and disadvantages compared to Windows; or what makes the BSD's different from Linux, since most people who aren't familiar with PC-unices will probably have at least heard of Linux and are likely to consider FreeBSD to be the same thing, more or less. Cheers, Viktor ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re[2]: newbie dns mess w/ nic
Greetings, Thursday, November 13, 2003, 12:21:00 AM, you wrote: ML At 03:32 PM 11/12/2003, Steve Bertrand wrote: Add the following to your /etc/rc.conf file: default_router=192.168.0.1 Ahh, but the line in rc.conf should be like that: defaultrouter=192.158.0.1 Wrong syntax, did it myself a couple of times :) -- Best regards, Dmitry Kochetov (ALG12-RIPN, ALGR-RIPE) mailto:[EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Cant Build KDE3
I am having some problems building KDE3 on FreeBSD 5.1. When an attempt to build the dependancy kdesdk3 is made it ALWAYS fails. Is this something I could have caused? If so I would like to find out what it is. It seems you MUST build kde with kdesdk3 so it is a required dependancy. I would really like to use KDE3 and can't even find a FreeBSD package. I have heard that cdparanoia port is broken. Would this cause kdesdk3 not to build on FreeBSD 5.1 (my problem)? Below is the stoping point: c++: -lc_r: linker input file unused because linking not done c++: -lc_r: linker input file unused because linking not done /bin/sh ../libtool --silent --mode=link --tag=CXX c++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwr ite-strings -DNDEBUG -DNO_DEBUG -O2 -O -pipe -mcpu=pentiumpro -fno-exception s -fno-check-new -DQT_CLEAN_NAMESPACE -UQT_NO_COMPAT -DQT_NO_ASCII_CAST -L /usr/X11R6/lib -lc_r -L/usr/local/lib -L/usr/local/lib -R /usr/local/lib -R /usr/X11R6/lib -R /usr/X11R6/lib -R /usr/local/lib -o libcervisia.la.closure libcervisia_la_closure.lo -L/usr/X11R6/lib -lc_r -L/usr/local/lib -L/usr/lo cal/lib -version-info 1:0:0 -module -no-undefined updateview.lo protocolview.lo watchdlg.lo settingsdlg.lo changelogdlg.lo historydlg.lo repositorydlg.lo commitdlg.lo checkoutdlg.lo updatedlg.lo tagdlg.lo mergedlg.lo logdlg.lo logtree.lo loglist.lo diffdlg.lo resolvedlg.lo diffview.lo annotatedlg.lo annotateview.lo cvsprogressdlg.lo tiplabel.lo listview.lo cvsdir.lo repositories.lo misc.lo cervisiapart.lo qttableview.lo -lkio -lkparts -Wl,-export-dynamic -L/usr/local/lib -L/usr/X1 1R6/lib -ljpeg -L/usr/X11R6/lib libtool: link: warning: `-version-info' is ignored for programs .libs/cvsdir.o: In function `CvsIgnoreList::matches(QFileInfo*)': .libs/cvsdir.o(.text+0x735): undefined reference to `fnmatch(char const*, char const*, int)' gmake[2]: *** [libcervisia.la.closure] Error 1 gmake[2]: Leaving directory `/usr/ports/devel/kdesdk3/work/kdesdk-3.1.4/cervisia' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/devel/kdesdk3/work/kdesdk-3.1.4' gmake: *** [all] Error 2 *** Error code 2 Stop in /usr/ports/devel/kdesdk3. *** Error code 1 Stop in /usr/ports/x11/kde3 Thanks, Matt ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: statvfs.h
SWIT wrote: From: Kevin D. Kinsey, DaleCo, S.P. [EMAIL PROTECTED] To: M.D. DeWar [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, November 11, 2003 5:17 PM Subject: Re: statvfs.h M.D. DeWar wrote: were do yo u get header files ? or can't you ? I am trying to load a webmin module and it needs some perl modules and one filesys::statvfs needs the header file statsvfs.h and I dont have it. thanks mark #find / -name statvfs.h -print /usr/include/sys/statvfs.h /usr/src/sys/sys/statvfs.h HTH, Kevin Kinsey DaleCo, S.P. SWIT wrote: spiderman# find / -name statvfs.h -print spiderman# comes up empty. now what ? Thanks Mark Hmm, dunno. Do you have full system sources installed? Maybe a cvsup Ahh, what version are you running? statvfs.h didn't exist in FBSD before 8-21-2002, and then only in -CURRENT. So, you're on 4.x? KDK ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Postfix and SASL2 authentication
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've been able to get Postfix and SASL1 to authenticate to system accounts under FreeBSD with no problem, but now I'm trying to use SASL2. I'm running into problems. I built postfix and sasl2 from ports with no problems. I created /usr/local/lib/sasl2/smtpd.conf: pwcheck_method: saslauthd mech_list: plain login saslauthd is being run with the -a getpwent flags from /etc/rc.conf. Postfix is set up to use SASL: enable_sasl_authentication = yes smtpd_sasl_auth_enable = yes smtpd_sasl_security_options = noanonymous smtpd_sasl_local_domain = $myhostname broken_sasl_auth_clients = yes However, when I test with a base64-encoded username\0username\0password string, it doesn't authenticate: Nov 13 07:46:29 taz postfix/smtpd[327]: localhost[127.0.0.1]: AUTH PLAIN bWludGVyAG1pbnRlcgBjaGFuZ2VtZQ== Nov 13 07:46:29 taz postfix/smtpd[327]: smtpd_sasl_authenticate: sasl_method PLAIN, init_response bWludGVyAG1pbnRlcgBjaGFuZ2VtZQ== Nov 13 07:46:29 taz postfix/smtpd[327]: smtpd_sasl_authenticate: decoded initial response minter Nov 13 07:46:29 taz postfix/smtpd[327]: warning: SASL authentication failure: Password verification failed Nov 13 07:46:29 taz postfix/smtpd[327]: warning: localhost[127.0.0.1]: SASL PLAIN authentication failed Nov 13 07:46:29 taz postfix/smtpd[327]: localhost[127.0.0.1]: 535 Error: authentication failed Does anyone know what I'm doing wrong? - --Wade -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/s6fHo4DwsyRGDscRAtq5AJ9jV/BCr0r8n/Mc6n73Miv07b1NAwCePs5m uOeXWaE2WlXwBSvWJuW8mfA= =XVfP -END PGP SIGNATURE- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie: The C / C++ Issue
On Tue, 11 Nov 2003, Alex Kelly wrote: Thanks for all of the great suggestions to my previous question! Yet, the responses have led me to another question. If C++ is newer and more advanced than C, will it replace C? If so, should I learn C++ and forget C? Good advice: Have a look at Bruce Eckel's free, though excellent, electronic books at http://mindview.net/Books/ Thinking in C++ and get started. FreeBSD's built in gcc should do all you need for the beginning. - And: Have fun! Uli. Alex ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] +---+ |Peter Ulrich Kruppa| | Wuppertal | | Germany | +---+ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
No gethostbyname_r() in FreeBSD?
Hi, I'm trying to compile milter-dnsrbl.c from ftp://ftp.atnf.csiro.au/pub/people/rgooch/email-utilities/mailutils.tgz The problem is that gethostbyname_r() doesn't seem to exist in FreeBSD. This is the code which uses it (from milter-dnsrbl.c): -- #if !defined(__linux__) || !defined(__GLIBC__) if ( !gethostbyname_r (lookup_name, ret, buf, sizeof buf, herrnum) ) continue; #else if ( gethostbyname_r (lookup_name, ret, buf, sizeof buf, result, herrnum) ) continue; #endif -- Am I just missing something here (like linking to some obscure library), or is that really a known issue? I'm using: FreeBSD 4.9-STABLE #0: Fri Nov 7 03:24:27 CET 2003 with a GENERIC kernel. Thanks, cpghost. -- Cordula's Web. http://www.cordula.ws/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Cant Build KDE3
ME [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am having some problems building KDE3 on FreeBSD 5.1. When an attempt to build the dependancy kdesdk3 is made it ALWAYS fails. Is this something I could have caused? If so I would like to find out what it is. It seems you MUST build kde with kdesdk3 so it is a required dependancy. I would really like to use KDE3 and can't even find a FreeBSD package. I have heard that cdparanoia port is broken. Would this cause kdesdk3 not to build on FreeBSD 5.1 (my problem)? Below is the stoping point: c++: -lc_r: linker input file unused because linking not done c++: -lc_r: linker input file unused because linking not done /bin/sh ../libtool --silent --mode=link --tag=CXX c++ -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -W -Wpointer-arith -Wwr ite-strings -DNDEBUG -DNO_DEBUG -O2 -O -pipe -mcpu=pentiumpro -fno-exception -fno-check-new -DQT_CLEAN_NAMESPACE -UQT_NO_COMPAT -DQT_NO_ASCII_CAST -L /usr/X11R6/lib -lc_r -L/usr/local/lib -L/usr/local/lib -R /usr/local/lib -R /usr/X11R6/lib -R /usr/X11R6/lib -R /usr/local/lib -o libcervisia.la.closure ibcervisia_la_closure.lo -L/usr/X11R6/lib -lc_r -L/usr/local/lib -L/usr/lo cal/lib -version-info 1:0:0 -module -no-undefined updateview.lo protocolview.lo watchdlg.lo settingsdlg.lo changelogdlg.lo historydlg.lo repositorydlg.lo commitdlg.lo checkoutdlg.lo updatedlg.lo tagdlg.lo mergedlg.lo logdlg.lo logtree.lo loglist.lo diffdlg.lo resolvedlg.lo diffview.lo annotatedlg.lo annotateview.lo cvsprogressdlg.lo tiplabel.lo listview.lo cvsdir.lo repositories.lo misc.lo cervisiapart.lo qttableview.lo -lkio -lkparts -Wl,-export-dynamic -L/usr/local/lib -L/usr/X1 1R6/lib -ljpeg -L/usr/X11R6/lib libtool: link: warning: `-version-info' is ignored for programs .libs/cvsdir.o: In function `CvsIgnoreList::matches(QFileInfo*)': .libs/cvsdir.o(.text+0x735): undefined reference to `fnmatch(char const*, char const*, int)' gmake[2]: *** [libcervisia.la.closure] Error 1 gmake[2]: Leaving directory `/usr/ports/devel/kdesdk3/work/kdesdk-3.1.4/cervisia' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/devel/kdesdk3/work/kdesdk-3.1.4' gmake: *** [all] Error 2 *** Error code 2 Stop in /usr/ports/devel/kdesdk3. *** Error code 1 Stop in /usr/ports/x11/kde3 Thanks, Matt Sorry to answer my own post. I have found the solution. First, it was my fault. It seems the heimdal port (once again) was causing some problems with the build. The file /usr/local/fnmatch.h which was installed by heimdal was causing the problem. I deinstalled heimdal (will re-install it after KDE is up.) and attempted again. This time, for the first time, kdesdk3 built AND installed. Hope that helps someone out there. Matt ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Missing cvsupit?
I'm missing this. Can someone give me an example cvsupfile for FreeBSD 4.9? Preston ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re[2]: newbie dns mess w/ nic
At 10:13 AM 11/13/2003, Dmitry Kochetov wrote: Ahh, but the line in rc.conf should be like that: defaultrouter=192.158.0.1 Thanks for the follow up Dmitry. Right now I've got the typo'd line commented out on /etc/rc.conf and am accomplishing this with the line route add default 192.168.0.7 in an exec on /usr/local/etc/rc.d. 1. what's the difference between these two commands, e.g. are they interchangable in this case? 2. other than the potential for a race condition (if that's even the right way to put it) is there anything better about establishing dns routing in rc.conf than in the rc.d exec on restart? **3. how the heck do I give my fbsd box a name on my lan? this has been bugging me for a few days now Marty Landman Face 2 Interface Inc 845-679-9387 Sign On Required: Web membership software for your site Make a Website: http://face2interface.com/Home/Demo.shtml ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Missing cvsupit?
I'm missing this. Can someone give me an example cvsupfile for FreeBSD 4.9? This is for 4.9-STABLE: cut here --- cut here - *default host=cvsup2.de.FreeBSD.org *default base=/usr *default prefix=/usr *default release=cvs tag=RELENG_4 *default delete use-rel-suffix *default compress src-all ports-all tag=. doc-all tag=. cut here --- cut here - -- Cordula's Web. http://www.cordula.ws/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie: The C / C++ Issue
On Tue, 11 Nov 2003, Alex Kelly wrote: Good advice: Have a look at Bruce Eckel's free, though excellent, electronic books at http://mindview.net/Books/ Thinking in C++ and get started. FreeBSD's built in gcc should do all you need for the beginning. There's no way, IMO, that you can learn C++ from Thinking in C++. I tried... and failed (though I was 15 at the time and had no previous programming knowledge apart from trying to learn C and hating every minute of it). It's no doubt an excellent book, I have a paper copy of it, but I consider rather more a book for those that know a reasonable amount of C++ and want to advance their knowledge. Cheers, Chris Howells ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: exim not running after portupgrade?
On Thu, 13 Nov 2003, Ceri Davies wrote: On Thu, Nov 13, 2003 at 08:50:31AM -0500, William O'Higgins wrote: I recently ran portupgrade to get to a state that approximates current, and when I rebooted exim is not running. It used to, just fine, but now when I boot I've got no MTA. I can tell you, fetchmail thinks this is quite the problem :-) What could have caused this? As far as I can tell it was being started *somehow* before, and now it isn't. It works fine if I just remember to # sudo exim -bd -q5m but I think it shouldn't have stopped starting just because of a portupgrade. I went from exim 4.12 to 4.24, but there are no changes in the configuration needed for that update. I'm pretty sure that sometime during that gap a requirement for exim_enable=YES in /etc/rc.conf was introduced. Yes, exactly. The exim port is now compatible with -current's rcng; if you look at /usr/local/etc/rc.d/exim.sh you'll probably see it's checking for that flag. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ printf 'cat\nhello world' | `sh -c 'read c; echo $c'` ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
video guru needed - installing driver for ATI 3D Rage IIC AGP
Hi, I've done as much research as I can on this, I need to enable xv support for my video card, so that I can play videos full-screen in Kmplayer. If I'm going about this wrong, let me know. According to the XFree86 log, It seems the place to go is http://gatos.sf.net I've been there, and downloaded the ATI-4.3.0-10.i386.tar.gz drivers. These seem to be the ati drivers for XF86 4.3.0. I've expanded them inside Konqueror to see if there is a README, and there isn't. Before I totally screw up my display, I was wondering Has anyone successfully installed these drivers for the same card that I have? ATI 3D Rage IIC AGP (8 mb ram) Do they work? How must they be installed? Is there any documentation online? -- Thanks, Charles ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
NTP question
Hello all, I have an NTP question that I hope someone can help me with. I have built two NTP servers on FreeBSD 4.8 and updated to STABLE. When they were being built and tested, they were on the same subnet, and were able to synch time just fine. Now they are in production, and on seperate networks, one server continues to display stratum 0. If I kill the xntp daemon, then run ntpdate to the ip address of the other server, it tells me there is no server suitable for synchronization. Any ideas as to how to fix this? Thanks, Ron Clark __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: NTP question
On Thursday 13 November 2003 17:52, Ronnie Clark wrote: Hello all, I have an NTP question that I hope someone can help me with. I have built two NTP servers on FreeBSD 4.8 and updated to STABLE. When they were being built and tested, they were on the same subnet, and were able to synch time just fine. Now they are in production, and on seperate networks, one server continues to display stratum 0. If I kill the xntp daemon, then run ntpdate to the ip address of the other server, it tells me there is no server suitable for synchronization. Any ideas as to how to fix this? Maybe name resolution problem in ntp.conf? You say you did a ntpdate to IP. Keep in mind that ntpd on machine IP has to settle down to synchronize with other ntp-servers listed in ntp.conf. Just wait a view minutes (you can use ntpdc and the command peers to check) -Harry Thanks, Ron Clark __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] pgp0.pgp Description: signature
apache install problem
I just installed Apache2 and not sure how to proceed, if I'm doing things wrong from here or there is some other problem: $ which apachectl /usr/local/sbin/apachectl $ apachectl start httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName (13)Permission denied: make_sock: could not bind to address [::]:80 no listening sockets available, shutting down Unable to open logs $ Marty Landman Face 2 Interface Inc 845-679-9387 Sign On Required: Web membership software for your site Make a Website: http://face2interface.com/Home/Demo.shtml ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Essay.
On Wed, Nov 12, 2003 at 04:41:45PM -0500, Jud wrote: On Wed, 12 Nov 2003 21:41:40 +0100, Alex de Kruijff [EMAIL PROTECTED] said: On Wed, Nov 12, 2003 at 07:01:36PM +, Lewis Thompson wrote: Hey guys, I'm a first year CS student at Manchester and I've been given the task of writing a 1,000 word essay on something computer-related. It can be pretty much anything I want (I think). I've decided FreeBSD is interesting, the OS I advocate and that I shall write about this. I am planning to write a brief history of the four BSDs, going way back in time (probably a few words on Ritchie, etc.) but then concentrate on FreeBSD. My advise would be to pick one subject and stick with that. Don't go into the history in general if you for something detailed about FreeBSD and if you go for the hirstory don't write about something detailed. You'll proberbly find that you have lots to write about. I have two subjects you may like: 1. The history starting from 1978 until now. Perhaps something about the feutere of BSD (dead), BSDi (could be dead), FreeBSD, NetBSD and OpenBSD. 2. FreeBSD 5 (History of FreeBSD 5, feutes, compersent betwain 4 and 5 and 5 and linux. If you have space over one detailed subject.) The history in it self should be larg enove and intersating on its own. You could start with the outcomming of Unix and go on to the univeristy of Berkley. Then go to the outcomming of FreeBSD, NetBSD and BSDi. Followed by the lawsute betain Unix and BSDi BSD. Then OpenBSD came out in 1995. Recently Apple followed with Darwin (based on NetBSD and FreeBSD). As altenative there are two CD versions (NetBox and FreeBIE) and a small version (PicoBSD) wich are based on FreeBSD. Ending with a compersent betwain all versions. I'm really asking if anybody can suggest any particularly interesting topics that I can go away and research and then include in my essay. I guess since it's only a short essay I can't have /too/ much detail and I didn't particularly want to try and explain something /very/ complicated (although please suggest just the same ;). Another subject would be the outcomming of FreeBSD 5. If you go this way skip the general history!! Only go for the relevent history for this version. Then coninue on the new and cool feutures of FreeBSD 5. Maybe talk about one or two in more detail. And a compersent betwain FreeBSD 4 and 5. For something sufficiently technical as well as a bit controversial, what about comparing/contrasting the two roads from version 4 of FreeBSD - version 5 vs. DragonflyBSD? Thats more or less my second idee. You can talk about coll things like fsck your slice and not umount it. -- Alex Articles based on solutions that I use: http://www.kruijff.org/alex/index.php?dir=docs/FreeBSD/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: apache install problem
I just installed Apache2 and not sure how to proceed, if I'm doing things wrong from here or there is some other problem: $ which apachectl /usr/local/sbin/apachectl $ apachectl start httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName (13)Permission denied: make_sock: could not bind to address [::]:80 no listening sockets available, shutting down Unable to open logs You need to edit: /usr/local/etc/apache2/httpd.conf Among others, set ServerName to your hostname, and check the other directives in httpd.conf too. Don't forget to use the -dist templates in /usr/local/etc/apache2, e.g.: cp mime.times-dist mime.types Good luck. -- Cordula's Web. http://www.cordula.ws/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: apache install problem
On Thu, 13 Nov 2003 12:21:23 -0500 Marty Landman [EMAIL PROTECTED] spake thus: I just installed Apache2 and not sure how to proceed, if I'm doing things wrong from here or there is some other problem: $ which apachectl /usr/local/sbin/apachectl $ apachectl start httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName (13)Permission denied: make_sock: could not bind to address [::]:80 no listening sockets available, shutting down Unable to open logs mate, what does the log message say ? (13)Permission denied: make_sock: could not bind to address [::]:80 one of two things spring to mind, the apache start is not being run by root or you have something else listening on that port. what you need to do next is this, make sure you are root when you execute the apachectl commands, if that still doesn't work then *as* root execute #sockstat -4 | grep 80 and post the output HTH LK -- Luke Kearney [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: video guru needed - installing driver for ATI 3D Rage IIC AGP
On Thursday 13 November 2003 11:34 am, Olivier Cherrier wrote: -Message d'origine- De : Charles Howse [mailto:[EMAIL PROTECTED] Envoyé : jeudi 13 novembre 2003 17:26 À : Questions Objet : video guru needed - installing driver for ATI 3D Rage IIC AGP Hi, I've done as much research as I can on this, I need to enable xv support for my video card, so that I can play videos full-screen in Kmplayer. If I'm going about this wrong, let me know. According to the XFree86 log, It seems the place to go is http://gatos.sf.net I've been there, and downloaded the ATI-4.3.0-10.i386.tar.gz drivers. These seem to be the ati drivers for XF86 4.3.0. I've expanded them inside Konqueror to see if there is a README, and there isn't. Before I totally screw up my display, I was wondering Has anyone successfully installed these drivers for the same card that I have? ATI 3D Rage IIC AGP (8 mb ram) Do they work? How must they be installed? Is there any documentation online? Why not using ports ? Fine...what is the port name? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: No gethostbyname_r() in FreeBSD?
On Thu, Nov 13, 2003 at 04:59:21PM +0100, Cordula's Web wrote: Hi, I'm trying to compile milter-dnsrbl.c from ftp://ftp.atnf.csiro.au/pub/people/rgooch/email-utilities/mailutils.tgz The problem is that gethostbyname_r() doesn't seem to exist in FreeBSD. This is the code which uses it (from milter-dnsrbl.c): -- #if !defined(__linux__) || !defined(__GLIBC__) if ( !gethostbyname_r (lookup_name, ret, buf, sizeof buf, herrnum) ) continue; #else if ( gethostbyname_r (lookup_name, ret, buf, sizeof buf, result, herrnum) ) continue; #endif -- Am I just missing something here (like linking to some obscure library), or is that really a known issue? I'm using: FreeBSD 4.9-STABLE #0: Fri Nov 7 03:24:27 CET 2003 with a GENERIC kernel. It's a known issue. There are some third party DNS libraries that provide an implementation, e.g. in newer versions of bind. Kris pgp0.pgp Description: PGP signature
Re: Missing cvsupit?
On Thu, 13 Nov 2003, Preston Crawford wrote: I'm missing this. Can someone give me an example cvsupfile for FreeBSD 4.9? Example files covering all major configurations can be found in: /usr/share/examples/cvsup Cheers, Viktor ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Mount SMB share on bootup
On Wed, 12 Nov 2003 15:37:58 -0600 Chirhart, Brian [EMAIL PROTECTED] wrote: What language is that script in? It isn't perl - is it C? - #!/bin/sh Regards -- Pierrick Brossin pbrossin .at. swissgeeks .dot. com http://www.swissgeeks.com perl -e\ 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);' ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: apache install problem
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Marty Landman Sent: Thursday, November 13, 2003 11:21 AM To: [EMAIL PROTECTED] Subject: apache install problem I just installed Apache2 and not sure how to proceed, if I'm doing things wrong from here or there is some other problem: $ which apachectl /usr/local/sbin/apachectl $ apachectl start httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName (13)Permission denied: make_sock: could not bind to address [::]:80 no listening sockets available, shutting down Unable to open logs $ I just had this problem the other day. It wasn't httpd.conf, it was /etc/hosts. I looked at my OpenBSD box that was working properly and copied the format listed there. ::1 localhost.domain.com localhost 127.0.0.1 localhost.domain.com localhost 127.0.0.1 hostname.domain.com hostname I can't really explain this like others on this list, i just know it worked. Hope this helps, Terry ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: apache install problem
On Thu, Nov 13, 2003 at 12:21:23PM -0500, Marty Landman wrote: I just installed Apache2 and not sure how to proceed, if I'm doing things wrong from here or there is some other problem: $ which apachectl /usr/local/sbin/apachectl $ apachectl start httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName (13)Permission denied: make_sock: could not bind to address [::]:80 no listening sockets available, shutting down Unable to open logs Sounds as though: - there's no ServerName set up in httpd.conf (the Could not determine... error) - check and make sure the ServerName line is right for your domain (or just use localhost to test it out) - you started the server once already and it's already listening on port 80 (the make_sock error) - make sure the server isn't already running when you issue: apachectl start - a perms problem exists on the logfile, again check the logfile setup in httpd.conf and make sure the file is writeable by the www user (although this problem may be related to the previous one) -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: video guru needed - installing driver for ATI 3D Rage IIC AGP
Why not using ports ? Fine...what is the port name? Oh ! Right ! ;-) I use it on OpenBSD and didn't imagine that it wouldn't exist on FreeBSD. Maybe, look at the OpenBSD port ... (http://www.openbsd.org/cgi-bin/cvsweb/ports/x11/gatos-bin/) Good luck. oc ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: statvfs.h
spiderman# find / -name statvfs.h -print spiderman# comes up empty. now what ? Thanks Mark Hmm, dunno. Do you have full system sources installed? Maybe a cvsup Ahh, what version are you running? statvfs.h didn't exist in FBSD before 8-21-2002, and then only in -CURRENT. So, you're on 4.x? KDK spiderman# uname -a FreeBSD spiderman.wirelesscommunitynetworks.com 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Thu Apr 3 10:53:38 GMT 2003 [EMAIL PROTECTED]:/usr/obj/usr/ src/sys/GENERIC i386 and I did not isntall the src or whatever its called. (sorry to newbie to know all the lingo yet) Thanks Mark ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
sound question
hello I have a problem I somehow fixed once, but I can't remember how :-) sim-icq gives me the following message play: /dev/dsp: Device busy (it uses the play command for the sound plugin) it means that somehow the sound channel is used by other program (I have xmms running, and also enlightenment has the sounds option on), but only the play command doesn't run can I make play use other device ? which one ? TIA, petre -- Login: petreName: Petre Bandac Directory: /home/petre Shell: /usr/local/bin/zsh On since Tue Nov 11 14:37 (EET) on ttyv0, idle 11:04 (messages off) No Mail. No Plan. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie: The C / C++ Issue
Am I missing something here? When does C have OO capability? Structs don't count. What about inheritance and polymorphism? That's in the implementation AND application. Just because you CAN access part of a lowly struct, doesn't mean you have to. It's object oriented if you OBSERVE the restricted accesses defined by OO. Whether or not they're there is completely irrelevant. Of course C has OO capability, it just doesn't have its restrictions :) The idea that C can be used to do object-oriented programming is a myth. The C language is not object-oriented or even object-based. The big reason C++ is object-oriented is due to dynamic binding. Check out the C++ FAQ lite: http://www.parashift.com/c++-faq-lite/big-picture.html#faq-6.8 If you declare a struct, and then implement a specific set of routines to manipulate it, and only use those routines, except for those 'data members' that would otherwise be public anyway, that's essentially your class. You're doing without all the type and access restrictions IMPOSED by C++, but that doesn't mean you can't OBSERVE those restrictions. This way, when saving cpu time is critical, you can bend those rules. With C++, you're stuck on the long road. You can drive your car to an open plain in the desert, and operate the vehicle as if you were in the city, observing imaginary stop lights, lanes and traffic. But why pretend? The systematic constraints in C++ exist to organize code, protect your work. They are there for the same basic reasons that local variables exist in C. I would agree that you can write programs that do the same thing in all three languages above, but I don't think that OO is a waste of time. OO promotes code reuse. That is the whole point. No one ever claimed OO was a waste of time that I noticed. But I don't see code reuse with C++ any more than with C. I'm a real big fan of code reuse, and I have reused more C code than I can remember. Problem is that when C++ code gets reused, it's usually a template class, in which case, you'd probably be better off with C anyway. There are so many different ways to re-use code. Even cutting and pasting, which is essentially what the STL does. (correct me if I am wrong) If you are going to re-use code, at least be organized, make a good interface, and don't re-invent the wheel unless you have to. C, C++, whatever. Using C++ implies a state of mind. You can write code like in C, but it defeats the purpose of using an OO language. Not sure what you mean by this, but if using C++ is a state of mind, why can't that state of mind affect the way C code is written? And it doesn't defeat the purpose if you misbehave regularly and NEED the unbreakable restrictions. Components in the real-world problem map directly to objects in the program. C++ was designed to be used this way. C was not. --Allan ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sound question
play: /dev/dsp: Device busy Perhaps esd is running and grabbing the sound device? I have a similar problem with mpg123. Calling mpg123 multiple times (e.g. in a loop with a shell script) until it works is an acceptable work-around for me: #!/bin/sh until (mpg123 $1) do sleep 1; done Of course, a solution would be better than a work-arond :) -- Cordula's Web. http://www.cordula.ws/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sound question
[EMAIL PROTECTED] ps -ax | grep esd ~ 80418 ?? Ss 2:56.38 esd -terminate -nobeeps -as 2 -spawnfd 5 84843 p5 S+ 0:00.01 egrep esd so if I kill -9 the esd process, icq will start emitting sounds ? petre On Thursday 13 November 2003 21:04 Anno Domini, Cordula's Web wrote using one of his keyboards: play: /dev/dsp: Device busy Perhaps esd is running and grabbing the sound device? I have a similar problem with mpg123. Calling mpg123 multiple times (e.g. in a loop with a shell script) until it works is an acceptable work-around for me: #!/bin/sh until (mpg123 $1) do sleep 1; done Of course, a solution would be better than a work-arond :) -- Login: petreName: Petre Bandac Directory: /home/petre Shell: /usr/local/bin/zsh On since Tue Nov 11 14:37 (EET) on ttyv0, idle 11:21 (messages off) No Mail. No Plan. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sound question
unfortunately no, it will just mute my xmms session any other solutions ? petre On Thursday 13 November 2003 21:11 Anno Domini, Petre Bandac wrote using one of his keyboards: [EMAIL PROTECTED] ps -ax | grep esd ~ 80418 ?? Ss 2:56.38 esd -terminate -nobeeps -as 2 -spawnfd 5 84843 p5 S+ 0:00.01 egrep esd so if I kill -9 the esd process, icq will start emitting sounds ? petre On Thursday 13 November 2003 21:04 Anno Domini, Cordula's Web wrote using one of his keyboards: play: /dev/dsp: Device busy Perhaps esd is running and grabbing the sound device? I have a similar problem with mpg123. Calling mpg123 multiple times (e.g. in a loop with a shell script) until it works is an acceptable work-around for me: #!/bin/sh until (mpg123 $1) do sleep 1; done Of course, a solution would be better than a work-arond :) -- Login: petreName: Petre Bandac Directory: /home/petre Shell: /usr/local/bin/zsh On since Tue Nov 11 14:37 (EET) on ttyv0, idle 11:26 (messages off) No Mail. No Plan. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Translation request
Hi all, I have a thread here from one of the polish lists that *might* have the solution to a problem I'm having. I was wondering if there were anyone on list that could translate the thread from Polish to English for me. I've tried the free online translators and they stumble over all the technical words (at least, I presume that's what they're stumbling over). Here's the link to the first message of the thread: http://www.it-faq.pl/news_archives/pl.comp.os.freebsd/2003/oct/msg00104.html Any help is greatly appreciated! chris __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
bluetooth support
Anyone happen to know if bluetooth is supported in BSD? I was thinking of getting a little USB Bluetooth adapter:) ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Shared object has no run-time symbol table(urgent)
Hello Guys, I am Bimal. I am developing a mail sender program as per client's requirement. Well, I've developed some part of it, and after sending the executables to them, they are not able to run it on their machine. We both are using Free BSD 4.8 stable. The same program runs nicely on my pc without any errors. The command line and error is shown below: %./MailSender samp_email.txt samp_template.txt /usr/libexec/ld-elf.so.1: ./MailSender: Shared object has no run-time symbol table % This is the C program, and the other files are inputted as command line arguments. I don't know why this error is coming. It's urgent because the client is becoming very impatient. I'd be very greatful to you if you can solve it. Thanks, Bimal. _ Find your first love. Rekindle past joys! http://www.batchmates.com/msn.asp Get in touch with batchmates. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie: The C / C++ Issue
On Thu, 13 Nov 2003 11:01:54 -0800 abowhill [EMAIL PROTECTED] wrote: Am I missing something here? When does C have OO capability? Structs don't count. What about inheritance and polymorphism? That's in the implementation AND application. Just because you CAN access part of a lowly struct, doesn't mean you have to. It's objectoriented if you OBSERVE the restricted accesses defined by OO. Whether or not they're there is completely irrelevant. Of course C has OO capability, it just doesn't have its restrictions :) The idea that C can be used to do object-oriented programming is a myth. The C language is not object-oriented or even object-based. The big reason C++ is object-oriented is due to dynamic binding. I don't think I buy that. With that reasoning, couldn't you say that any program in any language that does any sort of dynamic binding (for example, opening a .so file) is object-oriented? The way I see it is that object-orientation is a methodology, and languages aren't methodologies, so it's absurd to say that some language is or isn't object-oriented. (I mean, we all know that the Bourne shell is object-oriented,[1] right? :) The best you can do is to describe the degree to which some language supports or enforces object-oriented programming. Incidental to that, C++ provides many abstractions which support object-oriented programming, while not enforcing them in any way. But this is getting far off topic for this list; the bare facts remain: - much of FreeBSD (kernel, userland) is written in C - many FreeBSD ports are written in C++ So, as stated several times now, it really depends on what you want to work on. -Chris [1] http://www.usenix.org/publications/library/proceedings/bos94/haemer.html ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie: The C / C++ Issue
I hate to seem like a jerk, but I get these messages through the list already, and see no reason to get them in multiple boxes. Please feel free to continue this discussion on list, but please take this email out of the recipients list. I will join in when I am able. Granted that doesn't guarantee I'll agree with everyone, but then it wouldn't be much of a discussion, would it? :) Cheers. Lou On 11/13/03 11:42 AM, Chris Pressey sat at the `puter and typed: On Thu, 13 Nov 2003 11:01:54 -0800 abowhill [EMAIL PROTECTED] wrote: Am I missing something here? When does C have OO capability? Structs don't count. What about inheritance and polymorphism? That's in the implementation AND application. Just because you CAN access part of a lowly struct, doesn't mean you have to. It's objectoriented if you OBSERVE the restricted accesses defined by OO. Whether or not they're there is completely irrelevant. Of course C has OO capability, it just doesn't have its restrictions :) The idea that C can be used to do object-oriented programming is a myth. The C language is not object-oriented or even object-based. The big reason C++ is object-oriented is due to dynamic binding. I don't think I buy that. With that reasoning, couldn't you say that any program in any language that does any sort of dynamic binding (for example, opening a .so file) is object-oriented? The way I see it is that object-orientation is a methodology, and languages aren't methodologies, so it's absurd to say that some language is or isn't object-oriented. (I mean, we all know that the Bourne shell is object-oriented,[1] right? :) The best you can do is to describe the degree to which some language supports or enforces object-oriented programming. Incidental to that, C++ provides many abstractions which support object-oriented programming, while not enforcing them in any way. But this is getting far off topic for this list; the bare facts remain: - much of FreeBSD (kernel, userland) is written in C - many FreeBSD ports are written in C++ So, as stated several times now, it really depends on what you want to work on. -Chris [1] http://www.usenix.org/publications/library/proceedings/bos94/haemer.html -- Louis LeBlanc [EMAIL PROTECTED] Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://www.keyslapper.org ԿԬ Satellite Safety Tip #14: If you see a bright streak in the sky coming at you, duck. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Along the lined of my last message
That is, the translation request. Here is some info on the issue I've got. Running 4.9-RELEASE (that is, releng_4_9) I started having an issue with it not exiting X correctly. X *does* seem to shut down, but it leaves a corrupted image of the desktop on the screen. If I ssh in from another machine, the only thing running on that terminal is bash. uname -a: FreeBSD creadle.oc.cox.net 4.9-RELEASE FreeBSD 4.9-RELEASE #9: Wed Nov 12 13:58:15 PST 2003 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/CREADLE i386 Last bit of XFree86.0.log: GetModeLine - scrn: 0 clock: 135000 GetModeLine - hdsp: 1280 hbeg: 1296 hend: 1440 httl: 1688 vdsp: 1024 vbeg: 1025 vend: 1028 vttl: 1066 flags: 5 (EE) NVIDIA(0): Failed to destroy the primary surface I'm guessing that that that last message there is why I'm having the problem, but I've been unable to find anything that tells me how to fix it. I expect that the issue would go away if a switched back to the nv driver, but I prefer to use the one from nvidia. chris __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
File System Limits on FreeBSD-stable
Hi all, What are the file system, file size limits for FreeBSD-stable? I understand that there is a 2TB file system limit, but what about the file size? I have a friend who cannot create a file over 2GB. Should he be able to? Does 5.x handle this differently? Thanks in advance, Max -- Max Clark maxc at beast.clarksys.com http://www.clarksys.com spamtrap: [EMAIL PROTECTED] - do NOT ever send email to this address ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Newbie: The C / C++ Issue
On Thu, 13 Nov 2003, Louis LeBlanc wrote: I hate to seem like a jerk, but I get these messages through the list already, and see no reason to get them in multiple boxes. Please feel free to continue this discussion on list, but please take this email out of the recipients list. I will join in when I am able. Granted that doesn't guarantee I'll agree with everyone, but then it wouldn't be much of a discussion, would it? :) Please take it out of freebsd-questions altogether and move it to freebsd-chat or personal email or a c/c++ list. Thanks, Viktor ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: File System Limits on FreeBSD-stable
On Thu, Nov 13, 2003 at 12:07:12PM -0800, Max Clark wrote: Hi all, What are the file system, file size limits for FreeBSD-stable? I understand that there is a 2TB file system limit, but what about the file size? I have a friend who cannot create a file over 2GB. Should he be able to? Does 5.x handle this differently? I am not sure exactly what limit is for file size (among other things it depends on the block size used), but, just as for file system size, the limit is in the TB-range. It is most certainly possible to create files larger than 2GB. If your friend is unable to, he is doing something wrong. (All of the above applies for both 4.x and 5.x) -- Insert your favourite quote here. Erik Trulsson [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: sound question
play: /dev/dsp: Device busy Perhaps esd is running and grabbing the sound device? 80418 ?? Ss 2:56.38 esd -terminate -nobeeps -as 2 -spawnfd so if I kill -9 the esd process, icq will start emitting sounds ? unfortunately no, it will just mute my xmms session 1. Who started esd? 'root' or a non-root user? (ps axu) 2. Try fiddling with esd's flags? (man esd) I don't have a solution, but it's obvious that esd is opening /dev/dsp, and some programs like xmms or other sound apps communicate directly with esd, e.g. with a unix socket. If your app uses /dev/dsp directly, it will fail, because esd has locked it for itself. When I run mpg123, esd runs with the following params: $ ps ax | grep esd 15939 ?? Rs 0:03.23 esd -terminate -nobeeps -as 2 -spawnfd 5 It also opens this unix socket: $ sockstat | grep esd cpghost mpg123 159414 stream esd[15939]:10 cpghost esd 159396 stream (none) cpghost esd 159397 stream /tmp/.esd/socket cpghost esd 15939 10 stream /tmp/.esd/socket You could check the permissions of /tmp/.esd/socket Perhaps your sound app doesn't know how to use esd (you'll have to kill esd for this), or it knows, but can't, for some obscure reason. Of course, this is just a wild guess. -- Cordula's Web. http://www.cordula.ws/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: No gethostbyname_r() in FreeBSD?
I'm trying to compile milter-dnsrbl.c from ftp://ftp.atnf.csiro.au/pub/people/rgooch/email-utilities/mailutils.tgz The problem is that gethostbyname_r() doesn't seem to exist in FreeBSD. This is the code which uses it (from milter-dnsrbl.c): It's a known issue. There are some third party DNS libraries that provide an implementation, e.g. in newer versions of bind. Ah, okay. Since I'm using system's BIND, I'll simply replace gethostbyname_r() with a call to gethostbyname() in this program and hope for the best [it doesn't look like a reentrant version is needed in this special case]. I'll google for the synopsis of gethostbyname_r() now. Thanks for clarifying this! -- Cordula's Web. http://www.cordula.ws/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RELENG_4_8 to RELENG_4_9 question
I am currently using FreeBSD 4.8-RELEASE and I did a cvsup /usr/share/examples/cvsup/standard-supfile to a RELENG_4_8. I haven't done a build/install world and finished the update of the system. What I'm wondering is sence I did a cvsup to the latest security patches etc for 4.8 should I go on and build/install world or can I just do another cvsup but to RELENG_4_9 and do a build/install world to get update 4.8 to 4.9? Thanks ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RELENG_4_8 to RELENG_4_9 question
I am currently using FreeBSD 4.8-RELEASE and I did a cvsup /usr/share/examples/cvsup/standard-supfile to a RELENG_4_8. I haven't done a build/install world and finished the update of the system. What I'm wondering is sence I did a cvsup to the latest security patches etc for 4.8 should I go on and build/install world or can I just do another cvsup but to RELENG_4_9 and do a build/install world to get update 4.8 to 4.9? Thanks ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: GDM - configured as per the documentation but stil chrashes - FreeBSD 4.9 an d 5.1
[EMAIL PROTECTED] writes: I cannot get GDM2 to work on neither 4.9(nor 5.1.) GDM chrashes at boot time no matter what I do. I use the gnome2-2.4.0 package. I have tried to install it at install time(which results in the gdm users not being created), installed it afterwards and compiled it from source(using ports), but the result is the same: gdm chrashes X at boot time. I have followed the instructions given at package install, that is copied the /usr/X11R6/etc/rc.d/gdm.sh.sample to /usr/X11R6/etc/rc.d/gdm.sh. I have also copied the /usr/x11R6/etc/gdm/factory-gdm.conf to /usr/X11R6/etc/gdm/gdm.conf. I have not touched the /etc/ttys file, it is vanilla as installed. I have searched the net in vain for any tips on how to fix this, the only things I have found are the ones I have tried already. The pam fix(from http://people.freebsd.org/~marcus/pam_get_user.c.diff ) should not apply to 4.9 so I have not treid that. Any help would be greatly appreciated. Try starting not starting gdm at boot, and kicking it off later. This will enable you to get a better view of what breaks. You should also look at the gdm logs, and possibly the X logs. Personally, I use xdm, so I don't have much help specific to gdm. However, you might try xdm to see if the problem is with gdm or more directly related to X. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: RELENG_4_8 to RELENG_4_9 question
Bryan Cassidy wrote: I am currently using FreeBSD 4.8-RELEASE and I did a cvsup /usr/share/examples/cvsup/standard-supfile to a RELENG_4_8. I haven't done a build/install world and finished the update of the system. What I'm wondering is sence I did a cvsup to the latest security patches etc for 4.8 should I go on and build/install world or can I just do another cvsup but to RELENG_4_9 and do a build/install world to get update 4.8 to 4.9? Thanks ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] I *think* you'd be OK to go on to 4.9 --- it's not so far removed from 4.8 as it is from, say, 4.4 or 4.6.2 Be SURE and read things like /usr/src/UPDATING, (and of course the handbook's recommendations) though; I'm aware, at the very least, that some stuff has been committed in one branch or the other that will break you if you don't follow 'standard procedures' in your buildworld/buildkernel installkernel/installworld . Kevin Kinsey DaleCo, S.P. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: FreeBSD Essay.
On Nov 13, 2003, at 8:07 AM, Viktor Lazlo wrote: On Wed, 12 Nov 2003, Lewis Thompson wrote: Hey guys, I'm a first year CS student at Manchester and I've been given the task of writing a 1,000 word essay on something computer-related. It can be snip 1000 words is awfully short to cover such a general topic in any detail--a few sentences on each would use up that much space easily. I can second that. You cannot say anything detailed or interesting in 1000 words. I'd compare either to Linux or Windows or just do the history of BSD or something. best Chad ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
p5 ports don't respect LOCALBASE
I support various types of servers and workstations which need different local software sets. I do all my building on one machine, so I use LOCALBASE and PKG_DBDIR in /etc/make.conf to keep the various configurations separate. Unfortunately many ports don't respect the LOCALBASE setting and install into /usr/local, even while recording the packing list as being in LOCALBASE! The p5 ports seem especially bad about this. I understand the need for perl to be able to find its local packages, so after I manually fix things up I need to know how to tell perl to look for its stuff under LOCALBASE instead of /usr/local. Can someone tell me? Or alternatively, has someone else found a better way to deal with the whole problem of maintaining different software sets?? Thanks!!! Rich ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Disk question
Hello, Why I booted my computer the following error came up: ad1s1a: UDMA ICRC error reading fsbn 6144095 of 16-31 (ad1s1 bn 6144095; cn 6095 tn 5 sn 20) retrying ad1s1a: UDMA ICRC error reading fsbn 6144095 of 16-31 (ad1s1 bn 6144095; cn 6095 tn 5 sn 20) falling back to PIO mode Is there a way to fix these disk errors? Another question; What does it mean if after a Connection attempt I see: flags:0x02 Thanks, Janos ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
quick question about turning the annoying beep off in X
Hey all, in my /etc/csh.cshrc I have xset b off which does what I want, which is to tell X to shut up without me having to type the command in every X session. But it seems clumsy as it puts up an error xset: unable to open display when I ssh in. I fully understand that this *should* be an error because csh.cshrc is a shell init file, I just tried this in .xinitrc and it didn't work. Putting it in /usr/X11R6/bin/startx had predictably bad results. So anyone know the correct file for this command? = --- Get a taste of Religion ... eat a priest! --- __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
chroot users
I want to chroot users to there home directories so that I can allow them to use FTP and not worry about someone going lower then there home dir.. looking for a howto or links that might help out. Shawn ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: chroot users
On Thu, 13 Nov 2003, Shawn Guillemette wrote: I want to chroot users to there home directories so that I can allow them to use FTP and not worry about someone going lower then there home dir.. Hi, If you are using Proftpd add DefaultRoot or try changing their home directory to /home/./user The extra dot should chroot them Rus -- w: http://www.jvds.com | Dedicated FreeBSD,Debian and RedHat Servers e: [EMAIL PROTECTED]| Donations made to Debian, FreeBSD t: +44 7919 373537 | and Slackware t: 1-888-327-6330 | email: [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: quick question about turning the annoying beep off in X
On Thu, 13 Nov 2003 13:44:43 -0800 (PST) twig les [EMAIL PROTECTED] wrote: Hey all, in my /etc/csh.cshrc I have xset b off which does what I want, which is to tell X to shut up without me having to type the command in every X session. But it seems clumsy as it puts up an error xset: unable to open display when I ssh in. I fully understand that this *should* be an error because csh.cshrc is a shell init file, I just tried this in .xinitrc and it didn't work. Putting it in /usr/X11R6/bin/startx had predictably bad results. So anyone know the correct file for this command? You could try ~/.xsession, although I think that might only work when you run xdm. If all else fails, you could just call it like xset b off /dev/null although that, too, is a bit of an ugly hack (if it ever generates output that you *do* care about, you won't see it.) -Chris ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: quick question about turning the annoying beep off in X
In the last episode (Nov 13), twig les said: Hey all, in my /etc/csh.cshrc I have xset b off which does what I want, which is to tell X to shut up without me having to type the command in every X session. But it seems clumsy as it puts up an error xset: unable to open display when I ssh in. I fully understand that this *should* be an error because csh.cshrc is a shell init file, I just tried this in .xinitrc and it didn't work. Putting it in /usr/X11R6/bin/startx had predictably bad results. So anyone know the correct file for this command? I'm pretty sure .xinitrc is the one you want. Make sure you run the command before any session managers etc. I just tested it and it works for me. -- Dan Nelson [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: quick question about turning the annoying beep off in X
twig les wrote: Hey all, in my /etc/csh.cshrc I have xset b off which does what I want, which is to tell X to shut up without me having to type the command in every X session. But it seems clumsy as it puts up an error xset: unable to open display when I ssh in. I fully understand that this *should* be an error because csh.cshrc is a shell init file, I just tried this in .xinitrc and it didn't work. Putting it in /usr/X11R6/bin/startx had predictably bad results. So anyone know the correct file for this command? ~/.xinitrc might work??? Kevin Kinsey DaleCo, S.P. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: chroot users
In the immortal words of Shawn Guillemette [EMAIL PROTECTED]... I want to chroot users to there home directories so that I can allow them to use FTP and not worry about someone going lower then there home dir.. The default ftpd in FreeBSD works nicely, try looking in: man ftpchroot Cheers Tim -- Tim Aslat [EMAIL PROTECTED] Spyderweb Consulting http://www.spyderweb.com.au P: +61 8 82243020M: +61 0401088479 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: quick question about turning the annoying beep off in X
--- Dan Nelson [EMAIL PROTECTED] wrote: In the last episode (Nov 13), twig les said: Hey all, in my /etc/csh.cshrc I have xset b off which does what I want, which is to tell X to shut up without me having to type the command in every X session. But it seems clumsy as it puts up an error xset: unable to open display when I ssh in. I fully understand that this *should* be an error because csh.cshrc is a shell init file, I just tried this in .xinitrc and it didn't work. Putting it in /usr/X11R6/bin/startx had predictably bad results. So anyone know the correct file for this command? I'm pretty sure .xinitrc is the one you want. Make sure you run the command before any session managers etc. I just tested it and it works for me. -- Dan Nelson [EMAIL PROTECTED] Magic! I never bothered to check if putting the command *before* wmaker in ~/.xinitrc would make a difference. Thnx. = --- Get a taste of Religion ... eat a priest! --- __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Recursion with grep?
The man page for grep says to use -r to recurse, yet when I try something like grep -r -li string *.c I get no files. However, if I go into one of the subdirectories and do a plain grep string *.c then string is found on several files. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
how to change the name of root?
When I get admin emails from my remote boxes, or send messages from them, they are from root or charlie root. How do I change this? -- Chip ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Recursion with grep?
On Thu, Nov 13, 2003 at 05:37:39PM -0500, Francisco Reyes wrote: The man page for grep says to use -r to recurse, yet when I try something like grep -r -li string *.c I get no files. However, if I go into one of the subdirectories and do a plain grep string *.c then string is found on several files. When using -r, the arguments to grep should be directories. It will process all of the files in the given directories, recursively. There is no provision for searching a subset of the files (i.e. *.c). If you need to do that, use find and xargs. -- Matthew Hunt [EMAIL PROTECTED] * UNIX is a lever for the http://www.pobox.com/~mph/ * intellect. -J.R. Mashey ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to change the name of root?
When I get admin emails from my remote boxes, or send messages from them, they are from root or charlie root. How do I change this? chpass will open up your default editor and allow you to change the Full Name of the account. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to change the name of root?
On Thursday 13 November 2003 02:41 pm, [EMAIL PROTECTED] wrote: When I get admin emails from my remote boxes, or send messages from them, they are from root or charlie root. How do I change this? Did you try changing the name in the passwd files? Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Recursion with grep?
--- Matthew Hunt [EMAIL PROTECTED] wrote: On Thu, Nov 13, 2003 at 05:37:39PM -0500, Francisco Reyes wrote: The man page for grep says to use -r to recurse, yet when I try something like grep -r -li string *.c I get no files. However, if I go into one of the subdirectories and do a plain grep string *.c then string is found on several files. When using -r, the arguments to grep should be directories. It will process all of the files in the given directories, recursively. There is no provision for searching a subset of the files (i.e. *.c). If you need to do that, use find and xargs. You can also do this with something like: ls -laR | egrep *.c chris __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Recursion with grep?
--- Matthew Hunt [EMAIL PROTECTED] wrote: On Thu, Nov 13, 2003 at 05:37:39PM -0500, Francisco Reyes wrote: The man page for grep says to use -r to recurse, yet when I try something like grep -r -li string *.c I get no files. However, if I go into one of the subdirectories and do a plain grep string *.c then string is found on several files. When using -r, the arguments to grep should be directories. It will process all of the files in the given directories, recursively. There is no provision for searching a subset of the files (i.e. *.c). If you need to do that, use find and xargs. You can also do this with something like: ls -laR | egrep *.c chris Not as elegant maybe, but you can also do something like ls -li string *.c ls -li string */*.c ls -li string */*/*.c etc... Using the shells uparrow to repeat the command makes that easy if you only have a few directory levels to peruse. jerry ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Recursion with grep?
On Thu, Nov 13, 2003 at 02:55:34PM -0800, Chris Readle wrote: You can also do this with something like: ls -laR | egrep *.c He's trying to search the contents of files for a string. Your suggestion searches the directory listing (and not in a very useful way, since *.c does not mean the same thing as a regular expression as it does as a wildcard, and it could also match parts of the ls -l output besides the filename). -- Matthew Hunt [EMAIL PROTECTED] * Stay close to the Vorlon. http://www.pobox.com/~mph/ * ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Recursion with grep?
On Nov 13, Francisco Reyes wrote: The man page for grep says to use -r to recurse, yet when I try something like grep -r -li string *.c find . -name *.c -exec grep -li string {} \; Dan -- Dan Busarow 949 443 4172 Dana Point Communications, Inc.[EMAIL PROTECTED] Dana Point, California 83 09 EF 59 E0 11 89 B4 8D 09 DB FD E1 DD 0C 82 ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Install X windows in Free BSD 4.8 - Help required.
Hello, Thanks for the help. I still have a problem starting up the X windows. First of all the login screen for X windows still does not allow me to get into the system. When I type my login name and password , the screen goes blank and the login screen reappears after some time. If I type C-A-F1, I can get into the command line mode. When I type startx on command line, it fails. When remove /tmp/X0.lock and retry with startx, I can get into kde ( I enabled KDE from the /stand/sysinstall mode. ) Is it not possible to get directly into X window screen or kde when typing startx? How can I log in from the login screen into X windows or kde? I have given below the output from /var/log/XFree86.0.log XFree86 Version 4.3.0 Release Date: 27 February 2003 X Protocol Version 11, Revision 0, Release 6.6 Build Operating System: FreeBSD 4.8 i386 [ELF] Build Date: 23 March 2003 Before reporting problems, check http://www.XFree86.Org/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: apache install problem
At 01:32 PM 11/13/2003, Terry Tyson wrote: I just had this problem the other day. It wasn't httpd.conf, it was /etc/hosts. I changed the httpd.conf as recommended too, it didn't fix it but afaik was still good/necessary. ::1 localhost.domain.com localhost 127.0.0.1 localhost.domain.com localhost 127.0.0.1 hostname.domain.com hostname Yep, did this next and that fixed it, thanks man. Marty Landman Face 2 Interface Inc 845-679-9387 Sign On Required: Web membership software for your site Make a Website: http://face2interface.com/Home/Demo.shtml ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: bluetooth support
Anyone happen to know if bluetooth is supported in BSD? I was thinking of getting a little USB Bluetooth adapter:) I have just looked into this myself, so here is a brief summary of my findings. Bluetooth is supported via the netgraph framework, though only in 5.1 and 5-CURRENT. The USB adapters supported seem quite varied, from what I've read, although 5.1's hardware notes only mentions a few : http://www.freebsd.org/releases/5.1R/hardware-i386.html#BLUETOOTH According to a message ( http://unix.derkeiler.com/Mailing-Lists/FreeBSD/net/2003-08/0130.html ) from Maksim Yevmenkin, the guy who wrote the bluetooth stack, a lot more adapters will work, based on their Linux support, see the link in the message. Finally, here are some instructions on setting up bluetooth on FreeBSD : http://www.oook.cz/bsd/bluetooth.html Good luck, Jonathan ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Install X windows in Free BSD 4.8 - Help required.
On Fri, 14 Nov 2003 10:53:44 +1100 Verghese George [EMAIL PROTECTED] wrote: Hello, Thanks for the help. I still have a problem starting up the X windows. First of all the login screen for X windows still does not allow me to get into the system. When I type my login name and password , the screen goes blank and the login screen reappears after some time. I remember having this problem when starting out with XWindows too. IIRC, it was because I had no ~/.xsession file. (If the system was supposed to automatically create one, it didn't, but maybe it just doesn't do that...) If this is the situation for you, you can log in on a text console and create a sensible ~/.xsession file, e.g. # echo 'exec xterm' ~/.xsession Then try logging in through xdm. If you already have a window manager installed, you can specify it instead of 'xterm' there. e.g. the last line in my ~/.xsession is exec blackbox btw, a pretty good tutorial for ~/.xsession can be found at: http://www-ugrad.cs.colorado.edu/X/xsession.html -Chris (randomly answering ~/.xsession! regardless of the question, today :) ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: HP JetDirect EX printer problems ...
On Wed, Nov 12, 2003 at 05:13:06PM -0500, David Bein wrote: Hello ... I have an older J2383 Jet Direct box which I am trying to setup for a FreeBSD 4.9/x86 box. I have tried various things in /etc/printcap, but still I get nothing reasonable. I know the box is working because if I telnet to port 9100 on the Jet Direct and type in some lines and then quit out of telnet, it prints them. So my problem is not the hardware or network connectivity. There are two senerio's. 1. You have a post script printer. In this case you should be able to send post script files directly to the printer daemon without having a filter in betwain. 2. You have a non post script printen. In this case you proberbly can send plain text files to it. The dos format will print fine and the unix format result in the first line being printed fine and the rest continue with a offset. I'm one of those person in senario 2 and print my files though the apsfiler to make the format right before sending it to the filter. This is my printcap: # APS1_BEGIN:printer1 # - don't delete start label for apsfilter printer1 # - no other printer defines between BEGIN and END LABEL lp|laserjet|lj4dith;r=600x600;q=high;c=gray;p=a4;m=auto:\ #:lp=:\ #:mx#0:\ #:sh:\ :rm=192.168.31.31:\ :rp=raw:\ :if=/usr/local/etc/apsfilter/basedir/bin/apsfilter:\ :sd=/var/spool/lpd/laserjet:\ :lf=/var/spool/lpd/laserjet/log:\ :af=/var/spool/lpd/laserjet/acct: # APS1_END - don't delete this I am confused about whether this should be lp=port@host with appropriate filters or some variant of rm=host rp=TEXT. None of the software examples I have seen appear to reference port 9100 and so I am confused as to how it knows what to connect to except in the port@host configuration. Neither of these approaches worked. I am wanting to use this with an old LaserJet 4L PCL class printer. Directly connecting it to a parallel port works just fine [using apsfilter and all the other Postscript conversion software]. I just want to have it work from whichever machine using the network both for reasons of speed and not wanting to have a single box up just to print from some other machine. Check if you can print the defaul format. If you can the you have a misconfiguration is the apsfilther. -- Alex Articles based on solutions that I use: http://www.kruijff.org/alex/index.php?dir=docs/FreeBSD/ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Drive errors?
I've got a relativly recent STABLE machine that I', gettng errors like this on: Nov 12 20:00:01 black newsyslog[33912]: logfile turned over due to size100K Nov 12 20:00:07 black /kernel: ad3s1e: UDMA ICRC error writing fsbn 113202879 of 56601408-56601455 (ad3s1 bn 113202879; cn 7046 tn 141 sn 6) retrying Nov 12 20:00:15 black /kernel: ad3s1e: UDMA ICRC error writing fsbn 114997439 of 57498688-57498943 (ad3s1 bn 114997439; cn 7158 tn 66 sn 11) retrying Nov 12 20:00:16 black /kernel: ad3s1e: UDMA ICRC error writing fsbn 115000927 of 57500432-57500687 (ad3s1 bn 115000927; cn 7158 tn 121 sn 34) retrying Nov 12 20:00:20 black /kernel: ad3s1e: UDMA ICRC error writing fsbn 115172415 of 57586176-57586335 (ad3s1 bn 115172415; cn 7169 tn 38 sn 36) retrying Nov 12 20:00:22 black /kernel: ad3s1e: UDMA ICRC error writing fsbn 115188431 of 57594184-57594191 (ad3s1 bn 115188431; cn 7170 tn 37 sn 50) retrying The drive in question is an IBM/Hitachi 40H unit detected as: Nov 13 19:11:18 black /kernel: ad3: 39266MB IC35L040AVER07-0 [79780/16/63] at ata1-slave UDMA100 Ay first I thought this might be a drive problem, so I downlaoded IBM's Drif Fitness Tess. I've run it on this machine, in the advanced mode, and it passes with flying colors. So, is the disk bad anyway? Or is this some other issue? What issue could it be? I ran the test in the exact computer, asme cables etc to elimnaye changing them BTW -- They that would give up essential liberty for temporary safety deserve neither liberty nor safety. -- Benjamin Franklin ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]