Changes between Version 17 and Version 18 of ubuntuinstall
- Timestamp:
- Nov 23, 2016, 4:55:14 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ubuntuinstall
v17 v18 39 39 === Setting up boot device and Booting=== 40 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 select41 - Click on '''Storage''' title and select '''CD ROM icon''' with Caption "Empty" under the '''Controller:IDE''', Click on CD ROM icon under the '''Attribute''' on the left side to select 42 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 screen43 - Locate the '''Ubuntu CD Image''' file you downloaded from the LEARN ftp. Press OK to close the settings window. 44 - Right click on VM and select Start to make a '''Normal Start'''. You should now see a separate window with Installation screen" 45 45 46 46 == Installation == … … 57 57 Now it might take sometime to detect the hardware and load the necessary Linux modules 58 58 59 Note that it configure network with D CHP59 Note that it configure network with DHCP 60 60 61 61 - Type host name as: '''pc.'your domain'.ws.learn.ac.lk''' 62 - When it asked, add a User by entering Your '''Name, your username, password''' 62 - When it asked, add a User by entering Your '''Name, your username, password''' (Please give a strong password. This VM will be directly exposed to the internet) 63 63 - You may select '''No''' for not to encrypt home directory 64 64 - Select '''Yes''' confirm the time-zone … … 68 68 Your have 10GB hard drive previously configured for your VM 69 69 - Select '''Manual''' 70 - Select the Disk '''SCSI3(0,0,0) (sda) - 10.0 GB ATA VBOX HARDDISK''' and Select '''Yes''' to create new partition table 71 - Select Free Space to create following partitions and mount them as follows. 72 * a primary partition for /boot 73 * Partition size: 512MB 74 * Type : Primary 75 * Location : Begining 76 * Use as : Ext4 77 * Mount point : /boot 78 * Bootable flag : on 79 * Done 80 * a primary partition for Linux SWAP (two times the RAM) SWAP 2GB 81 * Partition size:2GB 82 * Type : Primary 83 * Location : Begining 84 * Use as : swap area 85 * Done 86 - Then use '''Logical Volume Manager''' to create a Volume Group named as "linux". create logical volumes for followings (Select the largest volume by pressing space key) 87 - Create following Logical volumes and Select finish 88 * a logical volume name : root, size : 2GB for / 89 * a logical volume name : usr, size : 2GBfor /usr 90 * a logical volume name : var, size : rest of the space for /var 91 - Then select root Volume 92 * Use as : Ext4 93 * Mount point : / 94 * Done 95 - Then select usr Volume 70 - Select the Disk '''SCSI3(0,0,0) (sda) - 10.0 GB ATA VBOX HARDDISK''' and Select '''Yes''' to create new partition table 71 - Then select Free Space just below SCSI3(0,0,0) (sda) to create following partitions and mount them as follows. 72 - Select '''Create new partition''' 73 * Partition size: 512MB ---> Continue 74 * Type : Primary 75 * Location : Begining 76 * Use as : Ext4 77 * Change Mount point : /boot 78 * Bootable flag : on 79 * Select "Done setting up the partition" 80 * 81 - Again select FREE SPACE to create a primary partition for Linux SWAP (two times the RAM) SWAP 2GB 82 * Partition size:2GB 83 * Type : Primary 84 * Location : Begining 85 * Use as : swap area 86 * Select "Done setting up the partition" 87 88 - Then '''select Logical Volume Manager''' and press '''Yes'''. 89 - Select '''create a Volume Group''' and name as "linux". When asked select '''FREE SPACE device (most probably /dev/sda free #1)''' and select '''yes''' for the confirmation 90 - Go to '''create logical volumes''', select '''linux''', type logical volume name as '''root''', size : '''2GB''' 91 - Repeat the same Create Logical Volume procedure and make another two volumes as usr and var 92 93 * a logical volume name : usr, size : 2GB 94 * a logical volume name : var, size : rest of the space 95 96 These Logical Volumes can be used as partitions containing file system root(/), /usr and /var. 97 98 Now you will have 1 Volume Group and 3 Logical Volumes. 99 - Once you finish creating logical volumes select '''finish'''. You will be once again presented with Disk Partition Window. 100 101 - Then Select #1 just below the LVM VG linux, LV root - 2.0 GB Linux device-mapper (linear) option and change Use as to '''Ext4''' , Mount point : '''/''' and Done. 102 - Then repeat same for the #1 in usr Volume with following options 96 103 * Use as : Ext4 97 104 * Mount point : /usr 98 * Done 99 - Then select var Volume105 * Done 106 - Then repeat same for the #1 in var Volume with following options 100 107 * Use as : Ext4 101 108 * Mount point : /var 102 109 * Done 103 - Then finish the partitioning and confirm it to write to the disk 110 111 - Then finish the partitioning and confirm it to write to the disk 104 112 105 113 Now it might take sometime to install the OS base. … … 123 131 124 132 You will now easily create the second VM using VM cloning. This VM is for your Web Server which will be used for hands-on tomorrow. 125 - First Power off/shutdown your VM 133 - First Log in to the VM and enter 134 {{{ 135 sudo init 0 136 }}} 126 137 - Right click on the VM to select Clone option 127 138 - Assign new name as www."your domain".ws.ac.lk … … 237 248 $ pwd 238 249 /home/dilum 250 239 251 $ cd /etc 240 252 /etc$ pwd 241 253 /etc 254 242 255 $ cd .. 243 256 /$ls … … 245 258 boot home lib64 mnt root snap tmp vmlinuz 246 259 dev initrd.img lost+found opt run srv usr 260 247 261 /$ ls -l 248 262 total 85 … … 270 284 drwxr-xr-x 14 root root 4096 Nov 18 13:10 var 271 285 lrwxrwxrwx 1 root root 29 Nov 18 13:04 vmlinuz -> boot/vmlinuz-4.4.0-21-generic 286 272 287 $ cd 288 273 289 $ pwd 274 290 /home/dilum 291 275 292 $ mkdir test/one/.hidden 276 293 mkdir: cannot create directory ‘test/one/.hidden’: No such file or directory 294 277 295 $ mkdir -p test/one/.hidden 296 278 297 $ mkdir -p test/one/unhidden 298 279 299 $ cd test/one 280 300 test/one$ ls … … 282 302 test/one$ ls -a 283 303 . .. .hidden unhidden 304 284 305 test/one$ rmdir unhidden/ 306 285 307 test/one$ ls -a 286 308 . .. .hidden 309 287 310 test/one$ cd 311 288 312 $ rmdir test 289 313 rmdir: failed to remove ‘test’: Directory not empty … … 514 538 - Create another file numbers2.txt(with lines contain eleven to fifteen) 515 539 {{{ 516 $ cat numbers2.txt540 $ cat > numbers2.txt 517 541 eleven 518 542 twevelve … … 751 775 iface enp0s3 inet static 752 776 753 address 192.248.4.60777 address 'Your IP address' 754 778 netmask 255.255.255.0 755 network 192.248. 4.0756 broadcast 192.248. 4.255757 gateway 192.248. 4.254779 network 192.248.6.0 780 broadcast 192.248.6.255 781 gateway 192.248.6.254 758 782 dns-nameservers 192.248.1.161 759 dns-search userx.ws.ac.lk783 dns-search 'your domain' 760 784 }}} 761 785 Change it to … … 763 787 #iface enp0s3 inet static 764 788 765 # address 192.248.4.60789 # address 'Your IP address' 766 790 # netmask 255.255.255.0 767 # network 192.248. 4.0768 # broadcast 192.248. 4.255769 # gateway 192.248. 4.254791 # network 192.248.6.0 792 # broadcast 192.248.6.255 793 # gateway 192.248.6.254 770 794 # dns-nameservers 192.248.1.161 771 # dns-search userx.ws.ac.lk795 # dns-search 'your domain' 772 796 }}} 773 797 Find the following line