ServerInstall

Differences between revisions 18 and 21 (spanning 3 versions)
Revision 18 as of 2008-02-01 18:16:26
Size: 6399
Editor: dsl-207-112-70-57
Comment:
Revision 21 as of 2008-03-19 15:20:53
Size: 6373
Editor: cpe-66-68-158-133
Comment: improved the mail test
Deletions are marked like this. Additions are marked like this.
Line 37: Line 37:
   {{{sudo mount}}}    {{{
sudo mount}}}
Line 52: Line 53:
  * {{{pgrep named}}} should return the pid of named.   * {{{
pgrep named}}} should return the pid of named.
Line 67: Line 69:
  * 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').   * Execute {{{
w3m http://127.0.0.1/}}} in a terminal and verify that it's not a 404 error page.
Line 69: Line 72:
  * 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;}}}:   * 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;}}}:
Line 87: Line 91:
   * {{{sudo /etc/init.d/cupsys status}}} should state the cupsd is running.    * {{{
sudo /etc/init.d/cupsys status}}} should state the cupsd is running.
Line 102: Line 107:
  * {{{pgrep sshd}}} should return the pid of sshd.   * {{{
pgrep sshd}}} should return the pid of sshd.
Line 117: Line 123:
 1. Confirm that sshd is running:
  * {{{pgrep smbd}}}, {{{pgrep nmbd}}}, {{{pgrep winbindd}}} should return the pid of the different processes.
 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
}}}
Line 133: Line 142:
  * {{{telnet 127.0.0.1 25}}} should connect to postfix.   * {{{
telnet 127.0.0.1 25}}} should connect to postfix.
Line 135: Line 145:
  * {{{sudo netstat -ltnp | grep dovecot}}} should list 4 dovecot instances (port 110, 143, 993 and 995).   * {{{
sudo netstat -ltnp | grep dovecot}}} should list 4 dovecot instances (port 110, 143, 993 and 995).
Line 137: Line 148:
  * {{{mail -s 'test' ${USER} }}}
  * Start {{{mutt}}} - the test email should be in the inbox.
  * {{{
echo foo |
mail -s 'test' ${USER} }}}
  * Start {{{
mutt}}} - the test email should be in the inbox.
Line 153: Line 166:
   {{{sudo -u postgres psql -l}}} should return a list of databases.  {{{
sudo -u postgres psql -l}}} should return a list of databases.
Line 155: Line 169:
   {{{sudo -u postgres createuser -DRS ${USER} }}} should create a user.    {{{
sudo -u postgres createuser -DRS ${USER} }}} should create a user.
Line 157: Line 172:
   {{{sudo -u postgres createdb -O ${USER} ${USER}_db}}} should create a database.    {{{
sudo -u postgres createdb -O ${USER} ${USER}_db}}} should create a database.
Line 159: Line 175:
   {{{psql ${USER}_db}}} should start a psql shell connected to the database.    {{{
psql ${USER}_db}}} should start a psql shell connected to the database.

Include(Testing/Cases/Header)

Summary

  • Server installs.

Procedure

Anchor(default)

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.

Anchor(lvm)

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

Anchor(bind9)

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.

Anchor(lamp)

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;

Anchor(print-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: Print Server

  9. Reboot and login.
  10. Test cupsys:

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

Anchor(openssh-server)

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.

Anchor(samba-server)

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

Anchor(mail-server)

Mail 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: Mail Server

  9. Reboot and login.
  10. Confirm that postfix is running:
    • telnet 127.0.0.1 25
      should connect to postfix.
  11. 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).
  12. Send a test email:
    • echo foo | mail -s 'test' ${USER} 
    • Start

      mutt
      - the test email should be in the inbox.

Anchor(postgresql-server)

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.

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