1 / 11

C & Unix Final Session

C & Unix Final Session. Review (… because I, too, can do PowerPoint …). Intro to Linux. Kernel (Linus Thorwal) + GNU Utilities = Linux Un-certified Unix variation Many distros with various highlights. E.g.: Kernel + GNU Utils + X-Server + Gnome Kernel + GNU Utils + X-Server + KDE

aneko
Download Presentation

C & Unix Final Session

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. C & Unix Final Session Review (… because I, too, can do PowerPoint …)

  2. Intro to Linux • Kernel (Linus Thorwal) + GNU Utilities = Linux • Un-certified Unix variation • Many distros with various highlights. E.g.: • Kernel + GNU Utils + X-Server + Gnome • Kernel + GNU Utils + X-Server + KDE • Closely related to C programming language • Text-file based configuration • TCP/IP stack build-in from early on

  3. Technical Details • RAID • Partitions • DHCP • Permissions and ownership

  4. Shell Scripting • Bourne-again shell bash • Variables • Loops • Conditionals • Pipes • Redirection • Job control

  5. Special Utilities • pico • more • grep • sort • uniq • tar • last, uptime, top, who (w) • tail, head • gzip, gunzip

  6. Installing a “tar-ball” • download “file.tar.gz” • unzip + untar • ./configure • make • make install • configure program options Our choice: “httpd”

  7. Web Server Configuration • httpd process owner • document root • index files and permissions • access rights • alias & redirect • password protected web page • CGI scripts • Script (grep) driven phone-book db with search • Httpd access log file

  8. C Programming • Simple C program • Compile and link C program • CGI script in C • Makefile • Makefile targets, dependencies, and commands • Makefile dummy targets • C program with complex numbers

  9. Encryption • SSH • Public/private key encryption • GPG • Cluster computing

  10. Other Programming Languages • Awk: BEGIN {init-action}<search pattern 1> {action 1}<search pattern 1> {action 1} …END {final-action} • Count how many times a user logged in • Perl: Swiss-Army Knife of Scripting Languagesscalarsarrays (lists + index)hashes • Program to count frequencies of words in a text file

  11. VM – Virtual Machine • VMware-player-2.0.3-80004.exe • Free VM player can execute VMs packaged for it • Ubuntu_710_VMware_EN-2.rar • User-friendly Linux distro with Gnome Desktop • 7z457.exe • FOSS compression/uncompress program • Setup and configure to your taste • See configuration document

More Related