2007年12月17日 星期一

Enable chinese input under English locale on Ubuntu

Set up input method for X Window

ubuntu 7.10

sudo im-switch -z en_US -s InputMethodName

ubuntu 8.04

im-switch -z en_US -s InputMethodName

2007年12月6日 星期四

Play mame on Debian

1. xmame is the arcade game machine emulator for UNIX/X. SDL means Simple DirectMedia Layer, is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer.

sudo apt-get install xmame-sdl

2. run emulator with roms, there is two ways,
# -rp rompath
# -fullscreen
specify the name of game

xmame.SDL gamename

or

specify the filename

xmame.SDL *.zip

3. press Left Shift + PageUp / PageDown to increase/decrease scale

2007年11月27日 星期二

Listen internet radio on Ubuntu

1. the name of radio software is streamtuner. But it calls xmms to play streaming audio so both are necessary.

apt-get install streamtuner xmms

2. start streamtuner from Application -> Sound & Video -> streamtuner

3. Plugins and tabs are various radio collections.

2007年11月26日 星期一

Watch p2p TV on Ubuntu

1. Download and Install gsopcast

wget http://linuxdesktop.cn/downloads/gsopcast/gsopcast_0.3.1-1_i386.deb
sudo dpkg -i gsopcast_0.3.1-1_i386.deb # -i is equal to --install

2. start gsopcast from Application -> Sound & Video -> Gsopcast

3. Config tab allows user to modify settings, like Player, Outport

2007年11月25日 星期日

Use the integrated client , MLDonkey, to download files from different protocols simultaneously like bittorrent, edonkey, gnutella on Ubuntu

1.install mldonkey

sudo apt-get install mldonkey-server

2. MLDonkey will automatically create hidden necessary directory and files under the user's home when first run

# run silently in background
# mlnet &> /dev/null &
mlnet

3. with default setting, MLDonkey listens port 4000(telnet), 4001(gui), 4080(web) and allows only localhost so you may need to edit the list of IP address.

# if run mldonkey as root, the config files would be in /var/lib/mldonkey/
vi /home/user/.mldonkey/downloads.ini

.
.
allowed_ips = [
"127.0.0.1/0";] # mask 0 allows any ip
.
.
gui_port = 4001
http_port = 4080
telnet_port = 4000
.
.
max_hard_upload_rate = 10 # global speed limiting, KB/s
max_hard_download_rate = 0 # global speed limiting, KB/s
max_hard_upload_rate_2 = 5 # for bandwidth toggle
max_hard_download_rate_2 = 20 # for bandwidth toggle
.
.

4. if you wanna connect to mldonkey server via GUI interface, the best choice is sancho. Just download, then run.
http://sancho-gui.sourceforge.net/download.phtml#linux-gtk

5. Remember to change the password of admin by the mldonkey command

useradd admin password


6. you can also handle mldonkey server via telnet

telnet ip 4000

full mldonkey command
http://mldonkey.sourceforge.net/MLdonkeyCommandsExplained

2007年11月24日 星期六

Setup, Connect, Remove xrdp server on Linux

xrdp is an open source remote desktop protocol(rdp) server.

--To Install
1. download the source code from http://xrdp.sourceforge.net/
2. extract the tarball

tar -zxvf xrdp-0.4.0.tar.gz

3. switch to the folder then complie

make

4. as root, execute the installing script

sudo make install

5. remember to allow port 3389 in firewall
6. as root, run the service

sudo /usr/local/xrdp/xrdp_control.sh start

7. select Module "console" from menu then type the password you set for VNC while connecting to it

--To completely remove xrdp
remove directory /usr/local/xrdp
remove directory /etc/xrdp
remove file /var/run/xrdp.pid
remove file /var/run/sesman.pid
remove any startup links added to /etc/init.d or /etc/rcX.d