|
Hope this is helpful to some. To painful to type it out in Chinese. Sorry about that.
Will update from time to time.
2003-11-16
(Re)Installed Slackware 9.1
---------------------------
Backed up /home selectively. Backed up /etc. Backup custom fonts.
Repartitioned harddisk and used hda5 (5GB) as my Slackware 9.1 root(/) filesystem. Used hda6 (255MB) as my swap partition. The rest is not partitioned as I think it is better to mount them in later when my existing file systems are low on space.
During installation need to enable hotplug subsystem during system startup, so that I can use my USB harddisk. Once it is enabled I only need to mount /dev/sdan to access it.
Only selectively installed software contained in disk 1. The whole installation takes about 1.3GB.
Next is to install LT Winmodem driver.
Install LT Winmodem driver
--------------------------
Untar the source tarball to /usr/src. The installation is straight forward. Just follow the instructions. The only thing to note is if /dev/modem is already linked to a device file (which is the case for me), autoload will prompt you to remove that link first. After that rerun autoload, and it will create a device called /dev/ttyLT0, and link /dev/modem to that device file.
Configure ppp
-------------
Using pppsetup. Used back saved settings in /etc/resolv.conf and /etc/ppp/pppscript to specify the phone number to dial and the DNS server IP address of my service provider. As pppsetup only adds one DNS server IP address to /etc/resolv.conf, need to add any others you have manually into it later.
By default only root can use ppp-go. To allow normal users to use ppp-go, need to set appropriate permissions for /etc/ppp/options, and /etc/ppp/pppscript, and chmod u+s (setuid) /usr/sbin/pppd. Also created link in /usr/local/bin/ for ppp-go and ppp-off (in /usr/sbin/) so that they are in a normal user's search path.
This is not the best way to grant dial up access to users, because it opens the door for ANY user. Need to look into this later.
Enable APM (auto-power-off after running halt)
----------------------------------------------
As apm is included by default as a kernel module. Just edit /etc/rc.d/rc.modules and uncomment the line "/sbin/modprobe apm".
Install NVIDIA graphics card driver
-----------------------------------
Driver version 1.0-4496. After installing the driver, edit XF86Config according to the driver's documentation. Straight-forward.
The following options are added.
Option "NoLogo" "true"
Option "RenderAccel" "true" # Experimental
Option "CursorShadow" "true"
And, importantly, change HorizSync and VertRefresh to appropriate values that matches my monitor.
HorizSync 30 - 70
VertRefresh 50 - 160
Enable mouse wheel
------------------
Edit XF86Config and add in the following options in Section InputDevice for my mouse.
Option "rotocol" "imps/2"
Option "Buttons" "5"
Option "ZAxisMapping" "4 5"
Adjust fstab
------------
Added or changed the following entries:
/dev/hda1 /mnt/hda1 vfat auto,umask=000 1 0
/dev/hda2 /mnt/hda2 vfat auto,umask=000 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,user,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
/dev/sda1 /mnt/sda1 vfat noauto,user,codepage=936,iocharset=gb2312 1 0
/dev/sda2 /mnt/sda2 vfat noauto,user,codepage=936,iocharset=gb2312 1 0
/dev/sda5 /mnt/sda5 vfat noauto,user,codepage=936,iocharset=gb2312 1 0
/dev/hdc4 /mnt/zip vfat noauto,user,codepage=936,iocharset=gb2312 0 0
Allow normal user to run /sbin/halt (and reboot)
------------------------------------------------
chmod u+s /sbin/halt
Allow normal user to use sound card
-----------------------------------
chmod a+r /dev/snd/pcmC0D0p
Enable Chinese display/Input
----------------------------
Steps in Chinese.txt
Only rxvt launched within rxvt can call out scim bar. Cannot input Chinese in Mozilla. Need to find out why.
Once the locale is set to zh_CN.GBK, startx becomes extremely slow (1 minute plus and still counting). Change back locale to C and eveything is ok.
Tried to reinstall glibc-i18n, fluxbox, and xfree86, but in vain.
2003-11-17
Solving the slow startx under zh_CN.GBK problem
-----------------------------------------------
Retried to run startx under LC_CTYPE=zh_CN.GB2312, and it took only 6 - 7 seconds. I suspect it is because there is no font for GBK codeset (inspired by a document in LinuxSir.org that explains details of fonts.dir file). Looking at fonts.dir file and fonts.scale files under the directory where my simsun.ttc resides (/usr/X11R6/lib/fonts/local/) shows indeed there is no font defined for gbk. So duplicated the line:
simsun.ttc -misc-SimSun-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0
and changed it to:
simsun.ttc -misc-SimSun-medium-r-normal--0-0-0-0-p-0-gbk-0
Did the same thing for fonts.scale (guess it is necessary). Updated first line of both file to indicate the correct number of fonts listed below.
After that run startx again. Voila! After less than 10 seconds I am in fluxbox.
Installed scim 0.8.2 and scim-chinese 0.2.6 - converted from TurboLiux 8.0 rpm (see Chinese.txt). Working in mozilla (after setting GTK_IM_MODULE=xim)
Installed non-official packages:
gkrellm-2.1.21-i686-2.tgz
gqview-1.2.2-i486-1.tgz
Installed/Upgraded slack-current packages:
ccache-2.3-i486-1.tgz
distcc-2.11-i486-1.tgz
gimp-1.3.21-i486-1.tgz
hdparm-5.4-i486-1.tgz
perl-5.8.1-i486-1.tgz
pkgtools-9.1.1-i486-1.tgz |
|