Changes between Initial Version and Version 3 of ubuntuinstall


Ignore:
Timestamp:
Nov 11, 2016, 8:15:29 AM (8 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ubuntuinstall

    v1 v3  
     1= Linux Hands - On =
     2
     3Through 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.
     4
     5== Setting up virtualbox ==
     6
     7=== Installation of virtualbox and Downloading Ubuntu iso image ===
     8 - Download and install virtualbox 5.0.x
     9 - Download Ubuntu image from the LEARN mirror
     10 - Note down the location of downloaded iso file
     11
     12=== Creating the VM ===
     13 - Start virtualbox and Click on New button (at top-right) to create new virtual machine
     14 - Enter name of the VM as: '''linux.'your domain'.ws.learn.ac.lk'''. You can get your domain from [wiki:ipallocation here]
     15
     16 eg: linux.user1.ws.learn.ac.lk
     17
     18 - Select OS Type: '''Linux'''
     19 - Select Version: '''Ubuntu (64-bit)'''
     20 - Then click on '''Continue''' button
     21 - Set VM's memory size to '''1024MB''' and click on Continue button
     22 - Set VM's hard disk option to '''Create a virtual hard disk now''' and then click on '''Continue'''
     23 - Select disk type to '''VDI'''
     24 - Select storage type to '''Fixed size''' and '''Continue'''
     25 - Make sure virtual hard disk file name in following format
     26 '''linux.'your domain'.ws.learn.ac.lk'''
     27 - adjust the disk size to '''10.0GB''' and click on '''Create''' to create the VM
     28
     29This might take couple of minutes
     30
     31(Note down the location of vdi image file when virtualbox flashes it on the screen)
     32
     33=== Setting up Network Interface ===
     34
     35 - Select the VM from left panel on Virtual box, right click and open '''Settings'''
     36 - Click on the '''Network''' title
     37 - 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).
     38
     39=== Setting up boot device and Booting===
     40
     41 - 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
     42 - Choose '''Virtual Optical Disk File'''
     43 - Locate the '''Ubuntu CD Image''' file you downloaded from the LEARN ftp
     44 - Right click on VM to make a '''Normal Start''' VM. You should now see a separate window with Installation screen
     45
     46=== Initial Installation options ===
     47
     48 - Select '''English''' as language for the installation wizard
     49 - Select '''Ubuntu Server'''
     50 - Select '''English''' for VM's OS language
     51 - Select location by '''Others->Asia->Sri Lanka'''
     52 - Keep locales as default '''United States'''
     53 - Press '''No''' for configure Keyboard
     54 - Select '''English (US)''' for country of origin for the keyboard
     55Now it might take sometime to detect the hardware and load the necessary Linux modules
     56
     57Note that it configure network with DCHP
     58
     59 - Type host name as: '''linux.'your domain'.ws.learn.ac.lk'''
     60 - When it asked, add a User by entering Your '''Name, your username, password'''
     61 - You may select '''No''' for not to encrypt home directory
     62 - Select '''Yes''' confirm the time-zone
     63
     64=== Disk Configuration ===
     65
     66    Your have 8GB hard drive previously configured for your VM
     67 - Select '''Manual'''
     68 - Select the Disk '''SCSI3(0,0,0) (sda) - 10.0 GB ATA VBOX HARDDISK''' and Select '''Yes''' to create new partition table
     69 - Select Free Space to create following partitions and mount them as follows. Use EXT4 for all partitions except for SWAP partition
     70    * a primary partition for /boot 512MB - turn on Bootable flag
     71    * a primary partition for Linux SWAP (two times the RAM) SWAP 2GB
     72    * a primary partition for Linux Logical Volume for remaining disk space.
     73 - Then use Logical Volume Manager to create a Volume Group named as "linux" and logical volumes for followings
     74    * a logical volume root for / 2GB
     75    * a logical volume usr for /usr 3GB
     76    * a logical volume var for /var rest of the free space
     77 - Get above partitions mounted as /, /usr and /var with the file system EXT4 selected.
     78 - Then finish the partitioning and confirm it to write to the disk
     79
     80Now it might take sometime to install the OS base.
     81
     82=== Final Configuration ===
     83
     84 - At the package manager, click '''Continue''' not to use any proxy settings
     85Again it might take times to install rest of the packages.
     86 - Select '''No''' automatic updates
     87 - Select only
     88        a. standard system utilities
     89        b. OpenSSH server
     90Wait until it finished the installation of software
     91 - Finally install/setup the GRUB boot loader by selecting '''Yes'''
     92 - Finish the installation of Ubuntu by selecting '''Continue'''
     93VM now should restart with the newly installed OS.
     94
     95You may now login using your credentials