C unix final session
This presentation is the property of its rightful owner.
Sponsored Links
1 / 11

C & Unix Final Session PowerPoint PPT Presentation


  • 61 Views
  • Uploaded on
  • Presentation posted in: General

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

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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


C unix final session

C & Unix Final Session

Review

(… because I, too,

can do PowerPoint …)


Intro to linux

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


Technical details

Technical Details

  • RAID

  • Partitions

  • DHCP

  • Permissions and ownership


Shell scripting

Shell Scripting

  • Bourne-again shell bash

  • Variables

  • Loops

  • Conditionals

  • Pipes

  • Redirection

  • Job control


Special utilities

Special Utilities

  • pico

  • more

  • grep

  • sort

  • uniq

  • tar

  • last, uptime, top, who (w)

  • tail, head

  • gzip, gunzip


Installing a tar ball

Installing a “tar-ball”

  • download “file.tar.gz”

  • unzip + untar

  • ./configure

  • make

  • make install

  • configure program options

    Our choice: “httpd”


Web server configuration

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


C programming

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


Encryption

Encryption

  • SSH

  • Public/private key encryption

  • GPG

  • Cluster computing


Other programming languages

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


Vm virtual machine

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


  • Login