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

2008年9月11日 星期四

TSocks on Slax

1. activate tsocks module

2. make a configuration file to specify socks server

vi /etc/tsocks.conf
--
server = ip
server_port =
server_type = 5 # socks version
local = ip/mask

server ip must
3. run non-socks aware applications from tsocks

tsocks [application [application's arguments]]

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

2008年4月30日 星期三

Change boot loader of Slax to grub on a USB stick

1. downloadgrub4dos from https://gna.org/projects/grub4dos/ and grubinst from
http://download.gna.org/grubutil/

2. run grubinst_gui.exe to install grub into USB

3. extract grldr to root directory of USB

4. create a text file named menu.lst which lists boot menu

find --set-root /boot/vmlinuz

title Slax Graphics mode (KDE)
kernel /boot/vmlinuz ramdisk_size=6666 root=/dev/ram0 rw autoexec=xconf;telinit~4 changes=/slax/
initrd /boot/initrd.gz

title Slax Always Fresh
kernel /boot/vmlinuz ramdisk_size=6666 root=/dev/ram0 rw autoexec=xconf;telinit~4
initrd /boot/initrd.gz

title Slax Copy To RAM
kernel /boot/vmlinuz ramdisk_size=6666 root=/dev/ram0 rw copy2ram autoexec=xconf;telinit~4
initrd /boot/initrd.gz

title Slax Graphics VESA mode
kernel /boot/vmlinuz ramdisk_size=6666 root=/dev/ram0 rw autoexec=telinit~4 changes=/slax/
initrd /boot/initrd.gz

title Slax Text mode
kernel /boot/vmlinuz ramdisk_size=6666 root=/dev/ram0 rw changes=/slax/
initrd /boot/initrd.gz

title Run Memtest86 utility
kernel /boot/mt86p

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