Changes

Jump to: navigation, search

Tutorial 1: Using Your Matrix Server Account

1,013 bytes added, 06:50, 27 June 2022
no edit summary
:* 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://matrix.senecacollegegithub.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:'''
===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>
===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>
# 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 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]]
13,420
edits

Navigation menu