Changes

Jump to: navigation, search

OPS235 Lab 1 - CentOS7

1,022 bytes removed, 19:20, 24 March 2015
no edit summary
==Part2: Obtaining System and Network Information==
<ol><li>To find out the name that you have assigned to your Linux system, enter the command: <code>'''hostname'''</code></li><li>To find out the kernel version of your GNU/Linux workstation and the date it was created, enter the command: <code>'''uname -rv'''</code></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></ol> {{Admon/important|Pathname for USB Stick|The default mount location has been changed in linux distributions newer than CentOS. So while we will get /media/usb-device-name, in newer distributions you'll see /run/media/userloginid/usb-device-name}} <ol><li valuecellpadding="15" width="13100%">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><li>View the section below to learn about and perform an update on your fresh CentOS 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><li>The CentOS software is updated frequently to add features, fix bugs, and upgrade security. Perform a system update to get the latest versions of the packages installed: Start the Firefox web browser, turn off popup window blocking (select ''Edit>Preferences'', then select the Content tab and uncheck the box to Block Popups), then login to SeneNET. Open a terminal and type <code>su</code> to start a shell as root. Enter the command <code>yum update</code> This will download and install all of the packages that have been updated since the installation DVD image was created. If you complete this command at Seneca it should run quite fast as Seneca College hosts a CentOS Repository mirror (a copy of all of the current CentOS packages, on a local web server).</li></ol>  {{Admon/tip |Rusty Issuing Linux commands since ULI101?|To be an effective Linux administrator, you need to 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 - valign="OPS435top", 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 find out the name that you have assigned to your Linux system, enter the command: <code>'''hostname'''</code>
#To find out the kernel version of your GNU/Linux workstation and the date it was created, enter the command: <code>'''uname -rv'''</code>
#To find out all the system processes running on your GNU/Linux workstation, enter the command: <code>'''ps -ef'''</code>
#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>
#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.
#View the section below to learn about and perform an update on your fresh CentOS 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'''.
#The CentOS software is updated frequently to add features, fix bugs, and upgrade security. Perform a system update to get the latest versions of the packages installed: Start the Firefox web browser, turn off popup window blocking (select ''Edit>Preferences'', then select the Content tab and uncheck the box to Block Popups), then login to SeneNET.
#Open a terminal and type <code>su</code> to start a shell as root. Enter the command <code>yum update</code> This will download and install all of the packages that have been updated since the installation DVD image was created. If you complete this command at Seneca it should run quite fast as Seneca College hosts a CentOS Repository mirror (a copy of all of the current CentOS packages, on a local web server).
|width="60%" |{{Admon/important|Pathname for USB Stick|The default mount location has been changed in linux distributions newer than CentOS. So while we will get /media/usb-device-name, in newer distributions you'll see /run/media/userloginid/usb-device-name}}
|}
'''Answer the Investigation 2 observations / questions in your lab log book.'''
13,420
edits

Navigation menu