Open main menu

CDOT Wiki β

Changes

Tutorial2: Unix / Linux File Management

5,109 bytes removed, 08:36, 6 January 2020
INVESTIGATION 1: MANAGING DIRECTORy FILES
  In the next section, you will learn how to connect to your Matrix server account from a different computer<br>(for example: your laptop computer at Seneca College or your computer at home).<br><br> ===Part 2: Access your Matrix Account From your own computer within or outside the Seneca College Network === You will learn how to connect to your Matrix Linux account from your own computer whether it be a '''laptop''' computer or your '''home computer'''. This would be useful if you want to access your Matrix Linux account on your own computer to practice Linux commands or perform your assignment outside of the scheduled class-time. We will be learning to use a different SSH application called "'''Putty'''". In this way, you will be exposed to a few SSH applications to help you decide which SSH application you are most comfortable. :'''Perform the following steps:'''# Click on the following link to download the Putty executable file:<br>http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe[[Image:putty-application-icon.png|thumb|right|70px|Putty Application Icon ]]<br><br>'''NOTE:''' If you are interested in downloading and installing other SSH applications (including the<br>SSH Secure Shell Client application used in part 1), refer to week 1 links in the ULI101 Weekly Schedule.<br><br># The putty executable file does <u>not</u> install the Putty program: Instead, run this program, by opening a file manager, moving to the '''Downloads''' directory and double-clicking on the '''putty.exe''' file.<br><br>[[Image:putty-configuration-window.png|thumb|right|250px|Putty Configuration Window ]]# The Putty configuration window will appear.<br><br>You can '''configure''' the SSH application to adjust elements such as the '''window size''' and '''text font type''' and text '''font size'''. We will be showing you how to configure your SSH Secure Shell Client, but the other applications can allow you to configure their settings.<br><br># To change the size of your shell window, click '''Window'''<br><br># Change the '''rows''' and '''columns''' to larger values.<br><br># To change the font size, under the ''Window'' section, click '''Appearance'''<br><br># In the left window under '''Font Settings''', click the '''Change''' button.<br><br># Select a larger ''font size'' and click '''Apply'''<br><br># You will return to the Putty Configuration window.<br><br># To login to your Matrix Linux account, click on '''Sessions'''<br><br># In the Host Name sectionand enter the text: <span style="color:blue;font-weight:bold">matrix</span><br><br>'''NOTE:''' You can use the hostname '''matrix''' since you are located <u>inside</u> Seneca's network.<br>If you where located <u>outside</u> Seneca's network, then you would need to enter the full domain name: '''matrix.senecac.on.ca'''<br><br>[[Image:putty-login-window.png|thumb|right|350px|Login to Matrix Server ]]# Click on the '''Open''' button and the Putty session window should appear.<br><br># Enter your '''username''' when prompted.<br><br># Enter your '''password''' when prompted.<br><br>[[Image:putty-public-key.png|thumb|right|250px|Dialog Box to Share Public Key on Remote Server ]]# When connecting securely from the putty application for the '''first time''', a dialog box will appear to share a "public key" with your Matrix account in order to make your interaction between your workstation and the remote Linux server secure within the network (i.e. encrypted to prevent unauthorized access by other users)<br><br># Click the '''Yes''' button to share your public key.<br><br>'''NOTE:''' If you encounter an '''error message''', this can occur for several reasons:<ol><li>You mis-spelled the '''name of the server'''</li><li>You mis-spelled your Matrix '''username''' (same username that you connect to my.senecacollege.ca)</li><li>You have '''CAPS LOCK''' on by mistake (your username should be '''lowercase''' only).</li><li>You mis-spelled your '''password''' (same password that you connect to my.senecacollege.ca)</li></ol><br>If you encountered an error logging in, issue the same steps to connect to your Matrix account,<br>but carefully check your server name, username and your password. If you continue to experience the same problems,<br>you can go to the computer help desk in the learning commons to get help.<br><br>[[Image:putty-shell-window.png|thumb|right|250px|Putty Shell Command Line Interface ]]# If you followed the login sequence correctly, the Putty Shell window will appear where you can issue Linux commands.<br><br># To exit your Matrix session, type the following command and press ENTER: <span style="color:blue;font-weight:bold">exit</span><br><br>'''NOTE:''' You should notice that the Putty application window will disappear.<br><br># It is recommended to repeat these steps with connecting to your Matrix account from a Seneca lab workstation until you become comfortable with the process.<br><br> In the next investigation, you will learn how to issue Linux commands and how to setup and perform the first two sections of the online ULI101 assignment #1.<br><br>
=INVESTIGATION 2: USING THE LINUX SHELL / ONLINE ASSIGNMENTS =
13,420
edits