Difference between revisions of "COMP 3000 2011 Report: CrunchBang"

From Soma-notes
Jump to navigation Jump to search
Line 121: Line 121:
|-
|-
| Coreutils (GNU core utilities)
| Coreutils (GNU core utilities)
conky
| 8.5.1
| http://www.gnu.org/s/coreutils/
| http://www.gnu.org/s/coreutils/
|-
|-

Revision as of 20:52, 4 November 2011

Part 1

Background

The Linux distribution I chose is CrunchBang which is commonly referred to as '#!'. CrunchBang is "designed to offer a modern, full-featured GNU/Linux system without sacrificing performance."<ref name="About CrunchBang">About Crunchbang Linux. (2011, Feb. 18). Retrieved October 14, 2011 from http://crunchbanglinux.org/wiki/about</ref> CrunchBang boasts that it is faster than Debian, while still being compatible with all Debian packages. Another key feature is that it is highly configurable due to its usage of several highly-customizable components (Openbox window manager, Thunar file manager and Conky system monitor in particular are all mentioned on the about page)<ref name="About CrunchBang"/>.

From browsing the forums, it appears that CrunchBang appeals to users who like to customize their desktop appearance. Some of the most popular threads on the forums are those for screenshots of the users' desktops. In fact, they have monthly threads solely for this purpose, and the threads for August 2011 and September 2011 had over 1000 replies each. There is also a DeviantArt page for users of CrunchBang to post their themes, screenshots, desktops and such.

CrunchBang was created and continues to be developed by Philip Newborough<ref name="wiki">CrunchBang Linux. (2011, Sep. 26). Retrieved October 14, 2011 from http://en.wikipedia.org/wiki/CrunchBang_Linux</ref> who goes by the name "corenominal" on the CrunchBang forums and on his blog. Philip does all of the development himself.

The latest release of CrunchBang, called CrunchBang 10 "Statler" R20110207, is available in 32-bit and 64-bit versions with either the Openbox window manager or the Xfce4 desktop manager. They are available for download as torrents from the CrunchBang downloads page. The installation CD images are between 640-690MB in size, while a fresh installation of 64-bit CrunchBang took about 1.7 GB of hard disk space.

CrunchBang is based on Debian GNU/Linux,<ref name="About CrunchBang"/> with the latest release being based on Debian 6.<ref>CrunchBang 10 “Statler” r20110207. (2011, Feb. 8). Retrieved October 14, 2011 from http://crunchbanglinux.org/blog/2011/02/08/crunchbang-10-statler-r20110207/</ref> Previous to this, CrunchBang was based off of Ubuntu releases, up to Ubuntu 9.04.01.<ref>Development release: CrunchBang 10 “Statler” Alpha 1. (2010, March 19). Retrieved October 14, 2011 from http://crunchbanglinux.org/blog/2010/03/19/development-release-crunchbang-10-statler-alpha-1/</ref>

Installation/Startup

CrunchBang boot menu

After booting CrunchBang from an installation image, it gives you the option of running it as one of two live sessions, performing a text-based installation, or a graphical installation (as well as running a memory test). As there were two versions of CrunchBang, one using the Openbox window manager, and another using xfce4, I chose to install both, doing the graphical installation for the Openbox version, and text-based for xfce.

Choosing the language in a graphical installation (left) and a text-based installation (right)

I performed both installations from VirtualBox, giving both systems identical hardware (16 GB hard disks, 512 MB of memory). Aside from the obvious difference in appearance between the two installation methods, there was no difference in the installation.

Installation progress of the graphical installer (left) and text-based installer (right)

Both installations asked for: language, location, keyboard configuration, host name, user's full name, username and password, time zone, and partitioning options.

The time taken for both installation methods was roughly 10 minutes and, just after installation, used roughly 1.7 GB of space on the virtual hard drive (though their virtual disk files on the host operating system were around 1.9 GB). No problems were experienced during either installation of CrunchBang, though there were problems installing the VirtualBox guest additions afterwards. Following the steps listed on their how-to wiki page did not work. Even after installing the appropriate packages as instructed, running the VBoxLinuxAdditions.run script simply produced no output. Following the instructions found on their forums at http://crunchbanglinux.org/forums/post/129314/#p129314 solved the issue. The same issue occurred in Debian, so it is not just a CrunchBang issue.

One feature I particularly liked was the startup script that it came with. Upon the first launch of a CrunchBang installation, a terminal is open running a script to automatically install a number of extra pieces of software, such as Java, OpenOffice, printer drivers, LAMP, an optional upgrade to the Liquorix/Zen kernel, as well as performing software updates.

Basic Operation

Xfce4 desktop (left) compared to Openbox desktop (right)

Both versions, Openbox and xfce, have a minimalist look and feel, showing simply a black background with the CrunchBang logo in the center and a dark task bar on the bottom. Notably, system information is displayed on the right side of the desktop, containing such things as the RAM usage and total RAM, swap usage, disk usage and CPU usage, as well as a list of common shortcut keys.

Openbox menu (left), xfce left side menu (center), xfce menu (right)

The main menu can be reached by a keyboard shortcut (super+space with openbox, super+alt with xfce), while the xfce version also has a small menu that pops open from the left side of the screen when the mouse is brought near.

Comparison to Debian

As CrunchBang boasts that it is a fast distribution, and since it is based upon Debian, I installed Debian in VirtualBox, giving it the same amount of memory as CrunchBang so as to compare the two. The Debian installation was much slower and larger, taking about an hour to install and occupying 3.2 GB of hard disk space. To be fair, Debian's installation disk was smaller (172 MB) and it had to download more than CrunchBang did which accounts for some of the difference in installation time.

To compare the speed of the two distributions I timed how long they took to compile the Linux kernel, using the latest stable release: 3.0.4. CrunchBang took 2 hours, 53 minutes and 4.917 seconds to compile while Debian took 2 hours, 39 minutes and 11.651 seconds to compile which somewhat belies CrunchBang's claim of being faster than Debian.

CrunchBang does boot up significantly faster than Debian. It took about 19 seconds for CrunchBang to boot to the login screen, whereas Debian took about 37 seconds. With only the startup processes and terminal running, Debian hovered around 324 MB of memory usage and 0.3-1.0% CPU usage, while CrunchBang used 267 MB of memory and 2-3% CPU usage. Killing the Conky process (which displays system information on the desktop) dropped CrunchBang to roughly 1% CPU usage.

Customization

Added a new sub-menu (Programming) with one item (Eclipse)
A custom desktop theme

CrunchBang boasts that it is highly configurable, so I took a look at some of the things that can be customized. The menu does not automatically add programs when they are installed but items can be added to it by editing an xml file or from a GUI utility. Using the GUI utility, obconf, it was easy to add new items to the menu. One neat thing it could do is have scripts run from the menu, for example to list all the files that had recently been opened.

A custom login screen

New themes for the window borders are basically a text file that contains colors and border sizes, similar to CSS, and images to be used as the icons on a window. The content of windows can by styled with GTK themes.

Other things, such as the login screen, Conky information and menus can all be configured. The learning curve for getting getting started with customization can be steep. The Openbox theme guide alone is over 5500 words. Since each of these custom elements use their own specification, changing all of them to one's liking would take a not insignificant amount of time to develop proficiency.

Usage Evaluation

CrunchBang does feel more responsive than Debian while running in VirtualBox. Starting programs feels like it takes less time, and the boot process is certainly faster. Out of the box, it has fewer running processes than Debian and the lower memory usage reflects that. Running Conky, causing the desktop to display constantly-updating system information does cause it to use slightly more CPU than Debian. I am not sure why Debian managed to compile the Linux kernel faster than CrunchBang did.

Statler periodically pops up on the desktop and insults the user

CrunchBang is a nice platform for those who like customizing the look of their system. That is not to say that the same could not be done on other systems. All of the customizable pieces of software contained in CrunchBang could be installed on Debian or other Linux distributions allowing for the same level of customization. CrunchBang itself does not actually help with the configuration, aside from including the different packages as part of the installation.

I really liked the startup script that goes lets the user pick a number of commonly-used packages to install. I wish other platforms had this; it would make installing Windows quite a bit faster.

One funny feature of the latest version of CrunchBang is related to its release name, Statler, who is a character on the Muppets. Periodically, a little window will appear on the desktop delivering insults and backhanded compliments to the user.

CrunchBang is almost as easy to use as some of the more popular distributions, such as Debian and Ubuntu. The only thing I've found to be less intuitive was the main menu since it is accessed via a keyboard shortcut or a right mouse click, as opposed to the normal way of having the menu open by clicking on a button on a task bar, as in Windows, Ubuntu, Debia, etc. It might not look as pretty out of the box as more popular distributions, but that is easily remedied by applying custom themes. Personally, I like the clean, minimalist appearance it presents.

Part 2

Software Packaging

Packaging Format and Utilities

As a distribution based off of Debian, it is not surprising that CrunchBang uses the same package format, .deb, and the same package manager, dpkg. This package manager installs, removes and supplies information about .deb packages<ref name=dpkg>dpkg. (2011, 16 Sept.). Retrieved November 3, 2011 from http://en.wikipedia.org/wiki/Dpkg</ref>. CrunchBang comes installed with several higher level package management tool that rely on dpkg and other tools, including Advanced Packaging Tool (APT), [wiki.debian.org/Aptitude aptitude], synaptic and tasksel. It also contains two utilities for manipulating .deb files: dpkg-deb and dpkg-split.

Listing Installed Packages

The Synaptic Package Manager lists all the packages installed on the system

Using the tools that come with CrunchBang there are several ways to get of installed packages. From the command line, you can use "dpkg --list" or "aptitude search '~i'". Aptitude can also open in a text-based shellby typing just 'aptitude' and from within there it all installed software can be listed. Alternatively, open the Synaptic package manager, click on the status button and then select 'Installed' from the list on the left.

Adding and Removing Packages

Packages can be added with dpkg by using 'dpkg --install <package_name>.deb' where the package is a file in your current working directory. They can be removed by using 'dpkg --remove <package_name>' (which will leave its configuration file) or 'dpkg --purge <package_name>' (which will remove the configuration file as well). This method is somewhat inconvenient for adding packages since they must first be downloaded. Using APT, 'apt-get install <package_name>' will install a particular package along with all of its dependencies, while 'apt-get remove <package_name>' will remove the package. Apt-get remove has an optional --purge flag (apt-get --purge remove <package_name>) that will remove configuration files, similar to dpkg --purge<ref name=pkgtools>The Debian Package Management Tools. Debian GNU/Linux FAQ. (2011, 27 Aug.). Retrieved November 3, 2011 from http://www.debian.org/doc/manuals/debian-faq/ch-pkgtools.en.html</ref>.

Aptitude can install packages from the command line via 'aptitude install <package_name>' and remove them with 'aptitude remove <package_name>' and 'aptitude purge <package_name>'. Once again, remove leaves the configuration files intact while purge removes them. Aptitude can also add and remove packages from its shell, launched by typing 'aptitude' at the command line. Synaptic provides a lists of all the packages that are installed and can be installed. Installing new packages is as simple as clicking on the package to be installed and marking it for installation, then clicking apply. Installed packages can be marked for removal (which leaves configuration files intact) or for complete removal (which removes configuration files), which are then removed when apply is clicked.

Software Catalog

Without adding any update sites manually, Synaptic found 28751 packages, of which 1168 were installed. Note that this is after the post-installation script ran, which did update the list of available packages (apt-get update). To compare, I ran apt-get update on Debian and then checked the number of packages known by my Debian installation and Synaptic listed 28130, of which 1304 were installed.

I checked if the package list contained developer software that I had used in the past, and it had Git (already installed), Eclipse, Mercurial, Python, QT libraries and QT creator, Boost libraries and Java in many flavors (J2EE, OpenJDK, etc.) and many libraries and services used with Java (Glassfish, Spring, JBoss). Some of these were not the most recent versions. For example, the version of Eclipse listed was 3.5.2 whereas the latest release is at 3.7.1, and for the Java JDK only J2EE 6u26 was listed which is three updates behind, as well as Java 7 having been released.

Major Package Versions

Here are the version numbers and upstream sources of various major software packages included in CrunchBang, and packages that are central to the system. Notably, CrunchBang comes with no email client. The Liquorix/Zen Kernel is not part of the installation itself, but is included as an option in the post-installation script so I included it in this list.

Package Version Upstream Source
Linux Kernel 2.6.32-38 http://www.kernel.org/
Liquorix/Zen Kernel 2.6.36-25 http://liquorix.net/
libc 2.11.2-10 http://www.gnu.org/s/libc/
X.org X Window System 7.5+8 http://www.x.org/wiki/
GTK+ 2.20.1-2 http://www.gtk.org/
Qt 4 4.6.3-4+squeeze1 http://qt.nokia.com/
Bash 4.1-3 http://www.gnu.org/software/bash/
Dash (Debian Almquist Shell) 0.5.5.1-7.4 http://gondor.apana.org.au/~herbert/dash/
Coreutils (GNU core utilities) 8.5.1 http://www.gnu.org/s/coreutils/
Busybox 1.17.1-8 http://busybox.net/
Chromium 9.0.597.45~r70550-1 http://dev.chromium.org/Home
Openbox 3.4.11.1-1 http://openbox.org/
Xfce4 4.6.2 http://www.xfce.org/
Conky 1.8.0-1+squeeze1 http://conky.sourceforge.net/
Thunar 1.0.2-1+b1 http://thunar.xfce.org/

Initialization

Part 3

References

<references />