City Cluster Quickstart

  • View
    27

  • Download
    0

Embed Size (px)

DESCRIPTION

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. - PowerPoint PPT Presentation

Text of City Cluster Quickstart

  • City Cluster QuickstartLien-Chi Lai, COLA Lab, Department of Mathematics, NTU 2010/05/11

  • To Login City ClusterCity Cluster Quickstart*On Mac: Launch

    $ ssh user@city.math.ntu.edu.tw$ ssh X user@city.math.ntu.edu.tw (to enable X11 forwarding)

  • To Transfer FilesCity Cluster Quickstart*

    $ sftp user@city.math.ntu.edu.twdownload files:get filenamemget foo*.cupload files:put foo1mput foo*.c

    scp secure remote file copy program$ scp user@city.math.ntu.edu.tw:~/filepath .

  • SSH Secure Shell (on Windows) : to LoginCity Cluster Quickstart*Download and install SSH Secure Shell http://www.colorado.edu/its/security/SSHSecureSHellClient.exe

  • SSH Secure Shell: to transfer filesCity Cluster Quickstart*

  • SSH Secure Shell: to transfer filesCity Cluster Quickstart*

  • Basic Linux CommandsCity Cluster Quickstart*pwd print current working directoryman on-line reference manualse.g. $ man pwdmkdir make directoriese.g. $ mkdir dir_namels list directory contentse.g. $ ls or ls dir_name/cd change directorye.g. $ cd dir_name/rm remove files or directoriese.g. $ rm -r dir_name/cp copy files and directoriese.g. $ cp file_scr file_dst

  • MATLABCity Cluster Quickstart

    *Graphic User Interface (GUI)$ ssh -X user@city.math.ntu.edu.tw$ matlab

    No GUIssh user@city.math.ntu.edu.tw$ matlab -nojvm

  • EditorsCity Cluster Quickstart*vi a programmers text editor$ vi filename

    emacs a programmers text editor$ emacs filename

    gedit simple text editor for GNOME$ gedit or gedit filename

  • GCCCity Cluster Quickstart

    *gcc C and C++ compilere.g. $ gcc hello.c -o hello (compile test.c) $ ./hello (execute hello)

    // C programming for Hello World#include

    int main(){

    printf(Hello World!!\n);

    return 0;}

  • FORTRANCity Cluster Quickstart

    *Edit hello.f90Compile: $ ifort hello.f90Run$ ./a.out

    Program Hello

    implicit none

    write (*,*) Hello, World.

    end

  • Virtual Network Computing (VNC)City Cluster Quickstart

    *VNC

    Linux, Windows,

    http://www.uk.research.att.com/vnc/ http://www.realvnc.org/ http://www.vnc.org/

  • VNCCity Cluster Quickstart

    *On server side (e.g. city.math.ntu.edu.tw)vncserver :2 launch VNC server with port 5802vncpasswd change VNC passwordvncserver -kill :2 close VNC server at port 5802

    On local side Go to http://city.math.ntu.edu.tw:5802Use VNC Viewer to connect city.math.ntu.edu.tw:5802

  • ReferenceCity Cluster Quickstart

    *http://linux.vbird.org/

    **************