spirit
and grail
CSU has a variety of Linux servers such as spirit
and 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 spirit
and 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 spirit
, replacing jodoeseph
with your username described above, then pressing enter:
ssh jodoeseph@spirit.eecs.csuohio.edu
Similarly, you can connect to grail
by using grail
in place of spirit
in the last command:
ssh jodoeseph@grail.eecs.csuohio.edu
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 ls
, pwd
, nano
, gcc
, and more. We encourage you to research other common Linux commands.
You can also transfer files between your computer and spirit
/grail
using Bitvise (Windows only) or FileZilla (supported on all platforms).
The following steps demonstrate how to write, compile, and execute a C program on Linux:
nano test.c
(then pressing enter)Ctrl + o
to save the file (then press enter to confirm)Ctrl + x
to exit the text editorgcc test.c -o test.out
to compile your program into an executable file named test.out
./test.out
gcc test.c
, then ./a.out
to execute the program)