2010年3月17日 星期三
2009年10月20日 星期二
2009年10月11日 星期日
在Ubuntu的Opera啟用Java
1.先檢查Ubuntu中是否有安裝Java
dpkg --get-selections | egrep java
2.在Opera中啟用Java
ref:http://www.opera.com/support/kb/view/459/
- Go to Tools > Preferences > Advanced > Content.
- Click the "Java options" button. If this button is dimmed, first check the "Enable Java" option.
- Click the "Choose" button for the "Java path" field.
- Navigate to the Java directory and click "OK". The path you are looking for is the directory of your Java installation containing the files libjava.so and libawt.so. On the command line, type: find / -name libjava.so 2> /dev/null
For example, on a Debian system, the path is: /usr/lib/jvm/java-1.5.0-sun/jre/lib/i386 - Click the "Validate Java path" button. If you get an error message, try again with a different path.
- Click "OK" to save your changes and exit the Java dialog.
- Click "OK" to save your changes and exit the Preferences dialog.
2009年2月19日 星期四
ubuntu 更新dns cache
Ubuntu Flush DNS Cache
安裝nscd
sudo aptitude install nscd
重新啟動nscd daemon
sudo /etc/init.d/nscd restart
安裝nscd
sudo aptitude install nscd
重新啟動nscd daemon
sudo /etc/init.d/nscd restart
2009年2月17日 星期二
2008年11月24日 星期一
Vmware 6.5鍵盤對映錯誤
安裝完Ubuntu 8.10 + Vmware 6.5 Guest OS的鍵盤對映錯亂了
無法使用[HOME][END][INSERT][DEL]等key
echo 'xkeymap.nokeycodeMap = true' > ~/.vmware/config
重開Guest OS,測試正常
無法使用[HOME][END][INSERT][DEL]等key
echo 'xkeymap.nokeycodeMap = true' > ~/.vmware/config
重開Guest OS,測試正常
2008年11月16日 星期日
安裝Swiftfox
據說…base on firefox更快的瀏覽器
1.首先,先知道自己主機的cpu類型
2.至http://getswiftfox.com/deb.htm下載適合的安裝套件
3.點選安裝

4.SwiftFox的效能測試
http://wd-testnet.world-direct.at/mozilla/dhtml/funo/jsTimeTest.htm

5.FireFox的效能測試

6.中文化
下載繁體中文add-om
http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.0.3/linux-i686/xpi/zh-TW.xpi

7.在網址列上輸入 about:config ,搜尋 general.useragent.locale ,並將字串由en-US 改為 zh-TW
1.首先,先知道自己主機的cpu類型
cat /proc/cpuinfo
2.至http://getswiftfox.com/deb.htm下載適合的安裝套件
3.點選安裝

4.SwiftFox的效能測試
http://wd-testnet.world-direct.at/mozilla/dhtml/funo/jsTimeTest.htm

5.FireFox的效能測試

6.中文化
下載繁體中文add-om
http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.0.3/linux-i686/xpi/zh-TW.xpi

7.在網址列上輸入 about:config ,搜尋 general.useragent.locale ,並將字串由en-US 改為 zh-TW
2008年11月14日 星期五
無蝦米
sudo apt-get install gcin
sudo /usr/share/gcin/script/noseeing-inst
sudo apt-get remove scim
sudo apt-get install im-switch (略)
im-switch -z zh_TW -s gcin (略)
http://cle.linux.org.tw/trac/
http://www.wmfield.idv.tw/498
http://overinfinityresearch.blogspot.com/2007/10/scimgcin.html
http://cle.linux.org.tw/trac/wiki/GcinInstallBoshiamy
2008年11月12日 星期三
2008年10月2日 星期四
WINE 解決中文亂碼
剛裝完的WINE,執行Notepad,無法正常輸入中文…(當字型為System時)當然如果把Notepad的字型改為中文字體是可以正常顯示的,但偏偏有些軟體,並沒辦法讓你設定表單的字型,ex: exChart2的條件選股的標題嘍 = ="

1.將Windows中的字型mingliu.ttc 複製至 ~/.wine/driver_c/windows/Fonts
2.編輯font.reg
3.匯入剛編輯的reg檔
修改完後....
中文顯示已正常嘍...


- WINE中文字型解決
1.將Windows中的字型mingliu.ttc 複製至 ~/.wine/driver_c/windows/Fonts
2.編輯font.reg
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes]
"Arial"="Arial"
"Arial CE,238"="PMingLiU"
"Arial CYR,204"="PMingLiU"
"Arial Greek,161"="PMingLiU"
"Arial TUR,162"="PMingLiU"
"Courier New"="Courier New"
"Courier New CE,238"="PMingLiU"
"Courier New CYR,204"="PMingLiU"
"Courier New Greek,161"="PMingLiU"
"Courier New TUR,162"="PMingLiU"
"MingLiU"="MingLiU"
"PMingLiU"="PMingLiU"
"FixedSys"="PMingLiU"
"Helv"="PMingLiU"
"Helvetica"="PMingLiU"
"MS Sans Serif"="PMingLiU"
"MS Shell Dlg"="PMingLiU"
"MS Shell Dlg 2"="PMingLiU"
"System"="PMingLiU"
"Tahoma"="PMingLiU"
"Times"="Times"
"Times New Roman"="Times New Roman"
"Times New Roman CE,238"="PMingLiU"
"Times New Roman CYR,204"="PMingLiU"
"Times New Roman Greek,161"="PMingLiU"
"Times New Roman TUR,162"="PMingLiU"
"Tms Rmn"="PMingLiU"
3.匯入剛編輯的reg檔
~/.wine/driver_c/windows/regedit.exe
入匯入registry
修改完後....
中文顯示已正常嘍...

(參考出處:http://www.tmes.mlc.edu.tw/wiki/index.php/Wine)
2008年10月1日 星期三
Ubuntu安裝 IE 瀏灠器可支援的Java
有些 ie only 網站,非得必要使用 IE 才有辦法瀏灠,使用Lazybuntu安裝WINE + ies4linux可以很快的安裝ok,但如果使用ies4linux瀏灠Java Applet的網站時,就得用些方法嘍!

查看ies4linux下的WINE模擬的Windows版本,應該是Windows 98,試過調為WindowsXP,但無法正常安裝JRE

如果出現如下圖的中文亂碼時…請參考「WINE 解決中文亂碼」,只是路徑原本為~/.wine/xxx 改為 ~/.ies4linux/ie6/xxx


修改HKEY_CURRENT_USER\Software\JavaSoft\Java2D\1.5.0_11\DXAcceleration機碼,值為"0"

瀏灠看看

再來,解決中文問題
從Windows系統Copy mingliu.ttc至ubuntu系統的 ~/.ies4linux/ie6/drive_c/Program Files/Java/jre1.5.0_11/lib/fonts
- 下載Java 1.5_16

查看ies4linux下的WINE模擬的Windows版本,應該是Windows 98,試過調為WindowsXP,但無法正常安裝JRE
設定WINE執行環境
$export WINEPREFIX=/home/YourAccount/.ies4linux/ie6
執行WINE Config
$winecfg

- 安裝JRE
$export WINEPREFIX=/home/YourAccount/.ies4linux/ie6
$ wine YourJREPath/jre-1_5_0_11-windows-i586-p.exe
如果出現如下圖的中文亂碼時…請參考「WINE 解決中文亂碼」,只是路徑原本為~/.wine/xxx 改為 ~/.ies4linux/ie6/xxx


- 設定Java
$export WINEPREFIX=/home/YourAccount/.ies4linux/ie6
$wine regedit
修改HKEY_CURRENT_USER\Software\JavaSoft\Java2D\1.5.0_11\DXAcceleration機碼,值為"0"

瀏灠看看

再來,解決中文問題
從Windows系統Copy mingliu.ttc至ubuntu系統的 ~/.ies4linux/ie6/drive_c/Program Files/Java/jre1.5.0_11/lib/fonts

2008年9月21日 星期日
2008年9月18日 星期四
GIMP批次轉檔(縮圖)
- 下載script
- 安裝batch-resize.py
- 將此batch-resize.py放在GIMP plug-in資料夾,可從GIMP「檔案-->偏好設定-->資料夾-->增強模組」查看
- chmod +x batch-resize.py,使此script可被執行
- 執行批次縮圖
- 由GIMP「擴展-->Plug-in Browser」可查看此script的執行參數
- 執行GIMP「擴展-->Phtyon-Fu-->Console」
- 在Console視窗輸入
>>> pdb.python_fu_batch_resize(".png", "/tmp", 640, ".resize", ".png", 0, 0, "/tmp")
2008年9月16日 星期二
Ubuntu新機測試
幾年前一段時間研究過RedHat Linux,但僅僅只用來架Server,但從沒想過拿來取代桌機作業系統…最近使用Vista,突然覺得自己的電腦配備好糟,一氣之下決定棄Microsoft擁Linux…
安裝沒什麼困難的地方…
分割區除了 / (root) 給5G,swap給2G,其餘全給了 /home
乾淨的桌面

Firefox 3.0.1 + Google Toolbar
google書籤必備…


LazyUbuntu
懶人包,強力推蔫…節省好多找軟體的時間(中文環境、pcman、aMule、wine+ie6、多媒體套件、燒錄軟體&解壓縮工具等…)

Google Picasa for Linux
部落格照片上傳工具…已經支援Linux

WINE - Linux下模擬Windows環境好工具
雖然大部份的程式都已轉換到Ubuntu環境,但有些好用的Windows程式還是暫時找不到可代替,或者說…還沒時間學新的軟體@@"
ezChart2 on WINE

uTorrent on WINE
rTorrent其實可取代,但還是懶得學...

與Windows相似的Updating

Wireless
設定已經相當簡單了

外接式磁碟機
隨插即用usb磁碟機

VMWare on Ubuntu
- 安裝
安裝沒什麼困難的地方…
分割區除了 / (root) 給5G,swap給2G,其餘全給了 /home
乾淨的桌面

- 其他必備的軟體
Firefox 3.0.1 + Google Toolbar
google書籤必備…


LazyUbuntu
懶人包,強力推蔫…節省好多找軟體的時間(中文環境、pcman、aMule、wine+ie6、多媒體套件、燒錄軟體&解壓縮工具等…)

Google Picasa for Linux
部落格照片上傳工具…已經支援Linux

WINE - Linux下模擬Windows環境好工具
雖然大部份的程式都已轉換到Ubuntu環境,但有些好用的Windows程式還是暫時找不到可代替,或者說…還沒時間學新的軟體@@"
ezChart2 on WINE

uTorrent on WINE
rTorrent其實可取代,但還是懶得學...

與Windows相似的Updating

Wireless
設定已經相當簡單了

外接式磁碟機
隨插即用usb磁碟機

VMWare on Ubuntu

訂閱:
文章 (Atom)