The Perfect Server - Mandriva 2009.1 Free (x86_64) [ISPConfig 2] - Page 4
4 Adjust /etc/hostsNext we edit /etc/hosts. Make it look like this: vi /etc/hosts
5 Setting The HostnameYou can check the current hostname with the commands hostname Both commands should show server1.example.com. If the output shows a wrong hostname, you can set the correct one like this: echo server1.example.com > /etc/hostname To have the system set the correct hostname whenever you boot the system, we add the last command to /etc/rc.local: vi /etc/rc.local
6 Configure urpmiBy default, Mandriva 2009.1 uses the installation DVD as its only software repository which is inconvenient if the server is in a remote location. Therefore we disable the DVD and enable the Mandriva online repositories: urpmi.removemedia -a && urpmi.addmedia --distrib --mirrorlist
6.1 Creating An Auto-Update ScriptNow 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 2009.1 system. The script looks like this: vi /etc/cron.daily/software_update
Make the script executable: chmod 755 /etc/cron.daily/software_update 7 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 lib64xorg-x11-devel gcc gcc-c++
8 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
9 DNS ServerTo install the BIND DNS server, run: urpmi bind Mandriva 2009.1'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 Next we create the system startup links for BIND... chkconfig named on ... and start it: /etc/init.d/named start
|



Recent comments
7 hours 9 sec ago
7 hours 59 min ago
11 hours 46 min ago
13 hours 53 sec ago
16 hours 37 min ago
23 hours 52 min ago
1 day 8 hours ago
1 day 10 hours ago
2 days 1 hour ago
2 days 3 hours ago