M01: Introduction to Operating Systems TU1: Installing, configuring and exploiting a computer system
ASIX/DAW/DAM-1
Practical Exercise 2: Operating system overview. Shared folders. USB drives.
24-09-2017

PRACTICAL EXERCISE 2: OPERATING SYSTEM OVERVIEW. SHARED FOLDERS. USB DRIVES.

GENERAL CONDITIONS

1- Deadline: 7-10-2018.
2- Send your report as a PDF file attached to an e-mail with the following specifications:
     a) E-mail address:
cf(at)collados.org or jordi.binefa(at)fje.edu depending on who is your teacher
     b) File Name:
        b.1)
ASIX1 (Catalan): asix1_surname_name_m01tu01pr2.pdf
        b.2)
DAW1 (English): daw1_surname_name_m01tu01pr2.pdf
    
c) Subject:
       c.1)
ASIX1 (Catalan): asix1_surname_name_m01tu01pr2
       c.2) DAW1 (English): daw1_surname_name_m01tu01pr2
3- Make this report individually.
4- Left, right, top and bottom margins: 2cm.
5- Character format: a) Font: Arial, b) Size: 10, c) Questions typeface: Bold, d) Answers typeface: Regular

PRACTICAL EXERCISE

BEFORE STARTING THE PRACTICAL EXERCISE


Do not take screenshots. Do not write any answer!!!!!!!!!!!!!!!!


1
.- Install a useful text editor called  Geany  on your system. Just follow the next steps:
aptiude update
aptitude  install geany

2.-
Change /etc/apt/sources.list in order to add the contrib and non-free repository addresses.  Adding these new repositories allows the system  to gain access to some extra useful software packages.  The new sources.list  file should have the following contents:



After changing  sources.list, run: aptitude update

3-
Install the arial font (and another useful fonts).
Run: aptitude  install   ttf-mscorefonts-installer

4.-
Start the LibreOffice Writer text editor. 
Format your document according to requirements given in "GENERAL CONDITIONS".
Copy and paste every question of this exercise in your document. Make every question bold. Save the document as asix1_surname_name_m01tu01pr2.odt or daw1_surname_name_m01tu01pr2.odt.

QUES
TIONS - PART 1
1.-
Take a screenshot of your Desktop. Insert the image of your Desktop into your document as the answer to this first question.
2.- Open your  personal folder
Take a screenshot of your personal folder. Insert the image of your personal folder into your document as the answer to this question.
3
.- Create a new folder called question3 inside your personal folder.
Take again a screenshot of your personal folder with the newly created folder clearly visible. Insert the image into your document as the answer to this question. Save your document.
4
.- Create a new folder, called test01, inside your personal  folder. Open folder test01 Take  a screenshot of test01. Insert the image into your document as the answer to this question.
5.- Return back to your personal folderRename the folder test01. Its new name has to be test02. Explain how you have renamed the folder.
Take again a screenshot of your personal folder with the renamed folder clearly visible. Insert the image into your document as the answer to this question.
6.- Create a new folder, called test03, inside your personal folder. Copy test03 inside test02. Explain how you have copied folder test03 inside test02.
Take  a screenshot of test02 with test03 clearly visible. Insert the image into your document as the answer to this question.
7.- Create a new folder, called test04,inside your personal folder. Move test04 to test02. Explain how you have moved folder test04 to test02. What is the difference between copying and moving a file?.
Take  a screenshot of test02 with test04 clearly visible. Insert the image into your document as the answer to this question.
8.- Move test04 to the Trash.Take  a screenshot of your Trash with test04 clearly visible. Insert the image into your document as the answer to this question.
9.-
Select the folders Documents, Templates and Public. Copy these folders inside test02. Explain the process for selecting and copying the mentioned folders inside test02.
Take  a screenshot of test02 with Documents, Templates and Public clearly visibles. Insert the image into your document as the answer to this question.
10.- Copy 
asix1_surname_name_m01tu01pr2.odt  or daw1_surname_name_m01tu01pr2.odt inside test02 Rename the document to test02.odt. Explain how you have changed the file name.Take  a screenshot of test02 with test02.odt clearly visible. Insert the image into your document as the answer to this question.
11.- Start the geany Copy and paste the next code:
# Script to print current local date and time
#
#!/bin/bash
clear
DATE=$(date +%x)
TIME=$(date +%X)
echo "Hello $USER"
echo "Local Date: $DATE"
echo "Local Time: $TIME"
exit 0
Save this script in a file with the following specifications:a) Folder: your personal personal folder. b) File Name: script.sh.
Take a screenshot of your personal folder with the newly created file clearly visible. Insert the image into your document as the answer to this question. Save your document.
12.- What is the main difference between geany and LibreOffice Writer?.
13.-
Move script.sh to test02. Explain how you have moved the file
script.sh inside test02.
Take  a screenshot of test02 with script.sh clearly visible. Insert the image into your document as the answer to this question.
14.- Move script.sh to the
Trash. Take  a screenshot of your Trash with script.sh clearly visible. Insert the image into your document as the answer to this question.
15.- Open the Trash bin. Select and restore script.sh. Where has script.sh been restored?
16.- Empty the Trash bin. Explained how you have empited the Trash bin.
Take  a screenshot of your Trash. Insert the image into your document as the answer to this question.
17.- Show the hidden files and folder of your personal personal folder. Explain the process for showing hidden folders and files. Take a screenshot of your personal folder with the hidden files and folders clearly visible. Insert the image into your document as the answer to this question. Save your document.
18.- Show files and folders of your personal personal folder in list form.
Take a screenshot of your personal folder with the hidden files and folders clearly visible. Insert the image into your document as the answer to this question.  Besides name, what others characteristics of your files and folder are showed?. Save your document.
19.- Add extra columns to your view of your personal personal folder in list form. Add columns Owner, Group and Date Accessed. Explain the process for showing extra columns to your view of
your personal personal folder. Take a screenshot of your personal folder with the new columns clearly visible. Insert the image into your document as the answer to this question. Save your document.
20.- Save your report with the answers to the first part of this exercise. Shut Down your system properly.

SHARED FOLDER - PART2

1-
Create a new folder, called sharedFolder, inside the folder VirtualBox VMs of your host operating system.
2- Run VirtualBox. Select debian9v5 --> Shared folders.
3- Create a new shared folder with the following features:
    a) Folder Path: Look for sharedFolder on your system and select it.
    b) Folder Name -->
sharedFolder
    c) Select Auto-mount
4-
Boot your virtual machine.
5-
Start a terminal (MATE Terminal) and using the su - command, become the root user.
6- Provide your user with the proper permissions to work with shared folders by running the command: gpasswd  -a  xxyyzz  vboxsf  (where xxyyzz is the user created by you during the first prąctical exercise).
7- Log out as root. Close  the terminal window properly.  Log out as standard user from your desktop. Gain access to your desktop again.
8- Select  the sf_sharedFolder folder on your Desktop.
Copy your report (asix1_surname_name_m01tu01pr2.odt or daw1_surname_name_m01tu01pr2.odt) inside sf_sharedFolder. Take a screenshot of sf_sharedFolder. Insert the image into your document as the answer to this question. Save your document.
9- Open the folder share  created in the first step. What have you found in that folder of your host machine?. Answer the question and save your document. Create the PDF version of your document.
10.- Save your report with the answers to the second part of this exercise. Shut Down your system properly.

USB DRIVE
- PART 3
1.-
Check if the VM VirtualBox Extension Pack has been installed on VirtualBox. In order to check if
VM VirtualBox Extension Pack is installed on VirtualBox, select File --> Preferences --> Extensions. If it is not installed then donwload and install VM VirtualBox Extension Pack.
2.- Before booting your virtual machine again, you have to select the proper version of your USB drive (2.0 or 3.0). On the VirtualBox Manager, select USB -->  Enable USB controller --> select USB 2.0 (EHCI) or USB 3.0 (xHCI) depending on your physical USB drive.
3.- Boot your virtual machine. Plug your USB drive into your laptop.  Attach your USB drive to your virtual machine. 
Take a screenshot of your Desktop with the USB drive attached . Insert the image of your Desktop into your document as the answer to this question.
NOTE: If you are running a Debian or Ubuntu system as a host machine,  you should add your personal user to the virtualbox group of users, log out and log in again.
4.-  Open your USB drive in  your virtual machine. T
ake a screenshot of your USB drive. Insert the image of your opened USB drive into your document as the answer to this question.
5.- Open your USB flash drive. Create a new folder called usbquest5 inside your  USB flash drive. Copy your report (asix1_
surname_name_m01tu01pr2.odt or daw1_surname_name_m01tu01pr2.odt) inside usbquest5. Take a screenshot of your USB drive with your report clearly visibe. Insert the image  into your document as the answer to this question.
6.- Safely remove (Eject) your USB flash drive. Explain the process of removing safely your USB drive. Detach your USB drive from  your virtual machine.
Explain the process of detaching your USB drive from the virtual machine. 
7.
- Send your report
with the answers to the first, second and third  part of this exercise. In oder to send your report, read carefully the General Conditions section that you can find at the top of this exercise. Finally, shut down your system properly.