cron to attach a gz file
Hello, I know I can use mail -s logfile /var/log/httpd_access.log in cron to email the content of a log file to a particular email address but how do I make that log file a binary attachment (*.gz)? Also, is it possible to actually transfer the log file by ftp using cron? If so, would anyone be willing to share how to set it up? Many thanks in advance! Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cron to attach a gz file
Zbigniew Szalbot wrote: Hello, I know I can use mail -s logfile /var/log/httpd_access.log in cron to email the content of a log file to a particular email address but how do I make that log file a binary attachment (*.gz)? gzip -c /var/log/httpd_access.log | uuencode httpd_access.log.gz | mail -s logfile [EMAIL PROTECTED] Peter -- http://www.boosten.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: Downloading file by sending email
At 06:30 30/01/2008, you wrote: Hi, An off-topic question. I run FreeBSD 6.2/i386 with Postfix and Maildrop (for filtering and delivery). I want to setup a service such that sending a mail to say [EMAIL PROTECTED] with a list of links per line results in my machine downloading the files at these links replying with all these files attached. Is there any port which provides a functionality like this? Or is it possible to put together such a setup in place? I tried a Google search but didn't manage to frame this question concisely enough to get hits ... Also, many many years ago I remember using similar services on the Internet. I can't for the life of me remember their names now. Any one here recollects/ has used such services? Thanks, Rakhesh There is an email2cvs in ports, don't know the exact name, but i allows you to do cvs commits, updates, etc via mail; perhaps it can help you For security, add in the mail with the file request a login/password. Check the From (only tyour email account) and the l/p. Also there is a gnu.org project for a p2p using mail. HTH - Useful Acronyms: GPL = Greedy Pengüin Licence ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: OT: Downloading file by sending email
Olivier Nicole wrote: A second thought... I want to setup a service such that sending a mail to say [EMAIL PROTECTED] with a list of links per line results in my machine downloading the files at these links replying with all these files attached. So you have any direct connection to the machine that will host the downloading facility? Unfortunately, no. Else I could have done the SSH thing like you suggested ... If you can ssh to that machine, it is easier to set-up a proxy on the machine and do some ssh tunneling. Bests, Regards, Rakhesh --- http://rakhesh.net/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Can I run ntpd in a jail?
Will this work? /usr/sbin/jail /var/chroot/ntp ntp.monkeybrains.net 10.10.10.10 \ /usr/sbin/ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid Can ntpd update the system clock from within a jail? Here is the layout of my jail # find /var/chroot/ntp/ /var/chroot/ntp/ /var/chroot/ntp/lib /var/chroot/ntp/lib/libm.so.5 /var/chroot/ntp/lib/libmd.so.4 /var/chroot/ntp/lib/libcrypto.so.5 /var/chroot/ntp/lib/libc.so.7 /var/chroot/ntp/usr /var/chroot/ntp/usr/sbin /var/chroot/ntp/usr/sbin/ntpd /var/chroot/ntp/libexec /var/chroot/ntp/libexec/ld-elf.so.1 /var/chroot/ntp/etc /var/chroot/ntp/etc/ntp.conf /var/chroot/ntp/var /var/chroot/ntp/var/run /var/chroot/ntp/var/run/ntpd.pid # sockstat | grep 123 root ntpd 42707 3 udp4 10.10.10.10:123 *:* I ran it for a couple of days, and the clock was off by 2 seconds... # /var/chroot/ntp/etc/ntp.conf server clock.via.net server clock.isc.org driftfile /etc/ntp.drift - Rudy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Future development of Jail
Karl Triebes wrote: I would like to see per-jail quotas such as the ones Andy mentions, and would like to hear if anyone would be interested in doing it for the right price. You may contact me via this list or in private. Per-jail quotas are Trivial you use zfs... You can even resize a zfs mount 'on the fly'. Here is the command to resize a jail to 100GB of space:: # zfs set quota=100G tank/jails/myNeatoWebsite As for doing it for a price, I'll consult -- granted I just let The Secret out of the bag. :) I can build a 1TB to 6TB box for you and have it all set and ready for jails, or you could do it yourself. As for CPU, I 'auto nice' pids with high CPU usage: #!/usr/local/bin/perl # This is BEERWARE [b] Rudy # auto-nice-jails.pl - set this up in cron to run every 5 minutes #use strict; open PS, /bin/ps -axo time,pid,nice,state,command | /usr/bin/sort -nr | or die no PS for me. $). $!; while (PS) { # examples: #191:49.16 0 R+J ./q3ded +set fs_game arena +set vm_game 0 +set sv_pure ...etc... # 21:23.58 4 RN+J ./sc_serv /^\s*(\d+):(\d+).\d+\s+(\d+)\s+(\d+)\s+(\S+)\s+(.*)$/ or next; my ($cputime,$pid,$nice,$state,$command) = (($1*60+$2),$3,$4,$5,$6); ### print ($cputime,$pid,$nice,$state,$command)\n; last if ($cputime 30); next unless ($state =~ /J/); # only jailed procs... next if ($nice 5); my $renice = 2; $renice = 4 if ($cputime 1000); $renice = 5 if ($cputime 1); if ($renice $nice) { print $pid\t$nice\t$cputime\t$command\n; system(/usr/bin/renice +$renice $pid); } } Rudy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Future development of Jail
Per-jail quotas are Trivial you use zfs... You can even resize a zfs mount 'on the fly'. Here is the command to resize a jail to 100GB of space:: # zfs set quota=100G tank/jails/myNeatoWebsite but then zfs is compulsory ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Automatic `nodump' flag?
Kirk McKusick [EMAIL PROTECTED] writes: You would think I would remember code that I wrote (though in my defense it was written over 20 years ago :-) hey, I can't even remember code that I wrote 20 days ago, much less 20 years, so I won't be the one to cast the first stone :) DES -- Dag-Erling Smørgrav - [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Automatic `nodump' flag?
Kirk McKusick [EMAIL PROTECTED] writes: You would think I would remember code that I wrote (though in my defense it was written over 20 years ago :-) hey, I can't even remember code that I wrote 20 days ago, much less 20 years, so I won't be the one to cast the first stone :) it's not that bad as you say but after a year it's very difficult to me, not mentioning 12-year old program i wrote for DOS and now it's user requested me to make changes ;) quite difficult ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Future development of Jail
Rudy [EMAIL PROTECTED] wrote: Karl Triebes wrote: I would like to see per-jail quotas such as the ones Andy mentions, and would like to hear if anyone would be interested in doing it for the right price. You may contact me via this list or in private. Per-jail quotas are Trivial you use zfs... You can even resize a zfs mount 'on the fly'. Here is the command to resize a jail to 100GB of space:: # zfs set quota=100G tank/jails/myNeatoWebsite As for doing it for a price, I'll consult -- granted I just let The Secret out of the bag. :) I can build a 1TB to 6TB box for you and have it all set and ready for jails, or you could do it yourself. As for CPU, I 'auto nice' pids with high CPU usage: #!/usr/local/bin/perl # This is BEERWARE [b] Rudy # auto-nice-jails.pl - set this up in cron to run every 5 minutes #use strict; open PS, /bin/ps -axo time,pid,nice,state,command | /usr/bin/sort -nr | or die no PS for me. $). $!; while ( ) { # examples: #191:49.16 0 R+J ./q3ded +set fs_game arena +set vm_game 0 +set sv_pure ...etc... # 21:23.58 4 RN+J ./sc_serv /^\s*(\d+):(\d+).\d+\s+(\d+)\s+(\d+)\s+(\S+)\s+(.*)$/ or next; my ($cputime,$pid,$nice,$state,$command) = (($1*60+$2),$3,$4,$5,$6); ### print ($cputime,$pid,$nice,$state,$command)\n; last if ($cputime 30); next unless ($state =~ /J/); # only jailed procs... next if ($nice 5); my $renice = 2; $renice = 4 if ($cputime 1000); $renice = 5 if ($cputime 1); if ($renice $nice) { print $pid\t$nice\t$cputime\t$command\n; system(/usr/bin/renice +$renice $pid); } } Rudy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Nice one Rudy, Thanks for the tip. Best Regards, Catalin - Looking for last minute shopping deals? Find them fast with Yahoo! Search. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Apache Error Authentication (Nagios)
Good Day: First and foremost, I would like to thank everyone for providing a fantastic mailing list. Today I happen to need assistance from you all. What is happening is I installed apache and nagios on my firewall. However, when I go to login to nagios I get the username and password prompt but I am unable to login I apologize for the very long e-mail). I did some research online but found nothing too much helpful. Thank you in advanced! #Error Message from httpd-errors [Wed Jan 30 22:12:58 2008] [error] [client 67.190.229.227] access to /nagios/cgi-bin/tac.cgi failed, reason: require directives present and no Authoritative handler. #I am running FreeBSD 7.0-PRERELEASE #This is the out put of my Apache build: Server version: Apache/2.2.8 (FreeBSD) Server built: Jan 30 2008 21:46:44 Server's Module Magic Number: 20051115:11 Server loaded: APR 1.2.12, APR-Util 1.2.12 Compiled using: APR 1.2.12, APR-Util 1.2.12 Architecture: 32-bit Server MPM: Prefork threaded: no forked: yes (variable process count) Server compiled with -D APACHE_MPM_DIR=server/mpm/prefork -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_FLOCK_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=128 -D HTTPD_ROOT=/usr/local -D SUEXEC_BIN=/usr/local/bin/suexec -D DEFAULT_PIDLOG=/var/run/httpd.pid -D DEFAULT_SCOREBOARD=/var/run/apache_runtime_status -D DEFAULT_LOCKFILE=/var/run/accept.lock -D DEFAULT_ERRORLOG=/var/log/httpd-error.log -D AP_TYPES_CONFIG_FILE=etc/apache22/mime.types -D SERVER_CONFIG_FILE=etc/apache22/httpd.conf #This is the output of #apachectl -l [EMAIL PROTECTED] /usr/home/canito]# apachectl -l Compiled in modules: core.c prefork.c http_core.c mod_so.c #my httpd.conf http://www.dalan.us/download/httpd.conf This message was sent using IMP, the Internet Messaging Program. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache Error Authentication (Nagios)
David Alanis wrote: Good Day: First and foremost, I would like to thank everyone for providing a fantastic mailing list. Today I happen to need assistance from you all. What is happening is I installed apache and nagios on my firewall. However, when I go to login to nagios I get the username and password prompt but I am unable to login I apologize for the very long e-mail). I did some research online but found nothing too much helpful. Thank you in advanced! #Error Message from httpd-errors [Wed Jan 30 22:12:58 2008] [error] [client 67.190.229.227] access to /nagios/cgi-bin/tac.cgi failed, reason: require directives present and no Authoritative handler. What does your .htaccess file in /usr/local/www/nagios/cgi-bin look like? Here's an example: AuthName Nagios AuthType Basic AuthUserFile /usr/local/etc/nagios/htpasswd.nagios require valid-user Same goes for /usr/local/www/nagios. You need to actually set up the AuthUserFile using htpasswd (part of apache). From your httpd.conf # Nagios ScriptAlias /nagios/cgi-bin /usr/local/www/nagios/cgi-bin Directory /usr/local/www/nagios/cgi-bin AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all /Directory Alias /nagios /usr/local/www/nagios Directory /usr/local/www/nagios Options None AllowOverride AuthConfig Order allow,deny Allow from all /Directory --Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: acrobat reader (7 or 8) on 7.0-RC1
Boris Samorodov wrote: On Wed, 30 Jan 2008 20:25:47 + Vince Hoffman wrote: Has anyone else had any issues getting this working? my laptop runs acrobat reader7 fine while my desktop doesnt like it at all (see error below.) I am using compat.linux.osrelease=2.6.16 and linux_base-fc6-6_5 I have linux procf mounted. Have you read /usr/ports/UPDATING? any suggestion? Restore default linux base port and sysctl setting(s). Yeah that fixed it, thanks. (I thought I had already gone back to the default linux_base but had left OVERRIDE_LINUX_BASE_PORT=fc6 in my make.conf.) Annoying that it worked on one but not the other. Vince WBR ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
C interpreters
Does anyone have a recommendation on C interpreters? I want to do some development in C, but I would also like to have the ability of playing with an interactive command line a-la python, as it eases the playing process of figuring out what I am doing. There are a few options in the ports tree and I'm wondering if anyone has played with them and has an oppinion. I've seen ccscrpt and cint, I also know root has a C interpereter (though I don't know how good it is, and it's for scientific numerical analysis, not generic programming). as a secondary (probably stupid) question: how hard is it to write a library in C++ and allow C programs to use it? Thanks, -Jim Stapleton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: C interpreters
Am Donnerstag, 31. Januar 2008 14:48:15 schrieb Jim Stapleton: as a secondary (probably stupid) question: how hard is it to write a library in C++ and allow C programs to use it? To write a library in C++ to which C programs have access, you'll have to write a set of wrapper functions for every method of a class you want to expose to C which basically get an object pointer as the first parameter and the actual method arguments as the rest. For example: test.cc --- #include test.hh #include test.h Test::Test() { } int Test::something(int data) { return 0; } extern C { TestObject NewTest() { return new Test(); } int TestSomething(TestObject ob, int data) { return reinterpret_castTest*(ob)-something(data); } } test.hh --- #ifndef TEST_HH #define TEST_HH class Test { Test(); int something(int data); }; #endif // TEST_HH test.h -- #ifndef TEST_H #define TEST_H typedef void* TestObject; #ifdef __cplusplus extern C { #endif /* __cplusplus */ TestObject NewTest(); int TestSomething(TestObject ob, int data); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* TEST_H */ test.c -- #include test.h int main(int argc, char** argv) { TestObject testob; testob = NewTest(); TestSomething(testob,1); } This lets you use the compiled test.cc (for example, as a library, to get around the problem of having to link your C-program against libstdc++) together with a C program. Be aware of the fact that C doesn't know function overloading, so you'll basically have to implement that by defining different methods for every type of overloaded function you want to accept. Depending on how large the C++ framework is which you're trying to wrap (and in how much it uses advanced C++ features), this is an easy (i.e., repetitive) or a hard/close to impossible task, especially when it comes to templates. YMMV. -- Heiko Wundram Product Application Development ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: broadcom wireless card on FB7 using ndisgen, no ndis0 after kldload
Glen Barber 写道: On Wednesday 30 January 2008 07:18:51 pm Kemian Dang wrote: I have a laptop which using the broadcom wireless card. I download the bcmwl5a.inf/.sys and use ndisgen to generate the .ko file, then I kldload it as the doc said. I can see ndis,if_ndis and bcmwl using kldstat, but there are no ndis0 when ifconfig. I have tried add the bcmwl to the /boot/loader.conf, but still no ndis0. And there no message in the dmesg about the ndis. Did you copy the bcmxxx.ko file to /book/kernel/ ? If you did, make sure you have an entry in your /boot/loader.conf: bcmxxx_load=YES I have my bcm driver called 'bcmwl5_sys.ko' and 'bcmwl5_sys_load=YES in my /boot/loader.conf. Hope that helps Yes, mine is bcmwl5a_sys.ko and I have tried to put it in the loader.conf. Actually, it is in the loader.conf now. I list it below: %ls /boot/modules/bcmwl* /boot/modules/bcmwl5a_sys.ko %more /boot/loader.conf nvidia_load=yes bcmwl5a_sys_load=yes Does yes differ from YES? Best wishes, Kemian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Password file migration help
Sean Murphy 写道: I have a FreeBSD 5.4 system and would like to migrate users in the password file with UIDs 3000 through 5000 to a FreeBSD 6.3 system on a running on a separate box. Is there a way to export just those users? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] awk -F: '{if($4 3000) if($4 5000) print $0}' /etc/master.passwd You should do it as root. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
915resolution on HP Compaq
Hi, I have an HP Compaq 6720s laptop. I am trying to get X to display at 1280x800 screen reolution. I first set it up using xorgconfig, but i failed to start X. I got an error saying intel: No matching device section for instance (BUS ID PCI:0:2:1) found GARTInt Unable to open /dev/agpgart (No such file or directory) I tried to use the 915resolution port and this is what it give me. # 915resolution -l Intel 800/900 Series VBIOS Hack : version 0.5.3 Intel chipset detected. However, 915resolution was unable to determine the chipset type. Chipset Id: 2a008086 Please report this problem to [EMAIL PROTECTED] # I know that i have the Intel x3100 card and then 965GM chipset. Has anyone managed to get X to display on a wide screen display at 1280x800 on this chipset? Any assistance is appreciated. Regards, -- Mike Of course, you might discount this possibility, but remember that one in a million chances happen 99% of the time. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: broadcom wireless card on FB7 using ndisgen, no ndis0 after kldload
Kemian Dang wrote: Glen Barber 写道: On Wednesday 30 January 2008 07:18:51 pm Kemian Dang wrote: I have a laptop which using the broadcom wireless card. I download the bcmwl5a.inf/.sys and use ndisgen to generate the .ko file, then I kldload it as the doc said. I can see ndis,if_ndis and bcmwl using kldstat, but there are no ndis0 when ifconfig. I have tried add the bcmwl to the /boot/loader.conf, but still no ndis0. And there no message in the dmesg about the ndis. Did you copy the bcmxxx.ko file to /book/kernel/ ? If you did, make sure you have an entry in your /boot/loader.conf: bcmxxx_load=YES I have my bcm driver called 'bcmwl5_sys.ko' and 'bcmwl5_sys_load=YES in my /boot/loader.conf. Hope that helps Yes, mine is bcmwl5a_sys.ko and I have tried to put it in the loader.conf. Actually, it is in the loader.conf now. I list it below: %ls /boot/modules/bcmwl* /boot/modules/bcmwl5a_sys.ko %more /boot/loader.conf nvidia_load=yes bcmwl5a_sys_load=yes Does yes differ from YES? I think YES and yes are interchangeable although YES tends to be used. whats the output of kldstat? if it doesnt contain ndis.ko what happens if you kldload ndis Vince Best wishes, Kemian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: broadcom wireless card on FB7 using ndisgen, no ndis0 after kldload
Vince Hoffman 写道: Kemian Dang wrote: Glen Barber 写道: On Wednesday 30 January 2008 07:18:51 pm Kemian Dang wrote: I have a laptop which using the broadcom wireless card. I download the bcmwl5a.inf/.sys and use ndisgen to generate the .ko file, then I kldload it as the doc said. I can see ndis,if_ndis and bcmwl using kldstat, but there are no ndis0 when ifconfig. I have tried add the bcmwl to the /boot/loader.conf, but still no ndis0. And there no message in the dmesg about the ndis. Did you copy the bcmxxx.ko file to /book/kernel/ ? If you did, make sure you have an entry in your /boot/loader.conf: bcmxxx_load=YES I have my bcm driver called 'bcmwl5_sys.ko' and 'bcmwl5_sys_load=YES in my /boot/loader.conf. Hope that helps Yes, mine is bcmwl5a_sys.ko and I have tried to put it in the loader.conf. Actually, it is in the loader.conf now. I list it below: %ls /boot/modules/bcmwl* /boot/modules/bcmwl5a_sys.ko %more /boot/loader.conf nvidia_load=yes bcmwl5a_sys_load=yes Does yes differ from YES? I think YES and yes are interchangeable although YES tends to be used. whats the output of kldstat? if it doesnt contain ndis.ko what happens if you kldload ndis Vince Best wishes, Kemian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] Below is the output of kldstat: %kldstat Id Refs AddressSize Name 1 21 0xc040 5c0690 kernel 21 0xc09c1000 69415c nvidia.ko 32 0xc1056000 28518linux.ko 41 0xc107f000 5f7a4bcmwl5a_sys.ko 53 0xc10df000 1aa10ndis.ko 62 0xc10fa000 e750 if_ndis.ko 71 0xc1109000 6a1c4acpi.ko 81 0xc520e000 2000 ntfs_iconv.ko 91 0xc521 4000 libiconv.ko 101 0xc5235000 b000 ntfs.ko It has the bcmwl5a_sys.ko, ndis.ko and if_ndis.ko. Best wishes, Kemian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
ls sees disk but mount_ntfs doesn't
Hi, I'm trying to get some data off a laptop. The disk is buried inside somewhere so to avoid dismantling the laptop I am trying to mount it using a FreeBSD livefs cd (7.0RC1). Note all the commands and output below are typed up by hand but I think they are accurate. Fixit# ls -l /dev/ad0s2 crw-r- 1 root operator0, 94 Jan 31 13:39 /dev/ad0s2 Fixit# mount_ntfs -o ro /dev/ad0s2 /mnt mount_ntfs: /dev/ad0s2: No such file or director So I thought I would try using ntfs-3g which I would prefer anyway as it is probably safer. Fixit# pkg_add -r fusefs-ntfs Fetching ftp://[pathto]fusefs-ntfs.tbs...pkg_add: warning error writing to tar: Broken pipe Done. pkg_add: unable to open table of contents of file '+CONTENTS' - not a package? Fixit# Lastly dmesg shows: GEOM_LABEL: Label for provider ad0s2 is ntfs/HDD. So how can I mount the hard disk? Or can anyone suggest an alternative way to get the data other than dismantling the laptop? I've tried ping which is a linux based disk cloning livecd but it can't see network or a usb hard drive. As a secondary question, could ntfs-3g be included in the livefs CD? It seems like quite a useful utility to have. Thanks Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 915resolution on HP Compaq
Mike Barnard wrote: Hi, I have an HP Compaq 6720s laptop. I am trying to get X to display at 1280x800 screen reolution. I first set it up using xorgconfig, but i failed to start X. I got an error saying intel: No matching device section for instance (BUS ID PCI:0:2:1) found GARTInt Unable to open /dev/agpgart (No such file or directory) I tried to use the 915resolution port and this is what it give me. # 915resolution -l Intel 800/900 Series VBIOS Hack : version 0.5.3 Intel chipset detected. However, 915resolution was unable to determine the chipset type. Chipset Id: 2a008086 Please report this problem to [EMAIL PROTECTED] # I know that i have the Intel x3100 card and then 965GM chipset. Has anyone managed to get X to display on a wide screen display at 1280x800 on this chipset? If you're running FreeBSD 7.x and Xorg 7.3, I recommend using the intel driver. 915resolution is not necessary with this driver. -- Regards, Doug ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache Error Authentication (Nagios)
David Alanis wrote: However, when I go to login to nagios I get the username and password prompt but I am unable to login I apologize for the very long e-mail). I did some research online but found nothing too much helpful. Thank you in advanced! #Error Message from httpd-errors [Wed Jan 30 22:12:58 2008] [error] [client 67.190.229.227] access to /nagios/cgi-bin/tac.cgi failed, reason: require directives present and no Authoritative handler. What does your .htaccess file in /usr/local/www/nagios/cgi-bin look like? Alex, it was a typo in my .htaccess file! Again, thanks a bunch! Good news! Copied to questions@ so the archive has the answer. --Alex ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: C interpreters
Thanks, and that'll make shared (.so) libraries just fine? Well, that was certainly a relief. That very much describes the C interface I made already. I'm working on a alternate ports listing system, and I wanted to use something that I didn't mind programming in /and/ I knew should be available on any FreeBSD system without requireing more port installs, so I went with C or C++. I want it to be easy to write back-end database modules, in case people don't want to use the two that I write (SQLite2 and a my own flat-file system). There are only three functions that need wrapped: open, query, close. Open returns that void* pointer, query and close take it as the first argument. Any ideas on the C interpreter? It's been a while since I've done a lot of C/C++. Thanks, -Jim Stapleton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Starting X: Intel GM965/GL960
On Wed, Jan 30, 2008 at 09:42:48PM +, Siraj Shaikh wrote: Frank I have added DefaultColorDepth 24 to it as you said, but still havent changed the keyboard settings (mine is a UK keyboard according to sysintall). I have posted the contents of Xorg.0.log in reply to an earlier email in this thread. Did you get it? Hi Siraj, Yes, I saw it. Here's the problem: you've got an Intel i810 graphics chipset with a Mobile GM965/GL960 Integrated Graphics Controller. If you look at the manpage i810(4) you will see that it isn't supported yet (or not as the port existed a few days ago) so X is falling back to VESA mode. Now from your log, it looks like you could get vesa mode going but it would be at 640x480 i.e: pretty unusable for X. It looks like it's working with Linux: http://forum.compiz-fusion.org/showthread.php?t=6725 So what I suggest you do is wait patiently for the port to be updated...or What you could do is post your xorg.conf to: [EMAIL PROTECTED] with a description of your graphics hardware and ask them why it seems to work under Linux and not under FreeBSD. Or if it does work under FreeBSD, how to get it going. I'm cc'ing this to freebsd-x11. Perhaps you can reply back with your xorg.conf hopefully the good folks on that list can help you out. Regards, -- Frank Contact info: http://www.esperance-linux.co.uk/misc/contact.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: broadcom wireless card on FB7 using ndisgen, no ndis0 after kldload
Kemian Dang wrote: Vince Hoffman 写道: Kemian Dang wrote: Glen Barber 写道: On Wednesday 30 January 2008 07:18:51 pm Kemian Dang wrote: I have a laptop which using the broadcom wireless card. I download the bcmwl5a.inf/.sys and use ndisgen to generate the .ko file, then I kldload it as the doc said. I can see ndis,if_ndis and bcmwl using kldstat, but there are no ndis0 when ifconfig. I have tried add the bcmwl to the /boot/loader.conf, but still no ndis0. And there no message in the dmesg about the ndis. Did you copy the bcmxxx.ko file to /book/kernel/ ? If you did, make sure you have an entry in your /boot/loader.conf: bcmxxx_load=YES I have my bcm driver called 'bcmwl5_sys.ko' and 'bcmwl5_sys_load=YES in my /boot/loader.conf. Hope that helps Yes, mine is bcmwl5a_sys.ko and I have tried to put it in the loader.conf. Actually, it is in the loader.conf now. I list it below: %ls /boot/modules/bcmwl* /boot/modules/bcmwl5a_sys.ko %more /boot/loader.conf nvidia_load=yes bcmwl5a_sys_load=yes Does yes differ from YES? I think YES and yes are interchangeable although YES tends to be used. whats the output of kldstat? if it doesnt contain ndis.ko what happens if you kldload ndis Vince Below is the output of kldstat: %kldstat Id Refs AddressSize Name 1 21 0xc040 5c0690 kernel 21 0xc09c1000 69415c nvidia.ko 32 0xc1056000 28518linux.ko 41 0xc107f000 5f7a4bcmwl5a_sys.ko 53 0xc10df000 1aa10ndis.ko 62 0xc10fa000 e750 if_ndis.ko 71 0xc1109000 6a1c4acpi.ko 81 0xc520e000 2000 ntfs_iconv.ko 91 0xc521 4000 libiconv.ko 101 0xc5235000 b000 ntfs.ko It has the bcmwl5a_sys.ko, ndis.ko and if_ndis.ko. Damm cant think of anything then, (I did exactly what you are trying last night, and my full steps we just to download the drivers (was a broadcom rebadged as belkin) point ndsigen at the appropriate files (typically the inf wasnt a .inf but a .ntf for some reason) then kldload ndis followed by kldload the created .ko (after moving it to /boot/modules) Sorry I cant help more. Vince Best wishes, Kemian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 915resolution on HP Compaq
Mike Barnard wrote: On 1/31/08, Doug Poland [EMAIL PROTECTED] wrote: Mike Barnard wrote: Hi, I have an HP Compaq 6720s laptop. I am trying to get X to display at 1280x800 screen reolution. I first set it up using xorgconfig, but i failed to start X. I got an error saying intel: No matching device section for instance (BUS ID PCI:0:2:1) found GARTInt Unable to open /dev/agpgart (No such file or directory) I tried to use the 915resolution port and this is what it give me. # 915resolution -l Intel 800/900 Series VBIOS Hack : version 0.5.3 Intel chipset detected. However, 915resolution was unable to determine the chipset type. Chipset Id: 2a008086 Please report this problem to [EMAIL PROTECTED] # I know that i have the Intel x3100 card and then 965GM chipset. Has anyone managed to get X to display on a wide screen display at 1280x800 on this chipset? If you're running FreeBSD 7.x and Xorg 7.3, I recommend using the intel driver. 915resolution is not necessary with this driver. darn... there we go again, i forgot to give the version i am running. I have FreeBSD 6.3-STABLE, xorg 7.3_1 and yes with the x11-drivers/xf86-video-intel port installed. I fell back to 915resolution since this intel driver failed. I was hoping to get some joy with 915resolution, but realised that it does not support this chipset as well :-(. I deinstalled the intel driver and installed the i810 driver, but no joy either. Im back to the intel driver and i still cannot get 1280x800 done. every time i startx i get the error i described earlier. I checked and /dev/agpgart does not exist. Im sure i compiled my kernel with device agp. thanks for the assistance. Hi Mike, I had the same problems you were having on 6.2-STABLE and was not able to resolve them. IIRC, the intel driver works *correctly* on 7.x only. In my case, I also have an Intel wireless NIC that is also supported in 7.x only. These two issues forced me to 7.x and I've been working happily ever since. HTH, Doug ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: 915resolution on HP Compaq
darn... there we go again, i forgot to give the version i am running. I have FreeBSD 6.3-STABLE, xorg 7.3_1 and yes with the x11-drivers/xf86-video-intel port installed. I fell back to 915resolution since this intel driver failed. I was hoping to get some joy with 915resolution, but realised that it does not support this chipset as well :-(. I deinstalled the intel driver and installed the i810 driver, but no joy either. Im back to the intel driver and i still cannot get 1280x800 done. every time i startx i get the error i described earlier. I checked and /dev/agpgart does not exist. Im sure i compiled my kernel with device agp. thanks for the assistance. On 1/31/08, Doug Poland [EMAIL PROTECTED] wrote: Mike Barnard wrote: Hi, I have an HP Compaq 6720s laptop. I am trying to get X to display at 1280x800 screen reolution. I first set it up using xorgconfig, but i failed to start X. I got an error saying intel: No matching device section for instance (BUS ID PCI:0:2:1) found GARTInt Unable to open /dev/agpgart (No such file or directory) I tried to use the 915resolution port and this is what it give me. # 915resolution -l Intel 800/900 Series VBIOS Hack : version 0.5.3 Intel chipset detected. However, 915resolution was unable to determine the chipset type. Chipset Id: 2a008086 Please report this problem to [EMAIL PROTECTED] # I know that i have the Intel x3100 card and then 965GM chipset. Has anyone managed to get X to display on a wide screen display at 1280x800 on this chipset? If you're running FreeBSD 7.x and Xorg 7.3, I recommend using the intel driver. 915resolution is not necessary with this driver. -- Regards, Doug -- Mike Of course, you might discount this possibility, but remember that one in a million chances happen 99% of the time. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Can't mount iPod Nano 3rd Gen on 6.3
I have an iPod Nano 3rd Gen with 1.1 firmware (Don't start, it was free) that I am trying to mount on my 6.3 i386 workstation. Is there anybody who has been able to get one of these to work or anyone who might have some pointers. When I attempt to mount it with mount_msdosfs, I get the following in dmesg: g_vfs_done():da0s1[READ(offset=0, length=2048)]error = 22 When I plug it in: umass0: Apple Inc. iPod, rev 2.00/0.01, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Apple iPod 1.62 Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 7583MB (1941441 4096 byte sectors: 255H 63S/T 120C) Thanks for your time, -Rob ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't mount iPod Nano 3rd Gen on 6.3
Rob Messick wrote: When I plug it in: umass0: Apple Inc. iPod, rev 2.00/0.01, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Apple iPod 1.62 Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 7583MB (1941441 4096 byte sectors: 255H 63S/T 120C) I have another MP3 player, not an Ipod. But for me, it works to mount /dev/da0sX instead of /dev/da0 (X is usually 1). HTH, Alphons -- VISTA - Viruses Intruders Spyware Trojans Adware ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
http://mirrorlist.freebsd.org/ not updated?
Hi, http://mirrorlist.freebsd.org/ doesn't include UK in the list of countries. Should it or was it something we said? Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ls sees disk but mount_ntfs doesn't
Chris Whitehouse wrote: Hi, I'm trying to get some data off a laptop. The disk is buried inside somewhere so to avoid dismantling the laptop I am trying to mount it using a FreeBSD livefs cd (7.0RC1). Note all the commands and output below are typed up by hand but I think they are accurate. Fixit# ls -l /dev/ad0s2 crw-r- 1 root operator0, 94 Jan 31 13:39 /dev/ad0s2 Fixit# mount_ntfs -o ro /dev/ad0s2 /mnt mount_ntfs: /dev/ad0s2: No such file or director So I thought I would try using ntfs-3g which I would prefer anyway as it is probably safer. Fixit# pkg_add -r fusefs-ntfs Fetching ftp://[pathto]fusefs-ntfs.tbs...pkg_add: warning error writing to tar: Broken pipe Done. pkg_add: unable to open table of contents of file '+CONTENTS' - not a package? Fixit# Lastly dmesg shows: GEOM_LABEL: Label for provider ad0s2 is ntfs/HDD. So how can I mount the hard disk? Or can anyone suggest an alternative way to get the data other than dismantling the laptop? I've tried ping which is a linux based disk cloning livecd but it can't see network or a usb hard drive. As a secondary question, could ntfs-3g be included in the livefs CD? It seems like quite a useful utility to have. Thanks Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] I missed a bit out. The laptop is running XP and won't boot fully to windows, but far enough that I think the hardware is ok. Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ls sees disk but mount_ntfs doesn't
On Thursday 31 January 2008 9:59 am, Chris Whitehouse wrote: Hi, I'm trying to get some data off a laptop. The disk is buried inside somewhere so to avoid dismantling the laptop I am trying to mount it using a FreeBSD livefs cd (7.0RC1). Note all the commands and output below are typed up by hand but I think they are accurate. Fixit# ls -l /dev/ad0s2 crw-r- 1 root operator0, 94 Jan 31 13:39 /dev/ad0s2 Fixit# mount_ntfs -o ro /dev/ad0s2 /mnt mount_ntfs: /dev/ad0s2: No such file or director So I thought I would try using ntfs-3g which I would prefer anyway as it is probably safer. Fixit# pkg_add -r fusefs-ntfs Fetching ftp://[pathto]fusefs-ntfs.tbs...pkg_add: warning error writing to tar: Broken pipe Done. pkg_add: unable to open table of contents of file '+CONTENTS' - not a package? Fixit# Lastly dmesg shows: GEOM_LABEL: Label for provider ad0s2 is ntfs/HDD. So how can I mount the hard disk? Or can anyone suggest an alternative way to get the data other than dismantling the laptop? I've tried ping which is a linux based disk cloning livecd but it can't see network or a usb hard drive. As a secondary question, could ntfs-3g be included in the livefs CD? It seems like quite a useful utility to have. Thanks Chris Chris, On my system, the ntfs partition you need to mount is ad0s1 Also, make sure that the ntfs driver is either in your kernel or loaded as a module at boot, should be ntfs_load=YES in loader.conf as module This should allow you to mount the drive, assuming nothing major is wrong with it. (I have dual boot system andthese are the settings I use) obviously, if you are not mounting as root, you have to make sure you can mount as a user... Mark Moellering Psyberation, inc. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: http://mirrorlist.freebsd.org/ not updated?
Quoting Chris Whitehouse [EMAIL PROTECTED]: Hi, http://mirrorlist.freebsd.org/ doesn't include UK in the list of countries. Should it or was it something we said? Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] I don't know weird? I suppose we can blame Tony Blair http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html#HANDBOOK-MIRRORS-CHAPTER-SGML-MIRRORS-UK-FTP This message was sent using IMP, the Internet Messaging Program. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can't mount iPod Nano 3rd Gen on 6.3
Alphons Fonz van Werven wrote: Rob Messick wrote: When I plug it in: umass0: Apple Inc. iPod, rev 2.00/0.01, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Apple iPod 1.62 Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 7583MB (1941441 4096 byte sectors: 255H 63S/T 120C) I have another MP3 player, not an Ipod. But for me, it works to mount /dev/da0sX instead of /dev/da0 (X is usually 1). Sometimes it's even not enough, in my case: # ls /dev/da1* /dev/da1 # mount_msdosfs /dev/da1 /mnt/tmp/ mount_msdosfs: /dev/da1: : Invalid argument # ls /dev/da1* /dev/da1/dev/da1s1 # mount_msdosfs /dev/da1s1 /mnt/tmp/ # Slice one doesn't appear until you try to access da1... HTH, Alphons -- Pietro Cerutti PGP Public Key: http://gahr.ch/pgp signature.asc Description: OpenPGP digital signature
Re: http://mirrorlist.freebsd.org/ not updated?
David Alanis wrote: Quoting Chris Whitehouse [EMAIL PROTECTED]: Hi, http://mirrorlist.freebsd.org/ doesn't include UK in the list of countries. Should it or was it something we said? Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] I don't know weird? I suppose we can blame Tony Blair http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html#HANDBOOK-MIRRORS-CHAPTER-SGML-MIRRORS-UK-FTP That's right but that page says The FreeBSD mirror sites database is more accurate than the mirror listing in the Handbook, as it gets its information from the DNS rather than relying on static lists of hosts. where 'mirror sites database' is a link to mirrorlist.freebsd.org Chris ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ls sees disk but mount_ntfs doesn't
Mark Moellering wrote: On Thursday 31 January 2008 9:59 am, Chris Whitehouse wrote: Hi, I'm trying to get some data off a laptop. The disk is buried inside somewhere so to avoid dismantling the laptop I am trying to mount it using a FreeBSD livefs cd (7.0RC1). Note all the commands and output below are typed up by hand but I think they are accurate. Fixit# ls -l /dev/ad0s2 crw-r- 1 root operator0, 94 Jan 31 13:39 /dev/ad0s2 Fixit# mount_ntfs -o ro /dev/ad0s2 /mnt mount_ntfs: /dev/ad0s2: No such file or director So I thought I would try using ntfs-3g which I would prefer anyway as it is probably safer. Fixit# pkg_add -r fusefs-ntfs Fetching ftp://[pathto]fusefs-ntfs.tbs...pkg_add: warning error writing to tar: Broken pipe Done. pkg_add: unable to open table of contents of file '+CONTENTS' - not a package? Fixit# Lastly dmesg shows: GEOM_LABEL: Label for provider ad0s2 is ntfs/HDD. So how can I mount the hard disk? Or can anyone suggest an alternative way to get the data other than dismantling the laptop? I've tried ping which is a linux based disk cloning livecd but it can't see network or a usb hard drive. As a secondary question, could ntfs-3g be included in the livefs CD? It seems like quite a useful utility to have. Thanks Chris Chris, On my system, the ntfs partition you need to mount is ad0s1 Also, make sure that the ntfs driver is either in your kernel or loaded as a module at boot, should be ntfs_load=YES in loader.conf as module This should allow you to mount the drive, assuming nothing major is wrong with it. (I have dual boot system andthese are the settings I use) obviously, if you are not mounting as root, you have to make sure you can mount as a user... Loading ntfs did it thank you! (I'm using Fixit on the live CD and had to load ntfs at the boot prompt but otherwise as you said). Chris Mark Moellering Psyberation, inc. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Hardware detection
Greetings, This question is sort of related to an earlier question I asked. Installed 6.3-release on a new Dell PowerEdge SC 1435, and am trying to see if the drives are recognized as SATA. Looked at dmesg, but am unsure of how Freebsd would identify a SATA drive. Wouldn't Freebsd fail to install if it didn't recognize the drives as SATA ? thanks, Darryl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Hardware detection
Looked at dmesg, but am unsure of how Freebsd would identify a SATA drive. it says it's sata like that: ad10: 305244MB SAMSUNG HD321KJ CP100-10 at ata5-master SATA300 ad12: 305245MB SAMSUNG HD321KJ CP100-10 at ata6-master SATA300 ad14: 305245MB SAMSUNG HD321KJ CP100-10 at ata7-master SATA300 ad18: 476940MB SAMSUNG HD501LJ CR100-12 at ata9-master SATA300 ad20: 476940MB SAMSUNG HD501LJ CR100-12 at ata10-master SATA300 Wouldn't Freebsd fail to install if it didn't recognize the drives as SATA ? no. but if it recognizes it as ATA-33 or like this - something is wrong. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Hardware detection
Looked at dmesg, but am unsure of how Freebsd would identify a SATA drive. it says it's sata like that: ad10: 305244MB SAMSUNG HD321KJ CP100-10 at ata5-master SATA300 ad12: 305245MB SAMSUNG HD321KJ CP100-10 at ata6-master SATA300 ad14: 305245MB SAMSUNG HD321KJ CP100-10 at ata7-master SATA300 ad18: 476940MB SAMSUNG HD501LJ CR100-12 at ata9-master SATA300 ad20: 476940MB SAMSUNG HD501LJ CR100-12 at ata10-master SATA300 Wouldn't Freebsd fail to install if it didn't recognize the drives as SATA ? no. but if it recognizes it as ATA-33 or like this - something is wrong. Exactly my problem. It says ad4: DMA limited to UDMA33, device found non-ATA66 cable ad4: 152587MB SAMSUNG HE160HJ JF800-24 at ata2-master UDMA33 ad6: DMA limited to UDMA33, device found non-ATA66 cable ad6: 152587MB SAMSUNG HE160HJ JF800-24 at ata3-master UDMA33 Weird. What would cause this ?? -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.17/1253 - Release Date: 1/31/2008 9:09 AM ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Hardware detection
On Thu, Jan 31, 2008 at 01:48:00PM -0600, Darryl Hoar wrote: Looked at dmesg, but am unsure of how Freebsd would identify a SATA drive. it says it's sata like that: ad10: 305244MB SAMSUNG HD321KJ CP100-10 at ata5-master SATA300 ad12: 305245MB SAMSUNG HD321KJ CP100-10 at ata6-master SATA300 ad14: 305245MB SAMSUNG HD321KJ CP100-10 at ata7-master SATA300 ad18: 476940MB SAMSUNG HD501LJ CR100-12 at ata9-master SATA300 ad20: 476940MB SAMSUNG HD501LJ CR100-12 at ata10-master SATA300 Wouldn't Freebsd fail to install if it didn't recognize the drives as SATA ? no. but if it recognizes it as ATA-33 or like this - something is wrong. Exactly my problem. It says ad4: DMA limited to UDMA33, device found non-ATA66 cable ad4: 152587MB SAMSUNG HE160HJ JF800-24 at ata2-master UDMA33 ad6: DMA limited to UDMA33, device found non-ATA66 cable ad6: 152587MB SAMSUNG HE160HJ JF800-24 at ata3-master UDMA33 Weird. What would cause this ?? That is usually what happens when the disk controller is one that FreeBSD does not have support for, so it treats the controller as a Generic ATA controller. Should normally work fine albeit with somewhat suboptimal performance. (And even though it says UDMA33 a SATA controller should still work at SATA150 speed, so the performance penalty should not be so severe.) -- Insert your favourite quote here. Erik Trulsson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
WPA and EAP-TTLS oddity
I swear this has worked for me in the past! Scenario: +---+ | ThinkPad T42 with D-Link DWL-G660 | | (ath0) on FreeBSD 6.2-STABLE | | running wpa_supplicant 0.4.8 | +---+ ^ 802.1X |EAP-TTLS v +---+ | Cisco 1131AG 802.11a/b/g AP IOS 12.4 | +---+ ^ EAP-TTLS|RADIUS v +---+ | FreeRADIUS 1.1.7_2 on FreeBSD 7.0 | +---+ The configs are at the end of this message. It almost works, but the behaviour changes depending on the case (uppercase/lowercase) of the phase2 value! In both cases below (auth=PAP and auth=pap) the EAP-TTLS session has been established. In one case, I get an ERROR because PAP is unknown. In the other case (pap), FreeRADIUS cannot locate the cleartext password (password). What am I missing? Is this an issue with wpa_supplicant(8) itself? Has anyone gotten EAP-TTLS to work with simple PAP inside the tunnel? About two years ago, I had this working (using PAP inside the tunnel) but it was an early version of wpa_supplicant(8) and probably FreeBSD 4.x or early 5.x =*=*=*=*=*=*=*=*=*= wpa_supplicant.conf =*=*=*=*=*=*=*=*=*=*=*=*= ctrl_interface=/var/run/wpa_supplicant ctrl_interface_group=0 network={ ssid=testing key_mgmt=WPA-EAP eap=TTLS anonymous_identity=anonymous identity=foo password=password phase2=auth=PAP } =*=*=*=*=*=*=*=*=*= FreeRADIUS eap.conf =*=*=*=*=*=*=*=*=*=*=*= eap { default_eap_type = ttls timer_expire = 60 ignore_unknown_eap_types = no cisco_accounting_username_bug = yes tls { private_key_password = whatever private_key_file = ${raddbdir}/certs/cert-srv.pem certificate_file = ${raddbdir}/certs/cert-srv.pem CA_file = ${raddbdir}/certs/demoCA/cacert.pem dh_file = ${raddbdir}/certs/dh random_file = ${raddbdir}/certs/random fragment_size = 1024 include_length = yes cipher_list = DEFAULT } ttls { default_eap_type = md5 copy_request_to_tunnel = yes use_tunneled_reply = yes } } =*=*=*=*=*=*=*=*= simplified radiusd.conf =*=*=*=*=*=*=*=*=*=*= [snip] unimportant stuff omitted [/snip] $INCLUDE ${confdir}/clients.conf $INCLUDE ${confdir}/eap.conf instantiate { } authorize { preprocess auth_log eap files pap } authenticate { eap } preacct { preprocess acct_unique } accounting { detail } post-auth { reply_log } =*=*=*=*=*=*=*=*= debug output snippet with phase2=auth=PAP =*=*=*=*=*=*=*=*=*= rlm_eap_ttls: Session established. Proceeding to decode tunneled attributes. Processing the authorize section of radiusd.conf modcall: entering group authorize for request 5 modcall[authorize]: module preprocess returns ok for request 5 radius_xlat: '/var/log/radacct/127.0.0.1/auth-20080131' rlm_detail: /var/log/radacct/%{Client-IP-Address}/auth-%Y%m%d expands to /var/log/radacct/127.0.0.1/auth-20080131 modcall[authorize]: module auth_log returns ok for request 5 rlm_eap: No EAP-Message, not doing EAP modcall[authorize]: module eap returns noop for request 5 users: Matched entry foo at line 217 modcall[authorize]: module files returns ok for request 5 modcall[authorize]: module pap returns updated for request 5 modcall: leaving group authorize (returns updated) for request 5 rad_check_password: Found Auth-Type pap auth: type PAP ERROR: Unknown value specified for Auth-Type. Cannot perform requested action. auth: Failed to validate the user. Trying to look up name of unknown client 127.0.0.1. Login incorrect: [foo/password] (from client UNKNOWN-CLIENT port 260 cli 00-xx-xx-xx-xx-xx) TTLS: Got tunneled Access-Reject rlm_eap: Handler failed in EAP/ttls rlm_eap: Failed in EAP select modcall[authenticate]: module eap returns invalid for request 5 modcall: leaving group authenticate (returns invalid) for request 5 auth: Failed to validate the user. =*=*=*=*=*=*=*=*= debug output snippet with phase2=auth=pap =*=*=*=*=*=*=*=*=*= rlm_eap_ttls: Session established. Proceeding to decode tunneled attributes. TTLS: Got tunneled identity of foo TTLS: Setting default EAP type for tunneled EAP session. Processing the authorize section of radiusd.conf modcall: entering group authorize for request 5 modcall[authorize]: module preprocess returns ok for request 5 radius_xlat: '/var/log/radacct/127.0.0.1/auth-20080131' rlm_detail: /var/log/radacct/%{Client-IP-Address}/auth-%Y%m%d expands to /var/log/radacct/127.0.0.1/auth-20080131 modcall[authorize]: module auth_log returns ok for request 5 rlm_eap: EAP packet type response id 6
Re: acrobat reader (7 or 8) on 7.0-RC1
On Thu, 31 Jan 2008 13:47:48 + Vince Hoffman wrote: Boris Samorodov wrote: On Wed, 30 Jan 2008 20:25:47 + Vince Hoffman wrote: Has anyone else had any issues getting this working? my laptop runs acrobat reader7 fine while my desktop doesnt like it at all (see error below.) I am using compat.linux.osrelease=2.6.16 and linux_base-fc6-6_5 I have linux procf mounted. Have you read /usr/ports/UPDATING? any suggestion? Restore default linux base port and sysctl setting(s). Yeah that fixed it, thanks. (I thought I had already gone back to the default linux_base but had left OVERRIDE_LINUX_BASE_PORT=fc6 in my make.conf.) Good, glad to be helpful. Annoying that it worked on one but not the other. This is one of the reasons why the default was not switched for 7.0. WBR -- bsam ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Spamassassin: Fill /var/log/maillog
Hello I get allways the following message in /var/log/maillog: Jan 31 17:21:36 acsvfbsd02 spamd[53289]: spamd: connection from localhost.sample.ch [127.0.0.1] at port 64026 Jan 31 17:21:36 acsvfbsd02 spamd[53289]: spamd: setuid to root succeeded Jan 31 17:21:36 acsvfbsd02 spamd[53289]: spamd: still running as root: user not specified with -u, not found, or set to root,falling back to nobody Jan 31 17:21:36 acsvfbsd02 spamd[53289]: spamd: processing message [EMAIL PROTECTED] for root:65534 Jan 31 17:21:42 acsvfbsd02 spamd[53289]: auto-whitelist: open of auto-whitelist file failed: locker: safe_lock: cannot create tmp lockfile /nonexistent/.spamassassin/auto-whitelist.lock.acsvfbsd02.acutronic.ch.53289 for /nonexistent//.spamassassin/auto-whitelist.lock: No such file or directory Jan 31 17:21:42 acsvfbsd02 spamd[53289]: spamd: clean message (0.0/7.0) for root:65534 in 6.2 seconds, 19091 bytes. Jan 31 17:21:42 acsvfbsd02 spamd[53289]: spamd: result: . 0 - HTML_MESSAGE scantime=6.2,size=19091,user=root,uid=65534,required_score=7.0,rhost=localhost.acutronic.ch,raddr=127.0.0.1,rport=64026,mid=[EMAIL PROTECTED],autolearn=failed There was a pr years ago: http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2005-March/054262.html Is there an other solution today? Regards, -- Martin Schweizer [EMAIL PROTECTED] PC-Service M. Schweizer GmbH; Bannholzstrasse 6; CH-8608 Bubikon Tel. +41 55 243 30 00; Fax: +41 55 243 33 22; http://www.pc-service.ch; public key : http://www.pc-service.ch/pgp/public_key.asc; fingerprint: EC21 CA4D 5C78 BC2D 73B7 10F9 C1AE 1691 D30F D239; ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Hardware detection
Exactly my problem. It says ad4: DMA limited to UDMA33, device found non-ATA66 cable ad4: 152587MB SAMSUNG HE160HJ JF800-24 at ata2-master UDMA33 ad6: DMA limited to UDMA33, device found non-ATA66 cable ad6: 152587MB SAMSUNG HE160HJ JF800-24 at ata3-master UDMA33 Weird. What would cause this ?? try changing SATA mode in BIOS (whatever it's called). i have to set RAID (while not actually defining any RAID sets) to make it working. you may think it is nonsense, and you are right, but BIOS isn't part of FreeBSD, and is written with windoze in mind, so don't expect any sense there. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Hardware detection
That is usually what happens when the disk controller is one that FreeBSD does not have support for, so it treats the controller as a Generic ATA controller. Should normally work fine albeit with somewhat suboptimal performance. (And even though it says UDMA33 a SATA controller should still work at SATA150 speed, so the performance penalty should not be so severe.) in my case it was slow and unstable, up to 15 minutes between crashes. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Oops
am setting up gmirror and screwed up my fstab. When rebooting, it complains until I tell it the root device: ufs:/dev/mirror/gm0s1a add vfs.root.mountfrom=ufs:mirror/gm0s1a to /boot/loader.conf it boots up and dumps me into single user. When I try to change /etc/fstab, it tells me that the parition is mounted read only. do mount -uw /dev/gm0s1a / and then edit ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Oops
am setting up gmirror and screwed up my fstab. When rebooting, it complains until I tell it the root device: ufs:/dev/mirror/gm0s1a add vfs.root.mountfrom=ufs:mirror/gm0s1a to /boot/loader.conf How do I do that when / is automatically being mounted read only ? it boots up and dumps me into single user. When I try to change /etc/fstab, it tells me that the parition is mounted read only. do mount -uw /dev/gm0s1a / and then edit how can I mount / again when its already mounted ? When I said single user, maybe that wasn't the right thing to say. When I tell it the root partition (/dev/mirror/gm0s1a), it then asks me to choose a shell (bin/sh being the default). When I select the shell it takes me to a command line where only / is mounted. -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.17/1253 - Release Date: 1/31/2008 9:09 AM ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Oops
Greetings, am setting up gmirror and screwed up my fstab. When rebooting, it complains until I tell it the root device: ufs:/dev/mirror/gm0s1a it boots up and dumps me into single user. When I try to change /etc/fstab, it tells me that the parition is mounted read only. How can I get things so I can change the /etc/fstab file ? I looked on freebsd.org for a live cd, but didn't find one. thanks for any help. -Darryl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Oops
Darryl Hoar [EMAIL PROTECTED] writes: Greetings, am setting up gmirror and screwed up my fstab. When rebooting, it complains until I tell it the root device: ufs:/dev/mirror/gm0s1a it boots up and dumps me into single user. When I try to change /etc/fstab, it tells me that the parition is mounted read only. How can I get things so I can change the /etc/fstab file ? http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#RCCONF-READONLY I looked on freebsd.org for a live cd, but didn't find one. The install CD is bootable, and has a fixit mode. But you would still need to mount your root partition writable... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Oops
Darryl Hoar [EMAIL PROTECTED] writes: Greetings, am setting up gmirror and screwed up my fstab. When rebooting, it complains until I tell it the root device: ufs:/dev/mirror/gm0s1a it boots up and dumps me into single user. When I try to change /etc/fstab, it tells me that the parition is mounted read only. How can I get things so I can change the /etc/fstab file ? http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#RCCONF-REA DONLY I looked on freebsd.org for a live cd, but didn't find one. The install CD is bootable, and has a fixit mode. But you would still need to mount your root partition writable... Well, the answer was right there. Easy. After it asks for shell and you get to the command prompt, just enter mount / and it will make / read/write. Then edit /etc/fstab. problem solved. thanks for all the responses. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Password file migration help
On Wednesday 30 January 2008 20:26:20 Vince wrote: Sean Murphy wrote: I have a FreeBSD 5.4 system and would like to migrate users in the password file with UIDs 3000 through 5000 to a FreeBSD 6.3 system on a running on a separate box. Is there a way to export just those users? hmm very roughly just a for uid in $(jot 2001 3000); do grep $uid /etc/master.passwd accountstokeep.txt ; done That's a bit loose, and forgot a dash. The following should really only get the uid's (not the gids, parts of a password, comments and what not): for uid in $(jot - 2001 3000); do \ grep -E ^[^:]+:[^:]+:$uid: /etc/master.passwd; done This doesn't migrate home dirs, but using the above and piping to: cut -f 9 -d ':' should give you a list of home dirs to work with. -- Mel ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Oops
In the last episode (Jan 31), Darryl Hoar said: it boots up and dumps me into single user. When I try to change /etc/fstab, it tells me that the parition is mounted read only. do mount -uw /dev/gm0s1a / and then edit how can I mount / again when its already mounted ? When I said single user, maybe that wasn't the right thing to say. When I tell it the root partition (/dev/mirror/gm0s1a), it then asks me to choose a shell (bin/sh being the default). When I select the shell it takes me to a command line where only / is mounted. -u tells mount to update an existing mountpoint. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Oops
Darryl Hoar wrote: am setting up gmirror and screwed up my fstab. When rebooting, it complains until I tell it the root device: ufs:/dev/mirror/gm0s1a add vfs.root.mountfrom=ufs:mirror/gm0s1a to /boot/loader.conf How do I do that when / is automatically being mounted read only ? it boots up and dumps me into single user. When I try to change /etc/fstab, it tells me that the parition is mounted read only. do mount -uw /dev/gm0s1a / and then edit how can I mount / again when its already mounted ? When I said single user, maybe that wasn't the right thing to say. When I tell it the root partition (/dev/mirror/gm0s1a), it then asks me to choose a shell (bin/sh being the default). When I select the shell it takes me to a command line where only / is mounted. -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.17/1253 - Release Date: 1/31/2008 9:09 AM ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ufs:mirror/gm0s1a fsck -p / mount / ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: Oops
do mount -uw /dev/gm0s1a / how can I mount / again when its already mounted ? When I said single reread my mail - i told you /sbin/mount -uw /dev/gm0s1a / yes- i missed /sbin/. sorry. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Oops
ufs:mirror/gm0s1a fsck -p / mount / last won't work with fstab not having right entry. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
CVSup update or upgrade
Hello, I've been reading over my library of FreeBSD books, which I may add is impressive due to me buying EVERY book available on Freebsdmall and also buying the PowerPak to make sure my Library is complete, and also I've been reading the freebsd.org docs because I'm working on getting an upgrade to work properly. Here is what happened: I did as the website said and changed the cvsup example file which is the one I'm using, to a FreeBSD cvsup server, left most of it alone, because I wanted to use most packages, so I wanted basically every app available, and when rebooting, after doing this: # make buildworld # make buildkernel # make installkernel # reboot I booted in single user mode and tried this: # mergemaster -p # make installworld # mergemaster # reboot Now, this wouldn't work for some reason or another, but the system seemed to be doing just fine. I did uname -a and sure enough I had 6.3 Stable going. However, when typing kdm to load up that so I can use a gui, it no longer loads, at all, it pops up for a split second to just stop totally, and then gives me a message about the hostname. I thought it was odd, and XDM actually loads, but won't load X itself as it too goes out with errors about hostname. I don't have the exact message which I know is bad form on my part, but I decided to just try updating again as I was kind of wondering what RELEASE is like instead of stable. This is perfectly fine because the machine is NOT used as a server really, and is mainly for me to test out stuff and use FreeBSD more so I'm not worried about it breaking, or reinstalling the OS, it's no big deal, my reaqson for doing this the first time was mainly because pkg_add -r wouldn't work, I have 6.0 on the CDs I bought from the mall site, and I also have another 6.0 install disk as I bought a second copy, may seem odd but I like having more than one on CD (or in thie case 4 copies) but I like to help support the BSD people, so I do it. Anyway, does anyone have any idea? I'm using the web site for docs as my books seem to have different instructions all together which is odd but I also know that books coming up vs software coming out, you can't really keep books coming out at the same rate, so I decided to use the web docs for something like this to have more up to date info, so here it is since this message si looking rather sloppy: --I have install disks for FreeBSD 6.0 -- I don't mind reinstalling but would rather fix it and learn how -- I'm currently running an update again with cvsup as it says this is a better choice and option --I'm not a Unix wizard but I DO know enough to get around and dream of one day being a Unix hacker, that's a dream for now though, I came from using Windows and Linux, and still use both heh --IF I've borked up the system bad enough that a reinstall is the best option I really don't mind, I'd just like to know how to at least prevent this from happening again so I can stay up to date in FreeBSD I followed the instructions pretty much to the letter here: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html The system has nothing really important on it yet as I set it up to learn more with so I can start using FreeBSD the way I do Linux, as a desktop to do my work and tests on. Thanks very much, and as I said, if I really screwed up or something, I can just reinstall. also, one more thing: Does anyone know how to make pkg_add -r package work again in a fresh install of FreeBSD 6.0? When I ran it after the install to grab something it said it didn't work and couldn't be found, and so I decided to investigate and found the reason to be the host it looks up is no longer there, so I just went to Freebsd.org and looked and found the server was renamed since 6.0 was released, and so I just updated everything for it to work better. Also, one last question: I've been looking on FreeBSD.org but I don't fnid anything about this, but when did FreeBSD go from .tgz files to .tbz? I'm just wondering what happened as I thought it was atypo at first and realized every one of my books said .tbz and so did my screen heh. Any info on that would be neat too :) Thanks VERY much! -Allen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Display / Screen resolution question on IBM TP 1171
After 2 days of persistent trying and no answer from this mailing list, I actually figured out a way myself! So I'll share it here in case someone else has the same problem. The problem is that xorg.conf generated by X -configure actually makes the laptop's pointing device(trackball) stop working. So I eliminate the line Option Device /dev/sysmouse from xorg.conf, then there is no more problem with the trackball. Then I can just add the line Modes 1024x768 to xorg.conf beneath every line of Depth... Now the screen problem is solved! Next problem: it has no sound. It seems like no sound card is detected at all. Any help is appreciated. --aghv Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
slightly OT. php5 breaks my hit-count....
guys, i need some help from any of you who is current with php5. in '05 i wrote myown hit counter in php4 using the . operator to write statements like: $dir=countdir/; $filename= $file; if (! (file_exists( ( $dir.$filename) ))) { // the if fopen cannot open, echo Error and exit(1) } this did work. with php5, however, i'm getting a divivde by zero error on both lines. thebest thing, or easiest, would be to compilr php4. but i'd like to know some better ways. anybody clue me in? thanks in advance, gary -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CVSup update or upgrade
On Thu, 31 Jan 2008 18:47:12 -0500 Allen [EMAIL PROTECTED] wrote: Hello, I've been reading over my library of FreeBSD books, which I may add is impressive due to me buying EVERY book available on Freebsdmall and also buying the PowerPak to make sure my Library is complete, and also I've been reading the freebsd.org docs because I'm working on getting an upgrade to work properly. Here is what happened: I did as the website said and changed the cvsup example file which is the one I'm using, to a FreeBSD cvsup server, left most of it alone, because I wanted to use most packages, so I wanted basically every app available, and when rebooting, after doing this: # make buildworld # make buildkernel # make installkernel # reboot Assuming you went from 6.3-RELEASE to 6.3-STABLE and also assuming you do not have customization in /etc - here's what I do... After a cvsup of the src tree (ensuring I want the STABLE branch (*default release=cvs tag=RELENG_6) # cd /usr/src # make buildworld # make buildkernel KERNCONF=GENERIC (Assuming you use GENERIC) # make installkernel KERNCONF=GENERIC (Assuming you use GENERIC) # shutdown -r now (no need for Single-User Mode if YOU are the only user) # cd /usr/src # make installworld # shutdown -r now NOTE: I don't use mergemaster unless I go from say 6.3 to 7.0 I booted in single user mode and tried this: # mergemaster -p # make installworld # mergemaster # reboot Now, this wouldn't work for some reason or another, but the system seemed to be doing just fine. I did uname -a and sure enough I had 6.3 Stable going. However, when typing kdm to load up that so I can use a gui, it no longer loads, at all, it pops up for a split second to just stop totally, and then gives me a message about the hostname. See above for your RELENG Tag I thought it was odd, and XDM actually loads, but won't load X itself as it too goes out with errors about hostname. You may need to update your ports tree and your installed packages since you went to STABLE I don't have the exact message which I know is bad form on my part, but I decided to just try updating again as I was kind of wondering what RELEASE is like instead of stable. STABLE is the security fix branch. *snip* Someone else may follow up the rest with you. -- Best regards, Chris Someone is standing on the ethernet cable, causeing a kink in the cable ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CVSup update or upgrade
On Fri, 1 Feb 2008 02:21:42 + (UTC) Jona Joachim [EMAIL PROTECTED] wrote: On 2008-02-01, Chris [EMAIL PROTECTED] wrote: On Thu, 31 Jan 2008 18:47:12 -0500 Allen [EMAIL PROTECTED] wrote: Hello, I've been reading over my library of FreeBSD books, which I may add is impressive due to me buying EVERY book available on Freebsdmall and also buying the PowerPak to make sure my Library is complete, and also I've been reading the freebsd.org docs because I'm working on getting an upgrade to work properly. Here is what happened: I did as the website said and changed the cvsup example file which is the one I'm using, to a FreeBSD cvsup server, left most of it alone, because I wanted to use most packages, so I wanted basically every app available, and when rebooting, after doing this: # make buildworld # make buildkernel # make installkernel # reboot Assuming you went from 6.3-RELEASE to 6.3-STABLE and also assuming you do not have customization in /etc - here's what I do... After a cvsup of the src tree (ensuring I want the STABLE branch (*default release=cvs tag=RELENG_6) # cd /usr/src # make buildworld # make buildkernel KERNCONF=GENERIC (Assuming you use GENERIC) # make installkernel KERNCONF=GENERIC (Assuming you use GENERIC) # shutdown -r now (no need for Single-User Mode if YOU are the only user) Sorry but you're giving wrong advice here. *Always* drop to single user mode. You are almost never the only user on your machine when you're in multiuser mode. There will at least be root an your user account and probably others. I'm not giving advice - I'm simply stating what *I* do. See my words below. Assuming you went from 6.3-RELEASE to 6.3-STABLE and also assuming you do not have customization in /etc - here's what I do... Note the here's what I do... That does not sound like I'm advising any user to do what I do - only stating things based on my experiences. ... as to Single-User mode and mergemaster, here again, I can only comment on what I do and my experiences. I myself have never had a system failure due to not running mergemaster. Furthermore, I have never had issues not booting into Single-User mode to update my boxen. Of course, your mileage may vary. -- Best regards, Chris The lines are all busy (busied out, that is -- why let them in to begin with?). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: C interpreters
On Thu, Jan 31, 2008 at 10:12:35AM -0500, Jim Stapleton wrote: Thanks, and that'll make shared (.so) libraries just fine? Well, that was certainly a relief. That very much describes the C interface I made already. I'm working on a alternate ports listing system, and I wanted to use something that I didn't mind programming in /and/ I knew should be available on any FreeBSD system without requireing more port installs, so I went with C or C++. I want it to be easy to write back-end database modules, in case people don't want to use the two that I write (SQLite2 and a my own flat-file system). There are only three functions that need wrapped: open, query, close. Open returns that void* pointer, query and close take it as the first argument. Any ideas on the C interpreter? It's been a while since I've done a lot of C/C++. hi jim, the bestt one i know of is free, named ch. cost only $25 for the whole deal. used mostly by the hardware sectoor so far. i'd like to see it be adopted by the open ource folks too.i haven't used it much so far becuse my C progras are mostly for myself and 1000 lines. v. small company, forget the name. gary Thanks, -Jim Stapleton ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix http://jottings.thought.org http://transfinite.thought.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: CVSup update or upgrade
On 2008-02-01, Chris [EMAIL PROTECTED] wrote: On Thu, 31 Jan 2008 18:47:12 -0500 Allen [EMAIL PROTECTED] wrote: Hello, I've been reading over my library of FreeBSD books, which I may add is impressive due to me buying EVERY book available on Freebsdmall and also buying the PowerPak to make sure my Library is complete, and also I've been reading the freebsd.org docs because I'm working on getting an upgrade to work properly. Here is what happened: I did as the website said and changed the cvsup example file which is the one I'm using, to a FreeBSD cvsup server, left most of it alone, because I wanted to use most packages, so I wanted basically every app available, and when rebooting, after doing this: # make buildworld # make buildkernel # make installkernel # reboot Assuming you went from 6.3-RELEASE to 6.3-STABLE and also assuming you do not have customization in /etc - here's what I do... After a cvsup of the src tree (ensuring I want the STABLE branch (*default release=cvs tag=RELENG_6) # cd /usr/src # make buildworld # make buildkernel KERNCONF=GENERIC (Assuming you use GENERIC) # make installkernel KERNCONF=GENERIC (Assuming you use GENERIC) # shutdown -r now (no need for Single-User Mode if YOU are the only user) Sorry but you're giving wrong advice here. *Always* drop to single user mode. You are almost never the only user on your machine when you're in multiuser mode. There will at least be root an your user account and probably others. # cd /usr/src # make installworld # shutdown -r now NOTE: I don't use mergemaster unless I go from say 6.3 to 7.0 *Always* use mergemaster. Default configuration is constantly changing slightly. It never happened to me that mergemaster had nothing to and I upgrade somewhat regularly. Not running mergemaster will sooner or later result in a broken system. It can be argued whether `mergemaster -p` has to be run everytime but just run it, it will never hurt you. I really recommend following the handbook step by step for this task unless you know exactly what you're doing. I booted in single user mode and tried this: # mergemaster -p # make installworld # mergemaster # reboot Now, this wouldn't work for some reason or another, but the system seemed to be doing just fine. I did uname -a and sure enough I had 6.3 Stable going. However, when typing kdm to load up that so I can use a gui, it no longer loads, at all, it pops up for a split second to just stop totally, and then gives me a message about the hostname. See above for your RELENG Tag I thought it was odd, and XDM actually loads, but won't load X itself as it too goes out with errors about hostname. You may need to update your ports tree and your installed packages since you went to STABLE I don't have the exact message which I know is bad form on my part, but I decided to just try updating again as I was kind of wondering what RELEASE is like instead of stable. STABLE is the security fix branch. *snip* Someone else may follow up the rest with you. Best regards, Jona -- I am chaos. I am the substance from which your artists and scientists build rhythms. I am the spirit with which your children and clowns laugh in happy anarchy. I am chaos. I am alive, and tell you that you are free. Eris, Goddess Of Chaos, Discord Confusion ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: SATA question
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Darryl Hoar Sent: Tuesday, January 29, 2008 6:59 AM To: freebsd-questions@freebsd.org Subject: SATA question Well, maybe I spoke to soon. While looking at dmesg in prep for doing a custom kernel for my new server, I noticed an oddity. ad4 - DMA limited to UDMA33, device found non-ata66 cable. ad4 - SAMSUN HE160HJ JF800-24 Is this telling me the system recognized my 160GB 7.2K RPM Serial ATA 3Gbps 3.5-in Cabled Hard Drive as a UDMA33 ? No doubt, a pciconf followed by insertion of the ID into the ata detection routines would help - assuming your sata chipset is supported. You don't have the entire dmesg here but it looks like it's using the generic driver. Ted ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: slightly OT. php5 breaks my hit-count....
Hi Gary, I just tested this exact code on php 5.2.5 and I didn't receive any error. For further help with this you are welcome to email me privately as this is more of a php code problem :) Gary Kline wrote: guys, i need some help from any of you who is current with php5. in '05 i wrote myown hit counter in php4 using the . operator to write statements like: $dir=countdir/; $filename= $file; if (! (file_exists( ( $dir.$filename) ))) { // the if fopen cannot open, echo Error and exit(1) } this did work. with php5, however, i'm getting a divivde by zero error on both lines. thebest thing, or easiest, would be to compilr php4. but i'd like to know some better ways. anybody clue me in? thanks in advance, gary ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cron to attach a gz file
I know I can use mail -s logfile /var/log/httpd_access.log in cron to email the content of a log file to a particular email address but how do I make that log file a binary attachment (*.gz)? gzip -c /var/log/httpd_access.log | uuencode httpd_access.log.gz | mail -s logfile [EMAIL PROTECTED] If you want an actual MIME attachment, see /usr/ports/mail/nail ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cron to attach a gz file
[EMAIL PROTECTED] wrote: I know I can use mail -s logfile /var/log/httpd_access.log in cron to email the content of a log file to a particular email address but how do I make that log file a binary attachment (*.gz)? gzip -c /var/log/httpd_access.log | uuencode httpd_access.log.gz | mail -s logfile [EMAIL PROTECTED] If you want an actual MIME attachment, see /usr/ports/mail/nail From a modern mail reader point of view there is not much difference between a MIME or a uuencoded attachment. Peter -- http://www.boosten.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]