Modern Operating Systems

Download Report

Transcript Modern Operating Systems

Modern Operating
Systems
2014 Practice Tasks
Lab1. OS Installation. Boot
configuration
Install Dual boot system Linux / Windows 7 or
8 / win server 2012(Dreamspark for example)
Virtualbox with 2 hd -s and install linux on one
hd and windows on second one use windows
boot manager to boot both systems in one hdd
and Linux boot manager to boot both system in
second hdd
Lab2. User settings
Configure the Linux machine the following way
(use the skeleton file for this):
• Change the background image
• Change the greeting text in the console
• Each new user in the system must have the
directory named Downloads
• Create couple of new users and verify the
settings
Lab3 Users and Groups
•
•
•
•
•
•
Create group Leidurid
Create users klaus, bruno, paula ja eduard
Set klaus group to leidurid
Set bruno group to users and leidurid
Set paula group to users
Set eduard group to leidurid
Lab4. Access rights
Your task is to create access rights (in form of
rwx), which corresponds to the 4-digit number
DCBA. The number ABCD you get if you sum
up your student code and 2222, take 4 least
significant digits, substitue 8 with 4 and 9 with
3.
Describe the process step by step.
Lab5. File system
Create catalog /var/www/leiutised which
belongs to group leidurid. Others should be
granted with only read access to the directory.
Check if user paula can access the directory.
Try to create several files with all the users
outlined in the previous lab and inspect their
corresponding access rights.
Lab6. File system
Add to the VM a spare 8GB virtual HDD.
Create 4GB partition in it and format into xfs.
Edit the /etc/fstab file appropriately so that the
new file system gets mounted at system boot.
Lab7 (basic) Scripting
Home assignment : Write script in powershell and in bash to do :
1. Archive only new or modified files from directory to archive directory
2. Archive it to archive directory by compressing each file separately (with zip,
or tar or etc) and naming the archive OriginalFileNameDDMMYY.extension
where
OriginalFileName is the original file name
DD is Two-digit day, e.g. 02
MM Two-digit month, e.g. 04
YY Two-digit year, e.g. 96
extension is the extension for the arcive, eg tar.gz ,.zip etc..
Lab8 (advanced) Scripting
In addition monitor directory for changes as
soon new file appear in directory doo
mentioned tasks.
Lab9. Software installation
Check if the VM needs to update any of the
software packages installed in it. List all the
packages that require update (and the process
how did you get that), perform an update and
verify that the machine no further needs any
updates.
Lab10. Virtualization
Install LXC package on the Linux VM
Create two VM-s following the predefined
template
Configure the networking (useful commands
are brconfig, ifconfig)
Configure both VMs to start with the host
system boot and limit each VM to 200 MB RAM
usage.
Lab11. Windows
Check the process table of the windows
system. Which process takes most resources?
Which process is the slowest? Can you find
any suspicious files or processes there?
Install antivirus software and scan the system
for suspicious activities. What are the results?