Everyone enrolled in the class has a virtual server running the Debian operating system. For now, the servers are only visible on the campus network. This means you will have to VPN to the campus network or use a campus machine to connect to the servers.
Each of you has root access on your server. You are responsible for the machines and must conform to the appropriate campus policies.
You can use any SSH client:
On Windows and Mac OS, you can follow IT's instructions: https://help.missouri.edu/portal/app/portlets/toolbar/toolbarsearch.jsp?TBQueryText=vpn
On Ubuntu (or other Gnome desktops) you can connect to the campus network TigerNet via VPN in order to access your virtual server behind the firewall. This will allow you, for example, to point your home computer's browser at your virtual server's web servers and to connect directly to your virtual server via SSH. Follow these steps to set up VPN:
Use APT to upgrade and install software:
One way to keep your servers running even after you log out is to use the nohup ("no hang up") command:
Make sure you have a way to kill your process tho, or it might continue to run forever. One way to stop a process is with the killall command:
WARNING: This will stop all of your Python scripts, so be careful when you are supposed to have multiple servers running continuously.
WARNING: This isn't recommended anymore (too many people have messed up their VMs in the past), but you are welcome to try if you are very careful!
With Debian it is easy to make a script run automatically when the server starts up or shuts down. When the system starts up, it will run your script with the argument 'start' and the argument 'stop' when it shuts down. Your script should check for these arguments and launch a background process. For example:
Make sure your script works and is runnable. Copy your script to /etc/init/myscript.sh and enable it with:
Once installed, you can start and stop your server like this:
Make sure both start and stop work without hanging, or your system may not be able to start-up or shut-down properly.