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

Slides:



Advertisements
Similar presentations
Introduction To The Course Network Architecture Hervey Allen Chris Evans Phil Regnauld September 3 - 4, 2009 Santiago, Chile.
Advertisements

Introduction to Fortran and Fortran Compiling. Outline  Surfing websitewww.mcsr.olemiss.edu  Logging into the system via ssh 
CSCI 1411 FUNDAMENTALS OF COMPUTING LAB Lab Introduction 1 Shane Transue MSCS.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 20AP. 1Winter Quarter File Transfer Lecture.
Dayu Zhang 9/3/2014 Lab01. Lab Instructor: Dayu Zhang Office Hour Mon/Wed 10:40am – 11:10am Room A201 Lab Website
1 SEEM3460 Tutorial Access to Unix Workstations in SE.
Unix Workshop Aug What is Unix Multitasking, multiuser operating system Often the OS of choice for large servers, large clusters.
HPCC Mid-Morning Break Interactive High Performance Computing Dirk Colbry, Ph.D. Research Specialist Institute for Cyber Enabled Discovery.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 4P. 1Winter Quarter Introduction to UNIX.
Prof. R. Willingale Department of Physics and Astronomy 2nd Year C+R 2 nd Year C and R Workshop Part of module PA2930 – 2.5 credits Venue: Computer terminal.
1 C/C++ Compiling. 2 Outline Surfing websitewww.mcsr.olemiss.edu Logging into the system via ssh Brief History of C/C++ languages.
1 C/C++ UM/MCSR Last modified: September 3, 2008.
Linux Basics. What is an Operating System (OS)? An Operating System (OS) is an interface between hardware and user which is responsible for the management.
A crash course in njit’s Afs
February 2006Colby College ITS Using FTP. February 2006Colby College ITS Topics FTP Options at Colby For Mac Users For Windows Users.
Telnet/SSH: Connecting to Hosts Internet Technology1.
Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql.
Computation for Physics 計算物理概論 Introduction to Linux.
CNIT 132 Intermediate HTML and CSS Publish Web Page.
1 C/C++ UM/MCSR. 2 Logging into the system using ssh Logging into the system from Windows: –Start the secure shell client: Start->Programs->SSH.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction Unix-like system is everywhere Linux Android for smartphones Google Chrome OS for Chromebook Web.
Compiling C/C++ Programs in Linux Lab اللهم علمنا ما ينفعنا،،، وانفعنا بما علمتنا،،، وزدنا علماً
LINUX Tuesday, 5 July :00 pm. Remote Login l Use Secure Shell (ssh) l Machine name/IP address E.g. ssh hydra.sma.nus.edu.sg Or ssh
Lecture 0 CIS 208 C Language Lab Wed. January 12, 2005.
Makefile Introduction Jia – Wei Lin 1. Outline Why we use make ? Create a Description File Rules of Makefile How make Processes a Makefile? GCC Flags.
O.S.C.A.R. Cluster Installation. O.S.C.A.R O.S.C.A.R. Open Source Cluster Application Resource Latest Version: 2.2 ( March, 2003 )
AE6382 Secure Shell Usually referred to as ssh, the name refers to both a program and a protocol. The program ssh is one of the most useful networking.
CPSC 233 Run graphical Java programs remotely on Mac and Windows.
1 Lab 2 “Hello world” in Unix/Linux #include "std_lib_facilities_4.h" int main(){ cout
Getting started: Basics Outline: I.Connecting to cluster: ssh II.Connecting outside UCF firewall: VPN client III.Introduction to Linux IV.Intoduction to.
Introduction to Fortran Welcome to IT’s seminar on Fortran Sam Gordji, Weir 107.
Executing a C Program Creating the Program Compilation Linking Execution.
Networking in Linux. ♦ Introduction A computer network is defined as a number of systems that are connected to each other and exchange information across.
Creating Programs on UNIX This term you can create programs on UNIX or you can create programs using a C++ compiler on your PC. This set of slides steps.
City Cluster Quickstart Lien-Chi Lai, COLA Lab, Department of Mathematics, NTU 2010/05/11.
Engineering H192 - Computer Programming Gateway Engineering Education Coalition Lect 20AP. 1Winter Quarter File Transfer Lecture 20A.
Unix Machine In Computer Science for Teaching Cliff Zou Spring 2015.
Instructions for ConnectK Game AI project
17 Establishing Dial-up Connection to the Internet Using Windows 9x 1.Install and configure the modem 2.Configure Dial-Up Adapter 3.Configure Dial-Up Networking.
Introduction to SAS/willow (Unix) Sam Gordji Weir 107.
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
1 Getting Started with C++ Part 2 Linux. 2 Getting Started on Linux Now we will look at Linux. See how to copy files between Windows and Linux Compile.
Getting Connected CPSC 1010 August 21, Connecting to the SOC Servers Why would we need to connect Work with files Transfer files from your local.
Department of Electronic & Electrical Engineering Introduction to C - The Development cycle. Why C? The development cycle. Using Visual Studio ? A simple.
Hands-on Session 1 Boot Linux Connect to Linux via USB-to-UART and Putty Compile and run a simple program.
PuTTY Introduction to Web Programming Kirkwood Continuing Education by Fred McClurg © Copyright 2016, All Rights Reserved ssh client.
Programming C++ in Linux by various IDEs and editors by: Danial Khashabi Master: Dr.B.Taheri November 2008.
Tutorial 1 Writing Your First C++ Program CSC1110C Introduction to Computer Programming By Paul Pun Acknowledgement: Special thanks to Dr. Michael Fung.
Review Why do we use protection levels? Why do we use constructors?
Tutorial Six Linux Basics CompSci Semester Two 2016.
Precept I : Lab Environment, Unix, Bash, Emacs
How to Program.
ENEE150 Discussion 01 Section 0101 Adam Wang.
SEEM3460 Tutorial Unix Introduction.
CS1010: Intro Workshop.
CSC227: Operating Systems
How to Start Programming in Linux Environment
Andy Wang Object Oriented Programming in C++ COP 3330
Software Tools Recitation 1
A Guide to Unix Using Linux Fourth Edition
FTP - File Transfer Protocol
Telnet/SSH Connecting to Hosts Internet Technology.
C Programming Lecture Series
Lab 10 Instructions You can use g++ on build server, visual studio on local machine or your preferred C++ IDE. Important Note: For your grade, please show.
SEEM4570 Tutorial 07: Filezilla and PHP
Lab 7 - Topics Establishing SSH Connection Install SSH Configure SSH
SEEM3460 Tutorial Unix Introduction Xinshi Lin & Zihao Fu
Class Projects and Environment
CSCE 206 Lab Structured Programming in C
IMovie sits at the center of the iLife suite, integrating iTunes, iPhoto, and iDVD to help create professional-looking films with music, titles, and effects. 
Presentation transcript:

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

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

Quick StartQuick Start & Linux Cheat Sheet3 Quick Start

4 SSH Secure Shell (on Windows)  Download:  d/Bootcamp/SSHSecureShellClient.exe d/Bootcamp/SSHSecureShellClient.exe  Install “SSH Secure Shell”  Open “SSH Secure Shell”  Quick connect  Input  Host name: annarbor  User name: guest10##  Password: cssd2011 IP: Quick StartQuick Start & Linux Cheat Sheet

5 SSH Secure Shell (on Windows) Quick StartQuick Start & Linux Cheat Sheet  Change Password  yppasswd ~]$ 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. ~]$

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

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

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

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

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; }

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

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 Linux Cheat Sheet Quick Start & Linux Cheat SheetLinux Cheat Sheet

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

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

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

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

18 X Window Quick Start & Linux Cheat SheetX Window

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 -X

20 Xming (X Window for Windows)  Download  ming setup.exe/download ming setup.exe/download  Install “Xming setup.exe”  Open “Xming” Quick Start & Linux Cheat SheetX Window

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

Reference 22   Linux (a) MSI Unix Tutorial; (b) Basic Commands; (c) 鳥哥的私房菜:計算機概論, Linux 是什麼, 程序管理,正規表示法與文件格式化 處理 ( 含 sed, awk)MSI Unix TutorialBasic Commands計算機概論 Linux 是什麼 程序管理正規表示法與文件格式化 處理 ( 含 sed, awk)   Quick Start & Linux Cheat Sheet