wiki:ubuntuinstall

Version 3 (modified by admin, 7 years ago) ( diff )

--

Linux Hands - On

Through this hands-on you will install Ubuntu Server on a vm and you will make additional two clones of the installed ubuntu server for your lab sessions in next two days.

Setting up virtualbox

Installation of virtualbox and Downloading Ubuntu iso image

  • Download and install virtualbox 5.0.x
  • Download Ubuntu image from the LEARN mirror
  • Note down the location of downloaded iso file

Creating the VM

  • Start virtualbox and Click on New button (at top-right) to create new virtual machine
  • Enter name of the VM as: linux.'your domain'.ws.learn.ac.lk. You can get your domain from here

eg: linux.user1.ws.learn.ac.lk

  • Select OS Type: Linux
  • Select Version: Ubuntu (64-bit)
  • Then click on Continue button
  • Set VM's memory size to 1024MB and click on Continue button
  • Set VM's hard disk option to Create a virtual hard disk now and then click on Continue
  • Select disk type to VDI
  • Select storage type to Fixed size and Continue
  • Make sure virtual hard disk file name in following format linux.'your domain'.ws.learn.ac.lk
  • adjust the disk size to 10.0GB and click on Create to create the VM

This might take couple of minutes

(Note down the location of vdi image file when virtualbox flashes it on the screen)

Setting up Network Interface

  • Select the VM from left panel on Virtual box, right click and open Settings
  • Click on the Network title
  • On Adapter 1 While Enable Network Adapter selected choose Attached to be Bride Adapter. This virtual interface will work as the WAN port of the firewall (Can be connect from out side).

Setting up boot device and Booting

  • Click on Storage title and select CD ROM icon under the Controller:IDE Click on CD ROM icon under the Attribute on the left side to select
  • Choose Virtual Optical Disk File
  • Locate the Ubuntu CD Image file you downloaded from the LEARN ftp
  • Right click on VM to make a Normal Start VM. You should now see a separate window with Installation screen

Initial Installation options

  • Select English as language for the installation wizard
  • Select Ubuntu Server
  • Select English for VM's OS language
  • Select location by Others->Asia->Sri Lanka
  • Keep locales as default United States
  • Press No for configure Keyboard
  • Select English (US) for country of origin for the keyboard

Now it might take sometime to detect the hardware and load the necessary Linux modules

Note that it configure network with DCHP

  • Type host name as: linux.'your domain'.ws.learn.ac.lk
  • When it asked, add a User by entering Your Name, your username, password
  • You may select No for not to encrypt home directory
  • Select Yes confirm the time-zone

Disk Configuration

Your have 8GB hard drive previously configured for your VM

  • Select Manual
  • Select the Disk SCSI3(0,0,0) (sda) - 10.0 GB ATA VBOX HARDDISK and Select Yes to create new partition table
  • Select Free Space to create following partitions and mount them as follows. Use EXT4 for all partitions except for SWAP partition
    • a primary partition for /boot 512MB - turn on Bootable flag
    • a primary partition for Linux SWAP (two times the RAM) SWAP 2GB
    • a primary partition for Linux Logical Volume for remaining disk space.
  • Then use Logical Volume Manager to create a Volume Group named as "linux" and logical volumes for followings
    • a logical volume root for / 2GB
    • a logical volume usr for /usr 3GB
    • a logical volume var for /var rest of the free space
  • Get above partitions mounted as /, /usr and /var with the file system EXT4 selected.
  • Then finish the partitioning and confirm it to write to the disk

Now it might take sometime to install the OS base.

Final Configuration

  • At the package manager, click Continue not to use any proxy settings

Again it might take times to install rest of the packages.

  • Select No automatic updates
  • Select only
    1. standard system utilities
    2. OpenSSH server

Wait until it finished the installation of software

  • Finally install/setup the GRUB boot loader by selecting Yes
  • Finish the installation of Ubuntu by selecting Continue

VM now should restart with the newly installed OS.

You may now login using your credentials

Note: See TracWiki for help on using the wiki.