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.

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