Difference between revisions of "COMP 3000 2011 Report: Damn Small Linux - Not"

From Soma-notes
Jump to navigation Jump to search
(Created page with " ==Part II== '''Due:''' November 16, 2011, 11:30 PM The goal for Part II is for you to investigate and report what software is in your chosen distribution and how it is put toge…")
 
Line 1: Line 1:
==Part II==
==Part II==
'''Due:''' November 16, 2011, 11:30 PM
'''Due:''' November 16, 2011, 11:30 PM
Line 7: Line 6:
===Software Packaging===
===Software Packaging===


How is software packaged for this distribution?
Although I would have expected this distribution to use dpkg/apt because it is knoppix based, it seems in the interest of saving space they switched to the rpm package system (as revealed by rpm -i), the functionality is provided by busybox which provides a number of normal system functions at a reduced size.
* What packaging format and utilities are used?
 
* How can you use these utilities to get a list of installed packages?
As with DSL, DSL-N has an incredibly minimalistic guy for the custom package manager and provides repositories of apps ready to install. To access the list of programs you simply right click on the desktop and go to net and choose 'mydsl extension browser'. Then you select a section as shown in my screen shot. You're then presented with a simple list of applications and you can download and install them or remove them with one click. It also has the option to
* How do you add and remove packages?
 
* How extensive is the software catalog for this distribution?
The software catalog is not very extensive but it contains everything you would expect to find (although a little out of date) like firefox, openoffice, thunderbird, etc. There generally seems to be a focus on smaller less known educational apps as I would see this distribution having a large percentage of its presence in the educational market on low budget computers.
Please also include any other relevant information on the software packages associated with your distribution.
 


===Major package versions===
===Major package versions===
Line 18: Line 17:
Report on the version numbers and upstream source (URL of original source) for some of the major software packages included in your distribution as part of the standard install:
Report on the version numbers and upstream source (URL of original source) for some of the major software packages included in your distribution as part of the standard install:


* Linux Kernel or other kernel
* libc
* X.org or other GUI foundation
* Major GUI toolkits (Gtk+, Qt, Motif, etc.)
* shell (bash, csh, etc.)
* utilities (ls, ps, busybox)
* software packaging (rpm, dpkg, etc.)
* Web browser
* email
* other packages that are key to system usage


Choose at least 10 packages that fit into this list (you don't need to cover every category) and report the following:
Choose at least 10 packages that fit into this list (you don't need to cover every category) and report the following:
Line 33: Line 22:
* How heavily has the package been modified by the distribution authors?  (You'll need to figure out how to determine this.)
* How heavily has the package been modified by the distribution authors?  (You'll need to figure out how to determine this.)
* Why do you think this particular package was chosen for this distribution's standard install?  You may speculate, but please make an argument informed by relevant facts.
* Why do you think this particular package was chosen for this distribution's standard install?  You may speculate, but please make an argument informed by relevant facts.
Linux Kernel: http://www.kernel.org
Version Present: 2.6.12
Source: uname -r
Build Release Date: 17-Jun-2005 Source Code: http://www.kernel.org/pub/linux/kernel/v2.6/
Current Version: 2.6.39
Current Release date:  19-May-2011
libc: http://www.gnu.org/s/libc/
Source: ls /lib/libc*
Version Present: 2.3.2:
Current Version: 2.14
source: http://www.gnu.org/s/libc/
gtk+ 2: http://www.gtk.org/
Current Version GTK+ 2.24.8
Current release date 10-Nov-2011
Bash http://www.gnu.org/s/bash/
Source: bash --help
Version Present:2.05b
Build release date: 17 July 2002
Current Version 4.2
Current Release Date: 13 February 2011
busybox http://busybox.net/
Source: rpm -i
Version Present: v1.0.0.0
Build Release date:2006.01.20
Current Version: BusyBox 1.19.3
Current Release Date: 29 October 2011
Seamonkey Email + Web Browser http://www.seamonkey-project.org/
Web Browser Version Present: 2.0.2
Email Version Present: seamonkey 1.0.2
Build release date: 2006/05/16
Current Version: 2.4.1
Current Release date: Sept. 29 2011
abiword http://www.abisource.com/
Version Present: 2.2.7
Build release date: 18 December 2003
Current Version: 2.8.6
Current release date: Oct 27 2009
Gftp  http://www.gftp.org/
Version Present: 2.0.18
Build release date: 05 Feb 2005
Current Version: 2.0.19
Current release date 11/30/2008
gaim http://www.pidgin.im/
Version Present: 0.7.7
Current Version: pidgin 2.10
Current release date: 08/20/2011


===Initialization===
===Initialization===
I discovered the boot scripts in /etc/rcS.d, there are 2 boot scripts:


Here describe how your distribution initializes itself. Specifically, give an outline of what programs are executed and in what order. Also document how you discovered this informationYou do not need to include every program; however, you should be able to identify at least five major programs that are run.
S00knoppix--autoconfig runs first and does the following:
1.reinit usb devices that could not be started from linuxrc, probe necessary modules
2. mount filesystem readonly, with or without encryption
3. load alas sound daemon
4. load localization
5. set time
6. if running from HD, check file systems
7. mounts in read-write before continuing
8. if running from hard drive, regenerate module dependencies (klconfig ; depmod -a 2>/dev/null)
9. Set resolution and load /etc/init.d/splash.sh
10delete links to hardware that doesn't exist ie. /dev/sdrom /dev/mouse, etc
11. write knoppix config files for other scripts to parse
12. Activate modules for acpi (power management)
13. usb mouse check/seup. try both usb mouse modules in case someone has 2 different controllers usb-uhci and usb-ohci
14. load firewire modules, search and configure hardware, setup carom that hasn't been setup by hwsetup
15. automatic xf86 setup using /usr/sbin/mkvf86config
16: create /etc/fstab and scan for partitions/hard drives to add
17.auto mount all devices; floppies, cds, etc
18. overwrite old /etc/fstab
19. run /etc/init.d/autofs start to start the automounter


Note that you should provide an explanation for how all of the major processes end up running on a fully initialized system.
S01dsl-config runs next and does the following:
1. loads special modules for different devices
2. makes a list of installed applications
3. makes menus
4.  /etc/sysconfig/mydsl
5. ensures networking modules are loaded
6. deletes temporary folders created during boot /tmp/firstboot /miniroot /var/tmp and sets up a sym link from /var/tmp to /tmp and sets permissions on it.
7. checks for validity of user account and forces you to set a new password if you must
8. sets boot device
9. starts the appropriate user defined services in this order: ssh, lp, nfs, monkey web server, syslog, ftp, /etc/init.d/mkwriteable, touch /etc/sysconfig/unionfs touch/etc/sysconfig/writeable, load rest of modules
10. mount directories
11. iconcheck, orphancheck, mkmydslmenu

Revision as of 23:26, 16 November 2011

Part II

Due: November 16, 2011, 11:30 PM

The goal for Part II is for you to investigate and report what software is in your chosen distribution and how it is put together. My preference is that you work with the same distribution as for Part I. If you switch distributions, please include a background section as in Part I.

Software Packaging

Although I would have expected this distribution to use dpkg/apt because it is knoppix based, it seems in the interest of saving space they switched to the rpm package system (as revealed by rpm -i), the functionality is provided by busybox which provides a number of normal system functions at a reduced size.

As with DSL, DSL-N has an incredibly minimalistic guy for the custom package manager and provides repositories of apps ready to install. To access the list of programs you simply right click on the desktop and go to net and choose 'mydsl extension browser'. Then you select a section as shown in my screen shot. You're then presented with a simple list of applications and you can download and install them or remove them with one click. It also has the option to

The software catalog is not very extensive but it contains everything you would expect to find (although a little out of date) like firefox, openoffice, thunderbird, etc. There generally seems to be a focus on smaller less known educational apps as I would see this distribution having a large percentage of its presence in the educational market on low budget computers.


Major package versions

Report on the version numbers and upstream source (URL of original source) for some of the major software packages included in your distribution as part of the standard install:


Choose at least 10 packages that fit into this list (you don't need to cover every category) and report the following:

  • What is the vintage of the included package? How old is it, and how far is it behind the latest stable release for this package?
  • How heavily has the package been modified by the distribution authors? (You'll need to figure out how to determine this.)
  • Why do you think this particular package was chosen for this distribution's standard install? You may speculate, but please make an argument informed by relevant facts.


Linux Kernel: http://www.kernel.org Version Present: 2.6.12 Source: uname -r Build Release Date: 17-Jun-2005 Source Code: http://www.kernel.org/pub/linux/kernel/v2.6/ Current Version: 2.6.39 Current Release date: 19-May-2011

libc: http://www.gnu.org/s/libc/ Source: ls /lib/libc* Version Present: 2.3.2: Current Version: 2.14 source: http://www.gnu.org/s/libc/

gtk+ 2: http://www.gtk.org/ Current Version GTK+ 2.24.8 Current release date 10-Nov-2011

Bash http://www.gnu.org/s/bash/ Source: bash --help Version Present:2.05b Build release date: 17 July 2002 Current Version 4.2 Current Release Date: 13 February 2011

busybox http://busybox.net/ Source: rpm -i Version Present: v1.0.0.0 Build Release date:2006.01.20 Current Version: BusyBox 1.19.3 Current Release Date: 29 October 2011

Seamonkey Email + Web Browser http://www.seamonkey-project.org/ Web Browser Version Present: 2.0.2 Email Version Present: seamonkey 1.0.2 Build release date: 2006/05/16 Current Version: 2.4.1 Current Release date: Sept. 29 2011

abiword http://www.abisource.com/ Version Present: 2.2.7 Build release date: 18 December 2003 Current Version: 2.8.6 Current release date: Oct 27 2009

Gftp http://www.gftp.org/ Version Present: 2.0.18 Build release date: 05 Feb 2005 Current Version: 2.0.19 Current release date 11/30/2008

gaim http://www.pidgin.im/ Version Present: 0.7.7 Current Version: pidgin 2.10 Current release date: 08/20/2011


Initialization

I discovered the boot scripts in /etc/rcS.d, there are 2 boot scripts:

S00knoppix--autoconfig runs first and does the following: 1.reinit usb devices that could not be started from linuxrc, probe necessary modules 2. mount filesystem readonly, with or without encryption 3. load alas sound daemon 4. load localization 5. set time 6. if running from HD, check file systems 7. mounts in read-write before continuing 8. if running from hard drive, regenerate module dependencies (klconfig ; depmod -a 2>/dev/null) 9. Set resolution and load /etc/init.d/splash.sh 10. delete links to hardware that doesn't exist ie. /dev/sdrom /dev/mouse, etc 11. write knoppix config files for other scripts to parse 12. Activate modules for acpi (power management) 13. usb mouse check/seup. try both usb mouse modules in case someone has 2 different controllers usb-uhci and usb-ohci 14. load firewire modules, search and configure hardware, setup carom that hasn't been setup by hwsetup 15. automatic xf86 setup using /usr/sbin/mkvf86config 16: create /etc/fstab and scan for partitions/hard drives to add 17.auto mount all devices; floppies, cds, etc 18. overwrite old /etc/fstab 19. run /etc/init.d/autofs start to start the automounter

S01dsl-config runs next and does the following: 1. loads special modules for different devices 2. makes a list of installed applications 3. makes menus 4. /etc/sysconfig/mydsl 5. ensures networking modules are loaded 6. deletes temporary folders created during boot /tmp/firstboot /miniroot /var/tmp and sets up a sym link from /var/tmp to /tmp and sets permissions on it. 7. checks for validity of user account and forces you to set a new password if you must 8. sets boot device 9. starts the appropriate user defined services in this order: ssh, lp, nfs, monkey web server, syslog, ftp, /etc/init.d/mkwriteable, touch /etc/sysconfig/unionfs touch/etc/sysconfig/writeable, load rest of modules 10. mount directories 11. iconcheck, orphancheck, mkmydslmenu