2011年10月8日 星期六

升級 gcin > 1.5.7 使用無調拼音

// 安裝編譯所需函式庫
# apt-get install libxtst-dev

$ cd gcin-1.6.x
$ ./configure --prefix=/home/USER/gcin --use_anthy=N --use_qt3=N --use_qt4=N --use_gtk3=N
$ make
$ make install

// 加入 .xinitrc 或 .xsession
$ vi ~/.xinitrc
=========================
/home/USER/gcin/bin/gcin
=========================


Reference :

[提醒] gcin「拼音」(1.5.7之後的新功能)

凍仁分享 (deb 套件源)
Luna's Debian Archiver

Scanner Under Linux

HP Deskjet F4185


// install utils
# sudo apt-get install hplip sane-utils


// Detect scanner
# hp-probe
// press [enter] to detect device on usb*

# scanimage -L


// Scan to file
#
scanimage > scan-file.pnm


# bash scanner.sh
=================================================================
#!/bin/bash

if [ ! -d `date +'%Y-%m-%d'` ]; then
mkdir `date +'%Y-%m-%d'`
fi
cd `date +'%Y-%m-%d'`

read -n1 -r -p "請按 [s] 繼續 ( 按任意鍵離開 ) ..." key
until [ "$key" != "s" ];
do

clear
echo -e "\n掃描中..."
#_ret=0
_filename="`date +'%H-%M-%S'`.pnm"
scanimage > $_filename
echo -e "存檔至 `date +'%Y-%m-%d'`/$_filename\n\n"

read -n1 -r -p "請按 [s] 繼續 ( 按任意鍵離開 ) ..." key
done
echo -e "\n程式結束\n"
=================================================================
懶惰掃描 script

Reference :

NSLU2-Linux - HowTo / UnslungScanWithHPLIP browse

Linux: Scan An Image With HP Scanners

Everything Linux - Using a Scanner Under Linux

Setting GTalk on finch & pidgin

Protocal : XMPP
Username : aaaaaaaa
Domain : gmail.com
Resource : finch
Password : ************
Alias : SCREEN NAME
Connect port : 5222
File transfer proxies : proxy.eu.jabber.org

2011年10月7日 星期五

SMC 7904WBRA2

Default IP : 192.168.2.1
Web Default Password : smcadmin


中華電信 PPPoE 設定


* 只能用 RJ-11 那端當 WAN , 使用 RJ-45 DHCP 不行, 要注意~
* ADSL、ADSL2+ 可, 光世代、VDSL 不行

* DDNS 部份, 更新至 dyndns.org 有問題, 而使用 no-ip.com 則會將所有 hosts 都更新至同一 IP


Reference :

SMC Networks Asia ::

http://5i01.com/topicdetail.php?f=110&t=287370&last=2545570

SMC 7904WBRA 使用教學 step by step - Mobile01

2011年10月5日 星期三

*** 匯入額外套件 hgext.imerge 失敗: No module named imerge

failed to import extension hgext.imerge

$ vi ~/.hgrc
================
[extensions]
hgext.imerge=!
================