Jul
10
2009
2

Run apt-get update automatically under Debian

There are a few different ways to run apt-get update. But there is already a cronjob included in the apt-package.

This cronjob is lying in /etc/cron.daily/apt and has almost nothing to do, because everything is disabled by default.

You can add the following lines to your apt.conf, to make things work.
Start your favorite editor and open /etc/apt/apt.conf (by default, this file does not exists).

- Run apt-get update everyday:

APT::Periodic::Update-Package-Lists 1;

- Fetch all upgradeable packages every 7 days:

APT::Periodic::Download-Upgradeable-Packages 7;

- Run apt-get autoclean every 7 days:

APT::Periodic::AutocleanInterval 7;

- Run unattended upgrade every n days (0 disables it):

APT::Periodic::Unattended-Upgrade 0;

You can disable the unattended upgrade by changing it to a positive value greater zero. But keep in mind, that this can seriously damage your system, if things go wrong!

If you like to check, if everything is working as excepted, you may be waiting a few minutes. The cronjob is using a random value for sleeping some time. This is useful, to make sure, that your systems won’t connect to your apt-mirror at the same time. But for testing, this is really annoying.
Let’s change it for testing. Add the following line to your apt.conf:

APT::Periodic::RandomSleep 5;

If you’ve finished testing, simply remove this line.

Written by saz in: Debian,Etch,Lenny,Linux | Tags: , , , , , ,
Mar
25
2009
7

Install Openfire on Debian Lenny

If you’re looking for a good jabber/XMPP server with LDAP/Active Directory integration. Have a look at Openfire. It’s working really great and you can push contacts to your clients. No need for adding every employee of your company on your users client.

I’ve installed Openfire on Debian Lenny. Here is a short description, of what you have to do.

1. Enable non-free sources.list
You have to add the non-free repository to your /etc/apt/sources.list, because you have to install sun-java6-jre
(You can also use sun-java5-jre, but on my freshly installed Lenny, sun-java6-jre has less dependencies).

Here is my /etc/apt/sources.list:

1
2
3
4
5
#
# lenny
#
deb     http://ftp-stud.fht-esslingen.de/debian/     lenny main contrib non-free
deb-src http://ftp-stud.fht-esslingen.de/debian/     lenny main contrib non-free
1
2
3
4
5
#
#  Security updates
#
deb     http://security.debian.org/ lenny/updates  main contrib non-free
deb-src http://security.debian.org/ lenny/updates  main contrib non-free

After adding the non-free repository, run apt-get update.

2. Install SUN Java 6 JRE

1
apt-get install sun-java6-jre

3. Download latest version of Openfire as .deb
You can find more information about versions here.

1
wget http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3.6.3_all.deb

4. Install Openfire

1
dpkg -i openfire_3.6.3_all.deb

5. Fixing missing LSB information (not required)
During installation of the Openfire packet, update-rc.d is reporting, that LSB information is missing from init-script.
As I don’t like such warnings, I’ve created a patch for adding the LSB information.

Note: You need the ‘patch’ program installed (apt-get install patch).

1
patch -p0 < openfire_3.6.3_fix_missing_LSB_information.patch

I will soon write an article about configuring Openfire for Active Directory connection.

Jan
28
2009
0

XEN: “Device 0 (vif) could not be connected. Backend device not found.”

Sollte die Meldung

1
Device 0 (vif) could not be connected. Backend device not found.

beim Versuch, eine XEN DomU zu starten, angezeigt werden, fehlen eventuell die bridge-utils.

Unter Debian genügt ein

1
apt-get install bridge-utils

um die Bridge-Utils zu installieren.

Written by saz in: Debian,Etch,Linux,Xen | Tags: , ,
Dec
14
2008
0

Debian, Nagios3 und Kommandos über das Web-Interface

Ich hatte heute das Problem, dass ich aus Nagios 3 unter Debian Lenny kein Kommando über das Web-Interface abschicken konnte.

Ich wurde von folgender Fehlermeldung beglückt:

Error: Could not stat() command file ‘/var/lib/nagios3/rw/nagios.cmd’!

Tief in meinem Kopf war auch die Lösung noch vorhanden, allerdings war sie nicht mehr ganz so bewusst. Auf jeden Fall war mir klar, dass es sich um ein Rechteproblem handelt. Wenn ich den Benutzer www-data (unter welchem Apache läuft) in die Nagios-Gruppe aufgenommen hätte, wäre das Problem gelöst. Allerdings ist das nicht der Debian-Weg.

Nach einer kurzen Suche im Web fand ich diesen Blogeintrag.

Kurz nochmal die zwei Befehle:

1
2
dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios3/rw
dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios3

Dann Nagios neu starten und die Sache hat sich.

Written by saz in: Debian,Linux,Nagios | Tags: , , ,
Nov
14
2008
2

Windows-Freigabe unter Linux mit korrekten Umlauten mounten

Hatte heute das Problem, dass ich keinen Share von einem Windows 2003 Server unter Linux (Debian) mit Umlauten mounten konnte. Es wurden immer Fragezeichen (?) angezeigt.

Hier die Lösung:
In die /etc/fstab (oder eben per -o beim mounten übergeben) folgendes schreiben.

1
//192.168.0.2/data /mnt/data cifs username=BENUTZERNAME,password=PASSWORT,uid=www-data,gid=www-data,iocharset=utf8,codepage=cp850 0 0

Damit funktioniert es einwandfrei. uid und gid kann auch weggelassen werden, dass sorgt nur dafür, dass alles dem Benutzer und der Gruppe gehört.

Hoffe geholfen zu haben.

Written by saz in: Debian,Linux | Tags: , ,
Oct
28
2008
0

VMware Server 1 unter Debian Etch ohne X installieren

Ich wollte den VMware Server 1 unter Debian Etch installieren. In vielen How-To’s im Internet waren meist mehrere X-Pakete mit angegeben. Das hat mich ein wenig gestört, also hab ich die Sache selbst probiert.

Folgende Pakete müssen installiert werden, damit die Installation von VMware Server auch sauber funktioniert:

1
apt-get install linux-headers-`uname -r` libxtst6 libxt6 libxrender1 build-essential

Danach kann VMware Server über das vmware-install.pl-Skript ganz normal installiert werden.

Schönen Tag noch.

Written by saz in: Debian,Etch,Linux,VMware | Tags: , ,

Powered by WordPress | Theme: Aeros 2.0 by TheBuckmaker.com