星期日, 11月 18, 2012
在Ubuntu上安裝JDK
底下介紹使用apt-get的方式安裝JDK:
add-apt-repository ppa:sun-java-community-team/sun-java6
sudo apt-get update
sudo apt-get install sun-java6-jdk
星期六, 11月 17, 2012
更新git版本
如果checkout Android source code的時候出現
error: Exited sync due to gc errors
這代表你機器上安裝的git工具版本需要更新了。
如果嘗試以下命命更新git
sudo apt-get install git-core
可是系統卻說已經是最新版,這時候可以執行以下命令加入新的APT repositoty並安裝新版本的git-core
sudo apt-add-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git-core
error: Exited sync due to gc errors
這代表你機器上安裝的git工具版本需要更新了。
如果嘗試以下命命更新git
sudo apt-get install git-core
可是系統卻說已經是最新版,這時候可以執行以下命令加入新的APT repositoty並安裝新版本的git-core
sudo apt-add-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git-core
星期五, 1月 20, 2012
Start chrome as ipad user agent in Ubuntu
/opt/google/chrome/google-chrome %U --user-agent="Mozilla/5.0(iPad; U; CPU iPhone OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B314 Safari/531.21.10"
星期四, 4月 21, 2011
Ubuntu 10.04環境設定
sudo ln -s /usr/bin/fromdos /usr/bin/dos2unix
sudo ln -s /usr/bin/todos /usr/bin/unix2dos
星期日, 8月 09, 2009
星期六, 8月 08, 2009
星期六, 7月 25, 2009
星期五, 3月 13, 2009
Install VMware workstation v6.0.0.45731 on Ubuntu 8.0.4
After installing VMware workstation on Ubuntu 8.0.4, a compiler error which says "conflicting types for ‘poll_initwait’" will raise. The same error will also generate when you run vmware-config.pl to configure the VMware. We can fix the problem in the following steps:
- Download the patch from Petr Vandrovec at http://knihovny.cvut.cz/ftp/pub/vmware/vmware-any-any-update115.tar.gz.
- tar xfz vmware-any-any-update115.tar.gz
- Change the working directory into vmware-any-any-update115
- sudo ./runme.pl
Then, you will get another compiler error which says "only <linux/bitops.h> can be included directly". Fix the probelm in the following steps:
- cd /usr/lib/vmware/modules/source
- cp vmmon.tar vmmon.tar.orig
- sudo tar xvf vmmon.tar
- cd vmmon-only/include/
- sudo vi vcpuset.h
- change line 74 from: #include "asm/bitops.h" to #include "linux/bitops.h"
- rm vmmon.tar
- sudo tar cvf vmmon.tar vmmon-only/
- sudo rm -rf vmmon-only/
- sudo vmware-config.pl
星期日, 8月 19, 2007
在Ubuntu中安裝Adobe Reader
Linux中雖然有許多pdf viewer,例如:evince、xpdf等,可是對於Windows的慣用者,應該還是習慣使用Adobe Reader。所以,接下來就稍微介紹一下如何在Ubuntu上安裝Adobe Reader:
1. 先加入金鑰
wget -q http://medibuntu.sos-sts.com/repo/medibuntu-key.gpg -O- | sudo apt-key add -
2. 在/etc/apt/sources.list中加入repository
## Medibuntu - Ubuntu 7.04 "feisty fawn"
## Please report any bug on https://launchpad.net/products/medibuntu/+bugs
deb http://medibuntu.sos-sts.com/repo/ feisty free non-free
deb-src http://medibuntu.sos-sts.com/repo/ feisty free non-free
3. 安裝套件acroread
參考連結:
1. 先加入金鑰
wget -q http://medibuntu.sos-sts.com/repo/medibuntu-key.gpg -O- | sudo apt-key add -
2. 在/etc/apt/sources.list中加入repository
## Medibuntu - Ubuntu 7.04 "feisty fawn"
## Please report any bug on https://launchpad.net/products/medibuntu/+bugs
deb http://medibuntu.sos-sts.com/repo/ feisty free non-free
deb-src http://medibuntu.sos-sts.com/repo/ feisty free non-free
3. 安裝套件acroread
參考連結:
在Ubuntu中安裝Microsoft字型
使用Linux作為使用環境,第一的遇到的問題即是中文字型問題。我們在使用Linux作為工作環境時,常常覺得Firefox的中文字型不夠漂亮,甚至有一點點模糊的感覺,用起來就是不像在Windows中那麼的舒服。雖然最近大量使用Ubuntu,覺得Ubuntu已經做的很好了,也讓我漸漸地減少使用Windows的時間了,但是總覺得還是不夠,字型看起來就是不夠清楚好看。
其實,我們可以有很多方法可以美化Ubuntu的桌面環境。以下我介紹一個最簡單的方法。
1. 先在/etc/apt/sources.list中,啟用multiverse repository
2. 利用Synaptic套件管理程式,安裝msttcorefonts以及ttf-xfree86-nonfree兩個套件
3. 重新開啟應用程式或是重新開啟X Windows
你就可以發現,你的桌面環境的字型變得比較好看了喔。
ps. Windows和Linux都是我喜愛的作業系統,也都覺得很不錯,各有優缺點。只是覺得微軟的產品如果可以再便宜一點,那就更好了。
相關連結:
RestrictedFormat/Microsoft Fonts
其實,我們可以有很多方法可以美化Ubuntu的桌面環境。以下我介紹一個最簡單的方法。
1. 先在/etc/apt/sources.list中,啟用multiverse repository
2. 利用Synaptic套件管理程式,安裝msttcorefonts以及ttf-xfree86-nonfree兩個套件
3. 重新開啟應用程式或是重新開啟X Windows
你就可以發現,你的桌面環境的字型變得比較好看了喔。
ps. Windows和Linux都是我喜愛的作業系統,也都覺得很不錯,各有優缺點。只是覺得微軟的產品如果可以再便宜一點,那就更好了。
相關連結:
RestrictedFormat/Microsoft Fonts
訂閱:
文章 (Atom)
