SLAX linux,是本文的主角,因為他不需要安裝在硬碟,只需要燒錄在光碟片和隨身碟上就可以跑。
SLAX LINUX的ISO檔案只有差不多200MB的大小,但是,麻雀雖小但五髒俱全,這個ISO檔案裡已經安裝了記事本、幾款小遊戲等。
首先,介紹一下如何安裝SLAX LINUX,其實過程超級簡單:
1.在迅雷搜尋SLAX LINUX,下載一個名為Slax ChineseOptimized.iso這個檔案,因為這個ISO已經整合中文環境(簡體漢字以及中文IME)以及常用工具(如PDF閱讀器以及OFFICE工具等),當然,你可以下載一個沒安裝任何軟體的SLAX LINUX來使用。
2.啟動ISO方式,有兩個:一。用VMware虛擬機器讀取ISO檔案;二。用Nero等工具燒錄到CD中,建議使用第一種方式使用這個SLAX LINUX,因為可以用WINISO等工具修改ISO檔案,而燒錄後的光碟片可就不能隨便添加刪除了。
以下,介紹如何往這個小型的LINUX中安裝軟體:
1.首先要下載一個WINISO,這個軟體用於添加、刪除ISO中的軟體包(.mo格式的檔案)。
2.到http://www.slax.org/modules.php,下載你想要安裝的軟體包(.mo格式的檔案)
例如,我選擇Development module這個開發包,Development module的簡介如下:
Official development module for SLAX 5.1.4. This module contains gcc compiler, make, and all the missing header files from SLAX (which are deleted because of size). Included programs are (for example):
- gcc 3.4.6
- python 2.4.3
- autoconf
- automake
- bin86
- binutils
- glibc
- libtool
- make
- x11-devel
- and many more
Moreover this module contains kernel headers from 2.4 kernels, this is correct as glibc was compiled with 2.4 kernel headers too. If you need to compile kernel modules for 2.6.x kernels, just download kernel source from kernel.org, or use SLAX kernel source module.
This module doesn't contain ncurses so you'll need to download ncurses separately if you need to do "make menuconfig".
3.接下來就是添加Official Development module.mo到ISO。
4.添加mo軟體包到SLAX LINUX後,就要重新安裝SLAX LINUX(前面提到的安裝方法),不然就不能裝載新安裝的軟體包。