Open main menu

CDOT Wiki β

Changes

OPS435 Online Lab1

69 bytes removed, 14:54, 6 May 2022
Investigation 5 - exploring on how to get Python to do maths
[[Category:rchan]][[Category:OPS435-Online]]
'''Introduction to git, github.com, and Python - Under Construction - Not finalized yet.'''
= Lab Objectives =
:* Using the "git clone" command to clone a repository into a new directory
:* Open a pull request, and
:* Merge your pull request
: Please make the following <font color='red'>changes </font> when following the guide::* name the new repository using your <b><u>Seneca user name </u></b> instead of "hello-world".
:* add your full name, and OPS435 section to the README file, do not post any other personal information there.
pwd #confirm that you are in the right directory
ls -l lab1a.py #confirm that you have the directory for you github repo, the files gitlog.txt and repo_tree.txt
ls CheckLab1.py || wget 'https://ictgithub.senecacollege.cacom/~raymond.chanops435/ops435lab1-template/labsblob/LabCheckScriptsmaster/CheckLab1.py?raw=true' -O CheckLab1.py
python3 ./CheckLab1.py -f -v lab0a
</source>
== Part I - Python Versions on Matrix ==
:* You can access the Python Interpreter on Matrix from a Linux machine or a Windows 10 machine.
=== Login to matrix.senecacollege.ca from a CentOS 7 machine ===
:* To login to matrix.senecacollege.ca must must have a active Seneca user account.
:* The following is a screen shot showing the login from a CentOS Linux (host or vm) system with an active Seneca user name: <br /><br />[[image:centos_ssh.png|Ssh to matrix from Linux]]
=== Login to matrix.senecacollege.ca from a Windows 10 machine ===
:* Please follow the instruction at [https://inside.senecacollege.ca/its/services/vpn/studentvpn.html Seneca Student VPN] to download and install the GlobalProtect VPN client and connect to the Seneca VPN to your Windows Machine.
:* Login to matrix.senecacollege.ca with your Seneca user name from Windows 10's run box.<br /><br />[[image:window10_ssh.png|ssh to matrix from Windows 10]]
pwd #confirm that you are in the right directory
ls -l ~/ops435/ #confirm that you have create the directory structure under ~/ops435
ls CheckLab1.py || wget 'https://ictgithub.senecacollege.cacom/~raymond.chanops435/ops435lab1-template/labsblob/LabCheckScriptsmaster/CheckLab1.py?raw=true' -O CheckLab1.py
python3 ./CheckLab1.py -f -v lab0b
</source>
pwd #confirm that you are in the right directory
ls lab1a.py #confirm that you have the lab1a.py script in your directory
ls CheckLab1.py || wget 'https://ictgithub.senecacollege.cacom/~raymond.chanops435/ops435lab1-template/labsblob/LabCheckScriptsmaster/CheckLab1.py?raw=true' -O CheckLab1.py
python3 ./CheckLab1.py -f -v lab1a
</source>
cd ~/ops435/lab1/
pwd #confirm that you are in the right directory
ls CheckLab1.py || wget 'https://ictgithub.senecacollege.cacom/~raymond.chanops435/ops435lab1-template/labsblob/LabCheckScriptsmaster/CheckLab1.py?raw=true' -O CheckLab1.py
python3 ./CheckLab1.py -f -v lab1c
</source></li>
cd ~/ops435/lab1/
pwd #confirm that you are in the right directory
ls CheckLab1.py || wget 'https://ictgithub.senecacollege.cacom/ops435/~raymond.chanlab1-template/ops435blob/master/LabCheckScripts/CheckLab1.py?raw=true' -O CheckLab1.py
python3 ./CheckLab1.py -f -v lab1d
</source>Before moving on to the next step make sure you identify any and all errors in "lab1d.py".<br><br></li>
:'''Run the CheckLab1.py script and capture the result'''
<source>python3 ./CheckLab1.py -f -v &> lab1_[seneca_id].txt</source>
 
: Submit the following files individually to Blackboard:
::<span style="color:green;font-size:1.5em;">&#x2713;</span> <code>lab1_[seneca_id].txt</code>