Monday, May 7, 2012

Vi Vim text editor

執行 vimdiff 時顯示以下錯誤訊息:
This Vim was not compiled with the diff feature.

安裝 vim-full 套件
$ sudo apt-get install vim-full

Saturday, April 28, 2012

Apache HTTP Server Authentication Access Control

修改 httpd.conf 設定檔,允許 AllowOverride AuthConfig 選項。

於欲限制存取目錄的 .htaccess 檔案新增以下內容。
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /home/doe/public_html/.htpasswd
Require valid-user

新增使用者 jsmith 至已存在的 /home/doe/public_html/.htpasswd 密碼檔:
$ htpasswd /home/doe/public_html/.htpasswd jsmith

若密碼檔不存在,產生新密碼檔(-c 參數) 且新增使用者 jane:
$ htpasswd -c /home/doe/public_html/.htpasswd jane

參考資料



Thursday, April 26, 2012

Microsoft Office versions

新筆記型電腦j通常已經預先安裝 Microsoft Office 2010,需要購買產品金鑰(product key) 以啟用完整功能。若無金鑰,僅能使用 Office Starter 2010。

Office Starter 2010 是 Microsoft Office 2010 的簡易版,僅包括預先載入且非試用版的 Word Starter 2010 與 Excel Starter 2010,但是不包括 PowerPoint 2010 或 Outlook 2010。

Friday, April 20, 2012

QualNet Installation

安裝 QualNet 軟體。

Ubuntu 8.10 (Intrepid Ibex)

安裝 OpenGL drivers 以便使用 QualNet GUI 介面,選擇安裝 NVIDIA binary Xorg driver:
$ sudo apt-get install nvidia-glx-180

重新編譯 QualNet 時,安裝必要編譯套件(build-essential) 以解決 "make: g++: Command not found" 問題,
$ sudo apt-get install build-essential

重新編譯 QualNet 時,安裝 XML parsing C library development kit 以解決 "/usr/bin/ld: cannot find -lexpat" 問題:
$ sudo apt-get install libexpat1-dev
$ yum install expat-devel (若使用 yum 更新)


References

Thursday, March 22, 2012

Ubuntu Linux

使用 Ubuntu Linux 的相關資訊。

查看 Ubuntu Linux 版本資訊
於安裝 Ubuntu 8.10 (Intrepid Ibex) 64-bit PC (AMD64) Server 的機器
$ cat /etc/issue
Ubuntu 8.10 \n \l

$ uname -a
Linux hostname 2.6.27-7-server #1 SMP Fri Oct 24 07:20:47 UTC 2008 x86_64 GNU/Linux

於安裝 Ubuntu 8.10 (Intrepid Ibex) 64-bit PC (AMD64) Desktop 的機器
$ uname -a
Linux hostname 2.6.27-7-generic #1 SMP Fri Oct 24 06:40:41 UTC 2008 x86_64 GNU/Linux

或者使用 lsb_release 指令以顯示 distribution-specific information。
$ lsb_release -a
Distributor ID: Ubuntu
Description:    Ubuntu 8.10
Release:        8.10
Codename:       intrepid
更新套件

The software repositories configuration file: /etc/apt/sources.list

$ apt-get update

$ apt-get install package

更新舊版 Ubuntu
備份原來的 software repositories configuration file
$ sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

因為舊版 Ubuntu 已經移至 old-releases.ubuntu.com,修改 source.list 檔案
$ sudo sed -i -e 's/tw.archive.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
$ sudo sed -i -e 's/security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list

先使用 update 選項與 /etc/apt/sources.list 中的安裝來源同步化 package index files,然後使用 dist-upgrade 選項(必須先使用 update 選項) 將系統已安裝的 package 升級(即安裝新版 package)。
$ sudo apt-get update && sudo apt-get dist-upgrade
$ sudo apt-get -f install

參考 How do I install packages to an 8.10 system?, http://askubuntu.com/questions/104373/how-do-i-install-packages-to-an-8-10-system

安裝常用套件

安裝 GNU libc manual pages
$ sudo apt-get install manpages-dev


安裝 Desktop 環境於 Ubuntu Server

安裝 Ubuntu (Gnome) desktop
$ sudo apt-get install ubuntu-desktop

或者安裝 Kubuntu (KDE) desktop
$ sudo apt-get install kubuntu-desktop

參考 Add a desktop to an Ubuntu Server, http://ubuntuguide.org/wiki/Ubuntu:All#Add_a_desktop_to_an_Ubuntu_Server

修正 Static IP address 問題 (Ubuntu 8.10)
參考 How to Set a Static IP address in Ubuntu 8.10 (Intrepid Ibex)

References:
RepositoriesUbuntu, https://help.ubuntu.com/community/Repositories/Ubuntu

Tuesday, March 13, 2012

信用卡使用市區免費停車





三大連鎖停車場
中興嘟嘟房
台灣聯通
永固24TPS 


參考資料
市區免費停車有門檻 信用卡優惠全攻略 (2012/01/11),  http://www.cardu.com.tw/news/detail.htm?nt_pk=4&ns_pk=15057

Tuesday, January 24, 2012

2012 Spring SKM Credit Card Promotion

新光三越 省錢刷手卡利high

活動網址:http://www.skm.com.tw/event/201201spring/1-1.html
活動日期:2012/01/06(五) ~ 2012/02/19(日)
全台新光三越百貨各分店,同卡號刷卡達指定門檻享 3% - 5% 新光三越商品禮券:
累計達NT$10,000(含)以上,回饋 3% 商品禮券
累計達NT$60,000(含)以上,回饋 4% 商品禮券
累計滿NT$200,000(含)以上,回饋 5% 商品禮券
每卡最高回饋上限5萬元商品禮券。

2012/1/20 ~ 2/19 匯豐信用卡加碼好禮相送
2012/1/20 ~ 2/2 澳盛信用卡加碼,滿8仟送2佰,滿2萬送5佰