ServerInstall

Differences between revisions 1 and 39 (spanning 38 versions)
Revision 1 as of 2007-09-19 20:37:09
Size: 2492
Editor: c55DDBF51
Comment: new
Revision 39 as of 2009-01-15 10:47:26
Size: 10263
Editor: lns-bzn-48f-81-56-218-246
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
[[Include(Testing/Cases/Header)]] <<Include(Testing/Cases/Header)>>

||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;"><<TableOfContents(3)>>||
Line 5: Line 7:
 ''Server installs with full disk, LVM, bind9 and LAMP setups .''  ''Server installs.''
Line 9: Line 11:
<<Anchor(default)>>
Line 21: Line 24:
<<Anchor(bind9)>>
=== Bind9 ===

 1. Boot CD and run the CD self-check (then reboot)
 1. Select '''Install to hard disk'''
 1. Choose your language, country and keyboard layout
 1. Set hostname: default - ubuntu
 1. Partition disks: Guided use entire disk
 1. Select your time zone and set the system clock to UTC
 1. User account: enter username and password
 1. Software selection: '''DNS Server'''
 1. Reboot and login.
 1. Confirm that bind is running:
  * {{{
pgrep named}}} should return the pid of named.
 1. 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.

<<Anchor(lamp)>>
=== LAMP ===

 1. Boot CD and run the CD self-check (then reboot)
 1. Select '''Install to hard disk'''
 1. Choose your language, country and keyboard layout
 1. Set hostname: default - ubuntu
 1. Partition disks: Guided use entire disk
 1. Select your time zone and set the system clock to UTC
 1. User account: enter username and password
 1. Software selection: '''LAMP'''
 1. Reboot and login.
 1. '''Test Apache:'''
  * Execute {{{
w3m http://127.0.0.1/}}} in a terminal and verify that it's not a 404 error page.
 1. '''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;
}}}

<<Anchor(lvm)>>
Line 32: Line 77:

=== Bind9 ===

 1. Boot CD and run the CD self-check (then reboot)
 1. Select '''Install to hard disk'''
 1. Choose your language, country and keyboard layout
 1. Set hostname: default - ubuntu
 1. Partition disks: Guided use entire disk
 1. Select your time zone and set the system clock to UTC
 1. User account: enter username and password
 1. Software selection: '''bind9'''
 1. Reboot and login.
 1. Confirm that bind is running:
  * {{{pgrep named}}} should return the pid of named.

=== LAMP ===

 1. Boot CD and run the CD self-check (then reboot)
 1. Select '''Install to hard disk'''
 1. Choose your language, country and keyboard layout
 1. Set hostname: default - ubuntu
 1. Partition disks: Guided use entire disk
 1. Select your time zone and set the system clock to UTC
 1. User account: enter username and password
 1. Software selection: '''LAMP'''
 1. Reboot and login.
 1. '''Test Apache:'''
  * Execute {{{wget http://127.0.0.1/apache2-default/index.html}}} in a terminal and verify that it is the same as /var/www/apache2-default/index.html (i.e. 'diff index.html /var/www/apache2-default/index.html').
 1. '''Test MySQL'''
  * Execute {{{mysql -u root}}} 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;}}}.
 1. Make sure that the root file system is mounted from /dev/mapper/ubuntu-root:
   {{{
sudo mount}}}

<<Anchor(mail-server)>>
=== Mail server ===

 1. Boot CD and run the CD self-check (then reboot)
 1. Select preferred language
 1. Select '''Install to hard disk'''
 1. Choose your language, country and keyboard layout
 1. Set hostname: default - ubuntu
 1. Select your time zone and set the system clock to UTC
 1. Partition disks: Guided use entire disk
 1. User account: enter username and password
 1. Software selection: '''Mail Server'''
 1. Select configuration for Postfix (generally should be "Internet" or "Internet with smarthost")
 1. Reboot and login
 1. Confirm that postfix is running:
  * {{{
telnet 127.0.0.1 25}}} should connect to postfix. Type "quit" to disconnect.
 1. 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).
 1. Send a test email:
  * {{{
echo foo | mail -s 'test' ${USER} }}}
  * Start {{{
mutt}}} - the test email should be in the inbox.

<<Anchor(openssh-server)>>
=== Openssh server ===

 1. Boot CD and run the CD self-check (then reboot)
 1. Select '''Install to hard disk'''
 1. Choose your language, country and keyboard layout
 1. Set hostname: default - ubuntu
 1. Partition disks: Guided use entire disk
 1. Select your time zone and set the system clock to UTC
 1. User account: enter username and password
 1. Software selection: '''Openssh Server'''
 1. Reboot and login.
 1. 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.

<<Anchor(postgresql-server)>>
=== PostgreSQL Database Server ===

 1. Boot CD and run the CD self-check (then reboot)
 1. Select '''Install to hard disk'''
 1. Choose your language, country and keyboard layout
 1. Set hostname: default - ubuntu
 1. Partition disks: Guided use entire disk
 1. Select your time zone and set the system clock to UTC
 1. User account: enter username and password
 1. Software selection: '''PostgreSQL Database'''
 1. Reboot and login.
 1. Check that the database is running:
 {{{
sudo -u postgres psql -l}}} should return a list of databases.
 1. Create a database user:
   {{{
sudo -u postgres createuser -DRS ${USER} }}} should create a user.
 1. Create a database:
   {{{
sudo -u postgres createdb -O ${USER} ${USER}_db}}} should create a database.
 1. Connect to the database:
   {{{
psql ${USER}_db}}} should start a psql shell connected to the database.

<<Anchor(print-server)>>
=== Print server ===

 1. Boot CD and run the CD self-check (then reboot)
 1. Select '''Install to hard disk'''
 1. Choose your language, country and keyboard layout
 1. Set hostname: default - ubuntu
 1. Partition disks: Guided use entire disk
 1. Select your time zone and set the system clock to UTC
 1. User account: enter username and password
 1. Software selection: '''Print Server'''
 1. Reboot and login.
 1. '''Test cups:'''
   * {{{
sudo /etc/init.d/cups status}}} should state the cupsd is running.

<<Anchor(samba-server)>>
=== Samba server ===

 1. Boot CD and run the CD self-check (then reboot)
 1. Select '''Install to hard disk'''
 1. Choose your language, country and keyboard layout
 1. Set hostname: default - ubuntu
 1. Partition disks: Guided use entire disk
 1. Select your time zone and set the system clock to UTC
 1. User account: enter username and password
 1. Software selection: '''Samba Server'''
 1. Reboot and login.
 1. 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
}}}

<<Anchor(tomcat-server)>>
=== Tomcat server ===

 1. Boot CD, select your language and run the CD self-check
 1. Reboot CD, select your language and select '''Install Ubuntu Server'''
 1. Choose your country and keyboard layout
 1. Set hostname: default - ubuntu
 1. Partition disks: Guided use entire disk
 1. User account: enter username and password
 1. Software selection: '''Tomcat Java server'''
 1. Reboot and login.
 1. Confirm that Tomcat is running:
  * {{{
sudo netstat -ltnp | grep jsvc}}} should show a jsvc instance listening on port 8080.
 1. Confirm that Tomcat is working properly:
  * {{{
w3m http://127.0.0.1:8080}}} should bring up a "It works !" page
  * {{{
 w3m 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
  
<<Anchor(virt-host)>>
=== Virtualization Host ===

 1. Boot CD, select your language and run the CD self-check
 1. Reboot CD, select your language and select '''Install Ubuntu Server'''
 1. Choose your country and keyboard layout
 1. Set hostname: default - ubuntu
 1. Partition disks: Guided use entire disk
 1. User account: enter username and password
 1. Software selection: '''Virtual Machine host'''
 1. Reboot and login.
 1. Check that the ubuntu-virt-server package is installed:
{{{
dpkg -l ubuntu-virt-server
}}}
 1. Confirm that you have KVM-capable hardware:
  * {{{ kvm-ok }}}
   * {{{ KVM acceleration can be used }}}
 1. If so:
  a. confirm that the KVM kernel module is loaded:
   * {{{ lsmod | grep kvm }}}
    * {{{ kvm_intel 56928 1 }}}
    * {{{ kvm_amd 29196 0 }}}
  a. 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

<<Anchor(JeOS-ESX)>>
=== JeOS Install on ESX ===

 1. Create a VMware ESX guest
 1. Boot CD, select your language and press F4, pick "Install a minimal virtual machine"
 1. Follow the install procedure with defaults
 1. Boot the newly created guest
 1. Log in
 1. Check that the '''uname -r''' returns a '''-server''' kernel:
{{{
uname -r
}}}
 1. Check that the linux-virtual package is installed:
{{{
dpkg -l linux-virtual
}}}
 1. Ping outside network
 1. Check with the '''mount''' command that virtual disk are mount read-write
 1. Check that the ubuntu-standard package is '''not''' installed:
{{{
dpkg -l ubuntu-standard
}}}

<<Anchor(JeOS-KVM)>>
=== JeOS Install on KVM ===

 1. Create a KVM guest using virt-manager
 1. Boot CD, select your language and press F4, pick "Install a minimal virtual machine"
 1. Follow the install procedure with defaults
 1. Boot the newly created guest
 1. Log in
 1. Check that the '''uname -r''' returns a '''-server''' kernel
{{{
uname -r
}}}
 1. Check that the linux-virtual package is installed:
{{{
dpkg -l linux-virtual
}}}
 1. Ping outside network
 1. Check with the '''mount''' command that virtual disk are mount read-write
 1. Check that the ubuntu-standard package is '''not''' installed:
{{{
dpkg -l ubuntu-standard
}}}

Summary

  • Server installs.

Procedure

Default installation

  1. Boot CD and run the CD self-check (then reboot)
  2. Select Install to hard disk

  3. Choose your language, country and keyboard layout
  4. Set hostname: default - ubuntu
  5. Partition disks: Guided use entire disk

  6. Select your time zone and set the system clock to UTC
  7. User account: enter username and password
  8. No software selection.
  9. Reboot and login.

Bind9

  1. Boot CD and run the CD self-check (then reboot)
  2. Select Install to hard disk

  3. Choose your language, country and keyboard layout
  4. Set hostname: default - ubuntu
  5. Partition disks: Guided use entire disk
  6. Select your time zone and set the system clock to UTC
  7. User account: enter username and password
  8. Software selection: DNS Server

  9. Reboot and login.
  10. Confirm that bind is running:
    • pgrep named
      should return the pid of named.
  11. 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.

LAMP

  1. Boot CD and run the CD self-check (then reboot)
  2. Select Install to hard disk

  3. Choose your language, country and keyboard layout
  4. Set hostname: default - ubuntu
  5. Partition disks: Guided use entire disk
  6. Select your time zone and set the system clock to UTC
  7. User account: enter username and password
  8. Software selection: LAMP

  9. Reboot and login.
  10. Test Apache:

    • Execute

      w3m http://127.0.0.1/
      in a terminal and verify that it's not a 404 error page.
  11. 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

  1. Boot CD and run the CD self-check (then reboot)
  2. Select Install to hard disk

  3. Choose your language, country and keyboard layout
  4. Set hostname: default - ubuntu
  5. Partition disks: Guided use entire disk and LVM

  6. Select your time zone and set the system clock to UTC
  7. User account: enter username and password
  8. No software selection.
  9. Reboot and login.
  10. Make sure that the root file system is mounted from /dev/mapper/ubuntu-root:
    • sudo mount

Mail server

  1. Boot CD and run the CD self-check (then reboot)
  2. Select preferred language
  3. Select Install to hard disk

  4. Choose your language, country and keyboard layout
  5. Set hostname: default - ubuntu
  6. Select your time zone and set the system clock to UTC
  7. Partition disks: Guided use entire disk
  8. User account: enter username and password
  9. Software selection: Mail Server

  10. Select configuration for Postfix (generally should be "Internet" or "Internet with smarthost")
  11. Reboot and login
  12. Confirm that postfix is running:
    • telnet 127.0.0.1 25
      should connect to postfix. Type "quit" to disconnect.
  13. 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).
  14. Send a test email:
    • echo foo | mail -s 'test' ${USER} 
    • Start

      mutt
      - the test email should be in the inbox.

Openssh server

  1. Boot CD and run the CD self-check (then reboot)
  2. Select Install to hard disk

  3. Choose your language, country and keyboard layout
  4. Set hostname: default - ubuntu
  5. Partition disks: Guided use entire disk
  6. Select your time zone and set the system clock to UTC
  7. User account: enter username and password
  8. Software selection: Openssh Server

  9. Reboot and login.
  10. 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

  1. Boot CD and run the CD self-check (then reboot)
  2. Select Install to hard disk

  3. Choose your language, country and keyboard layout
  4. Set hostname: default - ubuntu
  5. Partition disks: Guided use entire disk
  6. Select your time zone and set the system clock to UTC
  7. User account: enter username and password
  8. Software selection: PostgreSQL Database

  9. Reboot and login.
  10. Check that the database is running:
    sudo -u postgres psql -l
    should return a list of databases.
  11. Create a database user:
    • sudo -u postgres createuser -DRS ${USER} 
      should create a user.
  12. Create a database:
    • sudo -u postgres createdb -O ${USER} ${USER}_db
      should create a database.
  13. Connect to the database:
    • psql ${USER}_db
      should start a psql shell connected to the database.

  1. Boot CD and run the CD self-check (then reboot)
  2. Select Install to hard disk

  3. Choose your language, country and keyboard layout
  4. Set hostname: default - ubuntu
  5. Partition disks: Guided use entire disk
  6. Select your time zone and set the system clock to UTC
  7. User account: enter username and password
  8. Software selection: Print Server

  9. Reboot and login.
  10. Test cups:

    • sudo /etc/init.d/cups status
      should state the cupsd is running.

Samba server

  1. Boot CD and run the CD self-check (then reboot)
  2. Select Install to hard disk

  3. Choose your language, country and keyboard layout
  4. Set hostname: default - ubuntu
  5. Partition disks: Guided use entire disk
  6. Select your time zone and set the system clock to UTC
  7. User account: enter username and password
  8. Software selection: Samba Server

  9. Reboot and login.
  10. 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

  1. Boot CD, select your language and run the CD self-check
  2. Reboot CD, select your language and select Install Ubuntu Server

  3. Choose your country and keyboard layout
  4. Set hostname: default - ubuntu
  5. Partition disks: Guided use entire disk
  6. User account: enter username and password
  7. Software selection: Tomcat Java server

  8. Reboot and login.
  9. Confirm that Tomcat is running:
    • sudo netstat -ltnp | grep jsvc
      should show a jsvc instance listening on port 8080.
  10. Confirm that Tomcat is working properly:
    • w3m http://127.0.0.1:8080
      should bring up a "It works !" page
    •  w3m 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

  1. Boot CD, select your language and run the CD self-check
  2. Reboot CD, select your language and select Install Ubuntu Server

  3. Choose your country and keyboard layout
  4. Set hostname: default - ubuntu
  5. Partition disks: Guided use entire disk
  6. User account: enter username and password
  7. Software selection: Virtual Machine host

  8. Reboot and login.
  9. Check that the ubuntu-virt-server package is installed:

dpkg -l ubuntu-virt-server
  1. Confirm that you have KVM-capable hardware:
    •  kvm-ok 

      •  KVM acceleration can be used 

  2. If so:
    1. confirm that the KVM kernel module is loaded:
      •  lsmod | grep kvm 

        •  kvm_intel              56928  1  

        •  kvm_amd                29196  0  

    2. 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

JeOS Install on ESX

  1. Create a VMware ESX guest
  2. Boot CD, select your language and press F4, pick "Install a minimal virtual machine"
  3. Follow the install procedure with defaults
  4. Boot the newly created guest
  5. Log in
  6. Check that the uname -r returns a -server kernel:

uname -r
  1. Check that the linux-virtual package is installed:

dpkg -l linux-virtual
  1. Ping outside network
  2. Check with the mount command that virtual disk are mount read-write

  3. Check that the ubuntu-standard package is not installed:

dpkg -l ubuntu-standard

JeOS Install on KVM

  1. Create a KVM guest using virt-manager
  2. Boot CD, select your language and press F4, pick "Install a minimal virtual machine"
  3. Follow the install procedure with defaults
  4. Boot the newly created guest
  5. Log in
  6. Check that the uname -r returns a -server kernel

uname -r
  1. Check that the linux-virtual package is installed:

dpkg -l linux-virtual
  1. Ping outside network
  2. Check with the mount command that virtual disk are mount read-write

  3. Check that the ubuntu-standard package is not installed:

dpkg -l ubuntu-standard

Testing/Cases/ServerInstall (last edited 2009-02-05 16:24:43 by port-213-160-23-156)