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 JDK on Linux (CentOS)

1. download the .bin runnable file from sun.
2. use chmod and change the .bin to executable mode.
3. run it. example: ./jdk1.6.0_06.bin

and then it will install itself.

But CentOS use redhat jdk under /usr/bin/java
you can check it with this command: which java
To change this environment setting for bash shell, add this to your [userhome]/.bashrc

export PATH=/[javahome]/bin:$PATH
export JAVA_HOME=”/[javahome]”

if you install your jdk to /root/jdk1.6.0_06, the result will be
export PATH=/root/jdk1.6.0_06/bin:$PATH
export JAVA_HOME=”/root/jdk1.6.0_06″

beware the difference between linux and windows (since I am windows user).
windows use “;”, linux use “:”

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.