VMware Images:
|
The Perfect Setup - Mandriva 2007 Free Edition - Page 4
4 Adjust /etc/hostsNext we edit /etc/hosts. Make it look like this: vi /etc/hosts
5 Configure Additional IP Addresses(This step is totally optional and is needed only if you want to add more IP addresses to your network interface eth0!) Let's assume our network interface is eth0. Then there is a file /etc/sysconfig/network-scripts/ifcfg-eth0 which looks like this: vi /etc/sysconfig/network-scripts/ifcfg-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: vi /etc/sysconfig/network-scripts/ifcfg-eth0:0
Afterwards we have to restart the network: /etc/init.d/network restart You might also want to adjust /etc/hosts after you have added new IP addresses, although this is not necessary.
6 Setting The Hostname(This step is also optional.) This is not necessary if you have set the correct hostname during the installation. You can check the current hostname with the commands hostname If the output shows a wrong hostname, you can set the correct one like this: echo server1.example.com > /etc/hostname
7 Configure urpmiYou 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 main ftp://ftp.proxad.net/pub/Distributions_Linux/MandrivaLinux/devel/2007.0/i586/media/main/release 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 2007 system. The script looks like this: vi /etc/cron.daily/software_update
Make the script executable: chmod 755 /etc/cron.daily/software_update
8 Install Some PackagesNow we install a few packages that are needed later on: urpmi fetchmail wget bzip2 unzip zip nmap openssl lynx fileutils ncftp flex libxorg-x11-devel gcc gcc-c++
9 QuotaTo install the quota package, run urpmi quota Edit /etc/fstab to look like this (I added ,usrquota,grpquota to the partition with the mount point /): vi /etc/fstab
Then run: touch /aquota.user /aquota.group
10 DNS ServerTo install The BIND DNS server, run: urpmi bind Mandriva 2007's BIND is running chrooted by default, therefore we need to create a few symlinks so that ISPConfig (if you want to install it) can deal with it: cd /var/lib/named/var Then start BIND: /etc/init.d/named start
|



Recent comments
9 hours 31 min ago
20 hours 44 min ago
1 day 2 hours ago
1 day 20 hours ago
1 day 22 hours ago
1 day 22 hours ago
2 days 2 hours ago
2 days 3 hours ago
2 days 18 hours ago
2 days 20 hours ago