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:

DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.100
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=no
USERCTL=no
IPV6INIT=no
IPV6TO4INIT=no
PEERDNS=yes
NETMASK=255.255.255.0
IPADDR=192.168.0.100

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

DEVICE=eth0:0
BOOTPROTO=static
IPADDR=192.168.0.101
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=no
USERCTL=no

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 server1.example.com > /etc/hostname
/bin/hostname -F /etc/hostname

Configure urpmi

You can use the wizard on http://easyurpmi.zarb.org/ 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 http://distrib-coffee.ipsl.jussieu.fr/pub/linux/plf/mandriva/free/2006.0/i586 with hdlist.cz
urpmi.addmedia --update updates ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/Mandrakelinux/official/updates/2006.0/main_updates/ with media_info/hdlist.cz
urpmi.addmedia main ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/Mandrakelinux/official/2006.0/i586/media/main with media_info/hdlist.cz
urpmi.addmedia contrib ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/Mandrakelinux/official/2006.0/i586/media/contrib with media_info/hdlist.cz

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:

#!/bin/bash
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


Quota

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 /aquota.group
chmod 600 /aquota.*
mount -o remount /
quotacheck -avugm
quotaon -avug


DNS-Server

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:

0 Comment(s)

Add comment

Comments

From: falko at: Nov 29, 2005