Ubuntu 用kopete上msn+scim打中文


sudo apt-get install scim-qtimm
im-switch -s scim_xim
update-alternatives: Cannot find alternative ‘/etc/X11/xinit/xinput.d/scim_xim’
但不用理他,現在Restart X window就可以了(ctrl+alt+backspace)



System->management->language support
把中文打勾,然後Default Language設定為Chinese(Taiwan)

再來登出再登入,就設定完成了 ^^

wget ftp://ftp.opendesktop.org.tw/odp/ODOFonts/OpenFonts/opendesktop-fonts-1.4.2.tar.gz
tar xvzf opendesktop-fonts-1.4.2.tar.gz
cd opendesktop-fonts-1.4.2
sudo cp odosung.ttc odokai-ExtB.ttf odokai.ttf odosung-ExtB.ttf /usr/local/share/fonts
sudo fc-cache -v

重新啟動 X-Window (ctrl+alt+backspace)
您可以透過 Gnome 面板上的[系統]->[偏好設定]->[字型],將字型更改為 AR PL New Sung(新宋) ,中文顯示會美觀許多。

Samba Client get Windows shared files

use this command to list shared file folder create in windows
smbclient -L //[IP|hostname] [-U username]
smbclient -L //

use this command to browse shared file folder
smbclient '//[IP|hostname]/[resource name]' [-U username]
smbclient '//'

use this command to mount resource to a folder
smbmount //IP/[resource name] /[local folder] [-o options]
smbmount // /mnt/windows/music

Setup Samba Server on Ubuntu (Feisty Fawn)

1.install samba
sudo apt-get install samba

2.stop samba service, so that we can do configuration
sudo /etc/init.d/samba stop

3.configure samba
sudo gedit /etc/samba/smb.conf

4.setup share folder in smb.conf
add this at the end of smsb.conf
path = /var/lib/share ;share directory
browseable = yes ;browseable
read only = no ;readonly
create mask = 0644 ;file creation mask
directory mask = 0755 ;directory creation mask

5. login setting
Default setting use linux user account to login, root is forbidden
in smb.conf
security = user
invalid users = root
you can share without login by setting
sercurity = share

6.start samba service
sudo /etc/init.d/samba start

6.create samba account
sudo smbpasswd -a [linuxUsername]

If you just want to share file between your linux and windows machine in your home like me.

Here is my handy setting :
security = share

path = [share folder path]
read only = no
writable = yes
browseable = yes
guest ok = yes

and then change that folder setting :
owner = nobody
folder = create and delete
file = read and write
group = nogroup
folder = create and delete
file = read and write

install vmware-tools on Guest OS Ubuntu 7.04

My OS is windows XP, Guest OS is ubuntu Feisty Fawn.

I have try some solution from the web here and there.

The final working one is a hybrid. I don’t know why.

Here it is.

First, run two command. (or three).

1. uname -r –> get something like 2.6.20-16-generic

2. sudo apt-get install build-essential

3. sudo apt-get install linux-headers-[2.6.20-16-generic] –>

put what you get from (1) inside [ ]

Then, click on your vmware menu VM->install VMware tools…

You should see a vmware CD mounted, it appears on your desktop.

open and copy that i385.rpm to your desktop.

extract it and go to this directory in your terminal.

The directory should be vmware-tools-distrib.

Then run the final command : ./vmware-install.pl

This is it.

You can now configure vmware tools using /usr/bin/vmware-toolbox

You have to keep this running if you want to have the auto ‘jump’ mouse feature.

That is no need to punch ctrl+alt anymore.

REMARK: If you are using 64bit OS like me, you should get the ia32-libs first.

vmware-tools don’t have 64bit just like flash.

Ubuntu on VMWare as guest OS

VMWare is not so difficult to use, so I am not going to explain it.

Just give a few getting start tips.

If you are not sure about those setting, here is what you can try

1. virtual harddisk use SCSI adapter setting.

2. network use bridged setting.

3. add usb and audio by device wizard.

Once you are in your guest OS, two hot-key your must know:

1. ctrl+alt to get your input device out from the guest OS.

2. ctrl+alt+enter to shift to full screen and get back.

After these, you may find your mouse scroll not working.

Here is what you do:

run this in terminal : $ sudo gedit /etc/X11/xorg.conf

Find Option “Protocol” “PS/2” and change it to “IMPS/2”

then restart X windows by ctrl+alt+backspace.


install Flash plugin on Ubuntu Feisty Fawn AMD64

I just want to watch youtube on my ubuntu linux.

but then I found out it is troublesome on 64bit ubuntu.

Here is the steps I follow on some tutorial online and it works.

First of all, you have to turn on some repository.

double click ./etc/apt/sources.list and turn on two Edgy repository.

And then run this command in terminal to get those 32bit libs

sudo apt-get install ia32-libs ia32-libs-gtk linux32 lib32asound2

and then install nspluginwrapper to wrap the 32bit flash plugin.

you can get it by adding repository from here http://www.janvitus.netsons.org/repository/

and then run this command

sudo apt-get install nspluginwrapper gsfonts-x11

Next, download Flash player from Adobe here.

untar it, moves the 2 files “libflashplayer.so” and “flashplayer.xpt” from that folder into the /usr/lib/mozilla/plugins

run the last command

nspluginwrapper -i /usr/lib/mozilla/plugins/libflashplayer.so

copy the file which we have just generated npwrapper.libflashplayer.so from

/usr/lib/mozilla/plugins to /usr/lib/mozilla-firefox/plugins/

Now you can enjoy youtube on AMD64 bit Ubuntu. ^^