Changes

Jump to: navigation, search
m
Protected "Tutorial 7 - Installing Linux / Live Linux / Virtualization": OER transfer ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
=INSTALLING LINUX / LIVE LINUX / VIRTUALIZATION=
===Main Objectives of this Practice Tutorial===
:* Download and install the '''VirtualBox''' VM software application
:* Download and run the install '''Knoppix Live VirtualBox fileRed Hat Enterprise Linux (RHEL)''' in a virtual machine
:* Open a terminal and connect to your Matrix account via the '''ssh''' utility
:* Run several '''open-source applications''' in your graphical Knoppix Linux RHEL environment :* Understand the '''limitation''' of running Knoppix Live as opposed to a '''persistent''' Knoppix installation
<br>
= INVESTIGATION 1: CREATING A RED HAT ACCOUNT AND DOWNLOADING THE ISO =
<span style="color:red;">'''ATTENTION''': The due date for successfully completing this tutorial (i.e. tutorial 17) is by Friday, December 15 April 21 @ 11:59 PM (Week 14).</span><br><br>
In this investigation, you will first create a Red Hat account and download the install medium (ISO). This is required to install Red Hat as a virtual machine in INVESTIGATION 2. Be sure to remember your login and password.
== Perform the Following Steps ==
* Navigate to [https://www.redhat.com/en Red Hat's website] (click on the link).
[[Image:1_-_Registering_for_a_Red_Hat_account.jpg|750px|Registering for a Red Hat account.]]
[[Image:3_-_Login_to_Red_Hat.jpg|750px|Red Hat account portal ]]
* Click Go to the [https://developers.redhat.com/ Red Hat Developers Portal]. Login with your new account and accept all terms and conditions. * Go back to the [https://www.redhat.com Red Hat website], login and click on '''Customer Portal'''. You should see the following screen.
[[Image:4_-_Customer_Portal.jpg|750px|Customer Portal]]
* Scroll down until you see Download Software. Click on '''DOWNLOADS'''Download software. This will take you to to You should see the following screen, where we will download Red Hat Enterprise Linux 8.
[[Image:5_-_Downloads.jpg|750px|Product Downloads]]
* You should see a download page for Click the arrow (highlighted in the previous screenshot) beside "Red Hat Enterprise Linux". Ensure under '''Product Variant''': it says '''Red Hat Enterprise Linux x86_64''' and '''Version: 8Then select Download latest.x It will take you to a download page (latestdepicted below)'''. Scroll down and next to '''Find the Full installation image. It should be labelled "Red Hat Enterprise Linux 89.4 1 Binary DVD''' click on '''". Click "Download Now'''". This process See the below screenshot for reference. Note: Downloading may take a few minutes (as the full dvd is a large file) some time depending on the speed of your internet Internet connection.
[[Image:6_-_Download_RHEL.jpg|750px|Download RHEL]]
= INVESTIGATION 2: CREATING A VIRTUAL MACHINE IN VMWARE AND INSTALLING RED HAT ENTERPRISE LINUX =
<span style="color:red;">'''ATTENTION''':You should already have VMWare Workstation installed from OSM620. If you do not, refer to OSM640 wk1 PreLab.</span>
In this investigation you will be creating a new virtual machine in VMWare Workstation and installing Red Hat Enterprise Linux 8.49. Keep this virtual machine (VM) after completing Tutorial 7 as you will require it for your Project.
* Launch VMware Workstation, and select '''Create a New Virtual Machine'''.
** Leave the defaults and login with the Red Hat Account you created in Investigation 1.
** Your system should now show as a Registered System at the bottom of the window.
** If you receive an error indicating you must accept the terms and conditions to continue, manually accept them by clicking on [https://www.redhat.com/wapps/tnc/standalone/ea this link].
* Click Date & Time. You should see the following screen.
[[Image:10_-_date_and_time.jpg|500px|Date & Time.]]
* This should succeed. If it fails, you may need to troubleshoot network issues. Ask your professor for assistance. Press '''ctrl + c''' at the same time to kill this process.
* While you can switch to the '''root''' user in your VM and install software, it's a bad practice to do this. In industry, admins are commonly granted permissions through '''sudo'''; which stands for "superuser do". This is similar to run as administrator in Windows. Sudo can be configured to allow users elevated privileges to a subset of commands, or all commands. Additionally, usage is logged to the appropriate user. This makes tracking the activity of a system with many administrator administrators a lot easier. When you initially installed RHEL, you did not set up sudo. We will do so now.
* Initially you will have to switch to root to configure sudo. Do this by issuing the command <span style="color:blue;font-weight:bold;font-family:courier;">su -</span>
* You should see your prompt change to '''[root@localhost ~]#'''. Now issue the command <span style="color:blue;font-weight:bold;font-family:courier;">visudo</span>
* This will allow you to edit the /etc/sudoers file and add the user you created when you installed RHEL. visudo works like using vi, except it checks the file to ensure the syntax is correct. If it is not, it will give you a warning. This is an extremely useful tool. Find the line that reads as follows:   '''root ALL=(ALL) ALL''' * This means that root is allowed to run from any terminal (first all), acting as any user (second all), and execute any command (third all). Below this line, add the following (substituting your username where appropriate). Be sure to enter insert mode by pressing the letter '''i''':
* This means that root is allowed to run from any terminal (first all), acting as any user (second all), and execute any command (third all). Below this line, add the following (substituting your username where appropriate). Be sure to enter insert mode by pressing the letter '''i''': '''senecaid ALL=ALL'''
* When you are done, press '''esc''' followed by ''':x''' to save your changes. This should return you to your command prompt. We want to test our elevated privileges from our regular user, so return to your normal prompt by typing <span style="color:blue;font-weight:bold;font-family:courier;">exit</span>
* You may be prompted for your password. The inclusion of the '''-y''' option, auto assumes yes to prompts (this can be very handy). The update process may take a while. Do not interrupt it.
* The Download the package required to connect to Seneca's VPN [https://students.senecacollege.ca/spaces/186/it-services/wiki/view/1027/vpn-clients here] (click on the link for '''openconnectLinux GlobalProtect Agent''') is not available in the default RHEL repo. It is however, available from epel You may have to enter your Seneca username and password. * Open your '''Terminal''' (extra packages for enterprise linuxcli). First add this repo by issuing the command and change to your downloads folder <span style="color:blue;font-weight:bold;font-family:courier;">sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpmcd Downloads</span>
* Note, since you did not include the Type '''ls''' to confirm your download is there. It should look something like '''PanGPLinux-5.3.3-y option, you will have to answer y (yes) when promptedc4.tgz'''
* Now, install '''openconnect''' The .tgz extension indicates the file is a tar that has been compressed with gzip. Extract it by issuing the command <span style="color:blue;font-weight:bold;font-family:courier;">sudo dnf tar xvf PanGPLinux-5.3.3-y install openconnectc4.tgz</span>
* Once this has completedType '''ls''' to confirm the files were extracted. Note all the files ls displays. We are going to install the .rpm, you can connect to Senecaas that is Red Hat's VPN by issuing package manager using DNF. Be sure to install the following command correct RPM (be sure to substitute your username where appropriatedo not the install the one that includes arm in the name) <span style="color:blue;font-weight:bold;font-family:courier;">sudo openconnect --protocol=gp senecavpn.senecacollege.ca -u username -b</span>
* Type the following command to install the file: <span style="color:blue;font-weight:bold;font-family:courier;">sudo dnf -y localinstall GlobalProtect_UI_rpm-5.3.3.0-4.rpm</span>. '''Note:''' Your rpm package name might be slightly different as it may be a newer version. * Now browse to the graphical '''GlobalProtect''' application and launch it. * Enter StudentVPN.senecacollege.ca for the portal. * Enter your password credentials when prompted(just like you connect with the Windows or Mac apps).
* Now you should be able to ssh into Matrix. Test this by issuing the following Linux command <span style="color:blue;font-weight:bold;font-family:courier;">ssh yoursenecaid@matrix.senecacollege.ca</span>
* Enter '''yes''' to share your public key.
 
* When prompted, enter your password. Were you able to connect to your Matrix account?

Navigation menu