Re: /usr/local/etc/rc.d vs /etc/rc.conf question
On Thu, Dec 02, 2004 at 09:00:19PM +, Dick Davies wrote: > * Paul Schmehl <[EMAIL PROTECTED]> [1210 17:10]: > > --On Thursday, December 02, 2004 07:39:00 AM -0900 Andy Firman > > <[EMAIL PROTECTED]> wrote: > > > > > > > >I just took over a FreeBSD box and there is a > > >proftpd.sh script in the /usr/local/etc/rc.d directory. > > > > > >There is also this entry in /etc/rc.conf: > > >proftpd_enable="YES" > > > > > >There is no need for entries in /etc/rc.conf > > >if the script exists in /usr/local/etc/rc.d right? > > > > > If you remove the /etc/rc.conf entry, you can still start the daemon > > manually (/usr/local/etc/rc.d/proftpd.sh start), but it will not start on > > boot. > > No, that still won't work (which makes sense if you think about it, how would > the > script know whether the system is booting or not?). > > If you read the link below, you should see that you need > to 'scriptname forcestart' etc if there is no service=YES in rc.conf. > Similarly 'forcestop' to shut it down. > > > <http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-rcng.html> That is "Using rc under FreeBSD 5.X" but what about 4.10? On my 4.10 box, there is a mysql-server script in /usr/local/etc/rc.d and nothing in /etc/rc.conf, yet mysql-server starts up a boot time. Why? There is nothing wrong, I just want to know why. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: bash - superuser
On Mon, Dec 20, 2004 at 04:54:51PM -0500, Jerry McAllister wrote: > Then the thing to do is create another root account and make the > default shell for that one be bash, leaving the root root be /bin/sh. So for those of us that want to go back to the way things should be, (leaving root shell be /bin/sh) I fire up vipw and change this: root:*:0:0:Charlie &:/root:/usr/local/bin/bash to this: root:*:0:0:Charlie &:/root:/bin/sh Right? Then I keep using sudo all the time. But if I need to do some big work as root, I can su to root and get bash simply by typing: /usr/local/bin/bash Right? Just want to be clear on this. Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
perl bsdpan install Text::Aspell problem
I am using FreeBSD 4.10 stable with the perl 5.8 port and can't install Text:Aspell. I need some help because I don't know much about bsdpan perl stuff. What am I doing wrong? I did this: perl -MCPAN -e shell install Bundle::CPAN with no problems.but then I did this: cpan> install Text::Aspell CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Mon, 10 Jan 2005 08:53:12 GMT Running install for module Text::Aspell Running make for H/HA/HANK/Text-Aspell-0.04.tar.gz LWP not available CPAN: Net::FTP loaded ok Fetching with Net::FTP: ftp://archive.progeny.com/CPAN/authors/id/H/HA/HANK/Text-Aspell-0.04.tar.gz CPAN: Digest::MD5 loaded ok LWP not available Fetching with Net::FTP: ftp://archive.progeny.com/CPAN/authors/id/H/HA/HANK/CHECKSUMS CPAN: Compress::Zlib loaded ok Checksum for /root/.cpan/sources/authors/id/H/HA/HANK/Text-Aspell-0.04.tar.gz ok Scanning cache /root/.cpan/build for sizes Text-Aspell-0.04/ Text-Aspell-0.04/t/ Text-Aspell-0.04/t/test.t Text-Aspell-0.04/MANIFEST Text-Aspell-0.04/typemap Text-Aspell-0.04/Aspell.xs Text-Aspell-0.04/META.yml Text-Aspell-0.04/Aspell.pm Text-Aspell-0.04/Changes Text-Aspell-0.04/Makefile.PL Text-Aspell-0.04/README CPAN.pm: Going to build H/HA/HANK/Text-Aspell-0.04.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Text::Aspell cp Aspell.pm blib/lib/Text/Aspell.pm /usr/local/bin/perl /usr/local/lib/perl5/5.8.5/ExtUtils/xsubpp -noprototypes -typemap /usr/local/lib/perl5/5.8.5/ExtUtils/typemap -typemap typemap Aspell.xs > Aspell.xsc && mv Aspell.xsc Aspell.c cc -c-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.5/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -O -pipe-DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.5/mach/CORE" Aspell.c Aspell.c: In function `XS_Text__Aspell_DESTROY': Aspell.c:98: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_create_speller': Aspell.c:125: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_print_config': Aspell.c:158: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_set_option': Aspell.c:194: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_remove_option': Aspell.c:230: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_get_option': Aspell.c:266: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_get_option_as_list': Aspell.c:309: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_errstr': Aspell.c:353: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_errnum': Aspell.c:378: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_check': Aspell.c:404: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_suggest': Aspell.c:448: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_add_to_personal': Aspell.c:497: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_add_to_session': Aspell.c:536: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_store_replacement': Aspell.c:576: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_save_all_word_lists': Aspell.c:614: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_clear_session': Aspell.c:652: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_list_dictionaries': Aspell.c:696: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_dictionary_info': Aspell.c:753: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_fetch_option_keys': Aspell.c:813: warning: cast to pointer from integer of different size Running Mkbootstrap for Text::Aspell () chmod 644 Aspell.bs rm -f blib/arch/auto/Text/Aspell/Aspell.so LD_RUN_PATH="/usr/local/lib" cc -shared -L/usr/local/lib Aspell.o -o blib/arch/auto/Text/Aspell/Aspell.so -laspell chmod 755 blib/arch/auto/Text/Aspell/Aspell.so cp Aspell.bs blib/arch/auto/Text/Aspell/Aspell.bs chmod 644 blib/arch/auto/Text/Aspell/Aspell.bs Manifying blib/man3/Text::Aspell.3 /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/testFAILED tests 16-17, 20 Failed 3/21 tests, 85.71% okay Failed Test Stat Wstat Total Fail Failed List of Failed --- t
Re: Trouble starting MySQL
On Wed, Jan 12, 2005 at 09:35:21AM -, Walker, Michael wrote: > > Greetings all, > I installed MySQL from ports (mysql-4.1.7) > then tried to start it. Nothing doing - wo way. > > Starting it from /usr/loca/etc/rc.d/mysql-server.sh nothing happens. No > error message is emitted, but no running instance of mysql either. > > > > Read /usr/loca/etc/rc.d/mysql-server.sh you now have to start mysqld from > your rc.conf file. I am confused. I run FreeBSD 4.10 stable with mysql-server-4.0.21 installed from the ports. I have nothing in my rc.conf file for mysql, but I do have a /usr/local/etc/rc.d/mysql-server.sh file. When I rebooted the machine last month, mysql started without anything in the rc.conf file. Why? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Trouble starting MySQL [SOLVED?]
On Wed, Jan 12, 2005 at 11:33:21AM +0100, Colin J. Raven wrote: > On Jan 12 at 11:17, Colin J. Raven launched this into the bitstream: > > > On Jan 12 at 09:35, Walker, Michael suggested: > > > >> > >> I installed MySQL from ports (mysql-4.1.7) > >> then tried to start it. Nothing doing - wo way. > >> > >> Starting it from /usr/loca/etc/rc.d/mysql-server.sh nothing happens. No > >> error message is emitted, but no running instance of mysql either. > >> > >> > >> > >> Read /usr/loca/etc/rc.d/mysql-server.sh you now have to start mysqld from > >> your rc.conf file. > >> > > OK, I added the necessary stuff to /etc/rc.conf and attempted to start > > mysql via the mysql-server.sh script. Nothing doing. > > > > I rebooted the box, checked to see if mysql was running. It wasn't. > > > > I attempted once more to start it from the script - Nothing. > > > > OK, I'm back to where I started. > > BUT > I pulled up webmin | Servers | MySQL Server adjusted paths to where > stuff lives, hit "Start MySQL Server" and seemingly MySQL is now running. > To wit: > > root 1329 0.0 0.1 1652 1208 ?? I11:26AM 0:00.01 /bin/sh > /usr/local/bin/mysqld_safe --user=mysql > mysql1347 0.0 2.5 55852 25832 ?? S11:26AM 0:00.14 > /usr/local/libexec/mysqld --basedir=/usr/local --datadir=/var/ > colin1359 0.0 0.1 1476 896 p2 S+ 11:26AM 0:00.00 grep > mysql > > Good, but I'm just puzzled why/how this worked from webmin. It doesn't > make sense. One thing, it started mysql as can be seen above from > /usr/local/bin/mysqld_safe, which sure 'aint the script way. > > Then again, the "script way" from CLI didn't work. > > I hear your frustration. I was asking about this on Dec. 18, 2004 and I did not get any answers. Look at this: http://lists.freebsd.org/pipermail/freebsd-questions/2004-December/068425.html I am still confused about /usr/local/etc/rc.d vs /etc/rc.conf. Can anyone educate us how this works on FreeBSD 4.10? I have nothing in rc.conf pertaining to mysql, but the mysql server starts just fine when I boot my FreeBSD 4.10 stable box? mysql-server-4.0.21 installed from ports. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
perl -MCPAN -e shell question - need a howto
Using FreeBSD 4.10 stable, perl-5.8.5 installed from ports. su-2.05b# perl -v This is perl, v5.8.5 built for i386-freebsd-64int When using perl -MCPAN -e shell, I can install the bundle fine, but the when I try to install XML::DOM, or Text::Aspell, they fail. Where can I go for help on getting the bsdpan ports installed? Or is there a howto on this stuff because I am clueless? Thanks, Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: perl -MCPAN -e shell question - need a howto
On Fri, Jan 14, 2005 at 09:42:06AM -0500, Bryan Fullerton wrote: > On Fri, 14 Jan 2005 04:34:33 -0900, Andy Firman <[EMAIL PROTECTED]> wrote: > > > > Using FreeBSD 4.10 stable, perl-5.8.5 installed from ports. > > > > su-2.05b# perl -v > > This is perl, v5.8.5 built for i386-freebsd-64int > > > > When using perl -MCPAN -e shell, I can install the bundle fine, > > but the when I try to install XML::DOM, or Text::Aspell, they fail. > > What are the errors when they fail? Trying to install the XML::DOM I get this: cpan> install XML::DOM Manifying blib/man3/XML::DOM::Parser.3 Manifying blib/man3/XML::DOM::Comment.3 Manifying blib/man3/XML::DOM::Element.3 Manifying blib/man3/XML::DOM::XMLDecl.3 Manifying blib/man3/XML::DOM::CDATASection.3 Manifying blib/man3/XML::DOM::Node.3 Manifying blib/man3/XML::DOM::ElementDecl.3 Manifying blib/man3/XML::DOM::DOMImplementation.3 Manifying blib/man3/XML::DOM::EntityReference.3 Manifying blib/man3/XML::DOM::AttDef.3 Manifying blib/man3/XML::DOM::Text.3 Manifying blib/man3/XML::DOM::NodeList.3 Manifying blib/man3/XML::DOM::CharacterData.3 /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/local/bin/perl5.8.5 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/build_dom...ok t/dom_astress.ok t/dom_attrok t/dom_cdata...ok t/dom_documenttypeok t/dom_encode..ok t/dom_example.ok t/dom_extent..ok t/dom_jp_astress..ok t/dom_jp_attr.FAILED tests 3, 9, 12, 14, 19, 22 Failed 6/23 tests, 73.91% okay t/dom_jp_cdataFAILED test 3 Failed 1/3 tests, 66.67% okay t/dom_jp_example..ok t/dom_jp_minusFAILED test 2 Failed 1/2 tests, 50.00% okay t/dom_jp_modify...FAILED test 16 Failed 1/16 tests, 93.75% okay t/dom_jp_printFAILED tests 2-3 Failed 2/3 tests, 33.33% okay t/dom_minus...ok t/dom_modify..ok t/dom_noexpandok t/dom_print...ok t/dom_templateok t/dom_textok Failed Test Stat Wstat Total Fail Failed List of Failed --- t/dom_jp_attr.t 236 26.09% 3 9 12 14 19 22 t/dom_jp_cdata.t 31 33.33% 3 t/dom_jp_minus.t 21 50.00% 2 t/dom_jp_modify.t 161 6.25% 16 t/dom_jp_print.t 32 66.67% 2-3 Failed 5/21 test scripts, 76.19% okay. 11/129 subtests failed, 91.47% okay. *** Error code 2 Stop in /root/.cpan/build/XML-DOM-1.43. /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force # Then with installing Text::Aspell I get this: cpan> install Text::Aspell CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Thu, 13 Jan 2005 09:50:06 GMT Running install for module Text::Aspell Running make for H/HA/HANK/Text-Aspell-0.04.tar.gz CPAN: Digest::MD5 loaded ok CPAN: Compress::Zlib loaded ok Checksum for /root/.cpan/sources/authors/id/H/HA/HANK/Text-Aspell-0.04.tar.gz ok Scanning cache /root/.cpan/build for sizes Text-Aspell-0.04/ Text-Aspell-0.04/t/ Text-Aspell-0.04/t/test.t Text-Aspell-0.04/MANIFEST Text-Aspell-0.04/typemap Text-Aspell-0.04/Aspell.xs Text-Aspell-0.04/META.yml Text-Aspell-0.04/Aspell.pm Text-Aspell-0.04/Changes Text-Aspell-0.04/Makefile.PL Text-Aspell-0.04/README Removing previously used /root/.cpan/build/Text-Aspell-0.04 CPAN.pm: Going to build H/HA/HANK/Text-Aspell-0.04.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Text::Aspell cp Aspell.pm blib/lib/Text/Aspell.pm /usr/local/bin/perl5.8.5 /usr/local/lib/perl5/5.8.5/ExtUtils/xsubpp -noprototypes -typemap /usr/local/lib/perl5/5.8.5/ExtUtils/typemap -typemap typemap Aspell.xs > Aspell.xsc && mv Aspell.xsc Aspell.c cc -c-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.5/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include -O -pipe-DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.5/mach/CORE" Aspell.c Aspell.c: In function `XS_Text__Aspell_DESTROY': Aspell.c:98: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_create_speller': Aspell.c:125: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_print_config': Aspell.c:158: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_set_option': Aspell.c:194: warning: cast to pointer from integer of different size Aspell.c: In function `XS_Text__Aspell_remove_option': Aspe
Re: perl -MCPAN -e shell question - need a howto
On Fri, Jan 14, 2005 at 03:08:23PM +, Gary Hayers wrote: > Andy Firman wrote: > >Using FreeBSD 4.10 stable, perl-5.8.5 installed from ports. > > > >su-2.05b# perl -v > >This is perl, v5.8.5 built for i386-freebsd-64int > > > >When using perl -MCPAN -e shell, I can install the bundle fine, > >but the when I try to install XML::DOM, or Text::Aspell, they fail. > > > >Where can I go for help on getting the bsdpan ports installed? > >Or is there a howto on this stuff because I am clueless? > > > >Thanks, > >Andy > > If you have the Ports tree installed you can install it from the ports tree > > # cd /usr/ports/textproc/p5-XML-DOM && make install clean Understood. But I am having a hard time figuring out how Perl modules "should" get installed on a system. One can use perl -MCPAN -e shell to install modules right? One can install from source in /usr/local/src right? One can install perl p5-Bla-Bla-1.03 from the ports right? Which is the right way? I have learned in the past it is very good practice to stick with the system package management system if at all possible. It will save you in the future big time with dependancey problems. Hence my hesitation with moving forward by throwing anything at the problem. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: perl -MCPAN -e shell question - need a howto
On Fri, Jan 14, 2005 at 10:29:05AM -0500, Bryan Fullerton wrote: > On Fri, 14 Jan 2005 06:20:49 -0900, Andy Firman <[EMAIL PROTECTED]> wrote: > > On Fri, Jan 14, 2005 at 03:08:23PM +, Gary Hayers wrote: > [snip] > > > If you have the Ports tree installed you can install it from the ports > > > tree > > > > > > # cd /usr/ports/textproc/p5-XML-DOM && make install clean > > > > Understood. But I am having a hard time figuring out how Perl modules > > "should" get installed on a system. > > The generally preferred way on a FreeBSD system is to use the FreeBSD > ports as noted above. > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports.html Yeah...I understand that, I read the whole manual, and I read the whole book, The Complete FreeBSD. Sorry if I am missing something really basic. I don't see the perl module for Text::Aspell in the ports, by doing all sorts of permutations of this: cd /usr/ports && make search name=p5 |grep Aspell So, once again, sorry if this is really basic stuff, but how to I get Text::Aspell - Perl interface to the Aspell library installed? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Odd (alarming) http log exerpt
On Fri, Jan 14, 2005 at 02:08:20PM +0100, Colin J. Raven wrote: > What is this person doing? or attempting to do? I'm guessing nothing > good. > Is there anything within...say httpd.conf..that I could do to prevent > this..or curtail it before it grows to such an enormous size. Looks like a WebDAV exploit. You can run conditional logging in your apache server to ignore it. Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: perl -MCPAN -e shell question - need a howto (DONE)
On Fri, Jan 14, 2005 at 06:55:19AM -0900, Andy Firman wrote: > On Fri, Jan 14, 2005 at 10:29:05AM -0500, Bryan Fullerton wrote: > > On Fri, 14 Jan 2005 06:20:49 -0900, Andy Firman <[EMAIL PROTECTED]> wrote: > > > On Fri, Jan 14, 2005 at 03:08:23PM +, Gary Hayers wrote: > > [snip] > > I don't see the perl module for Text::Aspell in the ports, by doing > all sorts of permutations of this: > cd /usr/ports && make search name=p5 |grep Aspell > > So, once again, sorry if this is really basic stuff, but how to I get > Text::Aspell - Perl interface to the Aspell library installed? There is no port for Text::Aspell, so I had to install from source. Text::Aspell depends on XML::DOM and CGI, which I installed from the ports system. (p5-XML-DOM-1.43, p5-CGI.pm-3.05) The "make test" keeps failing for the source install of Text::Aspell, but I did "make install" anyway, and all seems to be working now. Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: FreeBSD 5.3 - Raid
On Sun, Feb 27, 2005 at 01:59:35PM +, Robert Slade wrote: > I have a new install of FreeBSD on a single IDE drive. I have backed this up > so I am not too concerned about drive failure. I have now added 2, 250 Gbyte > drives (ad3 and ad4) to hold data. I would like to mirror them using sofware > raid and mount them as /home to hold the users data which is critical. > > I have read the manual and searched the web for a simple way to do the above. > The manual seems to cover complex solutions and may be somewhat behind the > times. > > I guess what I am looking for is a howto couched in such a way that even a > windows user can understand :-). > > Any suggestions please. Someone else already recommended GEOM which I also recommend. I just setup gmirror for the fist time and I am very impressed with it. I did drive failure simulations for both ad0 and ad2 and was able to reconstruct the mirror each time. This howto is very good: http://people.freebsd.org/~rse/mirror/ Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
need help getting around kern/70401 so I can load ipl.ko
I have not been able to get ipfilter working on a system and it is because I don't have INET6 in my custom kernel, and therefore the system cannot load the ipl.ko module. Here is the issue: http://www.freebsd.org/cgi/query-pr.cgi?pr=70401 Can someone help me understand this following fix? - Fix: Tweak around USE_INET6 option in /sys/contrib/ipfilter/netinet/ip_compat.h to cover the case when there is no INET6 in the kernel and ipfilter is loaded as KLD. - Or should I just go back and compile the GENERIC kernel? There is no problem running the GENERIC kernel from what I can tell. This is a production system, so compiling the kernel makes me nervous. Would I simply do this?: # cd /usr/src # make buildkernel KERNCONF=GENERIC # make installkernel KERNCONF=GENERIC then reboot and that is all right? Thanks, Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: need help getting around kern/70401 so I can load ipl.ko (SOLVED)
On Mon, Mar 14, 2005 at 02:45:04PM -0500, Andy Firman wrote: > I have not been able to get ipfilter working on a system and > it is because I don't have INET6 in my custom kernel, and therefore > the system cannot load the ipl.ko module. Here is the issue: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=70401 > Found a solution to my problem. One must add an entry to /etc/make.conf and then you can rebuild the module, load it, and get the firewall going with no reboot. Below is a summary of doing this with my TEST kernel having the INET6 option commented out. - su-3.00# kldload -v ipl kldload: can't load ipl.ko: No such file or directory su-3.00# uname -a FreeBSD localhost 5.3-STABLE FreeBSD 5.3-STABLE #0: Mon Mar 14 16:08:45 EST 2005 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/TEST i386 must add NOINET6=YES to /etc/make.conf before you make the new module. su-3.00# cd /usr/src/sys/modules/ipfilter/ su-3.00# make su-3.00# make install su-3.00# kldload -v ipl Nothing returned to therefore loaded properly...! su-3.00# kldstat Id Refs AddressSize Name 16 0xc040 59f308 kernel 21 0xc15fb000 17000linux.ko 31 0xc167 16000ipl.ko su-3.00# ipfstat -in empty list for ipfilter(in) su-3.00# ipfstat -on empty list for ipfilter(out) su-3.00# ipf -Fa -f /etc/ipf.rules This locks up your session. Must login again and start new session. Success upon new login in which the rules are working!!! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: <$100 SATA RAID Card 5.3 compatible
On Tue, Mar 15, 2005 at 05:53:30PM -0600, Mike Loiterman wrote: > > RAID1. I'm looking into gmirror, but it seems like it might be messy if > one of the drives dies. What makes you say that? I have gmirror running and I simulated drive failures on both controllers, and reconstructed the provider with no problems. Even did some hard power failures and everthing worked fine. Gmirror is very nice! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: linksys WPC54G (ver.2)
On Mon, Mar 21, 2005 at 08:45:31AM +0100, [EMAIL PROTECTED] wrote: > Hello > did anyone here manage to get linksys WPC54G working on freebsd? > I tried with ndis but i cant manage to get the card activated, > maybe I have the wrong drivers? Did you use LSTINDS.INF or lsbcmnds.inf? Card: Linksys WPC54G v2, 54Mbps -- link here Chipset: Texas Instruments ACX 111 pciid: 104c:9066 Driver: Linksys ftp://ftp.linksys.com/pub/network/wpc54gv2_driver_utility_v2.02.zip Other: linux-2.6.8-gentoo kernel, ndiswrapper 0.10.Kept having kernel panic (interrupt-related) upon module load until I set CONFIG_PCI_MSI=y (and unset CONFIG_4KSTACKS, just in case.) Also, used "ndiswrapper -i LSTINDS.INF" (NOT lsbcmnds.inf). Works with 64 and 128-bit WEP. Sometimes need to repeat config info (and commit) repeatedly, else driver & card will ignore requested setup. Also works with Gentoo 2.6.9-r9, ndiswrapper 0.12 and drivers that came from CD. >From this page: http://ndiswrapper.sourceforge.net/phpwiki/index.php/List Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ipfilter.log
On Sun, Apr 03, 2005 at 09:29:13PM -0400, Francis Whittington wrote: > I am using ipf.rules and ipnat.rules. I created ipfilter.log in /var/log/ and > I added this line to syslog.conf: > Local0.* /var/log/ipfilter.log > and I added the following line to newsyslog.conf for rotating the log. > /var/log/ipfilter.log 600 5 100 $M1D0 J > I was wondering if anyone could tell me why I do not get anything in my > ipfilter.log. I asked the same thing about a month ago with no answer. What I ended up doing was putting this in /etc/rc.conf: ipmon_flags="-Dvn /var/log/firewall" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
2 quick firewall questions for FreBSD
First, if one were to deploy FreeBSD 5.3 as a standard web and email server, would it need a firewall? I don't see the point because only ports like 25 for smtp, 110 for pop, 80 for http, etc... will be listening and open for connections with or without a firewall. Second, I would like to replace my Linux gateway running Shorewall. Shorewall is a nice package for managing the netfilter firewall capabilities of the Linux kernel. Is there something similar for FreeBSD? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
IPF, IPFW, or IPFILTER?
The author of the FreeBSD handboodk prefers IPF (ipfilter) because its stateful rules are much less complicated The author of "The Complete BSD" talks about IPFW (ipfirewall) only. People on this list talk of PF (packetfilter) quite a bit. What is the most "commonly used" firewall for a web/email host server with a static IP address connected directly to the Internet? (protecting itself) What is the most "commonly used" firewall for a gateway/router/ network firewall server in front of several other boxes? (protecting others and itself) Thanks, Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Problems logging w/ IPF on FreeBSD 5.3-STABLE
Hi, This question: http://lists.freebsd.org/pipermail/freebsd-questions/2004-November/066572.html appears to have no answers/responses on this list. I am experiencing the exact same problem. Since I am just learning about FreeBSD firewalls, it could be a misconfiguration error on my part. But I did the exact same thing as the other poster did. Is this a bug or did we do something wrong? Thanks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Stop in /usr/obj/usr/src/sys/GENERIC
I have a 5.3-stable system that I am trying to update. This is my stable-supfile: *default host=cvsup14.us.FreeBSD.org *default base=/var/db *default prefix=/usr *default release=cvs tag=RELENG_5 *default delete use-rel-suffix src-all ports-all tag=. doc-all tag=. These are the 7 commands I do to update the system: cvsup -g -L 2 stable-supfile cd /usr/src make buildworld make buildkernel make installkernel mergemaster make installworld When I do the make buildkernel I get this: mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding -Werror /usr/src/sys/dev/aic7xxx/aic7xxx.c /usr/src/sys/dev/aic7xxx/aic7xxx.c: In function `ahc_alloc': /usr/src/sys/dev/aic7xxx/aic7xxx.c:3854: error: `ahd' undeclared (first use in this function) /usr/src/sys/dev/aic7xxx/aic7xxx.c:3854: error: (Each undeclared identifier is reported only once /usr/src/sys/dev/aic7xxx/aic7xxx.c:3854: error: for each function it appears in.) *** Error code 1 Stop in /usr/obj/usr/src/sys/GENERIC. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. I noticed during the cvsup some aic7xxx stuff was pulled down. Is this question for the current or ports list? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Updating Ports
On Wed, Feb 16, 2005 at 05:17:09PM -0600, Cody Holland wrote: > After running cvsup, I then ran portdb -Uu and received the following > error. > > Updating the ports index ... Generating INDEX.tmp - please > wait..gnustep-slideshow-0.3: "/usr/ports/graphics/slideshowkit" > non-existent -- dependency list incomplete > ===> graphics/gnustep-slideshow failed > *** Error code 1 > 1 error > > *** Error code 1 > > Stop in /usr/ports. > *** Error code 1 > > Stop in /usr/ports. > failed to generate INDEX! > portsdb: index generation error > > How do I fix this? Same thing just happened to me and searching on the web told me to run "make fetchindex". Worked for me. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Stop in /usr/obj/usr/src/sys/GENERIC
On Thu, Feb 17, 2005 at 04:35:40AM +, Jason Henson wrote: > > Current or questions. You may have a bad file(corrupted), bad memory, > a choice of cvsup server? This is confirmed on the current list: http://lists.freebsd.org/pipermail/freebsd-current/2005-February/046628.html But it works now: -- >>> Kernel build for GENERIC completed on Wed Feb 23 20:11:47 EST 2005 -- All is well. Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: CVSup: upgrade to 5-current
On Mon, Feb 21, 2005 at 03:06:17AM -0500, Jeremy Faulkner wrote: > Remington wrote: > >I am attempting to upgrade from 5.3-RELEASE to 5.4-CURRENT. The line > >*default release=cvs tag=. seems to work but newvers.sh claims it to be > >6.0. What is the correct *default entry? > > > > 5.x isn't current 6.0 is, and 5.4 doesn't exist. > > You want tag=RELENG_5 Correct. I did that last night and ended up with 5.4-prerelease or something like that and had to start all over because I want 5.3-stable. Just FYI for other beginners out there that want 5.3 stable only, you need to use this from now on: tag=RELENG_5_3 Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: CVSup: upgrade to 5-current
On Thu, Feb 24, 2005 at 09:15:08AM -0500, Andy Firman wrote: > On Mon, Feb 21, 2005 at 03:06:17AM -0500, Jeremy Faulkner wrote: > > Remington wrote: > > >I am attempting to upgrade from 5.3-RELEASE to 5.4-CURRENT. The line > > >*default release=cvs tag=. seems to work but newvers.sh claims it to be > > >6.0. What is the correct *default entry? > > > > > > > 5.x isn't current 6.0 is, and 5.4 doesn't exist. > > > > You want tag=RELENG_5 > > Correct. > > I did that last night and ended up with 5.4-prerelease or something > like that and had to start all over because I want 5.3-stable. > Just FYI for other beginners out there that want 5.3 stable only, > you need to use this from now on: > > tag=RELENG_5_3 I am WRONG and need to correct this. Erik Trulsson on the current list politely told me this: Yes, they changed the name displayed by system from 5.3-STABLE to 5.4-PRERELEASE to indicate that we are nearing the release of 5.4 After 5.4-RELEASE is out the name will change to 5.4-STABLE 5.3-STABLE and 5.4-PRELEASE mean essentially the same thing, namely the 5-STABLE branch from some point in time after 5.3 was released but before 5.4 was released. See also the FAQ at http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html#RELEASE-CANDIDATE > If one wants 5.3-stable, they need to use this tag: > > tag=RELENG_5_3 No, that will get you 5.3-RELEASE + critical bugfixes (especially security fixes) which is not the same thing as 5.3-STABLE If you want to follow the 5-STABLE development branch (which for a period of time was named 5.3-STABLE) you want tag=RELENG_5 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
GEOM mirror question using single slice method
I am following Approach 2: Single Slice exactly from this howto: http://people.freebsd.org/~rse/mirror/ Everything was done up to the first reboot, and it booted into the degraded mirror perfectly. BUT, for some reason, the mirror automatically added the first disk without me placing a new PC MBR onto the first disk and switching GEOM mirror to auto-synchronization and adding the first disk. Why? Also, why are the consumers ad0 and ad2 instead of ad0s1 and ad2s1? So after first reboot, it is doing the syncing on its own and I get this: bash-2.05b# gmirror list Geom name: gm0s1 State: DEGRADED Components: 2 Balance: round-robin Slice: 4096 Flags: NONE GenID: 0 SyncID: 2 ID: 1399192993 Providers: 1. Name: mirror/gm0s1 Mediasize: 80026329088 (75G) Sectorsize: 512 Mode: r5w4e1 Consumers: 1. Name: ad0 Mediasize: 80026361856 (75G) Sectorsize: 512 Mode: r1w1e1 State: SYNCHRONIZING Priority: 0 Flags: DIRTY, SYNCHRONIZING GenID: 0 SyncID: 2 Synchronized: 6% ID: 483524358 2. Name: ad2 Mediasize: 80026361856 (75G) Sectorsize: 512 Mode: r1w1e1 State: ACTIVE Priority: 0 Flags: DIRTY GenID: 0 SyncID: 2 ID: 1568645277 Geom name: gm0s1.sync Consumers: 1. Name: mirror/gm0s1 Mediasize: 80026329088 (75G) Sectorsize: 512 Mode: r1w0e0 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
any problems using dummynet as a module?
I need to traffic shape a remote box that runs IPF, and I have taken the time to learn to use IPFW with dummynet, and also that I can run IPFW wide open as IPF is the firewall. The box is 5.4 stable (generic) and I can't get around doing a reboot, from all the testing I have done. Must reboot unfortunately. Loading the ipfw.ko and/or the dummynet.ko with kldload locks me out of an identical test box which is bad news for me. This box is in a colo center with just one ethernet interface. So my procedure works, but I am wondering if I should just suck it up and compile all this stuff into the kernel, or if my procedure below is somewhat safe? (it works, but I am looking for any hidden issues?) 1. Add this to /boot/loader.conf dummynet_load="YES" 2. Add this to rc.conf: firewall_enable="YES" firewall_quiet="YES" firewall_logging="YES" firewall_script="/etc/ipfw.rules" 3. Edit /etc/ipfw.rules with these entries: ipfw -q -f flush ipfw -q add 100 pass all from any to any via lo0 ipfw -q add 200 deny all from any to 127.0.0.0/8 ipfw -q add 300 deny ip from 127.0.0.0/8 to any ipfw -q add 65000 pass all from any to any ipfw -q add 1 pipe 1 ip from any to any out xmit ed0 ipfw -q pipe 1 config bw 128kbits/s - REBOOT ...and the rate limiting works and I can also change the speed on the fly which is a good thing Thanks for any comments! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Full backup
On Tue, May 03, 2005 at 10:14:20AM -0300, Aguiar Magalhaes wrote: > Hi list, > > I?m using FreeBSD 5.3 - Release and I?d like to known > how to make a "full" backup (image) of my HD scsi. > > With Linux machines I?ve used Norton Ghost to make a > image from HD. If I had a "crash" in my HD, I restore > the image in a few minutes. > > How can I to proceed in FreeBSD ? >From the handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/snapshots.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
dump/restore over ssh question
I am following this guide: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/backup-basics.html and successfully dumped /, /usr, and /var over ssh to another box and called them root-back.gz, usr-back.gz, and var-back.gz. But I can't figure out the restore part. Let's say I replace the harddrive and need to restore the 3 dumped filesystems. How do I go about this for my 4.11 box? What I have done so far is: 1. Replace the hard drive 2. Minimal install of 4.11 so the drive is partitioned the same as before 3. Copied the 3 dumped/gzipped files over ssh to the system w/new drive 4. Then I booted into fixit mode, and am stuck here... How do I restore the 3 filesystems? Thanks, Andy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: dump/restore over ssh question
On Fri, May 06, 2005 at 04:28:40PM +0100, Xian wrote: > To restore the filesystems: > Boot from a rescue disk and create the partitions of on the disk. I've never > smashed anything badly enough to need to work out how to do this. At least > the partitions were still there. Well this is more complicated than it seems. First of all, using the fixit mode from 4.11-RELEASE-i386-disc2.iso and trying to use disklabel -e does not work. It gives this error: disklabel: /mnt2/stand/vi: No such file or directory It turns out vi is located at /mnt2/usr/bin/vi and one has to set EDITOR=/mnt2/usr/bin/vi for disklabel to work. Is that a bug? This also happens when I boot off disk1, enter fixit mode, and use the live filesystem with disk2. It is very easy to dump filesystems for backup, but it is not easy to restore filesystems. (I am trying to do this all over ssh...not tape) It is probably just better, easier, faster, to backup all your data and config files (rsync -e ssh -avp ...) and in case of disk failure, replace the disk, install fresh OS, then restore data and config files. What do you think? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
how to reinstall a port after a "make install clean"?
I need to rebuild the exim-mysql port with ldap lookups and am having trouble since I did a make install clean. I can't do a "make reinstall" because I did the "clean" and according to the handbook I have to do this: # pkg_delete exim-mysql-4.42+27 Now when I go back into /usr/ports/mail/exim-mysql to start over I do this: # make -DWITH_OPENLDAP=yes -DWITH_OPENSSL_BASE -DWITH_LDAP_LIB_TYPE=OPENLDAP22 \ -DWITH_LOOKUP_LDAP=yes install clean It is not working as I get this exim error in the logs: lookup type "ldap" is not available (not in the binary - check buildtime LOOKUP configuration) Also: -su-2.05b# ldd /usr/local/sbin/exim /usr/local/sbin/exim: libiconv.so.3 => /usr/local/lib/libiconv.so.3 (0x2810f000) libcrypt.so.2 => /usr/lib/libcrypt.so.2 (0x281fd000) libpam.so.1 => /usr/lib/libpam.so.1 (0x28216000) libmysqlclient.so.12 => /usr/local/lib/mysql/libmysqlclient.so.12 (0x2822) libperl.so.3 => /usr/lib/libperl.so.3 (0x2824) libm.so.2 => /usr/lib/libm.so.2 (0x282d8000) libc.so.4 => /usr/lib/libc.so.4 (0x282f3000) libssl.so.3 => /usr/lib/libssl.so.3 (0x2838c000) libcrypto.so.3 => /usr/lib/libcrypto.so.3 (0x283bb000) libz.so.2 => /usr/lib/libz.so.2 (0x284b2000) libutil.so.3 => /usr/lib/libutil.so.3 (0x284bf000) What am I doing wrong with the reinstall of the port? Thanks, Andy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: how to reinstall a port after a "make install clean"?
On Tue, Oct 19, 2004 at 10:44:59AM -0500, terry tyson wrote: > On Tue, 19 Oct 2004 06:25:39 -0800, Andy Firman <[EMAIL PROTECTED]> wrote: > > > > I need to rebuild the exim-mysql port with ldap lookups > > and am having trouble since I did a make install clean. > snip > > I don't know if this will solve your specific problem but doing a > "make deinstall" has cleared up some issues for me when trying to > reinstall. Thanks but...when I first installed exim-mysql I did "make install clean". Per the handbookquote: "The make deinstall and make reinstall sequence does not work once you have run make clean. If you want to deinstall a port after cleaning, use pkg_delete(1)" So I used pkg_delete. Now I can't build exim-mysql with other options. Again this is my command I run in /usr/ports/mail/exim-mysql, after I do the pkg_delete. # make -DWITH_OPENLDAP=yes -DWITH_OPENSSL_BASE -DWITH_LDAP_LIB_TYPE=OPENLDAP22 \ -DWITH_LOOKUP_LDAP=yes install clean Running exim -bV give me this: Lookups: lsearch wildlsearch nwildlsearch iplsearch cdb dbm dbmnz dnsdb dsearch mysql nis nis0 passwd and I also get errors in the log file when Exim tries an ldap lookup. It is not building Exim with those options.Am I missing a step? After pkg_delete, do I need to do some other sort of cleaning? Andy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: freebsd and MS Active Directory
On Fri, Oct 22, 2004 at 01:04:11PM -0600, Danny MacMillan wrote: > > It seems unlikely to me that that's what they meant. I really would > ask for more information. Maybe they want their FreeBSD administrators > to authenticate against AD accounts? > > If you do set up a testbed Active Directory, I would advise you to set > up MS DNS first, as I've had what can most charitably be called > "problems" when letting Active Directory set up DNS automagically. I am in a similar situation and I have very little experience with AD. Just yesterday I setup a test bed Win2K/Exchange2K with AD. It is so hard to get around in Windows as I am used to command line. Ugh. Are there any good howto's out there for us FreeBSD folk that need to integrate into Windows AD? I have googled and am learning the ldap client tools like ldapsearch and also am going to install auth_ldap on my Apache servers. But I would like a good overview coming from a FreeBSD/Unix perspective?? Thanks, Andy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: freebsd and MS Active Directory
On Fri, Oct 22, 2004 at 03:40:44PM -0400, Danny wrote: > AD is a massive beast. Where do you want to go with it? Just set it up > for fun, or? For fun? I don't think so. Heh. > What type of integration? Authentication? DNS? Need specifics... 2 things. One is Exim AD ldap lookups to the Exchange server to verify recipient for my FreeBSD email gateway. Having no luck getting that to work. I can do an ldapsearch and extract the emails from that. The second thing I will need to do by the end of the year is have employees login to the Intranet on my FreeBSD box using the AD credentials. So I will have to use auth_ldap on my Apache server so Apache can do an AD lookup. That will be tough. Andy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
bind 8 to 9 upgrade question
Hi, I have an old FreeBSD 4.10 stable box that is running the default Bind 8 and "was" the primary DNS server. I have a new FreeBSD 4.10 stable box that is running Bind 9 and "is now" the primary DNS server. The new IP address has been registered with the registar and all is well on the new box. The old box still has a bunch of sites on it that I am in the process of moving to the new box over the next few months. The zone files are all correct in pointing the domains to the correct box (IP address). On the old box, if I turn off Bind 8 and edit resolv.conf and enter the nameserver IP of the new box (primary DNS server), it seems to slow down and serve the websites slowly. So if I turn Bind 8 back on and put its own IP address in /etc/resolv.conf, everything speeds up again. The boxes are colo-ed together, and are one IP away from each other so the lookups should not be a problem. I don't know what other specifics I can give, but this is kind of a "big picture" question and am looking for advice and ideas on how to solve the problem. Thanks, Andy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: bind 8 to 9 upgrade question
On Tue, Nov 02, 2004 at 07:38:34AM +1300, Jonathan Chen wrote: > On Mon, Nov 01, 2004 at 06:25:54AM -0900, Andy Firman wrote: > > [...] > > The new IP address has been registered with the registar > > and all is well on the new box. > > > > The old box still has a bunch of sites on it that I am in > > the process of moving to the new box over the next few months. > > The zone files are all correct in pointing the domains > > to the correct box (IP address). > > > > On the old box, if I turn off Bind 8 and edit resolv.conf and > > enter the nameserver IP of the new box (primary DNS server), > > it seems to slow down and serve the websites slowly. > > So if I turn Bind 8 back on and put its own IP address in > > /etc/resolv.conf, everything speeds up again. > > The boxes are colo-ed together, and are one IP away from > > each other so the lookups should not be a problem. > > Did you remember to update the PTR records for all the IPs in use on > the new DNS server? Sounds like you've got the classic > incorrect/invalid reverse-ip-lookup problem. Bingo! Can't believe I missed that. Our upstream has added the PTR. Also, someone else told me to turn off the HostnameLookups option. It was on for somereason. (I did not setup the box) And I stripped out all the zones in named.conf on the old box which turned it into a caching name server only. Things look good now! Thanks, Andy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
stunnel_enable in /etc/rc.conf ?
Running stunnel-4.05 on FreeBSD 4.10. In case of reboot, how do I tell the system to start stunnel on bootup? Do I put stunnel_enable="YES" in /etc/rc.conf? Thanks, Andy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
unpacking as root gives weird ownership...
I can't figure out why, when I unpack something like awstats-6.2.tgz it gives me this: # tar xvzf awstats-6.2.tgz # ls -al drwx-- 5 1007 513 512 Nov 6 06:03 awstats-6.2 -rw-r--r-- 1 root wheel860606 Nov 6 06:26 awstats-6.2.tgz I have used vipw to get rid of a bunch of users and am wondering if that is a problem. User 1007 does not even exist. There is a group 513. Why wouldn't it unpack with root, wheel ownership? What am I doing wrong? Andy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: unpacking as root gives weird ownership...
On Thu, Nov 11, 2004 at 09:52:55AM -0600, Dan Nelson wrote: > > > > Why wouldn't it unpack with root, wheel ownership? > > Tarfiles extracted as root preserve the original ownership of the > files. You can use the -o flag to make all the extracted files owned > by root. Hmm. I am Linux guy getting into FreeBSD. This is new to me and this doesn't happen on any Linux flavor I have been on. Is there any particular reason for this default on FreeBSD? ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: unpacking as root gives weird ownership...
On Thu, Nov 11, 2004 at 10:11:37AM -0600, Dan Nelson wrote: > In the last episode (Nov 11), Andy Firman said: > > On Thu, Nov 11, 2004 at 09:52:55AM -0600, Dan Nelson wrote: > > > > Why wouldn't it unpack with root, wheel ownership? > > > > > > Tarfiles extracted as root preserve the original ownership of the > > > files. You can use the -o flag to make all the extracted files > > > owned by root. > > > > Hmm. I am Linux guy getting into FreeBSD. This is new to me and this > > doesn't happen on any Linux flavor I have been on. > > It's been standard procedure for tar as far back as I can remember, on > all OSes. You are right. I spoke too quickly as I am just starting to work as root more and more. Normally everything is done with sudo. When I use the -o switch it still won't unpack as root:wheel. Doesn't really matter, just being curious. Thanks, Andy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
What is preferred method to get new software on 4.10 stable?
Let's take Clamav for example. My freshclam logs say this: WARNING: Your ClamAV installation is OUTDATED - please update immediately ! So, I have clamav-0.75.1 installed from ports. What would be the proper way to get clamav .80 installed? pkg_delete clamav-0.75.1 and then install .80 from source? Or is there some mechanism to get .80 in from the ports? Thanks, Andy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: What is preferred method to get new software on 4.10 stable?
On Mon, Nov 15, 2004 at 10:43:09AM -0500, Ada Cheng wrote: > Also don't forget to do a portsdb -Uu after you have cvsup and before > portupgrade. > Cheers, > On Mon, 15 Nov 2004, Svein Halvor Halvorsen wrote: > >[Andy Firman, 2004-11-15] > >> Or is there some mechanism to get .80 in from the ports? > >Update your ports-tree using cvsup to get an up-to-date version. > >You should then install portupgrade, if you don't allready have it. > >Updating clamav from 0.75 to 0.80 should then be as easy as: > ># portupgrade clamav > >Remember to read /usr/ports/UPDATING after you've updated your ports-tree. Good advice thanks. Here is my actual process of doing this for other people new to FreeBSD if they would like to do the same. #cp /usr/share/examples/cvsup/ports-supfile . (added proper mirror in the ports-supfile) #cvsup -g -L 2 ports-supfile Must have the portupgrade package in to run the portsdb command. I could not run portsdb as it was not installed yet because the portupgrade port was not installed. #cd /usr/ports/sysutils/portupgrade #make install #portsdb -Uu read /usr/ports/UPDATING after you've updated your ports-tree It is over 1,000 lines, but you can skim and look for software that is on your system in case you upgrade that particular software. #portupgrade clamav Then you need to edit the new conf file as it's different. Went from clamav.conf to clamd.conf...noticed that when skimming /usr/ports/UPDATING. Note: #portversion -l "<" will provide you with a list of outdated installed ports/packages ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
can't get rid of this file with trailing backslash?
I was editing my named.conf and somehow saved the file with a trailing backslash and I can't get rid of it. -rw-r--r-- 1 root bind18314 Nov 18 11:35 named.conf -rw-r--r-- 1 root bind18314 Nov 18 11:07 named.conf.save.11-18 -rw-r--r-- 1 root bind17389 Nov 18 10:58 named.conf\ -rw-r--r-- 1 bind bind 2602 May 25 17:28 named.root I was using nano and have no clue how I did it. If I rm named.conf\ it removes the named.conf. So how do I get rid of named.conf\ ? Andy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: can't get rid of this file with trailing backslash?
On Fri, Nov 19, 2004 at 02:42:01PM +0100, Alexander Petry wrote: > Hi! > > * Andy Firman <[EMAIL PROTECTED]> [2004-11-19 04:34:43 -0900]: > > -rw-r--r-- 1 root bind18314 Nov 18 11:35 named.conf > > -rw-r--r-- 1 root bind18314 Nov 18 11:07 named.conf.save.11-18 > > -rw-r--r-- 1 root bind17389 Nov 18 10:58 named.conf\ > > -rw-r--r-- 1 bind bind 2602 May 25 17:28 named.root > > > > I was using nano and have no clue how I did it. > > If I rm named.conf\ it removes the named.conf. > > > > So how do I get rid of named.conf\ ? > > Try: "rm -- named.conf\\" simply doing rm named.conf\\ worked! Thanks everyone! ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
p5-Mail-SpamAssassin-3.0.1_1 performance?
I just learned how to upgrade my ports to get the latest clamav installed. I see that SA 3.0 is available for my 4.10 stable box. Is anyone running this on a box with 10,000+ emails per day? If so, how is SA 3.0 performance? I have read it can take up lots of memory and CPU. Comments? Thanks, Andy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: "The Complete FreeBSD": errata and addenda
On Fri, Nov 26, 2004 at 05:02:00PM +, Greg Lehey wrote: > Have you found a problem with the book, or maybe something confusing? Please > let me know: I'm constantly updating it. I bought your book back in August...the 4th edition I think. Great book! I recently took on a job managing several FreeBSD servers and the book brought me up to speed very quickly. I am a former Linux addict and am now addicted to FreeBSD. Just wanted to throw out a compliment in front of the group. Andy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
/usr/local/etc/rc.d vs /etc/rc.conf question
I just took over a FreeBSD box and there is a proftpd.sh script in the /usr/local/etc/rc.d directory. There is also this entry in /etc/rc.conf: proftpd_enable="YES" There is no need for entries in /etc/rc.conf if the script exists in /usr/local/etc/rc.d right? Andy ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"