Re: Horde-4
At 01:02 AM 7/21/2011 +0200, Per olof Ljungmark wrote: On 07/20/11 22:07, Jack L. Stone wrote: At 11:38 AM 7/20/2011 -0800, Beech Rintoul wrote: On Wednesday 20 July 2011 11:22:44 Beech Rintoul wrote: On Wednesday 20 July 2011 09:47:33 Jack L. Stone wrote: Am running FBSD-7.x and IMAP WU + sendmail-8.4.x + MySQL-5.0.x Sorry to bother the list with this but have searched and read everything google horde.org has to offer but I find no solution to an important issue I'm having with the installation of horde4. Although the port maintainer won't have the broken port for horde4, I have successfully installed Horde4 plus several common apps including, IMP app for an IMAP mail service. All of the horde4 ports including webmail and groupware have been rewritten and comitted. AFAIK everything is working properly. You may be missing some libs or modules, so I would suggest a reinstall. The problem is while I have a good install with the Horde4 base frame and the apps, I can login to HORDE just fine, but when going to the IMAP app, my login fails. From what I understand, the same Horde login should work for the IMP. Reading the login scripts indicates that as well. I'm using MySQL (SQL) as the backend for everything that needs a backend so I may be able to handle a large number of users. I've installed Washington Uni (WU) Imap server and it's listening on the expected port 143. I've worked on this issue over days and weeks, including reinstalls but cannot login to IMP for the mail services. In Horde, I can add users just fine and they appear in the MySQL horde database properly. I have a couple designated as admins. If anyone on this list uses horde and maybe knows what I have missed I would appreciate any possible tips to check on. Does IMP not use the same login as I assUme? Not necessarily. It all depends on your auth backend configs for both horde and the apps. If you're using IMAP auth, you should be able to login to imp as any regular user on the mail account. It's common to use IMAP auth as your general auth backend, that way your users will end up in the right account. You also need either SASL auth or Dovecot auth setup along with your auth backend. IMAP SSL is required, imp will NOT work with IMAP plain login unless you hack the configs by hand (bad idea). Finally, uncheck the disable horde test script box on the main horde configs under the general tab, save your configs and navigate to horde/test.php, there is a section near the bottom for testing your IMAP login. If that isn't successful, you're not going to get much further. If the option doesn't exist at all, you don't have all the modules you need. It will also give you an idea about the state of everything else. Hope this gets you pointed in the right direction :-) Beech I forgot to say use SASL or Dovecot auth if you also want to access and remotely use your sendmail system outside of your horde portal. Horde imp shouldn't have any problems out of the box if your IMAP is otherwise working properly. Beech -- Good help! Should I use Dovecot or Dovecot2 ?? We're using Cyrus-IMAP so I cannot help you with that, but did you configure your imapserver in /usr/local/www/horde4/imp/config/backends.php ? Specifically the line 'hordeauth' = This file itself has a lot of useful information on imap settings. I assume you checked the imap server log files? While on the Horde4 subject, we are running a test installation and find the perfermance of H4 to be considerably slower the its predecessor. Did anyone here experience this? Thanks, Yes, I did configure the IMP backends.php or as I recall backends.local.php to override the original settings file. Dunno about the speed as I have never enjoyed that level of use. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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
Horde-4
Am running FBSD-7.x and IMAP WU + sendmail-8.4.x + MySQL-5.0.x Sorry to bother the list with this but have searched and read everything google horde.org has to offer but I find no solution to an important issue I'm having with the installation of horde4. Although the port maintainer won't have the broken port for horde4, I have successfully installed Horde4 plus several common apps including, IMP app for an IMAP mail service. The problem is while I have a good install with the Horde4 base frame and the apps, I can login to HORDE just fine, but when going to the IMAP app, my login fails. From what I understand, the same Horde login should work for the IMP. Reading the login scripts indicates that as well. I'm using MySQL (SQL) as the backend for everything that needs a backend so I may be able to handle a large number of users. I've installed Washington Uni (WU) Imap server and it's listening on the expected port 143. I've worked on this issue over days and weeks, including reinstalls but cannot login to IMP for the mail services. In Horde, I can add users just fine and they appear in the MySQL horde database properly. I have a couple designated as admins. If anyone on this list uses horde and maybe knows what I have missed I would appreciate any possible tips to check on. Does IMP not use the same login as I assUme? Thanks for any ideas (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Horde-4
At 11:38 AM 7/20/2011 -0800, Beech Rintoul wrote: On Wednesday 20 July 2011 11:22:44 Beech Rintoul wrote: On Wednesday 20 July 2011 09:47:33 Jack L. Stone wrote: Am running FBSD-7.x and IMAP WU + sendmail-8.4.x + MySQL-5.0.x Sorry to bother the list with this but have searched and read everything google horde.org has to offer but I find no solution to an important issue I'm having with the installation of horde4. Although the port maintainer won't have the broken port for horde4, I have successfully installed Horde4 plus several common apps including, IMP app for an IMAP mail service. All of the horde4 ports including webmail and groupware have been rewritten and comitted. AFAIK everything is working properly. You may be missing some libs or modules, so I would suggest a reinstall. The problem is while I have a good install with the Horde4 base frame and the apps, I can login to HORDE just fine, but when going to the IMAP app, my login fails. From what I understand, the same Horde login should work for the IMP. Reading the login scripts indicates that as well. I'm using MySQL (SQL) as the backend for everything that needs a backend so I may be able to handle a large number of users. I've installed Washington Uni (WU) Imap server and it's listening on the expected port 143. I've worked on this issue over days and weeks, including reinstalls but cannot login to IMP for the mail services. In Horde, I can add users just fine and they appear in the MySQL horde database properly. I have a couple designated as admins. If anyone on this list uses horde and maybe knows what I have missed I would appreciate any possible tips to check on. Does IMP not use the same login as I assUme? Not necessarily. It all depends on your auth backend configs for both horde and the apps. If you're using IMAP auth, you should be able to login to imp as any regular user on the mail account. It's common to use IMAP auth as your general auth backend, that way your users will end up in the right account. You also need either SASL auth or Dovecot auth setup along with your auth backend. IMAP SSL is required, imp will NOT work with IMAP plain login unless you hack the configs by hand (bad idea). Finally, uncheck the disable horde test script box on the main horde configs under the general tab, save your configs and navigate to horde/test.php, there is a section near the bottom for testing your IMAP login. If that isn't successful, you're not going to get much further. If the option doesn't exist at all, you don't have all the modules you need. It will also give you an idea about the state of everything else. Hope this gets you pointed in the right direction :-) Beech I forgot to say use SASL or Dovecot auth if you also want to access and remotely use your sendmail system outside of your horde portal. Horde imp shouldn't have any problems out of the box if your IMAP is otherwise working properly. Beech -- Good help! Should I use Dovecot or Dovecot2 ?? Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Horde webmail
At 10:35 AM 6/30/2011 -0800, Beech Rintoul wrote: On Thursday 30 June 2011 09:19:33 Jack L. Stone wrote: Has anyone had any luck lately with installation and use of Horde -- either v-3.3 or ver-4 ?? I've tried for days to get the 3.3 version (with apps IMP, INGO Tuba) to work and noted that the ports say that horde4 is broken. I've googled many times and tried some examples from there, but most appear pretty old and not running with php5.3x. Is it just that Horde doesn't work with fbsd-7.x and php5.3x or is it me? I am in the process of rewriting all the horde4 ports, as this is a very large project involving over 50 modules and libs it will take some time. Horde4 does work very well with FreeBSD and you can do a pear install if you really need it now. Do keep in mind that horde4 is not backwards compatible with 3.x and the update procedures are not trivial. That being said, this should get you started: http://www.horde.org/apps/webmail/docs/INSTALL Beech Hi Beech: Since I've never gotten horde 3 to fully work yet, I suppose I could give horde4 a shot. I liked its potention and thought it would be useful to some of our users. I re-installed horde-3 3 or 4 times and always got stopped when it would only loads the Welcome to Horde page requesting a login. I followed the instructions carefully AFAIK. Login failed every time even though MySQL backend and the horde conf.php files contained the login. You certainly have a lot of work in front of you on a rewrite of the ports and look forward to when finished. Good luck! (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Another PHP5 problem
At 06:49 PM 6/17/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: [snip out a lot] What did you fellows do about this issue that worked best for you assuming y'all had vhosts and similar stuff to worry about? Me I just bit the bullet and went with the new locations as they were installed as defaults. I moved my content to the location. None of my content cared about the underlying file system path, however there is code that does. When faced with this most of the time there is some configuration utility that can be run to make changes, with the actual data you enter being stored in a database backend. This then becomes a choice of is it easier to simply modify the docroot in the .conf files?, if you have this situation. -Mike Just a follow-up on my own experience with upgrade to apache22 and its change of path. I was just overthinking it. Simply changing the doc root in the main httpd conf to match my exising one worked beautifully with any concern about moving content around and breaking the system path for scripts and things. By modifying the www/apache22/data back to www/data left everything as was. My production servers are now updated this way. My web serving was only down for a few minutes as I left apache2 running in memory. I simply uploaded copies of all of my tested .conf files from the test server before installing apache22. Also first made the minor changes needed to the main conf and vhost.conf. Killed the apache2 and voila! Thanks for your version of the process, but thought I'd post mine here too just in case there is anyone left on the planet besides me that hasn't already upgraded to apache22. Truly it doesn't pay to get too far behind on upgrades (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Another PHP5 problem
At 06:49 PM 6/17/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: [snip] Oh, forgot that I did have to struggle apache22 still wanted to install db42 instead of my db46 and caused the apache22 build to stop. After a bit of looking, the problem wasn't with the apache22 Makefile but with the apr1 Makefile. Way down it called for db42+ which I suppose meant at LEAST db42. Instead apache22 saw it as db42 literally. A change in the apr1 Makefile to db46 specifically fixed things. This caused my earlier problems I mentioned, but I didn't yet know why. (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Another PHP5 problem
At 04:12 PM 6/16/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: At 12:56 PM 6/16/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: snip out a lot Sorry to return with one more question about upgrading to apache22 from apache2. A note of concern was that apache22 changes the path to the document root by inserting ../www/apache22/data versus the previous ../www/data doc root. Of course my vhosts and a bunch of other things of importance now reside within the ../www path. I suppose I can change the doc root within the apache22 config file(s) but I can forsee some possible breakage in things on a production server when before, when moving from apache-1.3 to apache2, web things were put in the same path and without any modifications needed. I suppose this only affects the main host server stuff and things left in the ../www placement will still work as before according to the present setup. In examining the apache22 Makefile I see some places that the path might be changed, but don't know if that is the best idea vs maybe changing the doc root in apache22 config. A 3rd choice is to move stuff contained in the ../www/cgi-bin phpMyAdmin ...etc things that the main host needs to find in the new location. What did you fellows do about this issue that worked best for you assuming y'all had vhosts and similar stuff to worry about? Methinks this is my last question before moving to production servers. Appreciate your further comments (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Another PHP5 problem
At 04:12 PM 6/16/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: At 12:56 PM 6/16/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: snip out a lot Sorry to return with one more question about upgrading to apache22 from apache2. A note of concern was that apache22 changes the path to the document root by inserting ../www/apache22/data versus the previous ../www/data doc root. Of course my vhosts and a bunch of other things of importance now reside within the ../www path. I suppose I can change the doc root within the apache22 config file(s) but I can forsee some possible breakage in things on a production server when before, when moving from apache-1.3 to apache2, web things were put in the same path and without any modifications needed. I suppose this only affects the main host server stuff and things left in the ../www placement will still work as before according to the present setup. In examining the apache22 Makefile I see some places that the path might be changed, but don't know if that is the best idea vs maybe changing the doc root in apache22 config. A 3rd choice is to move stuff contained in the ../www/cgi-bin phpMyAdmin ...etc things that the main host needs to find in the new location. What did you fellows do about this issue that worked best for you assuming y'all had vhosts and similar stuff to worry about? Methinks this is my last question before moving to production servers. Appreciate your further comments (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Another PHP5 problem
At 04:12 PM 6/16/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: At 12:56 PM 6/16/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: snip out a lot Sorry to return with one more question about upgrading to apache22 from apache2. A note of concern was that apache22 changes the path to the document root by inserting ../www/apache22/data versus the previous ../www/data doc root. Of course my vhosts and a bunch of other things of importance now reside within the ../www path. I suppose I can change the doc root within the apache22 config file(s) but I can forsee some possible breakage in things on a production server when before, when moving from apache-1.3 to apache2, web things were put in the same path and without any modifications needed. I suppose this only affects the main host server stuff and things left in the ../www placement will still work as before according to the present setup. In examining the apache22 Makefile I see some places that the path might be changed, but don't know if that is the best idea vs maybe changing the doc root in apache22 config. A 3rd choice is to move stuff contained in the ../www/cgi-bin phpMyAdmin ...etc things that the main host needs to find in the new location. What did you fellows do about this issue that worked best for you assuming y'all had vhosts and similar stuff to worry about? Methinks this is my last question before moving to production servers. Appreciate your further comments (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Another PHP5 problem
At 07:26 PM 6/17/2011 -0500, Jack L. Stone wrote: OUCH! I hipe my last email really didn't go out 3 times. Mail server wasn't resolving properly, so had tried different ones. Sorry (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Another PHP5 problem
At 04:12 PM 6/16/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: At 12:56 PM 6/16/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: snip out a lot Sorry to return with one more question about upgrading to apache22 from apache2. A note of concern was that apache22 changes the path to the document root by inserting ../www/apache22/data versus the previous ../www/data doc root. Of course my vhosts and a bunch of other things of importance now reside within the ../www path. I suppose I can change the doc root within the apache22 config file(s) but I can forsee some possible breakage in things on a production server when before, when moving from apache-1.3 to apache2, web things were put in the same path and without any modifications needed. I suppose this only affects the main host server stuff and things left in the ../www placement will still work as before according to the present setup. In examining the apache22 Makefile I see some places that the path might be changed, but don't know if that is the best idea vs maybe changing the doc root in apache22 config. A 3rd choice is to move stuff contained in the ../www/cgi-bin phpMyAdmin ...etc things that the main host needs to find in the new location. What did you fellows do about this issue that worked best for you assuming y'all had vhosts and similar stuff to worry about? Methinks this is my last question before moving to production servers. Appreciate your further comments (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Another PHP5 problem
At 03:41 PM 6/16/2011 +0300, Reko Turja wrote: I have very few uses for sqlite3 but I still have them. And PDO? Never seen anything run it. Some pretty big projects including Drupal CMS are moving to PDO. I reckon that having other options without reinventing the wheel, than one certain Oracle controlled DB-backend is starting to gain momentum. Just as a sidenote, PHP 5.3.6 so far seems to be unaffected by extension loading order, but looks like that any upgrade of apache, apr, php etc. means that every dependent module downstream has to be recompiled as well. -Reko With upgrade to php5-5.3.6 is the first time ever (many years) I've had any problem with php. The order of the extensions never came up as an issue, nor did it once I found the extensions causing the seg faults and core dumps. Ryan's suggestion of commenting out all of the extensions and then adding back 1 by 1 enabled me to find the offenders quickly. The 2 sqlite extensions caused the problem for me there also was a 3rd one and I removed them all as I don't use that database. For ports, I usually go with the defaults on options unless I KNOW what they do or don't do. Have used the same options and didn't know why the sqlites were added this time. That further cause an install of the core sqlite port. Without removing it, I couldn't delete the inclusion of the sqlite extensions. Now, I wrestling with the apache2 and apr0 issue. The apache port Makefile wants apr0, but it now has vulnablilities. Ports UPDATING says to do this with apr: - remove apache2 and then: portupgrade -f -o devel/apr1 devel/apr ...and then reinstall apache2. That didn't work because the Makefile in apache still wants apr0. I changed the Makefile to apr1 but the build failed after it looked again for that apr0 later in the build. I didn't find another call for apr0. What have others done for this? This is about the last issue I know about after the major upgrade of the ports. Thanks for all the help so far -- just any other help on the apr thingy would be nice. Yes, I have googled and always do before going to the trough here. Thanks again! (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Another PHP5 problem
At 06:18 PM 6/16/2011 +0300, Reko Turja wrote: From: Michael Powell nightre...@hotmail.com pulls in a few more dependencies than I'd really like, especially the apr1 (now named apr-ipv6-devrandom-gdbm-db42-1.4.5.1.3.12) port installing The name depends completely on the knobs you have used with portbuild - my apr is: apr-ipv6-devrandom-db43-pgsql84-sqlite3-1.4.5.1.3.12 At any rate take a gander at /usr/ports/Mk/bsd.apache.mk for more info. But if it were me instead of fighting I'd just go with the apache22 default Yeah - the configuration differences are pretty minimal and even the 2.0 port makefile states now: DEPRECATED= will be unsupported by ASF when 2.4.0 is release, migrate to 2.2.x+ now -Reko Thanks to both you and Mike for the advice. I've already installed apache22 on a test server and trying to allocate time to it as and when. Looks like this apr thing is going to raise the priority. Also, I see the sqlite3 is tacked on the apr you have. I only have: apr-ipv6-devrandom-gdbm-db46-mysql50-1.4.5.1.3.12 What are all of those conf files in the apache22/extra directory? Any includes needed there besides perhaps the ssl if used? Thanks guys! Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Another PHP5 problem
At 12:56 PM 6/16/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: -Mike Mike, very useful info. I had surmised about the extra .configs to reduce the size of the main config file. I had already started doing that with apache2. Have been studying the files and comparing to my present httpd.conf and do see some changes that I suppose will emerge should they be needed. Some lines/sections just have been moved around. Again, thanks for taking the time with the info. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Another PHP5 problem
At 12:56 PM 6/16/2011 -0400, Michael Powell wrote: Jack L. Stone wrote: The no-accf.conf under includes is for if you do not desire to use either of the AcceptFilter choices, one for httpd the other for SSL traffic. These can be loaded as kernel modules in /boot/loader.conf as such: accf_http_load=YES accf_data_load=YES Mike Mike: Got the apache22 configured on the test server with one exception being the error I keep getting regarding this one: [warn] (22)Invalid argument: Failed to enable the 'httpready' Accept Filter I first loaded it in the kernel via kldload: # kldload accf_http The first apache22 restart didn't have the error, but returned on other restarts. Can't seem to unload the line from the kernel and add to the boot loader.conf. What did I do wrong? Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Another PHP5 problem
At 10:57 PM 6/16/2011 +0300, Reko Turja wrote: The no-accf.conf under includes is for if you do not desire to use either of the AcceptFilter choices, one for httpd the other for SSL traffic. These can be loaded as kernel modules in /boot/loader.conf as such: accf_http_load=YES accf_data_load=YES You can also build the modules into kernel itself with: #Apache kernel modules options ACCEPT_FILTER_HTTP options ACCEPT_FILTER_DATA I reckon that the thing you are missing is kernel rebuild and reinstall. -Reko Hi, Reko: Was hoping to avoid that, but really no biggie. Thanks! Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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
Another PHP5 problem
I just finished some major upgrades/updates to a server, including php5-5.3.6 and apache2. Now I keep getting Segmentation faults and core dumps whenever apache2 rolls over its logs and does a restart. Here's the error. Does nyone have an idea of what's happening to cause this?: PHP 5.3.6 with Suhosin-Patch (cli) (built: Jun 4 2011 18:04:14) Copyright (c) 1997-2011 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies with the ionCube PHP Loader v3.3.16, Copyright (c) 2002-2010, by ionCube Ltd. Segmentation fault (core dumped) Thanks for any hints Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Another PHP5 problem
At 03:33 PM 6/15/2011 +0100, Matthew Seaman wrote: On 15/06/2011 15:04, Jack L. Stone wrote: PHP 5.3.6 with Suhosin-Patch (cli) (built: Jun 4 2011 18:04:14) Copyright (c) 1997-2011 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies with the ionCube PHP Loader v3.3.16, Copyright (c) 2002-2010, by ionCube Ltd. Segmentation fault (core dumped) Check the mailing list archives for very many discussions on the effect of having the extensions listed in ${PREFIX}/etc/php/extensions.ini in the wrong order. Cheers, Matthew Matthew: Thanks for that suggestion but couldn't find the numerous discussions about the wrong order of extensions. Using google I did find one post and a list that poster used. I tried following his list with the sames ones I had plus some 6-7 he didn't have. Still get the core dump. Can you suggest the key word to search in the list archives. I used php5 extensions and php5 core dump which brought up some discussions which didn't include the order discussions though. I cannot do without ioncube as another post mentioned. Thanks to all and any other ideas. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Another PHP5 problem
At 01:50 PM 6/15/2011 -0500, Mark Felder wrote: On Wed, 15 Jun 2011 13:40:15 -0500, Jack L. Stone ja...@sage-american.com wrote: I cannot do without ioncube as another post mentioned. I understand your need for ioncube, but replicate the problem to another non-production system and remove ioncube to see whether or not it is the cause. This is something we had to do and ultimately we told the only customer using ioncube they couldn't use it on our infrastructure anymore because it was a proprietary extension that causes issues. Again, before digging too deeply I strongly urge you repeat the test with ioncube extension disabled so you can rule that out immediately or else you'll be running around in circles for ages trying to figure out what the cause is. It's unfortunate that people think they need to obfuscate their code and use these silly workarounds. Regards, Mark I cannot do without ioncube as another post mentioned. I understand your need for ioncube, but replicate the problem to another non-production system and remove ioncube to see whether or not it is the cause. This is something we had to do and ultimately we told the only customer using ioncube they couldn't use it on our infrastructure anymore because it was a proprietary extension that causes issues. Again, before digging too deeply I strongly urge you repeat the test with ioncube extension disabled so you can rule that out immediately or else you'll be running around in circles for ages trying to figure out what the cause is. It's unfortunate that people think they need to obfuscate their code and use these silly workarounds. Regards, Mark Mark: Thanks for the suggestion. I tried a disable of the ioncube and still get the php seg fault/core dump. This one is maddening... Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Another PHP5 problem
At 02:50 PM 6/15/2011 -0500, Ryan Coleman wrote: So I've seen that you haven't had a lot of success with this... can you post your extensions.ini file contents? -- Ryan Here are my extensions after doing some shuffling according to ideas on google: extension=session.so extension=simplexml.so extension=ctype.so extension=apc.so extension=ftp.so extension=mbstring.so extension=tokenizer.so extension=filter.so extension=mcrypt.so extension=xmlwriter.so extension=gd.so extension=iconv.so extension=zlib.so extension=curl.so extension=bz2.so extension=pdf.so extension=openssl.so extension=dom.so extension=hash.so extension=xmlreader.so extension=sqlite.so extension=pdo.so extension=mysql.so extension=sockets.so extension=xml.so extension=sqlite3.so extension=json.so extension=zip.so extension=posix.so extension=snmp.so Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Another PHP5 problem
At 03:21 PM 6/15/2011 -0500, Ryan Coleman wrote: And these were all built from the ports, yes? Yes, all built from ports. (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Another PHP5 problem
At 04:04 PM 6/15/2011 -0500, Ryan Coleman wrote: My solution for these issues is usually pretty easy: Disable all extensions (with a ; before the line) and then re-enable batches until it dies on you and then go through line-by-line to see which one did it. Should take about 5 minutes, tops, to run through the entire list. Sounds like a reasonable approach. Thanks, (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Another PHP5 problem
At 04:04 PM 6/15/2011 -0500, Ryan Coleman wrote: My solution for these issues is usually pretty easy: Disable all extensions (with a ; before the line) and then re-enable batches until it dies on you and then go through line-by-line to see which one did it. Should take about 5 minutes, tops, to run through the entire list. Was wondering if it appeared an extension might be missing that would be expected? Have quite a few php scripts. What about the gettext one? I went with the defaults plus a couple I knew was needed like mysql and FTP. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Another PHP5 problem
At 06:35 PM 6/15/2011 -0500, Ryan Coleman wrote: That wouldn't likely cause a segfault, but you could use your apache logs to see if there's something in the last file before the segfault occurs... but that could be a wild goose chase. On Jun 15, 2011, at 5:57 PM, Jack L. Stone wrote: At 04:04 PM 6/15/2011 -0500, Ryan Coleman wrote: My solution for these issues is usually pretty easy: Disable all extensions (with a ; before the line) and then re-enable batches until it dies on you and then go through line-by-line to see which one did it. Should take about 5 minutes, tops, to run through the entire list. Ryan: Found it! 2 extensions were the problem: # extension=sqlite3.so # extension=pdo_sqlite.so Don't even know why they got in there (except I checked the boxes in make config) Thanks for the great idea! Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Another PHP5 problem
At 08:14 PM 6/15/2011 -0500, Ryan Coleman wrote: I have very few uses for sqlite3 but I still have them. And PDO? Never seen anything run it. Just because it is on by default 1) doesn't mean it's good for you and 2) the port connected to it is functioning properly. Wierd! Told extensions to build without: extension=sqlite3.so extension=sqlite.so extension=pdo_sqlite.so But, built them anyway. Ran make config and then also checked the options file and it showed the WITHOUTS_ okay, but they were built anyway. Still have to comment out those sqlites. (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: find and remove ?
At 06:59 PM 5/14/2011 -0400, Eitan Adler wrote: I'm finally getting around to removing any remnants of frontpage. There are 1000s of _vti_* directories across several domains and need to clean those out. What's the best way to run a short script or command set to find and delete those? man 1 find find /path/to/start/deleting -type d -name _vti_\* -delete run the command without -delete to see what will be removed. -- Eitan Adler Thanks, Eitan, but it didn't delete. What did I do wrong? Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: find and remove ?
At 11:32 AM 5/15/2011 -0400, Eitan Adler wrote: Thanks, Eitan, but it didn't delete. What did I do wrong? I would need to see what command you typed :-) Go to the top directory you start deleting from and type find . -name _vti_\* This will print out what it thinks should be deleted. If you don't see the directories you expect here then please be more specific about what should be deleted. If you do see the directories you expect and running the find command with -delete doesn't work then we could try and debug from that point. -- Eitan Adler The comamnd: #find /path/to/start/deleting -type d -name _vti_\* worked fine to give the listing of what to delete, but when just adding the -delete at the end didn't delete, just ran the listing again. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: find and remove ?
At 12:19 PM 5/15/2011 -0400, Eitan Adler wrote: The comamnd: #find /path/to/start/deleting -type d -name _vti_\* worked fine to give the listing of what to delete, but when just adding the -delete at the end didn't delete, just ran the listing again. I forgot that adding the -type d won't let it delete non-empty directories. Try running it like: find /path/to/start/deleting -name _vti_\* -delete (^_^) Nope. Thate didn't delete either. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: find and remove ?
At 07:50 PM 5/15/2011 +0200, Rolf Nielsen wrote: 2011-05-15 19:41, Jack L. Stone skrev: At 12:19 PM 5/15/2011 -0400, Eitan Adler wrote: The comamnd: #find /path/to/start/deleting -type d -name _vti_\* worked fine to give the listing of what to delete, but when just adding the -delete at the end didn't delete, just ran the listing again. I forgot that adding the -type d won't let it delete non-empty directories. Try running it like: find /path/to/start/deleting -name _vti_\* -delete (^_^) Nope. Thate didn't delete either. Jack find /path/to/start/deleting -name _vti_\* -exec rm -Rd {} \; ___ That worked! Thanks! Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: find and remove ?
At 08:05 PM 5/15/2011 +0200, Rolf Nielsen wrote: 2011-05-15 19:50, Rolf Nielsen skrev: 2011-05-15 19:41, Jack L. Stone skrev: At 12:19 PM 5/15/2011 -0400, Eitan Adler wrote: The comamnd: #find /path/to/start/deleting -type d -name _vti_\* worked fine to give the listing of what to delete, but when just adding the -delete at the end didn't delete, just ran the listing again. I forgot that adding the -type d won't let it delete non-empty directories. Try running it like: find /path/to/start/deleting -name _vti_\* -delete (^_^) Nope. Thate didn't delete either. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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 find /path/to/start/deleting -name _vti_\* -exec rm -Rd {} \; Pardon my answering my own post, but after reading the find manpage, I think perhaps find -d /path/to/start/deleting -type d -name _vti_\* -exec rm -Rd {} \; would be better. The -d option makes find visit the contents of a directory before the directory itself. The one without the -d option deletes the topmost directory it finds and then tries to traverse downwards, which of course causes a warning. It still works though. Thanks for the follow-up. I'll try it too. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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
find and remove ?
Folks: Am running FBSD-7.x I'm finally getting around to removing any remnants of frontpage. There are 1000s of _vti_* directories across several domains and need to clean those out. What's the best way to run a short script or command set to find and delete those? Appreciate any suggestions. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: script help
At 12:41 AM 2/15/2011 -0800, per...@pluto.rain.com wrote: Jack L. Stone ja...@sage-american.com wrote: # find all of the same filenames (copyright.htm) and then replace the year 2010 with 2011 in each file. Once I have a working script, I should be able to add it as a cron job to run on the first day of each new year. Before actually doing this, you might want to consult a copyright lawyer. Seems to me that merely claiming a more recent copyright date, having made no substantive change to the work for which the copyright is claimed, could be construed as a fraudulent claim. ___ Wow! You wandered way off the trail. I own the tech magazine I founded 23 years ago and we publish monthly to 214 countries. I hav also practiced law for my companies for nearly 40 years, so quit worrying about that stuff. I just need script help, not other than that. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: script help
At 02:53 PM 2/15/2011 +, RW wrote: On Tue, 15 Feb 2011 12:57:12 +0300 Peter Andreev andreev.pe...@gmail.com wrote: Use of xargs on many files will be much faster than find...exec construction This is a surprisingly common myth. exec can pass single or multiple arguments according to whether you use ; or + find / -type f -name copyright.htm | xargs sed -i .bak -e 's/2010/2011/g' This is much less safe on FreeBSD than it is with the GNU versions because print0 is required for paths with spaces. find ... -print0 | xargs -0 ... Forgot to mention: if the string to replace on the text line of the files includes a connecting dash, like 1988-2010, I suppose rather than using just the 2010/2011 perhaps should be 1988-2010/1988-2011 Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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
script help
Hello folks: No doubt this will be easy for those with scritping abilities. I have a gazillion files by the same name and each contains the same line requiring the same change. But the problem is that they are in many different directories on a server with numerous domains. While I could handle the change using a single directory within my abilities, I'm unsure how to do a search and replace throughout the many domains and their directories. Don't want to mess up. Here's what I'm trying to do: # find all of the same filenames (copyright.htm) and then replace the year 2010 with 2011 in each file. Once I have a working script, I should be able to add it as a cron job to run on the first day of each new year. Any help appreciated. Thanks! Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: zoneedit.com
At 11:26 AM 1.14.2011 -0500, Mike. wrote: On 1/13/2011 at 5:21 PM Al Plant wrote: |Jack L. Stone wrote: | I have used zoneedit.com's DNS zone service for about 9 years and it | handles a number of static IPs for my companies. | | Now, suddenly they have created a new platform and migrating accounts | from the legacy platform to the new. The legacy site doen't work anymore, | just confirms account and redirects to the new site. | |[snip] | |Aloha Jack, | |Yes, I use Zone Edit. | | | |I just had to email them at Support: supp...@zoneedit.com |and Paul T. sent me this link to the legacy site as they havent migrated |all the DNS. http://www.zoneedit.com/auth/ = I wish zoneedit were as responsive for me. I sent in an email to support yesterday and all I've gotten back so far was the robot acknowledgement. Based upon this thread, I don't find that encouraging. I am locked out and I need access to the account so I can make a DNS change. My experience was also maddening and for several days, all I got was that ...we'll get back to you within 24 hours but they didn't respond at all for several days. They had sent me a link that was supposed to reset my password, but it returned an error as well. Thanks to this list, Dan of zoneedit responded and fixed things. I got in immediately thereafter using a fresh link to reset my password to the new platform. Glad Dan monitors this list. Alas, though now I'm getting an avalance of more robot responses to my many earlier cries for help. It makes me nervous that another on staffer may mess up things -- so, I keep logging in. All is still okay on the new platform so far. While the new platform looks a bit more flashy can't say I like it any better (yet). Another response to my post was from Pierre who said: ...The legacy platform seems to still work for me: http://legacy.zoneedit.com I had sent some money though to have free service for my existing domains forever Apparently Pierre's account just hasn't been migrated to the new platform and the old legacy sit still works. Mine had been migrated to the new but apparently with errors as it didn't recognize my email address which has been on the old site for 9+ years. The pay ahead didn't have anything do do with it. I've also carried a sizable advance paid balance of unused credits. Mike, maybe Dan will help you too. Also, perhaps my experience will be useful for others. For almost a decade, this is the first time I've had a problem, while I was alarmed and fummed at the lack of response this time, all is well again for me. I guess they are having growing pains with the move to the new platform??? All the best, Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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
zoneedit.com
I have used zoneedit.com's DNS zone service for about 9 years and it handles a number of static IPs for my companies. Now, suddenly they have created a new platform and migrating accounts from the legacy platform to the new. The legacy site doen't work anymore, just confirms account and redirects to the new site. Are there any members here using zoneedit.com and having trouble with their login? I cannot get my login to work and they won't solve the problem. They say they have reset my password but it doesn't work. The legacy web site says my account has been migrated, yet the login doesn't work. The legacy site responds to my normal email address used for the entire 9 years, but the new platform only responds with an error that the email doesn't exist. The service still works, but no access to manage my zones. (Yes, I copy/paste the login so no typos.) I've sent numerous request for help since Jan 12th but only get the robot response with the same information about responding in 24 hours -- but, they never respond. Now, here I sit without access to numerous domain zones I need to edit with any way to access them. This is hurting my biz. So, anyone with this issue out there or know of an alternative company to replace zoneedit? Thanks for any response (no robots pls -- heh, heh) (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: zoneedit.com
TOP-POST I am pleased to say this has been resolved, thans to Dan at Zoneedit. All the best, Jack At 10:20 AM 1.13.2011 -0600, Jack L. Stone wrote: I have used zoneedit.com's DNS zone service for about 9 years and it handles a number of static IPs for my companies. Now, suddenly they have created a new platform and migrating accounts from the legacy platform to the new. The legacy site doen't work anymore, just confirms account and redirects to the new site. Are there any members here using zoneedit.com and having trouble with their login? I cannot get my login to work and they won't solve the problem. They say they have reset my password but it doesn't work. The legacy web site says my account has been migrated, yet the login doesn't work. The legacy site responds to my normal email address used for the entire 9 years, but the new platform only responds with an error that the email doesn't exist. The service still works, but no access to manage my zones. (Yes, I copy/paste the login so no typos.) I've sent numerous request for help since Jan 12th but only get the robot response with the same information about responding in 24 hours -- but, they never respond. Now, here I sit without access to numerous domain zones I need to edit with any way to access them. This is hurting my biz. So, anyone with this issue out there or know of an alternative company to replace zoneedit? Thanks for any response (no robots pls -- heh, heh) (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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 (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Captcha image does not load
At 02:17 PM 10.7.2010 -0400, Michael Powell wrote: Jack L. Stone wrote: Folks: Please bear with me on this one. Am using FBSD-7.0p9 and PHP52. Have been using a Captcha protection against robots for a download section of the server. It worked just fine since installed for a couple of years, even with prior versions of PHP5. However, the captcha suddenly stopped loading the initial image and required multiple clicks (variable times at that) to get it to load an image that could be used by the customer. Just shows the little x as broken link to image. Nothing tried has solved the issue. Had to add text telling people to keep clicking if an image is not seen. Anyone seen this and have any suggestions on how to fix other than finding a different captcha script?. I was having a similar problem and it involved php52-gd not working. I moved the following two lines to the end of my php.ini and it started working. I think it was having pdf.so load afterward is what did it. extension=gd.so extension=pdf.so -Mike Mike: Thank you so much! Apparently solved the problem for me too. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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
Captcha image does not load
Folks: Please bear with me on this one. Am using FBSD-7.0p9 and PHP52. Have been using a Captcha protection against robots for a download section of the server. It worked just fine since installed for a couple of years, even with prior versions of PHP5. However, the captcha suddenly stopped loading the initial image and required multiple clicks (variable times at that) to get it to load an image that could be used by the customer. Just shows the little x as broken link to image. Nothing tried has solved the issue. Had to add text telling people to keep clicking if an image is not seen. Anyone seen this and have any suggestions on how to fix other than finding a different captcha script?. Help appreciated. All the best, Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Realtek 8139/8201L Ethernet PHY driver
Dear Sir/Madam, Your email was unable reach the intended person that you were sending it to. For more information on our business please click on the following link: [1]Click here for our website We look forward to your continued business in the future. Regards, Webmaster References 1. http://www.downwind.com.au/avdir/rd.php?id=7564 ___ 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
Extracting a variable listing
Sorry to return to the trough again for script help, but find excellent answers here when all else fails, and I am not very good at it. Trying to develop a script (non-bash) that will extract a variable list of content on a daily basis so I can add it to a master list. Once I have this, I can do the rest of the scripting needed. Here's an example of the need. The content I need will always fall beneath a row of pound signs, and there is content above that row I don't want, like this: bunch of rows I don't need here ### --- the top of stuff needed row1 row2 row3 row4 etc, etc So, I need a way to pull out the rows (which vary daily) beneath the pound row and place it in a new temp file that I can cat into a master file. Appreciate your kind help once again (beers on me!) All the best! Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Extracting a variable listing
At 10:53 AM 8.18.2010 -0300, A. Wright wrote: On Wed, 18 Aug 2010, Jack L. Stone wrote: The content I need will always fall beneath a row of pound signs, and there is content above that row I don't want, like this: bunch of rows I don't need here ### --- the top of stuff needed row1 If you want the '#' line in the output cat YourFile | sed -n -e '/#/,$p' If you don't, then cat YourFile | sed -e '1,/#/d' The above assumes that you will have at least 5 '#' chars on your divider line, and never before in the file. Increase the number '#' symbols if the above example is strictly literal. Note the -n in the first line. A. Worked like a charm, Andrew! Just what I needed! Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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
Realtek 8139/8201L Ethernet PHY driver
Am using an ASUS MB which contains the subject driver, more specifically rlphy. Haven't found any support for this driver in FBSD-7.3. Has anyone else solved this issue? I use another NICard that is supported, but only a 10/100 vs the phy is 10/100/1000. Google is not a help, other than it does refer to the rlphy.c file which is on my FBSD system. %locate rlphy /usr/obj/usr/src/sys/MYKERNEL/modules/usr/src/sys/modules/mii/rlphy.o /usr/obj/usr/src/sys/MYKERNEL/rlphy.o /usr/src/sys/dev/mii/rlphy.c It isn't built or does it load. It's a bit over my head how to build and load this if possible. Any suggestions or info?? Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Grepping a list of words
At 10:56 AM 8.12.2010 -0700, Chip Camden wrote: Quoth Anonymous on Thursday, 12 August 2010: Oliver Fromme o...@lurza.secnetix.de writes: John Levine jo...@iecc.com wrote: % egrep 'word1|word2|word3|...|wordn' filename.txt Thanks for the replies. This suggestion won't do the job as the list of words is very long, maybe 50-60. This is why I asked how to place them all in a file. One reply dealt with using a file with egrep. I'll try that. Gee, 50 words, that's about a 300 character pattern, that's not a problem for any shell or version of grep I know. But reading the words from a file is equivalent and as you note most likely easier to do. The question is what is more efficient. This might be important if that kind of grep command is run very often by a script, or if it's run on very large files. My guess is that one large regular expression is more efficient than many small ones. But I haven't done real benchmarks to prove this. BTW, not using regular expressions is even more efficient, e.g. $ fgrep -f /usr/share/dict/words /etc/group When using egrep(1) it takes considerably more time and memory. Having written a regex engine myself, I can see why. Though I'm sure egrep is highly optimized, even the most optimized DFA table is going to take more cycles to navigate than a simple string comparison. Not to mention the initial overhead of parsing the regex and building that table. -- Sterling (Chip) Camden| sterl...@camdensoftware.com | 2048D/3A978E4F Many thanks to all of the suggestions. I found this worked very well, ignoring concerns about use of resources: egrep -i -o -w -f word.file main.file The only thing it didn't do for me was the next step. My final objective was to really determine the words in the word.file that were not in the main.file. I figured finding matches would be easy and then could then run a sort|uniq comparison to determine the new words not yet in the main.file. Since I will have a need to run this check frequently, any suggestions for a better approach are welcome. Thanks again... Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Grepping a list of words
At 04:01 PM 8.13.2010 +0200, Jonathan McKeown wrote: On Friday 13 August 2010 15:47:38 Jack L. Stone wrote: The only thing it didn't do for me was the next step. My final objective was to really determine the words in the word.file that were not in the main.file. I figured finding matches would be easy and then could then run a sort|uniq comparison to determine the new words not yet in the main.file. Since I will have a need to run this check frequently, any suggestions for a better approach are welcome. sort -u and comm(1)? comm will compare two sorted files and produce up to three lists: of words only in file one, of words only in file 2 and of words common to both files. You can suppress any or all of the output lists. Jonathan ___ Jonathan: Thanks, I had forgotten about comm(1). Mehinks I am close to the solution to the whole issue now. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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
Grepping a list of words
Kindly appreciate help with how to grep (or similar) a list of words to determine if any of them are in a file rather than grepping one word at a time. Thanks for any suggestions... All the best, Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Grepping a list of words
At 05:14 PM 8.12.2010 +0530, Ashish SHUKLA wrote: Jack L Stone writes: Kindly appreciate help with how to grep (or similar) a list of words to determine if any of them are in a file rather than grepping one word at a time. #v+ % egrep 'word1|word2|word3|...|wordn' filename.txt #v- 'word1|word2|word3|...|wordn' is the regular expression, so if you can minimize it better for you :). HTH -- Ashish SHUKLA | GPG: F682 CDCC 39DC 0FEA E116 20B6 C746 CFA9 E74F A4B0 Thanks for the replies. This suggestion won't do the job as the list of words is very long, maybe 50-60. This is why I asked how to place them all in a file. One reply dealt with using a file with egrep. I'll try that. Appreciate the help and any others in case the one doesn't work. All the best, Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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
Upgrade error for fbsd-7.2 or 7.3
I hope someone can help me with this one. I've searched and nothing found yet. I 've been running fbsd-7.0p3 for quite a while just fine with 4 SATA drives always recognized as: ad8, ad10, ad12 and ad14 The boot drive is ad8 Upgraded to 7.1p11 and all still fine. However, when upgrading to 7.2 or 7.3, the system recognizes the drives differently as: ad6, ad8, ad10 and ad12 respectively in place of the normal ones above. Of course the system won't boot without telling it to mount ad6 instead of ad8 and then go into fstab and changing the letters. Plus, my jail no longer works although it was updated properly. Anyone with a similar problem or ideas? All the best, Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Upgrade error for fbsd-7.2 or 7.3
At 08:06 AM 4.17.2010 -0500, Jack L. Stone wrote: I hope someone can help me with this one. I've searched and nothing found yet. I 've been running fbsd-7.0p3 for quite a while just fine with 4 SATA drives always recognized as: ad8, ad10, ad12 and ad14 The boot drive is ad8 Upgraded to 7.1p11 and all still fine. However, when upgrading to 7.2 or 7.3, the system recognizes the drives differently as: ad6, ad8, ad10 and ad12 respectively in place of the normal ones above. Of course the system won't boot without telling it to mount ad6 instead of ad8 and then go into fstab and changing the letters. Plus, my jail no longer works although it was updated properly. Anyone with a similar problem or ideas? All the best, Jack OK, I get it. Will just change my FSTB to match the new HD numbers before first bootup after upgrade. Just was worried that soemthing else was wrong that I missed. Jail OK too now. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Registry corrupt?
At 04:33 PM 1.23.2009 +0100, cpghost wrote: On Fri, Jan 23, 2009 at 05:56:45PM +0300, Odhiambo Washington wrote: On Fri, Jan 23, 2009 at 5:19 PM, Jack L. Stone ja...@sage-american.comwrote: During an upgrade from fbsd-6.3 -- fbsd-7.0, something strange happened. Some of the programs will not run after rehash or even when given the precise path to the program. System doesn't see several but not all programs. I've upgraded several servers (using source files -- cvsup) withoug any such problem. It's just this one machine. Some programs will not run because of a library version bump. Those programs will need to be recompiled, i.e. rebuild all ports. You can check this by running 'ldd' on the specific program. Let's assume that you have zip installed: $ ldd /usr/local/bin/zip /usr/local/bin/zip: libbz2.so.3 = /usr/lib/libbz2.so.3 (0x80065c000) libc.so.7 = /lib/libc.so.7 (0x80076c000) Thanks for that tip. Here's output of one of the programs that doesn't run: ldd /usr/local/bin/fastest_cvsup ldd: /usr/local/bin/fastest_cvsup: not a dynamic executable BUT, it is executable and using the exact path to the program still gives this error: /usr/local/bin/fastest_cvsup: not found Yes, I did re-install the port too. No dice. Again MOST all programs run except for this one and maybe a couple others that may be causing buildworld to fail. Strange! Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Registry corrupt?
At 07:06 AM 1.24.2009 -0600, Jack L. Stone wrote: At 04:33 PM 1.23.2009 +0100, cpghost wrote: On Fri, Jan 23, 2009 at 05:56:45PM +0300, Odhiambo Washington wrote: On Fri, Jan 23, 2009 at 5:19 PM, Jack L. Stone ja...@sage-american.comwrote: During an upgrade from fbsd-6.3 -- fbsd-7.0, something strange happened. Some of the programs will not run after rehash or even when given the precise path to the program. System doesn't see several but not all programs. I've upgraded several servers (using source files -- cvsup) withoug any such problem. It's just this one machine. BTW: as more details of the problem, I had found a tiny bug in mkdep which initially caused the upgrade from 6.3 to 7.0 to fail during buildworld. Once fixed, it appeared to upgrade fine (build/install/mergemaster), including a new kernel build/install, but on reboot it still shows 6.3...!!! I have rmoved /usr/obj and even /usr/src and tried over several times, but same result. Some parts of the system is running okay, but not others. Have wasted too much time on this machine and today will move to a new machine and start over. This server is one of our DNS servers, so we're covered with others that take over during shutdown of this problem server. The DNS (or named) is one of the parts not running correctly and the most vital. Just a very strange issue and wondered if anyone else had similar results ever -- it may just be the machine, but didn't act like it. Thanks again, Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Registry corrupt?
At 07:29 AM 1.24.2009 -0600, Jack L. Stone wrote: At 07:06 AM 1.24.2009 -0600, Jack L. Stone wrote: At 04:33 PM 1.23.2009 +0100, cpghost wrote: On Fri, Jan 23, 2009 at 05:56:45PM +0300, Odhiambo Washington wrote: On Fri, Jan 23, 2009 at 5:19 PM, Jack L. Stone ja...@sage-american.comwrote: During an upgrade from fbsd-6.3 -- fbsd-7.0, something strange happened. Some of the programs will not run after rehash or even when given the precise path to the program. System doesn't see several but not all programs. I've upgraded several servers (using source files -- cvsup) withoug any such problem. It's just this one machine. BTW2: Yes, I do know this isn't windows and doesn't have a registry per se in that regard, but something does keep track of the programs installed and I've never located that place/file/db not having a crucial reason to before. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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
Registry corrupt?
During an upgrade from fbsd-6.3 -- fbsd-7.0, something strange happened. Some of the programs will not run after rehash or even when given the precise path to the program. System doesn't see several but not all programs. I've upgraded several servers (using source files -- cvsup) withoug any such problem. It's just this one machine. I've suspected the registry is not updating, but really don't know as I've never encountered this issue before in all the years using FBSD. Any ideas? Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Question about restore
At 03:43 PM 2.2.2008 +0100, Wojciech Puchar wrote: My question is, how is the right way to do the restore in a system that hasn't been installed with freebsd at all? From what I get in google, every of course. i won't help you with sysinstall as i don't use it, just use LiveCD to make partitions, newfs and then restore For years I have been using a script that will do it all. It never fails to do the job perfectly and painlessly. In my case I have a utility machine used also for backups and is okay if I need to shut it down for emergency restores and things described by the poster. In you case, just do your dumps on the server to be moved as it will do it quicker and not likely to lose much from a live system (if live). The transfer method is a bit slower. Once dumps are made, then transfer the files over to your utility machine. Run my script on the utility which will mirror everything over to a 2nd new clean drive. Shut down the utility machine, pull the 2nd drive with the restore and install as the master drive in your target new machine -- then boot up. That's it. BTW: You can modify the partition sizes in the script if you want to make some or all of them larger in a bigger new HD for example. If interested in my script and my method, I'll send it to you as an attachment file. (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
MySQL Library upgrade issue
Am running FBSD-6.2p10 Recently, I upgraded MySQL-4.1.22 to 5.0.x and while things seem to work okay, I keep getting this warning in phpMyAdmin: Your PHP MySQL library version 4.1.22 differs from your MySQL server version 5.0.51. This may cause unpredictable behavior. Perhaps my manner of jumping the versions of MySQL...?? How do I get it to recognize the proper library version? Thanks for any help. (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: relay host in sendmail?
At 01:45 PM 12.8.2007 -0800, jekillen wrote: On Dec 8, 2007, at 12:21 PM, Christian Walther wrote: Hi, On 08/12/2007, jekillen [EMAIL PROTECTED] wrote: Hello: I am using Absolute BSD, Second Ed. and am looking in the section on Sendmail. I cannot find where to specify a relay host. I have a hosts that originate mail to remote recipients but use a mail hub (Postfix) on another machine on local network to relay this mail to the outside. It is not spam. These messages will be used to verify web client supplied e-mail addresses. Thank you in advance; Jeff K you can specify a smart host in sendmail.mc (or the mc-file created for your host). The macro you need is already in there, you just need to uncomment it. It's something like: dnl Dialup users should uncomment and define this appropriately define(`SMART_HOST', `your.relay.host') This looks like it is for dial up modem connection to an isp's mail servers. But I do not see why it would not work for a relay host on the local network. I have static ip addresses on DSL service. I will have to refresh my memory on what is a smart host. This relay host would also relay the response to an email verification message back to the originating host. And I am guessing that would be a virtual domain alias in the relay host. I am learning as I go along. Thank you for your help. Much appreciated Jeff K Consider using the mailertable for this. There is a sample file in /etc/mail. (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Very long URL with malice intended
Am running FBSD-4.8 with Apache/1.3.26 I posted this question first on the Apache.org list, but no reply. Thought I would try here even though slightly offtopic. Within the past couple of weeks, the Apache logs have shown a new type of intrusion -- a very, very long URL request -- that finally receives a error 414. I don't know the purpose of this one, but doesn't appear well-intended. It comes late at night and from different IPs. One request even used one of my own IPs. So, the firewall won't help -- nor server deny. My question is what syntax can I add, if any, to my httpd.conf to redirect such requests..?? Here's a very small (about 1-5%) snippet of the nasty URL: 65.35.186.74 - - [26/Mar/2004:19:01:04 -0600] SEARCH /\x90\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb 1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x0 2\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb 1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x0 2\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb 1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x0 2\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02 and on and on Any suggestions on a way to stop these much appreciated. Best regards, Jack L. Stone, Administrator Sage American http://www.sage-american.com [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Very long URL with malice intended
At 08:28 PM 3.27.2004 +0100, Cordula's Web wrote: Within the past couple of weeks, the Apache logs have shown a new type of intrusion -- a very, very long URL request -- that finally receives a error 414. I don't know the purpose of this one, but doesn't appear well-intended. It comes late at night and from different IPs. One request even used one of my own IPs. So, the firewall won't help -- nor server deny. My question is what syntax can I add, if any, to my httpd.conf to redirect such requests..?? Here's a very small (about 1-5%) snippet of the nasty URL: 65.35.186.74 - - [26/Mar/2004:19:01:04 -0600] SEARCH /\x90\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb 1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x0 2\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb 1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x0 2\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb 1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x0 2\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02\xb1\x02 and on and on Are only SEARCH requests affected, or GET as well? The ones I've seen have all been SEARCH Best regards, Jack L. Stone, Administrator Sage American http://www.sage-american.com [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Using SED in a script
On Tue, 17 Feb 2004, Saint Aardvark the Carpeted wrote: Jack L. Stone disturbed my sleep to write: This would be the steps: - grep(1) the new string and pipe to sed(1) ..?? - sed(1) to find the old string replace with the new string in a file. Am I on the right track?? I think so, yeah -- something like this should work: #!/bin/sh new=`grep foo /path/to/bar` old=`cat /path/to/oldvariable` sed -i.bak -e s/$old/$new/ /file/to/edit Note that I'm using double quotes () rather than the single quotes (') you usually see with sed scripts; that's so I can use $newvariable and still have the varible substituted in. This assumes there's nothing in $old or $new that would need to be escaped (quotes, slashes, etc). Also, my simplistic example for grep and cat assumes that the product of each is the thing you need to search/replace and nothing else -- if you need the third field (say), look at awk(1). The -i option tells sed to edit the file in place, but keep a backup named /file/to/edit.bak. Another, and maybe more robust approach, to editing the file would be to try Perl, Programming Language of the Elder Gods. (Yeah, I'm a fan. :-). The last line could be replaced by: perl -i.bak -new=$new -old=$old -e's/$old/$new/' \ /file/to/edit ...which would be a way of getting difficult values of new and old into single quotes. HTH, Hugh Hugh: Thanks for the reply. This gives me two interesting approaches which should do the job. Appreciate it. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Using SED in a script
Sorry if this is somewhat OT, but I *think* I have a simple SED(1) question for those familiar with its use. I am working up a small script that will grep(1) a string like 215 new messages from a file for use as a variable. I need to then find/replace an old string in another file that may say 198 new messages with the new variable string 215 new messages. So, only the numeric part of the string actually changes. I've looked at the sed approach, but not sure how to apply its use here, or if something else besides sed(1) would be better. This would be the steps: - grep(1) the new string and pipe to sed(1) ..?? - sed(1) to find the old string replace with the new string in a file. Am I on the right track?? Tips on the script syntax appreciated. Thanks and Happy Trails, Jack L. Stone SageWeb ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Spam Assassin?
At 11:48 PM 1.25.2004 +0200, Byron Schlemmer wrote: On Sun, 2004-01-25 at 06:51, Eric F Crist wrote: Where is the Spam Assassin port? The only thing I can find is spamass-milter which just USES Spam Assassin. Or you might try /usr/ports/mail/bogofilter which I found to be quite a bit faster than SpamAssasin. -- Byron I use the combo /sendmail/spamass-milter/spamassassin (spamd daemon) and averge less than 1 second per email. Many at 0.4-0.9 secs and running 99.% spam catch. Procmail catches the rest Best regards, Jack L. Stone, Administrator Sage American http://www.sage-american.com [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: freebsd 4.8 and the spamassassin 2.6x port
At 12:07 PM 1.23.2004 -0600, Michael Whitley wrote: I have read through the archives and seen that newer versions of Spamassassin have fits with freebsd because of an outdated perl version. I noticed that there is a SpamAssassin 2.6 port out for freeBSD 4.9 but was wondering if anyone has had success with installing it on a 4.8 system? Michael ___ Yes, I'm running FBSD-4.8p14 I've recently updated SA-2.6x all the way to the current SA-2.63. Indeed, I had a 2-day fight with a break in a perl function that I finally found that dealt with one of the learning DBs (Bayes). Specifically, the locks on the DB became flaky. That suddenly occurred in 2.61_1. Thinking more updates would cure it, no dice. The log jam was causing a 30x jump (less than 1 sec to 30+) in the time to process a message, and breaking the scans letting spam in. After cleaning out the DB, all settled down again and messages are processed in less than a sec again -- only an occasional spam slips in -- but Bayes DB needs to rebuild to be useful again too. I've been told by one of the developers that SA-3.0 will require perl5.6.1. BTW, this is the very first time I've experience any sort of (noticeable) problem with SA and I've been using the program since SA-2.43. A great filtering tool in spite of the recent problem which wasn't fatal. Hope this helps. Best regards, Jack L. Stone, Administrator Sage American http://www.sage-american.com [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: freebsd 4.8 and the spamassassin 2.6x port
At 02:04 PM 1.23.2004 -0500, Charles Swiger wrote: On Jan 23, 2004, at 1:07 PM, Michael Whitley wrote: I have read through the archives and seen that newer versions of Spamassassin have fits with freebsd because of an outdated perl version. I noticed that there is a SpamAssassin 2.6 port out for freeBSD 4.9 but was wondering if anyone has had success with installing it on a 4.8 system? FreeBSD 4.8 should be recent enough that you can use a modern ports tree without the CONFLICTS feature causing problems, so use CVSUP to update your ports tree to the current version. From there, install /usr/ports/lang/perl5.8, and then run use.perl port. That should give you the latest version of Perl, from which you can then install the p5-Mail-SpamAssassin port (or spamass-milter, or amavisd, or whatever). You can also try installing the software via perl -MCPAN -e shell \;, and do an install Mail::SpamAssassin, but the ports mechanism is better tested. -- -Chuck For SA-2.6x, perl5.003 is fine. But as of yesterday, the developer advised me that when SA-3.0 is released, perl5.6.1 is required and recommended -- see my earlier post. Best regards, Jack L. Stone, Administrator Sage American http://www.sage-american.com [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: calcru negative-time messages
At 12:47 PM 1.23.2004 -0800, RA Cohen wrote: I have searched high and low for help with these negative-time calcru messages...there is scant information out there, mostly a paragraph in the troubleshooting section of the FreeBSD docs. Most folks following the instructions there on later versions of FBSD seem to not be successful in getting rid of the messages, myself included. Therefore I have slid back to versions 4.8 or 4.9. I believe in my case the messages relate to an AMD K6-2 chip and motherboard. FBSD 5.1 and 5.2 exhibit the behavior; 4.8 and 4.9 do not on this hardware. As I am writing this from my day job, and the unit in question is currently built with 4.9 now anyway, I cannot give you the exact message but if you google for 'calcru FreeBSD' you will see what I am talking about. Thanks in advance for your help! Roy Roy, check out man MICROTIME(9). ...might give this a try: # sysctl -w kern.timecounter.method=1 Best regards, Jack L. Stone, Administrator Sage American http://www.sage-american.com [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Crash Dump
FreeBSD sage-american.com 4.8-RELEASE-p13 Hello again. Hope this the place for this question. One of my mail servers has been crashing for several months about once every 2 weeks at random times and after changing out all hardware, including shifting the OS to 3 different machines, I finally concluded it was the OS and setup to catch a crash dump. The dump is submitted below and perhaps someone knows how to tranlate it for a recommended fix. If this should be on another list, please let me know. Thanks for any help! CRASH DUMP: (kgdb) symbol-file kernel.debug Reading symbols from kernel.debug...(no debugging symbols found)...done. (kgdb) exec-file /usr/crash/kernel.0 (kgdb) core-file /usr/crash/vmcore.0 IdlePTD at phsyical address 0x003e7000 initial pcb at physical address 0x003494a0 panicstr: lockmgr: locking against myself panic messages: --- panic: lockmgr: locking against myself syncing disks... 24 3 done Uptime: 3h46m33s dumping to dev #ad/0x20001, offset 3145856 dump ata0: resetting devices .. done 511 510 509 508 507 506 505 504 503 502 501 500 499 498 497 496 495 494 493 492 491 490 489 488 487 486 485 484 483 482 481 480 479 478 477 476 475 474 473 472 471 470 469 468 467 466 465 464 463 462 461 460 459 458 457 456 455 454 453 452 451 450 449 448 447 446 445 444 443 442 441 440 439 438 437 436 435 434 433 432 431 430 429 428 427 426 425 424 423 422 421 420 419 418 417 416 415 414 413 412 411 410 409 408 407 406 405 404 403 402 401 400 399 398 397 396 395 394 393 392 391 390 389 388 387 386 385 384 383 382 381 380 379 378 377 376 375 374 373 372 371 370 369 368 367 366 365 364 363 362 361 360 359 358 357 356 355 354 353 352 351 350 349 348 347 346 345 344 343 342 341 340 339 338 337 336 335 334 333 332 331 330 329 328 327 326 325 324 323 322 321 320 319 318 317 316 315 314 313 312 311 310 309 308 307 306 305 304 303 302 301 300 299 298 297 296 295 294 293 292 291 290 289 288 287 286 285 284 283 282 281 280 279 278 277 276 275 274 273 272 271 270 269 268 267 266 265 264 263 262 261 260 259 258 257 256 255 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 220 219 218 217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 197 196 195 194 193 192 191 190 189 188 187 186 185 184 183 182 181 180 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 --- #0 0xc018d12a in dumpsys () (kgdb) END CRASH DUMP Best regards, Jack L. Stone, Administrator Sage American http://www.sage-american.com [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Scripting help
Dear list: I hope think this is not off-topic, and is just about running a script in FBSD to delete specific lines in a flat file based on info in another flat file. My scripting skills are very limited and need help on how to purge my mail lists. We maintain several majordomo mail lists on a Tech magazine site (www.antennex.com) with 60,000 readers. Needless to say, it is real tedious to try and keep the lists up to date (groan). I have scripted a way to capture the bounces (by list) into a plain text file (1 address per line), but haven't figured out how to purge those from the lists. In other words, if the address is found in the bounce list, then delete from the main lists (also one address per line). I'd appreciate suggestions on how to do this. Thanks for any responses. :-) Best regards, Jack L. Stone, Administrator Sage American http://www.sage-american.com [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
NAT Redirect Ext address to multiple Int IPs on single machine
On my own servers which are all FBSD machines, I use the classic method of redirecting an IP address from a Gateway machine to a main host and its vhosts located on an Internal Machine like so: redirect_address 192.168.0.5 123.xxx.xxx.101 -- main host ...then Apache sends any requests to a vhost to its own IP: 192.168.0.5 - 123.xxx.xxx.102 192.168.0.5 - 123.xxx.xxx.103 However, on an ISP where I manage servers, we have a new FBSD Gateway set that is working fine for the internal FBSD machines behind that GW, just as above. However, there are also some Window Servers to be setup behind the Gateway and I was asked if I could do the redirect of several public IPs to a single Internal IP address as follows (the Win servers run IIS -- not Apache: Redirect from FBSD GW to single Window Server (all of the internal IPs are on one machine): redirect_address 192.168.0.5 123.xxx.xxx.101 redirect_address 192.168.0.6 123.xxx.xxx.102 redirect_address 192.168.0.7 123.xxx.xxx.103 I have never seen this setup before but, I tried it and it works -- that is until we pull out the Gateway ad0 drive and put it into another FBSD machine. This is an experiment to see if the main GW were to go down, could we pull the HD (or a clone HD) and move it to another machine to get right back up and running as before. We have tried this exercise on several identical FBSD machines and find that the redirects no longer work. Eventually, the one FBSD internal machine on this new network test will start resolving, but not the Window stations -- although even here, the FTP will work, but not the port 80 webs on the Window machines. We have tried to isolate anything that might be the slightest way different to figure out why the addresses no longer redirect to port 80 and I have pretty much concluded that IIS does not handle things like Apache does and that we cannot redirect as in the FBSD--Windows example above. Many times, I have successfully switched GW machines using the same HD and things worked as before. This allows me to bring down a GW machine to do maintenance while keeping all of the services running on another machine. Admittedly, I have not run Windows servers and am unfamiliar with IIS and highly suspect this as the culprit. Sorry for the length of this one, but was as brief as possible. Any suggestions greatly appreciated as this put us at the crossroads of whether to switch to FBSD as a GW/NAT/FW/Router. Thanks Happy Holidays! Best regards, Jack L. Stone, Administrator Sage American http://www.sage-american.com [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
NAT Address Redirects
On my own servers which are all FBSD machines, I use the classic method of redirecting an IP address from a Gateway machine to a main host and its vhosts located on an Internal Machine like so: redirect_address 192.168.0.5 123.xxx.xxx.101 -- main host ...then Apache sends any requests to a vhost to its own IP: 192.168.0.5 - 123.xxx.xxx.102 192.168.0.5 - 123.xxx.xxx.103 However, on an ISP where I manage servers, we have a new FBSD Gateway set that is working fine for the internal FBSD machines behind that GW, just as above. However, there are also some Window Servers to be setup behind the Gateway and I was asked if I could do the redirect of several public IPs to a single Internal IP address as follows (the Win servers run IIS -- not Apache: Redirect from FBSD GW to single Window Server (all of the internal IPs are on one machine): redirect_address 192.168.0.5 123.xxx.xxx.101 redirect_address 192.168.0.6 123.xxx.xxx.102 redirect_address 192.168.0.7 123.xxx.xxx.103 I have never seen this setup before but, I tried it and it works -- that is until we pull out the Gateway ad0 drive and put it into another FBSD machine. This is an experiment to see if the main GW were to go down, could we pull the HD (or a clone HD) and move it to another machine to get right back up and running as before. We have tried this exercise on several identical FBSD machines and find that the redirects no longer work. Eventually, the one FBSD internal machine on this new network test will start resolving, but not the Window stations -- although even here, the FTP will work, but not the port 80 webs on the Window machines. Moving back to the original machine works again. We have tried to isolate anything that might be the slightest way different to figure out why the addresses no longer redirect to port 80 and I have pretty much concluded that IIS does not handle things like Apache does and that we cannot redirect as in the FBSD--Windows example above. Many times, I have successfully switched GW machines using the same HD and things worked as before. This allows me to bring down a GW machine to do maintenance while keeping all of the services running on another machine. Admittedly, I have not run Windows servers and am unfamiliar with IIS and highly suspect this as the culprit. Sorry for the length of this one, but was as brief as possible. Any suggestions greatly appreciated as this put us at the crossroads of whether to switch to FBSD as a GW/NAT/FW/Router. Thanks Happy Holidays! Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
NATD remote management
Dear list: I manage a remote gateway/nat/router/fw server where it is not convenient for anyone to go downtown to the colo and do reboots. I've managed to do everything here remotely from my own console, including reboots when updating the OS requires it -- that is except when reconfiguring the natd.conf file to add another forwarding service. I can reboot and it comes up okay, but rather would avoid a reboot. BUT, if I try to kill/restart the natd daemon remotely, it kills my SSH session -- no restart of NATD -- cannot log back in and that means a 30-min trip for someone to the colo. That gets old and rather just reboot which is a lot less inconvenient. Obviously, when I do the kill of natd, it disconnects my SSH session and I can't restart the daemon so it can reread the natd.conf file for my changes. I've tried a background script, but that hasn't worked either. Perhaps a second session would stay alive either SSH or even a telnet session just for the duration for this event??? Or a better background script...?? I'd rather not do any uninformed guessing/gambling on different techniques to cause a lock out. There's probably a simple answer and hope someone will remind me what it is Many thanks Happy Holidays to the list. Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
NATD config remote management
Dear list: I manage a remote gateway/nat/router/fw server where it is not convenient for anyone to go downtown to the colo and do reboots. I've managed to do everything here remotely from my own console, including reboots when updating the OS requires it -- that is except when reconfiguring the natd.conf file to add another forwarding service. I can reboot and it comes up okay, but rather would avoid a reboot. BUT, if I try to kill/restart the natd daemon remotely, it kills my SSH session -- no restart of NATD -- cannot log back in and that means a 30-min trip for someone to the colo. That gets old and rather just reboot which is a lot less inconvenient. Obviously, when I do the kill of natd, it disconnects my SSH session and I can't restart the daemon so it can reread the natd.conf file for my changes. I've tried a background script, but that hasn't worked either. Perhaps a second session would stay alive either SSH or even a telnet session just for the duration for this event??? Or a better background script...?? I'd rather not do any uninformed guessing/gambling on different techniques to cause a lock out. There's probably a simple answer and hope someone will remind me what it is Many thanks Happy Holidays to the list. Best regards, Jack L. Stone, Administrator Sage American http://www.sage-american.com [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: NATD config remote management -SOLVED
At 05:58 PM 12.13.2003 +0100, Daan Vreeken [PA4DAN] wrote: On Saturday 13 December 2003 17:25, Jack L. Stone wrote: Dear list: I manage a remote gateway/nat/router/fw server where it is not convenient for anyone to go downtown to the colo and do reboots. I've managed to do everything here remotely from my own console, including reboots when updating the OS requires it -- that is except when reconfiguring the natd.conf file to add another forwarding service. I can reboot and it comes up okay, but rather would avoid a reboot. BUT, if I try to kill/restart the natd daemon remotely, it kills my SSH session -- no restart of NATD -- cannot log back in and that means a 30-min trip for someone to the colo. That gets old and rather just reboot which is a lot less inconvenient. Obviously, when I do the kill of natd, it disconnects my SSH session and I can't restart the daemon so it can reread the natd.conf file for my changes. I've tried a background script, but that hasn't worked either. Perhaps a second session would stay alive either SSH or even a telnet session just for the duration for this event??? Or a better background script...?? The simple answer is : a better background script :) I manage a bunch of remote machines and sometimes have to fool around with NATD remotely. When I do this, I make a cron entry that starts /root/ipfw-rescue . In there there's something like : /sbin/natd -f flush /sbin/natd 1 divert natd all from any to any via xl0 /sbin/natd 5 pass all from any to any killall -KILL natd /sbin/natd -n xl0 This way the machine will always recover from ipfw or natd tests within 10 minutes. When loading firewall rules remotely, I direct the output of ipfw to /dev/null to be sure ipfw loads the entire rule set. If for example you have a rc.firewall file like this : ${fwcmd} -f flush ${fwcmd} add blah blah ${fwcmd} add blah blah2 ${fwcmd} add 5000 pass all from any to any And you start it over SSH with : sh /etc/rc.firewall You will get locked out because ipfw prints every rule it adds. So after ipfw -f flush it will print ruleset flushed, but packets aren't allowed to travel outside over the SSH connection (since the ruleset is empty) so execution of rc.firewall stops there... :( Loading the ruleset like this does work : sh /etc/rc.firewall /dev/null 2/dev/null (Direct both stdout and stderr to /dev/null) Alternatively you could direct the output to a log-file so you can verify if anything went wrong. (And don't forget to remove the cron-entry when you're done) Hope this helps, Daan Daan Michael: Here's a simple script that I cooked up from the tips that works great: # killnatd #!/bin/sh ipfw -ade l | mail -s Flush Sage-One Firewall sageame /bin/sh /etc/rc.sagefw killall -KILL natd /sbin/natd -f /etc/natd.conf -n rl0 Plus, the cron job, just in case, as insurance is an excellent idea for managing daemons for remotes like this. Mnay thanks again! Best regards, Jack L. Stone, Administrator Sage American http://www.sage-american.com [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Help! Runaway NATD
FreeBSD 4.8-RELEASE-p13 - GW/router/NAT/FW/Caching DNS - Bind-8.3x + IPFW(8) Have just setup the above to route mainly for a LAN (in place of hardware router), but natd runs non-stop as per TOP(1) and keeps eating up the CPU until it crashes. Takes about 1/2 hour to eat up the resources and requires a reboot -- then the problem just starts over again. Typical firewall setup used in a number of our servers which diverts to port 8668 and then the packets are redirected to limited ports on the various workstations. NATD acts like it is in a loop and rehashing the packets over and over. There is a very light load of packets flowing over the rl0 external interface. Natd is loaded in usual way. Have killed off most other daemons, but NATD keeps running as shown by TOP(1) Never seen this before. Would appreciate any ideas on how to fix it Thanks in advance. Best regards, Jack L. Stone, Administrator Sage American http://www.sage-american.com [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help! Runaway NATD
At 10:42 PM 11.10.2003 +, Daniela wrote: On Monday 10 November 2003 21:18, Jack L. Stone wrote: FreeBSD 4.8-RELEASE-p13 - GW/router/NAT/FW/Caching DNS - Bind-8.3x + IPFW(8) Have just setup the above to route mainly for a LAN (in place of hardware router), but natd runs non-stop as per TOP(1) and keeps eating up the CPU until it crashes. Takes about 1/2 hour to eat up the resources and requires a reboot -- then the problem just starts over again. Have you tried to attach to the process with gdb(1) or truss(1)? Also please show us what `ps ax` says about natd. Can you get a core dump? Good luck! Daniela Thanks for the quick reply. No, haven't had chance to redo the kernel for gdb, etc. But, here's some more info from the ps -ax and log. The tcp start out very small and keep growing in big leaps as below -- this is just before running out of CPU From /var/log/alias.log icmp=0, udp=8, tcp=33830, pptp=0, proto=0, frag_id=0 frag_ptr=0 / tot=33838 (sock=0) icmp=0, udp=8, tcp=33831, pptp=0, proto=0, frag_id=0 frag_ptr=0 / tot=33839 (sock=0) ...a FEW minutes later: icmp=2, udp=9, tcp=41608, pptp=0, proto=0, frag_id=0 frag_ptr=0 / tot=41619 (sock=0) icmp=2, udp=9, tcp=41609, pptp=0, proto=0, frag_id=0 frag_ptr=0 / tot=41620 (sock=0) PID TT STAT TIME COMMAND 0 ?? DLs0:00.00 (swapper) 1 ?? ILs0:00.01 /sbin/init -- 2 ?? DL 0:00.00 (pagedaemon) 3 ?? DL 0:00.00 (vmdaemon) 4 ?? DL 0:00.01 (bufdaemon) 5 ?? DL 0:00.21 (syncer) 6 ?? DL 0:00.01 (vnlru) 23 ?? Is 0:00.00 adjkerntz -i 116 ?? Rs 6:53.75 /sbin/natd -f /etc/natd.conf -n rl0 133 ?? Ss 0:00.07 /usr/sbin/syslogd -s 136 ?? Is 0:00.13 /usr/sbin/named -u bind -g bind 139 ?? Ss 0:00.10 ntpd -p /var/run/ntpd.pid 142 ?? Is 0:00.01 timed -F earth.netwood.net 148 ?? Is 0:00.00 /usr/sbin/inetd -wW 150 ?? Is 0:00.02 /usr/sbin/cron 152 ?? Is 0:00.62 /usr/sbin/sshd 213 ?? Ss 0:00.41 /usr/local/sbin/httpd 218 ?? I 0:00.00 /usr/local/sbin/httpd 219 ?? I 0:00.00 /usr/local/sbin/httpd 220 ?? I 0:00.00 /usr/local/sbin/httpd 221 ?? I 0:00.00 /usr/local/sbin/httpd 222 ?? I 0:00.00 /usr/local/sbin/httpd 223 ?? Is 0:00.00 /usr/local/sbin/dhcpd 254 ?? S 0:00.10 /usr/local/libexec/mysqld --basedir=/usr/local --datadir=/var/db/mysql --user=mysql --pid-file=/va 264 ?? Is 0:00.04 /usr/local/libexec/postfix/master 265 ?? I 0:00.02 pickup -l -t fifo -u 266 ?? I 0:00.26 qmgr -l -t fifo -u 267 ?? I 0:00.07 sshd: kuni [priv] (sshd) 269 ?? I 0:00.04 sshd: [EMAIL PROTECTED] (sshd) 281 ?? I 0:00.07 sshd: jacks [priv] (sshd) 283 ?? S 0:04.24 sshd: [EMAIL PROTECTED] (sshd) 270 p0 Is 0:00.04 -csh (csh) 273 p0 I+ 0:00.05 _su (csh) 284 p1 Is 0:00.04 -tcsh (tcsh) 290 p1 S 0:00.07 _su (csh) 387 p1 R+ 0:00.00 ps ax 231 v0 Is+0:00.01 /usr/libexec/getty Pc ttyv0 232 v1 Is+0:00.01 /usr/libexec/getty Pc ttyv1 233 v2 Is+0:00.01 /usr/libexec/getty Pc ttyv2 234 v3 Is+0:00.01 /usr/libexec/getty Pc ttyv3 235 v4 Is+0:00.01 /usr/libexec/getty Pc ttyv4 236 v5 Is+0:00.01 /usr/libexec/getty Pc ttyv5 237 v6 Is+0:00.01 /usr/libexec/getty Pc ttyv6 238 v7 Is+0:00.01 /usr/libexec/getty Pc ttyv7 227 con- I 0:00.02 /bin/sh /usr/local/bin/safe_mysqld --user=mysql --datadir=/var/db/mysql --pid-file=/var/db/mysql/e Best regards, Jack L. Stone, Administrator Sage American http://www.sage-american.com [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: lan bandwidth issue
At 01:17 PM 11.6.2003 +, Chris Howells wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, On Wednesday 05 November 2003 11:25, silent slim wrote: i'd like the network to go at 100Mbps since both cards could be able too and the current speeds are laughable. The RealTek 8139 (rl0 and rl1) are pretty shitty network cards, the cheapest available (I can buy them for GBP £2, about USD $3). I only use them to connect my ADSL modem to my firewall because they're so cheap and performance is not an issue there. You'll almost certainly get much better performance with some more expensive 3Com or Intel cards. That may not be the only bottleneck of course. - -- Cheers, Chris Howells -- [EMAIL PROTECTED], [EMAIL PROTECTED] I've seen this before several thimes and I just can't pass it up this time. Nothing personal meant, though, so no flames please. This price advice then implies that if Realtek simply raised their prices, the card would be just fine...?? One should not just go by expensive, but do some research not just based on that easy benchmark. The cheapo measurement is very misleading considering some cards may just be on sale and are fine cards. ...or just because they use the rlx driver Best regards, Jack L. Stone, Administrator Sage American http://www.sage-american.com [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: crontab question...
At 11:57 AM 11.1.2003 +0100, Jean-Baptiste Quenot wrote: * Xpression: Hi guys, I was wondering if I have three script files on crontab and all they are executed at the same hour how it's function ??? AFAICT, cron forks a new process for each job scheduled at the same time. Cheers, -- Jean-Baptiste Quenot Indeed, if you run several cron jobs at the same time and then look at ps -ax you'll see several crons running. That's in addition to /usr/sbin/cron which is loaded. Best regards, Jack L. Stone, Administrator Sage American http://www.sage-american.com [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Random crash and/or reboots
At 08:24 AM 9.9.2003 +0200, Johannes Lochmann wrote: On Monday 08 September 2003 00:52, Jack L. Stone wrote: Hi, Nope... plenty cool and switching the entire server eliminates ALL hardware as being it. It may be a *really* stupid idea, but how about the power at your location? Would it be possible that you have a problem there? That would explain really random crashes on two OS releases on different hardware... Just a random thought... Johannes Lochmann No problem on power, checked that too. Have UPSes on every server and that keeps power pretty level and helps minimize any effects against the ups downs of the VAC levels. None-the-less, I even switched out the UPS with another one just in case it was a problem. Nope. Just moved to a 3rd server yesterday and will now see what and if either machine continues this behavior... Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Logging and IPFW
At 09:46 PM 9.9.2003 +0800, [EMAIL PROTECTED] wrote: just edit the rules concerned in rc.firewall to add the word log to rules you want logged. e.g. -- ${fwcmd} add pass log tcp from any to ${oip} 80 setup and tail the /var/log/security instead of messages. ...and, for its own ipfw log, put this in your syslog.conf, !ipfw *.* /var/log/ipfw.log and then touch the ipfw.log file in /var/log and then restart syslogd ...then tail that file, or send yourself emails of the log Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Random crash and/or reboots
At 02:00 PM 9.7.2003 -0400, Chuck Swiger wrote: Jack L. Stone wrote: A while back, on a couple of occasions, I posted a query about some bad behavior on my mail server. For the past several months, it has been either crashing/reboot or just rebooting. It's ALWAYS triggered by a SSH login, but at random and ONLY at the su to root -- usually the most time before reboot is about 2+ weeks and then contrasted by 2 in a row right after the reboot -- actually no pattern. It has never happened directly at the console. [ ... ] There are no indications of anything in the logs, and no core dumps. It just stops and reboots, and any random time it pick. Only a couple of times it has crashed without the remote login. These two paragraphs contradict each other, at least in part. :-) You're seeing frequent crashes, which seem to be strongly correlated with logging in as root, but you've also noticed crashes without the remote login, too? You should build a debug kernel, and enable dumping the system to swap upon a panic (man crash), so that you have more information about the crash. One tip was that I might have stale NFS mountabs -- cleared them out, but problem persisted. The above tip was suggested when I mentioned that on a couple or more of the occurrences, I managed to get to the console quickly enough to see (in bright bold) lockmgr locking against myself -- or close to that. My google of that error does mention stale mounts, but mostly about esoteric code stuff. No fix found anywhere. Hmm. Are you performing local mail delivery to NFS volumes? Normally (or historically, anyway), NFS locking problems cause rpc.lockd to crash or wedge, thus resulting in NFS locking not working and possibly grim results to file consistency for anything being changed by two or more processes at the same time. However, NFS locking problems generally do not result in a system panic. [ ... ] http://sageweb/tmp/1-lsof.txt http://sageweb/tmp/2-lsof.txt These URLs aren't fully-qualified hostnames. Please try again. :-) -- -Chuck Sorry about the lack of the full web address. here it is: http://www.sageweb.net/tmp/1-lsof.txt http://www.sageweb.net/tmp/2-lsof.txt http://www.sageweb.net/tmp/3-lsof.txt http://www.sageweb.net/tmp/4-lsof.txt http://www.sageweb.net/tmp/5-lsof.txt http://www.sageweb.net/tmp/6-lsof.txt Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Random crash and/or reboots
At 02:00 PM 9.7.2003 -0400, Chuck Swiger wrote: Jack L. Stone wrote: A while back, on a couple of occasions, I posted a query about some bad behavior on my mail server. For the past several months, it has been either crashing/reboot or just rebooting. It's ALWAYS triggered by a SSH login, but at random and ONLY at the su to root -- usually the most time before reboot is about 2+ weeks and then contrasted by 2 in a row right after the reboot -- actually no pattern. It has never happened directly at the console. [ ... ] There are no indications of anything in the logs, and no core dumps. It just stops and reboots, and any random time it pick. Only a couple of times it has crashed without the remote login. These two paragraphs contradict each other, at least in part. :-) Except, I doubt if those 2 nighttime reboots had the same problemthat's why I said always triggered by login to root forget the 2 unrelated ones. You're seeing frequent crashes, which seem to be strongly correlated with logging in as root, but you've also noticed crashes without the remote login, too? You should build a debug kernel, and enable dumping the system to swap upon a panic (man crash), so that you have more information about the crash. One tip was that I might have stale NFS mountabs -- cleared them out, but problem persisted. The above tip was suggested when I mentioned that on a couple or more of the occurrences, I managed to get to the console quickly enough to see (in bright bold) lockmgr locking against myself -- or close to that. My google of that error does mention stale mounts, but mostly about esoteric code stuff. No fix found anywhere. Hmm. Are you performing local mail delivery to NFS volumes? No, just running backups to backup server over NFS... and share the: /usr/ports ... /usr/obj ... and /usr/src from the build machines. Normally (or historically, anyway), NFS locking problems cause rpc.lockd to crash or wedge, thus resulting in NFS locking not working and possibly grim results to file consistency for anything being changed by two or more processes at the same time. However, NFS locking problems generally do not result in a system panic. [ ... ] http://sageweb/tmp/1-lsof.txt http://sageweb/tmp/2-lsof.txt These URLs aren't fully-qualified hostnames. Please try again. :-) Yeah, drats! Already sent these: http://www.sageweb.net/tmp/1-lsof.txt http://www.sageweb.net/tmp/2-lsof.txt http://www.sageweb.net/tmp/3-lsof.txt http://www.sageweb.net/tmp/4-lsof.txt http://www.sageweb.net/tmp/5-lsof.txt http://www.sageweb.net/tmp/6-lsof.txt -Chuck Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Random crash and/or reboots
At 04:02 PM 9.7.2003 -0400, Chuck Swiger wrote: Jack L. Stone wrote: [ ... ] Yes, I read that you've swapped most of the hardware out without result; can you set up a second machine running the same software and configuration and see whether it crashes in a similar fashion (or at all)? As I said earlier, I did set up a second machine (after all the hardware switching first) -- same thing. That's why I have concluded the problem must be the system. It did it on RELEASE-4.7 and now RELEASE-4.8 These don't provide any information that seems particularly relevant to diagnosing the problem. That was my conclusion too why I resorted to the list for help. [ The data says what services you're running-- apache, perl, sendmail, spamassassin, and suggest that your machine was idle or under a light load when the crashes happened. By weak inference, that suggests against a thermal problem like poor CPU cooling, but I wouldn't be certain of even that. ] Nope... plenty cool and switching the entire server eliminates ALL hardware as being it. -Chuck Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: MYSQL Fresh Reinstall, How?
At 02:52 AM 8.29.2003 -0400, Ben Dover wrote: I managed to mess up my MYSQL4.1 on my 5.1 box and I can't seem to get it straightened out. I think the best way to resolve this would be to do a fresh install of MYSQL server. I did a pkg_delete of MYSQL-server and client and installed again from ports but I'm getting the same error messages. Is there a way to just start out fresh like I never had MYSQL installed in the first place? The error I'm getting is: 030829 2:36:36 Fatal error: Can't open privilege tables: Can't find file: './mysql/host.frm' (errno: 13) 030829 02:36:36 mysqld ended This started out from something I did while trying to get Plesk6 to work on 5.1 (which I did) but without MYSQL working I uninstalled Plesk6. I think what I did was delete the database mysql and I guess it is essential. Any assistance would be appreciated but I'm leaning toward a fresh install if possible. If you can use portugrade, it was always a simple one-line command on FBSD-4.x: # portupgrade -m '-DSKIP_INSTALL_DB' mysql-server-3.xx.xx The above preserves the databases just fine. Haven't tried it on 5.1 though Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: upgrading mysql
At 11:56 AM 8.29.2003 -0700, Michelle wrote: I would like to upgrade mysql from mysql-server-3.23.54 to mysql-server-3.23.57 and understand that I will need to do a dump before upgrading since the upgrade needs to overwrite the databases. Since I have never done this before, I just want to make sure I have the correct steps after reading over the mysql site and the man pages. First I will dump all of my databases: mysqldump -A backup-file.sql Then I will shutdown the mysql server and upgrade the mysql port with the environment variable OVERWRITE_DB defined when running make install. To rebuild the databases do I simply use: mysqldump --all-databases backup-file.sql and then restart the mysql server using mysqld_safe Am I missing any steps? Thank you, Michelle I posted this just a few hours ago. Use portugrade and its easy. It is a simple one-line command on FBSD-4.x: # portupgrade -m '-DSKIP_INSTALL_DB' mysql-server-3.23.54 Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: how to stop the ddos ot dos attack ?
At 03:41 AM 8.28.2003 +0300, ZaiD Dashti wrote: Dear security i got a DoS attack, how i can stop it ? note: i have a lan network in my home, and DSL connection which is connected to the hub direct, and i have 3 pc's. thanks I use a firewall which allows a block of DoS IPs from any to any also can close ports easily. Plus, if you log, you can then monitor the further attempts Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: nmbclusters and nmbufs
At 11:53 AM 8.19.2003 +0400, Varshavchick Alexander wrote: Hi, Can anybody advise me please if I want to increase nmbclusters option in kernel, can I just type sysctl kern.ipc.nmbclusters=16384 without rebooting the server, or is the only way to set the NMBCLUSTERS option in kernel, install the new kernel and reboot? And secondly, also I need to increase nmbufs kernel option, but there seems to be no such option in LINT, what should I tweak? sysctl kern.ipc.nmbufs=32768 without rebooting or kern.ipc.nmbufs=32768 in /boot/loader.conf and reboot? Thanks Alexander Varshavchick, Metrocom Joint Stock Company You can modify those on fly without a reboot with: sysctl kern.nmbclusters=n (n being the number of choice) You can then put the statements in the /boot/loader.conf and will load on next boot as alternative to changing the kernel. I modified the kernel here. Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Kernel - maxusers, NMBCLUSTERS etc.
At 03:55 PM 8.13.2003 +0100, Jez Hancock wrote: On Wed, Aug 13, 2003 at 10:46:59AM -0400, Grant Peel wrote: 1. Does anyone use the maxusers=0 parm? If so is it safe, ie does it dynamicly set maxusers on-the-fly, or does it only set at boot time based on the current number of users? Yes and Yes, the setting is assigned at boot time and depends on an algorithm which you can read about in tuning(7) IIRC. I would say give it a go and see how it fairs. Check out sysctl -a for your current settings and see how it changes when you set MAXUSERS to 0. Also check out fstat(1) to see what open files you currently have and what is consuming your file descriptors - perhaps you can cut down the number of open files. -- Jez 132 is WAY too low. And, yes if you set maxusers to zero, this will be set by the system and will also change as and when it needs too. I have some servers that shows in excess of 12000, and lowes is at about 8000 (8192). You can always reset the maxfiles without a reboot via this command: sysctl -w kern.maxfiles=8192 It can also be placed in the /boot/loader.conf and you don't have to change the kernel right away. That can hold you until you rebuild the kernel and reboot Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Script help needed please
At 03:44 PM 8.14.2003 +0100, Jez Hancock wrote: On Thu, Aug 14, 2003 at 08:49:49AM -0500, Jack L. Stone wrote: Server Version: Apache/1.3.27 (Unix) FrontPage/5.0.2.2510 PHP/4.3.1 The above is typical of the servers in use, and with csh shells employed, plus IPFW. My apologies for the length of this question, but the background seems necessary as brief as I can make it so the question makes sense. The problem: We have several servers that provide online reading of Technical articles and each have several hundred MB to a GB of content. When we started providing the articles 6-7 years ago, folks used browsers to read the articles. Now, the trend has become a more lazy approach and there is an increasing use of those download utilities which can be left unattended to download entire web sites taking several hours to do so. Multiply this by a number of similar downloads and there goes the bandwidth, denying those other normal online readers the speed needed for loading and browsing in the manner intended. Several hundred will be reading at a time and several 1000 daily. snip There is no easy solution to this, but one avenue might be to look at bandwidth throttling in an apache module. One that I've used before is mod_throttle which is in the ports: /usr/ports/www/mod_throttle which allows you to throttle users by ip address to a certain number of documents and/or up to a certain transfer limit. IIRC it's fairly limited though in that you can only apply per IP limits to _every_ virtual host - ie in the global httpd.conf context. A more finegrained solution (from what I've read, haven't tried it) is mod_bwshare - this one isn't in the ports but can be found here: http://www.topology.org/src/bwshare/ this module overcomes some of the shortfalls of mod_throttle and allows you to specify finer granularity over who consumes how much bandwidth over what time period. Now, my question: Is it possible to write a script that can constantly scan the Apache logs to look for certain footprints of those downloaders, perhaps the names, like HTTRACK, being one I see a lot. Whenever I see one of those sessions, I have been able to abort them by adding a rule to the firewall to deny the IP address access to the server. This aborts the downloading, but have seen the attempts constantly continue for a day or two, confirming unattended downloads. Thus, if the script could spot an offender and then perhaps make use of the firewall to add a rule containing the offender's IP address and then flush to reset the firewall, this would at least abort the download and free up the bandwidth (I already have a script that restarts the firewall). Is this possible and how would I go about it??? If you really wanted to go down this route then I found a script someone wrote a while back to find 'rude robots' from a httpd logfile which you could perhaps adapt to do dynamic filtering in conjunction with your firewall: http://stein.cshl.org/~lstein/talks/perl_conference/cute_tricks/log9.html If you have any success let me know. -- Jez Interesting. Looks like a step in the right direction. Will weigh this one along the possibilities. Many thanks...! Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Kernel - maxusers, NMBCLUSTERS etc.
At 11:44 AM 8.13.2003 -0400, Grant Peel wrote: Kewl, Thanks for all the help thus far. On both my productive machines, I have set maxopenfiles to 8192 for the short term. (Kernel rebuilding wiats until 0300 AM :-). I found maxusers is read only and can only be set at boot time. Now, One machine is FBSD 4.4 and the other is 4.8. I can't use the maxusers setting '0' on the 4.4 box, so what setting would you all suggest? This is one of our primary web/mail/sql servers serving about 600 emails, 250 domains, and a number of messageboards. (MySQL based). It should be noted this machine has been very reliabvle and has suffered no data loss in 1.5 years (so far). The other machine will be set to maxusers 0 on next boot. -Grant On the 4.4 machine, go to the 32 user setting Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Kernel - maxusers, NMBCLUSTERS etc.
At 11:44 AM 8.13.2003 -0400, Grant Peel wrote: Kewl, Thanks for all the help thus far. On both my productive machines, I have set maxopenfiles to 8192 for the short term. (Kernel rebuilding wiats until 0300 AM :-). I found maxusers is read only and can only be set at boot time. Now, One machine is FBSD 4.4 and the other is 4.8. I can't use the maxusers setting '0' on the 4.4 box, so what setting would you all suggest? This is one of our primary web/mail/sql servers serving about 600 emails, 250 domains, and a number of messageboards. (MySQL based). It should be noted this machine has been very reliabvle and has suffered no data loss in 1.5 years (so far). The other machine will be set to maxusers 0 on next boot. -Grant Grant W. Peel Server Admin [EMAIL PROTECTED] http://thenetnow.com Oh, should have also suggested you check the maxfiles a few times to see where it is. MySQL can be demanding. Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Script help needed please
Server Version: Apache/1.3.27 (Unix) FrontPage/5.0.2.2510 PHP/4.3.1 The above is typical of the servers in use, and with csh shells employed, plus IPFW. My apologies for the length of this question, but the background seems necessary as brief as I can make it so the question makes sense. The problem: We have several servers that provide online reading of Technical articles and each have several hundred MB to a GB of content. When we started providing the articles 6-7 years ago, folks used browsers to read the articles. Now, the trend has become a more lazy approach and there is an increasing use of those download utilities which can be left unattended to download entire web sites taking several hours to do so. Multiply this by a number of similar downloads and there goes the bandwidth, denying those other normal online readers the speed needed for loading and browsing in the manner intended. Several hundred will be reading at a time and several 1000 daily. Further, those download utilities do not discriminate on the files downloaded unless the user sets them to exclude certain types of files they don't need for the articles. All or most don't bother to set the parameters. They just turn them loose and go about their day. Essentially a DoS for normal readers who notice the slowdown, but not with malice. This method downloads a tremendous amount of unnecessary content. Some downloaders have been contacted to stop (if we spot an email address from a login) and in response they simply weren't aware of the problems they were making and agreed to at least spread downloads over longer periods of time. I can live with that. A possible solution? Now, my question: Is it possible to write a script that can constantly scan the Apache logs to look for certain footprints of those downloaders, perhaps the names, like HTTRACK, being one I see a lot. Whenever I see one of those sessions, I have been able to abort them by adding a rule to the firewall to deny the IP address access to the server. This aborts the downloading, but have seen the attempts constantly continue for a day or two, confirming unattended downloads. Thus, if the script could spot an offender and then perhaps make use of the firewall to add a rule containing the offender's IP address and then flush to reset the firewall, this would at least abort the download and free up the bandwidth (I already have a script that restarts the firewall). Is this possible and how would I go about it??? Many thanks for any ideas on this! Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Using Frontpage Exensions with Apache -solution
At 12:03 PM 8.4.2003 -0500, Darryl Hoar wrote: I have not yet been successful in implimenting named virtual hosts with frontpage extension, so that part of the story continues. The fp_install.sh will ask if you want to setup any virtual hosts... Just answer yes and it's the same as the main root setup with logins. Each vhost needs a root of its own. Make sure your user:group info for each vhost is at your finger tips. Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Sendmail reject non-extant hosts? RFC1123
At 09:38 PM 7.20.2003 +0100, Matthew Seaman wrote: On Sun, Jul 20, 2003 at 01:37:15PM -0500, Kevin Kinsey, DaleCo, S.P. wrote: I'm not happy that Sendmail is allowing connections from non- existent hosts (i.e., spammers...) I run Sendmail more or less straight out of the box on -stable. I had been under the impression that the line ALL : PARANOID : RFC931 20 : deny in /etc/hosts.allow would help reject some of this stuff. However, as the amount of spam in my inbox is beginning to attest, this isn't the case. I've been googling and searching the archives with strings similar to the one in the title, and haven't yet grok what I'm supposed to do to get this to work... So, how do I tell Sendmail that if a host doesn't exist, (i.e. d3kr890d.129ddk.org) I don't want to talk to it... The way that sendmail(8) uses tcp wrappers is slightly different to most daemons. Instead of outright refusing to connect (which would lead to the other side trying again every half hour or so for the next five days), it permits the remote side to connect and then issues a permanent reject code during the SMTP dialogue. Even without enabling tcp wrappers functionality, sendmail should still reject egregiously forged addresses. You have to add FEATURE(`accept_unresolvable_domains')dnl to your `hostname`.mc file to allow incoming mail from domains without either A or MX records registered in the DNS. Cheers, Matthew Matthew: Are you saying that the above 'FEATURE' should be used in addition to Dan Nelson's suggestion for the adding of these local_rules...? http://www.sendmail.org/~ca/email/chk-810.html#810UNRESOLVIP This is something I had been looking for just yesterday made up a procmail recipe to grab the forgeries specifically. I'm getting quite a few of them here. Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Panic - Locking Against Myself
Running FBSD-4.8 Release Random panic reboot - cause locking against myself. appears related to lockmgr. I had asked the list about this a few weeks ago, but had no takers. Previously, all I could find via google was about lockmgr, but any discussions was about code which is way beyond my skills. References were made to stale mounts, but there are none in this case. I'm having the problem on a mail server that incurs the panic following an attempt at an ssh login. It happens about once a week or so, but no pattern. It's not hardware. Have changed everything, including the server itself -- bit, not the system contents though which remained on a new hard drive replacement. If anyone knows what causes this and what the fix may be, I could sure use the help. This has been going on for several months and not a good thing. Thanks! Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Replacing string in multiple files
Am running FBSD.4.8-R At times, I need to replace an existing string in a file that has the same name in all ~user accounts and know there must be a short script to do that and suspect it involves sed(1). However, had no luck getting it to work yet. Basically want to do this: - find same files in all ~users by same name ~users/myfile - replace this ${string} with this ${string} in the above files - report list of above files modified successfully That's it. Script help appreciated (csh shells) Thanks in advance for any suggestions! Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Replacing string in multiple files
At 01:26 PM 7.10.2003 -0500, Dan Nelson wrote: In the last episode (Jul 10), Jack L. Stone said: Am running FBSD.4.8-R At times, I need to replace an existing string in a file that has the same name in all ~user accounts and know there must be a short script to do that and suspect it involves sed(1). However, had no luck getting it to work yet. Basically want to do this: - find same files in all ~users by same name ~users/myfile - replace this ${string} with this ${string} in the above files - report list of above files modified successfully If all your users share a common hierarchy: sed -i.bak -e s/oldstring/newstring/ /home/*/myfile You'll need to be running FreeBSD 4.7 or newer for sed -i to work. Not sure how to get a list of changed files, though. Maybe just do a grep beforehand? -- Dan Nelson [EMAIL PROTECTED] Thanks, Dan knew it would be simple. Can probably grep and/or diff for the changes Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: cron executes entries twice
At 04:03 AM 7.3.2003 +0100, Andrew Boothman wrote: On Thursday 03 July 2003 1:23 am, John wrote: Hi All, For quite some time now my system has been executing all entries in the crontab twice, instead of the expected once. This happens most obviously for the periodic scripts, but also on some scripts that I added for nightly, weekly, or runs at reboot. This started not long after a buildworld upgrade from one 4.x to another 4.x. Which upgrade, I don't recall unfortunately. The executions of the scripts appear to occur within minutes of each other, if not seconds. Hmmm - that is strange. My only thought off-hand would be that someone has managed to install /etc/crontab as a personal crontab? Try 'crontab -l' as root and any other possible users to see if they have a crontab that is similar to the /etc/crontab Just a thought.. Andrew Or do this: # ls -l /var/cron/tabs and that will show the crontabs running. open them to see the contents. That will be faster if you have a lot of users. Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Running a rand or random script
I need to run a script, perhaps using FBSD's 'rand' or 'random' command (or any other) that will generate one single 5-digit number 'at random' between 1-9 Anyone have thoughts on how to do this?? Many thanks for any suggestions. Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Running a rand or random script
At 05:32 PM 6.16.2003 +0100, Matthew Seaman wrote: On Mon, Jun 16, 2003 at 11:15:17AM -0500, Jack L. Stone wrote: I need to run a script, perhaps using FBSD's 'rand' or 'random' command (or any other) that will generate one single 5-digit number 'at random' between 1-9 Anyone have thoughts on how to do this?? perl -e 'printf %0.5d\n, int(rand(9) + 1);' Assuming that range is inclusive. Cheers, Matthew Nb. Don't use srand() explicitly --- perl will auto-seed the PRNG from /dev/urandom if left to it's own devices. -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Matthew: Your one-liner is just exactly what I needed. THANKS! Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Make -- Illegal instruction - core dumpedI've been trying to
I've been trying to update, via sources, an older server (586 CPU) that's running a real sparse 4.5-RELEASE, but each time I use: # make 'target' I get the following error. Illegal instruction - core dumped It's got me stopped in my tracks. Any tips for a fix appreciated Thanks! Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Make -- Illegal instruction - core dumpedI've been trying to
At 06:34 PM 6.13.2003 -0400, Bill Moran wrote: Jack L. Stone wrote: I've been trying to update, via sources, an older server (586 CPU) that's running a real sparse 4.5-RELEASE, but each time I use: # make 'target' I get the following error. Illegal instruction - core dumped It's got me stopped in my tracks. Any tips for a fix appreciated Sounds like buggy hardware. Does it always fail at the same place? If not, it's probably bad RAM or a failing or overheating processor. Try out some tools like memtest86 or cpuburn to try to narrow it down. -- Bill Moran Thanks for the reply, Bill. The above error message is as far as it gets. #make 'target' and then the error is returned Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Make -- Illegal instruction - core dumpedI've been trying to
At 04:24 PM 6.13.2003 -0700, Joshua Oreman wrote: On Fri, Jun 13, 2003 at 05:52:42PM -0500 or thereabouts, Jack L. Stone seemed to write: At 06:34 PM 6.13.2003 -0400, Bill Moran wrote: Jack L. Stone wrote: I've been trying to update, via sources, an older server (586 CPU) that's running a real sparse 4.5-RELEASE, but each time I use: # make 'target' I get the following error. Illegal instruction - core dumped It's got me stopped in my tracks. Any tips for a fix appreciated Sounds like buggy hardware. Does it always fail at the same place? If not, it's probably bad RAM or a failing or overheating processor. Try out some tools like memtest86 or cpuburn to try to narrow it down. -- Bill Moran Thanks for the reply, Bill. The above error message is as far as it gets. #make 'target' and then the error is returned Does that happen with every make command? Have you tried different Makefiles to see whether the problem was with `make' itself? In any event, here's how to get some sense out of that error. First, make a debugging version of the `make' executable: # gcc -g -o /usr/bin/make_g /usr/src/usr.bin/make/*.c \ /usr/src/usr.bin/make/lst.lib/*.c -I/usr/src/usr.bin/make \ -DDEFSHELL=1 Then try and reproduce the error with `make_g' instead of `make'. If it does the same thing, do this: $ gdb /usr/bin/make_g make_g.core [copyright msgs snipped] (gdb) -- Type 'where' at this prompt and send us the output. (gdb) quit -- Josh Josh: I didn't get a core, but here is the whole excercise I tried following your instructs: make_g installworld snipped here where stopped...osreldate.h /usr/include *** Signal 4 Stop in /usr/src/include. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. [EMAIL PROTECTED] gdb /usr/bin/make_g make_g.core GNU gdb 4.18 (FreeBSD) Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386-unknown-freebsd...Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 in elfstab_build_psymtabs Deprecated bfd_read called at /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf /usr/src/make_g.core: No such file or directory. (gdb) where No stack. (gdb) quit Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]