香港浸会大学:Introduction to Linux and PC Cluster

Introduction to linux and Pc cluster October 5 2010 ●●●●● Morris law,| T Coordinator,。。 Science Faculty, Hong Kong o000 Baptist University 11 iIi IIt
Introduction to Linux and PC Cluster October 5, 2010 Morris Law, IT Coordinator, Science Faculty, Hong Kong Baptist University

●●● ●●●● ●●●●● ●●●● ●●●●● Outline- Linux ●●●● ●| ntroduction to linux History of UNIX and Linux Login, logout and changing the password Basic linux command Linux hierarchical file system ● Linux shell environment Editors: vi, pico, emacs, joe, nano Basic shell scripts Compiling, link and run C, C++, Fortran programs e Foreground and background jobs File transfer from other pcs in different platform Linux distributions
Outline - Linux ⚫ Introduction to Linux ⚫ History of UNIX and Linux ⚫ Login, logout and changing the password ⚫ Basic Linux command ⚫ Linux hierarchical file system ⚫ Linux shell environment ⚫ Editors: vi, pico, emacs, joe, nano ⚫ Basic shell scripts ⚫ Compiling, link and run C, C++, Fortran programs ⚫ Foreground and Background jobs ⚫ File transfer from other PCs in different platform ⚫ Linux distributions

●●● ●●●● ●●●●● ●●●● ●●●●● Outline- Pc cluster ●●●● ●●●● o Introduction to the pc clusters What is a pc cluster o the different kinds of pc clusters High Performance Computing(HPC)cluster Vs Single System Image(sSi) cluster o How to build your own PC cluster o Introduction to existing HPC cluster in Faculty of science, HKBU
Outline – PC Cluster ⚫ Introduction to the PC Clusters ⚫ What is a PC cluster ⚫ The different kinds of PC clusters ⚫ High Performance Computing (HPC) cluster vs Single System Image (SSI) cluster ⚫ How to build your own PC cluster ⚫ Introduction to existing HPC cluster in Faculty of Science, HKBU

●●● ●●●● ●●●●● ●●●● ●●●●● Introduction to un/linux ●●●● ●UNⅨ X/Linux are mult- tasking,mut- user Os. UNIX is originated from UNICS and MULTICS, 1969 o time sharing environment UNIX/Linux commands are reusable and compact hierarchical file systems with easy-to-manage file permission scheme In 1991. Linus torvalds. released the first version of Linux kernel on pcs Linux is an open source system it grew to be a powerful and competitive operating system in PCs MACs and even some brand name workstations
Introduction to UNIX/Linux ⚫ UNIX/Linux are multi-tasking, multi-user OS. ⚫ UNIX is originated from UNICS and MULTICS, 1969. ⚫ time sharing environment ⚫ UNIX/Linux commands are reusable and compact. ⚫ hierarchical file systems with easy-to-manage file permission scheme ⚫ In 1991, Linus Torvalds, released the first version of Linux kernel on PCs. ⚫ Linux is an open source system, it grew to be a powerful and competitive operating system in PCs, MACs and even some brand name workstations

●●● ●●●● History of∪NX/ Linux ●●●●● ●●●● 1969 Unics, by Ken Thompson at Bell Laboratory, runs on Digital Equipment PDP-7 ●●●● Multics, developed by bell, MIT and general electric 1970 Unics moved to PDP-11/20 Ritchie designed and wrote first C compilerfor UNIX 1973 Ritchie and Thompson rewrote UNIX kernel in C 1975 Sixth Edition(V6)was released 1978 first version of BSD was built by Bill Joy, University of California, Berkeley(UCB) 1979 Seventh Edition(V7)was released and implemented on DEC PDP-11, the Interdata 8/32, and the AX. first VAX version of BSD (3BSD)was released 1980 Bill ported the 32V version of UNIX to dEC's vaX machine 4BSD was released 19814.1BSD was released 1983 System V developed by AT&T based on V7 was first released. 4. 2BSD was released 1984 AT&T start market UNIX hardware and software SystemV release 2 X was developed by MIT as part of Project Athena 1986 SystemV release 3 198743BSD was released 1988 BSD Networking Release 1 X Consortium was formed. the aim is to formulate the generally accepted standard in X 1989 System V release 4(SVR4)largely written by SUN Microsystems, included many features in BSD 1990 AT&T established UNIX System Laboratory(USL) for marketing System V and handle license and
History of UNIX / Linux 1969 Unics, by Ken Thompson at Bell Laboratory, runs on Digital Equipment PDP-7. Multics, developed by Bell, MIT and General Electric 1970 Unics moved to PDP-11/20 Ritchie designed and wrote first C compiler for UNIX 1973 Ritchie and Thompson rewrote UNIX kernel in C 1975 Sixth Edition (V6) was released 1978 first version of BSD was built by Bill Joy, University of California, Berkeley (UCB). 1979 Seventh Edition (V7) was released and implemented on DEC PDP-11, the Interdata 8/32, and the VAX. first VAX version of BSD (3BSD) was released 1980 Bill ported the 32V version of UNIX to DEC's VAX machine 4BSD was released 1981 4.1BSD was released 1983 System V developed by AT&T based on V7 was first released. 4.2BSD was released 1984 AT&T start market UNIX hardware and software. System V release 2 X was developed by MIT as part of Project Athena 1986 System V release 3 1987 4.3BSD was released 1988 BSD Networking Release 1 X Consortium was formed. The aim is to formulate the generally accepted standard in X 1989 System V release 4 (SVR4) largely written by SUN Microsystems, included many features in BSD 1990 AT&T established UNIX System Laboratory (USL) for marketing System V and handle license and further development

●●● ●●●● istory of UNIX/Linux ●●●●● ●●●● ●●●●● 1991 BSD Networking Release 2, led to development of 386BSD 1991 Linus torvalds released linuxversion 0.2 1993 USL was acquired by novell. Novell gave the UNIX trademark to X/Open. Novell add NetWare support to System V 1993 Slackware, the oldest linux distribution was first released. Debian project was established 1994 Linux kernel version 1.0 released. Red Hat and SUSE published version 1.0 of their Linux distributions 1995 Linux was ported to dec alpha and to sun SParc 1996 Linux Kernel 2.0 was released. It supported multi-CPU 1998 Major companies like IBM, Compaq and Oracle announce their support to Linux. The Graphical Environment KDE began development 1999 The Graphical Environment GNOME began development 2003 Linux kernel 2.6 released on 18 December, 2003 2004 XFree86 team split up and joined the existing X Windows standards body to form the x Org Foundation 2005 The project Open SUsE began a free distribution from Novell's community The OpenOffice. org project introduced version 2.0
History of UNIX/Linux 1991 BSD Networking Release 2, led to development of 386BSD 1991 Linus Torvalds released Linux version 0.2 1993 USL was acquired by Novell. Novell gave the UNIX trademark to X/Open. Novell add NetWare support to System V 1993 Slackware, the oldest linux distribution was first released. Debian project was established. 1994 Linux kernel version 1.0 released. RedHat and SUSE published version 1.0 of their Linux distributions 1995 Linux was ported to DEC alpha and to Sun SPARC 1996 Linux Kernel 2.0 was released. It supported multi-CPU. 1998 Major companies like IBM, Compaq and Oracle announce their support to Linux. The Graphical Environment KDE began development. 1999 The Graphical Environment GNOME began development. 2003 Linux kernel 2.6 released on 18 December, 2003. 2004 XFree86 team split up and joined the existing X Windows standards body to form the X Org Foundation. 2005 The project OpenSUSE began a free distribution from Novell's community. The OpenOffice.orgproject introduced version 2.0

●●● ●●●● ●●●●● ●●●● ●●●●● What is linux ●●●● When Linus Torvalds was still a student in Helsinki University, he developed his hobby to Minix, a small UNIX system and decided to develop a system that exceeded the minix standards. he began his work in 1991 when he released version 0.02 and worked steadily until 1994 when version 1.0 of the Linux Kernel was released The current full-featured version is 2.6 (released 18 December 2003 ) and development continues Since Linus only developed the linux kernel, to make Linux a popular operating system nowadays, the contribution of GNU software paid an important role. The GNU project was started in 1984 by Richard Stallman who would like to develop free software. The decision of Linux development under gnu public license accelerated the growth of GNU project after Linux was released in 1991. Some GNU software even develop on Linux platform first before it will be ported to other platform At the same year, the Internet grew and became a solid ground for collaborating work by volunteers all over the world Many distribution of Linux was released on different hardware such as PCS PowerPC, Macintosh and even brand name UNIX. Though Linux kernel is free and open source, these distribution may not be free since the software packaged may include some commercial software
What is Linux ⚫ When Linus Torvalds was still a student in Helsinki University, he developed his hobby to Minix, a small UNIX system and decided to develop a system that exceeded the Minix standards. He began his work in 1991 when he released version 0.02 and worked steadily until 1994 when version 1.0 of the Linux Kernel was released. ⚫ The current full-featured version is 2.6 (released 18 December 2003) and development continues. ⚫ Since Linus only developed the Linux kernel, to make Linux a popular operating system nowadays, the contribution of GNU software paid an important role. The GNU project was started in 1984 by Richard Stallman who would like to develop free software. The decision of Linux development under GNU public license accelerated the growth of GNU project after Linux was released in 1991. Some GNU software even develop on Linux platform first before it will be ported to other platform. ⚫ At the same year, the Internet grew and became a solid ground for collaborating work by volunteers all over the world. ⚫ Many distribution of Linux was released on different hardware such as PCs, PowerPC, Macintosh and even brand name UNIX. Though Linux kernel is free and open source, these distribution may not be free since the software packaged may include some commercial software

●●● ●●●● ●●●●● ●●●● ●●●●● Login and Logout ●●●● To login to UNIX/LINUX system, you have to find a terminal There are two kinds of terminal, namely asCll terminal and graphical terminal In ASCiI terminal, command-line input are supported while in graphical terminal, users can input their command by mouse and keyboard and it also support graphical display Once you find an ASCII terminal, a login prompt like the following can be found Fedora release 13 Goddard) kerne12.6.33.3-85.fc13.x8664 on an X8664 (tty cf8200-07 login
Login and Logout ⚫ To login to UNIX/LINUX system, you have to find a terminal. ⚫ There are two kinds of terminal, namely ASCII terminal and graphical terminal. ⚫ In ASCII terminal, command-line input are supported while in graphical terminal, users can input their command by mouse and keyboard and it also support graphical display. ⚫ Once you find an ASCII terminal, a login prompt like the following can be found. Fedora release 13 (Goddard) kernel 2.6.33.3-85.fc13.x86_64 on an x86_64 (tty3) cf8200-07 login:

●●● Basic Linux commands ●●●● ●●●●● ●●●● working with files & directories 9:9 cat cat f1 f2 type the content of file f1 and f2 cd cd SHOME change to home directory cp cp f1 f2 dir1 copy file f1 and f2 into directory dir 1 Is Is -a list all files(including hidden) in long format mkdir mkdir abc make new directory more more a1 a2 list out files a1 a2 in pages nv my f1 dir1 move/rename file f1 into dir1 pwd display current working directory rm -rf lab1 delete all files in lab 1 without confirmation rmdir rmdir lab 1 delete an empty directory
Basic Linux commands – working with files & directories cat cat f1 f2 type the content of file f1 and f2 cd cd $HOME change to home directory cp cp f1 f2 dir1 copy file f1 and f2 into directory dir1 ls ls -la list all files (including hidden) in long format mkdir mkdir abc make new directory more more a1 a2 list out files a1, a2 in pages mv mv f1 dir1 move/rename file f1 into dir1 pwd pwd display current working directory rm rm -rf lab1 delete all files in lab1 without confirmation rmdir rmdir lab1 delete an empty directory

●●● Basic Linux commands ●●●● ●●●●● ●●●● ●●●●● working in the shell(1/2) ●●●● cal ca112010 display the calendar of November, 2010 compress compress file 1 form a compress file file1.Z date date display the current time and date df List information of space used in the system diff diff f1 f2 compare text between two files du du summarized disk usage of your home directory find find /-name. cshrc-print search and print the file. cshrc grep grep student search all files with the word student history history 50 find the last 50 commands stored in the shell kill ki-92036 terminate the process with pid 2036
Basic Linux commands – working in the shell (1/2) cal cal 11 2010 display the calendar of November, 2010 compress compress file1 form a compress file file1.Z date date display the current time and date df df List information of space used in the system diff diff f1 f2 compare text between two files du du summarized disk usage of your home directory find find ./ -name .cshrc -print search and print the file .cshrc grep grep student * search all files with the word student history history 50 find the last 50 commands stored in the shell kill kill -9 2036 terminate the process with pid 2036
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 《C语言程序设计》课程教学资源(PPT课件讲稿)第8章 结构体、共用体与枚举类型.ppt
- 《计算机系统安全》课程教学资源(PPT课件讲稿)第二章 黑客常用的系统攻击方法.ppt
- 上海交通大学:《挖掘海量数据集 Mining Massive Datasets》课程教学资源(PPT讲稿)Lecture 06 搜索引擎 Search Engines.ppt
- 《Introduction to Java Programming》课程PPT教学课件(Sixth Edition)Chapter 16 Applets and Multimedia.ppt
- 《计算机组装与维护》课程教学资源(PPT课件讲稿)第9章 BIOS设置(设置BIOS).ppt
- 香港城市大学:基序检测的随机化算法(PPT讲稿)Randomized Algorithm for Motif Detection.ppt
- 《数据结构》课程教学资源(PPT课件讲稿)第七章 图及其应用.ppt
- 3D Reconstruction from Images:Image-based Street-side City Modeling.ppt
- 大连理工大学:《计算机网络》课程教学资源(PPT课件讲稿)Chapter 2 应用层 application layer.ppt
- 四川大学:《操作系统 Operating System》课程教学资源(PPT课件讲稿)Chapter 3 Process Description and Control 3.4 Process Control 3.5 Execution of the Operating System 3.6 Unix SVR4 Process Management 3.7 Linux Process management system calls.ppt
- 《数据结构》课程教学资源(PPT课件讲稿)第七章 图 Graph.ppt
- 《数据结构》课程教学资源:实践教学大纲.doc
- 《网络算法学》课程教学资源(PPT课件讲稿)第三章 实现原则.ppt
- 《电脑组装与维护实例教程》教学资源(PPT课件讲稿)第5章 多媒体设备介绍及选购.ppt
- 广西医科大学:《计算机网络 Computer Networking》课程教学资源(PPT课件讲稿)Chapter 02 Network Classification.pptx
- 清华大学:无线网和移动网(PPT课件讲稿)Mobile and wireless network.pptx
- 中国科学技术大学:《计算机体系结构》课程教学资源(PPT课件讲稿)第6章 Data-Level Parallelism in Vector, SIMD, and GPU Architectures.pptx
- 厦门大学:《分布式数据库》课程教学资源(PPT课件讲稿)专题一 分布式数据库介绍.ppt
- 《The C++ Programming Language》课程教学资源(PPT课件讲稿)Lecture 06 OOP with Templates.ppt
- 武汉科技大学中南分校:Windows 2000/XP网络组建与系统管理(系统安装,李燕).ppt
- 南京大学:《计算机图形学》课程教学资源(PPT课件讲稿)第7讲 图元填充与裁剪算法.pptx
- 北京航空航天大学:SimplyDroid - Efficient Event Sequence Simplification for Android Application.pptx
- 《The C++ Programming Language》课程教学资源(PPT课件讲稿)Lecture 04 Object-Based Programming.ppt
- 中国科学技术大学:Linux内核源代码导读(PPT讲稿,陈香兰).ppt
- 《网上开店实务》课程教学资源(PPT讲稿)学习情境3 网店装修.ppt
- 北京大学:《项目成本管理》课程教学资源(PPT课件讲稿)项目范围计划(主讲:周立新).ppt
- 香港中文大学:Achieving Secure and Cooperative Wireless Networks with Trust Modeling and Game Theory.ppt
- MSCIT 5210/MSCBD 5002:Knowledge Discovery and Data Mining:Chapter 4:Data Warehousing, On-line Analytical Processing and Data Cube.ppt
- 《程序设计基础》课程PPT教学课件(C++)第3讲 C++程序控制结构.ppt
- 四川大学:《数据库技术》课程教学资源(PPT课件讲稿)数据库设计.ppt
- 云计算 Cloud Computing(PPT讲稿)MapReduce进阶.ppt
- 《C语言程序设计》课程电子教案(PPT课件讲稿)第7章 用函数实现模块化程序设计.pptx
- 中国科学技术大学:云计算及安全(PPT讲稿)Cloud Computing & Cloud Security.pptx
- 中国科学技术大学:《信号与图像处理基础 Signal and Image Processing》课程教学资源(PPT课件讲稿)数字图像处理基础 Basics of Digital Image Processing.pptx
- 中国科学技术大学:《信号与图像处理基础 Signal and Image Processing》课程教学资源(PPT课件讲稿)图像压缩编码 Image Compression.pptx
- 《计算机组成原理》课程教学资源(PPT课件讲稿)第3章 计算机的算术运算.pptx
- Analysis of Algorithms(PPT讲稿)Data Structures and Data Management.ppt
- 《C语言程序设计》课程电子教案(PPT课件讲稿)第七章 数组.ppt
- 《计算机网络与因特网 Computer Networks and Internets》课程教学资源(PPT课件讲稿)第二讲 互联网应用软件.ppt
- 《计算机操作系统》课程教学资源(PPT课件讲稿)第四章 存储器管理.ppt