Changes

Jump to: navigation, search
no edit summary
::'''Scripting for Lab2'''. Lab 2 could be modified to have students create or be exposed to shell scripts with use the '''virtual shell''' ('''virsh''') to '''display in zenity available VMS in checkbox form to select and launch'''. Likewise, script can be launched to '''display in zenity VMs that are currently running in order to shutdown''' (perhaps in same fashion as a zenity dialog box).
 
 
{|cellpadding="15" width="100%"
|-
|<blockquote>'''Script #1 :Start/Stop VMs (text-based):'''<br>[ [https://scs.senecac.on.ca/~murray.saul/vm-start-text.bash vm-start-text.bash] ] [ ]<br><br>'''Scripting Skills:'''<blockquote><ul><li>'''if''' statement</li><li>'''for''' loop</li><li>'''Command Substitution'''</li><li>Advanced '''awk'''</li><li>'''positional parameters'''</li><li>'''sed'''</li><li>'''IO Stream vs Graphical Interaction''' (eg. zenity)</li><li>'''Scripting Samples (View and adapt)'''- don't "re-invent the wheel completely")</li><li>'''virsh''' command</li></ul></blockquote><br><br>'''Practical Consideration for scripting in lab2:<br><blockquote>''' Students use '''wget''' to download existing shell script and run it to see what happens. Students are '''encouraged to view contents of more advanced shell script(s)''', to see where the commands are being used (from previous shell script), but are '''not required to understand more complex elements''' of these shell scripts.<br><br></blockquote>
|[[Image:lab2_text_1.png|thumb|left|175px|When executed as '''root''' or using '''sudo''' command, provides VM status and opportunity to '''start''' VMs in a text-based interface]]
|[[Image:lab2-script-2.png|thumb|left|175px|When executed as '''root''' or using '''sudo''' command, provides VM status and opportunity to stop '''running''' VMs]]
|}
{|cellpadding="15" width="100%"
13,420
edits

Navigation menu