From Unix to Linux


Published on

Published in: Technology, Education
  • Be the first to comment

  • Be the first to like this

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

From Unix to Linux

  1. 1. The Unix System <ul><li>Unix is a Multi-user and Multi-tasking operating system </li></ul><ul><li>History </li></ul><ul><ul><li>MULTICS (MULTIplexed Information and Computing Service) (1965) </li></ul></ul><ul><ul><li>Ken Thompson (Bell Laboratories -1969) </li></ul></ul><ul><ul><ul><li>Space Wars, PDP-7, written in ASSEMBLER </li></ul></ul></ul><ul><ul><ul><li>UNICS (UNiplexed Information and Computing Service) </li></ul></ul></ul><ul><ul><li>Ken Thompson, Dennis Ritchie (1970-1974) </li></ul></ul><ul><ul><ul><li>UNIX, PDP-11 </li></ul></ul></ul><ul><ul><ul><li>Ritchie develops C language (starting from B language) </li></ul></ul></ul><ul><ul><ul><li>The third version of UNIX is written in C </li></ul></ul></ul><ul><ul><ul><li>A paper on UNIX is published in 1974 (ACM Turing Award 1984) </li></ul></ul></ul>
  2. 2. The Unix System <ul><li>History, Bell Labs and AT&T UNIX </li></ul><ul><ul><li>PDP-11 is the computer of many departments of computer science and so UNIX becomes the OS of the Universities </li></ul></ul><ul><ul><li>Bell Labs and AT&T UNIX development groups develop several version of UNIX: </li></ul></ul><ul><ul><ul><li>first edition (1969), …,seventh edition (1978,on PDP-11/70) </li></ul></ul></ul><ul><ul><ul><li>a version for Interdata 8/2 and VAX </li></ul></ul></ul><ul><ul><ul><li>UNIX for a network of computers </li></ul></ul></ul><ul><ul><ul><li>System III (1982 - first commercial version) </li></ul></ul></ul><ul><ul><ul><li>System V based on System III(1983) </li></ul></ul></ul><ul><ul><ul><li>System V release 2, 3, 4 (1984 - 1989) </li></ul></ul></ul><ul><ul><ul><li>SVR4 (System V release 4; 1989 AT&T and Sun Micro systems) </li></ul></ul></ul><ul><ul><li>1993: AT&T becomes a phone company and sells UNIX to Novell </li></ul></ul>
  3. 3. The Unix System <ul><li>History University of California at Berkeley </li></ul><ul><ul><li>The most influential of the non-Bell Labs and non-AT&T UNIX development groups:. </li></ul></ul><ul><ul><ul><li>Thompson and some students develop 1BSD (Berkeley Software Distributions) starting from sixth edition (the first one out of Bell Labs) (1978). </li></ul></ul></ul><ul><ul><ul><li>3BSD - 4BSD UNIX resulted from DARPA funding to develop a standard UNIX system for government use. </li></ul></ul></ul><ul><ul><ul><li>This series contains 4.1BSD, 4.2BSD, 4.3BSD and 4.4BSD (1980-93) and has some important new tools: virtual memory , paging, multiuser, network connection by means of TCP/IP . </li></ul></ul></ul><ul><ul><ul><li>4.2BSD contains the text editor vi , the shell csh , Pascal and Lisp compilers, … </li></ul></ul></ul><ul><ul><li>Sun Microsystem, DEC and some other companies decides to develop their UNIX version starting from BSD versions instead of System V. </li></ul></ul>
  4. 4. History of UNIX Versions
  5. 5. The Standardization Projects <ul><li>History </li></ul><ul><ul><li>Several standardization projects seek to consolidate the variant flavors of UNIX leading to one programming interface to UNIX. The most important are: </li></ul></ul><ul><ul><ul><li>POSIX (Portable Operating System): merge of System V and BSD (1984) </li></ul></ul></ul><ul><ul><ul><li>IBM, DEC, Hewlett-Packard create OSF (Open Software Foundation) and their UNIX system is OSF/1 (1988) </li></ul></ul></ul><ul><ul><ul><li>X/OPEN defines the Single UNIX specification (1993) and the systems satisfying this specification have the trademark UNIX 95 </li></ul></ul></ul><ul><ul><ul><li>Open group (merge of Open Software Foundation and X/OPEN; 1996) </li></ul></ul></ul><ul><ul><ul><ul><li>Definition of the second version of the Single UNIX specification (1997) with the trademark UNIX 98 </li></ul></ul></ul></ul>
  6. 6. A variant of the UNIX System <ul><li>Although there are many version of UNIX, the most important companies provide version based on UNIX System V Release 4 ( SVR4 ) and the last the Single UNIX specification </li></ul><ul><ul><li>ex. Solaris 2.x is the most widely used and most successful commercial UNIX implementation. </li></ul></ul><ul><li>These systems are very big and very complicated (the contrary of the Thompson’s basic idea) and in same case expensive. </li></ul><ul><li>So, Tanenbaum develops MINIX (1987) a small free UNIX system (11800 rows of C code and 800 rows of Assembler code) satisfying POSIX. </li></ul><ul><ul><li>MINIX is a free educational system based on micro-kernel model ( ) </li></ul></ul>
  7. 7. Common System Components of an OS <ul><li>Process Management </li></ul><ul><li>Main Memory Management </li></ul><ul><li>File Management </li></ul><ul><li>Secondary Memory Management </li></ul><ul><li>I/O System Management </li></ul><ul><li>Networking </li></ul><ul><li>Protection System </li></ul><ul><li>Command-Interpreter System (Shell) </li></ul>
  8. 8. System Structure <ul><li>System structure: defines the connections and manages the System Components </li></ul><ul><li>Some system structures </li></ul><ul><ul><li>Monolithic </li></ul></ul><ul><ul><li>Client-Server model (micro-kernel) </li></ul></ul>
  9. 9. Monolithic Operating System Structure <ul><li>A monolithic system has not a well defined structure. It includes virtually all of the operating-system functionality in one large block of code that runs as a single process with a single address space. All the functional components of the kernel have access to all of its internal data structures and routines. </li></ul>
  10. 10. The Client-Server Model <ul><li>Moves as much from the kernel into “ user ” space. In this way it remains only a micro-kernel . </li></ul><ul><li>Communication takes place between user modules using message passing. </li></ul>
  11. 11. The Client-Server Model <ul><li>Advantages </li></ul><ul><ul><li>easier to extend a micro-kernel </li></ul></ul><ul><ul><li>easier to port the operating system to new architectures </li></ul></ul><ul><ul><li>more reliable (less code is running in kernel mode) </li></ul></ul><ul><ul><li>more secure </li></ul></ul><ul><li>Disadvantages </li></ul><ul><ul><li>Deterioration of the performances </li></ul></ul><ul><li>MINIX has the I/O drivers into the kernel (this is for technical reasons connected to 8088 architecture), while the Main Memory Management, and the File Management are two different user processes. </li></ul>
  12. 12. The Linux System <ul><li>There is not a free BSD system at the end of the eighties, and so many members of MINIX newsgroup ask to Tanenbaum to introduce many modifications for improving the performances of MINIX. Some of these modifications could change the original educational project of Tanenbaum, and so often he said “ NO ” to these requests. </li></ul><ul><li>So, Linus Torvalds using a pc 386 with MINIX develops a small but self-contained kernel in 1991 ( Linux 0.01 ), with the major design goal of UNIX compatibility (i.e., satisfying POSIX). </li></ul>
  13. 13. Linux 0.01 <ul><li>The first version of Linux (Linux 0.01) has some of features of MINIX (ex. File system), but the main differences between Linux and MINIX are: </li></ul><ul><ul><li>The Linux kernel uses a monolithic model, and it has many more functions than the micro-kernel of MINIX. </li></ul></ul><ul><ul><li>From a theoretical point of view MINIX is better than Linux, but from a practical point of view the performances of Linux are better than that one of MINIX. </li></ul></ul><ul><ul><li>However, for a description of the point of view of Torvalds on the advantages-disadvantages of Linux-MINIX see the “ flame war ” between Torvalds and Tanenbaum in: </li></ul></ul><ul><ul><ul><li>Rivoluzionario per caso: come ho creato Linux (solo per divertirmi) , Linus Torvalds, Garzanti </li></ul></ul></ul>
  14. 14. The Linux Kernel <ul><li>Linux 0.01 (May 1991) had no networking, ran only on 80386-compatible Intel processors and on PC hardware, had extremely limited device-drive support, and supported only the Minix file system. </li></ul><ul><li>Linux 1.0 (March 1994) included these new features: </li></ul><ul><ul><li>Support for UNIX’s standard TCP/IP networking protocols </li></ul></ul><ul><ul><li>BSD-compatible socket interface for networking programming </li></ul></ul><ul><ul><li>Device-driver support for running IP over an Ethernet </li></ul></ul><ul><ul><li>Enhanced file system </li></ul></ul><ul><ul><li>Support for a range of SCSI controllers for high-performance disk access </li></ul></ul><ul><ul><li>Extra hardware support </li></ul></ul><ul><li>This version is sufficient compatible with UNIX and many people are interested in developing Linux under Torvald supervision. </li></ul><ul><li>Linux 1.2 (March 1995) was the final PC-only Linux kernel. </li></ul>
  15. 15. Linux 2.0 <ul><li>Released in June 1996, 2.0 added two major new capabilities: </li></ul><ul><ul><li>Support for multiple architectures </li></ul></ul><ul><ul><li>Support for multiprocessor architectures </li></ul></ul><ul><li>Other new features included: </li></ul><ul><ul><li>Improved memory-management code </li></ul></ul><ul><ul><li>Improved TCP/IP performance </li></ul></ul><ul><ul><li>Support for internal kernel threads, for handling dependencies between loadable modules, and for automatic loading of modules on demand. </li></ul></ul><ul><ul><li>Standardized configuration interface </li></ul></ul><ul><li>Available for Motorola 68000-series processors, Sun Sparc systems, and for PC and PowerMac systems. </li></ul><ul><li>Linux 2.2 January 1999 improves some aspects of Linux 2.0 </li></ul><ul><li>The last release is Linux 2.4 (production) Linux 2.6.13 (development) </li></ul>
  16. 16. The Moral of the Story <ul><li>Linux is a modern, free operating system based on UNIX standards. </li></ul><ul><li>First developed as a small but self-contained kernel in 1991 by Linus Torvalds, with the major design goal of UNIX compatibility. </li></ul><ul><li>Its history has been one of collaboration by many users from all around the world, corresponding almost exclusively over the Internet ( software open source ). </li></ul><ul><li>It has been designed to run efficiently and reliably on common PC hardware, but also runs on a variety of other platforms. </li></ul><ul><li>The core Linux operating system kernel is entirely original , but it can run much existing free UNIX software, resulting in an entire UNIX-compatible operating system free from proprietary code. </li></ul>
  17. 17. The Linux System <ul><li>Linux uses many tools developed as part of Berkeley’s BSD operating system, System V, MIT’s X Window System, and the Free Software Foundation's GNU project . </li></ul><ul><li>The main system libraries were started by the GNU (GNU’s Not Unix) project (ex. gcc (GNU C compiler) ), with improvements provided by the Linux community. </li></ul><ul><li>Linux networking-administration tools were derived from 4.3 BSD code; recent BSD derivatives such as FreeBSD have borrowed code from Linux in return. </li></ul><ul><li>The Linux system is maintained by a network of developers collaborating on Internet (see /usr/src/linux/CREDITS), with a small number of public ftp sites acting as de facto standard repositories. </li></ul>
  18. 18. Linux Distributions <ul><li>Standard, precompiled sets of packages, or distributions , include the basic Linux system, system installation and management utilities, and ready-to-install packages of common UNIX tools. </li></ul><ul><li>The first distributions managed these packages by simply providing a means of unpacking all the files into the appropriate places; modern distributions include advanced package management. </li></ul><ul><li>Red Hat, Debian, SuSE, Mandrake are popular distributions from commercial and noncommercial sources, respectively (see ). </li></ul><ul><li>The RPM Package file format permits compatibility among the various Linux distributions (see www. linuxbase .org ). </li></ul>
  19. 19. Which distribution to use ? <ul><li>RedHat ( ) </li></ul><ul><ul><li>Big, professional, very widely used </li></ul></ul><ul><li>Debian ( ) </li></ul><ul><ul><li>Open development model, excellent packaging system </li></ul></ul><ul><li>Mandrake ( www. mandrakesoft .com ) </li></ul><ul><ul><li>Aims to be very easy to install and use </li></ul></ul><ul><li>SuSE ( ) </li></ul><ul><ul><li>Compromise between Red Hat and Mandrake </li></ul></ul><ul><li>Slackware ( ) </li></ul><ul><ul><li>Most traditional; little extra help </li></ul></ul>
  20. 20. Users <ul><li>Linux is an intrinsically multi-user system </li></ul><ul><li>Every user on the system has its own username and password </li></ul><ul><li>The root user has ultimate power to run the system. You should not log in as root unless you really need to. </li></ul><ul><li>During installation, you should have been prompted for a root password and also a username and password for an ordinary user account . </li></ul><ul><li>The command passwd allows to change the password. </li></ul><ul><li>Careful : you have to perform the program shutdown –h now before to switch off the PC </li></ul>
  21. 21. Linux Licensing <ul><li>The Linux kernel is distributed under the GNU General Public License (GPL) , the terms of which are set out by the Free Software Foundation . </li></ul><ul><ul><li>See /usr/src/linux/COPYING </li></ul></ul><ul><li>The main consequence of GPL is that anyone using Linux, or creating their own derivative of Linux, may not make the derived product proprietary; software released under the GPL may not be redistributed as a binary-only product. </li></ul><ul><li>For a deeper examination of this subject see </li></ul>