Re: am i back up....???

2011-04-04 Thread Zbigniew Szalbot
Hello,

On 4 April 2011 11:41, Arthur Chance free...@qeng-ho.org wrote:

 In the near future I'm probably going to have to implement a web mail system 
 for times when my clients are travelling and don't have access to an IMAP 
 capable

I am not sure why some people are against RC - it seems that it can do
indentation and marking quite well (at least from what I have tried).
Give it a try.

Zbigniew Szalbot
___
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: Kind of OFF Topic. Advise pls.

2011-03-18 Thread Zbigniew Szalbot
 Content Management
                Joomla 1.5
Joomla 1.6
and/or
Wordpress depending on your needs

 E-Commerce
PrestaShop

Not sure about CRM as I do not use it but I am sure others will have a clue.

Warm regards,

Zbigniew Szalbot
___
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: mysql missing from my home-page WordPress....

2011-03-03 Thread Zbigniew Szalbot
Hello,

        Thanks duly noted to everyone.  I was beginning to wonder if I
        had lost what mind I've got left!  Not used to losing my two trial
        blog, (1), and beyond that, being dumbfounded at how messy it
        may be to keep WP current.   (2)

It seems to me you are making you life more difficult with WP than it
needs to be. Keeping WP current is a piece of cake, and you do not
need to do it via ports. WP has built-in ftp capabilities and once you
provide it with proper credentials, upgrading is as easy as clicking
the upgrade button from within WP admin interface. This way you can
keep multiple WP installations and easily maintain them.  :)

Warm regards,

Zbigniew Szalbot
___
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: Archiving directories / zip format

2010-12-06 Thread Zbigniew Szalbot
Hello,

On 6 December 2010 08:45, Polytropon free...@edvax.de wrote:
 You can install the zip program:

        # pkg_add -r zip

 and then use it recursively, e. g.

        % zip -r9 stuff.zip dir1 dir2 dir3 fileX fileY

 If there is no need for compression, change 9 to 0. Also
 see man zip for details.

Great! Thanks so much! I occasionally need to extract a few files from
the archive so this is very useful. Thank you!

All the best from Poland.

Zbigniew Szalbot
___
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: SV: Archiving directories / zip format

2010-12-06 Thread Zbigniew Szalbot
Dear all,

On 6 December 2010 22:58, Polytropon free...@edvax.de wrote:
 On Mon, 6 Dec 2010 13:49:23 +0100, Hasse Hansson ha...@thorshammare.org 
 wrote:
 For windows I've used this program for years, http://www.ghisler.com/
 Total Commander. Also good for moving around files. Even contain a FTP 
 client.

 Allow me to mention a program called FAR manager: If I
 remember correctly, it has FTP and archiver support, and
 comes in a handy text mode application.

I would like to thank everyone who contributed - I really appreciate
all the input I got. In the end I decided to use the zip port because
it works fine and I do not have winrar nor winzip installed on my
Windows machine. Thank you!

Zbigniew Szalbot
___
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


Archiving directories / zip format

2010-12-05 Thread Zbigniew Szalbot
Dear all,

From time to time I want to archive a quite a few directories to
download them conveniently. I have been using tar to do it, endingin
up with a tar.gz file. But the problem with it is that I do not have a
unix machine at home so if I want to extract something or unpack the
content, there is no easy way to do that. My question basically is if
there is a way to end up with a zip file? Or are there any windows
tools to unzip and/or extract content from tar.gz files?

Many thanks in advance!

Zbigniew Szalbot
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


A command to check network transfer

2010-10-01 Thread Zbigniew Szalbot
Dear all,

I cannot for the life of mine remember the command which allows me to
check incoming and outgoing transfer on lo0 and re0. Can you please
help? :)

Thanks a lot!

Zbigniew Szalbot
___
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: A command to check network transfer

2010-10-01 Thread Zbigniew Szalbot
Hi there,

2010/10/1 Fernando Apesteguía fernando.apesteg...@gmail.com:
 I cannot for the life of mine remember the command which allows me to
 check incoming and outgoing transfer on lo0 and re0. Can you please
 help? :)

 I use iftop[1]

No, this one is built into the system. I havent't used it for some
time and cannot now recollect it. :(

Thanks!

Zbigniew Szalbot
___
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: A command to check network transfer

2010-10-01 Thread Zbigniew Szalbot
 Try 'systat -if 1' or 'netstat -I re0 -w 1' / 'netstat -I lo0 -w 1'.
 One of them is probably what you are thinking of.

systat -if
This is what I was looking for. Many, many thanks!

Zbigniew Szalbot
___
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: Upgrading from 8.0-Release /

2010-09-22 Thread Zbigniew Szalbot
Dear all,

 Yes, start the upgrade from the beginning again.
 If this does not work and you don't intend to rollback from a previous
 update you may take a look at /var/db/freebsd-update and clean it out.

OK. I know now. At some point the system asks if changes look
reasonable. I pressed y for most cases but with sshd_config I pressed
n, because I was not sure whether the changes will not delete some of
the changes I implemented within the file. As soon as I did this, the
process stopped.

Does this look reasonable (y/n)? n
# freebsd-update install
No updates are available to install.
Run '/usr/sbin/freebsd-update fetch' first.

The suggested changes were mostly such as:

-#VersionAddendum FreeBSD-20090522
+#VersionAddendum FreeBSD-20100308

So it seems I should press y each time?

Many thanks!

Zbigniew Szalbot
___
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


Upgrading from 8.0-Release /

2010-09-21 Thread Zbigniew Szalbot
Dear all,

I hope you can advise. According to

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html

once mergemaster is completed, I should issue freebsd-update install.

However, when I do this, I get:

# freebsd-update install
No updates are available to install.
Run '/usr/sbin/freebsd-update fetch' first.

However, I did fetch first.

128601287012880128901290012910129201293012940129501296012970
done.
Applying patches... done.
Fetching 440 files... done.
Attempting to automatically merge changes in files... done.

So I am not sure where to go from here. Should I try to fetch again,
reboot or do something else?

I am using FreeBSD 8.0-RELEASE-p4 (GENERIC).

Thank you!

-- 
Zbigniew Szalbot
___
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: Upgrading from 8.0-Release /

2010-09-21 Thread Zbigniew Szalbot
Hello,

 Sure you don't have a freebsd-update cron running which runs a the time
 just between executing freebsd-update -r 8.1-RELEASE + merging config
 files and executing freebsd-update install?
 I upgraded some boxes to 8.1 and did not see this problem.

No. Nothing automated. That's why I am surprised and not sure what to
do next. Do you think I should try to invoke the upgrade (-r
8.1-RELEASE upgrade) command again?

-- 
Zbigniew Szalbot
___
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: Upgrading Apache fails - Solved

2010-07-28 Thread Zbigniew Szalbot
Hello,

 When I check pkg_info -Ix apr, I get:

 pkg_info -Ix apr
 apr-ipv6-devrandom-gdbm-db42-mysql50-1.4.2.1.3.9_1 Apache Portability Library

Acutally I used
1. pkg_delete apr-ipv6-devrandom-gdbm-db42-mysql50-1.4.2.1.3.9_1
2. pkgdb -F
3. portinstall apache

All working now. :)


-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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: Upgrading Apache fails - Solved

2010-07-27 Thread Zbigniew Szalbot
Hello,

 I had to pkg_delete both apache22 and apr1, pkgdb -F, then reinstall
 apache22, but all is well now.

I followed the original suggestions from UPDATING

1. pkg_delete -f apache-2.\*
2. portupgrade -f -o devel/apr1 devel/apr
3. portinstall www/apache22

However, I get the following then:

checking for APR... configure: error: the --with-apr parameter is
incorrect. It must specify an install prefix, a build directory, or an
apr-config file.
===  Script configure failed unexpectedly.
Please report the problem to apa...@freebsd.org [maintainer] and attach the
/usr/ports/www/apache22/work/httpd-2.2.16/config.log including the output
of the failure of your make command. Also, it might be a good idea to provide
an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1

Stop in /usr/ports/www/apache22.
*** Error code 1

Stop in /usr/ports/www/apache22.
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portinstall20100728-30282-trybeq-0 env make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! www/apache22  (configure error)

When I check pkg_info -Ix apr, I get:

pkg_info -Ix apr
apr-ipv6-devrandom-gdbm-db42-mysql50-1.4.2.1.3.9_1 Apache Portability Library
xf86dgaproto-2.0.3  XFree86-DGA extension headers
xineramaproto-1.1.2 Xinerama extension headers

Do you think I should delete the apr port before attempting to install
apache again?

Thank you!


-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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: BSD logo

2010-07-26 Thread Zbigniew Szalbot
Hello,

On Mon, Jul 26, 2010 at 17:39, Andy Balholm a...@balholm.com wrote:
 The original post looks to me like an expression of sincere concern about 
 BSD's image

I'd say, if the logo is hard to cope with for some, then they may be
comforted in something of a far more importance than the logo -
FreeBSD bottom line is power to serve - a very Christian concept,
though unfortunately often forgotten. :) Add reliability, openness and
a friendly followers on top of that and you have got a very attractive
package that would be hard to beat.

Warm regards,

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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


custom log in website folder

2010-07-20 Thread Zbigniew Szalbot
Dear all,

All my website logs are in /var/log but one user would like to have
access to a custom log specific to his site. Sites are in
/usr/local/v/

How can I make /var/log/custom.log available to him in /usr/local/v/site/logs/?

Does it need a symlink? But will he be able to read the log if it is
only a symlink to /var/log/custom.log?

I'd appreciate your suggestions and sorry for asking a basically
non-freebsd related question but this community has always been a
wonderul source of inspiration and help.

Thank you!

Zbigniew Szalbot
___
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: PHP upgrade fails

2010-05-21 Thread Zbigniew Szalbot
Hello,

 it is always a good advice to check /usr/ports/UPDATING before you start
 upgrading anything, there is a manual in how to upgrade php to version 5.3
 without problems (as far your application runs with 5.3).
Absolutely so! I wish I had done that.

I still have a strange problem. PHP seems almost fine at the moment.
Sites are working to some extent at least. But I need to add one php
extension so I went to /usr/ports/lang/php5-extensions, followed by
make config.

There I deselected some of the extensions I do not really need plus
checked the one I am after.

The installation went fine (I did not notice any errors) but when I issue:

pkg_info -Ix php5
php5-5.3.2  PHP Scripting Language
php5-bcmath-5.3.2   The bcmath shared extension for php
php5-bz2-5.3.2  The bz2 shared extension for php
php5-ctype-5.3.2The ctype shared extension for php
php5-dom-5.3.2  The dom shared extension for php
php5-extensions-1.4 A meta-port to install PHP extensions
php5-filter-5.3.2   The filter shared extension for php
php5-ftp-5.3.2  The ftp shared extension for php
php5-gd-5.3.2   The gd shared extension for php
php5-gettext-5.3.2  The gettext shared extension for php
php5-hash-5.3.2 The hash shared extension for php
php5-iconv-5.3.2The iconv shared extension for php
php5-imap-5.3.2 The imap shared extension for php
php5-json-5.3.2 The json shared extension for php
php5-mbstring-5.3.2 The mbstring shared extension for php
php5-mcrypt-5.3.2   The mcrypt shared extension for php
php5-mysql-5.3.2The mysql shared extension for php
php5-mysqli-5.3.2   The mysqli shared extension for php
php5-openssl-5.3.2  The openssl shared extension for php
php5-pdo-5.3.2  The pdo shared extension for php
php5-posix-5.3.2The posix shared extension for php
php5-pspell-5.3.2   The pspell shared extension for php
php5-session-5.3.2  The session shared extension for php
php5-simplexml-5.3.2 The simplexml shared extension for php
php5-tokenizer-5.3.2 The tokenizer shared extension for php
php5-xml-5.3.2  The xml shared extension for php
php5-xmlreader-5.3.2 The xmlreader shared extension for php
php5-xmlwriter-5.3.2 The xmlwriter shared extension for php
php5-zip-5.3.2  The zip shared extension for php
php5-zlib-5.3.2 The zlib shared extension for php

I cannot find php5-pdf* which I was trying to install.

Would you have any advice as to why this is happening and how to
troubleshoot it on a  8.0-RELEASE-p2 with a Generic kernel?

Many, many thanks in advance!


-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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


PHP upgrade fails

2010-05-20 Thread Zbigniew Szalbot
Hello,

long story short - php52 upgarde failed.

php -v
PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20090626/pdf.so' - Cannot open
/usr/local/lib/php/20090626/pdf.so in Unknown on line 0
PHP 5.3.2 with Suhosin-Patch (cli) (built: May 20 2010 23:47:26)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies


I followed this advice (although I should have done it prior to upgrading):

 As of php 5.3, a few extensions were removed from or included into the core
  php5 package.  Follow the steps below to update your installation.

  1) Delete the following packages (if installed):
 - php5-dbase
 - php5-ncurses
 - php5-pcre
 - php5-spl
 - php5-ming
 - php5-mhash

and then I tried to rebuild php port.

However, php is not working and the ports cannot be updated.

 portupgrade -fv
---  Session started at: Fri, 21 May 2010 00:36:58 +0200
** None has been installed or upgraded.
---  Session ended at: Fri, 21 May 2010 00:36:58 +0200 (consumed 00:00:00)

What do I do now? How can I now upgrade the ports? Can you help me,
please? :) Thanks!

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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: PHP upgrade fails

2010-05-20 Thread Zbigniew Szalbot
Hello,

 Try reinstalling php5-extensions, which should rebuild all the ones
 that need to be rebuilt.

 The error messages from PHP should give you a hint which libraries
 it's looking for.
I made some progress but still

php -v
PHP Warning:  Module 'pdf' already loaded in Unknown on line 0
PHP 5.3.2 with Suhosin-Patch (cli) (built: May 21 2010 01:21:41)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

Even after restarting apache php-based pages do not load. Many thanks
in advance for further hints!


-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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: PHP upgrade fails

2010-05-20 Thread Zbigniew Szalbot
Hello again,

 Even after restarting apache php-based pages do not load. Many thanks
 in advance for further hints!
OK. I commented the extension=pdf.so in extensions.ini and php no
longer complains. :)

Thanks!

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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: PHP upgrade fails

2010-05-20 Thread Zbigniew Szalbot
OK. Never declare victory too fast :)

 Hello again,

 Even after restarting apache php-based pages do not load. Many thanks
 in advance for further hints!
 OK. I commented the extension=pdf.so in extensions.ini and php no
 longer complains. :)

pkg_info -Ix php
php5-5.3.2  PHP Scripting Language
php5-bcmath-5.3.2   The bcmath shared extension for php
php5-bz2-5.3.2  The bz2 shared extension for php
php5-ctype-5.3.2The ctype shared extension for php
php5-dom-5.3.2  The dom shared extension for php
php5-filter-5.3.2   The filter shared extension for php
php5-gd-5.3.2   The gd shared extension for php
php5-gettext-5.3.2  The gettext shared extension for php
php5-iconv-5.3.2The iconv shared extension for php
php5-mbstring-5.3.2 The mbstring shared extension for php
php5-mcrypt-5.3.2   The mcrypt shared extension for php
php5-mysql-5.3.2The mysql shared extension for php
php5-mysqli-5.3.2   The mysqli shared extension for php
php5-openssl-5.3.2  The openssl shared extension for php
php5-posix-5.3.2The posix shared extension for php
php5-pspell-5.3.2   The pspell shared extension for php
php5-session-5.3.2  The session shared extension for php
php5-simplexml-5.3.2 The simplexml shared extension for php
php5-xml-5.3.2  The xml shared extension for php
php5-zip-5.3.2  The zip shared extension for php
php5-zlib-5.3.2 The zlib shared extension for php
phpMyAdmin-3.3.3A set of PHP-scripts to manage MySQL over the web

shows me that I still do not have two extensions which I deleted ealier:
php5-pcre
php5-spl

I really need php with pcre and spl support and I wonder how to
compile it using portinstall/portupgrade.

make config for /usr/ports/lang/php52-extensions
shows pcre and spl as checked

I hope someone will point me in the right direction. Thank you!

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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: PHP upgrade fails

2010-05-20 Thread Zbigniew Szalbot
shows me that I still do not have two extensions which I deleted ealier:
php5-pcre
php5-spl

 They're both built into PHP 5.3.

Apache error log says:
PHP Fatal error:  Call to undefined function preg_match() in...

This seems to suggest I do not have it working and site is blank.

php -v
PHP 5.3.2 with Suhosin-Patch (cli) (built: May 21 2010 01:21:41)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

 php -m
[PHP Modules]
bcmath
bz2
Core
ctype
date
dom
ereg
filter
gd
gettext
iconv
libxml
mbstring
mcrypt
mysql
mysqli
openssl
pcre
pdf
posix
pspell
Reflection
session
SimpleXML
SPL
standard
xml
zip
zlib

[Zend Modules]

I am lost as to what to do to solve this. Any help will be appreciated!


-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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: PHP upgrade fails

2010-05-20 Thread Zbigniew Szalbot
Hello,

 I am lost as to what to do to solve this. Any help will be appreciated!

 Did you restart apache after upgrading php...?

Yes, I did!

I think something is wrong. It may be that I upgraded the wrong php
port? My initial command was portupgrade php\*

Anyway, I seem to have the extensions installed but somehow they are missing:
You should install the PHP MySQL extension! - a message from one site.

However, it is installed.
 pkg_info -Ix php
php5-5.3.2  PHP Scripting Language
php5-bcmath-5.3.2   The bcmath shared extension for php
php5-bz2-5.3.2  The bz2 shared extension for php
php5-ctype-5.3.2The ctype shared extension for php
php5-dom-5.3.2  The dom shared extension for php
php5-filter-5.3.2   The filter shared extension for php
php5-gd-5.3.2   The gd shared extension for php
php5-gettext-5.3.2  The gettext shared extension for php
php5-iconv-5.3.2The iconv shared extension for php
php5-mbstring-5.3.2 The mbstring shared extension for php
php5-mcrypt-5.3.2   The mcrypt shared extension for php
php5-mysql-5.3.2The mysql shared extension for php
php5-mysqli-5.3.2   The mysqli shared extension for php
php5-openssl-5.3.2  The openssl shared extension for php
php5-posix-5.3.2The posix shared extension for php
php5-pspell-5.3.2   The pspell shared extension for php
php5-session-5.3.2  The session shared extension for php
php5-simplexml-5.3.2 The simplexml shared extension for php
php5-xml-5.3.2  The xml shared extension for php
php5-zip-5.3.2  The zip shared extension for php
php5-zlib-5.3.2 The zlib shared extension for php
phpMyAdmin-3.3.3A set of PHP-scripts to manage MySQL over the web

Is there a simple way to remove all php and install again?
Would that work (and be a sensible solution)?
pkg_delete php5*
cd /usr/local
rm etc/php lib/php include/php

Thanks!

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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


Log rotation / newsyslog / apache not reloaded

2010-04-15 Thread Zbigniew Szalbot
Hello,

I have the following lines in my /etc/newsyslog.conf

/var/log/*-access.log   644  30*@T00  JCG
/var/log/*-error.log644  30*@T00  JCG

Man newsyslog.conf says:  
If this field (signal_number) is not present, then a SIGHUP signal 
will be sent.

My problem is that while the apache logs are rotated as specified in 
the newsyslog.conf file, the apache server is not reloaded which 
causes it to write log entries to the now compressed files.

Which flag should I specify to make sure apache is reloaded during 
log rotation? Thank you very much in advance!

Zbigniew Szalbot

___
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: Log rotation / newsyslog / apache not reloaded

2010-04-15 Thread Zbigniew Szalbot
On 15 Apr 2010 at 8:30, Zbigniew Szalbot wrote:

 Hello,
 
 I have the following lines in my /etc/newsyslog.conf
 
 /var/log/*-access.log   644  30*@T00  JCG
 /var/log/*-error.log644  30*@T00  JCG

I added /var/run/httpd.pid at the end of both lines and will see if 
that helps.

Zbigniew Szalbot

___
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: ntpd / time synchronization

2009-07-29 Thread Zbigniew Szalbot

Hello,

Jerry pisze:


ntpd_enable=YES
ntpd_flags=-g -c /etc/ntp.conf -p /var/run/ntpd.pid -f /var/db/ntp.drift


Assuming you are running the system ntpd file, the above are not
really required. They are the defaults anyway. Try commenting out the
line and restarting ntpd.


Thank you Jerry - that was the problem. If you want to run a default 
nptd service, you should not have any ntpd flags in the rc.conf file.


Thanks - the clock is now synchronized. Thank you everyone! It is 
wonderful to be part of such a friendly community.



  Zbigniew Szalbot
  www.slowo.pl
  www.fairtrade.net.pl
___
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


ntpd / time synchronization

2009-07-27 Thread Zbigniew Szalbot

Hello,

I guess there is something simple that is wrong but my server is not 
really keeping the correct time. I have these options in /etc/rc.conf


ntpd_enable=YES
ntpd_flags=-g -c /etc/ntp.conf -p /var/run/ntpd.pid -f /var/db/ntp.drift

and here's the details of /etc/ntp.conf file:

server 0.pl.pool.ntp.org
server 1.pl.pool.ntp.org
server 2.pl.pool.ntp.org
server 3.pl.pool.ntp.org
driftfile /var/db/ntp.drift
restrict default nopeer nomodify

I used to have server 0.europe.pool.ntp.org in the ntp.conf file but 
today changed all entries to *.pl.pool.*


At the moment my clock is about 3 minutes behind time. It has been 
running for a year and I do not have ntpdate enabled so I guess 
subsequent reboots did not correct the drifting problem.


Is there anything obvious I am missing here? Any advice would be greatly 
appreciated!


Thank you all very much!


  Zbigniew Szalbot
  www.slowo.pl
  www.fairtrade.net.pl
___
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: ntpd / time synchronization

2009-07-27 Thread Zbigniew Szalbot

Chuck Swiger pisze:

You can't readily combine a restrict statement with using random 
timeservers from the NTP pool; you would need to list specific servers 
and add blank restrict statements for each server you trust.  What 
you've configured is likely querying the 4 servers listed for time, but 
not trusting their responses so your clock never find a server which it 
is willing to sync to.


Running ntpq -p -c rv would be informative


Well, it seems you are right :)

$ ntpq -p -c rv
ntpq: read: Connection refused
ntpq: read: Connection refused

I took it from
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-ntp.html

[quote]
If you want to deny all machines from accessing your NTP server, add the 
following line to /etc/ntp.conf:


restrict default ignore
[/quote]


OK. So removing the restrictions should cause the time to be synced?

Thank you for your patience and help!


  Zbigniew Szalbot
  www.slowo.pl
  www.fairtrade.net.pl
___
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


troubleshooting sudden memory spikes

2009-06-26 Thread Zbigniew Szalbot

Hello,

I have a 7.2 FreeBSD server that has recently started to exhibit some 
strange behaviour. For a few days (since Monday) the number of inactive 
memory is constantly on the rise. When it gets to a certain level 
(around 1300-1400M), the system will start swapping, the inactvie memory 
gets released and free memory jumps to about 1300-1500M.


You can see some graphs here to better realise what I am trying to describe:
http://www.slowo.pl/_files/mem/

I was once able to see the memory spike occuring and I noticed that 
proftpd was intensively being used at that time. We have implemented 
some changes to proftpd setup to make sure it does not cause trouble. 
However, the spikes still occur.


I am wondering how to troubleshoot it. Where would you start looking to 
solve the problem?


I am suspecting:
1/ proftpd still causes some kind of a problem on one jail
2/ at least one website is quite buggy and generates a lot of entries in 
error.log so maybe it is the site?

3/ something about the jail system which was added about two weeks ago?

As of writing this email...
last pid: 85820;  load averages:  0.20,  0.17,  0.17   up 16+00:10:51 
17:30:49

73 processes:  1 running, 72 sleeping
CPU:  2.5% user,  0.0% nice,  0.8% system,  0.2% interrupt, 96.5% idle
Mem: 256M Active, 1393M Inact, 234M Wired, 61M Cache, 112M Buf, 50M Free
Swap: 4492M Total, 285M Used, 4207M Free, 6% Inuse


The system is not very busy (load average above is quite typical for 
that machine) and prior to Monday it has never swapped. For the whole 
year I haven't managed to use more than 2MB of swap space. But this 
changed this Monday.


I would like to find out what causes such behaviour so your suggestions 
are very much appreciated!


Thank you and have a nice weekend!

Zbigniew Szalbot
www.fairtrade.net.pl
___
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


mounting network NTFS drive on FreeBSD

2009-06-25 Thread Zbigniew Szalbot

Hello,

I am trying to figure out how to mount a network NTFS drive 
(192.168.16.3\backups) on a FreeBSD system.


Can you point me to the appropriate documentation? The Handbook mentions 
the mount command but I am not sure I can do it using mount? Or can I?

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mount-unmount.html

Thank you very much in advance!

Zbigniew Szalbot
___
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: mounting network NTFS drive on FreeBSD

2009-06-25 Thread Zbigniew Szalbot

Polytropon pisze:

Because Windows does not conform to standards, you have to use
mount_smbfs. As far as I understood, it doesn't even matter which
file system is on the Windows disk.

I will give an example.


Just want to thank you and Manolis for such immediate help!

I really appreciate it!

Zbigniew Szalbot
___
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


ramdisk creation

2009-06-12 Thread Zbigniew Szalbot

Hello,

I would like to speed up amavisd operation by allowing it to use 
ramdisk, so I thought I would follow the advice given here:

http://www.stahl.bau.tu-bs.de/~hildeb/postfix/amavisd_tmpfs.shtml

However, I just want to make sure I get the procedure right. In my case, 
the temp folder is /var/amavisd/tmp


So (1) I need to create an entry in /etc/fstab
md /var/amavisd/tmp mfs rw,-s512m 2 0

(2) create the ramdisk
mdmfs -s 512m md /var/amavids/tmp

(3) mount the ramdisk
mount /var/amavids/tmp

Is the procedure right? I read mdmfs man and hope I am OK here.

If it is OK, I guess I need to stop amavisd before creating ramdisk and 
mounting it, right?


Thanks a lot for all feedback you can give me!

--
Zbigniew Szalbot
www.fairtrade.net.pl
___
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: ramdisk creation

2009-06-12 Thread Zbigniew Szalbot

Wojciech Puchar pisze:


So (1) I need to create an entry in /etc/fstab
md /var/amavisd/tmp mfs rw,-s512m 2 0


If you have FreeBSD 7.* use tmpfs filesystem

tmpfs /var/amavisd/tmp tmpfs rw,size=536870912 0 0

It's filesystem designed for this. Works well.


Thanks Wojtek - I appreciate it. I do have 7.2 so I can use it but 
having already added md to the system, I wonder if there is any 
advantage of replacing it with tmpfs. If there is, what is the best way 
to change it? Would I just unmount /var/amavisd/tmp and then proceed 
with the tmpfs thing?


Thank you!

Zbigniew Szalbot
___
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 searching for specific expression in files

2009-05-30 Thread Zbigniew Szalbot
Hello,

Can you please give me a hint how to use find to search for a specific
text within files?

I am using find in the following manner:

find /path/to/files/ -mtime -2 -ls |less
to find files which have been recently modified. But I would like to
extend the search to find specific expression within files. -name is used
to specify file name. How can I search for strings within text?

It is probably in the man but I somehow overlook it. :(

Thank you very much in advance!

-- 
Zbigniew Szalbot

___
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 searching for specific expression in files

2009-05-30 Thread Zbigniew Szalbot
 Can you please give me a hint how to use find to search for a specific
 text within files?

 Generally, you don't - find(1) does not examine the contents of files by
 itself, just their directory information.  You normally use grep(1) to
 search within a file.

Ahhh - I use grep on daily basis. Now why didn't I think of it? I got so
fixed on the idea of using find that I completely forgot about grep

Sorry for the noise and thank you very much for your help!

-- 
Zbigniew Szalbot

___
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


Best practices in finding out a trojan

2009-05-30 Thread Zbigniew Szalbot
Hello,

I know this has practically no connection with FreeBSD but I have a site
on a shared hosting and it appears the site got a trojan called
JS:Cruzer-D. I cannot find anything about it as it appears to be
relatively new (28 May). Anyway, I am trying to browse through the joomla
cms files in hope of locating it. I haven't seen anything suspicious with
the file modification time (and I have checked those which have been
modified within 48h period.

I am a bit stuck at the moment and if you can offer any advice on how to
troubleshoot such things on a UNIX system, I'd be really, really thankful!

There is some information about JS:Cruzer-C on the web but code of this
trojan is not present on the infected website (I have grepped all the
files today).

Ah, I will add that the trojan is only reported by avast antivirus when
people visit the site in IE (in other browers, this problem does not
appear).

Best regards,

-- 
Zbigniew Szalbot

___
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: On the need for moderated questions lists

2009-05-29 Thread Zbigniew Szalbot
 - questions about purely FreeBSD-specific and FreeBSD-dependend things
 of
 ported programs. For example:

 ---
 I start program X, configure it the same way as in linux, installed all
 the same modules, but here it crashes/behave differently. For example:
 --- here some output ---
 Where is a problem
 ---

Or take a real-life usage. I have upgraded my system to 7.2-Release. Ever
since upgrading, logrotate ceased to work.

Now, in this case - where should I post it? Does it belong to the
moderated and purely OS-related list (after all the problem seems related
to the upgrade) or to the unmoderated one (since it involves logrotate
utility)?

It happens in life that when you have sets of clearly defined rules, they
quickly become impossible to follow because you constantly need to tweak
them, add new ones, etc.

Or the questions about gmirror which Mr Puchar really knows a lot about.
Where would they go? Surely they should not be discussed on the moderated
list as we're in the software venue, right?

If you (still addressing Mr Puchar) want some sort of an exclusivist
group, it would probably be best if you set up one, contacted FreeBSD team
and negotatiated the terms of placing a link to it somewhere on
www.freebsd.org (and sponsoring the Team by the way ;)...


-- 
Zbigniew Szalbot
www.fairtrade.net.pl

___
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: Sponsoring FreeBSD

2009-05-27 Thread Zbigniew Szalbot
Hi there,

 as usually - i speak for myself. and will keep it that way.

Grrr... there are times when I think that freedom of speech is not such a
good thing after all...


-- 
Zbigniew Szalbot
www.fairtrade.net.pl

___
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: Sponsoring FreeBSD

2009-05-27 Thread Zbigniew Szalbot
 Grrr... there are times when I think that freedom of speech is not such
 a
 good thing after all...

 Of course - ban it!

One of your problems is that you type faster than you think. But the thing
that really pisses me - YOU MAKE MONEY out of FreeBSD OS by offering
hosting but every time someone on this lists says hello and wants to
either learn or help with the development, you scare them off as if you
owned this project.

This is frustrating to say the least. And what is worse you really enjoy it!

-- 
Zbigniew Szalbot
www.fairtrade.net.pl

___
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: Flamewar ( was: Sponsoring FreeBSD)

2009-05-27 Thread Zbigniew Szalbot
 Thanks to your attitude, actions, and demeanor, I will be
 unsubscribing from this list.

Glen - please don't. I have never met so many supportive people as on this
list. I do hope Wojtek will just stop doing this but even if he doesn't,
we should not let such people determine the quality of this list.

Just my 2c.

-- 
Zbigniew Szalbot

___
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: Flamewar ( was: Sponsoring FreeBSD)

2009-05-27 Thread Zbigniew Szalbot
 While being attacked for almost EVERY my opinion just because is not
 mainstream, or because i have opinion at all, i just respond normally.

Wojtek - I also think you have the capacity to help and you often do. But
don't pretend to be speaking for the FreeBSD team because you are doing
them disfavour. This was a question addressed to them but asked on this
list perhaps because the OP did not find another way of contacting the
team. Is it so hard to understand? Please!

-- 
Zbigniew Szalbot
www.fairtrade.net.pl

___
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: Flamewar ( was: Sponsoring FreeBSD)

2009-05-27 Thread Zbigniew Szalbot
Hi there,

First of all, if anyone is still reading it, I apologize if I sounded
harsh but I do care about FreeBSD so it does bother me that potential
supporters are turned down. Explanation below.

 anyway, i reread the original sponsoring offer and i think i understand
 well. so - if FreeBSD team like to accept donations that way, my 100$ is
 still waiting :)

I am afraid you still do not understand it. This sponsorship offer was NOT
directed to you. Neither was it to me. I did not reply to it because it
was clearly addressed to the core team.

I still cannot understand why you - an active, experienced and
knowledgeable FBSD user - would want to scare off potential donors for the
project? Contrary to you, I work in the fundraising field and I cannot
imagine turning people down that way. Secondly, some donors often start by
making small donations but they may at some point cosinder upgrading
their level of contribution. There is nothing wrong with that.

And thirdly, I may have missed something but when did someone from the
core team say that they like to accept donations that way?

Yours,

-- 
Zbigniew Szalbot

___
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: Stable Mail Server And Web Mail

2009-05-25 Thread Zbigniew Szalbot
Hello,

 Hello all ,  I want to install a  Mail Server with  Webmail,

 Anybody to know a good Stable Mail Server and Web Mail

I recommend the following step-by-step instructions:
http://www.purplehat.org/?page_id=4


-- 
Zbigniew Szalbot
www.fairtrade.net.pl

___
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: /tmp/security on 7.1-Release

2009-05-14 Thread Zbigniew Szalbot
Hello,

 Ever since upgrading from 7.0-Release to 7.1-Release I get the
 following in the daily security reports:

 master.lc-words.com kernel log messages:
 +++ /tmp/security.yMzCQbS8   2009-05-13 03:01:25.0 +0200
 +re0: watchdog timeout
 +re0: link state changed to DOWN
 +re0: link state changed to UP

 It just happens around 3 a.m. each day and so I wonder if I should be
 concerned about it...?

 Thank you in advance for your suggestions!

 I can bet it's NIC related problem, probably your re0 is sharing IRQ
 with something and it's going up/down. The time you see (~3.oo AM) is
 the moment periodic works, so it doesn't mean the problem happend then.

 I've seen similar problems on cheap PC hardware with integrated NIC
 and/or external PCI NIC (re/rl/em). Search for 're0: watchdog timeout'
 on google.

 The solution is to replace re with something else - em for example, but
 there is no guarantee it's going to work - I had same problems on
 crappy hardware with two identical interfaces plugged in (some model of
 em - IRRC Intel PRO/1000 GT)

Yes, you are most likely right but I am left wondering why this has never
been a problem on 7.0-Release...?

So either the problem in question did not occur on 7.0 or it did occur but
wasn't reported.

Thanks!

-- 
Zbigniew Szalbot

___
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


/tmp/security on 7.1-Release

2009-05-13 Thread Zbigniew Szalbot
Hello,

Ever since upgrading from 7.0-Release to 7.1-Release I get the following
in the daily security reports:

master.lc-words.com kernel log messages:
+++ /tmp/security.yMzCQbS8  2009-05-13 03:01:25.0 +0200
+re0: watchdog timeout
+re0: link state changed to DOWN
+re0: link state changed to UP

It just happens around 3 a.m. each day and so I wonder if I should be
concerned about it...?

Thank you in advance for your suggestions!

-- 
Zbigniew Szalbot
www.fairtrade.net.pl

___
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


mysql hiding from top

2009-04-27 Thread Zbigniew Szalbot
hello,

Today I have finally upgraded my system to 7.1-RELEASE and just noticing
that mysql process is not being shown via the top command.

  PID USERNAME  THR PRI NICE   SIZERES STATE  C   TIME   WCPU COMMAND
 1612 root1  200  9212K  6716K pause  2   0:26  0.00% perl5.8.9
  966 www 1   80  8236K  5452K nanslp 2   0:22  0.00% perl5.8.9
 1594 root1  200  8740K  6220K pause  0   0:12  0.00% perl5.8.9

However, if you grep processes, you can see it should be displayed in the
top entries.
$ ps ax |grep mysql
32880  p0- I  0:00.00 /bin/sh /usr/local/bin/mysqld_safe...
32906  p0- S  1:33.72 /usr/local/libexec/mysqld...

I can live with that but maybe there's some explanation for this?

Thanks!

-- 
Zbigniew Szalbot

___
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: mysql hiding from top

2009-04-27 Thread Zbigniew Szalbot
Hello,

 Top doesn't show *all* processes.  It shows the processes using the most
 cpu
 (by default.  You can also display by io.)  So, if mysqld isn't using a
 lot of
 cpu, it's not going to show up in the list.  You might be able to force it
 to
 show up by giving top a number (of processes you want to see) that
 includes
 enough that mysqld will show up.

Thank you Paul! Yes, I know that. Prior to upgrade mysql was always on top
as it used most time. And I can see it now when it is active but it is
quite strange that it does not get displayed when the system is idle. Not
even when I do top -o time.

Thanks!

-- 
Zbigniew Szalbot

___
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: mysql hiding from top

2009-04-27 Thread Zbigniew Szalbot
Hi there,


 The process is sleeping-- perhaps it isn't using enough CPU to make it
 into the list using default sort ordering?  Try top -o time,
 perhaps

No, this is a different issue. Take a look:

  PID USERNAME  THR PRI NICE   SIZERES STATE  C   TIME   WCPU COMMAND
88268 www 1  470 40260K 29336K select 2   0:03  2.49% httpd
89632 www 1  440 33648K 23352K CPU0   0   0:00  0.78% httpd
89290 www 1  200 25456K 17760K lockf  2   0:01  0.68% httpd
89074 www 1  440 26384K 17696K select 2   0:00  0.20% httpd
32906 mysql  37   40 76636K 41664K sbwait 1   0:00  0.10% mysqld

It does appear at times but it is showing 0:00 TIME. But compare it to the
same mysql pid below:

$ ps ax |grep mysql
32906  p0- S  1:41.77 /usr/local/libexec/mysqld

This is what I find strange... :)


-- 
Zbigniew Szalbot

___
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: mysql hiding from top

2009-04-27 Thread Zbigniew Szalbot
 Ah-- I've heard rumors that top or something doesn't handle accounting
 for CPU time used by multithreaded processes very well...

OK. Well I have never had any problem with that on FreeBSD 7.0-RELEASE. It
started misbehaving today right after an upgrade to 7.1-RELEASE. Like I
said, I can really live with that! :)

Thank you!

-- 
Zbigniew Szalbot

___
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: mysql hiding from top

2009-04-27 Thread Zbigniew Szalbot
 True, although if it's readily reproducible, it would be good to fix.

I'd be happy to test but I do not know what to do/where to start. I know
it is a permanent issue, because I even restarted the mysql server
thinking that something is wrong that it is not being shown in top but the
history repeated itself.

Thanks Chuck - I appreciate the time you use to help.

-- 
Zbigniew Szalbot

___
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


how to copy files without directories

2009-04-20 Thread Zbigniew Szalbot

Dear all,

I have read the cp manual and I cannot find an option how to copy directories without files they contain. Is this possible? 


Thank you very much!

Zbigniew Szalbot

___
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: how to copy files without directories

2009-04-20 Thread Zbigniew Szalbot

On Mon, 20 Apr 2009 13:22:38 +0200, Fernando ApesteguĂa 
fernando.apesteg...@gmail.com wrote:


On 4/20/09, Zbigniew Szalbot z.szal...@lcwords.com wrote:

Dear all,

I have read the cp manual and I cannot find an option how to copy
directories without files they contain. Is this possible?


Maybe I read it wrong, but the subject and the paragraph above say two
different things.


Ahh... I am sorry. Wrong subject. I want to copy directories without files they 
contain.

Zbigniew Szalbot
___
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: how to copy directories without files (was How to copy files without directories)

2009-04-20 Thread Zbigniew Szalbot

Hello,


Ahh... I am sorry. Wrong subject. I want to copy directories without
files they contain.


see mtree(8)
Something like
$ mtree -dc -p path1 | mtree -U -p path2
will copy path1 under path2


Excellent! Thank you so much!

Zbigniew Szalbot
___
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


Software to manage virtual hosts on a dedicated server

2009-04-15 Thread Zbigniew Szalbot

Hello,

Do you know any decent provider-like software which would handle adding  
new domains, ftp accounts, sql databases  mail accounts to the server?  
Preferably something in ports but I am not sure if there is any such  
thing? I am not going to become a provider :) but I am just looking for  
something to make life easier in this respect. I have seen syscp, but this  
has the disadvantage that it creates directories that are already  
containing public_html folders (no way to place files outside public  
access).


Many thanks in advance for all suggestions!

Zbigniew Szalbot
___
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: Software to manage virtual hosts on a dedicated server

2009-04-15 Thread Zbigniew Szalbot

Hi,

Dnia 15-04-2009 o 13:58:04 Wojciech Puchar  
woj...@wojtek.tensor.gdynia.pl napisał(a):


just another man that wants to get everything not just for free, but not  
even without much knowledge.
Hmm... who says I want to get everyting for free (without trying and  
learning)? Have you read my post? I did make a note about trying out syscp.



learn and MAKE IT YOURSELF, that it will fit exactly to your needs.
Yeah... will you send me the same answer if I want to buy a car? Am I  
supposed to know everything about all things and be able to do them?


Or - provide services for 1$/year like there are lots of today. crappy  
and all the same - but cheap. Maybe you will earn 100$ a month - if you  
will be lucky.


Have you read my post? I wrote that I am NOT going to be a provider but  
just looking for something to make life easier my side of things. I have a  
server I am responsible for and from time to time I add domains and would  
like to automate it a bit if possible.


Take care,

Zbigniew Szalbot
___
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: problem with postfix

2009-03-27 Thread Zbigniew Szalbot

 Upali Rajapakse wrote:
 I installed postfix on frebsd 7
 i can send mail through command line but i cant receive any mail to it.

 and also there is no Maildir on any users home directory.
 can you help me?

I find this page really helpful:
http://www.purplehat.org/?page_id=4

HTH

Zbigniew Szalbot
___
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


Compression with *.zip output

2009-03-21 Thread Zbigniew Szalbot
Hello,

Is there a command utility to help me compress files with *.zip extenstion
so that windows users can download and unpack it without using any special
software?

Man gzip suggests -S switch but when I tried it, I could not open the file
under windows. Many thanks for your suggestions!

Have a nice weekend!


-- 
Zbigniew Szalbot

___
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: Compression with *.zip output

2009-03-21 Thread Zbigniew Szalbot
Hi there,

 I believe you are looking for archivers/zip

Indeed I was! :) Thank you Manolis!

$ zip easter *.mov
created an easter.zip file with all the mov files in the archive. Great as
I was afraid I would have to download the files, archive them and then
upload which would take an awful lot of time!

Thanks again!

-- 
Zbigniew Szalbot

___
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: Compression with *.zip output

2009-03-21 Thread Zbigniew Szalbot

 On Sat, 21 Mar 2009 08:47:06 +0100 (CET), Zbigniew Szalbot
 z.szal...@lcwords.com wrote:
 Hello,

 Is there a command utility to help me compress files with *.zip
 extenstion
 so that windows users can download and unpack it without using any
 special
 software?

 Maybe this is a stupid follow-up question, but... since WHEN is
 Windows able to handle any kind of archive file (except its
 own CAB format) without installing any third party software?

 Windows users NEED to install additional software for every
 little piece that a proper OS should be able to do on its own...

I do not feel in any position to speak for Windows OS but I do not have
any special archiver in my XP system. There's some utility built into the
system that allows you to unpack or archive files in zip extension.

-- 
Zbigniew Szalbot

___
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


roundcube security bug

2009-03-09 Thread Zbigniew Szalbot
hello,

I strongly advise anyone who has the mail/roundcube port or software
installed to be careful as it has a security bug (and I do not know
where to report it). It allows people to remotely place a trojan on
/tmp and use it. They do it like this:

213.96.25.30 - - [05/Mar/2009:19:22:14 +0100] POST
/roundcube/bin/html2text.php HTTP/1.0 406
and as a result a non-empty directory /tmp/guestbook.ntr/ is created
and a file /tmp/guestbook.php

This html2text.php file has been used by an attacker on my system (at
least I think so). I have removed the port and since then I have had
no trouble, although they have been scanning for this file as I can
read in the logs.

Yours,

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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: roundcube security bug

2009-03-09 Thread Zbigniew Szalbot
On Mon, Mar 9, 2009 at 08:43, Brent Clark brentgclarkl...@gmail.com wrote:
 Hiya

 Have you notified and / or checked with the upstream authour (maybe the
 mailinglist too)

Not really. It requires subscribing to a mailing list which I don't
have time to do at the moment.


-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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: roundcube security bug

2009-03-09 Thread Zbigniew Szalbot
Hi there,

On Mon, Mar 9, 2009 at 10:50, Ross Cameron abal...@gmail.com wrote:
 Surely an attempted cracking attempt on you're server warrants making time?

It does.

 Without detailed reports of issues like this how is the vendor expected to
 correct the problem?
     Avoiding installing the code is just a lazy workaround, helping the
 author's will improve the general open source software ecosystem.

Like I said, I just lacked the time. I have notified the port
maintainer though and intend to contact the author but I wish there
was a simpler way then having to register first.

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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: roundcube security bug

2009-03-09 Thread Zbigniew Szalbot
Hello,

On Mon, Mar 9, 2009 at 15:54, Moti Levy levym...@gmail.com wrote:
 portaudit is always usefull

 Affected package: roundcube-0.2.a,1

Ah... my bad - I have had roundcube installed from sources, not from
port. That's why I didn't know. I use portaudit on daily bases. Many
thanks, though!

In the meantime I have notified roundcube authors but it seems they
should know by now anyway.

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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


tool to determine server stability issues

2009-03-04 Thread Zbigniew Szalbot
Hello,

I am not sure if it was upgrade to perl 5.8.9 which started my
problem, but anyway I am spotting a strange server behaviour. It will
usually last about 5 minutes during which the system becomes
unresponsive. Top tells me there are two perl processes run by user
www both of which use 100% of a CPU%. The server has four CPUs so
that's ok. What is strange, though is that during such a storm the
outgoing bandwidth is all taken up and this is the reason server
becomes unresponsive. Normally, it does happen that the bandwidth is
taken almost completely by remote backup job but I have priority
queueing with pf and it has never been a problem. A site will be
served fast even though the bandwidth is taken up, because httpd
traffic has higher priority. Also, in this particular case, backup job
is not involved (especially that the perl processes are run by user
www) so it must be something else.

I have looked through apache's logs but I cannot seem to find anything
strange (normal traffic without any type of DoS activity, etc.).

I have turned on debugging in HotSanic which I use for traffic/system
measurement but it would not generate outgoing traffic.

I guess I am looking for advice how to debug this. I often spot the
problem when it is about to end so I do not have enough time to start
some a more detailed monitoring (also I am not sure which tool would
be best to use). I'd appreciate any advice on how to troubleshoot and
find out the source of the problem.

Today, I have managed to run netstat during the outage (the ssh
session was on so I was able to continue, otherwise I wouldn't get to
the server). I can provide its output if it is of any use.

I have never had anything like this before so I am in the dark here. I
use FreeBSD 7.0-RELEASE-p9 #3.

Many thanks in advance!

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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: tool to determine server stability issues

2009-03-04 Thread Zbigniew Szalbot
Hi there,

 I am not sure if it was upgrade to perl 5.8.9 which started my
 problem, but anyway I am spotting a strange server behaviour. It will

I am continuing my searches for the problem and just have been able to
find out this:
USER   PID %CPU %MEM   VSZ   RSS  TT  STAT STARTED  TIME COMMAND
www  44888 100.0  0.2  5976  3644  ??  R11:46AM   2:35.18
/usr/sbin/httpd (perl5.8.9)
root14 96.3  0.0 0 8  ??  RL   Fri08AM 7161:12.89 [idle: cpu0]
www  44887 96.3  0.2  5976  3644  ??  R11:46AM   2:34.58
/usr/sbin/httpd (perl5.8.9)

The process dies as soon as it ends. But this is strange:

$ l /usr/sbin/httpd
ls: /usr/sbin/httpd: No such file or directory

So it looks like these two processes made the machine unresponsive and
generated a lot of outgoing traffic. However, the file does not exist.
Any hint as to how to debug it further? I am determined to find the
culprit.

Thanks!

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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: tool to determine server stability issues

2009-03-04 Thread Zbigniew Szalbot
Hello,

On Wed, Mar 4, 2009 at 13:41, Robert Huff wrote:
        On my system:

 huff@ whereis httpd
 httpd: /usr/local/sbin/httpd /usr/local/man/man8/httpd.8.gz

        Someone's looking in the wrong place.  (Unless you've twiddled
 /all/ the settings.)

Thank you Robert and some information for the rest. It turns out these
two prcoesses looking for /usr/sbin/httpd were zombies so to say (and
they were the cause of my problems). Someone used a php script
vulnarability and placed a script in /tmp. Apart from looking for
security holes in php scripts, I am going to monitor /tmp. I am
embarrased to say I haven't done that so far. I am writing it to warn
people like myself.

All the best,

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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


load average and some built-in monitoring mechanism

2009-03-02 Thread Zbigniew Szalbot
Hi there,

My machine has recently been taken down by (most likely) runaway java
process. The box had to be rebooted as there was no remote access to
it but I am not able to find anything useful in logs to confirm
whether it was java. Is there a tool that would enable me to
automatically turn on verbose logging of top processes to some file
once the load average is greater than the specified value? This way,
once the storm is over, I would be able to see which process(es) went
nuts.

I guess a tool like that may simply already exist in which case I'd
appreciate links/more information. How are you dealing with such
issues when/if they happen to you?

Many thanks!

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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: Steps to upgrade from 7.0-RELEASE to 7.1-RELEASE

2009-01-29 Thread Zbigniew Szalbot
Hello,

On Thu, Jan 29, 2009 at 10:40, k...@snaffler.net k...@snaffler.net wrote:
 After installkernel finishes successfully, you should boot in single
 user mode (i.e. using boot -s from the loader prompt).

 How can this be done with a remote machine?



 NO without serial access or some kind of ALOM card eg DELL DRAC CARD, as you
 will have no ip up


Then correct me if I am wrong but if I do not have such a card, then I
am better off using freebsd-update since it does not require me to
boot in single user mode?

Thanks!

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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


Steps to upgrade from 7.0-RELEASE to 7.1-RELEASE

2009-01-28 Thread Zbigniew Szalbot
Hello,

I would like to confirm the steps required to upgrade a 7.0 system
with a custom kernel to 7.1 so many thanks for all suggestions!

1/ Back up /etc (of course backups are regularly done, but based on
what I saw on the list I think such a backup just prior to upgrade may
be quite beneficial)
# cp -pR /etc/ /etc-7.0

2/ Go for the upgrade and merge files (if any)
# freebsd-update -r 7.1-RELEASE upgrade

3/ Install the updates
# freebsd-update install

4/ Reboot with a GENERIC kernel (I do have it)
# nextboot -k GENERIC

5/ Reboot with a custom kernel
# shutdown -r now

6/ Finish the update process
# freebsd-update install

7/ Recompile the custom kernel
# cd /usr/src
# make buildkernel KERNCONF=MYKERNEL
# make installkernel KERNCONF=MYKERNEL

8/ Final reboot
# shutdown -r now

I was told earlier that 7.0 - 7.1 journey is a minor one and so I do
not need to rebuild all the ports. Is that correct?

Once again, many thanks for your advice!

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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: Steps to upgrade from 7.0-RELEASE to 7.1-RELEASE

2009-01-28 Thread Zbigniew Szalbot
Hi all,

On Thu, Jan 29, 2009 at 07:34, Tim Judd taj...@gmail.com wrote:
 Akenner wrote:

 RW wrote:

 On Wed, 28 Jan 2009 05:07:46 -0700
 Tim Judd taj...@gmail.com wrote:




 Nothing really beats the CVS way.  And when I tried a 7.0 to a 7.1,
 it wanted like 30,000 updates and was taking forever.


 It seems to me that most people that come to this list with base-system
 update problems are using  freebsd-update.
 ___



 This is going to seem stupid, but instead of making a new topic, can
 someone link to me a working link of the handbook where you update your CVS
 and so on?  I know that on the FreeBSD page there is a handbook that has
 exactly what I'm looking for, and for some reason I'm having trouble finding
 it even though I used to have it saved but I don't anymore and I wanted to
 get CVS sources updated so I can do some updating.

 Thanks


 csup -g -L 1 -h cvs#.cc.freebsd.org
 /usr/share/examples/cvsup/standard-supfile

 i.e: cvs17.us.freebsd.org

 This will update to your uname -r latest patchlevel.  Copy and replace (for
 you): RELENG_7_0 with RELENG_7_1 to get the latest patchlevel for 7.1


 Original doc seems either replaced by the freebsd-update method (while
 excellent, there are a few things that CVS really triumphs on).

 csup is part of base.

 I'd be glad to help you through.  The canonical update method is still
 listed in the handbook (SS. 24.7.1) used after retrieving the sources.

Thank you Tim for the answers! So far I have used freebsd-update to
apply updates. I seem to recall that it is never good to mix the two
systems (freebsd-updates and csup) to avoid trouble. Is that true?

Also, the documentation you mention (24.7.1) says this:

After installkernel finishes successfully, you should boot in single
user mode (i.e. using boot -s from the loader prompt).

How can this be done with a remote machine?

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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: updating to 7.1 with a small root slice

2009-01-14 Thread Zbigniew Szalbot
Hello,

On Wed, Jan 14, 2009 at 08:13, Zbigniew Szalbot zszal...@gmail.com wrote:
 Dear all,

 I am looking for your advice. Due to a very stupid design decision my
 / slice is only 256 MB. It seems too little so whenever I compile a
Actually it is 242MB

 new kernel, I need to move the kernel.old to a different slice to
 install the new one. Then I pray, hope for the best and reboot.
 However, I read that if I want to update to 7.1 I will need to boot a
 generic kernel at some point. What option do I have?

I found the problem. My oh my - I had
makeoptionsDEBUG=-g
uncommented.

When I commented it out, the new compiled kernel is only 32MB whereas
the old one was 128 or so MB.

So I am happy about it now. However, I do not have a GENERIC kernel in
/boot and I will need it to do nextboot when I upgrade to 7.1.

I thought I'd use the procedure described here
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html
to compile a generic kernel

# cd /usr/src
# env DESTDIR=/boot/GENERIC make kernel
# mv /boot/GENERIC/boot/kernel/* /boot/GENERIC
# rm -rf /boot/GENERIC/boot

When I make the GENERIC kernel, I again run out of space (I still have
about 60MB free in /). So I guess the system is probably using the
same makeoptionsDEBUG=-g settings for the generic kernel. So my
question is where is the kernel conf file based on which the generic
kernel is compiled?

Is it in /usr/src/sys/i386/conf/GENERIC ?

Thank you in advance!

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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: updating to 7.1 with a small root slice

2009-01-14 Thread Zbigniew Szalbot
Hello,

 Is it in /usr/src/sys/i386/conf/GENERIC ?

 Yes, it is, and is has the setting makeoptions DEBUG=-g included.
 You could # this setting and build a GENERIC kernel without the
 debug informations as described in the handbook about how to
 compile a custom kernel (it doesn't matter if KERNCONF refers
 to the GENERIC configuration file).

Great! I was able to install the generic kernel so I should be safe
when going up from 7.0 to 7.1. And I still have some space left in /.

$ df -h /
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ar0s1a242M194M 29M87%/

Thank you all for the information! Great! Now the scary thing...
upgrade the system to 7.1 :)

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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: updating to 7.1 with a small root slice

2009-01-14 Thread Zbigniew Szalbot
Hello Jerry,

 Anyway, 256 MB should be plenty of space for / slash unless you
 are putting everything in it.

My main mistake was that I had
makeoptionsDEBUG=-g
in the kernel config file. That made for a ~130MB kernel so when I
compiled and tried to install a new one, it ran out of space (it would
be about 260 MB but I only had 242 MB).

Many thanks for all you detailed instructions though!

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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


Performing installed ports upgrade / leaving some software intact

2009-01-14 Thread Zbigniew Szalbot
Dear all,

I am now full into planning the 7.0-RELEASE to 7.1-RELEASE upgrade. I
know that at the end of the day it will also mean upgrading all ports
(portupgrade -af). I have one port - mailman - which I have customized
a lot and do not really want to upgrade it as it will most likely mean
I will have to hack a few files again.

What options do I have so that I do not break the setup?

I am thinking of:

1/ backing up the hacked files and restoring them later (but I will
overwrite the newer files with older ones perhaps breaking something).
2/ making them read only (but the end result will be the same and
upgrading as root I will overwrite them anyway).

And that would be it. My wisdom ends here. Is there any option to
survive the ports upgrade? :)

If not, I guess I will just have to hack Mailman files again after the
upgrade...

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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: Performing installed ports upgrade / leaving some software intact

2009-01-14 Thread Zbigniew Szalbot
Hello,

 1/ backing up the hacked [mailman] files and restoring them later (but I
 will
 overwrite the newer files with older ones perhaps breaking something).
 2/ making them read only (but the end result will be the same and
 upgrading as root I will overwrite them anyway).

 Keep in mind mailman is all python.  There really is nothing to recompile
 after a system upgrade.  (Unless you are upgrading python which you aren't).

I am not so sure. According to
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/updating-upgrading-freebsdupdate.html

All third party software will now need to be rebuilt and
re-installed. This is required as installed software may depend on
libraries which have been removed during the upgrade process. The
ports-mgmt/portupgrade command may be used to automate this process.
The following commands may be used to begin this process:

So my thinking is that by issuing portupgrade -af both python and
mailman will get reinstalled. However, the option suggested by Roland
(thank you!) of touching /var/db/pkg/mailman/+IGNOREME seems very
interesting. I must read more about it.

Thank you all!

-- 
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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


updating to 7.1 with a small root slice

2009-01-13 Thread Zbigniew Szalbot
Dear all,

I am looking for your advice. Due to a very stupid design decision my
/ slice is only 256 MB. It seems too little so whenever I compile a
new kernel, I need to move the kernel.old to a different slice to
install the new one. Then I pray, hope for the best and reboot.
However, I read that if I want to update to 7.1 I will need to boot a
generic kernel at some point. What option do I have?

Even if I install a copy of GENERIC kernel into /boot, it most likely
won't fit in the available file space. The problem is the machine's
remote so I cannot take it down, replace drives, etc. as I am bound by
a hosting contract and frankly I really do not want to do that unless
I have no other option. Thoughts? Many thanks!

--
Zbigniew Szalbot
www.slowo.pl
www.fairtrade.net.pl
___
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


7.0 7.1 update problem

2009-01-07 Thread Zbigniew Szalbot
Hello,

Thanks for FreeBSD. I am trying to update FreeBSD 7.0-RELEASE-p7
(GENERIC) #2 to 7.1-RELEASE. Here are the steps I am performing:

1. freebsd-update -r 7.1-RELEASE upgrade

I get:

The following components of FreeBSD seem to be installed:
kernel/generic src/base src/sys world/base world/dict world/doc
world/games world/info world/manpages world/proflibs

The following components of FreeBSD do not seem to be installed:
src/bin src/cddl src/compat src/contrib src/crypto src/etc src/games
src/gnu src/include src/krb5 src/lib src/libexec src/release src/rescue
src/sbin src/secure src/share src/tools src/ubin src/usbin
world/catpages

Does this look reasonable (y/n)?

Y

Fetching metadata signature for 7.1-RELEASE from update1.FreeBSD.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.
Fetching files from 7.0-RELEASE for merging... done.
Preparing to download files... done.
Fetching 17792 patches.

Then it asks me about files in /etc/ which were modified. I install
newer versions and change some entries if needed. Save and exit vi
when it is all finished.

2/ cd /usr/src/
3/ make kernel KERNCONF=GENERIC
4/ shutdown -r now

The system is up and geuss what - it is still FreeBSD 7.0-RELEASE-p7
(GENERIC) #2.

I repeated the whole procedure (didn't have to download the 17792
patches though) and restarted once again - but got the same effect. A
slight hint. I am sure I modified and saved /etc/ssh/sshd_config file
but its modify date is from 2008. So I am probably doing something
wrong there...

I put the entries (for example a non-standard ssh port number), press
Esc, then : and finally wq.

Can you help by suggesting where to go from here? Many thanks!

-- 
Zbigniew Szalbot
www.fairtrade.net.pl
www.slowo.pl
___
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: 7.0 7.1 update problem

2009-01-07 Thread Zbigniew Szalbot
First of all - thank you Manolis!

On Wed, Jan 7, 2009 at 14:23, Odhiambo Washington odhia...@gmail.com wrote:

 I don't use freebsd-update myself. I still use csup and the long procedure,
 but I have a question on the GENERIC kernel. You say he does not need to
 recompile anything? Does that mean freebsd-update pulls in a new GENERIC
 kernel based on the latest source tree?

Based on what I have NOW read :) (but should have studied ealier), I
do not think I need to compile a generic kernel.

If the system was running with a custom kernel, use the nextboot(8)
command to set the kernel for the next boot to /boot/GENERIC (which
was updated):

I hope I am not wrong again...

Thanks!

-- 
Zbigniew Szalbot
www.fairtrade.net.pl
www.slowo.pl
___
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


Going back to generic kernel

2008-12-23 Thread Zbigniew Szalbot
Hi friends,

I have a test machine with a custom kernel, which I copied (as the
handbook suggests) to /root/kernels/. However, I do not really need
it.

My question is how do I switch back to the generic kernel? Many thanks
and all the best to you all!

-- 
Zbigniew Szalbot
www.fairtrade.net.pl
www.slowo.pl
___
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: Going back to generic kernel

2008-12-23 Thread Zbigniew Szalbot
Hello,

 My question is how do I switch back to the generic kernel? Many thanks

 /root/kernels is not booted by default.  I doubt this is the kernel that is
 running.
It is as I symlinked it.

 To run generic again, simply install the generic kernel much the same way
 you did the custon kernel.

 cd /usr/src
 make buildkernel KERNCONF=GENERIC
 make installkernel KERNCONF=GENERIC

That was all that I needed. I just failed to realize I need to compile
it one more time and specify a generic one! Thanks!

-- 
Zbigniew Szalbot
www.fairtrade.net.pl
www.slowo.pl
___
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: Clearing SMART errors I don't care about?

2008-12-19 Thread Zbigniew Szalbot
Hi,

 i'm not convinced that smart monitoring is of much value even on disks with
 important data.

It is if taken seriously. A smartd error was once ignored, the rest
(including data) is history.

Thank you for FreeBSD!

-- 
Zbigniew Szalbot
www.fairtrade.net.pl
www.slowo.pl
___
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: Why FreeBSD not popular on hardware vendors

2008-12-13 Thread Zbigniew Szalbot
Hi,

 I don't see the difference.  If a program runs on FreeBSD it runs on
 FreeBSD, so it _is_ something that FreeBSD users may be interested in
 for their every day work.  Does it really matter if the particular piece
 of software also runs on AmigaOS?  Not really, IMO :)

 do you ask say - microsoft - about supporting program that doesn't run under
 windows, but runs under - say - MacOS.

 no.

 so stop asking on FreeBSD group about flash support. it's not FreeBSD
 developers job.

Wojciech - I know you are a very competent and experienced user when
it comes to FBSD so do not treat my post as kind of a flame war. Let
me say this - if you want to help, please do. There are many times
when your replies are helpful (gmirror comes to mind) but more often
than not you discourage beginners from getting interested in this
project. Please stop doing that. Please. It seems to me that you are
forcing your views on everyone by looking at reality from your point
of view only. I wouldn't have written this if it was only tiring, but
it is also harmful to the communit at large, especially those who are
interested in giving FBSD a try.

Best regards,

-- 
Zbigniew Szalbot
www.fairtrade.net.pl
www.slowo.pl
___
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: Release schedules

2008-12-13 Thread Zbigniew Szalbot
Hello,

 As a community, we should be ashamed of this: ``volunteer effort'' just isn't
 a good enough excuse - and those of us who haven't volunteered need to find
 out how we can help get things back on track for the next release. When I
 first raised this, I asked if there was anything I could do to help the
 release engineering team with communication. Zbigniew Szalbot made a similar
 offer.

Thank you Jonathan - I cannot give much to FBSD as I am not a
programmer either but - again - if I can be of any use
communication-wise, I am happy to join the community and serve.

Best regards,

-- 
Zbigniew Szalbot
www.fairtrade.net.pl
www.slowo.pl
___
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: Release schedules

2008-12-12 Thread Zbigniew Szalbot
Hi there,

 For example, RC2 builds were scheduled for 29 September 2008. When
 that day comes (or same week perhaps), whoever has the ability to
 change the release schedule page should update it regardless of what
 happened. If RC2 builds started, that should be reflected in the

I have offered to update the pages if it can help somehow. I cannot do
more but I can do this at least.

Yours,

-- 
Zbigniew Szalbot
www.faitrade.net.pl
www.slowo.pl
___
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: removing a php5-pcre extension

2008-12-09 Thread Zbigniew Szalbot
Hello,

  One more thought - I commented out the pcre extension in the ini file
  and restarted apache after which everything seems to be working fine.

  So I wonder if I am safe to delete it or if not, then how would you
  advise me to proceed to keep the system clean. Many thanks!

As I understand it:
a) the port works by installing a library
b) dependant ports search for the library, not the port
c) if the (exact same) library (as determined by version
 number) is installed by some other port, the change should be
 transparent and the dependant ports should and not try to (re)build
 anything.

Thank you Robert! It does help a lot. Time to do some cleaning then. :)

-- 
Zbigniew Szalbot
www.faitrade.net.pl
www.slowo.pl
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: removing a php5-pcre extension

2008-12-09 Thread Zbigniew Szalbot
Hello,

On Tue, Dec 9, 2008 at 11:45, Ivan Voras [EMAIL PROTECTED] wrote:
 Zbigniew Szalbot wrote:
 Hello,

 Now that pcre is included in the base installation, how do I remove it?

 $ pkg_delete -nv php5-pcre-5.2.6_2
 pkg_delete: package 'php5-pcre-5.2.6_2' is required by these other packages
 and may not be deinstalled:
 pear-1.7.2
 pear-Auth-1.6.1
 pear-Auth_SASL-1.0.2
 pear-DB-1.7.13,1
 pear-Log-1.10.1
 pear-Mail_Mime-1.5.2,1
 pear-Mail_mimeDecode-1.5.0
 pear-Net_SMTP-1.3.0
 pear-Net_Socket-1.0.8
 pear-Pager-2.4.6
 pecl-filter-0.11.0
 php5-extensions-1.2
 phpMyAdmin-3.1.0
 smarty-2.6.19
 pkg_delete: 1 package deletion(s) failed

 Am I safe just deleting it? Or do I have to rebuild all the above listed 
 ports?
 Leaving it as is is probably not a good idea...

 Presumably, if you delete it, the listed packages will stop working.

One more thought - I commented out the pcre extension in the ini file
and restarted apache after which everything seems to be working fine.

So I wonder if I am safe to delete it or if not, then how would you
advise me to proceed to keep the system clean. Many thanks!


-- 
Zbigniew Szalbot
www.faitrade.net.pl
www.slowo.pl
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


removing a php5-pcre extension

2008-12-09 Thread Zbigniew Szalbot
Hello,

Now that pcre is included in the base installation, how do I remove it?

$ pkg_delete -nv php5-pcre-5.2.6_2
pkg_delete: package 'php5-pcre-5.2.6_2' is required by these other packages
and may not be deinstalled:
pear-1.7.2
pear-Auth-1.6.1
pear-Auth_SASL-1.0.2
pear-DB-1.7.13,1
pear-Log-1.10.1
pear-Mail_Mime-1.5.2,1
pear-Mail_mimeDecode-1.5.0
pear-Net_SMTP-1.3.0
pear-Net_Socket-1.0.8
pear-Pager-2.4.6
pecl-filter-0.11.0
php5-extensions-1.2
phpMyAdmin-3.1.0
smarty-2.6.19
pkg_delete: 1 package deletion(s) failed

Am I safe just deleting it? Or do I have to rebuild all the above listed ports?
Leaving it as is is probably not a good idea...

Thanks a lot for your input. If possible, I'd like to keep my system
clean without unnecessary ports.

-- 
Zbigniew Szalbot
www.faitrade.net.pl
www.slowo.pl
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: removing a php5-pcre extension

2008-12-09 Thread Zbigniew Szalbot
Hello,

 BTW, wait till php-5.2.8 to do this. I read somewhere that 5.2.7 has
 security issues, but maybe you know better than I do.

Thanks but I know about it. That's why I used ports which have 5.2.8. :)

-- 
Zbigniew Szalbot
www.faitrade.net.pl
www.slowo.pl
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


freebsd-update and sources / custom kernel

2008-11-24 Thread Zbigniew Szalbot
Hello,

I hope you can clear my doubts. When I use freebsd-update to update a
machine with a custom kernel, do I need to fetch sources before I
rebuild the kernel or are they fetched by freebsd-update utility?

Many thanks!

-- 
Zbigniew Szalbot
Groucho Marx  - Anyone who says he can see through women is missing a lot.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD and hardware??

2008-11-18 Thread Zbigniew Szalbot
Hi,

On Tue, Nov 18, 2008 at 13:31, Ruben de Groot [EMAIL PROTECTED] wrote:
 On Tue, Nov 18, 2008 at 12:23:24PM +0100, Wojciech Puchar typed:

 once again i repeat - FreeBSD is not windows replacement. it's unix.
 All nice GUI for unices turned to be bad idea, every windows user will
 say it's poor compared to windows. and they are right.

 I totally disagree. Please note that your *opinion* doesn't become truth,
 even when you keep repeating it over and over. there's a whole spectrum
 of window/desktop environments to choose from for every conceivable
 usage or need.

You seem to be reserving FBSD only for the experts. I wouldn't be here
using this great OS if it had been you I met in the first place.
Fortuantely, there were very kind people here who helped me make first
steps into the world of UNIX and then continued supporting me along
the way.

By constantly repeating that UNIX is no Windows replacement you are
only discouraging fresh blood from entering the system. It is true
that the system has steep learning curve but it is not an elite system
for the chosen few. Contrary to what you think, the more people use
it, the more chance we get of (for example) hardware producers making
FBSD drivers. So please stop discouraging people from using it.
Please.

-- 
Zbigniew Szalbot
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD and hardware??

2008-11-18 Thread Zbigniew Szalbot
Hi,

 but it is an MS replacement.   If you overwrite your MS-Win with
 FreeBSD, it completely replaces it.   It will do everything you need
 except look like MS-Win and people who are trying to get out of MS-land
 are happy to find that to be true.Give them a hand rather than
 a kick in the face.

Amen to that! This is something I am also asking for. Wojciech you
often help others here. Let's keep it this way. Please?!

-- 
Zbigniew Szalbot
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Official FreeBSD Forums

2008-11-17 Thread Zbigniew Szalbot
Hi,

 there are difference between less experienced and idiots.
 the latter are less experienced and WANT TO keep it that way.

Wojciech - I appreciate the UNIX knowledge that you have but
continuing this discussion in this manner seems pointless. Your points
are exagerrated to say the least.

I am very happy that FBSD now has forums for users. No matter what you
say not only less experience people use them. Not everyone loves
email. Period. And this condesceding way of talking about possible
FBSD users is what I am becoming sick of. I had the luck to be
introduced to FBSD by a member of this list. He did so much to help me
learn that I am now a happy user. You don't have to help people but
appreciate that there are now more channels of communications than
mailing lists. Online forums is just one example.

Yours,

--
Zbigniew Szalbot
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Official FreeBSD Forums

2008-11-17 Thread Zbigniew Szalbot
Hi,

 it already had for years. just required to turn on brain for a minute or
 less to send subscription mail

The fact that you love to communicate via email does not mean that
everyone shoud/must/does. And you shouldn't call people idiots only
because they have different preference than you.

Regards,

-- 
Zbigniew Szalbot
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Release schedules

2008-11-12 Thread Zbigniew Szalbot
Hello,

 I would like to see the release schedules updated more and I would
 guess that others would too.   But, there is only so much you can
 expect out of volunteers already robbing time from their paying jobs.

I'd be happy to contribute by updating the website provided I am kept
informed about the releases by the engineers. If FBSD team is
interested, I here to help. Contact me offline, please. I feel I need
to give at least something back to the community for this excellent
project.

-- 
Zbigniew Szalbot
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mysql binlogs and their expiry times

2008-10-09 Thread Zbigniew Szalbot
Hello,

 Zbigniew Szalbot wrote:

 | It works so no problem but I do not really like the idea of providing
 | passwords in crontab. I wish the option in my.cnf file worked as
 | advertised.

 Hmmm It's always worked for me to create a file /root/.my.cnf
 containing:

 [client]
 user = root
 password = imnottellingyou

Thank you Matthew. You made me learn something new and very useful! I
appreciate it very much!

-- 
Zbigniew Szalbot
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: uptime 2 years!

2008-10-09 Thread Zbigniew Szalbot
Hi,

2008/10/9 Chad Marshall [EMAIL PROTECTED]:

 Well, I can always except critism. The problem is that I don't need rude
 responses for something I thought would be something to share for your
 organization, a success story of FreeBSD. Only for people to call me lazy
 and say Big Deal. If it's not a big deal, than say nothing.  Maybe you
 should put someone in charge of answering emails who aren't cocky and smug,
 some responses were nice and at least supportive.

Chad - I think that you need to understand one thing. This is a public
list and majority of people who post/respond here aren't FreeBSD
Foundation workers but users of this great OS. At least I see the need
to separate the two. So if people are playing kind of rude, just
ignore them. I was glad to hear that FreeBSD proved useful to you, as
it is proving useful to me and an NGO I work for. I could give you
hips of examples when thanks to this list I have learnt something
useful or was given useful advice. And two years ago I knew nothing
about Unix or Linux. Thanks to this list I can manage FreeBSD (almost)
on my own. :)

But the discussion that followed made me realize that uptime is not
everything. I also love to see huge uptimes on my servers but if
anything this discussion brought it home to me that more than anything
I need to take care of security updates which I do.

All the best,

-- 
Zbigniew Szalbot
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: uptime 2 years!

2008-10-09 Thread Zbigniew Szalbot
2008/10/9 Jon Radel:

 Dear Mr. Marshall:

 I'm terribly sorry that our representatives in charge of answering emails
 have been rude to you.  I've just fired the lot of them, particularly as we
 can't afford to keep then on anymore seeing as how your generous donations
 are now in jeopardy.

How is that supposed to be helpful?

 I will ask, however, that in the future you constrain your e-mail to
 freebsd-questions to either questions or answers to them, so as to not
 inflame our more excitable representatives once we hire a new, much reduced,
 batch of them.

Can you follow your own advice?

-- 
Zbigniew Szalbot
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: uptime 2 years!

2008-10-09 Thread Zbigniew Szalbot
Hi,

2008/10/9 Odhiambo Washington [EMAIL PROTECTED]:
 I love the direction this thread has taken. First, humorous, then it
 will turn into flames.  I bet all my US$:-)

Well, I do not have much to lose in terms of USD ;) but I cannot
really understand why some people are still sort of getting on this
particular user. How does this help to promote FreeBSD? What will new
people joining this community think? What if someone just wanted to
send a donation for FreeBSD foundation? You never really know. I find
it difficult to comprehend why would someone want to undermine FBSD
Foundation work (which we all benefit from) through careless words and
actions.

Yours,

-- 
Zbigniew Szalbot
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mysql binlogs and their expiry times

2008-10-08 Thread Zbigniew Szalbot
Hello,

 -r--r--r--  1 mysql  mysql4954 Oct  1 07:30 my.cnf
 drwx--  2 mysql  mysql1536 Sep 27 07:10 mysql
 -rw-rw  1 mysql  mysql  1073745213 Sep  2 04:07 mysql-bin.47
 -rw-rw  1 mysql  mysql  1073746878 Sep  7 03:48 mysql-bin.48
 -rw-rw  1 mysql  mysql  1073745707 Sep 11 20:07 mysql-bin.49
 -rw-rw  1 mysql  mysql   175527890 Sep 12 08:32 mysql-bin.50
 -rw-rw  1 mysql  mysql  128272 Sep 12 08:40 mysql-bin.51
 -rw-rw  1 mysql  mysql  1073745119 Sep 17 04:35 mysql-bin.52
 -rw-rw  1 mysql  mysql  1073747657 Sep 22 04:26 mysql-bin.53
 -rw-rw  1 mysql  mysql  1073744456 Sep 27 03:28 mysql-bin.54
 -rw-rw  1 mysql  mysql   986782722 Oct  1 07:32 mysql-bin.55
 -rw-rw  1 mysql  mysql  1073742442 Oct  6 04:18 mysql-bin.56
 -rw-rw  1 mysql  mysql   536487381 Oct  8 07:45 mysql-bin.57
 -rw-r-  1 mysql  mysql 209 Oct  6 04:18 mysql-bin.index

 What's the output from running this SQL:  SHOW BINARY LOGS ; ?
mysql SHOW BINARY LOGS ;
+--++
| Log_name | File_size  |
+--++
| mysql-bin.55 |  986782722 |
| mysql-bin.56 | 1073742442 |
| mysql-bin.57 |  754496837 |
+--++
3 rows in set (0.01 sec)

$ cat /usr/local/mysql/mysql-bin.index
./mysql-bin.55
./mysql-bin.56
./mysql-bin.57

So all seems fine. Actually, I have taken this question to mysql list
and found out that other users are reporting similar problems.

http://lists.mysql.com/mysql/206576
http://bugs.mysql.com/bug.php?id=28238
http://lists.mysql.com/mysql/202793

So my final solution (if anyone's interested) was adding this to crontab

11  11  *   *   *   /usr/local/bin/mysql -u root
-psecret -e PURGE MASTER LOGS BEFORE DATE_SUB(CURRENT_DATE, INTERVAL
7 DAY)

It works so no problem but I do not really like the idea of providing
passwords in crontab. I wish the option in my.cnf file worked as
advertised.

Anyway, thank you very much for your help.

-- 
Zbigniew Szalbot
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: update.FreeBSD.org / No mirrors remaining, giving up

2008-10-07 Thread Zbigniew Szalbot
Hi,

2008/10/7 Edwin Groothuis:
 $ freebsd-update fetch
 Fetching metadata signature for 7.0-RELEASE from update.FreeBSD.org... 
 failed.
 No mirrors remaining, giving up.

 I've heard this before and it is caused by resolvers (most likely
 your router?) which don't understand requests for SRV records.

 Use your ISPs nameservers instead of your router and it should be
 fine.

This issue and its fix have been described here:

http://www.nabble.com/misc-127498:-update.freebsd.org-does-not-exist-td19572945.html

I was already using my ISP nameserver so it was not the problem.

-- 
Zbigniew Szalbot
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


  1   2   3   4   5   >