Changes

Jump to: navigation, search

Tutorial7: Installing Linux / Live Linux / Virtualization

No change in size, 15:50, 15 February 2021
INVESTIGATION 2: USING THE GRAPHICAL KNOPPIX VM
# In the dialog box, click to select the '''/home/knoppix''' directory and click '''OK'''.<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 for this shell script file.<br>That is why we have to issue the '''bash''' command followed by<br>the '''shell script file pathname''' (as an argument) to run the shell script.<br><br>Let's '''<u>add</u> execute permissions''' so we can run this command by name<br>(i.e. without using the '''bash''' command).<br><br>[[Image:output-dialog.png|thumb|right|250px|Graphical '''output dialog box'''.]]
# Issue the following command to '''add execute permissions''' for everyone <br>for the '''week7-demo-1''' 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<br>the '''owner''', '''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>'''NOTE:''' The shell script uses the '''zenity''' command to create dialog boxes. Although you may need to install this application in other Linux distributions, it is automatically included with the Knoppix distribution. We don't learn about the ''zenity'' command in this course, but here is a link to some simple examples using this command in case you are interested: [https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=&ved=2ahUKEwiKztuinuruAhXwm-AKHSGnCq8QFjAAegQIBBAC&url=https%3A%2F%2Fwiki.cdot.senecacollege.ca%2Fwiki%2FHow_to_Use_Zenity&usg=AOvVaw3pDy1Afw8Vw9-09cs5zE6Y How to Use Zenity]<br><br>
13,420
edits

Navigation menu