Changes

Jump to: navigation, search

Tutorial7: Installing Linux / Live Linux / Virtualization

1,871 bytes added, 12:53, 13 February 2021
INVESTIGATION 1: BOOTING KNOPPIX (LIVE LINUX) VIA VIRTUALBOX
# '''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 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 to '''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.).# After 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;">https://matrix.senecacollege.ca/~murray.saul/week7-demo-1</span><br><br># Issue the ls command to confirm that the file week7-demo-1 has been downloaded to your checking current directory.<br><br># Issue the following to run this shell script :<br><span style="color:blue;font-weight:bold;font-family:courier;">bash week7-demo-1</span><br><br>What did you notice?<br><br># Issue the following Linux command:<span style="color:blue;font-weight:bold;font-family:courier;">ls -l week7-demo-1</span><br><br>Notice there are NO '''execute''' permissions. That is OKwhy we have to issue the bash command prior to the shell script name to force it to run in the bash shell. Let's '''<u>add</u> execute permissions''' so we can run this command by name (without using the '''bash''' command).<br><br># Issue the following command to add execute permissions for everyone for this file:<br><span style="color:blue;font-weight:bold;font-family:courier;">chmod +x week7-demo-1</span><br><br>FYI: This method is a quick method of adding execute permissions for owner, issue same group members and others.<br><br># Issue the '''ls -l''' command for this file to confirm execution permissions were properly added.<br><br># Issue the following: <span style="color:blue;font-weight:bold;font-family:courier;">./week7-demo-1</span><br><br>Did the shell script run?<br><br># Issue the following command to terminate your Matrix session: <span style="color:blue;font-weight:bold;font-family:courier;">exit</span><br><br>
# Issue the Linux command: <span style="color:blue;font-weight:bold;font-family:courier;">exit</span> to close the Konsole window.<br><br>
# Use the ''Knoppix start menu'' and search for a menu item in oder to launch the '''firefox''' web-browser.<br><br>
13,420
edits

Navigation menu