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 |
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 |
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 |
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 |
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.