Install/ServerWhole

Not logged in - Log In / Register

Server Guided Whole Disk Install

Default install

Case ID: SWI-001

  1. Boot CD and run the CD self-check (then reboot)
  2. Select Install Ubuntu Server

  3. Choose your language, country and keyboard layout
  4. Choose your network card (only with multiple network cards)
  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. No software selection.
  10. Reboot and login.

File a bug

Bind9

Case ID: SWI-002

  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 '(:53)' | egrep -v '(ESTABLISHED|CLOSE_WAIT|LAST_ACK)'
      should list named is listening on port 53 for tcp, tcp6, udp and udp6.
  12. 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 ip6-localhost
    • host -T -6 www.ubuntu.com ip6-localhost

File a bug

LAMP

Case ID: SWI-003

  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. When prompted to, you may either enter a password for the MySQL root account, or leave it empty. If you did enter a password, do not forget it -- you will need it below
  10. Reboot and login.
  11. Test Apache:

    • Execute

      w3m http://127.0.0.1/
      in a terminal and verify that it's not a 404 error page.
  12. Test MySQL

    • Execute

      mysql -u root -p

      in a terminal. If yoy set the MySQL root account with a password, you will be prompted to enter it now. 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; select * from user;
        These commands should produce an output similar to the following excerpt:
        mysql> show databases;
        +--------------------+
        | Database           |
        +--------------------+
        | information_schema |
        | mysql              |
        +--------------------+
        2 rows in set (0.05 sec)
        mysql> 
        mysql>  connect mysql;
        Reading table information for completion of table and column names
        You can turn off this feature to get a quicker startup with -A
        
        Connection id:    38
        Current database: mysql
        mysql> select host,user from user;
        +-----------+------------------+
        | host      | user             |
        +-----------+------------------+
        | 127.0.0.1 | root             |
        | localhost | debian-sys-maint |
        | localhost | root             |
        +-----------+------------------+
        3 rows in set (0.01 sec)
        mysql> 
        
  13. Test PHP (install and command-line)

    • Install PHP (command-line interface):

        sudo apt-get install php5-cli 
    • run any PHP script to test it. An easy one is 'phpinfo()':

        php -r 'phpinfo();'

      This will produce about 600 lines of output. You may see the following warning being displayed:

        PHP Warning:  phpinfo(): It is not safe to rely on the system's timezone settings.
      You are *required* to use the date.timezone setting or the date_default_timezone_set()
      function. In case you used any of those methods and you are still getting this warning,
      you most likely misspelled the timezone identifier. We selected '<TZ name>' for '<TZ code>'
      instead in Command line code on line 1 

      with <TZ name> and <TZ code> replaced by your local TZ settings. This is not an error.

  14. Test PHP (Apache mod_php)

    • Create a file called /var/www/phptest.php:

        sudo vi /var/www/phptest.php 
    • add the following text to the file:

        <? phpinfo(); ?>
    • run w3m on localhost/phptest.php:

        w3m localhost/phptest.php
      This will produce about 600 lines of output.

File a bug

Default installation: LVM partitioning

Case ID: SWI-004

  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
  11. Check that volume groups are defined:
    • sudo vgs
  12. Check that logical volumes are defined:
    • sudo lvs

File a bug

Mail server

Case ID: SWI-005

  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.

File a bug

Openssh server

Case ID: SWI-006

  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.

File a bug

PostgreSQL Database Server

Case ID: SWI-007

  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.

File a bug

Case ID: SWI-008

  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:

    • service cups status
      should state the cupsd is running.

File a bug

Samba server

Case ID: SWI-009

  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:

      echo smbd ; pgrep smbd; echo; echo nmbd; pgrep nmbd; echo ; echo winbindd; pgrep winbindd ; echo
  11. Verify the default workgroup name is displayed:
    • You should see a line similar to sid for domain UBUNTU is S-1-5....

      sudo net getlocalsid
  12. Verify your userId is defined:
    • You should see a line similar to UBUNTU\<your userId>. Other lines will also be shown.

      net usersidlist
      NB: The user needs to be added to the samba database by providing the user password at least once to the pam stack. This is automatically done when logging into the system by typing the password.

File a bug

Tomcat server

Case ID: SWI-010

  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 java
      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

File a bug

Virtualization Host

Case ID: SWI-011

  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 language, country and keyboard layout
  4. Choose your network card (only with multiple network cards)
  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. Choose how you want to manage software updates
  10. Software selection: Virtual Machine host

  11. Reboot and login.
  12. 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. Confirm that the KVM kernel module is loaded:
    •  lsmod | grep kvm 

      •  kvm_intel              56928  1  

      •  kvm_amd                29196  0  

File a bug

No Network Connection Install

Case ID: SWI-012

  1. On a physical server, disconnect the network cable(s); if running KVM, make sure to pass '-net nic,model=virtio -net user,restrict=y' on the KVM call.
  2. Select Install Ubuntu Server

  3. Choose your language, country and keyboard layout
  4. The installer will try to acquire a DHCP address, and will fail. Accept Continue, and then select Do not configure network at this time

  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. No software selection
  10. Reboot and login
  11. shutdown the system:  sudo shutdown -h now 

File a bug

Preseeded Installation

Case ID: SWI-013

  1. WARNING This test uses pre-selected answers to installation questions (the preseed file). The preseed in use will unilaterally allocate the whole hard drive for the install. This will cause the complete loss of any data then in the hard drive. We strongly recommend you to use a 'trash and burn' system -- i.e., a system you do not mind losing the contents of the hard drive(s). Virtual machines are also a good option (and a nice helper to boot an Ubuntu ISO is testdrive). It is also a good idea to disconnect any external hard drive(s) you do not want to participate in the reformatting ;-)

  2. On a trash and burn server, boot the UBuntu Server ISO (or, for VMs, run testdrive, and select either an i386 or an amd64 server image -- should be options 2 or 7).

  3. After selecting the Language, press F6, Esc, and F8. This will show you the Boot Options line:

    Boot Options file=/cdrom/preseed/ubuntu-server.seed initrd=/install/initrd.gz quiet --
  4. Replace 'file=/cdrom/preseed/ubuntu-server.seed' by 'auto url=http://people.canonical.com/~cerdea/preseed.cfg'. The Boot Options line should now look like:

    Boot Options auto url=http://people.canonical.com/~cerdea/preseed.cfg initrd=/install/initrd.gz quiet --
  5. Press Enter to accept the boot command line and start the installation
  6. Choose your language, country and keyboard layout
  7. Choose your network card (only with multiple network cards)
  8. Set hostname: default - ubuntu
  9. From this point on, the installation should proceed automatically. Wait until the image reboots.
  10. Login to the system. The userId is ubuntu, and the password is ubuntu

  11. run ntptime; the output should look like this:

    ubuntu@ubuntu:~$ ntptime
    ntp_gettime() returns code 0 (OK)
      time cf4cba58.ba2b8000  Thu, Mar 18 2010 14:42:32.727, (.727226),
      maximum error 351719 us, estimated error 60 us
    ntp_adjtime() returns code 0 (OK)
      modes 0x0 (),
      offset -74.000 us, frequency 7.638 ppm, interval 1 s,
      maximum error 351719 us, estimated error 60 us,
      status 0x1 (PLL),
      time constant 7, precision 1.000 us, tolerance 512 ppm,
    ubuntu@ubuntu:~$
  12. Shutdown the system:  sudo shutdown -h now 

File a bug

Install/ServerWhole (last edited 2011-03-15 15:46:09 by mathieu-tl)