Server Guided Whole Disk Install
Default install
Case ID: SWI-001
- Boot CD and run the CD self-check (then reboot)
Select Install Ubuntu Server
- Choose your language, country and keyboard layout
- Choose your network card (only with multiple network cards)
- Set hostname: default - ubuntu
- Select your time zone and set the system clock to UTC
Partition disks: Guided use entire disk
- User account: enter username and password
- No software selection.
- Reboot and login.
Bind9
Case ID: SWI-002
- Boot CD and run the CD self-check (then reboot)
Select Install to hard disk
- Choose your language, country and keyboard layout
- Set hostname: default - ubuntu
- Partition disks: Guided use entire disk
- Select your time zone and set the system clock to UTC
- User account: enter username and password
Software selection: DNS Server
- Reboot and login.
- Confirm that bind is running:
pgrep named
should return the pid of named.
- Confirm that bind is listening for IPv4 and IPv6:
sudo netstat -atuvpn | egrep '(127.0.0.1|::):53 .*' | egrep -v ESTABLISHED
should list named is listening on port 53 for tcp, tcp6, udp and udp6.
- If the system can access the outside world, dns queries against the server at localhost should work
host www.ubuntu.com localhost
host -T www.ubuntu.com localhost
host -6 www.ubuntu.com localhost
host -T -6 www.ubuntu.com localhost
LAMP
Case ID: SWI-003
- Boot CD and run the CD self-check (then reboot)
Select Install to hard disk
- Choose your language, country and keyboard layout
- Set hostname: default - ubuntu
- Partition disks: Guided use entire disk
- Select your time zone and set the system clock to UTC
- User account: enter username and password
Software selection: LAMP
- Reboot and login.
Test Apache:
Execute
w3m http://127.0.0.1/
in a terminal and verify that it's not a 404 error page.
Test MySQL
Execute
mysql -u root -p
in a terminal. You should then be presented with a mysql prompt mysql> where you can enter mysql commands. Some commands you can use to verify the installation are show databases;, connect mysql;, show tables;, and select * from user;:
show databases; connect mysql; show tables; select * from user;
Default installation: LVM partitioning
Case ID: SWI-004
- Boot CD and run the CD self-check (then reboot)
Select Install to hard disk
- Choose your language, country and keyboard layout
- Set hostname: default - ubuntu
Partition disks: Guided use entire disk and LVM
- Select your time zone and set the system clock to UTC
- User account: enter username and password
- No software selection.
- Reboot and login.
- Make sure that the root file system is mounted from /dev/mapper/ubuntu-root:
sudo mount
Mail server
Case ID: SWI-005
- Boot CD and run the CD self-check (then reboot)
- Select preferred language
Select Install to hard disk
- Choose your language, country and keyboard layout
- Set hostname: default - ubuntu
- Select your time zone and set the system clock to UTC
- Partition disks: Guided use entire disk
- User account: enter username and password
Software selection: Mail Server
- Select configuration for Postfix (generally should be "Internet" or "Internet with smarthost")
- Reboot and login
- Confirm that postfix is running:
telnet 127.0.0.1 25
should connect to postfix. Type "quit" to disconnect.
- Confirm that dovecot pop3 and imap servers are running:
sudo netstat -ltnp | grep dovecot
should list 4 dovecot instances (port 110, 143, 993 and 995).
- Send a test email:
echo foo | mail -s 'test' ${USER}Start
mutt
- the test email should be in the inbox.
Openssh server
Case ID: SWI-006
- Boot CD and run the CD self-check (then reboot)
Select Install to hard disk
- Choose your language, country and keyboard layout
- Set hostname: default - ubuntu
- Partition disks: Guided use entire disk
- Select your time zone and set the system clock to UTC
- User account: enter username and password
Software selection: Openssh Server
- Reboot and login.
- Confirm that sshd is running:
pgrep sshd
should return the pid of sshd.- If you can, try to connect to the server from a remote client.
PostgreSQL Database Server
Case ID: SWI-007
- Boot CD and run the CD self-check (then reboot)
Select Install to hard disk
- Choose your language, country and keyboard layout
- Set hostname: default - ubuntu
- Partition disks: Guided use entire disk
- Select your time zone and set the system clock to UTC
- User account: enter username and password
Software selection: PostgreSQL Database
- Reboot and login.
- Check that the database is running:
sudo -u postgres psql -l
should return a list of databases. - Create a database user:
sudo -u postgres createuser -DRS ${USER}should create a user.
- Create a database:
sudo -u postgres createdb -O ${USER} ${USER}_dbshould create a database.
- Connect to the database:
psql ${USER}_dbshould start a psql shell connected to the database.
Print server
Case ID: SWI-008
- Boot CD and run the CD self-check (then reboot)
Select Install to hard disk
- Choose your language, country and keyboard layout
- Set hostname: default - ubuntu
- Partition disks: Guided use entire disk
- Select your time zone and set the system clock to UTC
- User account: enter username and password
Software selection: Print Server
- Reboot and login.
Test cups:
sudo /etc/init.d/cups status
should state the cupsd is running.
Samba server
Case ID: SWI-009
- Boot CD and run the CD self-check (then reboot)
Select Install to hard disk
- Choose your language, country and keyboard layout
- Set hostname: default - ubuntu
- Partition disks: Guided use entire disk
- Select your time zone and set the system clock to UTC
- User account: enter username and password
Software selection: Samba Server
- Reboot and login.
- Confirm that samba is running:
pgrep smbd, pgrep nmbd, pgrep winbindd should return the pid of the different processes:
pgrep smbd; pgrep nmbd; pgrep winbindd
Tomcat server
Case ID: SWI-010
- Boot CD, select your language and run the CD self-check
Reboot CD, select your language and select Install Ubuntu Server
- Choose your country and keyboard layout
- Set hostname: default - ubuntu
- Partition disks: Guided use entire disk
- User account: enter username and password
Software selection: Tomcat Java server
- Reboot and login.
- Confirm that Tomcat is running:
sudo netstat -ltnp | grep jsvc
should show a jsvc instance listening on port 8080.
- Confirm that Tomcat is working properly:
w3m http://127.0.0.1:8080
should bring up a "It works !" pagew3m http://localhost:8080/examples/servlets/servlet/HelloWorldExample
should bring up a "Hello World!" page.w3m http://localhost:8080/examples/jsp/jsp2/el/basic-arithmetic.jsp
should bring a page containing basic arithmetics.
NB: w3m basics: moving cursor and hit <Enter> to follow links, <B> to come back to the previous page, <q> to quit
Virtualization Host
Case ID: SWI-011
- Boot CD, select your language and run the CD self-check
Reboot CD, select your language and select Install Ubuntu Server
- Choose your language, country and keyboard layout
- Choose your network card (only with multiple network cards)
- Set hostname: default - ubuntu
- Select your time zone and set the system clock to UTC
- Partition disks: Guided use entire disk
- User account: enter username and password
- Choose how you want to manage software updates
Software selection: Virtual Machine host
- Reboot and login.
- Check that the ubuntu-virt-server package is installed:
dpkg -l ubuntu-virt-server
- Confirm that you have KVM-capable hardware:
kvm-ok
KVM acceleration can be used
- If so:
- confirm that the KVM kernel module is loaded:
lsmod | grep kvm
kvm_intel 56928 1
kvm_amd 29196 0
- Confirm that KVM is working properly by downloading an Ubuntu mini.iso, and booting it:
wget http://archive.ubuntu.com/ubuntu/dists/hardy-updates/main/installer-amd64/current/images/netboot/mini.iso
kvm -m 256 -cdrom mini.iso
- The Ubuntu installer boot menu should be running
- confirm that the KVM kernel module is loaded: