Summary of Commands

    for  your first logon  either 
    (a) go to Rm315 and  after entering account name  and temporary password
    (the computers have their names on the screens and on top)
    (b) write  ssh phmachine -l youridx  in a window of aluf
    or t2 (phmachine is phelafel or phclass1 etc,
    youridx is the account  name you asked for on class machines)
    then change password with the command
    on the command line enter the temporary one 
    then enter the real one twice.
    to organise your paths you need to have a file called .cshrc
    you can download it from here then write  source .cshrc
    HELP HELP HELP if you compile on a computer where you have not yet 
    set up paths and it says command not found
    then another quick fix is: write
    ./sur2005.ex or ./rwalk.ex etc and it will find it.
  2. To start a webpage (optional for homework submission, compulsory for project) make these commands then look at the example file.
  3. Fortran (lets say the program myprog.f) is compiled on PHELAFEL AND PHCLASS1-5 with the command gfortran myprog.f -o myprog.ex to give an executable file called myprog.ex. On phelafel it has to be gfortran -fno-range-check the program is then run by writing myprog.ex in the command line. Fortran90 or 95 is with the command gfortran.
  4. The command we will use to move between computers is ssh. It works between PHELAFEL AND PHCLASS1-5 and TX and PHYSICS. A version of ssh for windows computers can be found at the PuTTY site . Some more details about the use of ssh can be found on the minerva computer website.
  5. Commands to move files between computers are ftp (file transfer protocol) which is rarely used nowadays and scp (secure copy). There are more details on the minerva computer website . For use in this class web download is recommended. If you wish to transfer files from your home/office pc to PHELAFEL AND PHCLASS1-5, you may upload to physics or tx from any pc and then put onto phelafel and phclass1-5 with scp.
  6. These complications often not needed with ssh, especially if you use ssh -X , but sometimes you will need to transfer X-graphics between computers, and will get a message that you cannot access X. Sometimes its intentionally blocked, but sometimes you can fix this. Lets call the computer you are using MYCOM (for example on the computers in Rm. 315 their names are written on labels on the top of the screen) and the one you want to run the program on OTCOM. If so write in a window of MYCOM xhost + OTCOM and then enter OTCOM by ssh and once in write setenv DISPLAY MYCOM:0.0 before running the program. Be sure to write xhost - MYCOM when you finish.
  7. If you are transferring OpenGL graphics you may need ssh -Y or use Xming form windows.
  8. For compiling PGPLOT programs (e.g. cplot.f) either
    On tx, phclasses and phelafel
    pgplotcl cplot (this a Technion Computer Centre shortcut to pgplot-compile-link, -o tells the computer to name the output file cplot)
    or use the next few (indented) points which are only relevant if you have made your own pgplot installation without pgplotcl:
    1. On some other machines
      gfortran cplot.f -o cplot.ex -lpgplot -lX11 (-lpgplot tells the computer to link to the pgplot library and -lX11 to link to the X11 graphics library.)
    2. On other machines when pgplot is installed in e.g. /usr/local/pgplot and pgplotcl not installed (it might be like this if you work at home)
      Once before each session of use: (or add to the .cshrc file)
      setenv PGPLOT_DIR /usr/local/pgplot/
      setenv PGPLOT_FONT /home/pgplot/grfont.dat
      Then compile with
      gfortran cplot.f -o cplot.ex -L /usr/local/pgplot -L /usr/X11R6/lib -lpgplot -lX11
      On some other computers the commands might be
      setenv PGPLOT_DIR /usr/lib/pgplot/
      setenv PGPLOT_FONT /usr/lib/grfont.dat
      These work with existing files. If you need to compile with
      gfortran cplot.f -o cplot.ex -L /usr/lib/pgplot -L /usr/X11R6/lib -lpgplot -lX11 (this may need adaption, call me if you get stuck here)
  9. To use pgplot with c:
    cc -c -I PGPLOT_DIR -o
    gfortran -lcpgplot -lpgplot -lX11 -L PGPLOT_DIR -L /usr/X11R6/lib -o
    (Thanks to Liron Anavy for this command. Liron adds `` note that -lcpgplot is only needed if you use the C library that comes with pgplot (recommended)'')
  10. If you need to prepare gif files for webpages and you have them e.g. in TeX then the xview (entered by command xv) is the way to go. Best way to get help is to type man xv on tx to get the location of the manual in postscript form. You can also try the command latex2html that works on tx.
  11. To use matlab (or mathematica) on phclass1-5 open a terminal and type the command matlab (mathematica) on the command line.
  12. Making postscript graphs in Mathematica, see here.
  13. Making eps graphs from applications that do not have an eps output (Thanks to Ariella Richardson)
    1) install a printer that has postscript (for instance - HP Color
    LaserJet 4550 PS).
    2) from Excel (or other application) select the graph and choose print.
    3) select "print to file", and select the printer you installed.
    4) save the file as .ps
    5) open the file with GSview. select PS to EPS from the file menu, save as *.eps
    6) stick it in your latex file...
    good luck!

For more information about the Computational Physics Group at the

Technion - Israel Institute of Technology

see the

Computational Physics Home Page

This page was last updated in Novmberber, 2015