Presentation is loading. Please wait.

Presentation is loading. Please wait.

Quick Start & Linux Cheat Sheet Chien-Chih Huang, Department of Mathematics, National Taiwan University 2011/07/1.

Similar presentations


Presentation on theme: "Quick Start & Linux Cheat Sheet Chien-Chih Huang, Department of Mathematics, National Taiwan University 2011/07/1."— Presentation transcript:

1 Quick Start & Linux Cheat Sheet Chien-Chih Huang, Department of Mathematics, National Taiwan University 2011/07/1

2 Outline  Quick Start  SSH Secure Shell (on Windows)  Editor and Programming Language  Run a Program in Background  Linux Cheat Sheet  File Command  Process Management  SSH  System Info  Compression  X window  Xming (X Window for Windows)  Configuring and Running Xming and SSH  Reference

3 Quick StartQuick Start & Linux Cheat Sheet3 Quick Start

4 4 SSH Secure Shell (on Windows)  Download:  www.math.ntu.edu.tw/~wwang/cola_lab/knowledge/downloa d/Bootcamp/SSHSecureShellClient.exe www.math.ntu.edu.tw/~wwang/cola_lab/knowledge/downloa d/Bootcamp/SSHSecureShellClient.exe  Install “SSH Secure Shell”  Open “SSH Secure Shell”  Quick connect  Input  Host name: annarbor  User name: guest10##  Password: cssd2011 IP:140.112.51.206 Quick StartQuick Start & Linux Cheat Sheet

5 5 SSH Secure Shell (on Windows) Quick StartQuick Start & Linux Cheat Sheet  Change Password  yppasswd [guest1037@annarbor ~]$ yppasswd Changing NIS account information for guest1037 on moma.math.ntu.edu.tw. Please enter old password: Changing NIS password for guest1037 on moma.math.ntu.edu.tw. Please enter new password: Please retype new password: The NIS password has been changed on moma.math.ntu.edu.tw. [guest1037@annarbor ~]$

6 6 SSH Secure Shell (on Windows)  File Transfer Quick StartQuick Start & Linux Cheat Sheet

7 Editor and Programming Language  Editor  vi  emacs (gui)  gedit (gui) 7Quick StartQuick Start & Linux Cheat Sheet

8 Editor and Programming Language  Programming Language  Matlab:  C/C++: gcc, icc  Fortran 95: ifort 8Quick StartQuick Start & Linux Cheat Sheet

9 MATLAB  Graphic User Interface(GUI)  $ ssh –X username@host  $ matlab  NO GUI(X window)  $ ssh username@host  $ matlab -nojvm 9Quick StartQuick Start & Linux Cheat Sheet

10 GCC  gcc: C and C++ compiler E.g.  $ gcc hello.c –o hello  compile  $./hello  execute 10Quick StartQuick Start & Linux Cheat Sheet // hello.c #include int main(){ printf(“Hello World!!\n”); return 0; }

11 Fortran  Edit “hello.f90”  Compile:  $ ifort hello.f90  Run:  $./a.out  hello.f90 11Quick StartQuick Start & Linux Cheat Sheet Program Hello Implicit none write (*,*) ‘Hello, World.’ end

12 Run a program in background  $./a.out >log_a &  $ more log_a  $./hello >log_hello &  $ more log_hello  $ nohup matlab –nodisplay log_m &  $ more log_m 12Quick StartQuick Start & Linux Cheat Sheet

13 13 Linux Cheat Sheet Quick Start & Linux Cheat SheetLinux Cheat Sheet

14 14 Linux Cheat Sheet Quick Start & Linux Cheat SheetLinux Cheat Sheet

15 15 Linux Cheat Sheet Quick Start & Linux Cheat SheetLinux Cheat Sheet

16 16 Linux Cheat Sheet Quick Start & Linux Cheat SheetLinux Cheat Sheet

17 17 Linux Cheat Sheet Quick Start & Linux Cheat SheetLinux Cheat Sheet

18 18 X Window Quick Start & Linux Cheat SheetX Window

19 19 X Window Quick Start & Linux Cheat SheetX Window  A basis for graphical user interfaces(GUI) for networked computer  Unix-like:  Unix  Linux  Mac OS X  $ssh username@host -X

20 20 Xming (X Window for Windows)  Download  http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/X ming-6-9-0-31-setup.exe/download http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/X ming-6-9-0-31-setup.exe/download  Install “Xming-6-9-0-31-setup.exe”  Open “Xming” Quick Start & Linux Cheat SheetX Window

21 21 Configuring and Running Xming and SSH  Start the Secure Shell Client by clicking on Start/Programs/SSH Secure Shell/Secure Shell  In the Secure Shell Client click on Edit/Settings.  In the Settings window on the left-hand side click on the + next to Profile Settings.  Click on Tunneling.  On the right-hand side of the window, make sure there is a check next to the words Tunnel X11 Connections  On the left-hand side of the window, click on Authentication. Make sure there is a check next to the words "Enable for SSH2 Connections.“  Click OK.  Click File/Save Settings. Quick Start & Linux Cheat SheetX Window

22 Reference 22  http://www.math.ntu.edu.tw/~wwang/cola_lab/knowledge/kb_tools/ http://www.math.ntu.edu.tw/~wwang/cola_lab/knowledge/kb_tools/  Linux (a) MSI Unix Tutorial; (b) Basic Commands; (c) 鳥哥的私房菜:計算機概論, Linux 是什麼, 程序管理,正規表示法與文件格式化 處理 ( 含 sed, awk)MSI Unix TutorialBasic Commands計算機概論 Linux 是什麼 程序管理正規表示法與文件格式化 處理 ( 含 sed, awk)  http://www2.cs.purdue.edu/help/SSH/ssh.htm http://www2.cs.purdue.edu/help/SSH/ssh.htm  http://files.fosswire.com/2007/08/fwunixref.pdf http://files.fosswire.com/2007/08/fwunixref.pdf Quick Start & Linux Cheat Sheet


Download ppt "Quick Start & Linux Cheat Sheet Chien-Chih Huang, Department of Mathematics, National Taiwan University 2011/07/1."

Similar presentations


Ads by Google