Changes

Jump to: navigation, search

Interest Topic: Graphical Linux via a Virtual Machine (VM)

14 bytes removed, 18:54, 29 August 2022
INVESTIGATION 2: USING THE GRAPHICAL KNOPPIX VM
<br><br>
=INVESTIGATION 2: USING THE GRAPHICAL KNOPPIX UBUNTU VM =
Let's learn to run ''open-source'' applications on your graphical Knoppix Ubuntu Linux Live distribution.<br>But first, let's '''download''' and run a '''shell script''' that will display '''dialog boxes''' in your graphical Knoppix Ubuntu VM.
'''Perform the Following Steps:'''
# Make certain that you are running your Knoppix Ubuntu Linux Live virtual Machine<br>(refer to '''step #7''' in [https://wiki.cdot.senecacollege.ca/wiki/Tutorial7Interest_Topic:_Installing_Linux_/_Live_Linux_/_Virtualization_Graphical_Linux_via_a_Virtual_Machine_(VM)#INVESTIGATION_1:_BOOTING_KNOPPIX__BOOTING_UBUNTU_.28LIVE_LINUX.29_VIA_VIRTUALBOX INVESTIGATION 1] )<br><br>Although you will be learning to create and run '''shell scripts''' (near the end of this course)<br>in your '''Matrix''' server , those scripts will only run in a '''command-line''' environment.<br><br>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|250px|Graphical '''input dialog box'''.]]# Make certain that you are in a '''KonsoleTerminal''' ''terminal window''<br>(but '''NOT''' connected to your Matrix account).<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/~murrayjason.saulcarman/tutorials/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>
# 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>
# In the dialog box, click to select the '''/home/knoppixubuntu''' 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: <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>

Navigation menu