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

[...]
/bin/hostname -F /etc/hostname

6 Configure urpmi

By default, Mandriva 2010.0 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 Script

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 2010.0 system. The script looks like this: