Changes between Version 12 and Version 13 of ubuntuinstall


Ignore:
Timestamp:
Nov 18, 2016, 8:43:45 AM (7 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ubuntuinstall

    v12 v13  
    5959Note that it configure network with DCHP
    6060
    61  - Type host name as: '''linux.'your domain'.ws.learn.ac.lk'''
     61 - Type host name as: '''pc.'your domain'.ws.learn.ac.lk'''
    6262 - When it asked, add a User by entering Your '''Name, your username, password'''
    6363 - You may select '''No''' for not to encrypt home directory
     
    6969 - Select '''Manual'''
    7070 - 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. Use EXT4 for all partitions except for SWAP partition
    72     * a primary partition for /boot 512MB - turn on Bootable flag
     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
    7380    * a primary partition for Linux SWAP (two times the RAM) SWAP 2GB
    74     * a primary partition for Linux Logical Volume for remaining disk space.
    75  - Then use Logical Volume Manager to create a Volume Group named as "linux" and logical volumes for followings
    76     * a logical volume root for / 2GB
    77     * a logical volume usr for /usr 3GB
    78     * a logical volume var for /var rest of the free space
    79  - Get above partitions mounted as /, /usr and /var with the file system EXT4 selected.
     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
     96   * Use as : Ext4
     97   * Mount point : /usr
     98   * Done
     99 - Then select var Volume
     100   * Use as : Ext4
     101   * Mount point : /var
     102   * Done
    80103 - Then finish the partitioning and confirm it to write to the disk
    81104
     
    89112 - Select only
    90113        a. standard system utilities
    91         b. OpenSSH server
     114        b. OpenSSH server (select by pressing space)
    92115Wait until it finished the installation of software
    93116 - Finally install/setup the GRUB boot loader by selecting '''Yes'''
     
    102125 - First Power off/shutdown your VM
    103126 - Right click on the VM to select Clone option
    104  - Assign new name as web."your domain".ws.ac.lk
     127 - Assign new name as www."your domain".ws.ac.lk
    105128 - Check "Reinitialize the MAC address for all network cards
    106129 - And then click on Continue
     
    108131This might take sometime to create the new virtual disk image (vdi) file. Note that your new VM is same as your previous one. You have to change host name, ip addresses, etc accordingly.
    109132 - When the cloning finished, start you new VM and do following to change the host name
    110  - edit /etc/hostname file and change host name to web. You may use vi or nano editor.
    111  - also edit /etc/hosts file to change 127.0.0.1 pc."your domain".ws.ac.lk pc to 127.0.0.1 web."your domain".ws.ac.lk
     133   * Login to the vm. change to root user
     134{{{
     135$sudo su
     136}}}
     137   * Give your password
     138   * Edit /etc/hostname
     139{{{
     140#nano /etc/hostname
     141}}}
     142   * Change '''pc''' to '''www'''
     143   * Save and Exit
     144 - also edit /etc/hosts file to change 127.0.0.1 pc."your domain".ws.ac.lk pc to 127.0.0.1 www."your domain".ws.ac.lk  www
    112145
    113146You can follow the same steps and create the third VM to use as the ldap Server. Note the following changes.
    114147
    115  - Assign new name as ldap."your domain".ws.ac.lk
     148 - Assign new name as '''ldap."your domain".ws.ac.lk'''
    116149 - edit /etc/hostname file and change host name to web. You may use vi or nano editor.
    117150 - also edit /etc/hosts file to change 127.0.0.1 pc."your domain".ws.ac.lk pc to 127.0.0.1 ldap."your domain".ws.ac.lk
    118151
    119152'''Note''': For this Hands-on you only need your pc(pc."your domain.ws.ac.lk") VM. Please shut down the additional VM's
     153
     154=== Setting UP IP Addresses ===
     155
     156Edit /etc/network/interfaces files to include your IP addresses in your pc
     157
     158 - Login to the vm. change to root user
     159{{{
     160$sudo su
     161}}}
     162 - Give your password
     163 - Edit /etc/network/interfaces
     164{{{
     165#nano /etc/network/interfaces
     166}}}
     167 - Find the following line
     168{{{
     169iface eth0 inet dhcp
     170}}}
     171'''Note''': "eth0" is the name of your virtual interface. It could also be something like "enp0s3". If so you will use that instead of eth0
     172 - Change it to
     173{{{
     174#iface eth0 inet dhcp
     175}}}
     176 - Add the following lines (Get your IP Address from [wiki:ipallocation iptable])
     177{{{
     178iface eth0 inet static
     179    address "Your pc IP address"
     180    netmask 255.255.255.0
     181    network 192.248.6.0
     182    broadcast 192.248.6.255
     183    gateway 192.248.6.254
     184    dns-nameservers 192.248.1.161
     185    dns-search yourdmain
     186}}}
     187When you completed the IP settings , restart the vm and then login to confirm correct IP settings.
     188 {{{
     189$ ifconfig
     190enp0s3    Link encap:Ethernet  HWaddr 08:00:27:89:cb:37 
     191          inet addr:"your IP address"  Bcast:192.248.6.255  Mask:255.255.255.0
     192          inet6 addr: 2401:dd00:1:128:a00:27ff:fe89:cb37/64 Scope:Global
     193          inet6 addr: fe80::a00:27ff:fe89:cb37/64 Scope:Link
     194          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
     195          RX packets:6497 errors:0 dropped:794 overruns:0 frame:0
     196          TX packets:151 errors:0 dropped:0 overruns:0 carrier:0
     197          collisions:0 txqueuelen:1000
     198          RX bytes:405642 (405.6 KB)  TX bytes:17754 (17.7 KB)
     199}}}
     200Also confirm whether you could reach your neighbor by pinging their IP Address, DNS and Google
     201{{{
     202    ping <neighbor IP>
     203    ping 192.248.1.161
     204    ping google.com
     205}}}
     206
     207=== Remote Access ===
     208
    120209
    121210== Playing with Linux ==