test your code on another server
for my UF friends looking to easily test code on a UF CISE remote host
In data structures, we need to test our C++ code on a Linux machine before submission. There are two ways: (1) virtual machine and (2) ssh into our school server.
Method 0
Don’t use C++. I wish… Read this and be entertained.
Method 1
Install Ubuntu in Virtualbox.
Done.
Method 2
Open up Terminal.
~$ ssh user@thunder.cise.ufl.edu
user@thunder.cise.ufl.edu's password:
Last login: Tue Jan 19 17:38:37 2016 from xx.xxx.xx.xxx
thunderx:1%
Grab your code using git clone:
thunderx:1% git clone https://github.com/username/project_name
Or wget, whatever floats your boat. Get your code to the server somehow.
thunderx:n% cd project_name
Compile with g++:
thunderx:n% g++ foo.cpp -o foo
thunderx:n% ./foo
Compile with gcc (if you’re nuts):
thunderx:n% gcc -Wall -o foo foo.cpp -lstdc++
thunderx:n% ./foo
Last modified on 2016-01-17
Comments Disabled.