Changes

Jump to: navigation, search

Tutorial 1: Using Your Matrix Server Account

962 bytes added, 11:24, 12 September 2022
m
INVESTIGATION 2: USING THE LINUX SHELL
:* Learn how to access your '''Matrix''' server account (from a '''remote''' home and/or from Seneca computerlab).
:* Learn several ways to '''exit''' your Matrix Linux Account session.
|- valign="top" style="padding-left:15px;"
|colspan="2" |'''Slides:'''<ul><li>Week 1 Lecture 1 Notes:<br> [[Mediahttps://github.com/ULI101/slides/raw/main/ULI101-Week11.1.pdf | PDF]] | [https://matrixgithub.senecacollege.cacom/ULI101/slides/~chris.johnsonraw/ULI101main/ULI101-Week11.1.pptx PPTX]<br/li><li>'''Week 1 Lecture 2 Notes:<br>''' [[Mediahttps://github.com/ULI101/slides/raw/main/ULI101-Week11.2.pdf | PDF]] | [https://matrixgithub.senecacollege.cacom/~jason.carmanULI101/slides/raw/main/ULI101-Week11.2.pptx PPTX] <br>'''</li></ul>'''Tutorials:'''<ul><li>[https://wiki.cdot.senecacollege.ca/wiki/Tutorial_1:_Using_Your_Matrix_Server_Account#INVESTIGATION_1:_ACCESSING_YOUR_MATRIX_LINUX_ACCOUNT HOWTO: Access Your Matrix Account]</li><li>[http://czegel.com/seneca/uli101/lectures/Lecture1.html Les Czegel's Week 1 Notes (HTML)]</li></ul>'''Windows SSH client Software:'''<ul><li>[http://www.sfsu.edu/ftp/win/ssh/SSHSecureShellClient-3.2.9.exe SSH/SFTP]</li><li>[https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html Putty]</li><li>[https://www.bitvise.com/ssh-client-download Bitvise SSH Client]</li><li>[https://mobaxterm.mobatek.net/download-home-edition.html MovaXterm]</li></ul>
| style="padding-left:15px;" |'''Matrix Account Access:'''
*[https://ss64.com/bash/logout.html logout , exit]<br>
*[https://www.quora.com/What-is-the-difference-between-typing-Ctrl+C-and-Ctrl+D-in-the-Linux-terminal &lt;ctrl&gt;&lt;d&gt;]
*[http://man7.org/linux/man-pages/man1/passwd.1.html passwd]<br>
'''Command Line Editing:'''
*[https://www.ostechnix.com/list-useful-bash-keyboard-shortcuts/ Bash Shell Shortcut Keys]<br>
| style="padding-left:15px;"|'''General Linux Commands:'''
*[http://man7.org/linux/man-pages/man1/pwd.1.html pwd]<br>
*[http://man7.org/linux/man-pages/man1/cd.1p.html cd]<br>
|colspan="1" style="padding-left:15px;" width="30%"|'''Brauer Instructional Videos:'''<ul><li>[https://www.youtube.com/watch?v=L5RcOngDV_o Connecting to Matrix Using SSH Client, and Running UBUNTU Within Windows 10]<br><br></li><li>[https://www.youtube.com/watch?v=3wZmZOKLllk&list=PLU1b1f-2Oe90TuYfifnWulINjMv_Wr16N&index=2 Linux File System, Basic Navigation (ls, cd, pwd, tree), Absolute and Relative Paths]</li></ul>
|}
:* Issuing '''Linux commands'''
:* Becoming productive using the Linux '''command prompt''' ('''shell''')
:* Performing '''Linux Tutorials''' ('''11Weekly Tutorials x 2% = 22% of your final grade''')
:* Performing '''Linux Practice Questions'''
:* Performing '''Review Tutorial Questions''' ('''28 Sections x 1% = 8% of your final grade''')
===Connecting to the Seneca Student VPN===
[[Image:gp1.png|thumb|right|130px|'''Seneca Student VPN''' ]]
Seneca College is "rolling-out" additional measures to improve '''network security'''. One of these measures is to implement '''multi-factored authentication'''. As of '''September 2020''', all All Seneca College students are required to connect to the '''Seneca Student VPN''' in order to be able to connect to their '''Matrix''' Linux account.<br><br>''<b>Multi-factor authentication</b> is an electronic authentication method in which a computer user is granted access to a website or application only after successfully presenting two or more pieces of evidence (or factors) to an authentication mechanism: knowledge (something the user and only the user knows).'' Reference: https://en.wikipedia.org/wiki/Multi-factor_authentication<br><br>You should have received an email message (also available in course announcements) regarding how to setup your Smart Phone to connect and valid via the Seneca Student VPN. '''NOTE:''' If you haven't done this yet, please perform the steps provided in the following link:<br>https://students.senecacollege.ca/spaces/186/it-services/wiki/view/1025/student-vpn<br><br>
In the next investigation, you will learn how to '''connect''' to and '''login''' to your Matrix server account from a remote computer<br>such as your '''home desktop computer''', '''laptop''' or '''tablet''' computer.<br><br>
===Connecting to Your Matrix Account===
There are two basic methods to connecting to your Matrix account: [[Image:clicls-promptshell.png|thumb|right|80px100px|Connect to Matrix via'''ssh''' command]]:'''Method 1: Run ssh Command from command prompt:''' :After connecting to the '''Seneca Student VPN''', you can open a '''command terminal'''<br>in your '''Newer Windows 10''', '''Mac''' or '''Linux''' computer and issue the following command:<br><br><span style="color:blue;font-weight:bold;">ssh senecauserid@matrix.senecacollege.ca</span><br><br>[[Image:ssh-applicationmain-iconwindow.png|thumb|right|80px100px|Connect to Matrix via '''graphical''' SSH Program ]]:'''Method 2: Run graphical ssh program via MyApps in Seneca computer lab:''':If you are in a Seneca computer lab, you can use MyApps to run a '''graphical SSH application''' for your Windows machine. One advantage of using this method is that you are already at Seneca and are NOT required to connect to the student VPN.<br><br>'''NOTE:''' You instructor may show you how to run a graphic Linux VM in order to connect to your Matrix account (if interested, refer to the optional tutorial at the end of this semester).
<br><br><br>
=INVESTIGATION 1: ACCESSING YOUR MATRIX LINUX ACCOUNT=
<span style="color:red;">'''ATTENTION''': Effective '''May 9, 2022''' - this This online tutorial will be required to be completed by<br>'''Friday in week 2 by midnight''' to obtain a grade of '''2%''' towards this course</span><br><br>
In this section, you will learn how to access your Matrix Linux account by two different methods:
===METHOD 2: CONNECTING TO YOUR MATRIX ACCOUNT FROM SENECA COMPUTER LAB===
 
<span style="color:red;font-weight:bold;">NOTE: This section requires you have access to a Seneca computer lab on campus.<br>If you don't have access to a Seneca computer lab this semester, then you can skip this section</span><br><br>
You can also connect to your Matrix server account in the '''Seneca Computer lab via MyApps'''.<br><br>
# Start your workstation in your lab and login to your Seneca Windows account.<br><br>
# Make certain that the '''MyApps''' window is open. This window should have opened shortly after you logged into your Windows workstation. If the application windows is not open, click on the '''MyApps''' icon on the desktop to launch).<br><br>[[Image:ssh-main-window.png|thumb|right|150px|SSH Client Application Window ]]<span style="color:red;font-weight:bold;">NOTE: You may be required to validate in order to use MyApps correctly. If you see near the top of the screen "requires validation", then click on that area to connect to validate.</span><br><br>
# Click on the '''Search Apps''' area located in the top right corner of the MyApps window and type the word: <span style="color:blue;font-weight:bold">ssh</span><br><br>
# Several SSH applications will appear. <br><br>'''NOTE:''' All of these applications allow you to connect to your Matrix account.<br>We will use the application called '''SSH Secure Shell Client''' for this practice tutorial.<br><br>
# Press the letter <span style="font-family:courier;color:blue;font-weight:bold">q</span> to exit the man command.<br><br>
# Issue the following Linux command to get help with the ls command: <span style="font-family:courier;color:blue;font-weight:bold">man ls</span><br><br>
# Navigate through the man utility for the '''ls''' Linux command and note the '''option letters''' that correspond to the following descriptions:<br><ul><li>"'''use a long lising listing format'''"</li><li>"'''do not ignore entries starting with .'''" (i.e. hidden files)</li><li>"'''sort by file size'''"</li><li>"'''append indicator (one of */=>&|) to entries'''" (i.e. type of file)</li></ul><br>
# Exit the man utility for the ''ls'' command.<br><br>
# Issue the '''ls''' command for <u>each</u> of those option letters you noted in '''step 45''' to see how this command differs for each option.<br><br>'''NOTE:''' The '''man''' utility can be used with the '''-k''' option to help list Linux commands that match a text pattern<br>that is contained within the help screen for a Linux command.<br><br>
# '''Pipeline commands''' can be used to filter-out unnecessary output. In the next command that you will be issuing,<br>the output from the '''man -k''' command, is sent into the '''grep''' command to ''filter'' (i.e. ''trap'') only output that matches the pattern "8"<br>(The number "8" refers to the category of type of command - in this case, administration commands).<br><br>We will learn more about pipeline commands later in this course.<br><br>
# Issue the following Linux pipeline command: <span style="font-family:courier;color:blue;font-weight:bold">man -k user | grep 8</span><br><br>How does this ''pipeline command'' make it easier to obtain information regarding man command?<br><br>
# If you wish to change your password, you can change it by issuing the command: <span style="font-family:courier;color:blue;font-weight:bold">passwd</span><br>What option for the passwd command can be used to change user info (such as name)?<br>'''Hint:''' use the '''man''' command for '''passwd'''.<br><br># Press the letter <span style="font-family:courier;color:blue;font-weight:bold">q</span> to exit the man command.<br><br>'''NOTE:''' Do '''NOT''' run the ''passwd'' command. Unique for this college, your Matrix password<br>is changed automatically when you change your '''myseneca''' password.<br><br><br># Press the letter <span style="font-family:courier;color:blue;font-weight:bold">q</span> to exit the man command.<br><br>You will now learn how to perform '''command line editing'''<br>to correct syntax errors while typing Linux commands PRIOR to pressing the ENTER key.<br><br>
'''Command Line Editing'''
'''Running a Shell Script to Check Student Online Tutorial Participation'''
Some professors Professors will require students successfully perform these online tutorials for marks (within a deadline). <br>In order to confirm that you successfully performed a tutorial, you will be required to run a program<br>(or in later tutorials, several programs) to prove that you successfully completed tasks in a tutorialand get marks.
These programs (known as Shell Scripts) will check your work and offer feedback if you made mistakes, so you can make corrections.<br>Making corrections (i.e. troubleshooting) and re-running these checking programs until you are successful will help students<br>gain "hands-on" experience as well as "trouble-shooting experience.
 
Students whose professors do NOT assign marks for these online tutorials are encouraged to perform them for "hands-on" practice. The checking program for this tutorial is just showing proof that you were able to connect to your Matrix account from your home computer.
simulate a quiz:
https://ictgithub.senecacollege.cacom/ULI101/labs/~murray.saulraw/uli101main/uli101_week1_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).
# What character(s) are used to '''separate''' commands and arguments?
# Create a '''table''' listing each Linux command, useful options that were mentioned in this tutorial for the following Linux commands:<br>'''pwd''' , '''cd''' , '''ls''' , '''cal''' , '''date''' , '''who''' , '''w''' , '''whoami''' , '''who am I''' , '''clear'''
 
_________________________________________________________________________________
 
Author: Murray Saul
 
License: LGPL version 3
Link: https://www.gnu.org/licenses/lgpl.html
 
_________________________________________________________________________________
 
[[Category:ULI101]]

Navigation menu