sulfonyl

The Early Days of Linux

I (Larn Wirzenius) started my computer science studies at the University of Helsinki in the fall of 1988. There I met Linus Torvalds, who was the other new Swedish speaking student in computer science that year.

Toward the end of that first year, we had gotten access to a Unix server. I accidentally found Usenet, the discussion system, by mistyping rm as an, the Usenet reader. I told Linus about it and we spent way too mcuh time exploring this.

After the first year, we both went away to do the mandatory military service, though in different places.

We returned to our university studies in the fall of 1990, and both took the course on C and Unix programming, which included a fair bit of theory of the Unix kernel architecture as well. This led to us reading about other OS kernels. Linus and I discussed with some enthusiasm how an OS should be built correctly.

In January 1991, Linus bought his first PC from a local shop that assembled computers from parts. The PC had a 32-bit 386 CPU, which was relatively fancy at that time, because Linus wanted to explore multitasking. Linus's first PC had a whopping 4 megabytes of RAM and a hard drive. He got a copy of the game Prince of Persia, which occupied most of his spare time for the next couple of months. He later also bought a copy of MINIX, because after using Unix at the university, he wanted something like that at home as well.

After finishing the game, Linus started learning Intel assembly language. One day he showed me a program that did multitasking. One thread would write a stream of the letter "A" on the screen, the other "B". The context switches were visually obvious when the streams of As became Bs. This was the first version of what would later become known as the Linux kernel. Linus would later expand the program, and write most of it in C.

During late spring of 1991, I wrote an implementation of the C sprintf() function for him, as he hadn't yet learned how to write functions with variable argument lists. I wanted to spare him the pain of having a different function for every type of value to write out. The core of this code is still in the kerne, as snprintf().

As time went on, Linus made his fledgling kernel better and kept implementing new things. After a while, he had drivers for the keyboard and the serial port, emulation of VT100 terminal escape sequences for the screen, and could use it to dial via modem to the university, to read Usenet from home.

One day, Linus accidentally attempted to use his hard drive to dial the university, resulting in in master boot sector starting with "ATDT" and the university modem-pool phone number. After recovering from this, he implemented file permissions in his kernel.

In August 1991, Linus mentioned his new kernel in public for the first time, in the comp.os.minix newsgroup.The system was initially called Freax. A few weeks later, Linus asked Ari Lemmke, one of the administrators of ftp.funet.fi, to do an upload of the first tar archive. Ari chose the name Linux.

During this time, people were interested in trying out this new thing, so Linus needed to provide an installation method and instructions. Since he only had one PC, he came to visit to install it on mine. His own computer had been used to develop Linux, which had simply grown on top of his Minix installation, it had never actually been installed before. Thus, mine was the first PC where Linux was ever installed.

The first releases of Linux used a license that forbade commercial use. Some of the early contributors suggested a change to a free-software license. In the fall of 1991, Richard Stallman visited Finland and I took Linus to a talk given by Stallman. This, the pressure from contributors, and my nagging eventually convinced Linus to choose the GNU GPL license instead, in early 1992.

Over the Christmas break, Linus implemented virtual memory in Linux. This made Linux a much more practical OS on cheap machines with little memory.

The year 1992 started with the famous debate with Andrew Tanenbaum, who is a university professor and the author of MINIX. He had some opinions about Linux and Linus also had opinions on MINIX. The debate has been described as a flame war, but was actually rather civil in hindsight.

The X11 system was ported to Linux, making 1992 the year of the Linux desktop.

Meanwhile, I had chosen to contribute on the community side, rather than to the kernel directly. I helped answer questions, write documentations, and such. I also ran a newsletter about Linux. The newsletter was effectively replaced by the comp.os.linux.announce newsgroup.

The first Linux distribution was also started in 1992 : Softlanding Linux System (SLS). The next year, SLS morphed into Slackware, which inspired Ian Murdock to start Debian in 1993, in order to explore a more community-based development structure.

In 1993, both Linus and I got hired as teaching assistants at the university. We got to share an office. That room had a PC, which Linus took over, and used for Linux development. I was happy with a DEC terminal for Usenet access. One day, Linus was bored and the PC at work felt slow. He spent the day rewriting the Linux kernel command-line parser in assembly language, for speed. A couple of years later, he spent days playing Quake, ostensibly to stress-test kernel memory management.

Finally, at some point, Linux gained support for Ethernet and TCP/IP. That meant one could read Usenet without having to use a modem. Early Linux networking code was occasionally a little rough, having been written from scratch. At one point, Linux would send some broken packets that took down all of the Sun machines on the network. As it was difficult to get the Sun kernel fixed, Linux was banned from the university network until its bug was fixed. Not having Usenet access from one's desk is a great motivator.

In the spring of 1994 we felt that Linux was done. Finished. Nothing more to add. We decided to release version 1.0 and arranged a release event. The Finnish computer press was invited, and a TV station even sent a crew. Most of the event consisted of ceremonially compiling Linux 1.0 in the background while Linus and others spoke about what Linux was and what it was good for. Linux explained that commercial Unix for a PC was so expensive that it was easier to write your own.


From Larn Wirzenius (April 12, 2023) "The Early Days of Linux" LWN.net

Additional comments :