Resources
Assignments:
- Homeworks, labs, and Kattis competitions should all be done individually
- The only assignment where working in a group is allowed is the group assignment
- Homeworks, labs, and group assignments should all be submitted to the server under the root directory
- The name of your homework, lab, or group assignment folder should be all lowercase
Server Information:
- The server for COSC 2436 is 2436.cs.uh.edu
- To learn how to connect to the Linux server, use this tutorial by Zankar Rashia
- To learn how to install and use SSH on Windows, watch this YouTube video by Christopher Holley
- To learn how to install and use SSH on Linux, check out this tutorial
- If you are new to Linux, you can get a learn more by going over this tutorial
- To get familiar with some of the frequently used linux commands you can check out this document or the table below
Connecting to the Server for ChromeBook
If you have a Linux based Chromebook you can follow the steps below to download FileZilla and get connected to the server.
If you have a chromebook, you should have an application called Terminal, which should work like putty. Once you open that, you have a Linux Instance called Penguin that you can open. You can check out this Chrome page for more information.
From there you can then enter this command to download filezilla,
$sudo apt-get update
$sudo apt-get install filezilla
then after that you will have enter your username to connect to the server in Terminal
with the following command,
$sudo ssh coscxxxx@2436@cs.uh.edu
please note that you must be either connected to the UH VPN or the UH Network to access this server.
Frequently Used Linux Commands
Command | Description |
ssh username@2436.cs.uh.edu | After you type in this command, it will ask for your password. Your password is your PSID + Capital Initial Last Name + Capital Initial First Name. For example, if the name was John Doe and the PSID was 1234567, the password would be 1234567DJ. |
pwd | This command is called "print working directory" and this command will print the pathname of your current working directory. |
scp -r file_or_folder username@2436.cs.uh.edu:pathname | This command is a secure copy which uploads a file or folder from your computer onto the server. *Note: the "file_or_folder" that comes after "scp -r " is the name of the file/folder that you want to upload from your computer onto the server. |
ls | This command will print all of the files/folders in your current directory. |
rm -rf file_or_folder | This command will remove the "file_or_folder" from your current directory. |
cat | This command will show the contents inside a file. For example, to show the contents inside "input1.txt", you would type the command "cat input1.txt". |
cd | This command will change the directory you want to view. If you wanted to view the contents in your hw1 folder, you would type the command "cd hw1". |
cd ~ | This command will take you back to the home directory. |
mv file folder | This command will move the "file" to the "folder". If you wanted to move "1.txt" to the folder "hw2", you would do "mv 1.txt hw2". |
cp | This command can be used to copy the contents from one file to another file. For example, to copy the contents of "1.txt" to "2.txt" you would type in the command "cp 1.txt 2.txt" |
nano main.cpp | This command will allow you to edit the file "main.cpp". |
chmod +rx grade.sh | This command will make "grade.sh" readable and executable. |