Open main menu

CDOT Wiki β

Changes

no edit summary
{{Admon/caution|DO NOT USE THIS VERSION OF THE COURSE. This page will no longer be updated.|'''New version here:''' https://seneca-ictoer.github.io/ULI101/B-ExtraResources/interest-topic}}
=INSTALLING LINUX / LIVE LINUX / VIRTUALIZATION=
<br>
:* Download and install the '''VirtualBox''' VM software application
:* Download and run the '''Knoppix Live Ubuntu VirtualBox file''' 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 Ubuntu Linux environment
<!-- :* Understand the '''limitation''' of running Knoppix Live as opposed to a '''persistent''' Knoppix installation-->
<br>
|- valign="top" style="padding-left:15px;"
|colspan="2" |Course Notes:<ul><li>[https://ictwiki.cdot.senecacollege.ca/~murray.saululi101/uli101slides/ULI101-Week77.1.pdf PDF] | [https://ictwiki.cdot.senecacollege.ca/~murray.saululi101/uli101slides/ULI101-Week77.1.pptx PPTX]</li></ul>
| style="padding-left:15px;" |Installing Linux
* [https://en.wikipedia.org/wiki/Live_CD Live Linux Definition]
* [https://en.wikipedia.org/wiki/Virtualization Virtualization Definition]<br><br>
| style="padding-left:15px;"|Knoppix Ubuntu Resources* [https://wwwubuntu.knoppercom/ Ubuntu Website]* [https://senecafts.netsenecacollege.ca/knoppixlink/index-en.html Knoppix Websiteto4Ztj33rphUlHFGsgGETf Download Ubuntu VirtualBox VM]* [https://itassenecafts.senecacollege.ca/~uli101link/Knoppix.zip exmCHYEOdASPqZu8SpXDxf Download Knoppix VirtualBox Ubuntu VMware VM]
|colspan="1" style="padding-left:15px;" width="30%"|Instructional Videos:<ul><li>[https://www.youtube.com/watch?v=rCU9d5EZaAY 8UFsXtIEQSc Install Knoppix Ubuntu as a Virtual Machine]</li></ul>
|}
<!-- The '''Knoppix Live CD''' is available to run on workstations at Seneca College via '''AppsAnywhere'''<br>or you can download and run it on your home computer as a Virtual Machine<br>(requires '''VirtualBox''' VM software installed on your computer).<br><br> -->
<!--
:''Steps to Run Knoppix from AppsAnywhere (Seneca Labs):''
<br><br>
=INVESTIGATION 1: BOOTING KNOPPIX UBUNTU (LIVE LINUX) VIA VIRTUALBOX=
<span style="color:red;">'''ATTENTION''': This tutorial relates to an interest topic and is NOT worth marks.</span><br><br>
In this investigation, you will first ''download'' and ''install'' the '''VirtualBox''' VM application on your home computer,<br>then you will then ''download'' and unzip the '''Knoppix Live Distribution Ubuntu VM''' file to your computer.
You will then ''launch'' the VirtualBox application by double-clicking the downloaded VirtualBox VM.<br>Once you launch the Knoppix Ubuntu Linux distribution, you will learn in '''INVESTIGATION 2''' to perform<br>a few basic operations in the '''KnoppixUbuntu''' Linux ''graphical'' Linux environment.
# In this website, '''click''' the link corresponding to your '''computer's operating system'''<br>to download to your computer.<br><br>
# '''Install''' the downloaded '''Virtualbox''' VM application on your computer.<br><br>'''NOTE:''' You may be required to allow '''authorization''' to run this program, select to install devices (if prompted) and to '''restart''' your computer after installation.<br><br>
# '''Click''' the following link to download the '''zipped''' (''compressed'') Knoppix Live Ubuntu Distribution<br>file to your computer: [https://itassenecafts.senecacollege.ca/~uli101link/Knoppix.zip Knoppix to4Ztj33rphUlHFGsgGETf Ubuntu Virtualbox VM]<br><br>'''NOTE:''' This file is approximately '''5GB''' in size and might take a while to download.<br><br># <span style="color:red;">VMware alternative:</span> If you are using VMware workstation, download this '''zipped''' (''compressed'') Ubuntu Distribution file instead: [https://senecafts.senecacollege.ca/link/exmCHYEOdASPqZu8SpXDxf Ubuntu VMware VM]<br><br># The '''username'' is '''ubuntu''' and the password is '''ubuntu'''. The root password is also '''ubuntu'''# Open a '''File Manager''' application and '''navigate''' to directory that the '''KnoppixUbuntu.zip''' file<br>was downloaded (eg. '''Downloads''').<br><br>[[Image:knoppix-file.png|thumb|right|280px|Knoppix VM file contained in the zipped file. '''Double-click''' '''Knoppix.vbox''' file to launch the '''Knoppix Live Linux''' Distribution.]]
# '''Unzip''' the downloaded zip file (In MS Windows: ''Right click'' and Select "''Extract All''" )<br><br>'''NOTE:''' The contents of this zipped file should appear in another file manager window.<br><br>
# Navigate to the folder containing the ''extracted zipped files'' and '''double-click''' the file called '''KnoppixUbuntu.vbox''' to launch the Knoppix Ubuntu VM.<br><br>'''NOTE:''' By '''double-clicking''' on this file (even if the VirtualBox application is not running)<br>it will launch the VirtualBox application and start the Knoppix Ubuntu virtual machine.<br><br>'''For Mac Users:''' If you experience an error message regarding the Kernel extension,<br>click on '''System Preferences''', select '''Security and Privacy'''<br>and click to '''allow Oracle''' service extensions to run on your machine.<br><br>If you have difficulty running Knoppix on your home machine/laptop you may ask your <br>'''Learning Centre ULG leaders''' for additional help in troubleshooting why Knoppix<br>is not working on your home machine/laptop.<br><br><table align="right"><tr valign="top"><td>[[Image:knoppix-start-menu.png|thumb|right|150px|'''Knoppix Start button''' (icon on the '''left''').]]</td><td>[[Image:knoppix-desktop.png|thumb|right|280px|The '''Knoppix Linux desktop environment''' has a similar look as the MS Windows desktop environment. (Image licensed under[https://creativecommons.org/licenses/by-sa/3.0/ cc])]]</td></table>
# If you are using MS Windows, look in the taskbar below to see if the Virtual Box application is running click to display that application window.<br><br>
# Click on the Start button (looks like a green arrow pointing to the right).<br><br>
# If prompted, '''click''' '''Scale''' or '''Switch''' to scale mode to proceed.<br><br>
# If using ''MS Windows'', click the mouse on the Knoppix Ubuntu screen and press '''ENTER''' to login.<br><br># Allow '''time''' for the Knoppix Ubuntu Linux distribution to start. This is a '''graphical Linux distribution''' which will start-up in a desktop environment.<br><br>'''NOTE:''' You When you are '''NOT''' prompted for a ''username'' and ''password'' because this is a Linux Live distribution and you have been assigned a 'use ''generic account'ubuntu''for both.<br><br>'''NOTE:''' If you are using MS Windows, press the '''RIGHT CTRL''' key to change to other applications by pressing '''ALT-TAB'''.<br>When you want to use Graphical Linux (i.e. Knoppix Ubuntu screen), click in the screen to focus and use that screen.<br><br># '''Click''' the '''Knoppix Ubuntu Start button''' (refer to <u>left</u> icon in diagram on right). In the '''Knoppix menuUbuntu''', select '''System Tools'''<br><br>[[Image:xterm.png|thumb|right|280px|The '''KonsoleTerminal''' application will display the Bash shell to issue Linux commands.]]# In the '''system tools''' menu, and select '''KonsoleTerminal''' to launch a terminal application.<br><br>'''FYI:''' To '''increase''' font size, press '''ctrl+''' to '''reduce''' font size, press '''ctrl-'''.<br>You can drag the Konsole Terminal terminal window from the bottom-right corner<br>to increase the window size, or double click on the window title.<br><br># In the bash shell, issue the following Linux command: <span style="color:blue;font-weight:bold;font-family:courier;">whoami</span><br><br>What is the name of your generic Knoppix Ubuntu Linux Live account?<br>On your Knoppix live OS, there is a '''generic''' user called "'''knoppix'''" that can<br>be accessed <u>without</u> a password. This account has its own home directory.<br><br>Let's test this out by using the ssh command to connect to your Matrix account.<br>Your Knoppix Ubuntu virtual machine uses your host computer's operating system which<br>is already connected to '''Seneca's GlobalProtect VPN'''.<br><br>
<!-- # Issue the following Linux command to '''download''' a Bash Shell script to connect<br>to the '''Seneca GlobalProtect VPN''':<br><span style="color:blue;font-weight:bold;font-family:courier;">wget itas.senecacollege.ca/~mark.fernandes/vpn</span><br><br>
# Issue the following Linux command to add execute permissions to be able to run this script:<br><span style="color:blue;font-weight:bold;font-family:courier;">chmod +x vpn</span><br><br>
# Issue the following shell script to connect to the Seneca GlobalProtect VPN: <span style="color:blue;font-weight:bold;font-family:courier;">vpn -c</span><br><br>You should be connected to the Seneca GlobalProtect VPN. <br>Let's test this out by using the ssh command to connect to your Matrix account.<br><br>
# We need the '''vpn -c''' command to <u>keep</u> running in this terminal; therefore, '''open <u>another</u> Konsole terminal'''.<br><br>
# In that '''<u>new</u>''' terminal, issue the following Linux command to connect to your Matrix account:<br><span style="color:blue;font-weight:bold;font-family:courier;">ssh yourSenecaIdYourSenecaUsername@matrix.senecacollege.ca</span><br><br>
# Enter '''yes''' to share your ''public key''.<br><br>
# When prompted, enter your '''password''' (remember that password does not "echo-back").<br><br>Were you able to connect to your Matrix account?<br><br>
-->
# Issue the following Linux command to connect to your Matrix account:<br><span style="color:blue;font-weight:bold;font-family:courier;">ssh yourSenecaIdYourSenecaUsername@matrix.senecacollege.ca</span><br><br>
# Enter '''yes''' to share your ''public key''.<br><br>
# When prompted, enter your '''password''' (remember that password does not "echo-back").<br><br>Were you able to connect to your Matrix account?<br><br>
# If you encounter errors, make corrections and then re-run the checking script until you receive<br>a congratulations message, and proceed to the next step.<br><br>
# Issue the following Linux command to '''terminate''' your Matrix session: <span style="color:blue;font-weight:bold;font-family:courier;">exit</span><br><br>
# Remain in the '''KonsoleTerminal''' ''terminal window'' when performing '''INVESTIGATION 2'''.<br><br>
: In the next investigation, you will learn to work in a graphical Linux environment.<br>You will also run several open-source application within the Knoppix Ubuntu graphical environment.
<br><br>
=INVESTIGATION 2: USING THE GRAPHICAL KNOPPIX UBUNTU VM =
Let's learn to run ''open-source'' applications on your graphical Knoppix Ubuntu Linux Live distribution.<br>But first, let's '''download''' and run a '''shell script''' that will display '''dialog boxes''' in your graphical Knoppix Ubuntu VM.
'''Perform the Following Steps:'''
# Make certain that you are running your Knoppix Ubuntu Linux Live virtual Machine<br>(refer to '''step #7''' in [https://wiki.cdot.senecacollege.ca/wiki/Tutorial7Interest_Topic:_Installing_Linux_/_Live_Linux_/_Virtualization_Graphical_Linux_via_a_Virtual_Machine_(VM)#INVESTIGATION_1:_BOOTING_KNOPPIX__BOOTING_UBUNTU_.28LIVE_LINUX.29_VIA_VIRTUALBOX INVESTIGATION 1] )<br><br>Although you will be learning to create and run '''shell scripts''' (near the end of this course)<br>in your '''Matrix''' server , those scripts will only run in a '''command-line''' environment.<br><br>Since you are running a '''<u>graphical</u> Knoppix''' Linux distribution on your computer,<br>you can run scripts graphically (including the use of '''dialog boxes''' for ''input'', ''output'', etc.).<br><br>[[Image:input-dialog.png|thumb|right|250px|Graphical '''input dialog box'''.]]# Make certain that you are in a '''KonsoleTerminal''' ''terminal window''<br>(but '''NOT''' connected to your Matrix account).<br><br># Issue the following command to '''download''' a shell script called '''week7-demo-1''' from the Internet:<br><span style="color:blue;font-weight:bold;font-family:courier;">wget <nowiki>https://matrixwiki.cdot.senecacollege.ca/~murray.saululi101/files/week7-demo-1</nowiki></span><br><br>
# Issue the '''ls''' command to confirm that the file called '''week7-demo-1'''<br>has been downloaded to your current directory.<br><br>
# Issue the following to run this shell script:<br><span style="color:blue;font-weight:bold;font-family:courier;">bash week7-demo-1</span><br><br>
# In the dialog box, click to select the '''/home/knoppixubuntu''' directory and click '''OK'''.<br><br>What did you notice?<br><br>
# Issue the following Linux command: <span style="color:blue;font-weight:bold;font-family:courier;">ls -l week7-demo-1</span><br><br>Notice there are NO '''execute''' permissions for this shell script file.<br>That is why we have to issue the '''bash''' command followed by<br>the '''shell script file pathname''' (as an argument) to run the shell script.<br><br>Let's '''<u>add</u> execute permissions''' so we can run this command by name<br>(i.e. without using the '''bash''' command).<br><br>[[Image:output-dialog.png|thumb|right|250px|Graphical '''output dialog box'''.]]
# Issue the following command to '''add execute permissions''' for everyone<br>for the '''week7-demo-1''' file: <span style="color:blue;font-weight:bold;font-family:courier;">chmod +x week7-demo-1</span><br><br>'''FYI:''' This method is a '''quick''' method of adding execute permissions for<br>the '''owner''', '''same group members''' and '''others'''.<br><br>
simulate a quiz:
https://ictwiki.cdot.senecacollege.ca/~murray.saululi101/uli101files/uli101_week7_practice.docx
Your instructor may take-up these questions during class. It is up to the student to attend classes in order to obtain the answers to the following questions. Your instructor will NOT provide these answers in any other form (eg. e-mail, etc).