13,420
edits
Changes
→INVESTIGATION 1: BOOTING KNOPPIX (LIVE LINUX) VIA VIRTUALBOX
# Use a '''text editor''' (''nano'' or ''vi'') to create a file in your current directory called '''myvm.txt''' and enter the following text displayed below:<br><br><span style="font-family:courier;font-weight:bold">This is line 1<br>This is line 2<br>This is line 3</span><br><br>
# '''Save''' editing changes and '''exit''' the text editor.<br><br>
# 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 file 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>Although you will be learning to create and run Bash shell scripts (near the end of this course) to <br>'''automate''' tasks Matrix course (near the end of this course), those scripts will only run in a '''command-line''' environment.<br><br>But since you are running the <u>graphical</u> '''Knoppix''' Linux distribution on your computer, you can run scripts graphically (including the use of dialog boxes input, output, etc.).<br><br>
# 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 week7-demo-1 has been downloaded to your current directory.<br><br>