140 likes | 323 Views
City Cluster Quickstart. Lien-Chi Lai , COLA Lab, Department of Mathematics, NTU 2010/05/11. To Login “City Cluster”. On Mac: Launch “ 終端機 ” $ ssh user@city.math.ntu.edu.tw $ ssh –X user@city.math.ntu.edu.tw (to enable X11 forwarding). 2. City Cluster Quickstart. To Transfer Files.
E N D
City Cluster Quickstart Lien-Chi Lai, COLA Lab, Department of Mathematics, NTU2010/05/11
To Login “City Cluster” • On Mac: Launch “終端機” • $ ssh user@city.math.ntu.edu.tw • $ ssh –X user@city.math.ntu.edu.tw(to enable X11 forwarding) 2 City Cluster Quickstart
To Transfer Files • $ sftp user@city.math.ntu.edu.tw • download files: • get filename • mget foo*.c • upload files: • put foo1 • mput foo*.c • scp secure remote file copy program • $ scp user@city.math.ntu.edu.tw:~/filepath . 3 City Cluster Quickstart
SSH Secure Shell (on Windows) : to Login • Download and install “SSH Secure Shell” http://www.colorado.edu/its/security/SSHSecureSHellClient.exe 4 City Cluster Quickstart
SSH Secure Shell: to transfer files 5 City Cluster Quickstart
SSH Secure Shell: to transfer files 6 City Cluster Quickstart
Basic Linux Commands • pwd print current working directory • man on-line reference manuals • e.g. $ man pwd • mkdirmake directories • e.g. $ mkdir dir_name • ls list directory contents • e.g. $ ls or ls dir_name/ • cdchange directory • e.g. $ cd dir_name/ • rmremove files or directories • e.g. $ rm -r dir_name/ • cpcopy files and directories • e.g. $ cp file_scr file_dst 7 City Cluster Quickstart
MATLAB • Graphic User Interface (GUI) • $ ssh -X user@city.math.ntu.edu.tw • $ matlab • No GUI • ssh user@city.math.ntu.edu.tw • $ matlab -nojvm 8 • City Cluster Quickstart
Editors • vi a programmers text editor • $ vi filename • emacs a programmers text editor • $ emacs filename • gedit simple text editor for GNOME • $ gedit or gedit filename 9 City Cluster Quickstart
GCC • gccC and C++ compiler • e.g. $ gcc hello.c -o hello (compile test.c) $ ./hello (execute hello) 10 • City Cluster Quickstart
FORTRAN • Edit “hello.f90” • Compile: • $ ifort hello.f90 • Run • $ ./a.out 11 • City Cluster Quickstart
Virtual Network Computing (VNC) • VNC 可將遠端平台的畫面顯示至本地端,並可遙控操作。 • 遠端與本地端的平台作業系統無須相同,Linux, Windows,… 等皆可。 • 參考網址: • http://www.uk.research.att.com/vnc/ • http://www.realvnc.org/ • http://www.vnc.org/ 12 • City Cluster Quickstart
VNC • On server side (e.g. city.math.ntu.edu.tw) • vncserver :2launch VNC server with port 5802 • vncpasswdchange VNC password • vncserver -kill :2close VNC server at port 5802 • On local side • Go to http://city.math.ntu.edu.tw:5802 • Use VNC Viewer to connect city.math.ntu.edu.tw:5802 13 • City Cluster Quickstart
Reference • http://linux.vbird.org/ 14 • City Cluster Quickstart