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

2008年4月27日 星期日

Set up Socks 5 server on Ubuntu

1. install dante server

sudo apt-get install dante-server

skip the error message from the output of configure dante-server once installed. that's cause dante configuration was not complete.

2. start editing the config file

vi /etc/danted.conf

--
# log to what file
logoutput: stderr /var/log/danted.log

# listening interface and port
internal: ppp0 port = 80

# outgoing interface
external: ppp0

# method: username requires the client to provide a username and password which match the system password file.

# method: none requires no form of authentication.
method: username

# privileged ports like 80 and 443 must use root permission.
user.privileged: root

# the package seems not complied with libwrap support.
#user.libwrap: nobody

# allowed IPs
client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
}

# allowed protocols with these source IPs
pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
protocol: tcp udp
}

3. run dante-server

sudo /etc/init.d/danted start

2008年4月23日 星期三

How to Secure Copy on Unix

upload

scp filename username@ip:path/new_filename

download

scp username@ip:path/filename new_filename

parameter

-v toggle verbose

2008年4月15日 星期二

Configure kernel on Ubuntu

1. install necessary complier and libraries.

# libncurses5-dev is developer's libraries and doc for ncurses
sudo apt-get install build-essential libncurses5-dev

2. download source linux-x.y.z.tar.bz2 from http://www.kernel.org
3. extract it then enter the directory and type

# console-based color menu
make menuconfig
# X-based GUI
make xconfig

Run GUI programs with cron on Linux

you have to tell cron what display the program should use. For that you use:

export DISPLAY=:0


so you'll add the export variable like this:

* * * * * export DISPLAY=:0 && somecommand

2008年3月27日 星期四

Enable Compiz Fusion on Ubuntu with VIA Unichrome Pro IGP

1. download VIA UniChrome (Pro) Family Display Driver from http://www.viaarena.com/default.aspx?PageID=420&OSID=45&CatID=3220&SubCatID=150

2. extract it then run to install

sudo sh VIA_Ubuntu710_Unichrome_GFX_v40072d.run

3. Select the option 1. Install driver to install the pre-compiled driver binary package.

Verifying archive integrity… All good.
Uncompressing VIA UniChrome (Pro) Family Linux Graphics Driver for Ubuntu 7.10 v40072d………
Please choose the job you want to do:
1. Install driver
2. Uninstall driver

4. Reboot to restart the X server

5. To verify whether the 3D functionality is enabled, use the commands glxinfo and
glxgears to check in X-Window. If the 3D function is enabled, you should see

direct rendering: Yes

6. In order to customize the desktop effects you want to use, you have to install compiz manager

sudo apt-get install compizconfig-settings-manager

7. In addition, you have to modify /usr/bin/compiz and add via to driver whitelist

# Driver whitelist
WHITELIST="via nvidia intel ati radeon i810"

8. To make Compiz Fusion enable, go to System -> Preferences -> Appearance -> Visual Effects tab, make sure that Custom is selected.

9. To configure Compiz Fusion, go to System > Preferences > Advanced Desktop Effects Settings

10. Here's a list of the most common Compiz Fusion keyboard shortcuts:

SUPER+SHIFT+DRAG LEFT MOUSE = draw fire
SUPER+SHIFT+C = clear fire
CTRL+ALT+DRAG LEFT MOUSE = rotate cube
CTRL+ALT+LEFT ARROW = rotate cube
CTRL+ALT+DOWN ARROW = flat desktop
SHIFT+ALT+UP = initiate window picker
CTRL+ALT+DOWN = unfold cube
ALT+TAB = window switch
SUPER+TAB = flip switcher or ring switcher
ALT+F7 = initiate 'move windows'
SHIFT+F9 = water effect
SHIFT+F10 = slow animations
CTRL+ALT+D = show desktop
SUPER+E = expo

For Grouping and Tabbing:
SUPER+S = select single window
SUPER+T = tab group
SUPER+Left = change left tab
SUPER+Right = change right tab
SUPER+G = group windows
SUPER+U = ungroup windows
SUPER+R = remove group window
SUPER+C = close group
SUPER+X = ignore group
Hold the SUPER button then select the windows you want to group and then hit SUPER+G.

SUPER key is the Windows key on most keyboards.

2008年3月12日 星期三

Install flash add-on for firefox on Ubuntu

1. install adobe flash player

sudo apt-get install flashplugin-nonfree

2. if firefox cannot show flash pages, check is there any file related to flash plugin under /usr/lib/firefox/plugins. if not, do

sudo ln -s /usr/lib/flashplugin-nonfree/libflashplayer.so /usr/lib/firefox/plugins