On some of freshly installed servers (Debian Etch), I encountered these error messages in /var/log/munin/munin-node.log:
Use of uninitialized value in eval {block} exit at /usr/sbin/munin-node line 456, <CHILD> line 8.
What a great error message
After digging into Google results, I found it was just a problem with host_name variable in the configuration. Default value is hostname.localdomain. I’ve replaced it with a valid hostname and it works!
This entry was written by , posted on March 11, 2009 at 8:51 am, filed under Monitoring and tagged debian, etch, munin. Leave a comment or view the discussion at the permalink.
If you encounter this warning message under Linux:
2009/03/09 21:23:19 [warn] 26827#0: 4096 worker_connections are more than open file resource limit: 1024
A solution is to use the command ulimit in nginx start script, just before lunching nginx:
[...] ulimit -n 65536 [...]
This entry was written by , posted on March 9, 2009 at 10:30 pm, filed under Distro, http and tagged debian, linux, nginx, ulimit. Leave a comment or view the discussion at the permalink.
If like me you just have upgraded your Debian system to Lenny, you probably encounter the following warnings while launching perl:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "fr_FR.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
To get rid of these annoying messages, I’ve just reconfigured locales with the command:
# dpkg-reconfigure locales
Choose your locale when you’re asked for your “Default locale for the system environment”.
You should have a message like:
Generating locales (this might take a while)... en_US.UTF-8... done Generation complete.
Then, logout, login and your perl installation works fine!
This entry was written by , posted on February 24, 2009 at 11:59 am, filed under Distro and tagged debian, lenny, locales, perl. Leave a comment or view the discussion at the permalink.
Sun JRE is available in the non-free repository. You need to update your repositories configuration file (/etc/apt/sources.list).
Add the following line:
deb http://ftp.us.debian.org/debian/ etch main contrib non-free
Update apt with apt-get update command and you’re ready to install the JRE.
$ apt-get install sun-java5-jre
Check your java binary:
$ java -version java version "1.5.0_14" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03) Java HotSpot(TM) Client VM (build 1.5.0_14-b03, mixed mode, sharing)
This entry was written by , posted on November 13, 2008 at 1:07 pm, filed under Java and tagged debian, etch, Java, jre. Leave a comment or view the discussion at the permalink.
apticron is a shell script that send you an email report when new packages are available on your debian server.
As root, do:
apt-get install apticron
To receive reports on your email change the EMAIL variable in the configuration file. By default, reports are sent to the root user.
EMAIL="root" -> EMAIL="you@domain.com"
Now apticron will send you reports like this:
apticron report [Sat, 26 Jul 2008 06:45:47 +0200] ============================================== apticron has detected that some packages need upgrading on: localhost.localdomain [ 127.0.0.1 XXX.XXX.XXX.XXX ] The following packages are currently pending an upgrade: lighttpd 1.4.13-4etch10 ======================================================================== Package Details: Reading changelogs... --- Changes for lighttpd --- lighttpd (1.4.13-4etch10) stable-security; urgency=low [ Pierre Habouzit ] * Non-maintainer upload. * Fix [CVE-2008-1531] patches mess, and add a missing hunk of the patch. -- Thijs Kinkhorst thijs debian org Tue, 22 Jul 2008 12:19:10 +0200 ======================================================================== You can perform the upgrade by issuing the command: aptitude dist-upgrade as root on localhost.localdomain It is recommended that you simulate the upgrade first to confirm that the actions that would be taken are reasonable. The upgrade may be simulated by issuing the command: aptitude -s -y dist-upgrade -- apticron
For more informations, you can have a look to those files:
/etc/cron.daily/apticron /usr/sbin/apticron
This entry was written by , posted on July 30, 2008 at 7:34 am, filed under Distro and tagged apticron, debian, linux. Leave a comment or view the discussion at the permalink.