Changes

Jump to: navigation, search

Tutorial2: Unix / Linux File Management

7,829 bytes removed, 09:36, 6 January 2020
INVESTIGATION 1: MANAGING DIRECTORy FILES
<br>
In this section, you will learn how to access your Matrix Linux account by two different methods:x
===Part 1:* From a <u>workstation<Creating /u> '''within''' a '''Seneca College lab'''Removing Directories ===:* From your <u>own</u> computer '''within''' or '''outside''' '''Seneca College''' <br><br>x
===Part 1: Access your Matrix Account from a Seneca College Lab ===
[[Image:apps-anywhere-main-window.png|thumb|right|250px|'''MyApps''' ('''AppsAnywhere''') Main Window ]]
You will learn how to connect to your Matrix Linux account from a workstation in your computer labs at Seneca college.
This would be useful if you do not have a notebook computer and are required to use one of the workstations available in your Seneca computer lab. '''MyAppsPerform the Following Steps:''' ('''AppsAnywhere''') is an application streaming service that lets you install software on any Seneca PC on demand. Any software application on the MyApps menu can be used on computers in classrooms, labs, and the Computing Commons. Reference: https://inside.senecacollege.ca/its/software/myapps/
# x
You will now use MyApps on your Windows workstation in your Seneca lab room to launch an application<br>to allow you to connect and login to your Matrix server account.[[Image===Part 2:apps-anywhere.png|thumb|right|250px|Several SSH applications will appear. We will use the application called '''SSH Client''' for this practice tutorial. ]]Creating / Copying / Moving / Removing Files ===
x<br><br>
'''Perform the Following Steps:'''
# Start your workstation in your lab and login to your Seneca Windows account.x<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 ]]# 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># Launch the '''SSH Secure Shell Client''' application icon to launch this program.<br><br>[[Image:quick-connect-window.png|thumb|right|150px|Quick Connect Dialog Box ]]'''NOTE:''' Prior to launching the application, you can add this to your '''favourites''' which will make it faster<br>to access this application in the future.<br><br> # The main SSH Client window will appear. Click on the '''Quick Connect''' button.<br><br>'''NOTE:''' The Connect dialog box allows the user to specify the '''server name''' and your '''account name'''<br>to allow you to connect to the server.<br><br># Click on the textbox labelled Hostnanme and 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:share-public-key.png|thumb|right|150px|Dialog Box to Share Public Key on Remote Server ]]# When connecting securely 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>'''FYI:''' To make communications over a network secure, a computer generates '''two keys''': a '''private key''' that is kept on the computer, and a '''public key''', which can be shared with other computers. Transmissions from your computer uses the private key to encrypt (scramble) transmission to the remote computer, which in turn, uses the public key to decrypt (unscramble) the transmission. Likewise, the remote computer uses the public key to encrypt (scramble) transmissions and your computer uses the private key to decrypt (unscramble) those transmissions.<br><br>[[Image:ssh-password-prompt.png|thumb|right|150px|Password Dialog Box ]]# Click the '''Yes''' button to share your public key.<br><br># Next, a dialog box will appear prompting you for your Matrix account password in order to gain entry to your Matrix account. Your Matrix password is identical to your Seneca password. As you type the password, the text will be blocked-out or hidden to prevent others from viewing the screen to obtain your password[[Image:ssh-authentication-response.png|thumb|right|150px|Authentication Response Dialog Box ]]<br><br># Enter your password and click '''OK''' or press '''ENTER'''<br><br>[[Image:ssh-login-error.png|thumb|right|150px|SSH Login Error ]]# Click '''OK''' or press '''ENTER''' at the '''Authentication Response''' dialog box.<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:ssh-shell-window.png|thumb|right|150px|Matrix Shell Command Line Interface ]]#If you entered your password correctly, the main SSH Linux shell should appear where you enter Linux commands.<br><br>The '''Matrix''' server has been configured to allow users to '''only interact with the Linux OS by issuing commands'''. There are various reasons for this, but the main 2 reasons are to '''force students to learn how to issue Linux commands''' as well as '''limitations to remote access to a graphical Linux server''' due to large number of users (students).<br><br>Later in the course, your instructor may demonstrate other ways of accessing '''graphical versions of Linux''', and how to launch a shell terminal.<br><br>[[Image:ssh-settings-window.png|thumb|right|150px|SSH Settings Dialog Box ]]
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>
'''Perform the Following Steps:'''
# Click on the '''Edit''' menu item, and then select '''Settings''' in the Edit drop-down menu.<br><br>
# To change the size of your shell window, under the ''Global Settings'' section, click '''Appearance'''<br><br>
# Change the ''window size'' both horizontal and vertical to larger values.<br><br>
# To change the font size, under the ''Global Settings'' section, click '''Font'''<br><br>
# Select a larger ''font size'' and click '''OK'''<br><br>
# You now should notice that you have customized your SSH shell terminal. You can use the settings screen to also change your background and text colours if you are interested in doing so.<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 colour of the text changes slightly when disconnected and you are unable to issue Linux commands from that window.<br><br>
# After you have disconnected from your account, close the SSH Secure Shell Client application window.<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 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>
13,420
edits

Navigation menu