Open main menu

CDOT Wiki β

Changes

OPS435 Online Lab1

661 bytes removed, 14:54, 6 May 2022
Investigation 5 - exploring on how to get Python to do maths
== 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 ===
:<font color='red'>This option won't work after September 1, 2020 as matrix.senecacollege.ca had been moved under Seneca's VPN. The latest version of the openconnect client is need to connect to the Seneca VPN. We are working on the instruction on how to do that. In the mean time, please use the Windows 10 as described below to connect to matrix.</font>
:* To login to matrix.senecacollege.ca you 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 ===
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>