DeLi Linux is an international desktop light linux distrubition for old computer, after about seven years’ development, its author, haary announced deli linux development stalled in DeLi Linux forum at November 8, 2008. If you are interested in such a linux distribution you can take over or even fork DeLi Linux.
Here is Hernry’s announcement: DeLi Linux development stalled http://www.delilinux.org/forum/topic.php?id=842
Read the rest of this entry »
This is the fifth diary of DeLi Linux Diaries Series, the previous is: DeLi Linux 0.8 Software Installation. This is also the last diary of this series.
I will introduce how to configure a comfortable chinese environment on DeLi Linux 0.8, include console and X Window environment. The console environment will introduce installation and using of softwares below mainly: Zhcon chinese console environment (input method), Screen (full screen window manager); W3m web browser; Vim text editor. X Window environment will introduce mainly: Fcitx input method; Firefox1.5 web browser; Dillo2 web browser and chinese font (e.g., Wen Quan Yi).
Because we need compile softwares from source, so install development tools at first, execute ” pacman -S devel ” to install all development tools in DeLi Linux 0.8. If your have little hard disk space, it seems will work only install ” binutils”, you can try ” pacman -S binutils “.
If you use chinese, and need to revitalize a very old machine (such as 486), console environment is a good choice. What can you do on a 486 plus Linux machine? I have used an Intel 486 DX100 plus 24M RAM machine a long time. I installed redhat linux 9.0 without X in it, I can do plenty of things on it, such as: W3m to surf internet, Wget to download, Mutt to receive and send mail, Mp3blaster to listen music, Gtmess MSN client, vim text editor, CVS, Ftp, Mysql, Emacs, Apache httpd, Jdk1.4, etc..(Some of these softwares I have not used on DeLi until today). So, I introduce console environment on DeLi Linux 0.8 first.
1, Zhcon chinese console environment (include WuBi and PinYin and some other chinese input methods)
DeLi Linux 0.8 has included Zhcon, if you don’t install it, execute “pacman -S zhcon” to install it. login into console, execute ” zhcon ” start it. But, I have executed it faild on a 486 machine, see my bug report, it works after compile it from source. If you meet this situation, download it from here and compile it. Note, execute ” export CXXFLAGS=”$CXXFLAGS -liconv -lintl” ” before ” ./configure “, otherwise, you will can’t compile it. See: Need help, I can’t get a chinese console under DeLi Linux 0.7.90. Get the usage manual by press ” CTRL+ALT+H “.
Additionally, you must login with root account to use Zhcon on DeLi Linux 0.8, then execute ” screen ” to open multiple virtual terminals in one console (so, you don’t need to open another console to perform another program), then execute ” su your-common-account ” to perform common work under DeLi Linux 0.8. But, the mouse can’t work under Zhcon on DeLi 0.8, I don’t know the reason until today.
2, Vim text editor
The “vi” in DeLi Linux 0.8 is “e3vi”, it isn’t good at support chinese. And, Nano text editor can input chinese well under the utf8 environment of Zhcon (start zhcon with command “zhcon –utf8”), but, there is bug when W3m web bowser work under utf8 environment of Zhcon, I don’t know if this bug is caused by Zhcon or W3m. I transplant the Vim-7.1 in DeLi Linux 0.7.2 into DeLi 0.8 with the way introduced in diary DeLi Linux 0.8 Software Installation, download Vim DeLi 0.7.2 package from: http://www.delilinux.de/packages/deli/ap/vim-7.1-i386-1.tgz . Then, create a file called “.vimrc” under your home directory, here is a .vimrc file I modified from an article on internet, you can try it:
set encoding=gb2312
syn on
set guifont=Luxi\ Mono\ 11
set tabstop=4
set shiftwidth=2
set autoindent
set backspace=2
set smartindent
set ai!
set nu!
set showmatch
set ruler
set incsearch
set vb t_vb=
2, W3m web browser
There isn’t W3m in DeLi, so you need compile it from source. At first, you need compile and install Gc, I have tested, it seems new version Gc (such as: version 6.8) can’t be compiled successfully on DeLi, gc6.2 can be compiled successfully. Download Gc6.2 from http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/ , compile and install it with default way.
Then download W3m-0.5.2 from http://prdownloads.sourceforge.net/w3m/ . Before compile W3m, set environment at first: ” export LD_LIBRARY_PATH=”/usr/lib:/usr/local/lib” “, otherwise, you maybe can’t compile it successfully.
After compile and install W3m with default way, add a soft link “libgc.so.1” which link to “/usr/local/lib/libgc.so.1.0.2” under directory “/lib” with the command below:
ln -s /usr/local/lib/libgc.so.1.0.2 /lib/libgc.so.1
After finish installation of W3m, I will introduce some usage of W3m on DeLi Linux 0.8.
First, create a soft link under /usr/bin which linked to w3m: ln -s /usr/local/bin/w3m /usr/bin/w3m , otherwise, you will fail to execute “w3m” for can’t find command when you login into system with root and then switch to common user account with ” su ” command.
Use ” w3m http://www.yoururl.com ” open a URL address, press “U” key to enter the URL address you want to go. “H” key to call help menu. “O” key to call option config menu, then configure some necessary options. Note, press “OK” at the end of every section to finish the options config of this section. Select “YES” for “Render frames automatically” of “Display Settings” to support frame page; Modify the “Editor” to “/usr/bin/vim” in “External Program Settings” to use vim text editor which be transplanted ahead; Select “YES” for “Enable cookie processing” and “Accept cookies” in “Cookie Settings” to accept all cookies. Otherwise, you maybe can’t login into some websites. If you will not accept the cookie of special website, add its domain name into “Domains to reject cookies from”. The cookie config of W3m I don’t understand clear, so only for refering; There is a section “Charset Settings” is important to view chinese web page (only for refering too, its only my personal experience), select”NO” for “System charset follows locale(LC_CTYPE)”. Select “Chinese (EUC-CN, GB2312)” when view simplified chinese page and select “Chinese Taiwan (Big5, CP950)” plus switch to traditional chinese environment of zhcon by press “CTRL+F3” when view traditional chinese web page; If you use w3m in xterm in X Window(because I have set language environment into “zh_CN.UTF-8”), need select “Unicode (UTF-8) ” in “Display charset” option.
Additionally, you can use “mutt + esmtp + fetchmail + procmail” to receive, write and send email. You can do some search about them; You can listen mp3 with Mp3blaster, etc.(I haven’t test mutt combination and mp3blaster on DeLi Linux 0.8).
Introduce the chinese environment configuration of X Window on DeLi Linux 0.8 below
(some content copy from the wiki page of DeLi Linux: Internationalization and native language support)
1, Set chinese language:
Select “zh_CN.UTF-8” when setup by delisetup, it should be there are two lines at the end of file: /etc/profile like below:
export LANG='zh_CN.UTF-8'
unicode_start
If you like english programs menu, you can change “zh_CN.UTF-8” into “en_US.UTF-8”, Fcitx, a chinese input method will still work well under english environment, I will introduce it later. But, you must have chinese fonts in the system.
2, Add a good looking chinese font
Copy a chinese *.ttf font into a font dir, e.g., a WenQuanYi font : “/usr/share/fonts/wenquanyi/wqy-zenhei/wqy-zenhei.ttf” . Then executed” fc-cache -fv ” with root and non-root user.
Copy a chinese bitmap font into the fonts directory above with the same way ( because the firefox1.5 transplanted from DeLi Linux 0.7.2 which I will introduce later need bitmap font for good experence when view chinese page, the reason is firefox1.5 in DeLi 0.7.2 didn’t compile for xft font support), I select WenQuanYi Bitmap Song CJK Font here, I copy this bitmap font directory “wqy-bitmapfont” in ubuntu into directory “/usr/share/fonts/wenquanyi/”. In order to enable this font in firefox1.5, need insert some parameter like below into /etc/X11/xorg.conf:
Section "Files"
FontPath "/usr/share/fonts/wenquanyi/wqy-bitmapfont"
EndSection
3, Install a chinese input method
For example, a small and fast chinese input method software “fcitx“, compile it yourself, or install a ready-made binary package with command below:
pacman -U http://39file.googlepages.com/fcitx-3.1-1.pkg.tar.gz
directly.
Or, you can build a pacman package of fcitx with command “makepkg -c“, I borrowed the “PKGBUILD” script from archlinux: http://repos.archlinux.org/viewvc.cgi/fcitx/repos/extra-i686/PKGBUILD?revision=356&view=markup . I commented the line:”arch=(”i686” “x86_64”)” and the line “depends=(’libxft’ ‘libxpm’)”.
Then, add lines into “~/.xinitrc” before the last line, the last part of this file just like below:
# start some nice programs
export XMODIFIERS=”@im=fcitx”
export XIM=fcitx
export XIM_PROGRAM=fcitx
fcitx&
exec icewm-session
In this way, chinese input method “fcitx” will startup automatically when “startx“.
Additionally, if you use the english environment configured with command ” export LANG=’en_US.UTF-8′ ” like above, you need insert a line before execute fcitx (e.g., insert it before “export XMODIFIERS=”@im=fcitx” “):
export LC_CTYPE="zh_CN.UTF-8"
But, I found even I use fcitx on my Celeron 400 machine, it still isn’t too smoothly to input chinese under X Window (for example, it has an obvious delay when I switch to chinse inputing status by press “CTRL+Space” to start typing). I have ever tried to install such as Xcin + Crxvt, Chinput chinese input method but failed. So, if you can’t resolve this problem, and, you have a very old machine and need to input plenty of Chinese character, I suggest you configure the console chinese environment with the way above, you can get a fast inputting feeling ( I have felt this on my 486 machine, but, it has retired now 🙂 ). In fact, it isn’t too difficult to master such a console working environment.
4, Change font size of GTK2 programs
The font size is a bit small in the GTK2 program. Create a file “~/.gtkrc-2.0“, here is an example file, it select “wenquanyi zen hei” with font size 12 as the default font of these GTK2 programs:
style "gtk-default-zh-cn" {
font_name = "wenquanyi zen hei 12"
}
class "GtkWidget" style "gtk-default-zh-cn"
5, Change font size of icewm
The font size of “icewm” is a bit small too. Copy “/usr/share/icewm/preferences” into “~/.icewm/“, and uncomment the lines of font set, e.g., uncomment the line “# MenuFontNameXft=”sans-serif:size=10:bold” “, and change size to “12” like this “ MenuFontNameXft=”sans-serif:size=12:bold” “, this will make the font size of icewm menu a bit bigger.
6, Install a web browser called “skipstone” with good chinese support
The web browser “netsurf” come with DeLi 0.8 can display simple web page ( include chinese page ), but cannot input chinese into its input box with “fcitx” chinese input method. Skipstone is almost a full-function web browser and have a good chinese support. First, execute “su” to become the root user, then execute “pacman -S skipstone” to install skipstone web browser.
But, skipstone is still too heavy for old computer. I have tested the ram footprint of web browsers below with the command ” pmap `pidof program name`|tail -1 “:
Open http://www.google.com/
dillo-i18n-0.8.6 27516K
dillo2 26616K
firefox-1.5 29656K
Open http://www.learndiary.com/
dillo-i18n-0.8.6 31516K
dillo2 28240K
firefox-1.5 36388K
skipstone1.0.0 51768K
So, I troduce how to transplant firefox1.5 in DeLi Linux 0.7.2 into DeLi Linux 0.8, please see the content of “some notes about transplanting firefox 1.5 in deli 0.7.2” in page DeLi Linux 0.8 Software Installation for the detail method of tranplanting. Because the firefox1.5 in DeLi Linux 0.7.2 hasn’t add xft font support, it isn’t very nice to see chinese font web page, even it can’t display some Chinese characters. I resolved this by using chinese bitmap font (e.g., wenquanyi bitmap font). WenQuanYi Bitmap Song CJK Font has been installed above. Select “Edit”->”Preferences”->”Content” in the menu of firefox, then set the font to “wenquanyi-wenquanyi bitmap song-iso10646-1” for chinese font and the font of “Other Languages”. Then you can use beautiful WenQuanYi bitmap font 🙂 .
Dillo web browser is very fast even you use it at a very old computer if you only browser the pictures and text in the page( it has no javascript support, etc..). Dillo2 released at October, 2008, it uses FLTK graphics library, it should be faster than Dillo 0.8.x and use less resource. You can download the lastest dillo2.0 source at its homepage and download FLTK v2.0.x-r6483 (recommanded by dillo2.0) needed by dillo2 at here. According to the manual, compile and install them with default way, execute “dillo” in xtem start to surf internet. Copy “/usr/local/etc/dillorc” into directory “~/.dillo”, modify “vw_fontname” and “fw_fontname” to a chinese font, then it can display chinese.. Get help documents of dillo2 at here.
7, Some skills
1), Enable xterm chinese display
Xterm’s default font can’t display chinese fully. Press “CTRL” key, don’t loose it, and click right button of mouse on the xterm windows, it will show a pop menu, don’t loose right button of mouse yet, move the mouse arrow down and select “Large”, loose “CTRL” key and right button of mouse. It can display chinese fully now. Additionally, add an option ” -fa xx” when execute xterm then it can display chinese perfectly (e.g., xterm -fa w), it should be a font name after that “-fa”, but, whatever I input after “-fa” on DeLi Linux 0.8 it can display same chinese font, I can’t specify a specific chinese font. I don’t know the reason.
2), Abiword display and input chinese
Abiword can’t display chinese by default, after you open a chinese text, press CTRL+A select all text, then select a chinese font, the chinese text will be displayed correctly.
Before you input chinese, select a chinese font first.
3), Activate chinese input method on Gnumeric
Left click mouse on the fomula input box, press CTRL+SPACE, chinese input method of fcitx can be activated.
4), Start some X programs slowly
For example, it is very slow to start some X programs such as Xterm, Xcalc, Xfontsel, etc., and occupy almost 100% CPU time when start them. Execute “sudo sed -i -e ‘/GBK/,/^}/d’ /usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALE ” to resolve this problem, I was inspired by Install Wine on Ubuntu. It just delete the GBK font section in the file “/usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALE”. But, if you install WenQuanYi bitmap chinese font as above, it is no problem when start the X programs ahead without deleting GBK section in the file ahead, the reason should be WenQuanYi bitmap has included GBK font.
Ok, stop here about DeLi Linux chinese environment configuration, I will do some supplementing if there are any experience and lessons later. This is the last diary of this series. Welcome communicating. Good luck.
This is the fourth diary of DeLi Linux Diaries Series, the previous is: DeLi Linux 0.8 Configuration; The next will be: DeLi Linux 0.8 Chinese Environment Configuration.
I will introduce how to install software on DeLi Linux 0.8 mainly in this diary, include Pacman packages manager, ABS source installation, transplant the softwares on DeLi Linux 0.7.2 into DeLi Linux 0.8 and common installation from source.
DeLi Linux 0.7.x series uses “deliget” tool to install binary packages from the repertory of DeLi Linux 0.7.x on internet, and borrow a “ports” source installation system from Crux. DeLi Linux 0.8 has borrowed the powerful “Pacman” package manager and “ABS” system of Arch Linux for software installation. Please “man pacman” to get the manual of pacman, or see page: Using Pacman, or the wiki page “Pacman” at Arch Linux official website. Get the manual of “ABS” system from the wiki page “ABS” of Arch Linux. But, please note, DeLi Linux 0.8 isn’t using ABS sytem of Arch Linux totally. Below, I only introduce the “ABS” style installing softwares from source on DeLi Linux 0.8.
Here is an instance of using “ABS” system to install “skipstone” web browser from source (In fact, there is skipstone binary package in repertory of DeLi Linux 0.8, you can install it with command “pacman -S skipstone”. I believe there isn’t skipstone binary package at begin, so I try to install it with “makepkg” command of DeLi Linux 0.8, it belongs to ABS system of Arch Linux.).
At first, download ports20085029.tar.gz from here;
Execute ” su ” become to root user;
Extract “ports20085029.tar.gz” into a directory (e.g., /usr/) with command “tar xfvz ports20085029.tar.gz -C /usr”;
Execute ” export ABSROOT=”/usr/ports” “;
Execute:
cd /usr/ports/xtra/skipstone
makepkg -bi
Then, it will spend some time to download, compile and install “skipstone” and its dependencies packages.
Here is a tip, because DeLi Linux 0.8 is using the package management system of Arch Linux, so, if you need a software which deli has not provided, you can search and download its “PKGBUILD” file at the official website of Arch Linux, make some modifying(e.g., delete the line”arch=(i686 x86_64) ” in PKGBUILD file), then, ” makepkg -c ” to build the software. I have built i810 display card driver on DeLi Linux 0.8 in this way, see the replay by littlebat in this topic: No i810 driver…why?. Just download related software’s PKGBUILD file in turn, compile them with command ” makepkg -c “. Some software’s compiling maybe need head file you can copy it from another linux distribution (e.g., copy some needed head file *.h from ubuntu 6.06).
DeLi Linux 0.7.2 uses GTK1, but DeLi Linux 0.8 has switched to GTK2, so, some useful GTK1 software isn’t included in DeLi Linux 0.8, such as Dillo, Firefox web browser, Xmms music player, Aop game, etc.. In order to save some time for building them from source, we can transplant them from DeLi Linux 0.7.2 into DeLi Linux 0.8. I introduce the method I have used, for some friends to refer.
First, download gtk1 packages:
http://www.delilinux.de/packages/deli/lib/glib1-1.2.10-i386-1.tgz
http://www.delilinux.de/packages/deli/lib/gtk1-1.2.10-i386-3.tgz
Extract them into “/” with root account:
tar xfvz glib1*.tgz -C /
chmod +x /install/*.sh
cd /
/install/*.sh
Transplant gkt1-1.2.10-i386-3.tgz with same way.
Second, download and transplant some gtk1 softwares in DeLi 0.7.2, for example: Dillo-i18n web browser:
http://www.delilinux.de/packages/deli/xap/dillo-i18n-0.8.6-i386-4.tgz
Third, some notes about transplanting firefox 1.5 in deli 0.7.2
I use Firefox 1.5 included in the DeLi0.7.2 big ISO cdrom image file, the file name is firefox-1.5.0.12-i386-1.tgz, after excuting the steps above, when I execute “firefox &”, it will report such as the error “missing libstdc++.so.5”, I resolved it by creating a soft link “libstdc++.so.5” which links to “libstdc++.so.6.0.3” with the command below:
ln -s /usr/lib/libstdc++.so.6.0.3 /usr/lib/libstdc++.so.5
But, I failed at tring to transplant the firefox I downloaded from DeLi Linux’s packages repertory on internet (http://www.delilinux.de/packages/deli/deli32/firefox/firefox-1.5.0.12-deli2-i386-1.tgz).
Note, because the firefox in DeLi Linux 0.7.2 can’t support xft font, so it isn’t nice to see chinese web page, even can’t display several chinese characters. I resolved this by using chinese bitmap font(e.g., wenquanyi bitmap chinese font), I will introduce it in the later diary for introducing chinese x window environment configuration.
If there isn’t a binary package of software you need on DeLi, for open source software, you can try to build it from source. Because DeLi Linux is using uclibc now, so, it isn’t all the open source software which can be compiled under glibc environment can build successfully under DeLi(maybe can compile successfully after patching). But, almost open source softwares can be compiled successfully. I have built some softwares below: Zhcon-0.2.6 chinese console environment, Gc-6.2, W3m-0.5.2 console web browser, Icecat-2 graphic web browser, Dillo-i18n-0.8.6 graphic web browser, i810 display card driver, etc.; Some softwares I have not compiled successfully such as: Firefox-1.5 graphic web browser, Nash open source flash player plugin, etc..
By the way, I introduce some softwares brought in DeLi Linux 0.8 below. Text editor: E3vi, Nano, Leafpad; Office: Abiword word processor, Gnumeric spreadsheet, Epdfview PDF viewer; Web browser: Lynx, Netsurf, Skipstone; Picture viewer: Gqview; Window manager: Icewm, Fluxbox; Music player: mpg123, xmms2; Video player: Vlc; File manager: Rox. Entire softwares list see: http://www.delilinux.org/packages.txt.
Ok, stop writing about software installation on DeLi Linux 0.8 here. The next will be: DeLi Linux Chinese Console Environment Configuration.
This is the third diary of DeLi Linux Diaries Series, the previous is: DeLi Linux 0.8 Installation. The next will be: Softwares Installaiton on DeLi Linux 0.8.
Here is official DeLi Linux 0.8 configuration Wiki page: First steps after installation. According to my experience, I will make a complementing to offcial manual in this diary. I will introduce how to configure DeLi Linux 0.8, include the configuration of X Windows, network, sound card, mouse, usb flash disk, etc.. Basically, this will not include the configuration for a specific language. The detail of configuration of chinese console and X Windows environment and related softwares I will post in another diaries.
Restart the system installed by ” deliinstall “, login console with root account. Start configuring by type ” delisetup ” apfter command prompt. The first item is keyboard configuration, simplified chinese user select “us”; The second item is language, simpified chinese user select ” zh_CN.UTF-8 “; The third is Lilo boot program setup, I have introduced the detail of it in diaries DeLi Linux 0.8 Installation; The fourth is ” ppp ” connection configuration, it is old style telephone dialing connect to internet, I think there should no many person is using such a way basically, and, I haven’t tested this way under Linux. You can configure it according to the prompt of the program if you need.
The fifth item is configuration of local network, you must set it in spite of you are in a local intranet or connect to internet by ADSL directlly. Input the host name, such as ” deli “; Input the domain name of your computer located in, there isn’t a domain name for me, so I enter one started without a dot “.”, such as ” localdomain “; The next is set IP for machine, please choose one in these three types according to your environment. I will introduce these three types configuration simply.
1), Static IP: If you are allocated a static IP, Gateway and DNS, you can use this configuration. It is in an intranet normally. enter data according to the prompt, e.g.:
ip: 192.168.0.106, netmask: 255.255.255.0, gateway: 192.168.0.1; dns: 61.236.159.99
Next is to load net card driver, the first item is detecting automatically; the second is modifying config file “/etc/rc.modules” manually. At first, let program detecting net card, if the result is error, the net card can’t work, then, you must modify the config file. I have a “ne” compatible ISA net card, but the system detected it as “com20020” net card, it can’t work. I have to modify the config file “/etc/rc.modules” manually. I added a new line “/sbin/modprobe ne io=0x240” to the end of this file. The parameter “io=0x240” I got from the windows97 which the net card have ever been worked under it(You can get this data from other way, e.g., search at internet). You don’t need add a “io=xxx” if it is a PNP net card, e.g., “/sbin/modprobe 8139too”;
2), DHCP: If your IP is alloctated by a DHCP server in local network automatically, or “cable modem”, or a DSL service (I use an ADSL to connect to internet, but, when set it to DHCP I can’t connect to internet, I must load the net card driver in “/etc/rc.modules”, then configure it as “loopback” which I will describe later, then configure ADSL with program “pppoe-setup”, only in this way I can connect to internat with ADSL, I don’t know the reason yet. But, if I configure it as DHCP or static IP, after I execute “route add default ppp0”, it can connect to internet too), then select DHCP. This also include a net card driver configuration like above;
3), loopback: If you are using a serical modem, or a notebook net card (this is related to pcmcia), or has no net card, then select “loopback”. This will not setup the net card driver;
You can surf internet if you are in an intranet which has a gateway connect to internet. Ping a domain name (e.g., google.com) to confirm if you configure the network right.
If you are an ADSL user, you must setup “pppoe” after finished the local network configuration with “delisetup” to connect internet. First, confirm if the “ppp” and “rp-pppoe” packages have been intalled. Execute command “pacman -Q package name” to confirm this. Then, type “pppoe-setup” to configure ADSL connection. The program will ask you ADSL user name, password, network interface, DNS and firewall, etc.. Answer it with your own situation. Normally, the network interface is “eth0”, DNS is “server”, and firewall is “1”. Confirm your choices and finish the configuration. Then you can start ADSL connection by execute “pppoe-start” with root account, “pppoe-stop” to close the connection. You can write “pppoe-start” into a config file to let ADSL connection start automatically when system boot. For example, you can write “pppoe-start &” as a new line at the end of file “/etc/rc.local”.
Because there is bug in the “delisetup” program, it will simply quit when select the item 9, item A and B ( See bug report page in Wiki: #23:deli:delisetup options lead to wrong place), so, I don’t set these items in “delisetup”. Additional software installation in item 9 I can use the pacman program to install it which I have introduced it in diary DeLi Linux 0.8 Installation; Item A I found there isn’t a software called “masqmail” in deli’s current packages reposity(a new version of “delisetup” in deli’s packages resporiy has deleted item 9 and item A). I edited file “/etc/rc.conf” manually to configure the services need start when system boot in item B. I introduce how to configure item B here. “ls /etc/rc.d/” to see valid services, then edit file “/etc/rc.conf”, fill the services name need started into the “” in the line SERVICES=”” sperated with space. For example: SERVICES=”net sshd”. Note, don’t write “gpm” into it, I found it will stop the system booting. If you need start “gpm” service when boot, you can add a new line “/etc/rc.d/gpm start &” into file “/etc/rc.local” ;
Additionally, you maybe meet problem when configure “Xorg X Server” in console (See bug report Wiki page: #27:delitools:some delisetup errors), it maybe cause errors when write into file ” /etc/X11/xorg.conf “. So, my method is configure item 7 “Tiny X Server” first, then enter into X Windows to configure “XOrg X Server” with command “delisetup” in xterm. In fact, both “Tiny X Server” and “XOrg X Server” are X server for X Windows, the first can be used in almost any computer, but with limited 60HZ refresh rate of monitor screen, it is a bit uncomfortable for eyes when use CRT monitor; the second has higher refresh rate.
Now select item 7 to configure “Tiny X Server”, next move to “Xvesa X-server”, next choose “video mode”, e.g., “800x600x15”, finished it will return back to main config menu. Then select item 8 “Setup Window Manager”, there is only one choice “icewm”, select “OK”. Then, move the bar to the last item “Quit” to quit main menu. You need link the mouse device “/dev/mouse” to a real mouse device in order to use mouse under this “Tiny X Server”, here is example command “ln -s /dev/ttyS0 /dev/mouse”. You can write this line into file “/etc/rc.local” to let it start when system boot if you decide use this “Tiny X Server”. After configured mouse, execute “startx” enter X Windows, click the terminal icon on the left-bottom corner to start “xterm”. At first, you need “mkdir /etc/X11” to create that directory manually, this is a bug too. If you don’t do this, you will get a “write to /etc/X11/xorg.conf failed” error. Then, execute “delisetup” in xterm to start configure “XOrg X Server” if you don’t use “Tiny X Server”. Configure “XOrg X Server” is a basic knowledge of Linux system, according to your computer and the setup prompt to make some choices, that’s ok. I found, the most error is select “Driver” for video card, valid video card driver can be found in directory “/usr/lib/xorg/modules/drivers” in DeLi Linux 0.8, if there isn’t a proper driver for your card, select “vesa” is a good idea, but, the monitor will work at only refresh rate 60HZ. If even “vesa” can’t work, then use “Tiny X Server” you configure it before(if so, you need re-configure your “Tiny X Server”). If all is ok, press “CTRL+ALT+Backspace” to return console, start X Windows with command “startx”. Additionally, if you use wheel mouse, there are two parameters like below(only for reference):
Option "Protocol" "ImPS/2"
Option "ZAxisMapping" "4 5"
For non-root user, execute “delisetup” after login, configure item 8 “Setup Window Manager”, that’s all. If it failed, edit the file “.xinitrc” under your home directory, it is “~/.xinitrc”, add a new line “exec icewm-session” into this file.
If you have sound card, edit file “/etc/rc.modules” with root account, add a new line to load your sound card driver, e.g., “/sbin/modprobe cmpci” (change the “cmpci” to your own card driver). If you are using old ISA sound card, maybe, you need add parameters such as “io=0xxxx”, e.g., I am using an old “sb” compatible ISA sound card “/sbin/modprobe sb io=0x220”, I got this parameter when I use it under Windows97. You can get the parameter from the other ways. OSS sound card driver is used in DeLi Linux 0.8. After finished sound card setup, you can play music with “mpg123” or “xmms2” now.
In order to use my usb flash disk and usb mouse, I add a new line “/sbin/modprobe usb-ohci” into file “/etc/rc.modules” in a P6SEP-Me (SIS system) mainboard computer, and add a new line “/sbin/modprobe usb-uhci” into file “/etc/rc.modules” in an i810 mainboard machine.
At last, the basic system has been configured ok. You can use DeLi Linux 0.8 basically already. But, if you need a comfortable chinese console and X Windows environment on DeLi, you need another setup steps. I will introduce them later.
October 6th, 2008 in
Linux | tags:
configuration,
deli,
Linux |
5 Comments
This is the second diary of the DeLi Linux Diaries Series, the previous is: What is DeLi Linux?; The next will be: DeLi Linux 0.8 Configuration.
I will introduce how to install DeLi Linux 0.8 in this diary mainly, include installing from cdrom and installing from ISO file in hard disk.
First, you need download DeLi Linux 0.8, the best choice is DeLi 0.8 full ISO – with GUI (252 MB), the file name is: deli-0.8.0-full.iso. Here is downloading page: http://www.delilinux.org/wiki/doku.php?id=download. The first choice I sugguest is downloading with BT software, that is Torrent, there are some BT downloading softwares under every OS. It is no necessary to repeat it here.
For most common user, the first choice of installation way is burn the ISO file into a cdrom, then install from cdrom. See DeLi Linux Wiki page: installation:cdrom [DeLi Linux Wiki] get the manual about how to install from cdrom.
I will introduce how to install from the ISO file in hard disk mainly. You can try if you have some basic Linux knowledge.
I will only introduce a way of installing from hard disk I have used. The pre-condition is you have a bootable Linux sytem in your computer and have left an empty linux partition used to install DeLi Linux.
At first, extract the ISO file into a Linux partition. I extracted it into an EXT2 Linux partition. I have tried installation with extracting it into a Windows FAT32 partition, but, I failed. Maybe, there is some bug in “deliinstall” program, the bug maybe is related to mount FAT32 partition (See bug report page: #32:delitools:deliinstall mount fat32 partition error). I suppose your deli-0.8.0-full.iso is located in directory ” /mnt/download “, and prepare extract to directory ” /mnt/hdc3 ” (/dev/hdc3), and want install DeLi into partition ” /dev/hdc1″. The detail ISO extracting setups is:
1),Create a mount point for ISO file with root account: mkdir /mnt/isofile ;
2), Mount ISO file: mount -o loop /mnt/download/deli-0.8.0-full.iso /mnt/isofile ;
3), Copy the files in ISO file into dest directory: cp /mnt/isofile/* /mnt/hdc3/ -r ;
All the installation files have been copied into installation directory in this way, there are some directories or files like these in directory ” /mnt/hdc3 ” : Changelog, INSTALL, isolinux, pkg.
Then, edit the boot menu in your old bootable Linux sytem, I suppose you boot your old linux system with Grub. edit file ” /boot/grub/menu.lst ” according to the file ” /mnt/hdc3/isolinux/isolinux.cfg ” which is located in the installation files directory. The DeLi Installation Grub item like below:
title DiLi Linux 0.8 Installation
root (hd1,2)
kernel /isolinux/bzImage root=/dev/ram load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=6464 rw
initrd /isolinux/initrd.gz
(Note: it is only one line from the word “kernel” to the word “rw”)
If you use Lilo boot your system, here is the boot item for installing DeLi in config file ” /etc/lilo.conf ” :
image = /mnt/hdc3/isolinux/bzImage
initrd = /mnt/hdc3/isolinux/initrd.gz
append = "root=/dev/ram load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=6464 rw"
vga = normal
label = installdeli
(Note: it is a line from “append” to “rw””)
Restart machine, select boot item “DeLi Linux 0.8 Installation” in Grub boot menu (or boot item “installdeli” in Lilo boot menu) enter installing, execute “deliinstall” after prompt to start installing, steps is similar as cdrom installation in the Wiki page mentioned above. According to the prompt message to process installation steps in turn: selecting keyboard layout, selecting root partition, formating root partition, typing the device name which installation files located, selecting kernel type (if it is SCSI boot partition), selecting swap partition, formating and activating swap partition, selecting language, set password of root, set common user account, installing Lilo boot program, install softwares and finishing installation. There is only one step you need notice: when you select the location which installation packages located, you maybe make a mistake, because the installation prompt wasn’t updated when the DeLi Linux was updated. In this step, answser “NO” when ask you if search cdrom, then, it will ask you device name which include installation packages, you must enter the device name in Linux, here is “/dev/hdc3”, not the partition name in Windows like “C:”.
Additionally, in spite of you install DeLi from cdrom or hard disk, there are some tips you need notice:
1), Move between items with up, down, left, right key of keyboard, select item with space or return key, if there is “OK” item, move to it and press return key to accept your selection. The system will not prompt you for confirmation in the installation process, so, please confirm your selection carefully before press return key to next;
2), Activate swap partition before execute “deliinstall” on low memeory machine, activate it when less than 48M memory according to the official DeLi Linux Wiki (See the begin part of this Wiki page: http://www.delilinux.org/wiki/doku.php?id=installation:cdrom). The reason is the Pacman program may have problem when executed on low memory machine in installing progress. The detail steps is described below. Activate swap partition before execute “deliinstall” after start installation system. Suppose the swap partition is /dev/hdc2, the command to activate it is ” swapon /dev/hdc2 “; Please make a swap partition if it hasn’t existed. The steps of make a swap partition is: make a swap partition with type Id 82 when make partitions (e.g., with tool “Fdisk” in linux), format the swap partition with command ” mkswap /dev/hdc2 ” (change “/dev/hdc2” to your swap partition). Haary has write a light weight pacman alternate to resolve this problem, see: http://www.delilinux.org/wiki/doku.php?id=devel:0.8 ;
3), Select the third “skip” item if you plan to boot DeLi Linux with other system when install Lilo boot program; Select the first “simple” item will install boot data into MBR(Main Boot Record) of the first hard disk drive simply, this will overwrite the old boot data in the MBR of your first drive; It is a bit complicated when you select the second “expert” item. Note, because the installation tool will write the same line of “image” item for each system booting section in the config file “/etc/lilo.conf” like “image = /boot/vmlinuz”, so after you finished Lilo installation, you must modify the “etc/lilo.conf” manually if you plan to boot other system with your newly installed DeLi Linux. For my example like this ” image = /mnt/hda1/boot/vmlinuz-ide-2.4.31 “. And, after you modified file ” /etc/lilo.conf ” you should execute command “lilo” to update the MBR;
4), I suggest common user select “YES” to install “all softwares” when execute the last step of installation. Note, it will not install all packages in installation packages directory even you select “YES”. For example, some development tools will not be installed. If you want compile your own program from source, you need execute ” pacman -S devel ” to install all development tools after you configured your system.
How to install all packages if you select “NO” when execute the last step of installing process? Here is a way you can try. I have tried but I am not sure if it is 100 percent right.
First, configure the “[cdrom]” section in file “/etc/pacman.conf”, here is my example:
[cdrom]
Server = file:///mnt/hdc3/pkg
Then, execute ” pacman -Sy ” to sync your local packages database with installation source, execute ” pacman -S package name or packages group name” to install the softwares you need. For example, ” pacman -S zhcon ” to install “Zhcon” and ” pacman -S core lib xlibs net ap xserver desktop mm devel ” to install all 9 packages groups (the “core” group has been installed when you execute “deliinstall” above). I havn’t found official detail manual about packages group in DeLi’s website, maybe I have missed something. Additionally, there are still some packages which hasn’t been included in any group so you need install them manually, e.g., skipstone web browser and leafpad text editor, etc..
Additionally, I will instroduce a way for you to install DeLi Linux if you have no other system and no cdrom in you computer, that is move your hard disk into other computer with Linux system installed to install the DeLi Linux into you hard disk. Locate the Lilo boot data into your hard disk when installing Lilo program ( for my example, I select “/dev/hdc” instead of the default “/dev/hda” ). This doesn’t infect you host sytem. Then, move your hard disk back into your computer, set the same IDE number and primary or slave type of hard disk as it setted in previous host computer ( For exampe: the primary drive /dev/hdc plug into IDE2 ), set the system boot from this hard disk drive in BIOS. Install the DeLi on other faster computer will make the installation progress faster a little. If you have a floppy can boot from it and a cdrom which you can’t boot from it directly, there is still a cdrom installation way to install DeLi Linux (See the begin part of the page: CD-ROM installation ).
There will be some same files write into you disk in spite of you install DeLi Linux in this or that computer. The differentness is the next step “DeLi Linux Configuruation” I will write in the next diary.
September 25th, 2008 in
Linux | tags:
deli,
installation,
Linux |
5 Comments
This is the first diary of DeLi Linux diaries Series. The next will be “DeLi Linux 0.8 Installation“.
I will introduce a light weight Linux distribution called “DeLi Linux” which come from Germany according to my knowledge in this diary. Include its goal, history and feature, etc..
DeLi Linux was founded and maintained mainly by Henry Jensen (nicky name: haary) who come from Germany. There is some basic introduction in DeLi’s homepage: http://www.delilinux.org/. I will repeat something plus my understanding about DeLi.
The goal of DeLi Linux: DeLi Linux is a Linux distribution designed for 486 to PIII old computer. Because it isn’t everyone can buy a new machine, or, someone is unwilling to discard their old computer. The commercial OS such as Windows, they will not support the old OS for such an old computer any more. What is their attitude? Just discard your computer, upgrade you Windows to the newest “Vista”. The result is software industry and hardware industry chases each other, forms a vicious circle. The power consumed more and more, and the electric garbage become more and more. DeLi Linux needs resolve its no.1 bug: #1: current-software: Doesn’t run on old Hardware. DeLi Linux is designed to fix this bug. The inspiration of this “no.1 bug” comes from the no.1 bug of Ubuntu: Microsoft has a majority market share. Ubuntu is designed to fix this bug.
The history of DeLi Linux: We can know its history from wiki page:DeLi Linux Release. There are 11 releases from V0.1 released at november 2, 2002 to V0.8 released at May 28, 2008. DeLi Linux has been founded 7 years! It was based on Slackware from V0.1 to V0.6; Haary has rewrited entire system from scratch in V0.7 which released at september 15, 2006, it wasn’t based on slackware anymore at this release, and, switched glibc to uClibc; In the V0.8 which released at May 28, 2008, the X windows system has switched GTK1 to GTK2 and using UTF-8 encode, this changing made DeLi become to a real international light weight linux distribution. The advanced pacman packages management system come from Arch Linux was adopted in DeLi 0.8, this made software installation and upgrade more conveniently. But, I think, the DeLi Linux was maintained mainly by haary one person for so many years, we can see haary is so inflexible and respectable. We can see the diary was written at June 14, 2007 in Henry’s Blog, we will know haary want open the developing and maintaining of DeLi. But, this opening need more progress currently. I guess the reason of slow developing is DeLi was only developed and maintained by haary on person in the spare time basically. So, DeLi is still a beta version Linux today. I think, open way and more people joining the developing and maintaining will be helpful DeLi’s goal. Haary has orientate the DeLi Linux towards more open, I think, maybe, the developing will more faster than before.
The feature of DeLi Linux: I talk about this with DeLi Linux 0.8. I can say its feature in a line is: an international light weight Linux distribution. What is “international distribution”? it is you can set it speak any language you want. DeLi Linux has adopted uClibc and GTK2, so it can support UTF-8 encoding very well. There are 169 languages selecting when we setup its language with tool “delisetup”; There are 109 langauges directories in directory “/usr/share/locale”; So, every GTK2 software which support UTF-8 can run on DeLi normally. The chinese language support is well when set encoding to “zh_CN.UTF-8”. From the aspect of light distribution, I think DeLi Linux has reached a limit of light distribution based the precondiction of an international distribution. Because it adopted uClibc designed for embbed system, this make the size and memory consuming less more; And, it has the good costumization ability which originated from Slackware, there is no any default service start when boot almost, everything is controlled by youself; it uses some light weight softwares, such as: a light windows manager Icewm, Sylpheed email client, Abiword word processor, Netsurf web browser and Vlc video player, etc.. A full installation needs about 750M space, the packages list is: http://www.delilinux.org/packages.txt . I think, the full installation metioned ahead should include all these packages, but I haven’t check it carefully. Of couse, DeLi Linux reduces some usability when use uClibc for faster speed and smaller size. Some close-source software which compiled with glibc can’t run on DeLi 0.8, e.g., Opera web browser, the flash plugin for Firefox, etc..
But, DeLi Linux is still a beta version distribution although it has been founded almost 7 years, it is still unstable. In spite of its developing speed and way, DeLi Linux has its own goal, I wish DeLi Linux will have a bright future under the guiding of its great goal: make a Linux OS for old computer.
September 23rd, 2008 in
Linux | tags:
deli,
Linux |
2 Comments
DeLi Linux is an international desktop light linux distribution for the old 486 to PIII computer. Its goal is to make a linux OS for the person who can’t afford a new computer or won’t discard their old computer. This is a respectable goal, of course, it a big challenge. I think, the difficulty of making such a light linux distribution isn’t less than those common distributions, even more difficult. Because, there is a precondition must be considered, that is the limited system resource.
There are some light linux distributions, but, some of them occupy not little resource, or can’t support chinese (e.g., that famous DSL). DeLi has an aim high goal just is similar to Ubuntu’s, to be a international light linux distribution, let’s everyone who speaking different language can enjoy this linux distribution customized for that old computer.
From the last version of DeLi Linux (DeLi Linux 0.7.2), I start touching this linux distribution, and translated its chinese wiki and homepage, I has being joined discussing on its forum actively, and being the moderator of DeLi Linux Chinese Forumcurrently. About one year past, I have some experience on using DeLi Linux. In order to introduce this distribution to chinese users ( of course, I will translate diaries into english for introducing it to more users), I decide make a summary of learning and using DeLi Linux from one year ago. I think, this will be beneficial to both others and myself.
Here is my writing plan (I will add its URL link after a diary be finished):
1, What is DeLi Linux? Introduce the goald, history and feature of DeLi Linux, etc. ;
2, DeLi Linux 0.8 Installation, how to install DeLi Linux 0.8, include installing from cdrom and installing from ISO file in hard disk;
3, Configure DeLi Linux , how to configure it, X Windows, net, mouse, usb flash disk, etc. ;
4, Installing Software on DeLi Linux, how to install software we need, we can install it with “pacman” command from softwares repertory, or transplant some softwares in DeLi 0.7.2 into DeLi 0.8, or build it from source;
5, Configure the Chinese Environment On DeLi Linux 0.8, how to set a console environment support chinese with softwares: Zhcon + Screen + W3m + Vim, etc. ; And, the Chinese X Window environment, how to set a satisfying chinese using environment under X Window of DeLi Linux;
I hope my diaries will be helpful for the linux fans or users, especially that linux fan or user who has old computer.
September 17th, 2008 in
Linux | tags:
deli,
Linux,
writing plan |
6 Comments
I have being owned an old computer with 486DX100 CPU, 24M memory, 1M display memory and two hard disks which volume is 4.3G and 1.3G(a 1.6G HDD disabled about 300M bad sectors). The OS was Redhat Linux 9.0 without X that days, because I couldn’t find an Linux distribution with X windows which support chinese for such an old computer. But, it can provide most funtions for my daily using, I use Zhcon+Screen+W3m to create a chinese console environment, so I can surf internet, write blog, listen mp3, communicate with my MSN friends by Gtmess, etc.. So, my 486 machine got the second life with the help by Linux. Of course, there are still some light Linux distributions can be used at X windows if you don’t require chinese support. For example, DSL, DeLi0.7 series, etc.. By the way, this 486 computer I am still using it. But, I have changed the OS to Slackware 10.2 with chinese support console environment. Because there is only a 1.3G HDD left for this 486 computer. Slackware has better customization ability than Redhat Linux 9.0, I can reduce some unnecessary programs for this little HDD and boot more faster.
I have gotten another old computer with Celeron 400 CPU, 96M memory, shared 2M display memory(there is 8M display memory can be used, I set it to 2M in BIOS). So, what things have I ever experimented when I choose light weight Linux distribution with chinese support? Below is a summary for these things, I hope it will be helpful for some friends which intrested with Linux and has such an old computer.
This computer can run a newest light Linux distribution: Arch Linux(archlinux-2008.06) constrainedly, even can run a rich functions and nice looking GUI: Xfce4, I have excuted the newest Firefox 3 web browser, and it isn’t too slow. Arch Linux is a rolling release distribution allows one-time installation and continuous seamless upgrades. Once you installed it, you only need one command “pacman -Syu” to upgrade entire system(include kernel) to the newest version. It is optimazed for i686, so it can’t be run at machine with an older CPU. The upgrade speed of Arch is fast than other distributions, you can used the newest official version of software(include kernel) soon. Basically, I haven’t run into quesitions when I install it with newest version(archlinux-2008.06-core-i686.iso) by CDROM. Except for one thing, it reported the message such as “the file is already existed, can’t upgrade” when I upgrade entire system with command “pacman -Syu”, I deleted the files it reported, then excuted “pacman -Syu” again, everything was ok. But, I let Arch say goodbye for this computer, after all, this is a so old computer which produced at about eight years ago, to run the newest distribution at such an old computer is really constrainable. I appreciate the packages management style and the community user contributed “Arch User Repository” of Arch Linux very much. But, after the first use of Arch Linux, I have a bit doubt: such an speed upgrade for software, how about the stability of system? For example, if there is someone run it at a server?
I have tried Puppy Linux( Puppy 217 NOP Chinese Version),started the live system, then selected “NORMAL INSTALLATION” to install the puppy into the hard disk. The method is: select “Puppy universal installer” in the “start” programs menu, do by the prompt until to select detail installation method, then select the second item( NORMAL, NOT COEXIST). The system speed is a bit faster than the newest Arch Linux, maybe, the memory is too little, so the GUI program is still a little slow(such as the Opera web browser in it). Additionally, I don’t know why the packages management program will quit automatically when I click mouse for installing softwares from network. Puppy Linux is design for single root user mode, although, I read the official manual, it says this mode will not cause security problem( See “Q: Security concerns” in http://puppylinux.com/faq.htm ), but, for my personal feeling, I don’t very like this mode, that’s really a “selecting by feeling”. Besides, there are few people using this old computer, it’s a multi-users environment. I haven’t studied how to set a multi-user environment in Puppy Linux. Any way, I haven’t changed my opinion for Puppy Linux, it is still my first choice system for maintaining goal.
There is an article about Light Weight Linux Distribution comparing: Review: Lightweight Linux distributions, a distribution called “TinyMe” was the NO.1 by the author’s opinion. It is said this caused the argument in the Linux Community. TinyMe is a light Linux distribution for the old computer defined by the TinyMe author. I tried TinyMe 2008.0 version on this old computer. I also installed it into hard disk after starting the live system. Note, the first few times I failed at installing it into hard disk. After searching in TinyMe’s forum, I select such as item “safe-failed”(probably is safe mode) when login, then excuted a command of hard disk installation(I forgot this command 🙁 ) to finish the installing to harddisk. Maybe, it is for my small memory(only 94M + 2M display memory). This is a light distribution based on PCLinuxOS, optimalized for i586. Using apt packages management system, it’s convinience for installing programs. the iso file is about 200M. It has a nice GUI face, the chinese support is good after installing chinese locale. I need set the locale to “zh_CN.UTF-8” manual for displaying the chinese time at the bottom-right of windows. But, I found the speed of system is even slower than Arch Linux a bit. Maybe, the reason is its gorgeous GUI face and load many services when booting. I think, design the light Linux Distribution for the old computer, the first consideration is speed, not the good GUI face.
Here is a light Linux Distribution which is also specialized for the old computer called DeLi Linux, the newest version is DeLi Linux 0.8, I feel it is to utmost limit at the international light Linux Distribution area in reality. Why? Because it adopts the uclibc which is designed for embedded type devices to build the entire system, and, it has almost no the default services starting when boot, all is controled by youself. So, maybe it needs some linux basic knowledge to use it. In addition, because it adopts uclibc, so there are some non-opensource programs cann’t run on it. For example, Opera web browser, the flash plugin for firefox, etc.. From my test, it should need the least system resource alone the distributions I tested. But, because it is still a beta version, there are some bugs in it, so, you need some basic linux knowledge to resolve the question you meet.
At last, Slackware Linux 10.2, it is the distribution I selected for my old computer temporarily. Although, it is a bit old (released at September, 2005) and it isn’t specialized for the old computer. But, I think it reaches a balance between the usability and system resource occupation. This distribution is also need some basic linux knowledge to use it.
Every distribution tested above supports chinese. That famous distribution based on GTK1 called DSL(Damn Small Linux) is also a good one which reaches a good balance between usability and system resource occupation. To give an order for the distributions always causes argument. I want say, there isn’t a best Linux Distribution, but a best distribution for youself. In addition, selecting Linux Distribution just is a personal favor sometimes. For that friend has basic linux knowledge, you can try Arch Linux, Slackware Linux, DeLi Linux for you old computer; For the friend is a linux novice, maybe Puppy Linux or TinyMe Linux is more easier to use; If you have ambition or ability or you areinsterested in it, support DeLi Linux may be will helpful for you linux ability and you will. Although, there are some restricts for uclibc which adopted by DeLi Linux, but, maybe some non-opensource programs will support uclibc in some days for our effort.
That’s ok, happy every day!
September 16th, 2008 in
Linux | tags:
arch,
deli,
Linux,
puppy,
slackware,
tinyme |
Comments Off on Find a Linux Distribution Which Support Chinese for PII Level Old Computer
I used wordpress 2.6.1 to created an english blog called: Learning Diary some days ago. Because I don’t know how to add my own modules between Widgets in sidebar, so costumized the sidebar with wordpress functions, see also: WordPress Template Tags. Share my method below:
1、The recent top 10 posts:
<ul>
<?php
$postslist = get_posts('numberposts=10&order=DESC&orderby=date');
foreach ($postslist as $post) :
setup_postdata($post);
?>
<li>
<a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a>
</li>
<?php endforeach; ?>
</ul>
2、Recent comments:
I used a plugin: Get Recent Comments. You can config it with the page “Recent Comments” in the page “Settings”. Below is the code to call on sidebar:
<ul>
<?php get_recent_comments(); ?>
</ul>
3、Delicious:
That is a “Link Roll” in the setting page of Delicious. There is a tip, if you want to control the style of the title of delicious module, add a property in the sidebar part of global style.css like beow:
#sidebar .delicious-banner a { font: bold 12px Tahoma, Verdana, serif; color: #444; text-shadow: 1px 1px 1px #fff; }
4、Category:
<ul>
<?php wp_list_categories('orderby=name&show_count=0&title_li='); ?>
</ul>
5、Most Popular Tags:
<ul>
<?php wp_tag_cloud('smallest=8&largest=22&number=10&format=list&orderby=count&order=DESC'); ?>
</ul>
6、Archives:
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
7、Blogroll
<ul>
<?php wp_list_bookmarks('title_li=&categorize=0'); ?>
</ul>
If there is a way to add my own modules between those dynamic Widgets? so, I have no need to modify code in sidebar myself.
September 1st, 2008 in
Open Source | tags:
sidebar,
wordpress |
1 Comment
I think there are many people in china know the news of “Tomatolei.com’s Founder Seized In Suzhou For Piracy” these days. To express it in a line is: the author named Hong Lei of “Tomato edition windows xp” which is popular in china was seized by local policeman for the complaint of microsoft and other related company. There are many guesses about this, but, some real things are: microsoft complaint “Tomato Garden”, the authorities of china response positively, and the “Tomato” was killed.
It is no necessay to inspect the detail of this event, for the pirating windows user, we can feel, either the authorities or microsoft has began to hit more and more seriously. There is a survy about this event at a website in china, about 70% of users has ever used or has been using pirating Windows. and there are about 80% of users support Hong Lei! So, we can know how seriously of Windows pirating in china! There is a viewpiont of Pirate software : Pirating is helpful for us, if we buy licensed commercial software totally, we would buy less compter for the money reason. For this viewpiont, I don’t describe its harm for our innovative ability and our morals, I don’t describe its killing the native software company of us yet, I only want say, there is a very realistic situation is: maybe, the china will become the biggest sufferer of pirating softwares. It is said that Bill Gates has said in 1998: spend 10 years to make chinese addicted to Windows with pirating Windows! It seems this has became reality: Not a little part of our entire IT industry is based on pirating Windows and other softwares. Microsoft has controled our IT field already, especially our educational department! As a big developing country, it seems china government will hit software pirate more and more seriously. Maybe, the policeman will check our computer in our home in a day future! China is big, so, even microsoft lost all the market in the other area, the china market will support microsoft for a long time. This the current status of software pirating in china and the result if we let’s things ride along this way!
Is it the only way for developing our IT industry which is a windows way decripted above? And we must discard our “old” computer to buy one by one huge Windows OS? No, there is way, a more freedom and bright way, that’s Linux! Linux desktop OS has satisfied almost all of our application, it’s very mature in techniques now, the reason of it can’t meet all of our application is lacking the support by the native software companies. For the pirating Windows and some other reason, there are very few people using Linux in china, according to the analysis in “Linux popularity across the globe“, this analysis is according to the searching keyword data in google, china isn’t included in the countries of most popular Linux using. These countries are India, Cuba and Russia, etc.. Consider of the huge pc quantity, so, I can say, the developing of Linux and Open Source in china is still very backward, there is still very hard and long way for us to go.
I think, the most reason of stoping the popularity and developing of linux in china is neither the using habit nor lacking the support of native software companies, but the strategy of the developing of entire IT indirstry controled by the china government. It also isn’t due to the very bad morals level of our computer users, for example, it reported “German Universities Tap Linux“, there are about 40 percent of university students using Linux in german. I don’t think the morals of german students outstrip ours so much, the main reason is the support coming from local government. Let’s suppose, if china government strengthen the education of Linux and Open Source, meanwhile, orientate the entire IT indurstry towards to Linux and Open Source, for example, if we can use full functions’ QQ and UC (Instant Messaging and entertainment platform), if we can use Personal Online Banking easy under Linux(we must use IE under windows to use our almost every Personal Online Banking in china), there will be a bright future of our IT industry, I think. China is a country which need huge quantity IT products, we should own the ability to change our future, and, as the huge reqirement of Linux and Open Source, it will must promote the developing of Linux and Open Source in world. Although the ability of developing Linux and Open Source of china is still very backward, but, we are learning and growing. We will helpful for entire IT world to be changed.
Of course, Microsoft, as a powerful enterprise, for the money, it must keep the state of we depending on it so much try its effort. Maybe, it will reduce the price of their products. But, if we don’t choice Linux and Open Source, all the things will be decided by Microsoft totally.
From my heart, I wish the world good luck, china good luck, the IT industry of china good luck, the people of china good luck, the technique hacker like Hong Lei good luck. Of course, Linux and Open Source good luck, Microsoft good luck too.
For me, I will focus on the using and developing of Linux and Open Source in china persistently, and share the thinking and tips about Linux and Open Source. Welcome to my blog called “Learning Diary” regularly, see you later! Thanks.
(Chinese version of this article click “番茄花园”事件是我们应该给予 Linux 更多关注的一个信号?.)
August 29th, 2008 in
Thinking | tags:
Linux,
microsoft,
Open Source,
os,
pirate,
tomato,
windows |
Comments Off on Is the “Tomato Garden event” a signal of we should pay more attention on Linux?