Re: getpwent bug?
2010/7/21 Dan Nelson dnel...@allantgroup.com: In the last episode (Jul 21), Jens Rehsack said: On 07/16/10 18:13, Dan Nelson wrote: Hi Dan, In the last episode (Jul 16), Jens Rehsack said: On 07/16/10 15:07, Dan Nelson wrote: In the last episode (Jul 16), Jens Rehsack said: Could you please take a look to my other mail (getgrent related) - there seems another bug ... Do you have another one-liner that will reproduce it? A simple /usr/bin/getent group doesn't return dupes for me. Oddly enough, the *grent code doesn't use an internal counter, so the bug you found in endpwent doesn't exist in endgrent (afaik; the nsswitch code isn't that easy to read). Not really a one-liner: perl -MData::Dumper -e 'setgrent; my %dupchk; while( my ( $name, $grpass, $gid, $members ) = getgrent() ) { print $name is returned more than once (No $dupchk{$name} comes here)\n if( $dupchk{$name}++ ); print Dumper( [ $name, $grpass, $gid, $members ] ) };' setgrent() doesn't work here. I ran that and got dupes for group entries that exist both in /etc/groups and my LDAP source, but that's expected. You can see here http://www.cpantesters.org/cpan/report/f5100ac6-9418-11df-9ebc-c4a68065c34d the typical error picture. FreeBSD is the only system, where this error occurs. I don't know how to read perl's test output; what part of that report failed, and how do you know it was due to getgrent returning duplicate values? Because I know the error picture - I've seen it on my FreeBSD box first. I probably should add some diag() output for failing tests ... BTW - I ran your one-liner above on a SLES 10.2 Linux box and a Solaris 10u7 box, and got duplicate entries where groups existed in both /etc/groups and LDAP, just like on FreeBSD. I think you may be relying on behaviour that getgrent doesn't guarantee on any OS. But the duplicated entries I get are not duplicated in the source. I sent you my /var/yp/groups file and the output of my one-liner. I have no LDAP setup to try out, but in this case my workaround could be a good idea. Best regards, Jens ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: getpwent bug?
On 07/16/10 18:13, Dan Nelson wrote: Hi Dan, In the last episode (Jul 16), Jens Rehsack said: On 07/16/10 15:07, Dan Nelson wrote: In the last episode (Jul 16), Jens Rehsack said: Could you please take a look to my other mail (getgrent related) - there seems another bug ... Do you have another one-liner that will reproduce it? A simple /usr/bin/getent group doesn't return dupes for me. Oddly enough, the *grent code doesn't use an internal counter, so the bug you found in endpwent doesn't exist in endgrent (afaik; the nsswitch code isn't that easy to read). Not really a one-liner: perl -MData::Dumper -e 'setgrent; my %dupchk; while( my ( $name, $grpass, $gid, $members ) = getgrent() ) { print $name is returned more than once (No $dupchk{$name} comes here)\n if( $dupchk{$name}++ ); print Dumper( [ $name, $grpass, $gid, $members ] ) };' setgrent() doesn't work here. I ran that and got dupes for group entries that exist both in /etc/groups and my LDAP source, but that's expected. You can see here http://www.cpantesters.org/cpan/report/f5100ac6-9418-11df-9ebc-c4a68065c34d the typical error picture. FreeBSD is the only system, where this error occurs. I rate it as a bug - but I will write merge code for the duplicated entries. Best regards, Jens ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: getpwent bug?
2010/7/16 Dan Nelson dnel...@allantgroup.com: In the last episode (Jul 16), Ashish SHUKLA said: Dan Nelson writes: In the last episode (Jul 15), Jens Rehsack said: Hi all, I detected an issue with getpwent on my FreeBSD test box: perl -MData::Dumper -e 'my @e = getpwent(); print Dumper(\...@e); endpwent(); @e = getpwent(); print Dumper(\...@e); endpwent(); @e = getpwent(); print Dumper(\...@e); endpwent();' $VAR1 = [ 'root', '', 0, 0, 0, '', 'Charlie ', '/root', '/bin/csh', 0 ]; $VAR1 = [ 'toor', '*', 0, 0, 0, '', 'Bourne-again Superuser', '/root', '', 0 ]; $VAR1 = [ 'daemon', '*', 1, 1, 0, '', 'Owner of many system processes', '/root', '/usr/sbin/nologin', 0 ]; I'm using FreeBSD waldorf.muppets.liwing.de 7.3-PRERELEASE FreeBSD 7.3-PRERELEASE #0: Fri Mar 12 11:31:18 UTC 2010 r...@waldorf.muppets.liwing.de:/usr/obj/usr/src/sys/WALDORF amd64 The above output looks perfect, and should match the top three lines in /your etc/passwd files. Well, OP is also invoking 'endpwent()' after every 'getpwent()' invocation which according to GNU/Linux's glibc and NetBSD's libc (as OP mentioned) should rewind the position in passwd database to the beginning. Ah. I missed the endpwent calls. Was difficult for me to format the single liner ;) To me it definitely looks like a bug in FreeBSD's getpw*() family of functions. As tested using sysutils/lsof, in the following program in FreeBSD, the descriptor corresponding to '/etc/pwd.db' is closed on endpwent(3) but position in database is never rewinded as shown in the output. It looks like the *pwent functions keep an internal counter that endpwent doesn't reset. Could you please take a look to my other mail (getgrent related) - there seems another bug ... Try the following patch: Can I do this without a full world rebuild? (I do not develop in FBSD actively). Otherwise I recommend (the test case was in OP) that someone with a separate test box tries it out and commit it etc. I had to develop a workaround for all other boxes anyway. Thank you very much, Jens Index: gen/getpwent.c === --- gen/getpwent.c (revision 210157) +++ gen/getpwent.c (working copy) @@ -794,6 +794,7 @@ files_setpwent(void *retval, void *mdata, va_list (void)st-db-close(st-db); st-db = NULL; } + st-keynum = 0; break; default: break; -- Dan Nelson dnel...@allantgroup.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: getpwent bug?
On 07/16/10 08:36, Ashish SHUKLA wrote: Jens Rehsack writes: 2010/7/16 Dan Nelsondnel...@allantgroup.com: [...] Try the following patch: Thanks, I'll try it when I'm on my FreeBSD box. Great \o/ [...] I had to develop a workaround for all other boxes anyway. As a workaround you can use setpwent(3). I cached the entires - I rate setpwent as to dangerous. You can take a look at http://cpansearch.perl.org/src/REHSACK/DBD-Sys-0.01_01/lib/DBD/Sys/Plugin/Unix/Users.pm Jens ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: getpwent bug?
On 07/16/10 09:12, Ashish SHUKLA wrote: Jens Rehsack writes: [...] I cached the entires - I rate setpwent as to dangerous. dangerous ? why ? Because it modifies something - and I might not know the source. getpwent(3) delivers entries from yp, too (or LDAP) etc. - and when I call setpwent(3) for such an entry, what happens then? Long explanation for: I do not know the consequences - and that's why I rate it dangerous as workaround. Jens ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: getpwent bug?
On 07/16/10 09:59, Ashish SHUKLA wrote: Jens Rehsack writes: On 07/16/10 09:12, Ashish SHUKLA wrote: Jens Rehsack writes: [...] I cached the entires - I rate setpwent as to dangerous. dangerous ? why ? Because it modifies something - and I might not know the source. getpwent(3) delivers entries from yp, too (or LDAP) etc. - and when I call setpwent(3) for such an entry, what happens then? Long explanation for: I do not know the consequences - and that's why I rate it dangerous as workaround. , an excerpt from getpwent(3) [...] ` I can't see anything which says about modifying NSS database. AFAIK none of the NSS routines allow you to write on database, you've to use the database specific method to modify the database. You're absolutely right - I never took a deeper look, because I always was only interested to read the (user|group) data and expected setpwent to modify such an entry. A quick look into Stevens Advanced Programming in the UNIX environment could had enlighten myself. Sorry that I didn't RTFM carefully. Best regards and many, many thanks, Jens ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: getpwent bug?
On 07/16/10 15:07, Dan Nelson wrote: In the last episode (Jul 16), Jens Rehsack said: 2010/7/16 Dan Nelsondnel...@allantgroup.com: In the last episode (Jul 16), Ashish SHUKLA said: Well, OP is also invoking 'endpwent()' after every 'getpwent()' invocation which according to GNU/Linux's glibc and NetBSD's libc (as OP mentioned) should rewind the position in passwd database to the beginning. Ah. I missed the endpwent calls. Was difficult for me to format the single liner ;) To me it definitely looks like a bug in FreeBSD's getpw*() family of functions. As tested using sysutils/lsof, in the following program in FreeBSD, the descriptor corresponding to '/etc/pwd.db' is closed on endpwent(3) but position in database is never rewinded as shown in the output. It looks like the *pwent functions keep an internal counter that endpwent doesn't reset. Could you please take a look to my other mail (getgrent related) - there seems another bug ... Do you have another one-liner that will reproduce it? A simple /usr/bin/getent group doesn't return dupes for me. Oddly enough, the *grent code doesn't use an internal counter, so the bug you found in endpwent doesn't exist in endgrent (afaik; the nsswitch code isn't that easy to read). Not really a one-liner: perl -MData::Dumper -e 'setgrent; my %dupchk; while( my ( $name, $grpass, $gid, $members ) = getgrent() ) { print $name is returned more than once (No $dupchk{$name} comes here)\n if( $dupchk{$name}++ ); print Dumper( [ $name, $grpass, $gid, $members ] ) };' setgrent() doesn't work here. Best regards, Jens ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: getpwent bug?
On 07/16/10 18:13, Dan Nelson wrote: In the last episode (Jul 16), Jens Rehsack said: On 07/16/10 15:07, Dan Nelson wrote: In the last episode (Jul 16), Jens Rehsack said: Could you please take a look to my other mail (getgrent related) - there seems another bug ... Do you have another one-liner that will reproduce it? A simple /usr/bin/getent group doesn't return dupes for me. Oddly enough, the *grent code doesn't use an internal counter, so the bug you found in endpwent doesn't exist in endgrent (afaik; the nsswitch code isn't that easy to read). Not really a one-liner: perl -MData::Dumper -e 'setgrent; my %dupchk; while( my ( $name, $grpass, $gid, $members ) = getgrent() ) { print $name is returned more than once (No $dupchk{$name} comes here)\n if( $dupchk{$name}++ ); print Dumper( [ $name, $grpass, $gid, $members ] ) };' setgrent() doesn't work here. I ran that and got dupes for group entries that exist both in /etc/groups and my LDAP source, but that's expected. The dups I got are not duplicate: $ less /var/yp/group # $FreeBSD: src/etc/group,v 1.19.2.3 2002/06/30 17:57:17 des Exp $ # wheel:*:0:root,trevor staff:*:20:root win32::1001:melanie,sarah os2::1002: dos::1003: unix::1004: music::1005:melanie,sarah gamers::1006: devel::1007:trevor wwwdevel::15000:wwwglobal,trevor All the rest (see attachment) are from /etc/group. Jens $VAR1 = [ 'wheel', '*', 0, 'root trevor mel' ]; $VAR1 = [ 'daemon', '*', 1, '' ]; $VAR1 = [ 'kmem', '*', 2, '' ]; $VAR1 = [ 'sys', '*', 3, '' ]; $VAR1 = [ 'tty', '*', 4, '' ]; $VAR1 = [ 'operator', '*', 5, 'root' ]; $VAR1 = [ 'mail', '*', 6, '' ]; $VAR1 = [ 'bin', '*', 7, '' ]; $VAR1 = [ 'news', '*', 8, '' ]; $VAR1 = [ 'man', '*', 9, '' ]; $VAR1 = [ 'games', '*', 13, '' ]; $VAR1 = [ 'ftp', '*', 14, '' ]; $VAR1 = [ 'staff', '*', 20, '' ]; $VAR1 = [ 'sshd', '*', 22, '' ]; $VAR1 = [ 'smmsp', '*', 25, '' ]; $VAR1 = [ 'mailnull', '*', 26, '' ]; $VAR1 = [ 'guest', '*', 31, '' ]; $VAR1 = [ 'bind', '*', 53, '' ]; $VAR1 = [ 'proxy', '*', 62, '' ]; $VAR1 = [ 'authpf', '*', 63, '' ]; $VAR1 = [ '_pflogd', '*', 64, '' ]; $VAR1 = [ '_dhcp', '*', 65, '' ]; $VAR1 = [ 'uucp', '*', 66, '' ]; $VAR1 = [ 'dialer', '*', 68, '' ]; $VAR1 = [ 'network', '*', 69, '' ]; $VAR1 = [ 'audit', '*', 77, '' ]; $VAR1 = [ 'www', '*', 80, '' ]; $VAR1 = [ 'oper', '*', 200, 'root trevor pgsql' ]; $VAR1 = [ 'nogroup', '*', 65533, '' ]; $VAR1 = [ 'nobody', '*', 65534, '' ]; $VAR1 = [ 'messagebus', '*', 556, '' ]; $VAR1 = [ 'polkit', '*', 559, '' ]; $VAR1 = [ 'haldaemon', '*', 560, '' ]; $VAR1 = [ 'avahi', '*', 558, '' ]; $VAR1 = [ 'gdm', '*', 92, '' ]; $VAR1 = [ 'pgsql', '*', 70, '' ]; smmsp is returned more than once (No 2 comes here) $VAR1 = [ 'smmsp', '*', 25, '' ]; guest is returned more than once (No 2 comes here) $VAR1 = [ 'guest', '*', 31, '' ]; authpf is returned more than once (No 2 comes here) $VAR1 = [ 'authpf', '*', 63, '' ]; $VAR1 = [ 'devel', '', 1007, 'trevor' ]; tty is returned more than once (No 2 comes here) $VAR1 = [ 'tty', '*', 4, '' ]; bin is returned
Duplicate entries when iterating using getgrent()
Hi all, I'm currently working on a Perl5 module named DBD::Sys and detected an issue on my FreeBSD test box. When iterating over the users/groups using getpwent/getgrent, I get duplicated entries for some groups. But this are not (only) duplicated entries which occur in both (/etc/group, yp) data sources (like wheel), that are groups like sshd, proxy etc., too. The groups which are affected are all groups with gid 100 and nobody (65534) and nogroup(65533). Any suggestions? Thanks, Jens ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
getpwent bug?
Hi all, I detected an issue with getpwent on my FreeBSD test box: perl -MData::Dumper -e 'my @e = getpwent(); print Dumper(\...@e); endpwent(); @e = getpwent(); print Dumper(\...@e); endpwent(); @e = getpwent(); print Dumper(\...@e); endpwent();' $VAR1 = [ 'root', '', 0, 0, 0, '', 'Charlie ', '/root', '/bin/csh', 0 ]; $VAR1 = [ 'toor', '*', 0, 0, 0, '', 'Bourne-again Superuser', '/root', '', 0 ]; $VAR1 = [ 'daemon', '*', 1, 1, 0, '', 'Owner of many system processes', '/root', '/usr/sbin/nologin', 0 ]; I'm using FreeBSD waldorf.muppets.liwing.de 7.3-PRERELEASE FreeBSD 7.3-PRERELEASE #0: Fri Mar 12 11:31:18 UTC 2010 r...@waldorf.muppets.liwing.de:/usr/obj/usr/src/sys/WALDORF amd64 The correct output should be (taken from a NetBSD system): perl -MData::Dumper -e 'my @e = getpwent(); print Dumper(\...@e); endpwent(); @e = getpwent(); print Dumper(\...@e); endpwent(); @e = getpwent(); print Dumper(\...@e); endpwent();' $VAR1 = [ 'root', '*', 0, 0, 0, '', 'Charlie ', '/root', '/bin/ksh', 0 ]; $VAR1 = [ 'root', '*', 0, 0, 0, '', 'Charlie ', '/root', '/bin/ksh', 0 ]; $VAR1 = [ 'root', '*', 0, 0, 0, '', 'Charlie ', '/root', '/bin/ksh', 0 ]; Taking a look to http://www.cpantesters.org/distro/D/DBD-Sys.html#DBD-Sys-0.01, this issue is not limited to FreeBSD 7.3 - it occures on FreeBSD 7.2 and 8.0, too. I tried several perl versions on my box (perl5.8 from ports, perl5.10.1 from pkgsrc and the release candidate of perl5.12.0) - with the same result. Maybe someone could take a look? If I can provide additional information, please let me know. Best regards, Jens ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
lo0 not in ioctl( SIOCGIFCONF )
Hi, I was searching why ports/net/p5-Net-Interface was not working as expected and found some reasons. Most of them I can answer by implementing some test code as attached, but now I'm wondering why em0 is shown twice and lo0 is not included. The same situation on another machine .. --- BEGIN ifconfig -a (waldorf) em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=19bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4 ether 00:15:17:10:84:6c inet 10.62.10.3 netmask 0xff00 broadcast 10.62.10.255 media: Ethernet autoselect (100baseTX full-duplex) status: active em1: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500 options=19bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4 ether 00:15:17:10:84:6d media: Ethernet autoselect status: no carrier lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff00 --- END ifconfig -a (waldorf) ./netif em0 em0 em1 --- BEGIN ifconfig -a (STINGRAY) ifconfig -a fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:a0:c9:ce:c8:64 inet 10.62.10.12 netmask 0xff00 broadcast 10.62.10.255 media: Ethernet autoselect (100baseTX full-duplex) status: active fxp1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:a0:c9:ce:db:83 media: Ethernet autoselect (100baseTX full-duplex) status: active pflog0: flags=141UP,RUNNING,PROMISC metric 0 mtu 33204 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff00 vlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 ether 00:a0:c9:ce:db:83 media: Ethernet autoselect (100baseTX full-duplex) status: active vlan: 7 parent interface: fxp1 tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST metric 0 mtu 1492 inet 87.149.231.190 -- 217.0.119.167 netmask 0x Opened by PID 27503 --- END ifconfig -a (STINGRAY) ./netif32 fxp0 fxp0 fxp1 Why aren't lo0, vlan0 and tun0 not included? What can I do to get these entries (portable way, please). Best regards, Jens ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
lo0 not in ioctl( SIOCGIFCONF )
Hi (resend because attachment forgotten ...), I was searching why ports/net/p5-Net-Interface was not working as expected and found some reasons. Most of them I can answer by implementing some test code as attached, but now I'm wondering why em0 is shown twice and lo0 is not included. The same situation on another machine .. --- BEGIN ifconfig -a (waldorf) em0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=19bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4 ether 00:15:17:10:84:6c inet 10.62.10.3 netmask 0xff00 broadcast 10.62.10.255 media: Ethernet autoselect (100baseTX full-duplex) status: active em1: flags=8802BROADCAST,SIMPLEX,MULTICAST metric 0 mtu 1500 options=19bRXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4 ether 00:15:17:10:84:6d media: Ethernet autoselect status: no carrier lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff00 --- END ifconfig -a (waldorf) ./netif em0 em0 em1 --- BEGIN ifconfig -a (STINGRAY) ifconfig -a fxp0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:a0:c9:ce:c8:64 inet 10.62.10.12 netmask 0xff00 broadcast 10.62.10.255 media: Ethernet autoselect (100baseTX full-duplex) status: active fxp1: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 options=8VLAN_MTU ether 00:a0:c9:ce:db:83 media: Ethernet autoselect (100baseTX full-duplex) status: active pflog0: flags=141UP,RUNNING,PROMISC metric 0 mtu 33204 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST metric 0 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff00 vlan0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST metric 0 mtu 1500 ether 00:a0:c9:ce:db:83 media: Ethernet autoselect (100baseTX full-duplex) status: active vlan: 7 parent interface: fxp1 tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST metric 0 mtu 1492 inet 87.149.231.190 -- 217.0.119.167 netmask 0x Opened by PID 27503 --- END ifconfig -a (STINGRAY) ./netif32 fxp0 fxp0 fxp1 Why aren't lo0, vlan0 and tun0 not included? What can I do to get these entries (portable way, please). Best regards, Jens ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Cross Platform Port Builds
Hi all, I'm going to update my machines and run into a serious problem (for me ^^): Some ports fail to cross build and I fail to setup a sane environment. At first, I created a chroot: /usr/room/$target. Into this chroot, I installed a host world using make installworld DESTDIR=/usr/room/$target/. After that, I created /usr/room/$target/usr/src and /usr/room/$target/usr/ports and mounted /usr/src and /usr/ports to there, respectively. Sure I'd mounted a devfs to /usr/room/$target/dev/. Then I's chrooted to /usr/room/$target/ and change the make.conf as needed for target machine and did make buildworld/buildkernel in /usr/src in the chroot. That worked really fine. But on the target machine not only a FreeBSD base distribution runs, there is a samba, xinetd, ftpproxy and squid also doing some work. So I needed to cross-build those ports, too. I couldn't find a standardized way to do this, so I first created 2 start scripts: waldorf# cat ~/bin/portcross #!/bin/sh env ARCH=i386 TARGET_CPUTPE= CPUTYPE=pentiumpro PATH=/usr/obj/i386/usr/src/tmp/usr/bin/:$PATH $@ waldorf# cat ~/bin/porthost #!/bin/sh env CPUTYPE=nocona $@ portcross I use to make/portupgrade a crossbuild (e.g. squid), porthost to build tools like autoconf. Now I run into problems (as the more expertized may imagine): autoconf needs gettext, samba needs gettext. But the amd64-native auto-tools binaries can't load the ia32 gettext library - and I don't know how to hold them both without running into conflicts. Furthermore perl seems to be resistant against crossbuild by specifying ARCH=i386 make build and above listed portcross. Any idea how to crossbuild perl? Thanks in advance, Jens ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: what are the pci debug commands for 4.9
fbsd_user wrote: I am running FBSD 4.9 and having problems with PCI cards. What are the commands I can use to see what FBSD can tell me about the installed PCI cards? pciconf(8) Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Kernel Module Support ?!!? and Kernel Limits ..
Vahric MUHTARYAN wrote: Hi Everyboy , I'm using FreeBSD 5.1 , I red documents and it said that - FreeBSD Support moduler environment . I want to know How can I make a moduler somethings like RAID Device or something else because GENERIC is only text file and I can delete or put # for kernel does not support that driver buil-in . in Linux I can choose which one is will be built-in which one is moduler When you build a kernel, usually all available modules are build, too. If you comment out sth., it's not linked static into the kernel, but the module will be available. See kldload(8) for details. Then I checked /boot/modules nothing there ... then I checked /boot/defaults/loader.conf I saw modules can be stored in /boot/kernel directory all of them are have ko ext. it will be funny but FreeBSD make moduler all things ?!!!?! I don't understand your question. Can you please ask it in other words? And Where can I find Kernel limits I know I can extend it with sysctl but limits ... ?! See sysctl.conf(5) and loader.conf(5) as well as sysctl(8). Vahric Best regards, Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Kernel Module Support ?!!? and Kernel Limits ..
Vahric MUHTARYAN wrote: [moved down to avoid top-posting] From: Jens Rehsack [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 9:43 PM To: Vahric MUHTARYAN Cc: [EMAIL PROTECTED] Subject: Re: Kernel Module Support ?!!? and Kernel Limits .. Vahric MUHTARYAN wrote: Hi Everyboy , I'm using FreeBSD 5.1 , I red documents and it said that - FreeBSD Support moduler environment . I want to know How can I make a moduler somethings like RAID Device or something else because GENERIC is only text file and I can delete or put # for kernel does not support that driver buil-in . in Linux I can choose which one is will be built-in which one is moduler When you build a kernel, usually all available modules are build, too. If you comment out sth., it's not linked static into the kernel, but the module will be available. See kldload(8) for details. Then I checked /boot/modules nothing there ... then I checked /boot/defaults/loader.conf I saw modules can be stored in /boot/kernel directory all of them are have ko ext. it will be funny but FreeBSD make moduler all things ?!!!?! I don't understand your question. Can you please ask it in other words? And Where can I find Kernel limits I know I can extend it with sysctl but limits ... ?! See sysctl.conf(5) and loader.conf(5) as well as sysctl(8). You mean FreeBSD make all device support moduler ?! And you said that -- not linked static but under the /boot/kernel everything is module ... ?! Not even all, but most. You can check /usr/src/sys/modules/ for details, or the according man-page. And I don't understand why freebsd makes a module all of them ?!?!?! I have to choose which one will be module which one won't be ... is it must ?! No, you can override the modules which are build by adding the MODULES_OVERRIDE makeoption into your kernel config. See NOTES for more. Secound I think I can't explain correct ... When I build kernel Where modules must be stored under /boot/modules or /boot/kernel ?! See kldload(8), it gives you exact the same answer I would. Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Bind 9.2.3rc4
Vladimir wrote: Hi, Jens. I now attach my config file with zones and log files. At 19:13 i have started named. At 19:15 dig 127.0.0.1 JR I'm busy for next 2 days. I'll prove it on Thursday if it's not to JR late for you, ok? JR Ok, I saved you cfg's into orig/, copied them into a new/ JR directory and simplified it most I could. The diff is attached. JR Would you please try whether it works so far? dig 127.0.0.1 dig 192.168.1.4 dig 192.168.1.1 Do not work :-( Please use script(1) to submit the entire output. And please run the named with -d flag, too and submit even it's output. Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Bind 9.2.3rc4
Vladimir wrote: Hi, Jens. I now attach my config file with zones and log files. At 19:13 i have started named. At 19:15 dig 127.0.0.1 JR I'm busy for next 2 days. I'll prove it on Thursday if it's not to JR late for you, ok? And where are you? Sorry, I've been very busy in last weeks. But you're right, I promised to help - I'm a bad guy :-( Ok, I saved you cfg's into orig/, copied them into a new/ directory and simplified it most I could. The diff is attached. Would you please try whether it works so far? Best regards and really sorry about the delay, Jens diff -u orig/localhost.db new/localhost.db --- orig/localhost.db Sun Nov 9 15:14:50 2003 +++ new/localhost.dbSun Nov 9 15:20:44 2003 @@ -1,6 +1,4 @@ - $TTL 1D - localhost. IN SOA ns.habanet.local. hostmaster.habanet.local. ( 2003091501 ;serial number 86400 ;refresh @@ -9,5 +7,5 @@ 3600;minimum ) -localhost. IN NS ns.habanet.local. + IN NS @ localhost. IN A 127.0.0.1 diff -u orig/localhost.rev new/localhost.rev --- orig/localhost.rev Sun Nov 9 15:14:50 2003 +++ new/localhost.rev Sun Nov 9 15:21:31 2003 @@ -14,5 +14,5 @@ 3888000 ; Expire 3600; Minimum ) - IN NS ns.habanet.local. -1 IN PTR localhost.habanet.local. + IN NS localhost. +1 IN PTR localhost. diff -u orig/named.conf new/named.conf --- orig/named.conf Sun Nov 9 15:14:50 2003 +++ new/named.conf Sun Nov 9 15:19:22 2003 @@ -1,51 +1,18 @@ options { directory /etc/namedb; pid-file /etc/namedb/named.pid; - allow-recursion { 192.168.1.0/24; 127.0.0.1;}; - allow-query { 192.168.1.0/24; 127.0.0.1;}; - version unknow; + // allow-recursion { 192.168.1.0/24; 127.0.0.1;}; + // allow-query { 192.168.1.0/24; 127.0.0.1;}; + // version unknow; forwarders { 80.80.111.254; 80.80.111.244; }; - query-source address * port 53; + // Sure that nslookup binds to port 53? + // query-source address * port 53; dump-file /var/tmp/named_dump.db; }; -controls {}; - -key DHCP_UPDATER { - algorithm *** :-); - secret :-); -}; - -logging { -channel update_debug { -file /var/log/named-update.log; -severity debug 5; -print-category yes; -print-severity yes; -print-time yes; -}; -channel security_info { -file /var/log/named-auth.log; -severity info; -print-category yes; -print-severity yes; -print-time yes; -}; -channel example_debug { -file /var/log/named-debug.log; -severity debug 5; -print-category yes; -print-severity yes; -print-time yes; -}; -category default { example_debug; }; -category update { update_debug; }; -category security { security_info; }; -}; - zone . { type hint; file named.root; @@ -67,7 +34,7 @@ type master; file habanet.local.db; // allow-query { 192.168.1.0/24; 127.0.0.1;}; -allow-update { key DHCP_UPDATER; }; +// allow-update { key DHCP_UPDATER; }; // allow-transfer {192.168.1.4;}; // notify no; }; @@ -76,7 +43,7 @@ type master; file 192.168.1.db; // allow-query { 192.168.1.0/24; 127.0.0.1;}; -allow-update { key DHCP_UPDATER; }; +// allow-update { key DHCP_UPDATER; }; // allow-transfer {192.168.1.4;}; }; ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PLS answer my question!
Valerian Galeru wrote: I installed x windows with sysinstall, then i installed blackbox (a window manager). Then if x server is not started and i execute blackbox command i get a error like this: x server not started something like this. If i start xserver and then run the blackbox command, i get another error (something like this one: another windows manager started, but i didnt install any window manager). And then, i can configure ~/.xinitrc but i cant find it in my home directory (in /home/val (val is my username) and in root the same). Ok. In man xstart it is said that this file can miss, and then i must go to /usr/.. after i configure that file and run startx nothing happens. One senseful action would be, copy /usr/X11R6/lib/X11/xinit/xinitrc into your home directory as .xinitrc and change the line 'twm' into your favourite window manager. What is the problem? You did neither read the documentation carefully enough nor ask a good question. How can i deinstall x windows and start it again? pkg_delete -rx XFree Or what can i DO??? Try man pkg_delete first :-) 10x for help No thanks. Therefore we're here :-) Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Updating ports perl from 5.8.0 to 5.8.1
Robin Schoonover wrote: On Sun, 2 Nov 2003 12:14:56 -0500, H.Wade Minter [EMAIL PROTECTED] wrote: On Nov 2, 2003, at 12:01 PM, Lowell Gilbert wrote: Yes. portupgrade -rf perl is *exactly* what the incantation I would have recommended. That didn't seem to work. I ran that on one system, and it only upgraded perl, it didn't attempt to do any of the p5-* packages. You could do: portupgrade -rf perl p5-\* I'd imagine -r would mean all p5-* packages are included (since they depend on perl), but obviously that wasn't the case. If the version of FreeBSD is 4.x, then that means there is a perl in the base system, and thus all the p5-* packages probably didn't have perl listed as one of their dependencies. Furthermore ${PERL_VER} contains 5.8.0 as long as you didn't update your /etc/make.conf (which could be easily done by adding 'lang/perl5*' = 'use.perl port', to the AFTERINSTALL hash in /usr/local/etc/pkgtools.conf. So, even if the dependend packages would be updated, the will fail to install, 'cause they will be stored in ${LOCALBASE}/lib/perl/site_perl/5.8.0/ Regards, Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Bind 9.2.3rc4
Vladimir wrote: Hi, Jens. Hi Vladimir, JR You have 2 lines with defined acl's in your config and allow JR only for requests matching the one of the list entries. JR If I were in your situation, I would remove them for testing JR to see whether it works than or not. I don't have any experience JR with access control within bind, so I cannot tell you if it's JR correct. I you ipf to block request not coming from 10.62.10.0/24 or JR 127.0.0.0/8 to this machine. I remove all acl's and changed all allow- but dig 127.0.0.1 do not work. I removed all allow- but it do not work. :-( And restarted you server? Ok, start the named within a script(1) with '-d'. Then it will print whatever it does. On another terminal, start a request, eg. 'dig'. If you cannot find sth. mysterious or unwanted in the output, attach the log. JR $ dig 127.0.0.1 JR ; DiG 8.3 127.0.0.1 ... JR ;; MSG SIZE sent: 27 rcvd: 102 Not working. JR Try to connect to internet and see if it works fine than. Not working. :-( JR If it does, either your /etc/resolve.conf is wrong search habanet.local domain habanet.local nameserver 192.168.1.4 Is it right? I think so. JR or your access restriction are. JR As you can see here, my server responds. You should check your logfiles JR to see why your server denied to answer the request. Maybe you have to JR increase the verbosity for it. How i can do it? JR named(8) tells you :-) You talking about -d option or about logging? At first about the '-d' option. Maybe something wrong in my configs? And why mc start so long? I know that because of named, bucaese when I stop it mc start quikly. JR First assumtion of me is your acl's. If they're not, we'll look JR deeper :-) Problem not in acl. Your the expert :-) No - as long as it doesn't work, the config should be reduced to minimum. Maybe the acl's aren't the problem, maybe they aren't the only one. Maybe they are the only one which is not wrong? Would you please be so kind and attach the config files next time you reply? Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Bind 9.2.3rc4
Vladimir wrote: , Jens. Vladimir, you've forgotten to cc questions@ - added. 25 2003 ., 19:24:56: JR Vladimir wrote: Hi, freebsd-questions. ;; res_nsend: Operation timed out JR Furthermore I don't use acl's, I'm using packet filtering. ? You have 2 lines with defined acl's in your config and allow only for requests matching the one of the list entries. If I were in your situation, I would remove them for testing to see whether it works than or not. I don't have any experience with access control within bind, so I cannot tell you if it's correct. I you ipf to block request not coming from 10.62.10.0/24 or 127.0.0.0/8 to this machine. JR $ dig 127.0.0.1 JR ; DiG 8.3 127.0.0.1 ... JR ;; MSG SIZE sent: 27 rcvd: 102 Not working. Try to connect to internet and see if it works fine than. If it does, either your /etc/resolve.conf is wrong or your access restriction are. JR As you can see here, my server responds. You should check your logfiles JR to see why your server denied to answer the request. Maybe you have to JR increase the verbosity for it. How i can do it? named(8) tells you :-) Maybe something wrong in my configs? And why mc start so long? I know that because of named, bucaese when I stop it mc start quikly. First assumtion of me is your acl's. If they're not, we'll look deeper :-) Regards, Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portupgrade
Ralph wrote: I'm running 5.1 and I'm having the same problem as the other person with portupgrade ... so how do I uninstall Ruby? and portupgrade? # pkg_delete -rx ruby # cd /usr/ports/sysutils/portupgrade # make install clean Regards, Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cleaning
Kevin D. Kinsey, DaleCo, S.P. wrote: Rogue Spider wrote: is there a freebsd equivalent to scandisk and diskdefrag so that i can clean the drive it says on start up that the dir are fragmented but after that i am unsertain. If there is fragmentation, it is cleaned up in the boot process (for 4.x) or done in the background after booting (on 5.x). Did it changed? My last information is, *bsd checks the disks at boot if they were not cleanly unmounted. Otherwise there will nothing happens in this direction. Note that fragmentation on a ufs volume is different from what you're used to on DOS/FAT filesystems. Yes, fragments are parts of a block of a filesystem, where several small files or tails of files are stored together to avoid waste of space by using an entire block for a small piece of data. As long as the box is running, you have no worries. If there's ever a significant problem, you'll be told to boot single-user and fix it yourself using 'fsck'. Or you didn't notice. Usually next boot will show you. If a hardware failure occur, you may never notice except you check your entire disk(s) and prove all sectors on the disk. Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: portupgrade problems, please help
Kent Stewart wrote: On Wednesday 22 October 2003 05:37 am, ivan georgiev wrote: What versions of ruby do you have installed? I can remember back a few versions, that uninstalling portupgrade and ruby and then making and installing portupgrade was faster than fighting the problems with ruby. Kent -su-2.05b# ruby -v ruby 1.6.8 (2003-03-26) [i386-freebsd5] I don't have any idea. It looks like a source/configuration/make error of some type. My version is the also the following ruby 1.6.8 (2003-03-26) [i386-freebsd5] Maybe complete remove of ruby and dependend packages followed by a reinstall of all of them may help. If you only have portupgrade installed, you can simply # pkg_delete -rx ruby # cd /usr/ports/sysutils/portupgrade # make install clean If you have other ruby-dependend ports, please write them down, eg. by $ cd $ ls -l /var/db/pkg/ installed-packages $ su - # [above procedure] $ ls -l /var/db/pkg/ after-reinstall-ruby-packages $ diff installed-packages after-reinstall-ruby-packages And then reinstall all packages missing (and you need). Regards, Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: openoffice-devel compile problems ...
ivan georgiev wrote: On Monday 13 October 2003 09:09 pm, Jens Rehsack wrote: ivan georgiev wrote: On Monday 13 October 2003 07:40 pm, Jens Rehsack wrote: [...] nsICookieService.idl ../../../dist/bin/xpidl -m header -w -I ../../../dist/idl -I. -o _xpidlgen/nsICookieService nsICookieService.idl gmake[4]: *** [../../../dist/include/necko] Illegal instruction (core dumped) I think this says all. Try another CPUTYPE and let me know the results. Jens I finally compiled openoffice !!! But I have no clue why it worked this time. So, I gave up on using portinstall and did make install clean in the openoffice-devel directory. It was compiling for one hour and then stopped complaining something about a.out (as shown bellow). Then I lunched make install clean again and it picked up from the place it left, worked another hour or so and stopped at a different place again complaining about a.out. After 6-7 steps like this I finally compiled it. I have no clue what kind of problem is this and will be very happy if someone can tell me. Bellow follows one example of the many stops: -- Making: ../../unxfbsd.pro/slb/bridgefac.uno.lib echo unxfbsd.pro/slo/bridgefactory.o unxfbsd.pro/slo/bridgeimpl.o | xargs -n1 ../../unxfbsd.pro/slb/bridgefac.uno.lib nm: a.out: No such file or directory dmake: Error code 1, while making '../../unxfbsd.pro/slb/ bridgefac.uno.lib' dmake: '../../unxfbsd.pro/slb/bridgefac.uno.lib' removed. ---* TG_SLO.MK *--- This says nothing - at least not to me. In conjunction with your above described error I assume a hardware problem. Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: openoffice-devel compile problems ...
ivan georgiev wrote: I tried three times to compile openoffice-devel (I use 5-1p10) and it always fails when compiling mozilla - on different places and always with a core dump. I saw some messages that people are happy with it (therefore it must be compileable). Do I have to do something special besaides the portinstall /usr/ports/editors/openoffice-devel which I use? Maybe you've specified a to high optimization level in /etc/make.conf. Check you CFLAGS. Mozilla build break mostly with anything higher than -O2. Regards, Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: openoffice-devel compile problems ...
ivan georgiev wrote: On Monday 13 October 2003 07:05 pm, Jens Rehsack wrote: ivan georgiev wrote: I tried three times to compile openoffice-devel (I use 5-1p10) and it always fails when compiling mozilla - on different places and always with a core dump. I saw some messages that people are happy with it (therefore it must be compileable). Do I have to do something special besaides the portinstall /usr/ports/editors/openoffice-devel which I use? Maybe you've specified a to high optimization level in /etc/make.conf. Check you CFLAGS. Mozilla build break mostly with anything higher than -O2. Regards, Jens Thanks Jens, I have: CFLAGS=-O1 -pipe CPUTYPE=p4 in make.conf . I do not think it is a hardware/memory problem, because make -j4 buildworld always finishes without a glitch. What else can I check/modify? Maybe it would be better to set CPUTYPE to p3, 'cause the cc of 5.1 is known to produce bad code for pentium4 in some situations. Furthermore it would really help if you send the message the build dumps with. Regards, Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: openoffice-devel compile problems ...
ivan georgiev wrote: On Monday 13 October 2003 07:40 pm, Jens Rehsack wrote: [...] nsICookieService.idl ../../../dist/bin/xpidl -m header -w -I ../../../dist/idl -I. -o _xpidlgen/nsICookieService nsICookieService.idl gmake[4]: *** [../../../dist/include/necko] Illegal instruction (core dumped) I think this says all. Try another CPUTYPE and let me know the results. Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: openoffice-devel compile problems ...
Robert Huff wrote: ivan georgiev writes: I tried three times to compile openoffice-devel (I use 5-1p10) and it always fails when compiling mozilla - on different places and always with a core dump. I saw some messages that people are happy with it (therefore it must be compileable). Do I have to do something special besaides the portinstall /usr/ports/editors/openoffice-devel which I use? Mune breaks also, but at a different place. Actually, in some ways it's the same place. OO wants Mozilla, which wants JDK14, JDK14 is broken; my last response on the compile was: === Building for jdk-1.4.1p3_3 # pkg_info | grep jdk-1.4 jdk-1.4.1p4 Java Development Kit 1.4.1 Alexey, Greg and all contributor did a great job with that patch level, 'cause it runs for me without any problems. Regards, Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
/usr/X11R6/lib/libscintilla.so: Undefined symbol g_thread_init
Hi, I'm trying to get my favourite editor (moleskine) run after a 'portupgrade -far'. But I'm getting: $ moleskine Traceback (most recent call last): File /usr/X11R6/bin/moleskine, line 39, in ? from Moleskine.MoleskineApp import * File /usr/X11R6/share/gnome/Moleskine/Moleskine/MoleskineApp.py, line 32, in ? from Document import Document File /usr/X11R6/share/gnome/Moleskine/Moleskine/Document.py, line 31, in ? import gtkscintilla File /usr/local/lib/python2.3/site-packages/gtkscintilla.py, line 2, in ? import _gtkscintilla ImportError: /usr/X11R6/lib/libscintilla.so: Undefined symbol g_thread_init As you can see, moleskine is a python script. It's based on py-gtk-0.6, so I build it against glib12/gtk12. When I'm calling SciTE (which is an editor using libscintilla directly) the error doesn't appear. So I'm checked /usr/X11R6/lib/libscintilla.so using ldd, and it contains information, that /usr/local/lib/libglib12.so.3 is required (which contains g_thread_init call). My system is FreeBSD 5.1-CURRENT #0: Fri Oct 3 22:18:43 GMT 2003. A reboot helped nothing, neither ldconfig -R did. Any hints what I can do? Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: var partition is too small
Redmond Militante wrote: hi all the var partition on my apache box may be too small. this is a problem because - i originally had newsyslog set at /var/log/httpd-access.log 644 7 100 24B /var/run/httpd.pid 30 which sets httpd-access.log to be rotated in binary format everytime it reaches 100 mb or once every hour for 24 hours. which basically means we only archive less than a day's worth of httpd-access.log's on this machine... the /var partition on this machine is 252 mb. Looks like sysinstalls defaults. Maybe this should be fixed some fine day :-) yesterday i was told asked to start archiving httpd-access.logs for analysis over longer periods of time - that i should be keeping a year's worth of logs, if possible. i remember the original reason i set up newsyslog.conf to rotate httpd-access.logs on this machine so frequently is because the webserver is really busy, and this file tends to grow pretty rapidly, and i didn't want to have to log in, stop apache, and archive the logs by hand every day... yesterday i looked into expanding the size of my /var partition by symlinking. -drop to single user mode -stop syslogd -mv /var to /usr/var -umount /var -delete /var directory -create symlink from /usr/var to /var That's really bad, because this means that there will be permanent write accesses to you /usr label. A better way could be a cron job which moves the old http-logs once a day into a place in /usr, eg. /usr/save-logs. it seems easy, and i did it successfully once, but i hosed a (non)production box yesterday practicing the above procedure. i have a number of questions: -if i copy the contents of /var to /usr/var, then delete the var directory, do i need to modify my fstab? If you've done it as described, that would be better. But I think you should re-think about the procedure. my fstab right now looks like /dev/aacd0s1g /usrufs rw 2 2 /dev/aacd0s1e /varufs rw 2 2 -do i need to modify this so that /var now points to a directory inside /usr? and how? -i'm thinking that this may be too risky a procedure to try on a production box (i guess i'm spooked from ruining the practice box...) - anyone think i should just archive these logs by hand to someplace in my home directory (/usr is very large on this box - 65 gb - and hardly used)? my goal is basically to keep an archive of httpd-access.logs for as long as possible to produce a comprehensive webalizer report... thanks again redmond Best, Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: freebsd logo
Chris Schuhart wrote: Hi, where can I get the FreeBSD Logo in vector format for printing documents as eps or so ... best regards thx Schuhart $ find /usr/share/ -name *.eps ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: May I Pick Your Brain Please?
Janet L. Bergman, Ph.D. wrote: I have a WDC WD400BB-75AUA1 40 Gig hard drive - original equipment supplied by Dell in my workstation 220. Uh, great. Can I replace it with a Western Digital Caviar WD1200JB Special Edition , 120 GB Hard Drive, which has DMA/ATA-100 (Ultra) interface? It depends on your expectation. Thanks for your expert advice! Your welcome. Walt Bergman Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: apache startup problem
H. Bartel wrote: Hi everybody, after succesfully de- and reinstalling apache13, I get the following error after running /usr/local/sbin/apachectl start Bus error (core dumped) /usr/local/sbin/apachectl start: httpd could not be started /kernel: pid 141 (httpd), uid 0: exited on signal 10 (core dumped) After rebooting the system this error message appeared: login: date /kernel: pid 141 (httpd), uid 0: exited on signal 10 (core dumped) Any ideas? Thanks, Ho. If I were you I'd try gdb apache apache.core to identify the module which dumps. If it's a standard one, you shouldn't probably rebuild it using lower optimization level. Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: apache startup problem
H. Bartel wrote: On 09/19/2003 10:17 AM [EMAIL PROTECTED] (Jens Rehsack) wrote: If I were you I'd try gdb apache apache.core to identify the module which dumps. If it's a standard one, you shouldn't probably rebuild it using lower optimization level. I read the man pages for gdb but 'gdb apache apache.core' doesn't do anything besides no such file... Do have to go to a specific dir to execute gdb? I can't find a file called apache.core as well. Only httpd.core. I have never used it before and am failry new to the unix world. You should either search the file or start the apache from within the gdb. Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: configure args in ports
Antoine Jacoutot wrote: Hi ! How can I pass configure arguments to a port without editing the Makefile ? Is there something like: make -DOPTION1 -DOPTION2 CONFIGURE_ARGS=--with_option3 install clean ? see env(1) Regards, Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: configure args in ports
Antoine Jacoutot wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Saturday 13 September 2003 12:01, Jens Rehsack wrote: How can I pass configure arguments to a port without editing the Makefile ? Is there something like: make -DOPTION1 -DOPTION2 CONFIGURE_ARGS=--with_option3 install clean ? see env(1) OK, nice. So it means: $ env CONFIGURE_ARGS+=--with-option3 make -DOPTION2 install clean would work, right ? Nope, $ env CONFIGURE_ARGS=--with-option3 OPTION2=yes make install clean would work fine as well as $ env CONFIGURE_ARGS=--with-option3 make -DOPTION2 install clean would as well as $ make -DCONFIGURE_ARGS=--with-option3 -DOPTION2 install clean should, too. I prefer the first :-) Best, Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Software patents
Todd Stephens wrote: On Friday 12 September 2003 06:05 am, Ruben de Groot wrote: I think he was talking about putting a protest on the freebsd website, like some linux distributions have done (eg http://www.debian.org) This would be free, wouldn't it ? A large part of the reason of why I switched to FreeBSD from Linux was the absence of the patent/license fanaticism you find in the Linux community. If this were a Linux mailing list, 3/4 of the messages would be about the GPL and how MS is evil, while here we have nearly all messages being oriented towards learning how to use and improve FreeBSD. Hm, I think our current problem with the software politic in europe is a little bit more heavy than ms evil :-) I don't know about america, but our politicans didn't have neither any knowledge about software technology nor any idea about the consequences of allowing patents for thinggies like amazon's One Click Buy patent. But - by the way - any interested german who had read www.heise.de this week should had noticed that enough protests reached german politicans to open their eyes to the real virtual world. I can't believe other european countries missed that. So now is definitively to late for any protest on freebsd.org - 12 month earlier could had been a good idea (to wake up sleeping guys). But at the moment all of them are informed and inform their represants, too. I think the *BSD communities are comfortable enough in their positions that they don't need to direct so much attention to themselves in that way. But if any algorithm used in bsd will be patented in europe and the patent became valid, they may have a problem either. Best, Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: orphaned port?
Michelle wrote: You should run a 'make clean' everywhere you left it. You can find it using sth. like 'find /usr/ports -name work'. This should solve your problems. I ran 'make clean' in all the directories that came up after running 'find /usr/ports -name work'. Then I tried running make again in the mysql-server directory. Here is the output: === Extracting for mysql-server-3.23.57 Checksum OK for mysql-3.23.57.tar.gz. === Patching for mysql-server-3.23.57 === Applying FreeBSD patches for mysql-server-3.23.57 === mysql-server-3.23.57 depends on file: /usr/local/libexec/libtool13/libtool - not found ===Verifying install for /usr/local/libexec/libtool13/libtool in /usr/ports/devel/libtool13 === Extracting for libtool-1.3.5_1 Checksum OK for libtool-1.3.5.tar.gz. === Patching for libtool-1.3.5_1 === libtool-1.3.5_1 depends on file: /usr/local/bin/sed_inplace - found === Applying FreeBSD patches for libtool-1.3.5_1 === Configuring for libtool-1.3.5_1 creating cache ./config.cache checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel checking whether build environment is sane... yes checking whether make sets ${MAKE}... yes checking for working aclocal... missing checking for working autoconf... missing checking for working automake... missing checking for working autoheader... missing checking for working makeinfo... found checking for gcc... cc checking whether the C compiler (cc -O -pipe ) works... yes checking whether the C compiler (cc -O -pipe ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether cc accepts -g... yes checking for ranlib... ranlib checking host system type... i386-unknown-freebsd4.6.2 checking build system type... i386-portbld-freebsd4.6.2 checking for ld used by GCC... /usr/libexec/elf/ld checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking for mawk... no checking for gawk... no checking for nawk... no checking for awk... awk updating cache ./config.cache creating ./config.status creating Makefile creating doc/Makefile creating tests/Makefile configuring in libltdl running /bin/sh ./configure --disable-ltdl-install --program-suffix=13 --prefix=/usr/local --build=i386-portbld-freebsd4.6.2 --cache-file=.././config.cache --srcdir=. loading cache .././config.cache checking for a BSD compatible install... /usr/bin/install -c -o root -g wheel checking whether build environment is sane... yes checking whether make sets ${MAKE}... (cached) yes checking for working aclocal... missing checking for working autoconf... missing checking for working automake... missing checking for working autoheader... missing checking for working makeinfo... found checking whether to enable maintainer-specific portions of Makefiles... no checking for gcc... (cached) cc checking whether the C compiler (cc -O -pipe ) works... yes checking whether the C compiler (cc -O -pipe ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether cc accepts -g... (cached) yes checking for working const... yes checking for inline... inline checking host system type... i386-unknown-freebsd4.6.2 checking build system type... i386-portbld-freebsd4.6.2 checking for ranlib... (cached) ranlib checking for ld used by GCC... (cached) /usr/libexec/elf/ld checking if the linker (/usr/libexec/elf/ld) is GNU ld... (cached) yes checking for BSD-compatible nm... (cached) /usr/bin/nm -B checking whether ln -s works... (cached) yes updating cache .././config.cache loading cache .././config.cache within ltconfig checking for object suffix... o checking for executable suffix... no checking for cc option to produce PIC... -fPIC checking if cc PIC flag -fPIC works... yes checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.lo... yes checking if cc supports -fno-rtti -fno-exceptions ... yes checking if cc static flag -static works... -static checking if the linker (/usr/libexec/elf/ld) is GNU ld... yes checking whether the linker (/usr/libexec/elf/ld) supports shared libraries... yes checking command to parse /usr/bin/nm -B output... ok checking how to hardcode library paths into programs... immediate checking for /usr/libexec/elf/ld option to reload object files... -r checking dynamic linker characteristics... freebsd4.6.2 ld.so checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for objdir... .libs creating libtool updating cache .././config.cache loading cache .././config.cache checking which extension is used for shared libraries... .so checking which variable specifies run-time library path... LD_LIBRARY_PATH checking for objdir... .libs checking how to run the C preprocessor... cc -E checking for ANSI C header files... yes checking for malloc.h... no checking for memory.h... yes
Re: orphaned port?
Michelle wrote: I am trying to upgrade mysql-server and when I ran the make command, I received the following error: === Installing for libtool-1.3.5_1 === Generating temporary packing list === Checking if devel/libtool13 already installed *** Error code 1 Stop in /usr/ports/devel/libtool13. *** Error code 1 Stop in /usr/ports/databases/mysql323-server. Than I ran pkg_version -v and saw the the libtool13 port is orphaned. What does this mean and how can I fix it? Assuming you have your ports in /usr/ports # cd /usr/ports (Don't whether this is required or not) # pkg_info | grep libtool # libtool=#place the found libtool-1.3 port here# # portupgrade -o devel/libtool13 ${libtool} And now try portupgrade mysql again! Good luck Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: orphaned port?
Michelle wrote: [...] Jens, Thank you for the help. I did not have portupgrade installed and when I tried to run make in /usr/ports/sysutils/portupgrade I received the following error: === Installing for ruby-1.6.8.2003.04.19 === Generating temporary packing list === Checking if lang/ruby16 already installed *** Error code 1 Stop in /usr/ports/lang/ruby16. *** Error code 1 Is there another way I can fix my problem? Hm, I don't know where this error comes from. Do you have write access either to the ports tree or do you have DISTDIR and WRKDIRPREFIX set properly? If not, see /usr/ports/Mk/bsd.ports.mk for more details. Can you e-mail the output of 'pkg_info' and 'ls -l /var/db/pkg/'? Thanks, Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: orphaned port?
Michelle wrote: On Saturday, August 23, 2003, at 02:21 PM, Jens Rehsack wrote: Michelle wrote: [...] Jens, Thank you for the help. I did not have portupgrade installed and when I tried to run make in /usr/ports/sysutils/portupgrade I received the following error: === Installing for ruby-1.6.8.2003.04.19 === Generating temporary packing list === Checking if lang/ruby16 already installed *** Error code 1 Stop in /usr/ports/lang/ruby16. *** Error code 1 Is there another way I can fix my problem? Hm, I don't know where this error comes from. Do you have write access either to the ports tree or do you have DISTDIR and WRKDIRPREFIX set properly? If not, see /usr/ports/Mk/bsd.ports.mk for more details. Can you e-mail the output of 'pkg_info' and 'ls -l /var/db/pkg/'? I use sudo make and have not run into this problem before when installing ports. I don't know what could have changed to cause this problem. Here is the output from pkg_info: sudo make what? Can you send output of 'df -ki'? Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: orphaned port?
Michelle wrote: On Saturday, August 23, 2003, at 02:44 PM, Jens Rehsack wrote: Michelle wrote: On Saturday, August 23, 2003, at 02:21 PM, Jens Rehsack wrote: Michelle wrote: [...] Jens, Thank you for the help. I did not have portupgrade installed and when I tried to run make in /usr/ports/sysutils/portupgrade I received the following error: === Installing for ruby-1.6.8.2003.04.19 === Generating temporary packing list === Checking if lang/ruby16 already installed *** Error code 1 Stop in /usr/ports/lang/ruby16. *** Error code 1 Is there another way I can fix my problem? Hm, I don't know where this error comes from. Do you have write access either to the ports tree or do you have DISTDIR and WRKDIRPREFIX set properly? If not, see /usr/ports/Mk/bsd.ports.mk for more details. Can you e-mail the output of 'pkg_info' and 'ls -l /var/db/pkg/'? I use sudo make and have not run into this problem before when installing ports. I don't know what could have changed to cause this problem. Here is the output from pkg_info: sudo make what? Can you send output of 'df -ki'? Jens To install a port I cd to the directory then run sudo make and sudo make install. # cd /usr/ports/sysutils/portupgrade # sudo make # sudo make install But as I've stated I'm getting errors when running the make command. Here is the output of df -ki Hm, enough room. Can you e-mail the full output of the make command using script(1)? Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: orphaned port?
Michelle wrote: On Saturday, August 23, 2003, at 03:02 PM, Jens Rehsack wrote: Michelle wrote: On Saturday, August 23, 2003, at 02:44 PM, Jens Rehsack wrote: Michelle wrote: On Saturday, August 23, 2003, at 02:21 PM, Jens Rehsack wrote: Michelle wrote: [...] Jens, Thank you for the help. I did not have portupgrade installed and when I tried to run make in /usr/ports/sysutils/portupgrade I received the following error: === Installing for ruby-1.6.8.2003.04.19 === Generating temporary packing list === Checking if lang/ruby16 already installed *** Error code 1 Stop in /usr/ports/lang/ruby16. *** Error code 1 Is there another way I can fix my problem? Hm, I don't know where this error comes from. Do you have write access either to the ports tree or do you have DISTDIR and WRKDIRPREFIX set properly? If not, see /usr/ports/Mk/bsd.ports.mk for more details. Can you e-mail the output of 'pkg_info' and 'ls -l /var/db/pkg/'? I use sudo make and have not run into this problem before when installing ports. I don't know what could have changed to cause this problem. Here is the output from pkg_info: sudo make what? Can you send output of 'df -ki'? Jens To install a port I cd to the directory then run sudo make and sudo make install. # cd /usr/ports/sysutils/portupgrade # sudo make # sudo make install But as I've stated I'm getting errors when running the make command. Here is the output of df -ki Hm, enough room. Can you e-mail the full output of the make command using script(1)? Jens I tried running make again in /usr/ports/databases/mysql323-server. Here is the ouput: === mysql-server-3.23.57 depends on file: /usr/local/libexec/libtool13/libtool - not found ===Verifying install for /usr/local/libexec/libtool13/libtool in /usr/ports/devel/libtool13 === Installing for libtool-1.3.5_1 === Generating temporary packing list === Checking if devel/libtool13 already installed *** Error code 1 Stop in /usr/ports/devel/libtool13. *** Error code 1 Stop in /usr/ports/databases/mysql323-server. You should run a 'make clean' everywhere you left it. You can find it using sth. like 'find /usr/ports -name work'. This should solve your problems. Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: buggy optimization levels...
On 01.08.2003 05:00, Erik Trulsson wrote: On Thu, Jul 31, 2003 at 10:30:57PM -0400, Chuck Swiger wrote: [...] problem of compiling the system with cc -O2 resulting in a buggy kernel. If you determine that compiling with cc -O -fgcse results in failures, [...] There is an open bug report in gcc belonging to gcse: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11741 You may create another report with your own research results or notify the gcc people to fix your problem when fixing optimization/11741, too. Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: PIII SMP
On 29.07.2003 10:05, [EMAIL PROTECTED] wrote: dear list, buying two PIII for a dual system ... what do i have to pay attention to (besides the requirements of the M/B)? aka ... are all PIII SMP capable? thanks Maybe you want to take a look into http://www.bnv-bamberg.de/home/ba3294/smp/index.htm first, too? Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: question about ports
Antoine Jacoutot wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello :) I have 2 questions concerning the ports. 1. I need to apply a patch to a port so my modem could work with mgetty+sendfax; how do I do that ? Do I have to edit the Makefile or pass options to the make command ? That's quite easy. See FreeBSD Porter's Handbook at http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/ Than you should check where your patch is to be applied to, either to the port (eg. for upgrading or fix fbsd specific behaviour) or to the original sources? If you can answer the first question with true, you should patch the according files, you know which. If the second answer is true, you should send your patches to the author/mailing list of the original sources. Just to give you an example. a) If I want to have the FreeBSD php4-port is able to work with thttpd, I have to update the lang/php4/Makefile and lang/php4/bsd.php.mk to recognize a new flag for the port and choosing it's dependencies right. This patch I will send to the FreeBSD Gnats database and to the ports maintainer using send-pr(1). b) If I want php - just as example - be able to use libpopt (option parsing library, better than getopt()), I have to patch php and please the php developers to include the patch into the next release. Is it clear so far? If not, feel free to ask again :-) 2. Can I have a port directory, like /usr/ports/personnal (or in another place), of my own that I can add to the regular ports tree ? Yes, on you own machine you can have each directory you want. If you want to change something in the ports structure, you should ask the PortManagers at [EMAIL PROTECTED] and substantiate your requirement. Thanks in advance for your answer. Hope it helps a little bit. Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: question about ports
Antoine Jacoutot wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 15 July 2003 12:25, you wrote: [...] In fact I wanted to try adding an option in mgetty, like: if WITH_USR=yes, then patch the mgetty source This usually went this way, even if I don't want to prevent you from asking the ports maintainer to accept/commit your patch. Usually you create the patch against mgetty, send this patch to the mgetty author(s). If they accept your patch and it's included into the next release, the port may be enhanced with a flag 'WITH_USR' which enables eg. the CONFIGURATION_ARGS '--with-usr'. You can place the patch for mgetty into the files/ directory in the port location, the name of the patchfile must start with patch- to be applied automatically. You should create the patch in that way you will submit it to the mgetty author(s), so you can prove it's full working and don't blame yourself with sending broken code. I'll have alook at the porters handbook. It's a good start :-) Yes, on you own machine you can have each directory you want. If you want to change something in the ports structure, you should ask the PortManagers at [EMAIL PROTECTED] and substantiate your requirement. OK, but if I cvsup, won't my directory be erased ? Nope, only directories and files which were in the cvs tree before and became deleted are deleted at your machine, too, when you've specified '*default delete' in your cvsupfile. Hope it helps a little bit. I does, thanks a lot :) No thanks, therefore is the questions@ list. AFAIK php has such a one, too, hm? Best, Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: question about ports
Antoine Jacoutot wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 15 July 2003 12:51, Jens Rehsack wrote: This usually went this way, even if I don't want to prevent you from asking the ports maintainer to accept/commit your patch. Usually you create the patch against mgetty, send this patch to the mgetty author(s). If they accept your patch and it's included into the next The mgetty authors are the one who told me to try this patch. I don't think they'll include it in their next release since it is a specific modem issue. I think they do when the patch is approved. This patch is mgetty specific, not FreeBSD specific. So do as I described and send them your results. Nope, only directories and files which were in the cvs tree before and became deleted are deleted at your machine, too, when you've specified '*default delete' in your cvsupfile. Hey, this is great :) That's FreeBSD :-) Best, Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: GCC 3.3.1 + Pentium 4
Mo wrote: If anyone knows how to make it use Pentium 4 optimizations, please let me know. By the way, if this is a mailing list, I am not subscribed, so please CC all replies to my e-mail address. Hi Mo, at first I consider you ask those questions in the current@ list, because it's not a generic bsd question but a current optimization one. Next I recommend to read the archives of current@, because someone else asked the same and got an answer. And last but not least I think if you care about such themes, you should subscribe as well to current@ and maybe question@, too. Best, Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Apache Seg Faulting
Massimiliano Stucchi wrote: On Sat, 12 Jul 2003 17:32:01 +0200 Ian Barnes [EMAIL PROTECTED] wrote: P.S. Im running latest php, apache version 1.3.26. Its running on a BSD 4.8Stable system I would suggest upgrading apache to 1.3.27_4 and see what happens. Remember to use portupgrade. If that doesn't help, try $ gdb /usr/local/bin/httpd /path/to/your/coredump/httpd.core and type bt. Send the result. If bt results more than 100 lines, use bt -20, too. Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: ipfilter guide (?)
mempheria wrote: HI folks! Anyone out there who has written a step-by-step guide to install IPfilter? :-) i have downloaded IPF´s official manual, but its huge, so before i start to read it, i woundering if anyone got an filtered version ;-) yes, today iam kind of lazy :-) Yes, there is some documentation. It's not so much and you must do much research on your own. And it's really hard to find it. Maybe you start your research at http://www.ipfilter.org/? Best, Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Compiling C code
On 6/16/2003 10:18 PM, Bill Moran wrote: Ronnie Clark wrote: Hello all, I am trying to compile some C code and I get the following errors: windows.h: No such file or directory Is there a library that I can install on my FreeBSD 4.8 STABLE box to fix these silly errors??? Yes, Microsoft Windows. Programs written to run in the Windows GUI include this header file to get the functions needed to create buttons and windows and input boxes and all the other parts of the Windows GUI. This header does not exist in FreeBSD (or any Unix that I know of). You either have to obtain a compatibility library (I don't know of any) or rewrite the GUI part to use X-windows or some other interface. It doesn't have to be a GUI application, just the requirement of sockets requires to include windows.h. If there're no more messages that missing include file, simply remove the include. Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How can I recover the password for root in FreeBSD 4.4
On 6/4/2003 10:54 AM, Simon-Pierre Butsana wrote: Hi, Hi Simon, I changed yesterday the password for root on my server because I found it too simple. That is a good idea - even with the bad the side effects you expirience now :-) Unfortunately I didn't write it and now I just can't remind it. I still have access to an account belonging to the wheel group. Is there any means to recover or to set a new password for root? I don't think this will help. Best would be to set the machine in single user mode, either by booting using 'boot -s' or using 'shutdown now'. Please don't do this if you don't have physical access to console If you're in single user mode, choose a shell you want to use. /bin/sh is a good choice. After that, simply reset your password using passwd(1). I would appreciate any help on this. Good luck, Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Tape backup using a OnStream SC-30
On 6/4/2003 12:33 PM, Mark Pearce wrote: Hi Hi Mark, I am having trouble trying to backup data using an OnStream ADR drive. I have read the dump, sa, sr, tar man pages and have googled as well, but am still having no joy. I have the following results: dmesg: sa0 at ahc0 bus 0 target 4 lun 0 sa0: OnStream SC-30 1.05 Removable Sequential Access SCSI-2 device sa0: 10.000MB/s transfers (10.000MHz, offset 7) camcontrol devlist -v: scbus0 on ahc0 bus 0: OnStream SC-30 1.05 at scbus0 target 4 lun 0 (pass0,sa0) at scbus0 target -1 lun -1 () scbus-1 on xpt0 bus 0: at scbus-1 target -1 lun -1 (xpt0) [09:38 AM [EMAIL PROTECTED] dev]# /sbin/dump -0uan -f - /data1 | gzip -2 |dd of=/dev/sa0 DUMP: Date of this level 0 dump: Wed Jun 4 09:44:07 2003 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping /dev/ad0s1h (/data1) to standard output DUMP: mapping (Pass I) [regular files] dd: /dev/sa0: Invalid argument [09:56 AM [EMAIL PROTECTED] dev]# tar c /data1 tar: /dev/sa0: Cannot open: Invalid argument tar: Error is not recoverable: exiting now I am at my wits end, I seriously need to get this backup working. I have found some reports that the SCSI adaptor, using the aha78xx driver coupled with this OnStream drive might be incompatable. Either that or I am doing something wrong, please help. No, you don't do sth. wrong. Onstream did but didn't tell it it's customers before the buy. The produced streamers with an SCSI interface but didn't respect the SCSI streaming access commands, but implement an own command set. You can do some things to get it work: 1) Port the linux driver to FreeBSD 2) Use vmware to run either linux or windows which may grant access 3) Use another streamer 4) Use another backup medium. just like cdr Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Tape backup using a OnStream SC-30
On 6/4/2003 12:47 PM, Mark Pearce wrote: Hi Jens Hi Mark, Thanks for your reply. Do you have any idea what tape drives are best for the FreeBSD platform as I have no intention to changing my clients server to Linux. I know there are almost none listed on the hardware lists. At first: Please ever send at least a carbon copy to the list you've asked first. This have 2 reasons: 1) The list is archived and any later similar question could easily be answered by searching the archives. 2) The replyer may not be able to help you further than (s)he already did. Second: Sorry, I don't know. Nearly every big manufacturer should do. The new onstream streamer, for example, do. But I'm disappointed by onstream, so if I were you, I would use another manufacturer, eg. IBM, HP, ... Searching the archives or ask google may help. Thanks Mark Regards, Jens ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: No xvideo support for ATI Rage Pro?
Kris Kennaway wrote: On Thu, Mar 20, 2003 at 06:35:22AM -0500, Paul Murphy wrote: On Thu, 20 Mar 2003 09:34:39 +0100 Heinrich Rebehn [EMAIL PROTECTED] wrote: Hi, Is there any driver that provides xvideo support for ATI Rage Pro / 128? It works for me: [earth] /home/paul: dmesg | grep ATI pci1: ATI model 5046 graphics accelerator at 0.0 irq 11 drm0: ATI Rage 128 Pro PF (AGP) port 0xd800-0xd8ff mem 0xdb00-0xdb003fff,0xdc00-0xdfff irq 11 at device 0.0 on pci1 Isn't the Rago Pro a different card than the Rage 128 Pro? Sometimes, sometimes not ... They are so cheap, sometimes I get the feeling they put on it whatever they get into their fingers :( If you want to become completely confused, read the page how to get which driver you need (a kind of compatibility page). Kris Jens To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: No xvideo support for ATI Rage Pro?
Michael Nottebrock wrote: On Thursday 20 March 2003 13:47, Jens Rehsack wrote: Kris Kennaway wrote: Isn't the Rago Pro a different card than the Rage 128 Pro? Sometimes, sometimes not ... Definitely different, and not just sometimes. :) The RagePro chipset is much older than the Rage 128 Pro. Sorry, the site at ati.com is gone where the several chips are described, but in past sometimes I had to identify the cards by chip and a number on it. There are some Rage PRO and Rage 128 Pro which were the same and there were differences between several Rage PRO's and Rage 128 PRO's and Rage 3D PRO's. It was very difficult to see, because it depends on the time they were built. The first Rage PRO and the first Rage 128 PRO are different, yes, but some of them had the same features ... I don't want to tell they are indentical, they aren't. Neither all Rage PRO based cards are. Sorry that I cannot point you the page ... Jens To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: ssh'ing into jail(8)
Cary Mathews wrote: If this is not the right fourm to ask this question, please redirect me to the correct place, or documentation which addresses this issue. Maybe [EMAIL PROTECTED] may a better place, maybe not. By the way, now you're here ... nslookup and dig tools. So I am confident that name resolution is working. Ok. Within the jailed hosts, I have turned off the portmap, syslogd, sendmail, and inetd daemons and am running only cron and sshd daemons upon start up. But when I attempt to ssh into one of the jailed hosts, the connection times out and reports: Connection closed by 192.168.1.100. Maybe starting sshd in debug mode could be very helpful. A partial sockstat reading while the hosts are attempting to connect shows: USER COMMANDPID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS sshd sshd 596134 tcp4 192.168.1.100:22 192.168.1.100:2604 sshd sshd 596137 udp4 192.168.1.100:2625192.168.1.1:53 root sshd 596124 tcp4 192.168.1.100:22 192.168.1.100:2604 cary ssh 596113 tcp4 192.168.1.100:2604192.168.1.100:22 A quick description of the addresses: 150.252.106.57 - external IP address of host computer, also running dnscache for external lookups 192.168.1.1 - IP address of internal dnscache for 192.168.x.x addresses 192.168.1.100 - IP address of jail(8)'d host 192.168.53.1 - IP address of jail(8)'d tinydns server host ssh used with which command? And - using 3 -v's may help get more info, too. ssh debugging output shows: [snip initial key-exchange] debug1: waiting for SSH2_MSG_NEWKEYS debug1: newkeys: mode 0 debug1: SSH2_MSG_NEWKEYS received debug1: done: ssh_kex2. debug1: send SSH2_MSG_SERVICE_REQUEST debug1: service_accept: ssh-userauth debug1: got SSH2_MSG_SERVICE_ACCEPT {and ssh hangs here...} It doesn't hang. If it would hang, it wouldn't tell you that the remote host has closed the connection. Enabling syslog in the jail (you didn't have to enable networking syslog!) and starting sshd in debug mode will give you some important information. The messages, security, and auth logs under /var/log in the jail'd host are completly empty. Under the host machine logs , there is nothing as well. This is, because you have disabled syslogd. You should thinking about enabling it but protect it against external access using ipfiler or ipfirewall. I'm at a loss of what else to trouble shoot. I'm not subscribed to the list so if you could Cc: me, I would appreciate it. Thank you in advance for any help offered! Cary Mathews So long, Jens To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: [newbie] pkg_fetch fails to fetch files
Andy Park wrote: I'm trying to run 'portupgrade' to update my part of my package tree. (FreeBSD 4.7 off the mini-ISO) So am I doing something wrong? Maybe. To install openssl I recommend updating your world. To fix your download location, maybe MASTER_SITES should be overwritten (see make.conf(5)). So long, Jens To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: The web-based bug interface is currently disabled.
Pedro F. Giffuni wrote: --- Bill Moran [EMAIL PROTECTED] ha scritto: ... Or you could consider helping find a way to re-enable the www to send-pr while preventing script kiddies from abusing it. Well, If heard for years several committers criticising the whole PR system. Time for bugzilla?? ... You could always ask the list for help. Thanks! I'll do this when I find more time to hunt the problem. What's weird (for me) is that I don't have their DNS IP address: since Windows doesn't need it, the ISP doesn't provide it. My ISP sucks, but it's the cheapest around here, and for the typical use my parents give to the computer it's fine. cheers, Pedro. If you really have a problem submitting new ports, send them per e-mail to me or someone you know. If you send them to me, I'll verify them and ask you for feedback if I find sth. I think what should changed. After that, I submit them under your name. Would that ok for you? Jens -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: CDRDAO/FreeBSD: WARNING: Unit not ready, still trying...
Janine C.Buorditez wrote: Hello. CDRDAO used to be my knight in shining armor until it one day suddenly started blaming my drive (YAMAHA CDR400t 1.0m) for not being ready? Now what kind of bullshit is this? # cdrdao write --device 0,3,0 --speed 4 --overburn *toc 0,3,0: YAMAHA CDR400t Rev: 1.0m Using driver: Generic SCSI-3/MMC - Version 2.0 (options 0x) WARNING: Unit not ready, still trying... I appreciate all the help I can get. Cheers, Janine Our Plextor drives work fine, so it may a hardware problem. Can you mount disks from this drive or does it happen with just one unmountable disk? Jens To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: pthreads compile fails on alpha
Joakim Lundborg wrote: the port in question is in /usr/ports/devel/pth and is GNU Pthreads.2.0 I assumed that the mod_php4 port automaticly did the right thing; it tries to install GNU pthreads, but that install fails with the error messages i reported. So if anyone's confused it's the mod_php4 port... If GNU Pthreads isn't really necessary then I still need a way to convince mod_php4 that it does not need GNU Pthreads. I think I've read that GNU Pthreads have some differences that might make some progs require it, but I'm not sure. Anyone knows about this? ports/devel/pth are GNU Portable Threads which implements threading support using a common interface for all systems. php4 requires this for working with apache2 (what is declared as experimental). Because of apache2 and php4 work under unix and windows (os/2, beos, ...), at least mod_php4 might require sth. like pth for having the same interface to a thread library on all systems. I know this doesn't help you, but may give some clearance. So long, Jens - Joakim ons 2003-02-26 klockan 03.24 skrev Kris Kennaway: On Wed, Feb 26, 2003 at 02:06:39AM +0100, Joakim Lundborg wrote: I'm trying to compile pthreads 2.0-0 from ports on an AlphaServer 5/400 running FreeBSD 5.0. (Pthreads is needed for php4) I think you're confused about the need for this pthreads port (I can't find a 'pthreads' port anyway)..pthreads means posix threads which are supported by the FreeBSD base system (libc_r). The php4 port should automatically do the right thing. Kris To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: defaultrouter in userland
Remington L. wrote: How do I change the defaultrouter in userland route(8) says about: # route change default gateway Jens To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Undefined symbol __gxx_personality_v0
Hilmi Hilmiev wrote: I have FreeBSD 5.0, apache 2.0.43 and php 4.2.3. I need XML support for php. I have compiled with options --with-apxs2 --with-dom, --enable-xslt, --with-xslt-sablot. Compiling process is finished OK, but when I try to start apache server I get next error message:\ name# apachectl start Syntax error on line 273 of /usr/local/etc/apache2/httpd.conf: Cannot load /usr/local/libexec/apache2/libphp4.so into server: /usr/local/lib/libsablot.so.69: Undefined symbol __gxx_personality_v0 Where is the problem? Is this bug? How I can solve the problem? 10x in advanced to all! If you just grep the ports-list archives, you'll find at PR/46268 a problem record which describes the problem and provides a fix. Even you recognize that yesterday 2 guys talked about the committing of this patch. Check the PR at http://www.freebsd.org/cgi/query-pr.cgi?pr=46268 and apply the patch. Rebuild sablot and than php compile should work, too. Jens To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Undefined symbol __gxx_personality_v0
Hilmi Hilmiev wrote: OK. 10x. But my second problem is that I don't know how to apply this patch :( Have somebody who can help me? 10x again! Jens Rehsack wrote: Hilmi Hilmiev wrote: I have FreeBSD 5.0, apache 2.0.43 and php 4.2.3. I need XML support for php. I have compiled with options --with-apxs2 --with-dom, --enable-xslt, --with-xslt-sablot. Compiling process is finished OK, but when I try to start apache server I get next error message:\ name# apachectl start Syntax error on line 273 of /usr/local/etc/apache2/httpd.conf: Cannot load /usr/local/libexec/apache2/libphp4.so into server: /usr/local/lib/libsablot.so.69: Undefined symbol __gxx_personality_v0 Where is the problem? Is this bug? How I can solve the problem? 10x in advanced to all! If you just grep the ports-list archives, you'll find at PR/46268 a problem record which describes the problem and provides a fix. Even you recognize that yesterday 2 guys talked about the committing of this patch. Check the PR at http://www.freebsd.org/cgi/query-pr.cgi?pr=46268 and apply the patch. Rebuild sablot and than php compile should work, too. Jens 1st: Do not toppost 2nd: try typing 'man patch' Jens To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: cons25 or vt100
Brian Henning wrote: here is my result. [EMAIL PROTECTED] ~ echo $TERM xterm i think the term should come up as vt100 not xterm. why does this happen? 1st: Do not toppost 2nd: There is a file, /etc/termcap, which contains almost each valid terminal type, vt100 as well as cons25 as well as xterm. Maybe the read of termcap(3X) and terminfo(5) may help to get more clearence. Ciao Jens cheers, brian - Original Message - From: Giorgos Keramidas [EMAIL PROTECTED] To: Brian Henning [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 4:49 PM Subject: Re: cons25 or vt100 On 2003-02-25 16:40, Brian Henning [EMAIL PROTECTED] wrote: is there a veriable set on login that can tell me weather i am logged in on as vt100 or cons25? is there anyway to tell? Try the following shell command: echo $TERM The TERM variable is always[1] set to your current terminal type. [1] Well, almost always... but for your particular question, let's assume that this is indeed 'always'. -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Setting Up an HTTP Proxy
Alvaro Gil wrote: Forgive the simple question, but I can't find info on this anywhere. I need to set up an HTTP proxy in order to use aim at fire-walled locations. How can I do this on my freebsd machine? Can someone please point me to the correct location? Thanks You can use Squid which is a http proxy, located in /usr/ports/www/squid/ Jens To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Make fails: when compiling kernel
Christian Johansson wrote: I'm completely new to freebsd and tried to get my Soundblaster Live to work I sure tried to take away stuff that I know I didn't have,, but when I make the kernel I got the following error: linking kernel umass.o: In function `umass_cam_attach_sim': umass.o(.text+0x1851): undefined reference to `cam_simq_alloc' [...] *** Error code 1 Look that you haven't read the comments in the config file not very carefully. [...] # SCSI peripherals #cj device scbus # SCSI bus (required) #cj device ch # SCSI media changers #cj device da # Direct Access (disks) #cj device sa # Sequential Access (tape etc) #cj device cd # CD #cj device pass # Passthrough device (direct SCSI access) #cj device ses # SCSI Environmental Services (and SAF-TE) [...] # USB support device uhci # UHCI PCI-USB interface device ohci # OHCI PCI-USB interface device usb # USB Bus (required) #device udbp # USB Double Bulk Pipe devices device ugen # Generic device uhid # Human Interface Devices device ukbd # Keyboard device ulpt # Printer device umass # Disks/Mass storage - Requires scbus and da Please read above line very carefully again :-) device ums # Mouse #cj device urio # Diamond Rio 500 MP3 player #cj device uscanner # Scanners # USB Ethernet, requires mii device aue # ADMtek USB ethernet device cue # CATC USB ethernet device kue # Kawasaki LSI USB ethernet -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: getting DSL working
c a r s t e n wrote: okay, retrying with no mime attachments. blew a synapse. i have installed FreeBSD 4.7, customised X a bit, installed xmms from a port to start getting used to the system, and now i am ready for a bigger challenge: an internet connection. i have the handbook, and have read and executed the section on PPPoE (which is what i presume i need to do for getting DSL running). my motherboard (Gigabyte GA-7VRXP) has a built-in RealTek ethernet port which seems to install correctly during bootup (how can i test it?), and tells me that it is rl0. i am in germany and have a Telekom 300 LAN DSL modem, and will be connecting to 1und1, in case anyone is familiar with this setup. i have added the lines to the /etc/ppp/ppp.conf as in the manual (is it out of date for 4.7, it describes 4.5), with a couple of minor areas of uncertainty. the line: set device PPPoE:rl0 i presume this is what i do with this line. the other line i am not so sure about is the: set ifaddr 10.0.0.1/0 10.0.0.2/0 it follows the manual, so i guess it is right. it just seems odd, since this has nothing to do with my system. anyway, running ppp from the commandline and then typing 'dial myprovider' yields the logfile below. i replaced my userid with X, but it is my login name in the ppp.conf file. if anyone could help me out, i would be very appreciative. as background, i am doing this to a large extent as a learning experience, so while it would be great to be on the net with FreeBSD, it is at least as important to me to learn and understand what is going on. i simply have no networking experience, so i don't understand the output, and as usual the man pages are great for people who already know most of the stuff but just need to find an option or two, but less good for someone who is learning from scratch. i am not adverse to reading lots of material, as long as it is well written and informative. any links and/or references would thus be appreciated (the man pages will have to come later, once i have the fundamentals understood). a good book would be a Good Thing. thanks in advance. There's a good document (I'll assume you speak german if you are a customer of 11/DT), so I recommend to search on google for 'FreeBSD T-DSL'. There is a really good HowTo which guides you to the entire configuration process... Greetings, Jens -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: TECO for FreeBSD?
Daniela wrote: On Monday 10 February 2003 21:09, Daxbert wrote: source is source... it depends on how aggressive the developers were on multi-platfrom compatability. I did a goolge search for: teco editor source and the following link appeared in quite a few places: ftp://ftp.mindlink.net/pub/teco It worked, thank you! Mayby you can write a port for this editor, that would make it much easier for others to use it, too. Jens To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: I'm running out of swapspace
Alexander wrote: Hello Recently I'm running out of swapspace. Is there something that I can do to increase my swapspace ? The best will be to take some space from partition like the one for /var and add it to the swap. Is this possible ? I want to ask before trying it, the machine is important. Hi Alex, it would be nice if you'd include some more details about your machine and your configuration, eg. how much ram do you have, the output of mount, the size(s) of your currently used swap areas, etc. Usually it's a good thing start reading the man page of swapon(8). AFAIK it's simply possible creating a file using dd(1) which is sized to the wanted swap space to add, load it to a device using mdconfig(8) and activate it using swapon md?. You may automate it on reboots modifying your /etc/rc.local So long, Jens -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Please help. I really need Samba Print Server
Greg Pavelcak wrote: I'm running -current from mid January. I have Samba3.0a20 Here's my smb.conf [global] workgroup = WORKGROUP nt acl support = no server string = FreeBSD load printers = yes printcap name = /etc/printcap printing = bsd log file = /var/log/log.%m max log size = 50 security = share socket options = TCP_NODELAY dns proxy = no [printers] comment = All Printers path = /var/spool/samba public = yes print command = lpr -s -P mnta %s ; rm %s # guest ok = yes writeable = yes printable = yes browseable = no # use client driver = yes [Printers] comment = All Printers path = /var/spool/samba printable = Yes browseable = No [OKI24dx] comment = OKIPAGE 24dx Postscript/HP5 compatible printer path = /var/spool/samba printable = Yes printer name = OKI24dx read only = No This defines printers and a specific printer: OKI24dx (named by share). Try for your conf: [printers] comment = All Printers path = /var/spool/samba public = yes writeable = yes printable = yes browseable = no [mnta] comment = mnta path = /var/spool/samba public = Yes read only = No printer name = mnta printable = Yes So long, Jens To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Unattended portupgrades...
Andy Akins wrote: Being a FreeBSD newbie, I have a simple question... Got portupgrade. Pretty spiffy. But some of the apps (Ghostscript, PHP) require user input when they are made - so they stop the rebuild of my system. Is there a way that I can specify the answers to these inputs (I pick the defaults on all of them) and then can go to bed with the update running...and its done in the morning... :) Thanks! type # env BATCH=yes portupgrade options-you-want ports-you-want options may be sth. like '-rf', ports should be those ones you want to upgrade. Jens To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Installing over NetBSD
Paul Hoffman wrote: Greetings. I have a box with NetBSD 1.6 on it that I want to turn into a FreeBSD box, while retaining the information in the user directories. Is this possible with the FreeBSD 4.7 install CD-ROM? That is, can I say during setup don't reformat or re-partition, but just use the / and /usr that is already on this disk? I do not know anything about such an upgrade, but if you want to hear my opinion, you should backup all data you want to reuse later. This will be all user data (/home/*, /root/* ?), /etc/*, maybe /usr/local/etc/ and some things from /var/ (eg. database dumps) ... Best is, you backup all if you are not sure - better safe than sorry. If you finished to backup all you need to an external source (tape, 2nd computer, cd-r), you can try to boot from FreeBSD 4.7-CD and look if sysinstall detects the labels and is able to use them. You can easily set mount points for everything sysinstall detects without need to format it. But remember: if you merge config files and/or binaries from both systems, they may occur very funny errors. Good luck Jens To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: disk partitioning
Ilan y. wrote: hi, i need general information setting my harddrive for a desktop/workstation system... currently my system is set in the following way: / 1.2 Gb /usr 6 Gb /swap 500 Mb /mnt/dos 12 Gb The swap size depends on the size of your RAM. I use at least ramsize sized swap spaces. Usually 100M should be more than enough for /, but I strongly recomment either to create a /var slice or a link from /var - /usr/var (you should know the consequences when doing that or - if not - don't do it) i now know that 1.5 Gb is a little too much for / /usr got filled up pretty fast - i run many applications..and file sharing applications my real question here is what slice should i make to hold applications that will survive after an upgrade of the system some applications are installed under /usr/X11R6/binwhile some are under /usr/local/bin..and some under other placesi've read the handbook and it gives no useful information ( well, at least in a language i can understand)...and also looked for some info in the unix bible book The applications doesn't matter - you reinstall them anytime. Backup your configuration! (/etc/, /usr/local/etc/, /usr/X11R6/etc/, /usr/X11R6/lib/X11/ (selective)) if anyone can reply with any information on how to install applications in one place only it would be a great helpi know that PREFIX has to be set with a configure script but what about configuration files.. thanks in advance Ilan Y. Jens -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Jail setup with FreeBSD 5.0
Axel Gruner wrote: Hi. I am trying to setup a jail in FreeBSD 5.0 RC2. I found out to use mount -t devfs / $D/dev instead of cd %D/dev; sh MAKEDEV jail. So, i configured my jail a bit, and wanted to start it with the command:jail /jail/ssh testhome 192.168.0.201 /bin/sh /etc/rc But the jail is not starting, here the output: hw.bus.devctl_disable: 1 - 1 Entropy harvesting:sysctl: kern.random.sys.harvest.interrupt: Operation not perm itted interruptssysctl: kern.random.sys.harvest.ethernet: Operation not permitted ethernetsysctl: kern.random.sys.harvest.point_to_point: Operation not permitted point_to_point. Fast boot: skipping disk checks. mount: /: unknown special file or file system adjkerntz[76259]: sysctl(put_wallclock): Operation not permitted Doing initial network setup:. ifconfig: ioctl (SIOCDIFADDR): permission denied lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384 Additional routing options:. Mounting NFS file systems:. ELF ldconfig path: /usr/lib /usr/lib/compat a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout Starting local daemons:. Updating motd. Configuring syscons: keymap blanktime. Initial i386 initialization:. Additional ABI support:. Local package initialization:. Additional TCP options:. ln: vga: Operation not permitted Starting cron. Starting background file system checks. Mon Dec 23 12:19:27 CET 2002 So after that i mounted also procfs (like it is told in jail manpage). Same result. So, how different is it to setup up a jail in FreeBSD 5 compared to FreeBSD 4.x? Or, where is my mistake? Thanks in advance. What's your concrete question? -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: JDK
Alvaro Rosales R. wrote: HEllo Im trying to install JDK in my FRee BSD 4.7 box , but there is no port for it. I have read the FreeBSD java proyect and the docs say that there sould be a port in the /usr/ports/jdk directory, I only have the ports from SUN, But I cannot find the sources of the sdk in Sun's web site, I only find the linux script, Shoul I install it ?, I want to install Open office and it needs JDK as a dependency To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message The port is located in /usr/ports/java/jdk13/. If you want to build it, you need a java compiler for that, so the linux one may a good choice if you can live with the fact, that the linux emulator want to control the ldt. The pages at http://www.freebsd.org/java/ have some information how to build and install. Jens -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Harddisk Geometrie
Helmut Hoernle wrote: hi freebsd During Installation FreeBSD 4.7 does not akzept the parameters the Harddisk Geometrie values of a IBM IC35L100AVV . the bios is showing 49275/16/255 ; Linux Kernel 2.4.19 can handle the disk and showing the geometrie of 199450/16/63. FreeBSD does not want to accept this parameters and is showing 12514/255/63 . Accepting this proposal will reduce the capacity ( because of bad blocks (they aren't there) ) and produce error messages running FreeBSD. I don't understand what you tried to do. If you boot the 4.7-RELEASE install CD-ROM, sysinstall(8) utility starts and guides you through the installation sequence. If you use the builtin fdisk frontend, you never should be bothered with harddisk geometry. That seems very confusing to me. LINUX Kernel 2.4.20 can not handle the Ali 5229 UltraDMA Controller and the ALI M1649 + M1535D Chipset, but FreeBSD seems to be able to handle that. What to do ? Depends on what you expect. I need a FreeOS on this system; I don't know what to try next. I recomment to stay at 4.7 and if you have some staying power. If you give up fast, try a current SuSE - they are much close to windows but free. Can anybody help ? I think questions@ is a good start. thanX in Advance Helmut Viel Glück, Jens -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: local copies of packages during their installation
it's a lesson for the reader ;-) Does anyone know a solution to this problem? Don't you make local copies of packages you install(ed)? ??? Thanks for each advice in advance. Your welcome. Yours, Joerg Meyer Regards, Jens -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ pkg_build Description: application/java-applet
Re: local copies of packages during their installation
Jörg Meyer wrote: Thanks a lot. But as I understand your script it would only for the mupad package. That's great, but I am interested in a more general solution. pkg_add is really an impressive command, but why isn't there any way (as it seems) to tell it not onley to extract the package it is fetching but also to make a local them? I cannot understand that! If you want to install FreeBSD with a common set of applications on several computers how would you do that efficiently when getting the corresponding package set is so difficult? Thanks again for any good ideas concerning this problem. Yours, Joerg. Am 21.12.02 11:28:35, schrieb Jens Rehsack [EMAIL PROTECTED]: Jörg Meyer wrote: Hello, I've been experimenting with FreeBSD since the day day before yesterday. Coming from the MS-world I am very impressed already. I installed the system from a CD created from the Mini-Iso-Image. Installing packages with pkg_add -r I would like to have local copies of the downloaded tarball in order to create an adapted CD with the packages I really need (just for the case of a new- or re-installation). Of course, all the depending package-tarballs should be download as well - otherwise I could also ftp them manually. Furthermore it would be really nice if the directory structure of the FTP-Server was duplicated locally as well. I know (from experimenting) that make package within the ports collection can archieve something similar (packages are created under /usr/ports/packages if existent). But following this strategy in my opinion has 3 major disadvantages: 1) Compiling packages like XFree86-4 takes quite a long time on my machnine. Solution a) Buy a faster machine. Compile takes it's time Solution b) Do not compile but download Solution c) Wait Solution d) reduce your optimization level 2) It is impossible to create a package without installing it. In case of the package is installed already make returns an error telling me to deinstall the package first. less /usr/ports/Mk/bsd.port.mk SNIPP # Default targets and their behaviors: # # fetch - Retrieves ${DISTFILES} (and ${PATCHFILES} if defined) # into ${DISTDIR} as necessary. # fetch-list- Show list of files that would be retrieved by fetch. # fetch-recursive - Retrieves ${DISTFILES} (and ${PATCHFILES} if defined), # for port and dependencies into ${DISTDIR} as necessary. # fetch-recursive-list - Show list of files that would be retrieved by # fetch-recursive. # extract - Unpacks ${DISTFILES} into ${WRKDIR}. # patch - Apply any provided patches to the source. # configure - Runs either GNU configure, one or more local configure # scripts or nothing, depending on what's available. # build - Actually compile the sources. # install - Install the results of a build. # reinstall - Install the results of a build, ignoring already installed # flag. # deinstall - Remove the installation. # package - Create a package from an _installed_ port. # describe - Try to generate a one-line description for each port for # use in INDEX files and the like. # checkpatch- Do a patch -C instead of a patch. Note that it may # give incorrect results if multiple patches deal with # the same file. # checksum - Use distinfo to ensure that your distfiles are valid. # checksum-recursive - Run checksum in this port and all dependencies. # makesum - Generate distinfo (only do this for your own ports!). # clean - Remove ${WRKDIR} and other temporary files used for building. # clean-depends - Do a make clean for all dependencies. SNAPP SNIPP # For package: # # NO_LATEST_LINK - Do not install the Latest link for package. Define this # if this port is a beta version of another stable port # which is also in the tree. # LATEST_LINK- Install the Latest link for the package as ___. Define # this if the Latest link name will be incorrectly determined. # # This is used in all stages: # # SCRIPTS_ENV - Additional environment vars passed to scripts in # ${SCRIPTDIR} executed by bsd.port.mk (default: see below). # # Finally, variables to change if you want a special behavior. These # are for debugging purposes. Don't set them in your Makefile. # # ECHO_MSG - Used to print all the '===' style prompts - override this # to turn them off (default: ${ECHO_CMD}). # PATCH_DEBUG - If set, print out more information about the patches
Re: ipfw and rule 65535
Ronan Lucio wrote: There are some kind of packets that isn´t IP packets. I don´t known exactly whichs, but a good read in man tcpdump man ipfw man bridge will make you make you undestand it better Ronan I don't know how it's in ipfw, but ipf uses the last matching rule if no quick keyword is used. less /etc/ipf.rules --- BEGIN block in all block out all pass in on xl0 from 10.0.0.0/24 to any pass in quick on lo0 from 127.0.0.0/8 to 127.0.0.0/8 pass out quick on lo0 from 127.0.0.0/8 to 127.0.0.0/8 --- END means: anything get's blocked except what's coming in on xl0 with ip 10.0.0.0/24 and what's going over the lo0 device using loopback addresses. less /etc/ipf.rules --- BEGIN block in quick all pass in on xl0 from 10.0.0.0/24 to any --- END will match anything at start and nothing gets in - never! Jens Here is the end of the output from 'ipfw show': 04000 0 0 deny log ip from any to any 65535 91 8227 deny ip from any to any Can anyone explain why the last rule is getting hit? I was under the impression that the rules are traversed in order, so 4000 should catch anything that -1 would. This is FreeBSD 4.7-STABLE: Sun Nov 10 10:42:32 PST 2002 Thanks! -James -- James Pace [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: FS Cluster?
Brian McCann wrote: Wondering if anyone can help me out. I'm looking for clustering software (?) that will allow me to take 3 PCs, each with a 20GB HD for example, and combine them to form one 60GB disk that could be mounted from a client, and appear as one big disk. I'd imagine I'd need some kind of a front end box that the clients would connect to. I'd also like, but not necessary, the way that it would distribute the data NOT to be something like RAID0, where part of the data is on one server, and part on another...so if one server in the cluster were to fail, the other data would still be accessible. Does anyone have ANY ideas on how this could be done, or what software I should look at? I've been told by some friends who are big RedHat fans that Beowulf could probably do this, but that's Linux based...and I'd rather stick with FreeBSD. Thanks in advance, --Brian Hi Brian, I'd recommend to write sth. about the client OS you plan to use. There are some solutions out there, but the all are special. Jens -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: FS Cluster?
Brian McCann wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Jens Rehsack Sent: Monday, December 16, 2002 11:20 AM To: Brian McCann Cc: [EMAIL PROTECTED] Subject: Re: FS Cluster? Brian McCann wrote: Wondering if anyone can help me out. I'm looking for clustering software (?) that will allow me to take 3 PCs, each with a 20GB HD for example, and combine them to form one 60GB disk that could be mounted from a client, and appear as one big disk. I'd imagine I'd need some kind of a front end box that the clients would connect to. I'd also like, but not necessary, the way that it would distribute the data NOT to be something like RAID0, where part of the data is on one server, and part on another...so if one server in the cluster were to fail, the other data would still be accessible. Does anyone have ANY ideas on how this could be done, or what software I should look at? I've been told by some friends who are big RedHat fans that Beowulf could probably do this, but that's Linux based...and I'd rather stick with FreeBSD. Thanks in advance, --Brian Hi Brian, I'd recommend to write sth. about the client OS you plan to use. There are some solutions out there, but the all are special. Jens What/who is sth? The clients will be a mix of mounts from DOS via Samba or Windows via Samba. Thanks, --Brian Hi Brian, I recommend to take a look to the features of the upcoming samba 3.0 which supports active directory services. AFAIK this allows you to export some shares on different computers using one name, eg. \\domain\share. But you need client support which is available from microsoft. Jens -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: du -sh inconsistant with df -h
Mike Loiterman wrote: This is strange. When I do: [11:49:09 root@fat_man: /var]# du -sh 7.0M. but when I do: [11:49:18 root@fat_man: /var]# df -h FilesystemSize Used Avail Capacity Mounted on /dev/ad0s1a97M55M34M62%/ /dev/ad0s1f 1.7G 1.2G 403M75%/usr /dev/ad0s1e19M 8.6M 9.2M48%/var procfs4.0K 4.0K 0B 100%/proc Where are the extra 1.6 megs at? I thought there must be a stray process running that had a lock on that amount of memory, but I couldn't find anything with top or via ps -aux. I use tripwire everynight to check file consistencies and I believe it's the problem, I can't figure out how or why. Rebooting the server fixes the problem and clears up the missing memory. ??? Please reply to [EMAIL PROTECTED] which is the address I am subscribed with, but since my isp hasn't corrected my reverse dns problem yet, I can't post from that address to *@freebsd.org. Thanks! Hm, let me see what my development machine says: -bash-2.05b# cd /var/www/ -bash-2.05b# du -sh 471M. -bash-2.05b# df -h FilesystemSize Used Avail Capacity Mounted on /dev/da0s1a 126M46M70M40%/ /dev/da0s1e 7.9G 1.4G 5.9G19%/usr /dev/da0s1f 3.9G 268M 3.4G 7%/var /dev/da0s1g 5.8G 471M 4.9G 9%/var/www procfs4.0K 4.0K 0B 100%/proc Maybe it's because your /var filesystem is really small? If you can you should try boot in single user mode and test again. It could help seeing your running processes... But 1.6 Meg??? To much I think for being cached, isn't it? Jens To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Multiple Gateways/Load Balancing?
Octavian Hornoiu wrote: What is the process to set up a FreeBSD server as a router to use two internet connections and dynamically assign workstations to the two internet connections depending on load so that neither of the connections get overly saturated at the expense of not using the other? Maybe the routed(8) is what you looking for. I do not know how expensive it it, but the documentation seems to me really good. Maybe that helps to finds out more. Jens Thanks! Octavian -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: ...changed from TIME to SPACE
Paul Everlund wrote: C J Michaels wrote: Some time in the recent past Paul Everlund scribbled: Hi list! What does this mean? # sysctl kern.msgbuf [snip] 5/var: optimization changed from TIME to SPACE 118Dec 10 11:36:12 fw /kernel: /var: optimization changed from TIME to SPACE [snip] It means that your /var filesystem is nearly full. The kernel is now trying to maximize the amout of free full blocks on the filesystem. From fs(5) manpage: === The element fs_optim specifies whether the file system should try to min- imize the time spent allocating blocks, or if it should attempt to mini- mize the space fragmentation on the disk. If the value of fs_minfree (see above) is less than 10%, then the file system defaults to optimizing for space to avoid running out of full sized blocks. If the value of minfree is greater than or equal to 10%, fragmentation is unlikely to be problematical, and the file system defaults to optimizing for time. === Some other good reads would be tunefs(8), newfs(8), and the mailing list archives. Thank you Chris and Jens for your replies! A full file system on /var triggered it? # df -k Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad1s1a 65470 40452 1978267%/ /dev/ad0s1e 2030062 801262 106639643%/usr /dev/ad1s1e 35230 17770 1464255%/var procfs 4 4 0 100%/proc It doesn't look full to me. Best regards, Paul Try 'df -ik' -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Silly cvsup question.
mike wrote: Hello. i use cvsup to backup certain critical folders on the machine labs, to the machine labs2 automatically every night. My question is this. If i add new stuff to say, /home/mike (or wherever) then that gets mirrored at night and everything does its job as i want it to. However, if i DELETE something from /home/mike (or whereever) It never gets deleted from labs2. So its not synching correctly. For example i just went to zip -r cvsup-backup cvsup-backup on labs2, so i can pull it to XP and burn it, and i realized it had my library still in there which i deleted months ago. Any help on this is appreciated, and no need to CC me, as my website mirrors your archives and they will soon span across multiple pages as well as be searchable. I do not know how to do it using cvsup, but if you use a simple cvs-repository, it will work fine if you do a cvs up on your backup machine (regular check in preconditioned). But if you use cvs, it may have much more sense to backup the entire repository, because you have all made changes available after a restore. Jens -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: new ethernetcard
dick hoogendijk wrote: When installing fbsd4.7 I had one ethernetcard in my machine. Now I want to put in another. In which file can I control the name and ip of this new card for booting. I looked into loader.conf and rc.conf but can't find how the card is checked or controled. So, which file do I need to update after the installation of the new card? Add a line like 'ifconfig_{dev-name}=inet 10.0.0.1 netmask 255.255.255.0' to your /etc/rc.conf and read rc.conf(5) carefully. Best Regards Jens -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Samba stability
Christophe Simon wrote: Hi, Hi, I have a problem with samba and FreeBSD 4.7. My problem comes from an instability of samba services. I use samba as a PDC in a microsoft Can you specify this? domain, and i have some regular shutdowns of the services. When i ty to Which services? PDC, samba, ...? reconnect my host, a message says that my password is wrong (and i'm sure of it). At the same time, the postfix server, that runs too, doesn't reply anymore. After a period of time the servers respond again, ans recrash a little later. Which options do you use when you have compiled samba? Which Samba version do you have installed. What says your dmesg? Which options do you use when compiling your own kernel? Have you any packages/ports installed corresponding to samba? Do you have compiled in SSL/LDAP ... support into samba? I have a message on the tty0 that says /kernel: psmintr delay too long; reseting byte count, and i have nothin in my logs... I have no idea of what it means and of where does the problem comes from... That's another thing. Also: what does your dmesg says. What kind of motherboard do you have? Latest/which BIOS version? Could anyone help me ? thanks ! Bye Jens _ MSN Search, le moteur de recherche qui pense comme vous ! http://search.msn.fr/worldwide.asp To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Samba stability
Christophe Simon wrote: From: Jens Rehsack [EMAIL PROTECTED] To: Christophe Simon [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: Samba stability Date: Fri, 06 Dec 2002 14:30:40 +0100 Christophe Simon wrote: Hi, Hi, I have a problem with samba and FreeBSD 4.7. My problem comes from an instability of samba services. I use samba as a PDC in a microsoft Can you specify this? domain, and i have some regular shutdowns of the services. When i ty to Which services? PDC, samba, ...? reconnect my host, a message says that my password is wrong (and i'm sure of it). At the same time, the postfix server, that runs too, doesn't reply anymore. After a period of time the servers respond again, ans recrash a little later. Which options do you use when you have compiled samba? Which Samba version do you have installed. What says your dmesg? Which options do you use when compiling your own kernel? Have you any packages/ports installed corresponding to samba? Do you have compiled in SSL/LDAP ... support into samba? I have a message on the tty0 that says /kernel: psmintr delay too long; reseting byte count, and i have nothin in my logs... I have no idea of what it means and of where does the problem comes from... That's another thing. Also: what does your dmesg says. What kind of motherboard do you have? Latest/which BIOS version? Could anyone help me ? thanks ! Bye Jens _ MSN Search, le moteur de recherche qui pense comme vous ! http://search.msn.fr/worldwide.asp To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ Thanks for replying so fast ! I have tried both versions of samba 2.2.6 and 3.0a21 installed by the ports distributions, and 2.2.7 compiled with no specific options (just ./configure). My kernel configuration is the same as the GENERIC kernel, i have just disabled the drivers that i didn't need. Ok. Would please be so kind and go to the directory /usr/ports/net/samba and type make build install clean and restart the samba service. I'm interested if it may have sth. to do with that. The exact problem is that it works perfectly when i start my computer (the server), but 10 to 20 minutes later, the samba server doesn't reply. When i disconnect my client and that i try to reconnect it, a message from windows tells me that my password is wrong or the access to the session server has been refused. When i try to recieve my mails, it can't connect neither... On the server, i have the message that i told higher, kernel: psmintr delay too long When i restart the network by /etc/netstart, it works again very well, and it falls back again later... psmintr has to do with the PS/2 device, so I do not assume it causes samba to fail. When it falls back, i have no traces in my log files... I heard that it could come from of an isntability of the network from freebsd, but i'm not sure of this... It sounds to me like a hardware failure. If the psm device causes problems as well as samba - may be a defect memory module? I have an ASUS A7V333 motherboard, and what is dmesg, and psmintr ? (i'm Type into your console dmesg|less or man dmesg and man 4 psm new on freebsd, only twoo weeks...) Do you have an idea ? Not enought information - but it come close :-) PS: Please cc the list - other newbies may have similar problems _ MSN Search, le moteur de recherche qui pense comme vous ! http://search.msn.fr/worldwide.asp -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Administering a large number of freebsd machines
BigBrother (BigB3) wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 (I sent this email to freebsd-security but it never appeared on the list, nor it returned back-very strange for freebsd-security;does freebsd security has any problem?) The question below is not security related. Maybe that's why you didn't get an answer. I have a small question. When I was administering one freebsd box the things were quite easily. I could easily read the emails that were sent to root, the logcheck reports and the tripwire reports. You can also easily sent the messages to a central mail account and read them at once. After administering one box, I was made responsible for other freebsd boxes...The fact is that now the email reports have been multiplied. Also making all the neccesary upgrades, monitoring and other everyday things has been made very time consuming. My question is...Is there any usefull guide or book of how you can administer efficiently large number of freebsd boxes in term of security, upgrades and software deployment? My job is not being a full day system administrator and thus I have to be involved as low time i administering the boxes as possible. Did you read the FreeBSD handbook and the book The complete FreeBSD? If not, it's a good start. You can find many things at http://www.freebsd.org/docs.html and http://www.freebsdmall.com/ - but I do not really understand what are you searching for, so a quick check by you may help you to decide :-) Thank you very much in advance for any usefull tip! No thanks and good luck, Jens - --- We are being monitored..but there is a solution... Use PGP for signing and encrypting emails Download my public key at http://www.us.pgp.net -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE98OpbGe/V3CxAyHoRAmt6AKDGIxyQqPE+R8/TzcAbYisy6VpZvACcDxpU jwoKbT2q84uRDtc5tPyq1EU= =rNDW -END PGP SIGNATURE- To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: sendmail stuff
Yann Golanski wrote: Quoth Jeff MacDonald on Wed, Dec 04, 2002 at 11:59:46 -0500 Step by step in all honesty remove sendmail Agreed. install postfix or qmail enjoy Or exim. Hm, how about using subject lines next time? To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: ports-multimedia ?
Ilia Chipitsine wrote: On Mon, 2 Dec 2002, Jens Rehsack wrote: Ilia Chipitsine wrote: Sure that your cvsupfile get's the most up-to-date version of the ports tree? Maybe you just cvsup'ing against a release version. sure. Can you send me your cvsupfile, please. *default host=cvsup4.ru.freebsd.org *default base=/home *default prefix=/usr *default release=cvs tag=. *default delete use-rel-suffix *default compress ports-base ports-multimedia Hm, I do not understand why you do not update you entire ports and if I very understand why I don't update entire ports! simply. because I don't need it, I don't want to pay extra for downloading Buy a CD. unneccessary stuff, and, after all, what was the reason of splitting ports-all into ports-*** subcollections ??? For easier management? the problem you detect has sth. to with it. I compared your cvsupfile to mine and detect that I use (to keep 4-STABLE in sync): *default tag=RELENG_4 *default host=cvsup2.de.FreeBSD.org *default prefix=/usr *default base=/usr/local/etc/cvsup *default release=cvs delete use-rel-suffix compress src-all doc-all ports-all tag=. You may see the difference to your tag definition. I recomment at first what is the difference in tag definition I see no difference. both of us update ports for HEAD tag. But in the style of the file. Please use a single line like *default tag=. to write your wanted tag to a single line as I do. If that wouldn't help (but I'm sure you tried), delete your ports/multimedia and cvsup again. If that wont work, try to get ports-all and define a refuse file (${BASE}/sup/refuse). Hope any of that helps, Jens -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstra?e 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Phoenix .04 port build problem.
Laurence Sanford wrote: When I try to build the phoenix 0.4 port it fails like this: === Building for Xft-2.0_1 cc -O -pipe -I. -DHAVE_CONFIG_H -I/usr/X11R6/include -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/X11R6/include -fPIC -DPIC -c xftrender.c -o xftrender.o xftrender.c: In function `XftGlyphSpecRender': xftrender.c:170: `XGlyphElt8' undeclared (first use in this function) xftrender.c:170: (Each undeclared identifier is reported only once xftrender.c:170: for each function it appears in.) xftrender.c:170: `elts' undeclared (first use in this function) xftrender.c:171: syntax error before `elts_local' xftrender.c:186: `glyphs_loaded' undeclared (first use in this function) xftrender.c:234: `nelt' undeclared (first use in this function) xftrender.c:247: `x' undeclared (first use in this function) xftrender.c:248: `y' undeclared (first use in this function) xftrender.c:272: `elts_local' undeclared (first use in this function) xftrender.c:335: `XGlyphElt16' undeclared (first use in this function) xftrender.c:335: syntax error before `)' xftrender.c:340: `XGlyphElt32' undeclared (first use in this function) xftrender.c:340: syntax error before `)' xftrender.c: In function `XftGlyphFontSpecRender': xftrender.c:414: `XGlyphElt8' undeclared (first use in this function) xftrender.c:414: `elts' undeclared (first use in this function) xftrender.c:415: syntax error before `elts_local' xftrender.c:428: `glyphs_loaded' undeclared (first use in this function) xftrender.c:480: `nelt' undeclared (first use in this function) xftrender.c:499: `x' undeclared (first use in this function) xftrender.c:500: `y' undeclared (first use in this function) xftrender.c:528: `elts_local' undeclared (first use in this function) xftrender.c:596: `XGlyphElt16' undeclared (first use in this function) xftrender.c:596: syntax error before `)' xftrender.c:601: `XGlyphElt32' undeclared (first use in this function) xftrender.c:601: syntax error before `)' gmake: *** [xftrender.o] Error 1 *** Error code 2 Stop in /usr/ports/x11-fonts/Xft. *** Error code 1 Stop in /usr/ports/www/phoenix. I seem to remember something like this going on early in the mozilla development as well ( I could be daffy ) but I can't remember what the fix was (seemed like it was really simple too). I was wondering if anyone could refresh my memory. Thanks in advance for the assistance. For the record: FreeBSD colossus.cotharyus.net 4.5-STABLE FreeBSD 4.5-STABLE #1: Mon Mar 11 15:50:03 CST 2002 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/Colossus i386 1st) Maybe you should read the instructions from the Makefile. Bug report should be send to (and only to) [EMAIL PROTECTED] Of course, you can CC the ports@ or [EMAIL PROTECTED] list, but this would be for informational purpose only. 2nd) Do you have the current port (0.4_8) or do you use an older one? My 0.4_8 builds fine. You should append a pkg_info output and the port version. Jens -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: ports-multimedia ?
Ilia Chipitsine wrote: Ilia Chipitsine wrote: Dear Sirs, I've found that avifile moved from graphics to multimedia, but I cannot cvsup it. Is it right ? Where I can cvsup ports-multimedia collection ? Even when I do ports-all, multimedia is not included! Regards, (îÁÉÌÕÞÛÉÅ ÐÏÖÅÌÁÎÉÑ) Ilia Chipitsine (éÌØÑ ûÉÐÉÃÉÎ) Sure that your cvsupfile get's the most up-to-date version of the ports tree? Maybe you just cvsup'ing against a release version. sure. Can you send me your cvsupfile, please. Jens -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstra?e 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstra?e 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: ports-multimedia ?
Ilia Chipitsine wrote: Sure that your cvsupfile get's the most up-to-date version of the ports tree? Maybe you just cvsup'ing against a release version. sure. Can you send me your cvsupfile, please. *default host=cvsup4.ru.freebsd.org *default base=/home *default prefix=/usr *default release=cvs tag=. *default delete use-rel-suffix *default compress ports-base ports-multimedia Hm, I do not understand why you do not update you entire ports and if the problem you detect has sth. to with it. I compared your cvsupfile to mine and detect that I use (to keep 4-STABLE in sync): *default tag=RELENG_4 *default host=cvsup2.de.FreeBSD.org *default prefix=/usr *default base=/usr/local/etc/cvsup *default release=cvs delete use-rel-suffix compress src-all doc-all ports-all tag=. You may see the difference to your tag definition. I recomment at first to write your wanted tag to a single line as I do. If that wouldn't help (but I'm sure you tried), delete your ports/multimedia and cvsup again. If that wont work, try to get ports-all and define a refuse file (${BASE}/sup/refuse). Hope any of that helps, Jens -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: FreeBSD software to create super computer ?
Marc G. Fournier wrote: I'm really growing tired of reading articles talking abot so and so creating a super computer of 1400 CPUs running Linux ... latest one I read was one that HP setup ... ... is there software available for FreeBSD that can do this, or is this something we are being left behind in? To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message Some, eg: net/mpich: Message Passing Interface (MPI) Library devel/distcc: Distribute compilation of C(++) code acrosss machines on a network Depends on what you want to do. You could also port beowulf :-) Jens -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: Mail?
aSe wrote: Hello, I'm trying to find a guide/walk-through/howto on installing postfix/qmail on freebsd, along with a pop3 server. I've been searching on google for awhile now, anything i've found is old and/or doesn't talk about setting up pop3. We're using qmail and qpopper and it works fine. I do not know much 'bout the configuration, but Stefan - maybe you can help. Another way is: ask the qmail list(s). Thank you! aSe [[EMAIL PROTECTED]] Bye, Jens -- L i W W W i Jens Rehsack LW W W L i W W W W i nnnLiWing IT-Services L iW W W Wi n n g g i W W i n n g gFriesenstraße 2 06112 Halle g g g Tel.: +49 - 3 45 - 5 17 05 91ggg e-Mail: [EMAIL PROTECTED] Fax: +49 - 3 45 - 5 17 05 92http://www.liwing.de/ To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message