2007年12月26日 星期三

Stellarium

Stellarium 是一個星象軟體

您可以到左邊的套件搜尋網站搜尋 stellarium,然後用 1-Click Install 來安裝。
安裝後中文顯示有點問題
根據 stellarium wiki 中的提示
您可以到 /usr/share/stellarium/data/ 中修改 fontmap.dat
將 default 字型與 zh_TW 字型都設成 ukai.ttf (或您喜歡的字型)
(根據說明只支援 .ttf)
然後將 ukai.ttf (您的字型)複製到此資料夾,就可以顯示中文了



將字型的倍數設小一點,左上角的時間日期就不會疊在一起了
附註:使用 compiz-fusion 特效時會非常卡

2007年12月25日 星期二

oxim for openSUSE 10.3

oxim 可以在 openSUSE 10.3 上啟動了
使用了 fred 的 patch(感謝)
終於解決了登入 X 時卡住的問題

您可以用傳統的 oxim


也可以用 fred 製作的黑色系 icon

(請安裝 oxim-fred_icon-系列的 rpm)

祝大家耶誕快樂!(沒放假差點忘了!)

2007年12月23日 星期日

升級 nvidia 169.07 造成 compiz-fusion 無法啟動

症狀:
原本可以使用 compiz-fusion 特效,升級後卻不行了
依照
http://en.opensuse.org/Nvidia
http://en.opensuse.org/Compiz_Fusion
http://en.opensuse.org/Using_Xgl_on_SUSE_Linux
http://en.opensuse.org/AIGLX
全部重新搞一次還是失敗
在終端機執行 fusion-icon 會出現類似下面訊息
...
* Starting Compiz
... executing: compiz --replace --sm-disable --ignore-desktop-hints ccp
compiz: Trying '/usr/$LIB/libIndirectGL.so.1'
compiz (core) - Fatal: No GLXFBConfig for default depth, this isn't going to work.
compiz (core) - Error: Failed to manage screen: 0
compiz (core) - Fatal: No manageable screens found on display :0.0

請參閱此討論串
http://forum.compiz-fusion.org/showthread.php?t=6225
和這個部落格
http://crismon.altervista.org/Wp/archives/83/
簡單來說就是要修改 /usr/lib/python2.5/site-packages/FusionIcon/data.py

compiz_args = ['--replace', '--sm-disable', '--ignore-desktop-hints', 'ccp']

改成
compiz_args = ['--replace', '--sm-disable', '--ignore-desktop-hints', 'ccp', '--no-libgl-fallback']

重新開機
註:我並未使用 LIBGL_ALWAYS_INDIRECT=1 fusion-icon 來啟動 fusion-icon

2007年12月19日 星期三

kiba-dock

如果您的系統夠力又想追求更炫的桌面效果
您可以試試看 kiba-dock
它的 wiki 頁所說:
kiba-dock 是個很酷的面板,您可以啟動程式或做些其他的事。
除了它太酷以外,事實上它很適合拿來取代 GNOME/KDE/XFCE 的面板。

不過我這邊測試上有點問題(人品問題?)
1. 使用 akamaru 物理引擎很酷,它會讓您 dock 上的圖示具有物理性質,
會碰撞有質量與萬有引力...,所以他們會在桌面上跳來跳去,
但是新產生的 icon 是空白的?
2. Zoom 使用 parabolic 樣式時會留有殘影?
3. kiba-dbus-plugins 似乎都沒有用?(使用 KDE 桌面)
4. 有些 tray 上的 icon 會有邊框?
...
基於以上的不確定,我不知道打包出來的 rpm 是不是有問題
您要試用得要有心理準備
若您要自己編譯安裝,請先裝好
gtk2-devel intltool libtool automake autoconf python-gtk-devel libxml2-devel dbus-1-devel dbus-1-glib-devel 等套件

底下是一些設定的小提示:
0. kiba-dock 需要使用 composite,所以確定您的 /etc/X11/xorg.conf 有
Section "Extensions"
Option "Composite" "enable"
EndSection

1. KDE 選單可以用 Create Launcher 增加一個執行
dcop kicker kicker popupKMenu 0

的 Launcher
icon 可自己選用(例如:/usr/share/icons/oxygen/64x64/places/start-here.png)
2. KDE 家目錄可用上面方法增加執行
kfmclient openURL

3. 我讓 KDE 面板自動立刻在側面隱藏,看起來就好像沒有一樣
...其他您自己試試看吧!
底下看圖片:
kiba-dock

另外也呼籲一下:此軟體仍欠缺中文翻譯...

2007年12月13日 星期四

StarSuite 8

starsuite8

StarSuite 就是 StarOffice 的亞洲版本
您可以在 http://www.sun.com/software/star/starsuite/get.jsp 下載 60 天的試用版
當然,在這之前您得先註冊為 Sun 會員...
下載 so-8-pp8-eval-bin-linux-en-US_zh-TW.sh
賦予執行權限
$ chmod +x so-8-pp8-eval-bin-linux-en-US_zh-TW.sh

執行
$ ./so-8-pp8-eval-bin-linux-en-US_zh-TW.sh

預設解壓縮到 /var/tmp/unpack_starsuite
然後自動接著啟動安裝程式
可惜看到的是一堆方塊

您要相信我已經設定好 java 的中文字型
但是 StarSuite 8 會使用自己的 java 環境,卻沒將中文字型設好(真不親切)
按右邊算來第二個按鈕取消安裝
我們要使用自己的 java 環境來安裝
切換到已壓縮的目錄下
$ su
# cd /var/tmp/unpack_starsuite

手動執行安裝程式
# ./setup -j $JAVA_HOME/bin/java

就可以正常顯示中文了

安裝的過程自己看相簿
發現雖然已經完全安裝,但是並未整合在桌面選單中
要自己執行安裝
# cd /var/tmp/unpack_starsuite/RPMS
# rpm -ivh starsuite-suse-menus-8.0.8-9207.noarch.rpm starsuite-desktop-integration-8.0.8-9207.noarch.rpm
Preparing... ########################################### [100%]
file /usr/bin/soffice from install of starsuite-desktop-integration-8.0.8-9207 conflicts with file from package OpenOffice_org-2.3.0.1.2-10.3

原來是和 OpenOffice.org 衝突的關係
除非您真的要買 starsuite 8,不然我是不會想動到 OOo 的
您可以直接執行
$ /opt/starsuite8/program/swriter

來開啟 writer
執行畫面如下:

可將檔案存成 .odt(opendocument 格式)
也可以選 starsuite 或 msoffice 格式

gcin 會超出螢幕,似乎和強制使用 96dpi 的解析度有關(使用 kde 控制中心控制)

2007年12月11日 星期二

[轉載]加速套件管理員

原文出處:http://en.opensuse.org/SDB:Speed_up_Package_Manager_Stack
因為有訂閱 http://news.opensuse.org/
所以知道最近 openSUSE 發行了周報(現已發行2期,也在誠徵翻譯中)
周報第2期看到的小技巧與提示
"套件管理在系統中通常被頻繁的使用,巨大的資料庫被不斷的存取,變更也不斷的增加。基於修改時會增加的天性,他將導致使用的資料庫破碎,包含了內在的(在資料庫資料)與外在的(在磁碟)。"
使用一個簡單的重組,在許多方面都可以有明顯的改善。

(剛才我兒子從床上滾下來,嚇我一跳,只見他睡眼矇矓的把棉被抱回床上又繼續睡了)
簡單來說執行下面的 script 可以有點改善啦!
#!/bin/sh
sqlite3 /var/cache/zypp/zypp.db vacuum
rpm --rebuilddb # takes long
for fn in /var/cache/zypp/zypp.db \
/var/lib/rpm/Packages \
/var/lib/rpm/Filemd5s \
/var/lib/rpm/Dirnames \
/var/lib/rpm/Basenames
do
cp $fn $fn.new || exit 1
rm $fn
mv $fn.new $fn
done

將上面文字存成(例如:speed_up.sh)
chmod +x speed_up.sh
用 root 執行即可
好像真的有快一點喔(說不定是錯覺)

2007年12月6日 星期四

無法用圖形介面登入

在嘗試製作 Live CD 時,竟然將 / 分割區用光光
結果無法用圖形介面登入
Ctrl-Alt-F1 用 root 登入
將 /tmp/ 下的東西刪除
使用率從 100% 迅速掉到 43%
又可以登入了

2007年11月30日 星期五

Pootle for Compiz Fusion

CyberOrg 看到的
Compiz fusion 幾乎成為 Linux 桌面系統必裝的套件了
請大家幫 Compiz Fusion 翻譯成中文吧
http://l10n.compiz-fusion.org/pootle/

2007年11月23日 星期五

Netscape Navigator 9

裝上了懷念的 netscape

已經有某A大幫大家做了繁體中文的版本
在 OpenFoundry 的 Netscape 中文化計劃
下載之後解開執行目錄下的 navigator 即可
$ tar -zxvf netscape-navigator-9.0.zh-TW.rev1.1.tar.gz
$ cd navigator/
$ ./navigator

可安裝 firefox 大部分的擴充套件(我只安裝 googletoolbar 而已)

plugin 也可以沿用 firefox 的
$ cd plugins
$ ln -s /usr/lib/browser-plugins/* .

可以調整 textarea 的大小(如果您找得到邊界的話)

gcin 的位置則不太對( navigator 也要去 gcin 老大那兒申請加入 mozilla 家族了)
右下角 WeatherBug 不知如何調整...

2007年11月21日 星期三

java 的一些問題


明明有裝 java 和 java-plugin
$ rpm -qa | grep java
java-1_5_0-sun-plugin-1.5.0_update13-0.5
java-1_5_0-sun-1.5.0_update13-0.5

卻說你沒裝
檢查一下
SuSE 安裝的 browser-plugin 都在 /usr/lib/browser-plugins/
$ cd /usr/lib/browser-plugins/
$ ll
總計 9900
-rwxr-xr-x 1 root root 856 2007-09-22 06:02 flashplayer.xpt
lrwxrwxrwx 1 root root 28 2007-10-21 09:04 javaplugin.so -> /etc/alternatives/javaplugin
-rwxr-xr-x 1 root root 8098568 2007-10-21 11:52 libflashplayer.so
-rwxr-xr-x 1 root root 312039 2007-10-06 03:54 mplayerplug-in-dvx.so
-rwxr-xr-x 1 root root 1021 2007-10-06 03:54 mplayerplug-in-dvx.xpt
-rwxr-xr-x 1 root root 312039 2007-10-06 03:54 mplayerplug-in-gmp.so
-rwxr-xr-x 1 root root 1021 2007-10-06 03:54 mplayerplug-in-gmp.xpt
-rwxr-xr-x 1 root root 312039 2007-10-06 03:54 mplayerplug-in-qt.so
-rwxr-xr-x 1 root root 1021 2007-10-06 03:54 mplayerplug-in-qt.xpt
-rwxr-xr-x 1 root root 312039 2007-10-06 03:54 mplayerplug-in-rm.so
-rwxr-xr-x 1 root root 1021 2007-10-06 03:54 mplayerplug-in-rm.xpt
-rwxr-xr-x 1 root root 312039 2007-10-06 03:54 mplayerplug-in.so
-rwxr-xr-x 1 root root 312039 2007-10-06 03:54 mplayerplug-in-wmp.so
-rwxr-xr-x 1 root root 1021 2007-10-06 03:54 mplayerplug-in-wmp.xpt
-rwxr-xr-x 1 root root 1021 2007-10-06 03:54 mplayerplug-in.xpt
-rwxr-xr-x 1 root root 63167 2007-09-22 06:18 nphelix.so
-rwxr-xr-x 1 root root 5086 2007-09-22 06:18 nphelix.xpt
lrwxrwxrwx 1 root root 42 2007-10-21 09:06 npwrapper.so -> ../nspluginwrapper/i386/linux/npwrapper.so

這表示連結出了問題
$ cd /etc/alternatives
$ ll java*
lrwxrwxrwx 1 root root 35 2007-11-20 18:31 java -> /usr/lib/jvm/jre-1.5.0-sun/bin/java
lrwxrwxrwx 1 root root 44 2007-11-20 18:31 java.1.gz -> /usr/share/man/man1/java-java-1_5_0-sun.1.gz
lrwxrwxrwx 1 root root 83 2007-10-21 10:02 javaplugin -> /usr/lib/jvm/java-1.5.0-sun-1.5.0_update12/jre/plugin/i386/ns7/libjavaplugin_oji.so
lrwxrwxrwx 1 root root 37 2007-11-20 18:31 javaws -> /usr/lib/jvm/jre-1.5.0-sun/bin/javaws
lrwxrwxrwx 1 root root 46 2007-11-20 18:31 javaws.1.gz -> /usr/share/man/man1/javaws-java-1_5_0-sun.1.gz

找到問題了
我已經升級到 java-1.5.0-sun-1.5.0_update13 而連結卻是連到 java-1.5.0-sun-1.5.0_update12
$ sudo rm javaplugin
$ sudo ln -s /usr/lib/jvm/java-1.5.0-sun-1.5.0_update13-sr2/jre/plugin/i386/ns7/libjavaplugin_oji.so javaplugin

java 的路徑幹嘛這麼複雜啊?
接下來您可以到 http://www.java.com/zh_TW/ 驗證 java 安裝
若沒辦法通過驗證
請在 ~/.profile 中加上
export LIBXCB_ALLOW_SLOPPY_LOCK=1
重新登入 X,再去驗證一下。


java 的中文有沒有問題
可以從 java 控制面板中看出來

是因為 SuSE 預設使用 founder-MingTiB 就是方正明體(FZMingTiB)(FZMingTiB.ttf)
您可以從 /usr/lib/jvm/jre/lib/fontconfig.SuSE.properties 看出來
這個字型在使用 DVD 安裝或 CD 在中文化前加入 non-oss 的套件庫都會安裝
它包含在 ttf-founder-traditional 這個套件中
如果您已經將此套件移除
也可以用其他字型替代

***補充說明一下,如果您裝了 opendesktop-fonts-odosung 這個套件
直接開啟終端機
$ su
# SuSEconfig --module fonts

應該也可以顯示中文***

在 java-1.5 之後都可以使用 fallback 這個目錄中的字型當作預設字型
例如我的系統中使用 uming 這個字體
將這個字體連結或複製到該資料夾即可
$ cd /usr/lib/jvm/jre/lib/fonts
$ sudo mkdir fallback
$ cd fallback
$ sudo ln -s /usr/share/fonts/truetype/uming.ttf .


最後,我們回到中國信託證券的網站 http://www.win168.com.tw/
java 跑馬燈仍是方框

在 java 字型調整好之後還看到方框,通常就是編碼出了問題
請用終端機執行
$ export LC_ALL="zh_TW.Big5"; firefox

此時就可以看見跑馬燈了

2007年11月20日 星期二

使用 PCI 的 GW-US54GD

這是一個 USB 的無線網卡
根據網路上查到的資料可以使用 zd1211rw 這個驅動程式模組
但是型號尚未加進去
所以我們要自己動手編譯

1. 先安裝核心原始碼,在 openSUSE 中,這個套件就叫做 kernel-source
在光碟中就有,但是您一定已經升級了 kernel
這時應該由 update source 中來安裝相對應的 kernel-source
我們還需要 zd1211-firmware
# zypper in kernel-source zd1211-firmware

2. 您還需要其他的編譯工具,至少您需要 gcc 和 make
# zypper in gcc make

3. 將網卡插入 USB 中,用 lsusb 看看您的型號
(lsusb 在 usbutils 套件中)
# lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 005 Device 003: ID 2019:ed01
Bus 005 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

我們知道這張網卡就是 2019:ed01
4.修改 /usr/src/linux/drivers/net/wireless/zd1211rw/zd_usb.c
依照裏面的列表模式將
{ USB_DEVICE(0x2019, 0xed01), .driver_info = DEVICE_ZD1211B },
加入
5. 重新編譯
# cd /usr/src/linux
# make clean
# make oldconfig
# make scripts
# make prepare
# cd drivers/net/wireless/zd1211rw
# make -C /lib/modules/`uname -r`/build/ M=`pwd` modules
# make -C /lib/modules/`uname -r`/build/ M=`pwd` modules_install

6. 重新開機,開啟終端機
# modprobe zd1211rw

7. 此時再插入 GW-US54GD
就會偵測到新網卡,若您使用 NetworkManager
此時再 NetworkManager 圖示上按右鍵就可以切換成無線網路了
8. 如果您希望插上此網卡時自動載入 zd1211rw 模組
您可以用 YaST 設定網卡,在模組名稱中填入 zd1211rw

下次就會再您插入這支網卡時自動載入 zd1211rw

2007年11月19日 星期一

hinedo 0.4 for openSUSE

PCMan 大也配合修改了收音機的 script
還設計了線上更新 script 的服務
推出 Hinedo 0.4
預設使用 MPlayer 來作為播放器
您若未安裝 MPlayer 請加入 Packman 的套件庫
安裝起來比較方便

若您已經搞定 MPlayer (例如用 1-Click Install)
應該直接下載 hinedo 來安裝即可
或是您已經有 swyear 和 Packman 的套件庫
就可以直接用 yast 或 zypper 或 smart 來安裝
# yast -i hinedo 或
# zypper in hinedo 或
# smart install hinedo

2007年11月17日 星期六

openSUSE 10.3 基本中文化

本文主要針對 openSUSE 10.3 CD 版本
因為 CD 版本,包含 Live CD 都是英文版
所以需要些中文化的工作
這是接著上一篇用 openSUSE 10.3 KDE Live CD 安裝完後的一些工作

話說上次把 openSUSE 10.3 KDE Live CD 安裝到硬碟後
重開機,就馬上發現到一件神奇的事:
在 Live CD 上安裝的 gcin 和 odosung 都還在
您加入/修改的套件庫來源也都還在
看圖:

不過 Sax2 的設定和 ADSL 設定不見了
但是一開機就有 gcin 和漂亮的中文字(網頁),感覺真是太舒服了
不介意用英文介面的話,其實就可以用了,哈哈哈!
一般要更改語系加入中文支援就到 YaST 中找 Language 改成 Traditional Chinese (繁體中文)就可以了
不過我不打算這麼做
因為這樣做就會將 scim 以及 舊的文鼎字型 (oss) 或方正字型 (non-oss) 裝上
而我不打算用這些
所以自己手動挑選套件裝上即可
看看直接安裝 zh_TW 語言套件會裝上哪些
# zypper in -t language zh_TW
* Reading repository '10.3-update' cache
* Reading repository '10.3-oss' cache
* Reading repository 'swyear' cache
* Reading installed packages [100%]


The following NEW languages are going to be installed:
zh_TW zh

The following NEW packages are going to be installed:
MozillaFirefox-translations scim-bridge scim-bridge-gtk scim-bridge-qt
yast2-trans-zh_TW anthy fbiterm ft2demos gd glib gtk gtkiterm imlib libXiterm libchewing
libiterm libotf lv m17n-lib mlterm mlterm-scim rxvt-unicode scim scim-chewing
scim-input-pad scim-m17n scim-pinyin scim-pinyin-skim scim-qtimm scim-tables
scim-tables-skim scim-tables-zh skim xiterm CID-keyed-fonts-MOE OpenOffice_org-zh-TW
bundle-lang-common-zh bundle-lang-gnome-zh bundle-lang-kde-zh desktop-translations
ghostscript-cjk ifntchia ifntchib kde3-i18n-zh_TW kde4-l10n-zh_TW m17n-db
man-pages-zh_CN ttf-arphic ttf-arphic-bkai00mp ttf-arphic-bsmi00lp

Overall download size: 108.8 M. After the operation, additional 259.3 M will be used.
Continue? [yes/no]: n

這是只有 oss 的部份,若加上 non-oss
# zypper in -t language zh_TW
* Reading repository '10.3-update' cache
* Reading repository '10.3-non-oss' cache
* Reading repository '10.3-oss' cache
* Reading repository 'swyear' cache
* Reading installed packages [100%]


The following NEW languages are going to be installed:
zh_TW zh

The following NEW packages are going to be installed:
ttf-founder-traditional MozillaFirefox-translations scim-bridge scim-bridge-gtk
scim-bridge-qt yast2-trans-zh_TW anthy fbiterm ft2demos gd glib gtk gtkiterm imlib
libXiterm libchewing libiterm libotf lv m17n-lib mlterm mlterm-scim rxvt-unicode scim
scim-chewing scim-input-pad scim-m17n scim-pinyin scim-pinyin-skim scim-qtimm
scim-tables scim-tables-skim scim-tables-zh skim xiterm CID-keyed-fonts-MOE
OpenOffice_org-zh-TW bundle-lang-common-zh bundle-lang-gnome-zh bundle-lang-kde-zh
desktop-translations ghostscript-cjk ifntchia ifntchib kde3-i18n-zh_TW
kde4-l10n-zh_TW m17n-db man-pages-zh_CN ttf-arphic ttf-arphic-bkai00mp
ttf-arphic-bsmi00lp

Overall download size: 120.9 M. After the operation, additional 285.1 M will be used.
Continue? [yes/no]: n

那您需要哪些呢?
下面一大堆就是查詢的結果
# zypper if ttf-founder-traditional MozillaFirefox-translations scim-bridge scim-bridge-gtk scim-bridge-qt yast2-trans-zh_TW anthy fbiterm ft2demos gd glib gtk gtkiterm imlib libXiterm libchewing libiterm libotf lv m17n-lib mlterm mlterm-scim rxvt-unicode scim scim-chewing scim-input-pad scim-m17n scim-pinyin scim-pinyin-skim scim-qtimm scim-tables scim-tables-skim scim-tables-zh skim xiterm CID-keyed-fonts-MOE OpenOffice_org-zh-TW bundle-lang-common-zh bundle-lang-gnome-zh bundle-lang-kde-zh desktop-translations ghostscript-cjk ifntchia ifntchib kde3-i18n-zh_TW kde4-l10n-zh_TW m17n-db man-pages-zh_CN ttf-arphic ttf-arphic-bkai00mp ttf-arphic-bsmi00lp
* Reading repository '10.3-update' cache
* Reading repository '10.3-non-oss' cache
* Reading repository '10.3-oss' cache
* Reading repository 'swyear' cache
* Reading installed packages [100%]



Information for package ttf-founder-traditional:

Repository: 10.3-non-oss
Name: ttf-founder-traditional
Version: 0.20040419-1
Arch: noarch
Installed: No
Status: not installed
Installed Size: 25.7 M
Summary: traditional Chinese TrueType fonts made by Beijing Founder Electronics
Description:
<!-- DT:Rich -->
<p>traditional Chinese TrueType fonts made by Beijing Founder Electronics
</p>

Information for package MozillaFirefox-translations:

Repository: 10.3-update
Name: MozillaFirefox-translations
Version: 2.0.0.8-1.1
Arch: i586
Installed: Yes
Status: up-to-date
Installed Size: 26.9 M
Summary: Translations for MozillaFirefox
Description:
This package contains several optional languages for the user interface
of MozillaFirefox.



Authors:
--------
Mozilla Foundation <drivers@mozilla.org>

Information for package scim-bridge:

Repository: 10.3-update
Name: scim-bridge
Version: 0.4.13-25.2
Arch: i586
Installed: No
Status: not installed
Installed Size: 508.9 K
Summary: Scim Bridge
Description:
Scim Bridge



Authors:
--------
Ryo Dairiki <ryo-dairiki@users.sourceforge.net>

Information for package scim-bridge-gtk:

Repository: 10.3-update
Name: scim-bridge-gtk
Version: 0.4.13-25.2
Arch: i586
Installed: No
Status: not installed
Installed Size: 70.7 K
Summary: Scim Bridge for gtk2
Description:
Scim Bridge for gtk2



Authors:
--------
Ryo Dairiki <ryo-dairiki@users.sourceforge.net>

Information for package scim-bridge-qt:

Repository: 10.3-update
Name: scim-bridge-qt
Version: 0.4.13-25.2
Arch: i586
Installed: No
Status: not installed
Installed Size: 98.9 K
Summary: Scim Bridge for Qt
Description:
Scim Bridge for Qt



Authors:
--------
Ryo Dairiki <ryo-dairiki@users.sourceforge.net>

Information for package yast2-trans-zh_TW:

Repository: 10.3-update
Name: yast2-trans-zh_TW
Version: 2.15.12-2.1openSUSE 10.3 KDE Live CD
Arch: noarch
Installed: No
Status: not installed
Installed Size: 2.0 M
Summary: YaST2 - Traditional Chinese Translations
Description:
YaST2 - Traditional Chinese Translations

Information for package anthy:

Repository: 10.3-oss
Name: anthy
Version: 9100-26
Arch: i586
Installed: No
Status: not installed
Installed Size: 22.0 M
Summary: Kana-Kanji Conversion Engine
Description:
<!-- DT:Rich -->
<p>Anthy (previously called 'Ancy'):
</p><p>
Canna, FreeWnn, and others are famous Kana-Kanji conversion engines
usable for Unix on PCs. They were originally developed for
Japanese Unix workstations around 1990 and development has
practically stopped. Therefore, the Heke Project is writing a free
conversion engine from scratch (apart from the dictionary, which is
developed outside of the Heke Project).
</p>

Information for package fbiterm:

Repository: 10.3-oss
Name: fbiterm
Version: 0.5.20040304-140
Arch: i586
Installed: No
Status: not installed
Installed Size: 791.3 K
Summary: Internationalized Terminal Emulator for Framebuffers
Description:
<!-- DT:Rich -->openSUSE 10.3 KDE Live CD
<p>An internationalized terminal emulator for framebuffers.
</p>

Information for package ft2demos:

Repository: 10.3-oss
Name: ft2demos
Version: 2.3.5-22
Arch: i586
Installed: No
Status: not installed
Installed Size: 474.5 K
Summary: Freetype2 Utilities and Demo Programs
Description:
<!-- DT:Rich -->openSUSE 10.3 KDE Live CD
<p>Freetype2 utilities and demo programs.
</p>

Information for package gd:

Repository: 10.3-oss
Name: gd
Version: 2.0.35-20
Arch: i586
Installed: No
Status: not installed
Installed Size: 598.8 K
Summary: A Drawing Library for Programs That Use PNG and JPEG Output
Description:
<!-- DT:Rich -->
<p>Gd allows your code to quickly draw images complete with lines, arcs,
text, and multiple colors. It supports cut and paste from other images and
flood fills. It outputs PNG, JPEG, and WBMP (for wireless devices) and is
supported by PHP4.
</p>

Information for package glib:

Repository: 10.3-oss
Name: glib
Version: 1.2.10-672
Arch: i586
Installed: No
Status: not installed
Installed Size: 327.0 K
Summary: The Utility Functions for Gtk
Description:
<!-- DT:Rich -->
<p>A library of utility functions for Gtk.
</p>

Information for package gtk:

Repository: 10.3-oss
Name: gtk
Version: 1.2.10-993
Arch: i586
Installed: No
Status: not installed
Installed Size: 2.0 M
Summary: A Library for the Creation of Graphical User Interfaces
Description:
<!-- DT:Rich -->
<p>This fast and versatile library was used all over the world for all
GNOME applications, the GIMP, and several others. Originally it was
written for the GIMP and hence has the name GIMP ToolKit. Many people
like it because it is small, efficient, and very configurable.
</p><p>
Most applications which used GTK1 have since switched to <a href="pkg://gtk2"> GTK2</a>.
Besides a more flexible API, it provides improved text rendering using <a href="pkg://pango"> Pango</a> and many other goodies, but GTK+ 2 lacks compatibility with GTK1, so to switch, programmers have to port applications to it.
</p><p>
Thus, some applications for which GTK1 is sufficient, still to use GTK1.
GTK1 remains faster and less complex than GTK2. To develop applications with gtk, you need the package <a href="pkg://gtk-devel">gtk-devel</a>.
</p>

Information for package gtkiterm:

Repository: 10.3-oss
Name: gtkiterm
Version: 0.5.20040304-140
Arch: i586
Installed: No
Status: not installed
Installed Size: 15.1 K
Summary: Internationalized Terminal Emulator for GTK
Description:
<!-- DT:Rich -->
<p>An internationalized terminal emulator for GTK.
</p>

Information for package imlib:

Repository: 10.3-oss
Name: imlib
Version: 1.9.14-305
Arch: i586
Installed: No
Status: not installed
Installed Size: 400.0 K
Summary: A Shared Library for Loading and Rendering 3D Images
Description:
<!-- DT:Rich -->
<p>This is a general, all-purpose image loading and rendering (image data
to screen data) library. Imlib is currently capable of loading 25
different image formats.
</p><p>
See the file /usr/include/X11/imlib.h or directory
/usr/share/doc/packages/imlib for more details.
</p><p>
This shared library is needed for the Enlightenment window manager and
for GNOME.
</p>

Information for package libXiterm:

Repository: 10.3-oss
Name: libXiterm
Version: 0.5.20040304-140
Arch: i586
Installed: No
Status: not installed
Installed Size: 40.4 K
Summary: terminal emulator Xaw widget library based on libiterm
Description:
<!-- DT:Rich -->
<p>terminal emulator Xaw widget library based on libiterm
</p>

Information for package libchewing:

Repository: 10.3-oss
Name: libchewing
Version: 0.3.0-73
Arch: i586
Installed: No
Status: not installed
Installed Size: 9.1 M
Summary: Intelligent Phonetic Input Method Library for Traditional Chinese
Description:
<!-- DT:Rich -->
<p>Intelligent phonetic input method library for traditional Chinese.
</p>

Information for package libiterm:

Repository: 10.3-oss
Name: libiterm
Version: 0.5.20040304-140
Arch: i586
Installed: No
Status: not installed
Installed Size: 80.2 K
Summary: Internationalized Terminal Emulator Library
Description:
<!-- DT:Rich -->
<p>This is a portable library for internationalized terminal emulator.
All you need to make terminal emulator is to implements Callback functions,
like a drawing string on specific column and row, or set fore/background
color and so on.
</p>

Information for package libotf:

Repository: 10.3-oss
Name: libotf
Version: 0.9.6-15
Arch: i586
Installed: No
Status: not installed
Installed Size: 188.8 K
Summary: Library for Handling OpenType Fonts
Description:
<!-- DT:Rich -->
<p>Library for handling OpenType fonts.
</p>

Information for package lv:

Repository: 10.3-oss
Name: lv
Version: 4.51-62
Arch: i586
Installed: No
Status: not installed
Installed Size: 581.9 K
Summary: Powerful, Multilingual File Viewer, Same User Interface as "Less"
Description:
<!-- DT:Rich -->
<p>Lv is a powerful, multilingual file viewer. Apparently, lv looks like
less (1), a representative file viewer on UNIX, so UNIX
people (and less people on other OSs) do not have to learn a burdensome
new interface.
</p><p>
</p><p>
Lv can decode and encode multilingual streams through many coding
systems. Lv can be used as a coding system translation filter.
</p><p>
</p><p>
Lv can recognize multibyte patterns as regular expressions, and
provides multilingual grep (1) functionality under the name
lgrep.
</p><p>
</p><p>
Lv can recognize ANSI escape sequences for text decoration.
</p>

Information for package m17n-lib:

Repository: 10.3-oss
Name: m17n-lib
Version: 1.4.0-27
Arch: i586
Installed: No
Status: not installed
Installed Size: 666.6 K
Summary: Multilingual Text Processing Library for the C Language
Description:
<!-- DT:Rich -->
<p>A multilingual text processing library for the C language.
</p>

Information for package mlterm:

Repository: 10.3-oss
Name: mlterm
Version: 2.9.3.20070123-84
Arch: i586
Installed: No
Status: not installed
Installed Size: 3.9 M
Summary: Multilingual Terminal Emulator for X
Description:
<!-- DT:Rich -->
<p>Mlterm is a multilingual terminal emulator for the X Window System.
</p><p>
Multilingual features:
</p><p>
supported charsets: US_ASCII, ISO8859[1-11], ISO8859[13-16], TCVN5712, VISCII, KOI8_R, KOI8_U, JISX0201, JISX0208, JISX0212, JISX0213, GB2312, GBK, KSC5601, UHC, CNS11643-N, Big5, UCS2(4)
</p><p>
supported encodings: ISO-8859-[1-11], ISO-8859- [13-16], TCVN5612, VISCII, KOI8_R, KOI8_U, EUC-JP, EUC-JISX0213, ISO-2022-JP [1, 2, 3], Shift_JIS, Shift_JISX0213, EUC-KR, UHC, JOHAB, ISO-2022-KR, ISO-2022-CN, GB2312(EUC-CN), GBK, GB18030, EUC-TW, Big5, Hz, UTF-8
</p><p>
character composition: TIS620, TCVN5712, JISX0213, UNICODE
</p><p>
Multiple xims are also supported and you can dynamically change various xims.
</p><p>
Other features:
<ul>
<li>scroll by wheel mouse
</li><li>antialias font (requires Xft and Xrender extensions)
</li><li>proportional font
</li><li>transparent background
</li><li>background image (requires Imlib)
</li><li>multiple pty windows
</li><li>scrollbar plug-in API (unstable)
</li></ul></p>

Information for package mlterm-scim:

Repository: 10.3-oss
Name: mlterm-scim
Version: 2.9.3.20070123-84
Arch: i586
Installed: No
Status: not installed
Installed Size: 74.2 K
Summary: SCIM plugin for mlterm
Description:
<!-- DT:Rich -->
<p>A plugin to use the SCIM input methods directly from mlterm.
</p>

Information for package rxvt-unicode:

Repository: 10.3-oss
Name: rxvt-unicode
Version: 8.3-16
Arch: i586
Installed: No
Status: not installed
Installed Size: 3.1 M
Summary: Rxvt X Terminal with Unicode Support
Description:
<!-- DT:Rich -->
<p>rxvt-unicode is a clone of the well-known terminal emulator rxvt, modified to
store text in Unicode (either UCS-2 or UCS-4) and to use locale-correct input
and output.
It also supports mixing multiple fonts at the same time, includingXft fonts.
</p>

Information for package scim:

Repository: 10.3-oss
Name: scim
Version: 1.4.7-24
Arch: i586
Installed: No
Status: not installed
Installed Size: 3.2 M
Summary: Smart Chinese/Common Input Method platform
Description:
<!-- DT:Rich -->
<p>SCIM is a developing platform to significantly reduce the difficulty of
input method development.
</p>

Information for package scim-chewing:

Repository: 10.3-oss
Name: scim-chewing
Version: 0.3.1-111
Arch: i586
Installed: No
Status: not installed
Installed Size: 154.1 K
Summary: chewing input method module for SCIM
Description:
<!-- DT:Rich -->
<p>chewing input method module for SCIM
</p>

Information for package scim-input-pad:

Repository: 10.3-oss
Name: scim-input-pad
Version: 0.1.1-126
Arch: i586
Installed: No
Status: not installed
Installed Size: 259.2 K
Summary: an onscreen input pad to easily input symbols
Description:
<!-- DT:Rich -->
<p>an onscreen input pad to easily input symbols
</p>

Information for package scim-m17n:

Repository: 10.3-oss
Name: scim-m17n
Version: 0.2.2-70
Arch: i586
Installed: No
Status: not installed
Installed Size: 105.0 K
Summary: M17N Input Method Engine for SCIM
Description:
<!-- DT:Rich -->
<p>M17N Input Method Engine for SCIM
</p><p>
Supports all input methods offered by m17n-lib and m17n-db.
</p><p>
Currently the following languages are supported:
</p><p>
Amharic, Arabic, Armenian, Assamese, Bengali, Chinese, Croatian,
Devanagari, Dhivehi, Farsi, Georgian Greek, Gujarati, Hebrew,
Japanese, Kannada, Kazakh, Khmer, Korean, Lao, Malayalam, Myanmar,
Oriya, Punjabi, Russian, Serbian, Sinhala, Slovak, Syriac, Tamil,
Telugu, Thai, Tibetan, Vietnamese
</p><p>
Several generic input methods for languages based on the Latin
alphabet are also included.
</p>

Information for package scim-pinyin:

Repository: 10.3-oss
Name: scim-pinyin
Version: 0.5.91.20060705-118
Arch: i586
Installed: No
Status: not installed
Installed Size: 5.1 M
Summary: Intelligent Pinyin input module for Smart Chinese/Common Input Method platform
Description:
<!-- DT:Rich -->
<p>Intelligent Pinyin input module for Smart Chinese/Common Input Method platform
</p>

Information for package scim-pinyin-skim:

Repository: 10.3-oss
Name: scim-pinyin-skim
Version: 0.5.91.20060705-118
Arch: i586
Installed: No
Status: not installed
Installed Size: 119.1 K
Summary: skim setup module for scim-pinyin
Description:
<!-- DT:Rich -->
<p>skim setup module for scim-pinyin
</p>

Information for package scim-qtimm:

Repository: 10.3-oss
Name: scim-qtimm
Version: 0.9.4-121
Arch: i586
Installed: No
Status: not installed
Installed Size: 261.6 K
Summary: Qt input module plugin for SCIM
Description:
<!-- DT:Rich -->
<p>Qt input module plugin for SCIM
</p>

Information for package scim-tables:

Repository: 10.3-oss
Name: scim-tables
Version: 0.5.7-109
Arch: i586
Installed: No
Status: not installed
Installed Size: 955.9 K
Summary: Data Files for SCIM Generic Table Input Method Module
Description:
<!-- DT:Rich -->
<p>Data files for SCIM generic table input method module.
</p>

Information for package scim-tables-skim:

Repository: 10.3-oss
Name: scim-tables-skim
Version: 0.5.7-109
Arch: i586
Installed: No
Status: not installed
Installed Size: 81.2 K
Summary: skim setup module for scim-tables
Description:
<!-- DT:Rich -->
<p>skim setup module for scim-tablesinput method module.
</p>

Information for package scim-tables-zh:

Repository: 10.3-oss
Name: scim-tables-zh
Version: 0.5.7-109
Arch: i586
Installed: No
Status: not installed
Installed Size: 11.2 M
Summary: SCIM Chinese Data Files
Description:
<!-- DT:Rich -->
<p>This package includes SCIM table IM data files in Chinese.
</p><p>
The data files come from UNICON and XCIN.
</p>

Information for package skim:

Repository: 10.3-oss
Name: skim
Version: 1.4.5-120
Arch: i586
Installed: No
Status: not installed
Installed Size: 3.0 M
Summary: KDE integration for SCIM
Description:
<!-- DT:Rich -->
<p>KDE integration for SCIM
</p>

Information for package xiterm:

Repository: 10.3-ossSuSEconfig
Name: xiterm
Version: 0.5.20040304-140
Arch: i586
Installed: No
Status: not installed
Installed Size: 43.2 K
Summary: Internationalized Terminal Emulator for X11
Description:
<!-- DT:Rich -->
<p>Internationalized Terminal Emulator for X11
</p>

Information for package CID-keyed-fonts-MOE:

Repository: 10.3-oss
Name: CID-keyed-fonts-MOE
Version: 20021114-275
Arch: noarch
Installed: No
Status: not installed
Installed Size: 22.5 M
Summary: MOE CID-Keyed Fonts (for Traditional Chinese)
Description:
<!-- DT:Rich -->
<p>This package contains the CID-keyed fonts
</p><p>
</p><p>
MOESung-Regular (Adobe-CNS1-0 subset: 13699 CIDs)
MOEKai-Regular (Adobe-CNS1-0 subset: 13699 CIDs)
</p><p>
</p><p>
These fonts are useful for traditional Chinese--for Taiwan and Hongkong.
The fonts can be used with Ghostscript as well as with X11.
</p>

Information for package OpenOffice_org-zh-TW:

Repository: 10.3-oss
Name: OpenOffice_org-zh-TW
Version: 2.3.0.1.2-3
Arch: noarch
Installed: No
Status: not installed
Installed Size: 33.1 M
Summary: Chinese Traditional Localization Files for OpenOffice.org
Description:
<!-- DT:Rich -->
<p>Chinese traditional localization files for OpenOffice.org.
</p>

Information for package bundle-lang-common-zh:

Repository: 10.3-oss
Name: bundle-lang-common-zh
Version: 10.3-44
Arch: noarch
Installed: No
Status: not installed
Installed Size: 1.9 M
Summary: Translations for a Group of Programs
Description:
<!-- DT:Rich -->
<p>This package groups translations for a dozen of programs which are both on the GNOME and KDE CD into languages, not split out into extra packages.
</p>

Information for package bundle-lang-gnome-zh:

Repository: 10.3-oss
Name: bundle-lang-gnome-zh
Version: 10.3-61
Arch: noarch
Installed: No
Status: not installed
Installed Size: 7.1 M
Summary: Translations for a many GNOME programs
Description:
<!-- DT:Rich -->
<p>This package groups translations for many GNOME programs.
</p>

Information for package bundle-lang-kde-zh:

Repository: 10.3-oss
Name: bundle-lang-kde-zh
Version: 10.3-103
Arch: noarch
Installed: No
Status: not installed
Installed Size: 1.1 M
Summary: Translations for a group of KDE applications
Description:
<!-- DT:Rich -->
<p>This package groups translations for a dozen of KDE programs into languages, not split out into extra packages.
<ul>
<li>amarok
</li><li>digikam
</li><li>digikam-doc
</li><li>gwenview
</li><li>k3b
</li><li>kaffeine
</li><li>kdebase3-SuSE
</li><li>kdetv
</li><li>kerry
</li><li>kipi-plugins
</li><li>konversation
</li><li>ktorrent
</li><li>libkipi
</li></ul></p>

Information for package desktop-translations:

Repository: 10.3-oss
Name: desktop-translations
Version: 10.3-64
Arch: noarch
Installed: No
Status: not installed
Installed Size: 23.4 M
Summary: Desktop Files Translation updates
Description:
<!-- DT:Rich -->
<p>This package provides further translations for installed desktop files.
</p>

Information for package ghostscript-cjk:

Repository: 10.3-oss
Name: ghostscript-cjk
Version: 20050315-82
Arch: noarch
Installed: No
Status: not installed
Installed Size: 15.3 M
Summary: Tools for Using CJK TrueType Fonts and CID-Keyed Fonts with Ghostscript
Description:
<!-- DT:Rich -->
<p>CMaps, scripts, and other tools for using CJK TrueType fonts and
CID-keyed fonts with Ghostscript.
</p>

Information for package ifntchia:

Repository: 10.3-oss
Name: ifntchia
Version: 1.2.1-303
Arch: noarch
Installed: No
Status: not installed
Installed Size: 6.2 M
Summary: Chinese Fonts for the X Window System
Description:
<!-- DT:Rich -->
<p>Chinese fonts for the X Window System.
</p>

Information for package ifntchib:

Repository: 10.3-oss
Name: ifntchib
Version: 1.2.1-303
Arch: noarch
Installed: No
Status: not installed
Installed Size: 7.4 M
Summary: Big Chinese Fonts for the X Window System
Description:
<!-- DT:Rich -->
<p>Big Chinese fonts for the X Window System.
</p>

Information for package kde3-i18n-zh_TW:

Repository: 10.3-oss
Name: kde3-i18n-zh_TW
Version: 3.5.7-6
Arch: noarch
Installed: No
Status: not installed
Installed Size: 7.6 M
Summary: Chinese Translations for KDE
Description:
<!-- DT:Rich -->
<p>All the requirements for a Chinese desktop. This package contains application
translations, help files, and screen shots.
</p>

Information for package kde4-l10n-zh_TW:

Repository: 10.3-oss
Name: kde4-l10n-zh_TW
Version: 3.93.0-2
Arch: noarch
Installed: No
Status: not installed
Installed Size: 6.4 M
Summary: Chinese traditional (zh_TW) translations for KDE
Description:
<!-- DT:Rich -->
<p>All the requirements for a desktop in traditional chinese. This package contains application translations, help files, and screenshots.
</p>

Information for package m17n-db:

Repository: 10.3-oss
Name: m17n-db
Version: 1.4.0-10
Arch: noarch
Installed: No
Status: not installed
Installed Size: 4.8 M
Summary: Database Needed by the m17n Library m17n-lib
Description:
<!-- DT:Rich -->
<p>Database that is needed by the m17n library "m17n-lib".
</p>

Information for package man-pages-zh_CN:

Repository: 10.3-oss
Name: man-pages-zh_CN
Version: 1.5-12
Arch: noarch
Installed: No
Status: not installed
Installed Size: 2.3 M
Summary: Chinese translation of man pages from the CMPP project
Description:
<!-- DT:Rich -->
<p>Chinese translation of man pages from the CMPP project
</p>

Information for package ttf-arphic:

Repository: 10.3-oss
Name: ttf-arphic
Version: 20001125-679
Arch: noarch
Installed: No
Status: not installed
Installed Size: 14.4 K
Summary: Chinese TrueType fonts by Arphic Technology (only the license text is present in this package)
Description:
<!-- DT:Rich -->
<p>Chinese TrueType fonts by Arphic Technology. This package contains
only the license texts. The fonts themselves are in the sub-packages
ttf-arphic-bkai00mp, ttf-arphic-bsmi00lp, ttf-arphic-gkai00mp, and
ttf-arphic-gbsn00lp.
</p>

Information for package ttf-arphic-bkai00mp:

Repository: 10.3-oss
Name: ttf-arphic-bkai00mp
Version: 20001125-679
Arch: noarch
Installed: No
Status: not installed
Installed Size: 9.9 M
Summary: AR PL KaitiM Big5 Chinese TrueType font by Arphic Technology
Description:
<!-- DT:Rich -->
<p>AR PL KaitiM Big5 is a high quality Chinese TrueType font
(bkai00mp.ttf) generously provided by Arphic Technology to the Free
Software community under the Arphic Public License.
</p>

Information for package ttf-arphic-bsmi00lp:

Repository: 10.3-oss
Name: ttf-arphic-bsmi00lp
Version: 20001125-679
Arch: noarch
Installed: No
Status: not installed
Installed Size: 12.1 M
Summary: AR PL Mingti2L Big5 Chinese TrueType font by Arphic Technology
Description:
<!-- DT:Rich -->
<p>AR PL Mingti2L Big5 is a high quality Chinese TrueType font
(bsmi00lp.ttf) generously provided by Arphic Technology to the Free
Software community under the Arphic Public License.
</p>

底下是我的選擇,您應該依自己的需求來決定
我選的大多是翻譯檔與字型
# zypper in MozillaFirefox-translations yast2-trans-zh_TW libotf CID-keyed-fonts-MOE OpenOffice_org-zh-TW bundle-lang-common-zh bundle-lang-gnome-zh bundle-lang-kde-zh desktop-translations ghostscript-cjk kde3-i18n-zh_TW kde4-l10n-zh_TW
* Reading repository '10.3-update' cache
* Reading repository '10.3-non-oss' cache
* Reading repository '10.3-oss' cache
* Reading repository 'swyear' cache
* Reading installed packages [100%]


The following NEW packages are going to be installed:
MozillaFirefox-translations yast2-trans-zh_TW ft2demos libotf CID-keyed-fonts-MOE
OpenOffice_org-zh-TW bundle-lang-common-zh bundle-lang-gnome-zh bundle-lang-kde-zh
desktop-translations ghostscript-cjk kde3-i18n-zh_TW kde4-l10n-zh_TW

Overall download size: 58.6 M. After the operation, additional 148.0 M will be used.
Continue? [yes/no]:y

下載檔案只有預設的一半左右,你也可以再精減些
例如我用 KDE 就不裝和 gnome 有關的翻譯檔(說不定 gimp 就沒中文了)
您自己看著辦
安裝完後編輯 /etc/sysconfig/language
設定 RC_LANG="zh_TW.UTF-8"
存檔離開後執行
# SuSEconfig

重新登入,就變成中文介面了

YaST 中有幾個沒翻譯到的(不知問題在哪裡)
先在這裡補給大家
add-trans.diff
diff -U 0 -r YaST2-orig/remote.desktop YaST2/remote.desktop
--- YaST2-orig/remote.desktop 2007-11-18 00:32:14.000000000 +0800
+++ YaST2/remote.desktop 2007-11-18 00:44:42.000000000 +0800
@@ -72,0 +73 @@
+Name[zh_CN]=远程管理 (VNC)
@@ -73,0 +75 @@
+Name[zh_TW]=遠端管理 (VNC)
diff -U 0 -r YaST2-orig/suse_register.desktop YaST2/suse_register.desktop
--- YaST2-orig/suse_register.desktop 2007-11-18 00:32:14.000000000 +0800
+++ YaST2/suse_register.desktop 2007-11-18 00:51:11.000000000 +0800
@@ -72,0 +73,2 @@
+Name[zh_TW]=線上更新組態
+GenericName[zh_TW]=線上更新組態
diff -U 0 -r YaST2-orig/sw_source.desktop YaST2/sw_source.desktop
--- YaST2-orig/sw_source.desktop 2007-11-18 00:32:14.000000000 +0800
+++ YaST2/sw_source.desktop 2007-11-18 00:44:42.000000000 +0800
@@ -62,0 +63 @@
+Name[zh_TW]=軟體套件庫

將上面的文字存檔(例如:add-trans.diff)
然後再該目錄下用 root 權限執行
patch -d /usr/share/applications/YaST2 -p1 < add-trans.diff

就不會看到那幾個刺眼的英文字了

2007年11月15日 星期四

Live CD 太神奇了

因為孤陋寡聞,不知道 Live CD 已經進化到這種地步,忍不住要大叫:
傑克,這真是太神奇了!
放入 openSUSE 10.3 KDE Live CD
選擇用 CDROM 開機
光碟機嘰嘰喳喳一陣子(還真的有點久)
終於進入了 KDE
螢幕只偵測到 800x600

(說明一下這是piii 850 的機器 320MB Ram, intel i815 無力顯示卡的 Asus M1A 筆記型電腦
從 SuSE 9.1 PE 版玩到現在 openSUSE 10.3,是我的寶貝)
用 sax2 調一下
重新登入(使用者是 linux,密碼直接 Enter),可以正確顯示 1024x768 16bit
接著用 YaST2 設定 ADSL(還好沒有叫你從網路上下載套件,因為根本還沒上網)
network-manager 動了一下,還是沒連上
開啟終端機
su

免密碼
ifup dsl0

就通了
上網嫌中文字型難看
加入 swyear 套件庫安裝字型,乾脆連 gcin 也一起安裝好了
zypper ar -t rpm-md http://download.opensuse.org/repositories/home:/swyear/openSUSE_10.3/ swyear
zypper in gcin opendesktop-fonts-odosung

按了幾個 y 之後,就裝好了
重新登入,可以開始上網 po 心得,還順便線上安裝了 flash-plugin
把 SuSE 選單換成 KDE 傳統選單
按下桌面的 Install
一面安裝一面寫心得

安裝的步驟簡化了些,沒有選語系,沒有軟體選擇的選項
注意分割區要格式化的地方沒弄錯即可
也沒有投影片介紹可看(你曾認真看過嗎?)
應該是直接將 CD 複製到硬碟中
我還抓了一些圖存在家目錄
這真的是 Live CD 嗎?
雖然每做一個動作光碟機都會響起,反應也有點遲鈍
我還是覺得太神奇了
我覺得若是您的 Ram 夠大,應該可以線上安裝所有中文套件來完整中文化
(不知道有沒有違規偷用我的硬碟?)
時光飛逝,現在已經安裝完成了,要重開機了

強烈建議大家試試看這片 openSUSE 10.3 KDE Live
可以讓您輕鬆體驗 openSUSE 的魅力
當作練習也不錯(別再用 vmware 了啦)
全省各大書報攤均可下載
錯過這次就沒下次了喔!(這句刪除)
話說 swyear 興高采烈的裝了 openSUSE 10.3 KDE Live
到底重開機後是如何光景,會繼續神奇下去嗎?
待下回分解...

2007年11月13日 星期二

網路黑貓的 hinet radio script

請參考:網路黑貓-Hinet radio script 20071112
最近常看到抱怨無法用 gtkhirad 聽廣播
雖然四元兄又寫了個 betaradio
但是若要自己動手編譯,想到也煩
請用黑貓兄的 script 來聽
相信大家都把 mplayer 搞定了
所以應該只要
下載了 radio_20071112.tgz
$tar -zxvf radio_20071112.tgz
$cd radio
$./radio.sh

就會出現選單讓您選擇要聽的電台
還可以看電視喔!
$./tv.sh
1:民視新聞台:28
2:大愛電視台:38
3:人間衛視:39

理論上有三台可以看
不過,好像不管選那一台都是看大愛...

用命令列燒錄 CD

不知道為什麼 Brasero 總說媒體不可燒錄
記得在發行摘要中看到一些有關燒錄程式的說明
說不定有關
不如來試試命令列燒錄的方法
$wodim -devices
wodim: Overview of accessible drives (1 found) :
-------------------------------------------------------------------------
0 dev='/dev/scd0' rwrw-- : 'MATSHITA' 'UJDA340'
-------------------------------------------------------------------------
$wodim dev='/dev/scd0' ubuntu-7.10-desktop-i386.iso speed=4
wodim: No write mode specified.
wodim: Asuming -tao mode.
wodim: Future versions of wodim may have different drive dependent defaults.
wodim: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits.Device type : Removable CD-ROM
Version : 5
Response Format: 2
Capabilities :
Vendor_info : 'MATSHITA'
Identification : 'UJDA340 '
Revision : '1.50'
Device seems to be: Generic mmc CD-RW.
Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr).
Driver flags : MMC-2 SWABAUDIO BURNFREE
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R
Speed set to 706 KB/s
Starting to write CD/DVD at speed 4.0 in real TAO mode for single session.
Last chance to quit, starting real write i 0 seconds. Operation starts.
Track 01: Total bytes read/written: 729608192/729608192 (356254 sectors).

順利將 iso 檔燒成 CD
(這段過程中,所有應用程式停止反應 10 分鐘...Orz)

2007年11月7日 星期三

Betaradio 0.1.1 for openSUSE 10.3

請參考:FourDollars Blog: Beta Radio v0.1.1 Released
因為 hiChannel 又改了
所以以前的程式都不能用了
需要 gstreamer010-plugins-ugly, gstreamer010-plugins-bad, gstreamer010-ffmpeg
其中 gstreamer010-ffmpeg 要由 Packman 下載
相依性蠻複雜的
建議加入 Packman 和 swyear 的套件庫用 zypper 安裝
#zypper ar -t rpm-md http://ftp.twaren.net/Linux/Packman/suse/10.3/ packman
#zypper ar -t rpm-md http://download.opensuse.org/repositories/home:/swyear/openSUSE_10.3/ swyear
#zypper ref packman swyear
#zypper in betaradio
如果您已經有了 Packman 和 swyear 的套件庫,前兩個指令就不必了

2007年11月6日 星期二

在 Linux 上鬼混

有時你並不想作什麼嚴肅的事(大部分的時候都是)
今天就是這樣鬼混的
上網隨便看看

BBS 上逛逛

看看電影預告片(您需要裝 mplayerplug-in...)

玩玩我兒子最喜歡的 game...(一點都感覺不出哪裡好玩)

還是到魔獸世界 (World of Warcraft) 中鬼混一下好了(直接由 windows 磁區拷過來用 wine 來玩,記得在 WTF/Config.wtf 中設定 SET gxApi "opengl" ,輸入法搭配 oxim ,這是我唯一會用到 oxim 的地方,因為用 gcin 會在 WoW 中狂奔,用下面的 script 來啟動
launch-wow.sh
#!/bin/sh
export XMODIFIERS="@im=oxim"
oxim &
env WINEPREFIX="/home/swyear/.wine" wine "C:\\Program Files\\World of Warcraft\\Launcher.exe"

順便提醒一下 oxim 目前在 openSUSE 10.3 啟動有些問題...,不想測試的話就別裝了,不然就像我一樣,在 ~/.profile 中設定 export INPUT_METHOD="gcin",或將 /etc/X11/xim.d/zh_TW/20-oxim 的連結去掉或改成數字大些,以避免預設啟動,不過進入 X 後針對單一程式倒是可以使用 oxim ,如上面的例子)

最後大家照張像,結束今天的鬼混...

2007年11月4日 星期日

[新聞轉貼]openSUSE 10.3 Live 版發行

詳細資訊請參閱
http://news.opensuse.org/?p=489
Live 版本的 openSUSE 10.3 提供了 KDE 與 GNOME 的兩種 CD
所包含的軟體和 KDE 和 GNOME 單 CD 安裝版本相同
您不必安裝到硬碟上就可以使用 openSUSE 作業系統
可以做為生產力系統或是救援系統
您也可以拿來看看 openSUSE 是如何在您的電腦上運作而不需動到硬碟中的資料
目前提供了 32 位元的英文版本
也首度在在桌面上提供了安裝的選項
若試用覺得滿意按下 Install 就可以引導您安裝 openSUSE 10.3 到硬碟中
官方網站下載:
openSUSE 10.3 GNOME Live
openSUSE 10.3 KDE Live
國內各大鏡像站
http://ftp.twaren.net/Linux/OpenSuSE/distribution/10.3/iso/cd/
http://ftp.tcc.edu.tw/iso/openSUSE/distribution/10.3/iso/cd/
http://ftp.cs.pu.edu.tw/Linux/OpenSuse/distribution/10.3/iso/cd/
http://ftp.cse.yzu.edu.tw/pub/Linux/openSUSE/distribution/10.3/iso/cd
也都提供下載

還沒試用,看起來 KDE 和 GNOME 的 1 CD 就沒人要用了...

2007年11月1日 星期四

ies4linux 和 wine 的字型設定

在這裡利用 ies4linux 來安裝 ie6
Linux 使用者大部分都知道
對付 ie only 的網站,這大概是最方便的方法了
唯一不方便處就是要調整字型
下面的 script 也順便幫您做好基本的調整(有些地方我也不會調)
只要將下面文字存檔(例如:inst_ie6.sh)
然後 chmod +x inst_ie6.sh
./inst_ie6.sh
就一步驟完成
要注意的是 ies4linux 預設的位置為 .ies4linux/ie6
而一般 wine 執行的目錄是在 .wine 底下
所以若您要將程式和 ies4linux 裝在一起
得要先
export WINEPREFIX="$HOME/.ies4linux/ie6"
再來
wine ooxx.exe
我是不會用到啦,反正也常在 windows 下工作
不過像是用 winecfg 更改些設定就會用上了
附帶一提:預設模擬 windows 98 系統
若升級的話 ie6 可能會當掉
還有 flash 會一直閃閃閃(真傷眼)
另外也建議您的 firefox 裝上 ieview
設定一下 ieview 中的 ie 路徑就可以直接按右鍵叫出 ie6 來瀏覽同一網站
安裝前請先確認您的系統中有 wine 和 cabextract
您也可以參考這幾篇文章
依稀記得:Wine/Crossover Office 中文設置
Ubuntu - Wine 优化 by 廖宇雷的部落格
704+wine9.36+qq 2007 攻略 兼 无限bs 马化腾

inst_ie6.sh

#!/bin/sh
echo "本程式將利用 ies4linux 為您安裝繁體中文版的 ie6 以及 flash-plugin"
echo "並設定中文字型,您需要 AR PL ShanHeiSun Uni 或 AR PL New Sung 來搭配"
echo "若要繼續執行程式,請按 \"y\" Enter"
echo "按\"任意鍵\" Enter 結束本程式"
read yn
if [ "$yn" == "y" ]; then
echo "開始安裝 ies4linux ..."
echo "移除舊檔案..."
rm -f /tmp/addreg
rm -f /tmp/ie6.*
rm -f /tmp/IE6.*
rm ies4linux-*.tar.gz
rm -rf ies4linux-*
echo "下載與解壓縮 ies4linux ..."
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
tar zxvf ies4linux-latest.tar.gz
cd ies4linux-*
echo "修改註冊檔..."
fc-list | grep "AR PL New Sung"
if [ "$?" == "0" ]; then
bitmapfont="AR PL New Sung"
else
fc-list | grep "AR PL ShanHeiSun Uni"
if [ "$?" == "0" ]; then
bitmapfont="AR PL ShanHeiSun Uni"
fi
fi
echo "@=\"$bitmapfont\"" > /tmp/addreg
echo "\"System\"=\"$bitmapfont\"" >> /tmp/addreg
echo "" >> /tmp/addreg
echo "[HKEY_CURRENT_USER\Software\Wine\X11 Driver\]" >> /tmp/addreg
echo "\"ClientSideAntiAliasWithRender\"=\"N\"" >> /tmp/addreg
sed '257r /tmp/addreg' winereg/ie6.reg > /tmp/ie6.reg.tmp
cp /tmp/ie6.reg.tmp winereg/ie6.reg
if [ "$bitmapfont" == "AR PL New Sung" ]; then
sed 's/\"MS Shell Dlg\"=\"Tahoma\"/\"MS Shell Dlg\"=\"AR PL New Sung\"/' winereg/ie6.reg \
> /tmp/ie6.reg.tmp1
sed 's/\"MS Shell Dlg 2\"=\"Tahoma\"/\"MS Shell Dlg 2\"=\"AR PL New Sung\"\n\"System\"=\"AR PL New Sung\"\n\"MingLiU\"=\"AR PL New Sung\"\n\"PMingLiU\"=\"AR PL New Sung\"\n\"simsun\"=\"AR PL New Sung\"\n\"Songti\"=\"AR PL New Sung\"\n\@=\"AR PL New Sung\"/' /tmp/ie6.reg.tmp1 \
> /tmp/ie6.reg.tmp2
cp /tmp/ie6.reg.tmp2 winereg/ie6.reg
else
if [ "$bitmapfont" == "AR PL ShanHeiSun Uni" ]; then
sed 's/\"MS Shell Dlg\"=\"Tahoma\"/\"MS Shell Dlg\"=\"AR PL ShanHeiSun Uni\"/' winereg/ie6.reg \
> /tmp/ie6.reg.tmp1
sed 's/\"MS Shell Dlg 2\"=\"Tahoma\"/\"MS Shell Dlg 2\"=\"AR PL ShanHeiSun Uni\"\n\"System\"=\"AR PL ShanHeiSun Uni\"\n\"MingLiU\"=\"AR PL ShanHeiSun Uni\"\n\"PMingLiU\"=\"AR PL ShanHeiSun Uni\"\n\"simsun\"=\"AR PL ShanHeiSun Uni\"\n\"Songti\"=\"AR PL ShanHeiSun Uni\"\n\@=\"AR PL ShanHeiSun Uni\"/' /tmp/ie6.reg.tmp1 \
> /tmp/ie6.reg.tmp2
cp /tmp/ie6.reg.tmp2 winereg/ie6.reg
fi
fi
echo "開始下載所需檔案與安裝..."
echo -e "y\n" | ./ies4linux --locale TW --no-install-ie55 --no-install-ie5 --install-flash --install-icon --install-ie6
echo "[Desktop]" >> $HOME/.ies4linux/ie6/drive_c/windows/win.ini
echo "IconTitleFaceName=$bitmapfont" >> $HOME/.ies4linux/ie6/drive_c/windows/win.ini
echo "menufontsize=13" >> $HOME/.ies4linux/ie6/drive_c/windows/win.ini
echo "messagefontsize=13" >> $HOME/.ies4linux/ie6/drive_c/windows/win.ini
echo "statusfontsize=13" >> $HOME/.ies4linux/ie6/drive_c/windows/win.ini
echo "IconTitleSize=13" >> $HOME/.ies4linux/ie6/drive_c/windows/win.ini
echo "完成!"
else
echo "結束程式"
fi

2007年10月29日 星期一

openSUSE 10.3 的一些小提示-Part 2

5. Java 的問題
之前網友問過,這次在更新過程有瞄到有 java 更新
現在看看如何了
在 firefox 網址列打上 about:plugins
可以看見您安裝的 plugin
看有沒有 Java Plug-in
預設使用 DVD 安裝應該會有
http://www.java.com/zh_TW/ 驗證 Java 安裝

也可以正確驗證,雖然不是最新版,應該也可以用
Java 控制中心字型也沒問題(雖然難看了點)

那...對不起多說了廢話

6. 安裝程式的問題
在 Linux 世界中安裝程式的概念和在 Windows 下不同
因為各家軟體廠商都會針對 windows 系統來設計
Linux 系統因為發行版本眾多,要做到完整的支援恐怕軟體廠商也無能為力
不同的 distributions 的不同 version 可能代表了 kernel 不同、gcc 版本不同、設定檔的位置不同、套件格式不同...
通常開放原始碼軟體就直接提供 source 給你自己編譯,額外設定就要靠自己了
但是針對這類軟體,各發行版本的支援團隊或熱心人士通常會幫你搞定麻煩的地方
他們取得原始碼後針對該發行板本來編譯安裝修改設定
這就是所謂的套件(在 openSUSE, Fedora, Mandriva...使用 rpm 的格式,在 debian, ubuntu... 則使用 deb 格式)
把這些套件集合起來放在一個地方設計方便的方法來讓您搜尋取得安裝,這就是套件庫
(所以不同發行版本的 rpm 到底可不可以混用,有時是靠運氣的,但我們盡量不要混用)
(我以前曾經用 Mandrake 的 xcin 套件裝在 SuSE 9.1 上,自己搞定設定檔,在整個 9.1 時代都是如此度過)
所以針對開放原始碼的軟體,我們只要找到套件庫,並加入套件庫就可以很方便的安裝
您的 CD, DVD 也是您的套件庫,很多套件未預設安裝,但東西仍在裡面
例如: mysql-administrator 這個套件,如果您已經加入了 oss 套件庫
其實是可以直接在YaST-軟體-軟體管理中搜尋安裝的

不過這樣搜尋只能搜尋到已經加入的套件庫
從 10.3 開始 openSUSE 則提供了統一的套件搜尋網頁
http://software.opensuse.org/search
配合上單鍵安裝
其實您也不需要有什麼套件庫的概念了
不過這個套件庫主要是提供 oss (standard) 以及 openSUSE Build Service 中的套件搜尋
另一個社群提供的搜尋站
http://benjiweber.co.uk:8080/webpin/
則提供了所有的 openSUSE 提供的線上套件庫+Packman+Guru+Build Service 的套件搜尋
目前尚未提供單鍵安裝就是了
如果沒什麼相依性的套件直接 rpm 安裝就可以了
用法:
安裝 rpm -ivh ooxxzz-n.m-p.*.rpm
升級(已經安裝了該套件) rpm -Uvh ooxxzz-n.m-p.*.rpm
移除(注意只要提供套件名稱) rpm -e ooxxzz
詳細用法看 man rpm 或 rpm --help
如果較複雜的,還是建議將搜尋結果的網站加入套件庫來安裝會比較簡單

非開放原始碼軟體則可能作一些簡單的區分提供您較保守參數預編好的二進位檔或 script
每一種軟體裝法就不盡相同了
通常的作法是,看說明,照說明做,若需要其他的函式庫,用套件管理程式裝起來
ies4linux 其實只是個 script,就像是本站也提供了一些 script
把很多個步驟寫在一起執行來完成某件工作
ies4linux 幫您在網路上下載相關的東東完成在 wine 上安裝 ie
使用說明要看一下,安裝不是什麼困難的事
附帶說明一下在說明網頁中 Suse 的安裝方法是針對 SLE-10(至少他加入的套件庫是 SLE-10 的)
其實將 wine 裝起來後用一般安裝方法就可以了
字型的設定可能得花點心思就是了
有空再聊吧!

2007年10月26日 星期五

openSUSE 10.3 的一些小提示

前幾天在網路上閒晃,想看看其他 openSUSE 10.3 使用者的意見
在一片讚頌聲中,有個連結讓我印象深刻
http://bbs.bnw.com.tw/conference/viewtopic.php?p=15249
作者應該不是新手,但他仍看到了許多新手才看得見的問題
希望這篇文章會讓大家省些搜尋網路的時間

1. 選擇安裝媒體:
一般中文使用者請選擇 DVD
這片 DVD 算是包山包海,除了中文語系支援外,
還有 opera, flash-plugin, adobe reader... 等非開放的軟體
而 KDE 和 GNOME 這兩片 CD 都只有英文,而且似乎不包含直接撥接 ADSL 的相關套件
(我有台舊筆電就只能用 CD 裝,下次再詳述)
addon-non-oss 和 addon-lang 這兩片則是搭配 KDE 和 GNOME 這兩片 CD 使用
不過中文使用者並不需要 addon-lang CD
若您用 CD 安裝,則註定中文套件都要由網路下載
台灣地區下載(也可以用 ftp://)
http://ftp.twaren.net/Linux/OpenSuSE/distribution/10.3/iso/
http://ftp.tcc.edu.tw/iso/openSUSE/distribution/10.3/iso/
http://ftp.cs.pu.edu.tw/Linux/OpenSuse/distribution/10.3/iso/
http://ftp.cse.yzu.edu.tw/pub/Linux/openSUSE/distribution/10.3/iso/

2. 安裝完成後的第一件事就是更新
如果您在安裝時已經進行線上更新,預設是使用
http://download.opensuse.org/update/10.3/
您也可以改成台灣地區的更新網址:(也可以用 ftp://)
http://ftp.twaren.net/Linux/OpenSuSE/update/10.3/
http://ftp.tcc.edu.tw/iso/openSUSE/update/10.3/
http://ftp.cs.pu.edu.tw/Linux/OpenSuse/update/10.3/
http://ftp.cse.yzu.edu.tw/pub/Linux/openSUSE/update/10.3/
在 YaST - 軟體 - 軟體套件庫(oftware Repositories)
新增或編輯(如果您已經在安裝時進行線上更新了,會有一個 openSUSE-10.3-Update 的套件庫)

在上面選一個伺服器位址與目錄填進去(名稱您可以自訂)
然後用 YaST - 軟體 - 線上更新 來更新
如果更新了 kernel 需要重新開機,有些則是要重新登入才會生效
注意勾選 release-notes
然後到 /usr/share/doc/release-notes/openSUSE/RELEASE-NOTES.zh_TW.html 看看
或者線上觀看 http://www.suse.com/relnotes/i386/openSUSE/10.3/RELEASE-NOTES.zh_TW.html

3. firefox 的底線問題

這是因為預設的中文字型 CMEX標宋(CMEXSong) 以及 CMEX標楷和 freetype2 有些不合
請在 YaST - 軟體 - 軟體套件庫(oftware Repositories) 新增 M17N 的套件庫更新 freetype2
http://download.opensuse.org/repositories/M17N/openSUSE_10.3/
(目前2007/10/25還沒進入 update)


由 YaST - 軟體 - 軟體管理,搜尋 freetype2

點選有勾勾的那兩個,圖示會變成 z(代表升級)
按確定,更新完後重新登入後就沒問題了

若不堅持使用 CMEX 字型,您也可以不必更新這個套件
用下面 4. 的方法即可

4. 字型太小、不好看
加入 swyear 套件庫,然後安裝 ttf-arphic-uming
在這裡直接使用指令,您當然也可以使用上面的作法用 YaST 來做

su
zypper ar -t rpm-md http://download.opensuse.org/repositories/home:/swyear/openSUSE_10.3/ swyear
zypper ref swyear
zypper in ttf-arphic-uming

然後由設定桌面(控制中心) - 外觀與主題 - 字型(在 KDE 環境中)
將字型調整成 DejaVu Sans

重新登入

這是我習慣的設定字型,我覺得還可以啦!

5. scim 無法在 OpenOffice.org 中輸入中文
雖然我可以打中文,但有人打不出中文我相信

scim 總是會有點莫名其妙
對岸的抱怨更是一堆
因為我沒這個問題,只能根據別人的說法來解決:
使用 M17N 的套件庫更新 scim-bridge 的相關套件
在軟體管理中搜尋 scim
再出現的清單上按右鍵,選擇此清單中所有項目-若有更新版本請更新

更新完成後重新登入,應該就可以解決無法輸入的問題

...下期待續

2007年10月21日 星期日

開啟 sub-pixel hinting

對於液晶螢幕的使用者
使用 sub-pixel hinting 可以使非點陣字的部分顯示更清晰銳利
請將下面的文字複製貼到純文字編輯器中(openSUSE 10.3 適用)
取名(例如) sub-pixel-support.sh
然後
chmod +x sub-pixel-support.sh

切換到該目錄然後
./sub-pixel-support.sh


sub-pixel-support.sh

#!/bin/sh
echo "重新編譯並不需要 root 權限,但是新增套件庫與安裝套件需要輸入 root 密碼"
echo "加入 source rpm 的套件庫"
sudo zypper ar -t rpm-md \
http://ftp.twaren.net/Linux/OpenSuSE/distribution/10.3/repo/src-oss/suse/ source
sudo zypper ref source
echo "安裝 source rpm"
zypper si freetype2
echo "修改 spec 檔以開啟 sub-pixel hinting 支援"
sed 's/%define enable_subpixel_rendering 0%{?opensuse_bs}/%define enable_subpixel_rendering 1/' \
/usr/src/packages/SPECS/freetype2.spec > /usr/src/packages/SPECS/freetype2.spec.tmp
mv /usr/src/packages/SPECS/freetype2.spec.tmp /usr/src/packages/SPECS/freetype2.spec
echo "安裝編譯所需的套件"
sudo zypper -n in automake gcc make autoconf libtool zlib-devel
echo "重新編譯套件"
rpmbuild -bb /usr/src/packages/SPECS/freetype2.spec
echo "重新安裝支援 sub-pixel hinting 支援的 freetype2"
sudo rpm -ivh --force /usr/src/packages/RPMS/*/freetype2-*.rpm
echo "請重新登入,在設定字型處設定使用 sub-pixel hinting"

2007年10月13日 星期六

使用 Lazybuntu 在 openSUSE 上安裝 swiftfox

--其實原本的主題只是紀錄一下安裝 swiftfox 的過程,結果因為太過投入...--
我一直很習慣使用 firefox 官方提供的中文版本而不使用 SUSE 的 rpm
因為這樣可以自動更新(就像在 windows 下一樣)
而且我一直都搞不定用 suse rpm 時 flash-plugin 的中文選單
奇怪的是使用 firefox 的官方版倒是沒問題。
這不是今天的主題
今天我想試試 swiftfox,聽說會快一點
先到 Swiftfox 網站下載適合版本的 swiftfox
如果您不知道您的 CPU 型號
試著從 /proc/cpuinfo 中找出端倪,例如:
$ cat /proc/cpuinfo | grep model
model : 8
model name : Pentium III (Coppermine)

表示我這台是 pentium 3 等級的。
您可以選擇使用 installer 或像我一樣自己 DIY:
下載相對應的程式
解開到自己家目錄中
您可以做一個連結
$ cd ~/bin
$ ln -s ~/swiftfox/swiftfox .

這樣您可以在終端機直接呼叫 swiftfox
接下來是選單的中文化,到
http://releases.mozilla.org/pub/mozilla.org/firefox/releases/版本/linux-i686/xpi 找到 zh-TW.xpi
點下去就會安裝此語言擴充
如果無法安裝,將 ~/.mozilla/firefox/ 裡需要的備份一下,然後刪除
在網址處打上 about:config
找尋 general.useragent.locale 的數值,將之改為 zh-TW
重新啟動 swiftfox 後就會是中文介面了
接著就是處理選單,plugins 等等...

Pcman 提出了一個 Lazybuntu 的計劃,提供方便的介面
讓 ubuntu 的使用者迅速完成電腦的設定
其中也有 swiftfox
不過裏面的 swiftfox 的部份是直接使用 swiftfox 提供的網路套件庫
openSUSE 應該沒辦法用
所以只好自己亂寫個 script 來完成上面所敘述的安裝
注意:這個 script 用到 Lazybuntu 中的 script 以判斷 CPU 類型
如果您要直接執行,要自己再加工了

swiftfox
#!/bin/sh
CPU=`scripts/cpu-type.py`
#在此使用 Lazybuntu 的 script 來判定 CPU 的種類
#如果直接執行此 script,請參考 /proc/cpuinfo
#修改 CPU="您的 CPU"
#可用的有 athlon64, athlon-xp, pentium4, pentium-m, pentium3,
#prescott, celeron4, celeron-m, celeron3
echo "自動偵測這台電腦上的 CPU 架構:$CPU"
if [ -n "$CPU" ]; then
echo "取得最新釋出版本"
rm -r swiftfox-tmp
mkdir swiftfox-tmp
cd swiftfox-tmp
echo "擷取釋出網頁"
wget http://getswiftfox.com/releases.htm
if [ $CPU == prescott ]; then
cat releases.htm | grep releases | grep tar.bz2 | grep -m 1 prescott | cut -d \" -f 2 > swiftfox-rel-arch-file
else
cat releases.htm | grep rel-$CPU > swiftfox-rel-arch
echo "擷取該 CPU 架構的網頁"
wget -B http://getswiftfox.com -F -i swiftfox-rel-arch
cat rel-$CPU.htm | grep releases | grep -m 1 tar.bz2 | cut -d \" -f 2 > swiftfox-rel-arch-file
fi
echo "下載 swiftfox 的壓縮檔"
wget -B http://getswiftfox.com -i swiftfox-rel-arch-file
echo "安裝 swiftfox"
tar -jxvf swiftfox-*.tar.bz2
rm -r $HOME/swiftfox.old
mv $HOME/swiftfox $HOME/swiftfox.old
mv swiftfox $HOME
echo "下載與處理繁體中文介面"
SFVERSION=`cut -d / -f 3 swiftfox-rel-arch-file`
wget http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$SFVERSION/linux-i686/xpi/zh-TW.xpi
#unzip -o zh-TW.xpi -d $HOME/swiftfox/
#mv $HOME/swiftfox/chrome.manifest #$HOME/swiftfox/chrome/zh-TW.manifest
#上面這3個步驟不確定是正確的,可能造成無法開啟 swiftfox
#改成較保守的方法:第一次啟動 swiftfox 安裝繁體中文介面
sed 's/"general.useragent.locale", "en-US"/"general.useragent.locale", "zh-TW"/' \
$HOME/swiftfox/defaults/pref/firefox-l10n.js > $HOME/swiftfox/defaults/pref/firefox-l10n.js.tmp
mv $HOME/swiftfox/defaults/pref/firefox-l10n.js.tmp $HOME/swiftfox/defaults/pref/firefox-l10n.js
#上面這個步驟相當於從 about:config 來改 general.useragent.locale 為 zh-TW
echo "處理路徑"
ln -s $HOME/swiftfox/swiftfox $HOME/bin
echo "處理 plugins"
test ! -e $HOME/.mozilla/plugins && mkdir $HOME/.mozilla/plugins
cp $HOME/swiftfox/plugins/* $HOME/.mozilla/plugins
rm -r $HOME/swiftfox/plugins
ln -s /usr/lib/browser-plugins $HOME/swiftfox/plugins
#直接將 swiftfox/plugins 連結到 suse 瀏覽器 plugin 的預設安裝位置
echo "處理選單啟動圖示"
echo "[Desktop Entry]" > swiftfox.desktop
echo "Encoding=UTF-8" >> swiftfox.desktop
echo "Name=Swiftfox" >> swiftfox.desktop
echo "Name[zh_TW]=Swiftfox 網頁瀏覽器" >> swiftfox.desktop
echo "GenericName=Web browser" >> swiftfox.desktop
echo "GenericName[zh_TW]=網頁瀏覽器" >> swiftfox.desktop
echo "Comment=Web Browser" >> swiftfox.desktop
echo "Comment[zh_TW]=網頁瀏覽器" >> swiftfox.desktop
echo "Exec=swiftfox %u" >> swiftfox.desktop
echo "Type=Application" >> swiftfox.desktop
echo "Terminal=false" >> swiftfox.desktop
echo "Categories=Application;WebBrowser" >> swiftfox.desktop
echo "Icon=$HOME/swiftfox/icons/mozicon128.png" >> swiftfox.desktop
test ! -e $HOME/.kde/share/applications && mkdir -p $HOME/.kde/share/applications
cp swiftfox.desktop $HOME/.kde/share/applications
test ! -e $HOME/.gnome2/vfolders/applications && mkdir -p $HOME/.gnome2/vfolders/applications
cp swiftfox.desktop $HOME/.gnome2/vfolders/applications
test ! -e $HOME/.local/share/applications && mkdir -p $HOME/.local/share/applications
cp swiftfox.desktop $HOME/.local/share/applications
echo "第一次啟動 swiftfox 以安裝中文介面"
swiftfox zh-TW.xpi
echo "Swiftfox $SFVERSION 已安裝完成!"
else
echo "未知的 CPU,無法自動安裝 Swiftfox !"
fi

下載 Lazybuntu 後解開(在這裡是用 0.1b3 版)
將上面的文字檔存成 swiftfox 並加上可執行的權限
放到 Lazybuntu/scripts/ 覆蓋原來的檔案
您還需要加裝 vte 這個套件
Lazybuntu/ui/Lazybuntu.py 有些小地方要修改
247 行:self.icon=gtk.icon_theme_get_default().load_icon('gnome-app-install', 48,0)
openSUSE 10.3 沒這個 icon 會導致程式無法啟動
284 和 288 兩行也是指定了不存在的 ubuntu 和 gnome-app-install 的 icon
不過不影響執行
您就依照喜好在 /usr/share/icons/ 或 /usr/share/pixmaps/ 下找個 icon 的名稱填進去即可
363 行:f.write( "apt-get update\n" ) 請在前面加上 #
369 行:f.write( "update-desktop-database\n" ) 也在前面加上 #
因為我這個 script 純粹是裝在家目錄下,不需要 root 權限
再則雖然在 xfce 套件庫中尋到了 gksudo 的套件
但用在這裡似乎不是我想的那樣
所以就不用了
我們直接在 Lazybuntu 目錄下執行 ui/Lazybuntu.py 即可
$ cd Lazybuntu
$ ui/Lazybuntu.py


請將除了 swiftfox 外的選項都取消(因為其他都還沒蜥蜴化)
尤其遊戲中還有副選單喔
按下套用

一柱香時間內就可以安裝完成了
後記:本人 script 寫得不好,各位看在我花 5 天的份上,請多指點

2007年10月8日 星期一

smart 的社群套件庫 for 10.3

其實我從 10.1 開始就一直對 SUSE/openSUSE 的套件管理很感冒
openSUSE 10.3 是有點改進了,但是還不夠好
(雖然 1-Click Install 真的蠻酷的)
如果不是有 smart
我的 openSUSE 生活應該會很難過才是
要安裝 smart 很容易
DVD 安裝者只要用
yast -i smart

就搞定
KDE 或 GNOME CD 的使用者,請愛用一擊安裝
然後您需要套件庫
根據社群套件庫的列表,加上 opensuse-wiki 的內容,再加上台灣地區的鏡像站
下面的檔案就是要給 smart 用的頻道列表和鏡像列表
使用方法:
# smart channel --add smart103.channel -y

如果剛好有同名的,就會要您改名字
如果您的套件庫沒這個豐富的話,乾脆先將您的所有套件庫刪除再裝此列表中的套件庫吧!
# smart channel --remove-all
# smart channel --add smart103.channel -y
# smart mirror --add smart103.mirror


smart103.channel
[wlan]
type = rpm-md
name = Wlan
disabled = yes
baseurl = http://download.opensuse.org/repositories/drivers:/wlan/SUSE_Linux_Factory/

[gnome-stable]
type = rpm-md
name = GNOME STABLE
disabled = yes
baseurl = http://download.opensuse.org/repositories/GNOME:/STABLE/openSUSE_10.3/

[videolan]
type = rpm-md
name = VideoLan
disabled = yes
baseurl = http://download.videolan.org/pub/vlc/SuSE/10.3/

[m17n]
type = rpm-md
name = M17N
disabled = yes
baseurl = http://download.opensuse.org/repositories/M17N/openSUSE_10.3/

[ati]
type = rpm-md
name = ATI Video driver
disabled = yes
baseurl = http://www2.ati.com/suse/10.3/

[qemu]
type = rpm-md
name = QEMU
disabled = yes
baseurl = http://download.opensuse.org/repositories/Virtualization:/Qemu/openSUSE_10.3/

[opensuse-non-oss-tw]
type = yast2
name = openSUSE 10.3 non-oss
baseurl = http://ftp.twaren.net/Linux/OpenSuSE/distribution/10.3/repo/non-oss/

[virtualbox]
type = rpm-md
name = VirtualBox
disabled = yes
baseurl = http://download.opensuse.org/repositories/Virtualization:/VirtualBox/openSUSE_10.3/

[opensuse-src-oss-tw]
type = rpm-md
name = openSUSE 10.3 source rpm (expert only)
disabled = yes
baseurl = http://ftp.twaren.net/Linux/OpenSuSE/distribution/10.3/repo/src-oss/suse/

[games-action]
type = rpm-md
name = games-action
disabled = yes
baseurl = http://download.opensuse.org/repositories/games:/action/openSUSE_10.3/

[guru]
type = rpm-md
name = Guru
disabled = yes
baseurl = http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/10.3/RPMS/

[opensuse-debug-tw]
type = yast2
name = openSUSE 10.3 debug rpm (expert only)
disabled = yes
baseurl = http://ftp.twaren.net/Linux/OpenSuSE/distribution/10.3/repo/debug/

[thruth]
type = rpm-md
name = Thruth
disabled = yes
baseurl = http://download.opensuse.org/repositories/home:/Thruth/openSUSE_10.3/

[x11-xgl]
type = rpm-md
name = X11 XGL
disabled = yes
baseurl = http://download.opensuse.org/repositories/X11:/XGL/openSUSE_10.3/

[mail]
type = rpm-md
name = Mail
disabled = yes
baseurl = http://download.opensuse.org/repositories/server:/mail/openSUSE_10.3/

[smart]
type = rpm-md
name = smart
baseurl = http://download.opensuse.org/repositories/smart/openSUSE_10.3/

[opensuse-update-tw]
type = rpm-md
name = openSUSE 10.3 update
baseurl = http://ftp.twaren.net/Linux/OpenSuSE/update/10.3/

[swyear]
type = rpm-md
name = swyear
baseurl = http://download.opensuse.org/repositories/home:/swyear/openSUSE_10.3/

[openoffice_org-stable]
type = rpm-md
name = OpenOffice.org STABLE
disabled = yes
baseurl = http://download.opensuse.org/repositories/OpenOffice.org:/STABLE/openSUSE_10.3/

[mozilla]
type = rpm-md
name = Mozilla
disabled = yes
baseurl = http://download.opensuse.org/repositories/mozilla/openSUSE_10.3/

[kde-backports]
type = rpm-md
name = KDE Backports
disabled = yes
baseurl = http://download.opensuse.org/repositories/KDE:/Backports/openSUSE_10.3/

[php]
type = rpm-md
name = PHP
disabled = yes
baseurl = http://download.opensuse.org/repositories/server:/php/openSUSE_10.3/

[opensuse-oss-tw]
type = yast2
name = openSUSE 10.3 oss
baseurl = http://ftp.twaren.net/Linux/OpenSuSE/distribution/10.3/repo/oss/

[webcam]
type = rpm-md
name = Webcam
disabled = yes
baseurl = http://download.opensuse.org/repositories/drivers:/webcam/openSUSE_10.3/

[kde-community]
type = rpm-md
name = KDE Community
disabled = yes
baseurl = http://download.opensuse.org/repositories/KDE:/Community/openSUSE_10.3/

[database]
type = rpm-md
name = Database
disabled = yes
baseurl = http://download.opensuse.org/repositories/server:/database/openSUSE_10.3/

[gnome-community]
type = rpm-md
name = GNOME Community
disabled = yes
baseurl = http://download.opensuse.org/repositories/GNOME:/Community/openSUSE_10.3/

[packman]
type = rpm-md
name = Packman
disabled = yes
baseurl = http://ftp.twaren.net/Linux/Packman/suse/10.3/

[nvidia]
type = rpm-md
name = NVIDIA driver
disabled = yes
baseurl = http://download.nvidia.com/opensuse/10.3/

[xfce]
type = rpm-md
name = Xfce
disabled = yes
baseurl = http://download.opensuse.org/repositories/X11:/xfce/openSUSE_10.3/

[wine]
type = rpm-md
name = Wine
disabled = yes
baseurl = http://download.opensuse.org/repositories/Emulators:/Wine/openSUSE_10.3/

[madwifi]
type = rpm-md
name = MadWifi
disabled = yes
baseurl = http://madwifi.org/suse/10.3/


smart103.mirror
http://ftp.twaren.net/Linux/OpenSuSE/distribution/10.3/repo/src-oss/suse/
http://ftp.tcc.edu.tw/iso/openSUSE/distribution/10.3/repo/src-oss/suse/
http://ftp.cs.pu.edu.tw/Linux/OpenSuse/distribution/10.3/repo/src-oss/suse/
http://ftp.cse.yzu.edu.tw/pub/Linux/openSUSE/distribution/10.3/repo/src-oss/suse/
http://download.opensuse.org/distribution/10.3/repo/src-oss/suse/

http://ftp.gwdg.de/pub/linux/misc/suser-guru/rpm/10.3/RPMS/
http://ftp.skynet.be/pub/suser-guru/rpm/10.3/RPMS/

http://ftp.twaren.net/Linux/Packman/suse/10.3/
http://ftp.skynet.be/pub/packman/suse/10.3/
http://packman.iu-bremen.de/suse/10.3/
http://packman.unixheads.com/suse/10.3/
http://mirror.pacific.net.au/linux/packman/suse/10.3/
http://mirror.geht-schon.de/packman.links2linux.de/suse/10.3/
http://ftp.uni-erlangen.de/pub/mirrors/packman/suse/10.3/
http://ftp.halifax.rwth-aachen.de/packman/suse/10.3/
http://ftp.gwdg.de/pub/linux/misc/packman/suse/10.3/
http://ftp.gts.lug.ro/packman/suse/10.3/

http://ftp.twaren.net/Linux/OpenSuSE/distribution/10.3/repo/debug/
http://ftp.tcc.edu.tw/iso/openSUSE/distribution/10.3/repo/debug/
http://ftp.cs.pu.edu.tw/Linux/OpenSuse/distribution/10.3/repo/debug/
http://ftp.cse.yzu.edu.tw/pub/Linux/openSUSE/distribution/10.3/repo/debug/
http://download.opensuse.org/distribution/10.3/repo/debug/

http://ftp.twaren.net/Linux/OpenSuSE/distribution/10.3/repo/non-oss/
http://ftp.tcc.edu.tw/iso/openSUSE/distribution/10.3/repo/non-oss/
http://ftp.cs.pu.edu.tw/Linux/OpenSuse/distribution/10.3/repo/non-oss/
http://ftp.cse.yzu.edu.tw/pub/Linux/openSUSE/distribution/10.3/repo/non-oss/
http://download.opensuse.org/distribution/10.3/repo/non-oss/

http://ftp.twaren.net/Linux/OpenSuSE/update/10.3/
http://ftp.tcc.edu.tw/iso/openSUSE/update/10.3/
http://ftp.cs.pu.edu.tw/Linux/OpenSuse/update/10.3/
http://ftp.cse.yzu.edu.tw/pub/Linux/openSUSE/update/10.3/
http://download.opensuse.org/update/10.3/

http://ftp.twaren.net/Linux/OpenSuSE/distribution/10.3/repo/oss/
http://ftp.tcc.edu.tw/iso/openSUSE/distribution/10.3/repo/oss/
http://ftp.cs.pu.edu.tw/Linux/OpenSuse/distribution/10.3/repo/oss/
http://ftp.cse.yzu.edu.tw/pub/Linux/openSUSE/distribution/10.3/repo/oss/
http://download.opensuse.org/distribution/10.3/repo/oss/


注意:主要套件庫我都是用 http://ftp.twaren.net
其他(包含 openSUSE 官方)當作 mirror
wlan 套件庫用的是 Factory (感覺不像常維護)
可能導致一些核心模組無法安裝使用
預設使用了 oss, non-oss, update, swyear, smart 這幾個頻道
其他請您視需要自行開啟使用(注意風險)

2007年10月7日 星期日

openSUSE 10.3 的社群套件『酷』

開啟您的 YaST,您會發現有點不同
在軟體的部份多了一個社群套件庫

以前有人問起安裝套件的問題時,總是會跟他說:
加入 Packman 的套件庫,然後用軟體管理安裝。
現在又將第一個步驟簡化了
當您點選社群套件庫時,會自動從網路上下載大家最常用的套件庫,然後任君選擇
酷吧!

看了一下,裏面包含了
ATI
NVIDIA
Packman
VideoLan
GNOME:Community
GNOME:Stable
KDE:Backports
KDE:Community
Mozilla
OpenOffice.org
PHP
Wine CVS
X11:XGL
XFCE
無線網路驅動程式
網路攝影機驅動程式
QEMU
VirtualBox
動作遊戲
Mail

只要將想要用的勾一勾,剩下的就是到軟體管理的地方去安裝(更新)了
不過這些只是大家比較常用的
更詳細的套件庫可參考
http://en.opensuse.org/Package_Repositories
http://en.opensuse.org/Additional_YaST_Package_Repositories
中文說明:(資料會比較舊)
http://zh_tw.opensuse.org/Package_Repositories
http://zh_tw.opensuse.org/Additional_YaST_Package_Repositories

您可能會懷疑 Guru 怎沒在裏面
根據 http://news.opensuse.org/?p=341 指出,
guru 這個原本第二大的 SUSE 第三方支援,將要加入到 Packman 中
站長也表示會慢慢將套件移到 Packman 或 BuildService
http://dev-loki.blogspot.com/2007/09/moving-to-packman.html