CMPT 470, Fall 2012

Ubuntu 11.04 Server Installation

You will (presumably) be doing this installation on your group's virtual server for this course. See the instructions for working with the virtual server to get started with the VMware console.

  1. Insert the Ubuntu 11.04 (Natty) Linux server CD into the CD [virtual] drive of your computer and start the machine. (It should be there by default in the VMs for this course.) Select “Install Ubuntu Server” and press return. It should boot from the CD and begin the installation process.

  2. You can accept most of the defaults of the installation. A few exceptions are noted below.

  3. Select “Canada” as your location.

  4. After DHCP fails, select “Configure network manually” and use these values:

    • IP address: 192.168.11.100+n, where n is the number of your group.
    • Netmask: 255.255.255.0
    • Gateway: 192.168.11.100
    • DNS Servers: 192.168.11.100 142.58.103.1 142.58.103.2
    • Hostname: mxn.470.csil.sfu.ca
  5. Select the “Pacific” time zone.

  6. Select “guided” partitioning and erase the entire disk (you can use LVM or not: it doesn't really matter). You can accept the default partitioning.

  7. Wait for the base system installation.

  8. Create an account for one of your group members. (Others will be created later.)

  9. It would probably be wise to “install security updates automatically”.

  10. You can select the “LAMP Server” software if you wish, but it may be cleaner to just install the components you need later.

  11. When the installation completed, reboot the machine. (You are done with the CD at this point. It is not necessary to “eject” the CD on the virtual machines: just forget it's there.)

  12. When the login prompt appears, log in as the user created earlier.

  13. Download the package source files that point to the local mirror:

    cd /etc/apt
    sudo mv sources.list sources.orig
    sudo wget http://cmpt470.csil.sfu.ca/natty/sources.list
    sudo apt-get update
  14. The “Universe” and “Multiverse” components of Ubuntu are included in your package lists by default. If you don't want them, comment out the corresponding lines from /etc/apt/sources.list and update the package lists again (sudo apt-get update). (You can do this later if you want as well.)

  15. Install the SSH and NTP servers. You can do that with this command:

    sudo ntpdate pool.ntp.org
    sudo apt-get install openssh-server ntp
  16. At this point, you can (and probably should) begin working remotely from another computer. There should be no more need for being at the (VMware) console.

  17. You should probably update the packages on your machine to reflect any security or other updates:

    sudo apt-get dist-upgrade
  18. Create accounts prof, ta, csilop, and one for each group member.

    • Use the password given in lectures for prof, ta, and csilop. Use whatever password you like for the group-member accounts.
    • You can create a new user with the adduser command:
      sudo adduser userid
    • Add each user to the admin group so they can also perform administrative tasks:
      sudo gpasswd -a userid admin

You will probably want to install more software (either now or later). You can do this with apt-get (command-line) or aptitude (interactive).


Copyright © , based on content created by Greg Baker.