1 / 62

Linux Programming Environment Setup

Linux Programming Environment Setup. Outline. Introduce Linux Install Linux on Vmware 在 Windows 下常用的 Software Practice. INTRODUCE LINUX. History. Linus Torvalds make a Minix (Mini Unix) kernel Just only 10000 row of C codes Richard Stallman bring up GNU plan Open source Free

Download Presentation

Linux Programming Environment Setup

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Linux Programming Environment Setup

  2. Outline • Introduce Linux • Install Linux on Vmware • 在 Windows 下常用的 Software • Practice

  3. INTRODUCE LINUX

  4. History • Linus Torvalds make a Minix (Mini Unix) kernel • Just only 10000 row of C codes • Richard Stallman bring up GNU plan • Open source • Free • Unix-like • GNU/Linux  Linux • Kernel + many modules

  5. Use • Server • MySql + PHP + Apache • Embedded system • STB (Set Top Box) • Super Computer • 75% (Top 500 on the world) • Game • Sony PlayStation 3 • Microsoft XBOX

  6. Linux Kernel • Linux Kernel version format • Linux-a.b.c • a  kernel version • b  odd : test  even : stable • c  number of bug fix • Common, Linux-2.4.x and Linux-2.6.x

  7. Linux distribution • Redhat 9  Linux-2.4.x • Fedora 1  Linux-2.4.x • Fedora 2~  Linux-2.6.x • Debian  more app. (15940) • Trustix  more safe and stable • Knoppix  LiveCD

  8. Other • There’s nothing impossible on Linux, because Source code can change • Find Linux distribution or modules • 義守大學檔案伺服器http://ftp.isu.edu.tw/ • Good Web Site • 鳥哥的 Linux 私房菜 http://linux.vbird.org/

  9. INSTALL LINUX ON VMWARE

  10. Vmware • Use software (VMware ESX Server) to“virtualize”the hardware resources • Including the CPU, RAM, hard disk and network controller • To create a virtual machine that can run its own operating system and applications just like a “real” computer

  11. Install Linux –Vmware 執行畫面

  12. Install Linux–新增一個新的 Virtual Host

  13. Install Linux – 選擇 Typical(典型 Virtual Host)

  14. Install Linux – 撰擇 Virtual Host 上欲安裝之系統

  15. Install Linux–設定 Virtual Host 名稱及位置

  16. Install Linux–設定 Virtual Host 網路狀態

  17. Install Linux –決定 Virtual Host 可用之空間

  18. Install Linux – 分配 Virtual Host 硬碟空間中

  19. Install Linux – 完成一個 Virtual Host, 準備正式安裝 Linux

  20. Install Linux –選擇 image 檔來源,可由網路捉取或由課程網站 download

  21. Install Linux – 執行 Linux image 檔 (如同以光碟片開機)

  22. Install Linux – Linux 開機後的畫面

  23. Install Linux – 略過 image 檢查

  24. Mainly, press the “Next” forever • We’ll point out options that need to setup below

  25. Install Linux – 選擇所要的 Linux 環境

  26. Install Linux –網路設定

  27. Install Linux –時區設定

  28. Install Linux –登入之密碼設定

  29. Install Linux –選擇所要的 Linux 模組 • 只選擇以下套件 • DevelopmentTools • Editors

  30. Install Linux –開始安裝到硬碟

  31. Install Linux –換下一片 image 檔

  32. Install Linux –決定是否建立開機磁片

  33. Install Linux –成功安裝 Linux, 重開機後之畫面

  34. 設定 Linux – 利用 setup 指令, 關閉不需要之服務

  35. 設定 Linux –只留下 network 與 sshd 兩個服務後, 重開機

  36. 設定 Linux –若需更改網路設定, 亦可利用 setup 指令重新設定

  37. 在 Windows 下常用的 Software –用來與 Linux 溝通

  38. Pietty – 類似 Telnet 軟體 • Use SSH ( Secure Shell ) protocol • Allows data to be exchanged over a secure channel between two computers • Why use it? • Convenient for In/Out Vmware console • Good copy way • http://ntu.csie.org/~piaip/pietty/

  39. Winscp – ftp 軟體 • Support • SFTP (SSH File Transfer Protocol) • SCP (Secure Copy Protocol) • FTP (File Transfer Protocol) • Good way to transmission data between Windows and Linux • http://winscp.net/eng/docs/lang:cht

  40. LINUX COMMON COMMANDS

  41. Linux Command Format • Command [–options] [param1] [param2] … • Short option use “-” • Long option use “--” • Ex. • dmesg • gcc –v • gcc ––help • cp file1 file2

  42. File management • ls  list • ls –al • chmod  change authority • -rw-r--r-- 1 root root 20 Sep 25 12:12 123.log other group r w x 222120 Ex. Chmod 755 file d : directory l : soft-link - : file c : char device b : block device owner -rwxr-xr-x

  43. rmdir  remove directory • mkdir  make directory • cp  copy • cp from to • mv  move or rename • Move from to • cd  change directory • cd <absoluteor relative path> • cd – • cd ..

  44. find -name  find file • find <where> –name <filename> • grep  find string • dmesg | grep CPU • cat  print to stdout • file  print file info. • touch  change file’s timestamp  make a file

  45. rm  remove • rm –rf <file or directory> • man  command manual • tar  uncompress or compress • tar zxvf file.tar.gz • tar zcvf backup.tar.gz /root • tar jxvf file.tar.bz2 • ln  soft-link • ln –s <file> <link_name>

More Related