A Short Guide to code01.fit.edu
An FIT student can remotely access code01.fit.edu with his/her TRACKS
account. It's a Linux-based system so it's similar to a Mac or Cygwin
(on Windows) in terms of command-line interaction.
After you login to a lab Windows computer or code01.fit.edu, you have
access to your U Drive. That is, your U Drive is accessible from many FIT
computers.
- If you are off-campus, you would need VPN (Virtual Private Network) to be on FIT network to access FIT computers remotely
- How to use SSH and SFTP to Code01. Additional information:
- To put/upload (or access) your files on to your U Drive from your computer:
- SFTP (Secure File Transfer Protocol) client [Comparison of FTP client software]
- Windows: WinSCP is an example
- MacOS/Linux/Cygwin: sftp is probably installed
- Windows/MacOS/Linux: FileZilla is an example
- Mapping U Drive
- For simplicity, don't create folders and
put your program file(s) in the top/home folder/directory of your account.
- To remotely login to code01.fit.edu:
- You would need an SSH (Secure SHell) client. PuTTY is an example, there are others on various operating systems. On the command line, you can type in: ssh username@code01.fit.edu
- On a lab Windows computer, search for putty and connect to code01.fit.edu
- On your Windows computer, download putty from https://www.putty.org/
and connect to code01.fit.edu (sFTP Client above also has an SSH client)
- On your Mac/Linux/Cygwin computer, ssh is probably installed, start a terminal and type:
ssh yourTracksUserName@code01.fit.edu
- To set up a more recent version of Java on code01.fit.edu:
- login to code01.fit.edu
- check if .bash_profile exists in the home directory. If not, create one:
ls .bash_profile
- (if you don't know how to modify a file on code01, you can download .bash_profile, then edit and upload it)
- add the following 2 lines to the *end* of .bash_profile
export PATH=/usr/lib/jvm/java-18-openjdk/bin:$PATH
echo "added /usr/lib/jvm/java-18-openjdk/bin to PATH"
- logout
- login to code01 (which automatically runs .bash_profile), you should see:
added /usr/lib/jvm/java-18-openjdk/bin to PATH
- check the javac version, it should say: javac 18.0.1
javac -version
- To compile and run your program on code01.fit.edu:
- to list the files in the current folder/directory, type:
ls
- Java
- to compile:
javac HW1.java SinglyLinkedList.java
- to run:
java HW1 hw1in1.txt
- C
- to use a newer version of gcc (more details in item 4 below), type:
module load gcc
- to compile and link hw1.c to generate hw1 as the executable, type:
gcc -o hw1 hw1.c
- to run hw1 in the current folder/directory ("./") with hw1in1.txt as a command-line argument, type:
./hw1 hw1in1.txt
- to stop a program that is running too long
Control-C
- to logout, type:
exit
- more on "module" on code01
- UNIX/LINUX Tutorial for Beginners