Professional Documents
Culture Documents
Objective:
Learn how to use the PuTTY application
Learn about the basic UNIX commands
Learn about the basics of using a code editor
Learn about the basics of using a compiler to run a program
Learn how to submit your code
The main task of the compiler is to compile code to make sure that there are no syntax error and to
produce machine code (a numeric representation for the computer to understand). It also includes all
of the essential libraries/packages necessary for successful compilations.
It is not required for you to install the GNU compiler on your personal computers because they are
already installed on the Linux-based computers which is located in CS213.
To get access to those machines, the program called PuTTY will be used for remote access, thus
giving you the capability to use the GNU compilers. Note that most of the computers on MST campus
have PuTTY installed on them.
Now find PuTTY in the start menu and launch the application:
1. Launch the PuTTY application.
2. Select any pre-configured hostnames.
3. Provide your MST username and password for the remote connection.
Useful Links:
Download PuTTY: http://www.putty.org/
o If you choose to download putty on your personal computers, then you should do the
following for a proper configurations:
1. Putty Connection Hostname: rc##xcs213.managed.mst.edu
2. Note: ## is a number between 01 and 40
3. Enter um-ad\your_mst_username and password
If you are trying to connect to the virtual machines outside of the MST campus network, then you
must connect via VPN first. See the following resources for using VPN and accessing MST student-
drive network data from personal computers (outside of the MST campus network).
o Connect to Campus Network via VPN:
https://it.mst.edu/services/virtual-private-network/virtual-private-network-tutorials/
o Access Network Data from Personal Computers:
https://it.mst.edu/services/file-storage/network-drives/
What If You Have a MAC or Linux Computer?
If you have a computer running MAC OS or linux, it is not necessary for you to install Putty. The
alternative is to connect to the virtual linux machines via the terminal using the ssh (secure shell
connection) command.
Simply open up the terminal and type ssh rc##xcs213.managed.mst.edu (replace ## with a number
between 01 and 40). Then, input your campus username and password to complete the connection.
Linux is an operating system kernel (a computer program that is the core of a computer’s
operating system) and it is a close-relative of UNIX.
The Linux environment’s main part is its shell.
o A shell is a program (CLI-command line interface) that receives commands from the
user and gives it to the operating system to process.
o This is critically different from its counterpart—the GUI (graphical user
interface)/desktop environment--in which people are most familiar with.
Some of the most common and useful commands are listed below to be used in a Linux shell
environment, and they will be used the most frequently throughout your (CS 1580) lab
assignments and (CS 1570) homework assignments.
Feel free to explore more commands in the following example tutorial:
https://maker.pro/linux/tutorial/basic-linux-commands-for-beginners
#include <iostream>
using namespace std;
int main()
{
cout << "Hello, world!" << endl;
cout << "My Name is … !" << endl; // Insert your name at
where … is
return 0;
}