Changes between Version 4 and Version 5 of ubuntuinstall


Ignore:
Timestamp:
Nov 16, 2016, 7:58:08 AM (8 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ubuntuinstall

    v4 v5  
    4343 - Locate the '''Ubuntu CD Image''' file you downloaded from the LEARN ftp
    4444 - Right click on VM to make a '''Normal Start''' VM. You should now see a separate window with Installation screen
     45
     46== Installation ==
    4547
    4648=== Initial Installation options ===
     
    117119'''Note''': For this Hands-on you only need your pc(pc."your domain.ws.ac.lk") VM. Please shut down the additional VM's
    118120
     121== Playing with Linux ==
     122
     123=== Working with directories ===
     124
     125A brief overview of the most common commands to work with directories:
     126'''pwd''', '''cd''', '''ls''', '''mkdir''' and '''rmdir'''. These commands are available on any Linux (or Unix)
     127system.
     128
     129 - '''pwd''' : Print Working Directory (Will tell you the location you are currently working)
     130 - '''cd''' : You can change your current directory with the cd command
     131  * '''cd''' : shortcut to get back into your home directory. Just typing cd without a target directory, will put you in your home directory
     132  * '''cd ..''' : To go to the parent directory (the one just above your current directory in the directory tree)
     133  * '''cd -''' : To go to the previous directory
     134 - '''ls''' : You can list the contents of a directory with ls
     135  * '''ls -a''' : To show all files. Showing all files means including the hidden files. When a file name on a Linux file system starts with a dot, it is considered a hidden file and it doesn't show up in regular file listings.
     136  * '''ls -l''' : to display the contents of the directory in different formats or to display different parts of the directory.
     137  * '''ls -lh''' : shows the numbers (file sizes) in a more human readable format.
     138 - '''mkdir''' : Create new directories
     139 - '''mkdir -p''': To create parent directories as needed
     140 - '''rmdir''': To remove the directory. (Directory has to be empty)
     141
     142'''Some exercise'''
     1431. Login to your VM. and Display your current directory
     1442. Change to /etc directory and display current directory
     1453. Go to root directory and list the contents
     1464. List a long listing of the root directory
     1475. Go to your home directory
     1486. Make directory named 'test'
     1497. make a directory inside test directory named 'one' and make a hidden directory inside 'one' directory named '.hidden'. Make a directory inside test directory named 'one' and make a hidden directory inside 'one' directory named 'unhidden'.
     1508. Go to 'one' directory and list the content.
     1519. Then list all contents
     15210. Remove directory 'unhidden'
     15311. Go to your home and try to remove directory 'test'
     154
     155{{{
     156dilum@DilumL:~$ pwd
     157/home/dilum
     158dilum@DilumL:~$ cd  /etc
     159dilum@DilumL:/etc$ pwd
     160/etc
     161dilum@DilumL:/etc$ cd ..
     162dilum@DilumL:/$ ls
     163bin   etc         lib    lost+found  opt   run   var
     164boot  home        lib32  media       proc  sbin  tmp       mnt
     165dev   lib64       root   sys         usr
     166dilum@DilumL:/$ ls -l
     167total 88
     168drwxrwxr-x   2 root   root  4096 Mar  4  2016 bin
     169drwxr-xr-x   3 root   root  4096 Feb  9  2016 boot
     170drwxr-xr-x  20 root   root  3360 Nov 16 08:16 dev
     171drwxr-xr-x 155 root   root 12288 Aug 29 09:30 etc
     172drwxr-xr-x   4 root   root  4096 Aug 16 08:54 home
     173drwxr-xr-x  19 root   root  4096 Mar  4  2016 lib
     174drwxr-xr-x   2 root   root  4096 Mar  4  2016 lib32
     175drwxr-xr-x   2 root   root  4096 Mar  4  2016 lib64
     176drwx------   2 root   root 16384 Dec 15  2015 lost+found
     177drwxr-xr-x   4 root   root  4096 Dec 15  2015 media
     178drwxr-xr-x   2 root   root  4096 Dec 15  2015 mnt
     179drwxr-xr-x   3 root   root  4096 Jan 26  2016 opt
     180dr-xr-xr-x 189 root   root     0 Nov 16 08:16 proc
     181drwx------  12 root   root  4096 Sep  6 16:25 root
     182drwxr-xr-x  26 root   root   960 Nov 16 08:41 run
     183drwxr-xr-x   2 root   root  4096 Mar  4  2016 sbin
     184dr-xr-xr-x  13 root   root     0 Nov 16 08:16 sys
     185drwxrwxrwt  18 root   root  4096 Nov 16 12:50 tmp
     186drwxr-xr-x  12 root   root  4096 Nov  8 12:39 usr
     187drwxr-xr-x  13 root   root  4096 Dec 16  2015 var
     188dilum@DilumL:/$ cd
     189dilum@DilumL:~$ pwd
     190/home/dilum
     191dilum@DilumL:~$ mkdir test/one/.hidden
     192mkdir: cannot create directory ‘test/one/.hidden’: No such file or directory
     193dilum@DilumL:~$ mkdir -p test/one/.hidden
     194dilum@DilumL:~$ mkdir -p test/one/unhidden
     195dilum@DilumL:~$ cd test/one
     196dilum@DilumL:~/test/one$ ls
     197unhidden
     198dilum@DilumL:~/test/one$ ls -a
     199.  ..  .hidden  unhidden
     200dilum@DilumL:~/test/one$ rmdir unhidden/
     201dilum@DilumL:~/test/one$ ls -a
     202.  ..  .hidden
     203dilum@DilumL:~$ rmdir test
     204rmdir: failed to remove ‘test’: Directory not empty
     205
     206}}}
     207
    119208=== Setting UP IP Addresses ===
    120209
     
    133222    dns-search yourdmain
    134223}}}
    135 When you completed the IP settings of both VMs, restart them and then login to confirm correct IP settings.
    136 
    137 
     224When you completed the IP settings of the VM, restart and login to confirm correct IP settings.
     225
     226