2006年6月25日 星期日

[ubuntu]在ATI Radeon 9250 安裝xgl (當作一個session)

目前XGL支援的硬體

1. 新增
deb http://www.beerorkid.com/compiz/ dapper main
deb http://xgl.compiz.info/ dapper main

到 /etc/apt/sources.list

2. apt-get update
apt-get dist-upgrade 以便安裝最新的 compiz

3. apt-get install xorg-driver-fglrx
4. 新增 /usr/bin/startxgl.sh 並 chmod +x,內容如下:
#!/bin/bash
Xgl -fullscreen :1 -ac -accel glx:pbuffer -accel xv:pbuffer & sleep 2 && DISPLAY=:1 gnome-session

5. 新增 /usr/share/xsessions/xgl.desktop,內容如下:
[Desktop Entry]
Encoding=UTF-8
Name=Xgl
Comment=Start an Xgl Session
Exec=/usr/bin/startxgl.sh
Icon=
Type=Application

6. 登出並改選xgl這個session登入即可

參考連結 https://help.ubuntu.com/community/CompositeManager/Xgl

2006年6月7日 星期三

用gaim連google talk

新增帳號

通訊協定(Protocol): 選 Jabber
帳號(Screen Name): 輸入 Gmail 帳號名稱 (@前的東西)
伺服器(Server): gmail.com
按動『隱藏細節』(Show more options) 可以顯示更多選項:
連結伺服器(Connect Server): talk.google.com
然後登入就ok了

2006年6月6日 星期二

[ubuntu]播mp3

用gstreamer要裝 gstreamer-plugins-ugly
設定ID3 tag編碼 :
加入環境變數 GST_ID3_TAG_ENCODING=Big5
直接寫入批次檔:
sudo sh -c " echo GST_ID3_TAG_ENCODING=Big5 >>/etc/X11/Xsession.d/95set-env"

2006年6月4日 星期日

[ubuntu]安裝顯示卡 ATI driver

可以用fglrxinfo看看有沒有驅動
若沒有,則依下列步驟安裝
1. install kernel
2. install xorg-driver-fglrx
3. #depmod
4. #aticonfig --initial
5. #aticonfig --overlay-type=Xv
6. reboot

ex:
sudo apt-get update
sudo apt-get install linux-restricted-modules-$(uname -r) #Okay if it is already installed
sudo apt-get install xorg-driver-fglrx
sudo depmod
sudo aticonfig --initial
sudo aticonfig --overlay-type=Xv

reboot

確認是否成功
$ fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: ATI Technologies Inc.
OpenGL renderer string: RADEON 9700 Generic
OpenGL version string: 2.0.5814 (8.25.18)

錯誤記錄
sudo ln -s /usr/lib/dri /usr/lib/xorg/modules/dri

PS: 內建晶片用 glxinfo | grep rendering 來檢查

[Linux]安裝SCIM

ubuntu 6.06 剛安裝好時,雖然SCIM己經裝好了,但是還沒啟動,所以必須自己將它啟動:

新增或編輯 /etc/X11/Xsession.d/74scim
加入
export XMODIFIERS="@im=SCIM"
export GTK_IM_MODULE=SCIM
export QT_IM_MODULE=SCIM
export XIMPROGRAM="scim -d"
scim -d

存檔後,重新啟動scim即可

註:重新啟動gdm:/etc/init.d/gdm restart