2010年1月26日

Extract file from Tarball

下載下來的kernel source tarball不想整個解開,
只要解開某個目錄時, 可以用下面的指令
tar -xvf tarball.tar.gz {path/to/dir}
For example, only usb driver directory:

# tar -xf linux-2.6.24.tar.gz linux-2.6.24/drivers/usb/

2010年1月22日

將Bing翻譯加到Microsoft office中

微軟出的線上翻譯 Bing翻譯
http://www.microsofttranslator.com/Default.aspx

原本Microsoft Office 2003 & 2007 的翻譯為WorldLingo
下載 Microsoft Translator installer for Microsoft Office
安裝好後就會改用Bing翻譯了

Listen to online radio

First, install mplayer, gnome-mplayer
http://www.ubuntugeek.com/install-mplayer-and-multimedia-codecs-libdvdcss2w32codecsw64codecs-in-ubuntu-904-jaunty.html

gecko-mediaplayer. A Mozilla browser plug-in to handle media on websites, using gnome-mplayer
sudo apt-get install gecko-mediaplayer
Open firefox->Tools->Manage Content Plug-ins, Change Windows Media video content handler to Gecko Media Player

Setup Viewvc on Fedora9


  1. yum install viewvc
  2. Edit /etc/viewvc/viewvc.conf, modify cvs_roots to your current CVSROOT
  3. Edit /etc/httpd/conf.d/viewvc.conf

2010年1月21日

blogger舊帳號轉google帳號的問題

我有一個舊的blogger帳號及網址很久沒用了,在轉換成google帳號之後,
發現在blogger資訊主頁上並不會出現,  在討論區爬了一些文之後, 找到了解決方式
http://groups.google.com/group/blogger-help-troubleshoot/browse_thread/thread/b6d0944608e0def3/7c335565e95a3355?lnk=gst&q=old+blogger#7c335565e95a3355

只要到下面的網址
http://blogger.com/forgot.g
登入之後會再收到一封含有登入指示的電子郵件,
再照指示去做, 舊的網址就會出現了

2010年1月16日

a small and nice ini parser -- iniParser

Today I finished cross-compiling wvdial package. After I cross-compiling it, I found that it has some problem to load the wvdial.conf. And I also know that passing arguments to the wvdial is still working. Finally, I decide to modify the wvdial program to load the wvdial.conf by my own. I load the config file with iniParser and pass it to the cfg object. Now it works perfectly !!

wvdial -- a utility that helps in making modem-based connections to the Internet
wvdial site
wvdial wiki
iniParser home
wvdial introduction 

2010年1月11日

compiling wvstreams lib on Ubuntu

Install pre-requests:
sudo apt-get install build-essential libssl-dev libreadline5-dev zlib1g-dev

wget http://wvstreams.googlecode.com/files/wvstreams-4.6.1.tar.gz
tar zxvf wvstreams-4.6.1.tar.gz
./configure
make

2010年1月5日

cvsync: 好用的cvs同步工具

cvsync 網址
http://www.cvsync.org/

預設設定檔位址
/usr/local/etc/
設定檔範例在samples目錄
cvsync.conf是給client用
cvsyncd.conf是給server用

如果在compile的時候出現下面訊息, 則是沒有指定HASH_TYPE

WARNING! Please specify the HASH_TYPE.
  libgcrypt
  mhash
  native (default)
  openssl
make[1]: *** [hash-error] Error 1
直接在make後面指定就可以了
make HASH_TYPE=openssl

2010年1月3日

ubuntu上mount lvm partition

ubuntu 9.10灌好後, 最先就是把之前灌fedora那個硬碟的資料copy回來.
由於fedora 9預設是用lvm的partition, 因此要安裝lvm2套件,
剩下的, 就是把lvm mount起來
# sudo apt-get install lvm2
# sudo vgscan
# sudo vgchange -ay VolGroup00
# sudo lvs
# sudo mount /dev/VolGroup00/LogVol00 /mnt
Reference: http://www.linux-sxs.org/storage/fedora2ubuntu.html

coap-client 4.3.0 Windows build

coap-client  is a  wget -like tool to generate simple requests for retrieval and modification of resources on a remote server.  Got the sour...