TUTORIAL
--------------------------------------------------------------------------------------------------------
1 Requirements
To install such a system you will need the following:
2 Preliminary Note
In this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100 and the gateway 192.168.0.1. These settings might differ for you, so you have to replace them where appropriate.
3 The Base System
Insert your Ubuntu install CD into your system and boot from it. Select your language:
Anexo 15988
Then select Install Ubuntu Server:
Anexo 15989
Choose your language again (?):
Anexo 15990
Then select your location:
Anexo 15991
Anexo 15992Anexo 15993
Choose a keyboard layout (you will be asked to press a few keys, and the installer will try to detect your keyboard layout based on the keys you pressed):
Anexo 15994
Anexo 15995
The installer checks the installation CD, your hardware, and configures the network with DHCP if there is a DHCP server in the network:
Anexo 15996Anexo 15997
Enter the hostname. In this example, my system is called
server1.example.com, so I enter
server1:
Anexo 15998
CONTINUA NO PROXIMO POST
Anexo 15999Anexo 15999
Please check if the installer detected your time zone correctly. If so, select Yes, otherwise No:
Anexo 15999
Now you have to partition your hard disk. For simplicity's sake I select Guided - use entire disk and set up LVM - this will create one volume group with two logical volumes, one for the / file system and another one for swap (of course, the partitioning is totally up to you - if you know what you're doing, you can also set up your partitions manually).
Anexo 16000
Select the disk that you want to partition:
Anexo 16001
When you're asked Write the changes to disks and configure LVM?, select Yes:
Anexo 16002
If you have selected Guided - use entire disk and set up LVM, the partitioner will create one big volume group that uses all the disk space. You can now specify how much of that disk space should be used by the logical volumes for / and swap. It makes sense to leave some space unused so that you can later on expand your existing logical volumes or create new ones - this gives you more flexibility.
Anexo 16003
When you're finished, hit Yes when you're asked Write the changes to disks?:
Anexo 16004
Afterwards, your new partitions are being created and formatted:
Anexo 16005
Now the base system is being installed:
Anexo 16006
Create a user, for example the user Administrator with the user name administrator (don't use the user name admin as it is a reserved name on Ubuntu 10.10):
Anexo 16007
Anexo 16008Anexo 16009Anexo 16010
I don't need an encrypted private directory, so I choose No here:
Anexo 16011
Next the package manager apt gets configured. Leave the HTTP proxy line empty unless you're using a proxy server to connect to the Internet:
Anexo 16012
Anexo 16012Anexo 16013
I'm a little bit old-fashioned and like to update my servers manually to have more control, therefore I select No automatic updates. Of course, it's up to you what you select here:
Anexo 16014
We need a DNS, mail, and LAMP server, but nevertheless I don't select any of them now because I like to have full control over what gets installed on my system. We will install the needed packages manually later on. The only item I select here is OpenSSH server so that I can immediately connect to the system with an SSH client such as
PuTTY after the installation has finished:
Anexo 16015
The installation continues:
Anexo 16016
The GRUB boot loader gets installed:
Anexo 16017
Select Yes when you are asked Install the GRUB boot loader to the master boot record?:
Anexo 16018
The base system installation is now finished. Remove the installation CD from the CD drive and hit Continue to reboot the system:
Anexo 16019
After the reboot you can login with your previously created username (e.g. administrator). Because we must run all the steps from this tutorial with root privileges, we can either prepend all commands in this tutorial with the string sudo, or we become root right now by typing
sudo su
(You can as well enable the root login by running
sudo passwd root
and giving root a password. You can then directly log in as root, but this is frowned upon by the Ubuntu developers and community for various reasons. See
Ubuntu Forums.)
CONTINUA NO PROXIMO POST