Changes

Jump to: navigation, search

OPS235 Lab 1 - Fedora17

2,322 bytes added, 12:26, 24 September 2018
no edit summary
[[Category:OPS235]][[Category:OPS235 Labs]]
{{Admon/caution|THIS IS AN OLD VERSION OF THE LAB|'''This is an archived version. Do not use this in your OPS235 course.'''}}
 
=Fedora 17 Installation (on Main Host - f17host)=
<li>If you get a warning with something like "This device may contain data" - it's probably your new hard drive and you can safely use it.</li>
<li>Select '''Create Custom Layout''', we don't want to use the Fedora default setup now.</li>
<li>On your drive you will need at least the following partitions. These may be primary partitions or logical drives. If you have more space than 160GB 250GB available - you can add the extra space in equal parts to /home and /var/lib/libvirt/images</li>
<ul><li>'''20GB''' for '''/''' (i.e. "root")</li>
<li>'''30GB''' for /home</li>
<li>'''8GB''' for '''swap'''(Note: "swap" must be selected from the drop down menu)</li>
<li>'''100GB''' for '''/var/lib/libvirt/images'''</li></ul>
<li>Record briefly in your lab logbook what partitions you created of what size and what device names were assigned to them (/dev/sda1, etc.).</li>
<li>To find out all the system processes running on your GNU/Linux workstation, enter the command: <code>'''ps -ef'''</code></li>
<li>To capture the list of all the system processes to a file called <code>'''ps.lst'''</code>, enter the command: <code>'''ps -ef > ps.lst'''''</code></li>
<li>Copy the installation log file <code>'''/root/install.log'''</code> and the file '''ps.lst''' to a USB memory key, or '''scp''' to your matrix account as a backup.</li>
</ol>
{{Admon/important|Pathname for USB Stick|The procedure has changed to refer to the usb device for distributions prior to Fedora17 (eg. /media/usb-device-name). For Fedora17, the new device pathname is:<br /><b>/run/media/userloginid/usb-device-name</b> .<br /><br />Note: You can press the <b>tab</b> key to guess what the userloginname/usb-device-name is...}} <ol><li value="13">Copy the installation log file <code>'''/root/install.log'''</code> and the file '''ps.lst''' to a USB memory key, or '''scp''' to your matrix account as a backup.</li></ol> {{Admon/tip |Backup up to your USB Key|When your USB key is inserted into your computer, the device is recognised and assigned a name. You can view your USB drive by issuing the command <code>ls /run/media/yourusername</code> and view the mounted devices. Then you can issue a Linux command as "super-user" to copy the files to your USB device.}}
<ol>
<li value="14">View the section below to learn about and perform an update on your fresh Fedora install (you may have to find spare time to perform this install if you are running short on lab time). '''Do <u>not</u> proceed to Investigation 3 without performing an update'''.</li>
{{Admon/tip |Learning How Rusty Issuing Linux commands since ULI101?|To be an effective Linux administrator, you need to Learn|Refer become comfortable on issuing Linux commands in a shell, and use resources to quickly learn how to properly formulate Linux commands...<br /><br />You can run the following online tutorials to practice (refresh) issuing Linux commands. These tutorials were designed for another course called "OPS435", but you can still use them for practice. Simply open a shell, SSH into the Matrix server (eg. ssh yourusername@matrix.senecac.on.ca) and run the following 4 tutorials (you can copy and paste these separate pathnames and run like a program):<br /><br />'''/home/ops435/tutorials/tutorial1<br />/home/ops435/tutorials/tutorial2<br />/home/ops435/tutorials/tutorial3<br />/home/ops435/tutorials/vi-tutorial'''<br /><br />You can also refer to the section above called '''Linux Command Online Reference''' to see how use use the following Linux commands to obtain the required information.}}
# To check the network configuration settings obtained from the DHCP server, run the following commands, describing the output in your log book:
# Find the following information in the output of the above commands:
#* '''MAC address''' (physical or hardware address) of the ethernet network interface
#* '''Subnet mask'''
#* '''The IP address''' (logical address) assigned by the DHCP server
#* '''The default route''' (gateway)
'''Answer the Investigation 3 observations / questions in your lab log book.'''
 
== Investigation 4: SELinux ==
 
 
{{Admon/important|SELinux|SELinux stands for '''Security-Enhanced Linux'''. It is a component that helps to better secure the system to protect against intrusion (hackers). Usually, SELinux is enabled upon the default install of Fedora. SELinux can be a good thing, if you take care of it and are aware that it is enabled or disabled. It is recommended that you '''disable SELinux by default''' for this course, since you will be communicating with other virtual machines and can cause machines NOT to communicate.}}
 
# Disabling SELinux on Fedora is actually quite simple, just edit the file '''/etc/selinux/config''' and change the following line to look like this:
#* SELINUX=disabled
= Completing the Lab =
* Can login with your "learn" account name
* Has the package count
* Has correct size partitions for:
:* '''root /''' (20GB), '''/home''' (30GB), '''swap''' (8GB)
:* '''/var/lib/libvirt/images''' (100GB)
:* Hint: Can issue '''lsblk''' (listblock command)
* Has the correct IP address and MAC address
* Find out the default route (gateway)

Navigation menu