2010年12月30日 星期四

Ubuntu 10.10

Ubuntu 10.10


the default installed system cannot show Chinese character
Goto [System] -> [Administration] -> [Language Supports] -> [Install/Remove Languages]
Choose required language and install them.



apt-get update;
apt-get install

htop
vim
tree
samba
openssh-server

libncurses5 libncurses5-dev autoconf flex bison m4
virtualbox-ose virtualbox-guest-additions
Network Address Translation (NAT)
http://www.virtualbox.org/manual/ch06.html#network_nat
As more than one card of a virtual machine can be set up to use NAT, the first card is connected to the private network 10.0.2.0, the second card to the network 10.0.3.0 and so on.

git-core gitk
subversion

ctags

gcin
[System] -> [Preference] -> [gcin Setup] -> [對 右上角 的輸入法按右鍵 -> 設定 (輸入法) -> [Default input method and toggle key]
把不用的輸入法都disable掉
[System] -> [Preference] -> [Input Method Switcher] -> (select gcin)
(may need to restart X)

2010年12月28日 星期二

netperf-2.4.5 build failure in FC14

On Fedora Core 14 only. Not seen on Ubuntu 10.4 or 8.04

configure.ac:60: error: possibly undefined macro: AC_CHECK_SA_LEN
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.


Fixed by:
diff --git a/netperf-2.4.5/configure.ac b/netperf-2.4.5/configure.ac
index 63ba3f1..8a38c40 100644
--- a/netperf-2.4.5/configure.ac
+++ b/netperf-2.4.5/configure.ac
@@ -57,7 +57,7 @@ AC_DECL_H_ERRNO
AC_STRUCT_SOCKADDR_STORAGE
AC_HEADER_TIME
AC_HEADER_STDBOOL
-AC_CHECK_SA_LEN(ac_cv_sockaddr_has_sa_len)
+#AC_CHECK_SA_LEN(ac_cv_sockaddr_has_sa_len)

# Checks for library functions.
# AC_FUNC_ERROR_AT_LINE

Using Fedora Core YUM

YUM 常用指令如下:

yum update
更新套件, ex: yum update httpd,如果只有 yum update ,會更新所有已經安裝的套件。

yum search
搜尋套件,ex: yum search httpd*,會搜尋所有跟 httpd 有關的套件。

yum install
安裝套件,這裡的套件安裝,會考慮到相依性的問題。 ex: yum install httpd

yum remove
移除套件,這裡的套件移除,也會考慮到相依性的問題。 ex: yum remove httpd

yum clean
清除安裝時下載的暫存套件原始檔案,位於 /var/cache/yum,因為這裡可以清除的項目很多,我最常用的是 yum clean all ,一次給他清掉 :p

yum list
列出套件名稱,用法常用有分以下幾種:

yum list updates
列出所有可以更新的套件

yum list installed
列出所有已安裝的套件

YUM的使用
http://www.php5.idv.tw/modules.php?mod=books&act=show&shid=2536