Test Server Installation and Configuration

From NSB App Studio
Revision as of 21:54, 18 January 2014 by James (talk | contribs)
Jump to navigation Jump to search

The following instructions assume you are installing on a 64 bit machine. You can determine if your machine is 64 bit capable by looking up your CPU by model number. You can generally find the CPU type in the BIOS Setup, which is normally accessed on boot by pressing a function key or the delete key. Once you have the CPU model, you can verify it has a 64-bit instruction set by looking up the CPU on Intel's site. For instance:

These instructions have not been tested on a 32-bit machine. However, they should work with minimum changes. If you are planning to install on a 32 bit machine, you'll want to download the x86 image: http://releases.ubuntu.com/precise/ubuntu-12.04.3-server-i386.iso

Create Bootable Media

  1. Download Ubuntu Server 12.04.3 LTS 64 bit: http://releases.ubuntu.com/precise/ubuntu-12.04.3-server-amd64.iso
  2. Determine if you will be writing the ISO file to a CD or a USB drive.
    1. CD: simply write the ISO image to a writable CD. Detailed instructions are available here for many operating systems: https://help.ubuntu.com/community/BurningIsoHowto
    2. USB drive: writing to a USB drive can be a bit tricky. It's suggested that you use Linux Live USB Creator on Windows (http://www.linuxliveusb.com/en/home). Detailed instructions (and instructions for other OSes) can be found here: https://help.ubuntu.com/community/Installation/FromUSBStick

Install Ubuntu

More detailed install instructions can be found here: https://help.ubuntu.com/lts/serverguide/installing-from-cd.html

  1. Boot your Ubuntu media.
  2. You will be prompted to choose a language. Choose the appropriate language.
  3. Choose the option "Install Ubuntu Server"
  4. Select your language once again.
  5. Select your location.
  6. Select your keyboard layout. It's suggested you allow the installed to auto-detect it.
  7. Enter a hostname for this machine. If this machine has a name on your network, this would be it. This does not include the domain name. For example, "server01" and not "server01.example.com".
  8. Enter in the real name of the initial user.
  9. Choose a name for the initial user. This user will have administrative privileges, but will not be a super-user.
  10. Choose a password for the initial user.
  11. Choose to not encrypt your home folder.
  12. Choose to use Guided Partitioning, using the entire disk, with LVM.
  13. Select the proper disk.
  14. Write the changes to disk.
  15. Choose to use the entire disk again.
  16. Verify you will write changes to the disk again. The base system should now install.
  17. Setup an HTTP proxy, if you need one.
  18. Choose to install automatic updates.
  19. Choose to install the OpenSSH server.
  20. Install GRUB to the MBR.
  21. Reboot.

Remote Access

At this point you should be able to login to your server using SSH. If you can't login, there's a chance there's a problem with your network configuration. SSH uses port 22. Verify it's not being blocked by a firewall.

Configuring

Once your computer has rebooted, login using the username and password you created during the install process.

Update Packages

At the command prompt, type the following:

sudo aptitude update
sudo aptitude full-upgrade

Follow the prompt, and after the upgrade is complete, install apache, vsftpd, and incron:

sudo aptitude install apache2 vsftpd

Finally, reboot:

sudo reboot

Configure Apache