Ubuntu 用kopete上msn+scim打中文

為甚麼用kopete,因為好像只有它跟aMSN有支援視訊
好像因為kopete是KDE的東西,ubuntu我用的應該是GNOME
所以在kopete裡面啟動不了scim中文輸入法

解決方法:
安裝scim-qtimm
在terminal輸入
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)

Advertisements

在Ubuntu安裝中文輸入法和使用中文介面

這是我第一次在自己的Linux上用中文寫BLOG
我本來是Windows愛好者,所以設定Linux大概都想設定成跟Windows一樣

首先把Ubuntu轉成中文
System->management->language support
把中文打勾,然後Default Language設定為Chinese(Taiwan)
再來登出再登入,應該就看到中文介面了

再來安裝輸入法
你把Ubuntu設定成中文介面時,他應該就幫你裝好了SCIM
SCIM就是用來管理輸入法的東西
我們再來要設定他
系統->偏好設定->SCIM輸入法設定
選”介面->全域設定”,鍵盤排列選[英文]
作用鍵加入”ctrl+space”,就是用來開關中文輸入的快捷鍵
下一種輸入法加入”ctrl+L_shift”,就像Windows那樣轉輸入法
再來選”輸入法引擎->全域設定”,只選你要用的輸入法
再來登出再登入,就設定完成了 ^^

安裝Firefly字型
在terminal輸入以下指令
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]
e.g.
smbclient -L //192.168.1.100

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

use this command to mount resource to a folder
smbmount //IP/[resource name] /[local folder] [-o options]
e.g.
smbmount //192.168.1.100/music /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
[SHARE]
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

[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.

Enjoy~