顯示具有 Ubuntu 標籤的文章。 顯示所有文章
顯示具有 Ubuntu 標籤的文章。 顯示所有文章

星期日, 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


星期五, 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

讓evince顯示中文

Ubuntu預設安裝的evince雖然可以讀取pdf檔案, 可是如果檔案內容包含中文的話, 中文字就會無法正常地顯示出來. 雖然Adobe PDF reader也很好用, 而且又是免費軟體, 但是總是有些缺點, 例如: 開啟速度較慢, 不是open source...

要解決evince無法顯示中文的問題, 只要安裝poppler-data套件後就解決囉.

星期六, 8月 08, 2009

修正VMware on Ubuntu 9.04無法使用方向鍵的問題


如果在Ubuntu 9.04中安裝VMware, 並且在VMWare發生方向鍵無法使用的情形, 只要在/etc/vmware/config檔案中加入
xkeymap.nokeycodeMap = true

VMware的虛擬機器啟動時會出現如下圖所示的提示訊息, 不用理會沒關係.



資料來源:
  • http://communities.vmware.com/message/1087494#1087494

星期六, 7月 25, 2009

切換ubuntu的預設輸入法

im-switch -s gin
用gcin當作預設輸入法

im-switch -s scim
用scim作為預設輸入法

星期五, 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:

  1. Download the patch from Petr Vandrovec at http://knihovny.cvut.cz/ftp/pub/vmware/vmware-any-any-update115.tar.gz.
  2. tar xfz vmware-any-any-update115.tar.gz
  3. Change the working directory into vmware-any-any-update115
  4. 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:

  1. cd /usr/lib/vmware/modules/source
  2. cp vmmon.tar vmmon.tar.orig
  3. sudo tar xvf vmmon.tar
  4. cd vmmon-only/include/
  5. sudo vi vcpuset.h
  6. change line 74 from: #include "asm/bitops.h" to #include "linux/bitops.h"
  7. rm vmmon.tar
  8. sudo tar cvf vmmon.tar vmmon-only/
  9. sudo rm -rf vmmon-only/
  10. 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

參考連結:

在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