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年5月6日 星期二

Set up Tor on Slax

1. download bundle module of tor and privoxy from http://www.slax.org/modules.php?action=detail&id=343

2. tor runs automatically while activating this module so you'll have to stop it in order to make changes take effect

activate tor-0-1-2-19-privoxy-3-0-8.lzm

Starting privoxy: OK
Starting the Tor daemon: /usr/bin/tor
May 09 15:03:34.170 [notice] Tor v0.1.2.19. This is experimental software. Do not rely on it for strong anonymity.
May 09 15:03:34.177 [notice] Initialized libevent version 1.4.1-beta using method epoll. Good.
May 09 15:03:34.258 [warn] Fixing permissions on directory /var/lib/tor
May 09 15:03:34.258 [notice] Opening Socks listener on 127.0.0.1:9050

torstop

Shutting down Tor & Privoxy

3. add this line to config file of tor if you computer is behind firewall which only allows outgoing ports, 80 and 443 ( http / https )

vi /etc/tor/torrc

FascistFirewall 1


the above option is same to the below lines

ReachableDirAddresses *:80
ReachableORAddresses *:443

3. Start tor again

torstart