University Assignment Questions

QUESTION 1 LINUX DESKTOP CONFIGURATION [100]

On VirtualBox/Virtual Machine – create a virtual machine as specified below.

  1. Three Net adapters – 1st using NAT; the 2nd and 3rd using Bridged Adapter
  2. Give the machine 4GB RAM; 100GB dynamic VDI drive - Leave other settings using defaults values
  3. NB: the # symbol must be replaced by your Desk number wherever it appears AND StudentNum represent your Real student number – e.g. 219876543

1. VirtualMachine, Installation, Users and Groups and Linux Networking

25

1.1. Install the Linux OS version specified by your lecturer

Root drive is 50GB (first primary partition) and swap is 4GB (second primary).

1.2. During installation, create the system administrator named labstu whose password is labstu99. Set root password as Power99

Reboot the installed OS then login as labstu

1.3. Backup files fstab, hosts, passwd and group to /etc/skel/origbkp

1.4. Search /var for all files ending with .conf and copy found files to /etc/skel/origbkp

1.5. Create user group students with GID 20181

1.6. Create the second user named uStudentNum (e.g. u219876543); set any password, description as YourSurname and Initials, home is /homestu/uStudentNum, primary group is students, additional groups being labstu and sudo/wheel.

Logout, then log in and work as uStudentNum

1.7. Do not change settings used by the Network Adapter (NIC) using NAT

1.8. Change the NIC having no IP address or using APIPA address to use the following static IP address : 10.20.30.#/23, no DNS, no Gateway

1.9. Set the FQDN of your machine to uStudNUMpc#.tsebong.net (e.g. u219876543pc#.tsebong.net)

1.10. Ensure that all NIC will run after reboot and hostname will be persistent too

3

3

4x ½

3

2

4

4

4

2. Configure Linux packages repository source

10

2.1. Configure Linux to get packages from one of the following repository servers:

http://ubuntu.mirror.ac.za OR http://debian.mirror.ac.za

On Centos – decide which mirror to use.

2.2. Install and enable openssh-server, xfsprogs and lvm2.

2.3. Install wps-office from 168.172.155.233/10.20.30.233 file server

2.4. Ensure that no other Office Suite (e.g. OpenOffice, LibreOffice) is installed

3

2

3

2

3. Create the following partitions

20

3.1. Use the table below to partition the remaining space on your drive

Partition Number and Size

Format

Mount point

Primary Partition 3, 5GB

ntfs

/mnt/bkpwin

Logical Partition 5, 7.5GB

swap

Mounted as swap automatically

Logical Partition 6, 14GB

Put in volume group VGstorage

Logical Partition 7, use all space.

Put in volume group VGstorage

3.2. Use partitions 6 and 7 to create a 21GB logical volume (LVstorage) formatted as either xfs

3.3. Using universal unique ID, configure LVstorage to be automatically mounted in /mnt/backup on every boot and writable. Mount the second swap using device path NOT UUID. The put comment as “mounted by Surname Init”

3.4. Backup the entire contents of /homestu to /mnt/backup

3.5. Use a relevant command to show available storage on all mounted drives

3.6. Use relevant command to show how much swap space has been used

3

3

1

1

4

4

2

1

1

4. Manage Security

5

4.1. Configure the default firewall to allow all connections from any OSI Transport layer protocol in and out of your system.

4.2. In Centos, set SELinux to enforce permissive mode even after reboot

5/2

0/3

5. Files, Folders, permissions, ACL, sticky bit and backups

15

5.1. In /var, create folders soweto, afrika and afrika subfolder named countries.

5.2. Copy the folder /etc and its contents to countries folder.

5.3. Move countries from afrika and save it as sections in the folder soweto.

5.4. Send all your history to a file named mypast.rtf – located in soweto folder.

5.5. Create a soft links of soweto, named connetion, and put it in /mnt/backup.

5.6. Make uStudentNumber and group students owners of all newly created folders from step 5.1 to 5.5. Everyone must have full control on all of these.

5.7. Set special permission on soweto to enable only owners of new files under soweto to delete those files.

5.8. Set access control list on soweto so that labstu and root will have only read and execute permissions while everyone else have full control

1

1

1

1

2

3

3

3

6. Install, configure and run Linux Services

25

Install and configure the following services to run and usable when Linux restart:

6.1. xfce and xrdp server

6.2. Webmin 1.870 (using either deb or rpm or tar.gz file)

6.3. samba server –configure it as follows

6.3.1. set workgroup as TSEBONG, server name as uStudNUMserv (e.g. u219876543serv)- remote announce server to 10.20.30.0 and 168.172.155.0 subnets

6.3.2. Linux user labstu to map to Windows user student

6.3.3. export /etc/skel/origbkp as originals with read only permissions

6.3.4. export /etc/afrika as afrika4all so it is writeable for all

6.4. mysql, php and apache server (show your names on index page)

6

5

3

1

3

3

4