13,420
edits
Changes
no edit summary
# Confirm that you created this file and confirm that the contents of this file are correct.<br><br>Let's run a <b>shell script</b> to check that you created the '''myvm.txt''' file (with correct fil e contents) in your home directory.<br><br>
#Enter the following command: <span style="color:blue;font-weight:bold;font-family:courier;">bash /home/murray.saul/scripts/week7-check-1</span><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> : In the next investigation, you will learn to work in a graphical Linux environment and run several common open-source application. Also, will perform operations that you could NOT perform in your Matrix accounts such as installing software or running a shell script that displays graphical dialog boxes for user input and output display. =INVESTIGATION 2: USING THE GRAPHICAL KNOPPIX LIVE ENVIRONMENT = Let's learn to run open-source applications and perform an administrative task (i.e. installing software) in your graphical Knoppix Linux Live distribution. '''Perform the Following Steps:''' # Make certain that you are running your Knoppix Linux Live virtual Machine<br>(refer to step #7 in INVESTIGATION 1)<br><br>Although you will be learning to create and run '''shell scripts''' (near the end of this course)<br>to '''automate''' tasks Matrix course , those scripts will only run in a '''command-line''' environment.<br><br>On the other hand, 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|200px|Graphical '''input dialog box'''.]]
# 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://matrix.senecacollege.ca/~murray.saul/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>