The Perfect Setup - Mandriva 2006 Free Edition - Page 4

2 Installing And Configuring The Rest Of The System

Configure Additional IP Addresses

Let's assume our network interface is eth0. Then there is a file /etc/sysconfig/network-scripts/ifcfg-eth0 which looks like this:


Now we want to create the virtual interface eth0:0 with the IP address All we have to do is to create the file /etc/sysconfig/network-scripts/ifcfg-eth0:0 which looks like this:


Afterwards we have to restart the network:

/etc/init.d/network restart

Setting The Hostname

This is not necessary if you have set the correct hostname during the installation. If you have not, do this:

echo > /etc/hostname
/bin/hostname -F /etc/hostname

Configure urpmi

You can use the wizard on to find out how to configure urpmi so that urpmi uses online package repositories. For me the wizard gave back these commands that I run on the command line:

urpmi.addmedia plf-free with
urpmi.addmedia --update updates with media_info/
urpmi.addmedia main with media_info/
urpmi.addmedia contrib with media_info/

Now we create a script /etc/cron.daily/software_update that will autmatically be run by cron daily and looks for and installs the latest software updates on your Mandriva 2006 system. The script looks like this:

urpmi.update updates
urpmi --auto --update --auto-select

Make the script executable:

chmod 755 /etc/cron.daily/software_update

Install Some Software

urpmi fetchmail wget bzip2 unzip zip nmap openssl lynx fileutils ncftp flex libxorg-x11-devel


urpmi quota

Edit /etc/fstab to look like this (I added ,usrquota,grpquota to the partition with the mount point /):

# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/hda6 / ext3 defaults,usrquota,grpquota 1 1
/dev/hda1 /boot ext3 defaults 1 2
/dev/hdb /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec,users 0 0
none /proc proc defaults 0 0
/dev/hda5 swap swap defaults 0 0

Then run:

touch /aquota.user /
chmod 600 /aquota.*
mount -o remount /
quotacheck -avugm
quotaon -avug


urpmi bind

In the Manadrake BIND package there are a few files missing (e.g. /etc/named.conf), therefore BIND will not start when you run

/etc/init.d/named start

This is nothing to worry about because all needed files are created by ISPConfig as soon as you create your first DNS record with ISPConfig.

Share this page:

10 Comment(s)

Add comment


From: Anonymous at: 2005-12-06 19:56:16

It would be nice to have a version of this howto without all the screenshots of trivial things like the install screens. I like to print these howtos in case I want to use them later. Instead of a couple of pages of useful info, I get 24 pages of screenshots that I''ve already seen when I did the Mandriva install. Maybe some people like it this way, so perhaps you could provide a "concise version" link, like the "printer-friendly version" link.

From: Anonymous at: 2006-05-20 11:10:42

These instructions were quite helpful but I also want instructions on how to set up subversion hosting with mod_dav_svn on Mandriva.

From: sohbet at: 2008-11-15 00:30:42

thank you

From: Anonymous at: 2008-12-03 04:16:10

It is cool. thanks.

From: muhabbet at: 2009-06-21 13:24:35

thank you...

From: Anonymous at: 2005-12-16 05:30:32

Hi, nice howto but I do think is not a good idea to make automatic updates in a server because a sysadmin MUST to know what software is going to install plus there are many updates that need interaction with new config files.

Just my 2 cents.

From: Anonymous at: 2005-12-21 21:33:56

Thanks for this article, Falko, great work.

Small comments:
to start a service, on Mandriva I think it should be:
service [servicename] start
Not sure if it matters though...

As for non-automated updates, of course it's easy to see what would be updated if you use the -t testmode in the urpmi -update command, to make sure you keep track of everything. And it's easy to find out what the updates are for; one of the few things I prefer the GUI for (MCC - software updates).

Enjoy Linux,

From: Anonymous at: 2006-02-10 05:29:05

Thanks for making it. I managed to follow it successfully and almost there with everything I need - including the successful install of ISPconfig but noticed that you didn't include at least base info on adding users accounts for emails and FTP. It would have been nice to see this. I'm currently trying to figure out how to do this part. Keep up the good work. Was good read.


nibbles at gmail

From: admin at: 2006-02-10 14:33:08

You can find these details in the ISPConfig documentation:

From: Anonymous at: 2006-05-11 14:14:30

Only missed how to have also Perl, RubyOnRails and Python ;)