|
|
|||
![]() |
Department of Engineering |
| University of Cambridge > Engineering Department > computing help > Languages > C++ |
When making our machines available to users beyond our walls we need to balance ease of use against security considerations. Several options exist. Your choice of method to use depends on what you want to access the machines for, how far away you are, and the type of machine you have. You may well have to install extra software on your machine. In particular you're likely to need programs that are "ssh-enabled" - "ssh" being short for "secure shell", a mechanism that provides the extra security needed nowadays.
See Offsite network access for a detailed list of options.
Perhaps easiest for Windows users is to boot into the MDP disk, and then to follow the details in the Linux - Using X graphics section of the Remote Access page.
Most Windows people use Xwin32 one way or another. Mac and Linux people probably won't need to install extra software - they can just type "slogin -X gate.eng.cam.ac.uk" at an xterm command line prompt.
It might not be easy to get the complete "DPO desktop" on your screen, but you can most of what you want
To access the 1AComputing material, somehow or other you need to have a terminal window running on gate.eng.cam.ac.uk, our gateway machine. It doesn't have many programs but it has the C++ compiler. If you want to use geany however you'll need to jump from gate to a more powerful Linux Servers by type something like
slogin -X tanto
(which would get you into our machine called tanto).
If you have a file called foo.cc in your folder, you can work on it by typing
geany foo.cc &
but it might help if you know a little about typing Unix commands. Here's a very brief introduction. Details are in Unix from the command line
If you don't want to run geany do
emacs filename.cc &
to edit a file in the current directory. The "&" on the end of the line means that emacs runs "in the background", thus freeing the command line for you to do other things. Type
compile1AC++ filename.cc
to compile it. To run the resulting program, type
./filename
The Lent term exercise involves multiple source files, so using geany is the easiest approach. If you've used geany before for the Lent work, then typing geany will load your files in, otherwise you'll need to load the project file that's in your 1ATrading folder (it's called 1ATrading.geany. Then you can use the usual buttons to edit, make and run the resulting program.
Depending on your set-up, the graphics used in the 1A course might still pose problems. If you get a messages like
then you have some upgrading to do. On MacOS 10.5 you'll get a warning messages about performance being hurt but the graphics window will appear ok.
This may all look like a lot of work, but after you've done it once, future times are easy. From my Mac for example I
and continue from where I left off in the DPO.
| | Teaching System Linux Servers | Offsite network access | C++ | Languages | computing help | |