COMP 3000 2011 Report: SliTaz

From Soma-notes
Jump to navigation Jump to search

Part 1

Background

The linux distribution that I have chosen is called SliTaz. It is developed by the SliTaz GNU/Linux Association with the main developer being Christophe Lincoln. The main goal of its developers was to create one of the smallest capable OS available today. SliTaz can be obtained here.

Being just about 30 megabytes and taking approximately 16 megabytes of ram, this distribution is perfect for use on older computers. As little as 16 megabytes of ram is required but is only recommended if SliTaz is installed on the hard disk. Otherwise, with the LiveCD, you will have to either use a text based interface, upgrade to 80 megabytes of ram and use the "loram-slitaz" LiveCD version, or get 192 megabytes of ram if you would like to use the default version. This is good news for people that would like to use their decade old computer as a web server or a secondary workstation for the family. Another useful application for this OS is to use it on netbooks; These machines often come with bloatware and an operating system that is too resource hungry for its own good, making the experience very slow and frustrating for the user. Finally, users that want to keep their working environment on a usb key would most definitely be interested in this piece of software.

Installation/Startup

Running SliTaz for the first time

The download file is of type ISO and I chose to burn it on a CD, but it can also be copied on a usb. A file that enables booting from the floppy drive is also available for situations when a cd-rom is not available. This method makes it possible to boot SliTaz from a usb drive, a hard drive, and even a network. Once that is done, you must reboot your computer and boot from the cd. From there, SliTaz initializes itself and starts the boot sequence. It asks you in which language you would like the OS to run as well as the type of keyboard that is preferred. The whole boot sequence is very fast and takes about 30-45 seconds to get to the desktop.


Installing SliTaz on a hard drive

The liveCD includes an installer for both a hard drive install or a usb key install. Either of them is recommended if you would like to keep data from your working environment. I have personally tried the hard drive install and everything went pretty well. Before I could start the installation process, I had to create a new ext3 partition using the GParted application included in SliTaz. Once that was done, I started the installation. Between selecting the partition and setting up my account, by choosing a username, password and language, the installation process took less than 2 minutes. At the end, the installer asked me if I wanted to install GRUB, which is a bootloader designed to choose between multiple operating systems. I naturally said yes, so the installation finished. This is where I had a small hiccup: after rebooting, I noticed that I could only boot in linux (I had windows 7 installed). After doing a little bit of research, I found out that I had to edit one of GRUB's config file in order to make it aware that windows 7 existed on one of the partitions; everything ran flawlessly from then on.


IMG 0002.jpg

SliTaz's initial boot screen

Since my new partition was 1.6 gigabytes and the file manager showed that only 1.3 gigabytes was left, I concluded that the whole installation took about 300 megabytes, which is very reasonable. All in all, I was very impressed with the speed and simplicity of the installation.

Basic Operation

As a programmer, there is some value in having an emergency development environment in case anything happens to your main computer, because it allows you to still meet some deadlines. SliTaz would be a very good candidate because of the fast installation process, the low system requirements and the flexibility offered by its package manager.

As a normal user, all of the mentioned properties are also advantageous because it allows me to use old computers and netbooks as perfectly acceptable recreational stations.

The development environment

SliTaz's default set of applications for developers is okay, but nothing extraordinary. The editor is called beaver and is exceedingly basic. There is no text highlighting, compilation module, ftp server support and file/project manager. It really is just a text editor. It supports plugins, so I assume that some of these issues can be remedied, but I haven't tried using them. Instead, I used the package manager to download "emacs", one of the most customizable editor, which means that its functionality can be scaled with the kind of computer being used.

The graphics section had some interesting applications to help with development involving any kind of graphics, such as game or web development. Clicking on "edit image" automatically downloads the latest version of GIMP, a very good open source image editor. It is very powerful and does most of what paid applications such as photoshop do. Although this is most likely the only tool needed for this kind of work, applications like the color selector and the vector graphics editor, inkscape, are welcomed additions.

The browser, called Midori, is quite fast and passes the acid3 test. However, it does not support flash out of the box and downloading the flash package did not fix that problem. It also does not support much of html 5 so it is not the best browser to test development work. Luckily, firefox and chrome are pretty small downloads and will get you as close as possible to an ideal testing environment. Internet explorer is unfortunately not available for linux.

SliTaz does not come with a compiler but I was able to quickly find a package for gcc.

The recreational environment

Midori again falls short here because of the lack of flash support. This will almost always force the user to either download opera, firefox or chrome. During my evaluation, firefox was expeditious and would behave normally in all test cases, making it a very good contender.

SliTaz includes some useful apps such as an irc client, a twitter client as well as a ssh client. If the "chat" button is clicked, the messenger application called pidgin is automatically downloaded and installed, which shows a lot about the OS' flexibility (by this I mean that the distribution is not bloated with all the possible applications; The user has to choose which ones he wants installed).

As for multimedia, SliTaz uses alsa player for music and mplayer for videos. While I don't know much about them, they seem to be very capable applications. Judging from their website, alsa player doesn't seem to be continually updated but mplayer, on the other hand, is.

The general environment

For general use, SliTaz provides a burning software, a word editor called "Abiword" and a spreadsheet editor called Gnumeric spreadsheet. Only one game, sudoku, comes with the default package, but it is no doubt possible to download and install new ones.

The package manager was a breeze to use and I was quite impressed by the large number of downloads available, currently sitting at a little bit more than 2000.

The OS' control panel, comprising of things such as the hardware and network managers, was quite simple to use. It was not bloated and only showed the meaningful settings.


A look at SliTaz's package manager

A Look at SliTaz's Package Manager

Usage Evaluation

SliTaz is no doubt a very useful package because it starts very slim, an important trait to have when running on slow computers, but it can also easily scale up to the desired balance of speed, memory usage and utility. The package manager makes this process quick and simple, with the only inconvenient being that the packages' information must be maintained. If, however, an application cannot be found on it, there is nothing stopping you from downloading and installing it manually; it is a win-win situation.

The only thing that I would change would be the browser, simply because most other options out there are better. The opportunity cost of going with firefox or chrome is very minimal, if not relatively insignificant.

Being that the goal of this distribution was to make the smallest possible OS, I think that they have succeeded. Its small memory footprint makes it ideal for old computers and netbooks, while its fast boot time makes it a good contender in the "OS on a usb" market. While it is a good thing that SliTaz is only 30 megabytes, what makes it stand out is the thought that was put into the design, making sure that every feature was optimally minimal.


Part 2

Software packaging

The packaging software used by SliTaz is called Tazpkg. It is a lightweight package manager with a size of about 35 kilobytes and is built from scratch using SH's shell script (SHell script). The packages are archived in a format called "cpio" and are embedded with a filesystem. This "cpio" file format has been used almost universally in unix and linux based kernels since 1976 and is a good contender to "tar". Right now, taspkg contains approximately 2085 installable packages.

Usability

Before we can do anything with the package manager, we need to request a list of available packages. SliTaz includes a graphic interface that makes tazpkg very easy to use. Simply opening the interface will give you this list. Double clicking on one of the entry will spawn a modal window containing information pertaining to the package, such as its version, category, size, website and receipt. The window also allows the user to choose between installing, downloading or viewing the content of the package. If the package is already installed, the option to install is replaced with the option to remove.

If graphical interfaces is not your thing, you can always use the shell commands. For example, getting the list of available package is as easy as typing "tazpkg list".

Major package versions

'''Linux kernel''' SliTaz's version : 2.6.30.6 Latest version : 3.1.1, nov 11, 2011 Source : http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.1.1.tar.bz2

Vintage

The linux kernel used in SliTaz is 796 days, or 2 years, 2 months and 5 days old. As the last version of the kernel came out on november 11, 2011, SliTaz is using a version that is 794 days behind the latest release.

Modifications

According to SliTaz's release notes, the kernel was patched to support LZMA (Lempel-Ziv-Markov chain-Algorithm) compression and display correction for the virtual console. Only the minimal parts of the kernel are available but modules can be added by the user through the packaging system. This was done to ensure compatibility with a wide range of computer while keeping the distribution lean. In version 3.0, additional drivers were added to the kernel in order to speed up boot speed.

Speculations

I believe that linux was chosen because of its high customizability, unparalleled stability through years of testing, and wide adoption by the community.

Being able to customize the kernel allows the developers to make it as lean and fast as possible while giving the end users the possibility to add new modules to fill their needs. In addition, linux is one of the most stable operating system because it has been tested for many years by a lot of different people. For the same reasons, a lot of documentation and help is available online which makes it much easier to fix potential problems. There is no doubt in my mind that using the linux kernel was the right choice to do in this situation.


glibc : 2.10.1 : 2.14, June 1, 2011 xorg : 1.5.2 : 1.11.2, nov 4, 2011 GTK+ : 2.16.5 : 3.2.2 nov 12, 2011 busybox 1.12 : 1.19.2, sept 12, 2011, nov 4 1999 tazpkg 3.2.2 midori 0.2.4 pidgin 2.6.5 sqlite 3.6.16 : 3.7.9 lua 5.1.4 : 5.1.4

Source

http://hg.slitaz.org/tazpkg/raw-file/tip/doc/tazpkg.en.html http://en.wikipedia.org/wiki/Cpio http://www.slitaz.org/en/doc/releases/2.0/relnotes.en.html#kernel