CSU has a variety of Linux servers such as
grail which may be used for C programming and Linux-based assignments.
For guides on specific Linux software, refer to the following pages:
If your instructor has created an account for you, it will have the following default credentials:
For example, John Doeseph with student ID 1234567 would have the username jodoeseph and password 1234567D.
SSH/SCP client software is required to connect to
grail. The following software clients are popular on Windows:
putty.exe(recommended on the CSU lab computers)
Enter your credentials (described above) into either of these programs.
On Mac/Linux, you should avoid using the above software. Instead, open a terminal and type the following command to connect to
jodoeseph with your username described above, then pressing enter:
Similarly, you can connect to
grail by using
grail in place of
spirit in the last command:
Enter your password when requested. Be aware that your password will be invisible while typing, so don't panic if you don't see any output.
You'll know your login is successful if green text appears showing your username and hostname in the following form:
jodoeseph@spirit:~$. You can then run Linux commands on the system such as
gcc, and more. We encourage you to research other common Linux commands.
The following steps demonstrate how to write, compile, and execute a C program on Linux:
nano test.c(then pressing enter)
Ctrl + oto save the file (then press enter to confirm)
Ctrl + xto exit the text editor
gcc test.c -o test.outto compile your program into an executable file named
gcc test.c, then
./a.outto execute the program)