Open main menu

CDOT Wiki β

Changes

OPS235 Lab 2 - CentOS7 - VMware

748 bytes added, 07:22, 6 June 2016
no edit summary
<li value="20">Start and enable the SSH server to allow access to your virtual machine with these commands (semi-colon allows commands to be run in sequence):<br /> <b><code><span style="color:#3366CC;font-size:1.2em;">systemctl start sshd; systemctl enable sshd</span></code></b></li>
<li>Find out the IP address of your virtual machine and the name of your Ethernet network adaptor: <b><code><span style="color:#3366CC;font-size:1.2em;">ifconfig</span></code></b> </li>
<li>Enter the following command on your virtual machine to create a firewall exception to allow ssh traffic into the machine:<br /> <b><code><span style="color:#3366CC;font-size:1.2em;">iptables -I INPUT -p tcp -s0/0 -d0/0 --dport 22 -j ACCEPT</span></code></b></li><li>If you are logged in as root, logout to your regular user account.</li><li>Confirm that you can ssh to your virtual machine from the host (your main CentOS installation): <b><code><span style="color:#3366CC;font-size:1.2em;">ssh regularuserid@IPaddress</span></code></b> (where '''regularuserid''' is your regular user login id, and '''IPaddress''' is the '''IP_ADDRESS''' of your '''centos2''' VM!).</li><li>Make certain to '''disable SELinux for centos2''' (refer to lab1)</li><li>Adjust your screen-saver settings and run a '''yum update''' on your centos2 VM before proceeding to ''Part 2''</li></ol>
=INVESTIGATION 2: COMMON POST-INSTALL TASKS=
 
==Part 1: Perform Software Updates==
 
It is important as a Linux System Administrator to update software on your Linux system periodically. Performing periodic updates will fix software bugs and inefficiencies as well as apply security patches in order to better secure your Linux server.
 
You are required to perform the following command for ALL of your 4 VMs:
 
 
<b><code><span style="color:#3366CC;font-size:1.2em;">yum update</span></code></b>
 
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). You will be reminded at the end of each of the remaining labs to perform software updates on ALL of your VMs.
|}
==Part 12: Accessing Administrative Priviledges==
Navigate through your Graphical CentOS system, '''locate and run a terminal program (in order to issue Linux commands).
==Part 23: Common Post-Install Commands &amp; Shell Scripting==
{|width="40%" align="right" cellpadding="10"
|- valign="top"
==Part 34: Manipulating VMWare Virtual Machines with vmrun Command==
13,420
edits