You are on page 1of 4

Engineering 101 HOW TO Work Remotely from Mac OS

If you wish to work on your Eng101 assignments from outside a CAEN lab such as your home computer or an ITD lab computer you can do so in three different ways In terminal emulation mode you use your local computer as a te!t"only terminal to access the CAEN computer remotely# All editing and compiling is done on the CAEN computers# This ensures that your final code is compatible with the system on which we will compile and e!ecute it when grading# In file transfer mode you use your local computer to edit te!t files and compile the code# Then when you are done you transfer your program to your Eng101 directory# It is $ery important if you use this method to test that your program is compatible with the CAEN compiler by compiling it remotely on the CAEN computers as well# In X server mode you connect much as you would in terminal emulation mode but you open a connection $ia which both te!t and graphics can be displayed on your computer# This will allow you to use editors with graphical user interfaces %&'I(s) as well as te!t" based resources# Each method differs in the ease of setup and the con$enience of use# These methods also depend on your internet connection speed %or bandwidth) and the a$ailability of software# *e will assume that you ha$e an internet connection on your home computer# If not you can get a +lue Disc from ITD to get connected %$isit http://www.itd.umich.edu/kits )# Method 1 Terminal Emulation! This method in$ol$es making a te!t"based %non"graphical) terminal connection to a remote ,inu!-'NI. computer where all the editing compiling and running of your program are done# The connection is made with /ecure /hell %//0) which is a protocol comparable to telnet used to connect to remote systems securely# 0owe$er unlike telnet //0 encrypts all data sent between computers or hosts including your password# +ecause //0 is a te!t"based terminal emulator you cannot run remote programs with graphical user interfaces %&'I) and so mouse functions are also una$ailable# 1ortunately 2ine Emacs 2ico and g33 are all te!t"based programs so they can be used with 4ust keyboard commands# If you installed the +lue Disc5 1# 9# /tart SSH Host "onnections %for 6a! 7/ .) or start MacSSH %for 6ac 8Classic8)# Type ruby.engin.umich.edu as the hostname your uni:name and your password#

11-;-901<

If you ha$e 6ac7/ . you can connect directly from a terminal window5 1# 9#

7pen a terminal %also 4ust called Terminal under #$$lications %% &tilities)# Type ssh ruby.engin.umich.edu and type in your uni:name and password#

=ou can connect to other hosts# ruby and rust are ,inu! hosts# blue topaz azure %color names) are some of the 'NI. hosts# login.engin.umich.edu connects you to a ,inu!-'NI. host with the fewest users# =ou can find other host names and a$ailability by using the hostinfo command or at
http://www.engin.umich.edu/htbin/wwwhostinfo

<#

A ,inu!-'NI. prompt will appear like this ruby% # This terminal window is now the same as the one you>d use in a CAEN lab# Type cd eng101 and change to your pro4ect directory# To start Emacs type emacs filename # =ou may use other te!t"based te!t editors like vim or pico but not graphical te!t editors like gedit kwrite nor nedit which re:uire a graphical ."ser$er connection %see 6ethod < below)# 7pen another //0 connection so you ha$e two //0 windows open# Compile your program in the second window using g++ while you edit your code with 2ico in the original first window# =ou cannot run a ,inu!"compiled e!ecutable on other fla$ored 'NI. machines %/un 02 I+6) and $ice"$ersa# In such a case recompile your source code# In your terminal window you can also check your CAEN e"mail using 2ine by typing pine at the prompt#

?#

;# @#

If you wish to use NiftyTelnet //0 another secure shell program5 1# 7pen a web browser and download niftytelnet 1'1 ssh r('h)* from
http://www.lysator.liu.se/ !onasw/freeware/niftyssh

and use /tuffIt E!pander to decompress the file# Then install the program# This needs to be done only once# 9# ,ocate NiftyTelnet //0 on your hard disk and start it# In the +e, "onnection dialog bo! in the Hostname field type ruby.engin.umich.edu then click "onnect# Ne!t type your uni:name and password#

=ou can find more information on //0 at


http://www.engin.umich.edu/caen/fa"s/#ccounts/$#%&/connectsecure

<#

Aepeat /teps <"@ abo$e under BIf you ha$e 6ac7/ .CD#

11-;-901<

Method - .ile Transfer! This method in$ol$es transferring your C33 files between your Eng101 directory on CAEN and your home computer where you will be editing and compiling your code# 7nce you ha$e file transferred your C33 source code from your Eng101 directory to your home computer you can edit your code with any te!t editor# =ou can also compile your code on your home computer with any C33 compiler# Code*arrior is one package that combines both te!t editing and compiling# 1inally you can file transfer your completed source code back to your Eng101 directory for submission# It is important that your code compile successfully under g33 $ersion <#<# Therefore transferring your code to your Eng101 directory should not be the final step# 6ake sure to test that your code will compile correctly on the CAEN ,inu! machines or you are risking recei$ing no credit for the assignmentE 1ile transferring is done with a /ecure Co2y %/C2) program comparable to file transfer protocol %1T2) programs# 0owe$er unlike 1T2 /C2 uses /ecure /hell to securely transfer files from one computer to another# 1# 7pen a web browser and download niftytelnet 1'1 ssh r('h)* also an /C2 program from http://www.lysator.liu.se/ !onasw/freeware/niftyssh and use /tuffIt E!pander to decompress the file# Then install the program# This needs to be done only once#

=ou can find more information on /C2 and links to other /C2 programs at
http://www.engin.umich.edu/caen/fa"s/#ccounts/$#%&/connectsecure

9#

,ocate NiftyTelnet //0 on your hard disk and start it# In the +e, "onnection dialog bo! in the Hostname field type login.engin.umich.edu then click Sc$/# In the Sc$ dialog bo! choose Receive .iles0.olders from the popup menu# In the Source .iles bo! na$igate the directories %start by clicking the Eng101 directory) and select the C33 files you wish to copy# Then click 1ick .older and specify the downloaded folder# Ne!t click Start "o$y and in the SSH 2ogin bo! type your uni:name and password# =ou can now use a te!t editor and compiler to write and test your C33 code# =ou can purchase a te!t editor and compiler like 6etroworks Code*arrior from ITD your local bookstore or online# To copy your C33 files back to your Eng101 directory open NiftyTelnet //0 and in the Sc$ dialog bo! choose Send .iles0.olders from the popup menu# Click #dd .ile0.older to select the C33 files you wish to copy back# In the 3estination 1ath field specify the path of where you want to copy your file# Typically this will be something like /eng101/hw1 where %tilde) represents home directory# Ne!t click Start "o$y and in the SSH 2ogin dialog bo! type your uni:name and password# 1or 6ac7/ . you can also use the scp command in a terminal window#
< 11-;-901<

<#

?#

Method ( X Server! This method in$ol$es making an . window system display ser$er %. ser$er) connection to a remote CAEN machine where you can open windows of graphical programs on your local screen# This method differs from a te!t"based terminal connection because an . ser$er sends graphical information between your computer and the remote host which typically re:uires a fast internet connection like ethernet# *ith an . ser$er you can use your mouse to click on menus of remote programs run fancier te!t editors with &'Is run Data Display Debugger etc# 1# Install X11 for Mac OS X 1u4lic 5eta an . ser$er for 6ac 7/ . which is free from Apple here
http://www.apple.com/macos'/'11/download

or install XonX and X3ar,in . ser$ers for 6ac 7/ . which is free from here
http://mrcla.com/(on(

or install M60X an . ser$er for 6a! 8Classic8 or 6a! 7/ F#! from 6icroImages here
http://www.microimages.com/mi' .

9#

1ollow the instructions that come with the software or that are posted on their respecti$e webpages#

11-;-901<

You might also like