http://underpop.online.fr/n/nielshorn Random thoughts, tips & tricks about Slackware-Linux, Lego and Star Wars Fri, 09 Nov 2012 00:02:45 +0000 http://wordpress.org/?v=2.8.4 en hourly 1 http://underpop.online.fr/n/nielshorn/2008/10/slackwarelinuxunix-pre-history-part-3-unix-wars-and-peace/ http://underpop.online.fr/n/nielshorn/2008/10/slackwarelinuxunix-pre-history-part-3-unix-wars-and-peace/#comments Tue, 21 Oct 2008 00:04:00 +0000 Niels Horn http://underpop.online.fr/n/nielshorn/blog/?p=25 The big split

The first versions of Bell Labs’ Unix. also known as ‘Research Unix’, included the full source code, allowing universities to improve and extend the operating system. As I wrote in the previous post in this series, UCB did a lot to add to Unix and created its own distribution – BSD.
The first version – 1BSD – was more like a set of add-ons and patches compiled by . Bit by bit, BSD became larger and larger, with every release coming closer to be a complete operating system.

Bill Joy, who started BSD and later co-founded SUN

In 1981 AT&T started selling commercial licenses of Unix, largely based on version 7 of Unix from Bell Labs, and called it System III. After including some of the BSD additions, like vi and curses, it released System V – Release 1 in 1983.
These two branches, BSD and System V, were incompatible.

Bill Joy founded SUN in 1983 with three graduate students from Stanford University who all had worked on the Stanford University Network, one of the four original ARPAnet nodes. They developed the SUN workstations running SunOS, based on BSD.

While the BSD-based versions dominated the workstation market, several new commercial versions were developed for the server market based on System V, like IBM’s AIX and HP’s HP-UX.

Attempts to standardize

Several attempts were made to create standards:

Peace

In 1993 the war finally ended with seventy-five vendors of hardware and software declaring support for X/Open. With this deal, the X/Open consortium acquired the rights to the Unix trademark and created the Single Unix Specification version 1.
In 1999 X/Open absorbed all activities related to the POSIX standard.

]]> http://underpop.online.fr/n/nielshorn/2008/10/slackwarelinuxunix-pre-history-part-3-unix-wars-and-peace/feed/ 0 http://underpop.online.fr/n/nielshorn/2008/10/slackwarelinuxunix-pre-history-part-2-a-new-language-a-philosophy-and-the-spreading-of-unix/ http://underpop.online.fr/n/nielshorn/2008/10/slackwarelinuxunix-pre-history-part-2-a-new-language-a-philosophy-and-the-spreading-of-unix/#comments Mon, 20 Oct 2008 14:24:00 +0000 Niels Horn http://underpop.online.fr/n/nielshorn/blog/?p=24 Needing a new language

The first crude version of Unix was written in assembler language on the PDP-7 and later the PDP-11. But Ken Thompson thought it should be written in a higher-level language. In 1971 he first experimented with Fortran, but according to some stories, he gave up after only one day. He then decided to write his own language, loosely based on BCPL, and called it simply B. But B was interpreted so it was too slow for an operating system. B also lacked types, which complicated things.
Ritchie first expanded B, adding types to the language, and named the result New B, or NB. The next step was writing a compiler, which took longer than expected. The result was the C language and Thompson started to rewrite Unix in it, which he finished in 1973.
With this Thompson and Ritchie created a much more portable operating system, leaving only small parts of the code machine-dependent.

The Unix Philosophy

, head of Bell Labs’ Computing Techniques Research Department, had created the concept of ‘pipes’ – chaining processes by streams, or: the output of one program becomes the input of another. His idea was to have specific tools to do specific jobs, and chain small tools together to do more complicated jobs. This was probably the first idea for ““. He summarized this as follows:
- Write programs that do one thing and do it well
- Write programs to work together
- Write programs to handle text streams, because that is a universal interface
This ultimately became known as “The Unix Philosophy”.

M. Douglas McIlroy

So the idea was there, but a syntax was needed to use it. Then came up with the vertical bar (|) and pipes were born, which led the way to creating several tools with specific tasks.
In the process, McIlroy developed several Unix tools like diff, spell, tr, and others.

A simple (and well-known) example of chaining two programs is:
echo "IBM 9000" | tr A-Z ZA-Y
Where the first part outputs the text “IBM 9000″, which goes as input to tr, which shifts all letters (A-Z) one position and forms the name of a computer from a famous movie (ok, I like Sci-Fi movies…).

Spreading of Unix

Unix was a fact now and AT&T started distributing licenses to universities and the government. In 1976 / 1977 Thompson took a six-month leave from Bell Labs to teach at UCB. And of course he taught Unix. After he left, professors and students improved some parts of Unix, creating what became the Berkeley Software Distribution, or BSD, which was resold to several other universities.
UCB established the , which received a grant from DARPA. They made the TCP/IP protocol available for Unix, opening the way for this operating system to play a key role in the early days of the internet.

The following BSD releases contributed several new tools to Unix, like a visual editor (that became vi), the c-shell, delivermail (which became sendmail) and the curses library, the forefather of ncurses.

For the VAX computer BSD included Virtual Memory Management. The kernel image of this Unix version was named vmunix – a name we can recognize in modern Linux kernels, normally named vmlinuz (the final ‘z’ because if the zlib-compression).

It is estimated that by 1978, over 600 (!) machines were running Unix.

To be continued…

]]> http://underpop.online.fr/n/nielshorn/2008/10/slackwarelinuxunix-pre-history-part-2-a-new-language-a-philosophy-and-the-spreading-of-unix/feed/ 1