顯示具有 dir2lzm 標籤的文章。 顯示所有文章
顯示具有 dir2lzm 標籤的文章。 顯示所有文章

2008年5月20日 星期二

Make chinese display support module on Slax

1. create directories which match to system path

mkdir -p etc/rc.d
mkdir -p usr/share/fonts/TTF

2. download chinese font, fireflysung.ttf for open-source platform then put it into usr/share/fonts/TTF

3. create a script which can be run while booting

vi etc/rc.d/rc.local

fc-cache -f -v
cd /usr/share/fonts/TTF
mkfontscale
cp fonts.scale fonts.dir

4. pack them all to a lzm module

dir2lzm ./ filename.lzm

5. move the module to /slax/modules of your native partition for automatic activation

2008年4月29日 星期二

Modify existing module on Slax

for example
if you use some module then face a path problem, you can modify it.
the below message is showed when I run tsocks module what I have installed

ERROR: ld.so: object '/usr/lib/libtsocks.so' from LD_PRELOAD cannot be preloaded: ignored.


1. download tsocks module from http://bencoh89.free.fr/slax6modules/

2. extract content of tsocks module to a directory

mkdir tsocks
lzm2dir tsocks.lzm tsocks/

3. pack the module back to the .lzm format by using

dir2lzm tsocks/ tsocks.lzm