HowtoForge

Ubuntu 11.04 Generic - The SysAdmin Way - Page 6

Let's update our system. Execute the following command:

apt-get update

I don't really like apt-get, and since Ubuntu 10.10 (Maverick Merkat) there is no aptitude in default installation, so first I'm going to install that. Aptitude is basically the same thing as apt-get but it has user interface and is much more user friendly.

apt-get install aptitude

At Do you want to continue [Y/n], enter Y and press Enter.

Now start aptitude by executing:

aptitude

Press Alt+T to initiate main menu and then go to Options --> Preferences, and by hitting Space key edit following options:

[X] Advance to the next item after changing the state of package
[ ] Install recommended packages automatically

Exit aptitude by hitting Q key twice.

Now we are going to upgrade our system by executing:

aptitude full-upgrade

At Do you want to continue [Y/n], enter Y and press Enter.

Select Ok and press Enter to continue.

We have a fully upgraded system so let's do the cleanup and delete downloaded package files by executing:

aptitude clean

Now we are going to install our first software packages so let's see which ones:

To install all of these, execute the following command:

aptitude install -R -y dma safecat emacs23-nox debconf-english debconf-i18n_ bsd-mailx sysfsutils localepurge

If you intend to use generic image on other machines/VM's, leave the System mail name as it is and press Ok to continue (as it will be configured on the machine/VM you intend to use it on).

If you intend to use generic image on other machines/VM's, leave the Smarthost empty, as it will be configured on the machine/VM you intend to use it on.

Select Ok and press Enter to continue.

Make your choice (usually it's not necessary), and press Ok to continue.

Select Yes and press Enter to continue.

Select No and press Enter to continue.

Select Yes and press Enter to continue.

Select No and press Enter to continue.

Select Yes and press Enter to continue.

When the installation is over, let's do the cleanup and delete downloaded package files by executing:

aptitude clean

Let's also defragmet our root partition by executing:

xfs_fsr -v /dev/sda3

Reboot the system by executing:

reboot

 

04. The conclusion

As I stated at the beginning of this tutorial, what you have now is a great starting point for all of your future Ubuntu projects.

If you use it for virtualization:

If you use it for real machines:

Don't forget at least to change host name and network settings when cloning this installation to other machines/VM-s to avoid possible conflicts, and enjoy Ubuntu. That's all folks!

Ubuntu 11.04 Generic - The SysAdmin Way - Page 6