The Perfect Server - Mandriva 2008 Spring Free (Mandriva 2008.1) For x86_64 - Page 4
4 Adjust /etc/hostsNext we edit /etc/hosts. Make it look like this: vi /etc/hosts
5 Setting The Hostname(This step is 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 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
6 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' 'http://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2008.1/x86_64/media/main/release' urpmi.addmedia 'Contrib' 'http://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2008.1/x86_64/media/contrib/release' urpmi.addmedia 'Main Updates' 'http://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2008.1/x86_64/media/main/updates' urpmi.addmedia 'Contrib Updates' 'http://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2008.1/x86_64/media/contrib/updates'
6.1 Disable The Installation CDs(This applies only if you're using the three Mandriva 2008.1 installation CDs, not the DVD!) I haven't tested this as I'm using the DVD, not the CDs, but for the CDs the command should be as follows: To disable the Mandriva 2008.1 CDs as a package repository, we run urpmi.removemedia "Mandriva Linux - 2008.1 (Free64) - x86_64 CD1" (This is particularly useful if your server will be in a remote location where you cannot insert the CDs.) You can find out the correct names of the media by running: ls -l /var/lib/urpmi/ You can take the correct names from the names.* entries.
6.2 Disable The Installation DVD(This applies only if you're using the Mandriva 2008.1 installation DVD, not the three CDs!) To disable the Mandriva 2008.1 DVD as a package repository, we run urpmi.removemedia "Mandriva Linux - 2008.1 (Free64) - Installer (contrib)"
6.3 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 2008.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 2008.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
|
Join the discussion.
www.seamlessenterprise.com
IP Convergence
Integrate your wireless and wireline networks.
Learn how from the experts at Sprint.
www.seamlessenterprise.com
Wireless & Wireline Integration
Thoughts, strategies and solutions: join the discussion
www.seamlessenterprise.com
Unified Communications 2009
Join the Discussion. Now.
www.seamlessenterprise.com
Red Hat Virtual Experience - a free virtual event. Dec. 9th








print: 
Recent comments
12 hours 19 min ago
18 hours 7 min ago
19 hours 58 min ago
21 hours 43 min ago
1 day 1 hour ago
1 day 7 hours ago
1 day 7 hours ago
1 day 11 hours ago
1 day 17 hours ago
1 day 22 hours ago