※開戶得先預約
※看懂草寫很重要
準備:
1. 護照
2. 房租契約
3. 入學通知
1. 首次存款必須存現金或匯票;
2. 存旅支,必須等到收到郵局寄給你的金融卡,才能存旅支;
好處:
法國郵局兌換旅支不用收手續費
| [+/-] |
[Tip] 法國郵局開戶要點 |
※開戶得先預約
※看懂草寫很重要
準備:
1. 護照
2. 房租契約
3. 入學通知
1. 首次存款必須存現金或匯票;
2. 存旅支,必須等到收到郵局寄給你的金融卡,才能存旅支;
好處:
法國郵局兌換旅支不用收手續費
| [+/-] |
[Flex] 中文錯誤訊息字放大 |

<mx:Style>
.errorTip{
borderColor: #0000ff;
font-size: 16px;
}
</mx:Style>
| [+/-] |
[Tip] 讓損壞的WMV檔案能夠快轉 |
從網路上抓到WMV或是ASF影片,用Windows Media Player播放有時候會無法快轉,這通常是影片本身出了問題。把無法快轉的WMV檔案輸入ExtraPlayer的檔案清單,按下滑鼠左鍵叫出選單,選擇【影音檔案】→【影音轉檔】→【修復WMV、WMA、ASF】這一項,讓它幫你修復這些損壞的WMV檔案。ExtraPlayer修復的機率不低,修復成功後你就可以快轉WMV影片,不用每次都從頭開始看了。
| [+/-] |
[電視] 太王四神記 |









[關鍵字]: [TSKS]
| [+/-] |
[Tip] DBDesigner 4 DBExpress Error |
[問題來源]
mysql password hash 方式不同
[解決方式]
| [+/-] |
[Debian] TeamTalk 2 Server 安裝 |
[預先動作]
下載:
[安裝步驟]
starting the teamspeak2 server
TeamSpeak Server Daemon started with PID 2857
啟動完成.
[client 連結測試]
server -> 安裝 TS Server 之位置

| [+/-] |
[Web] DBDesigner 4 |
資料庫設計軟體,Free
支援 MySQL、MSSQL、Oracle ,但是功能十分完整與不錯。
MSSQL、Oracle 需透過 JDBC 方式連結.
| [+/-] |
[Tip] Firefox 字型跑掉 |
[解決步驟]
about:config
font.name.monospace.x-unicode => Arial, 新細明體
font.name.sans-serif.x-unicode => Arial, 新細明體
font.name.serif.x-unicode => Arial, 新細明體
font.name.sans-serif.zh-TW => 新細明體
| [+/-] |
[Flex] FlexBuilder 2 install on Eclipse 3.3 |
[問題]
將 FlexBuilder 2 以 plugins 方式安裝於 Eclipse 3.3 時,都會出現無法安裝的狀況。
[解決方式]
FlexBuilder 3 不會有此種問題,遇到了還是可以按下一步完成安裝。
| [+/-] |
[Debian] Postfix with SASL |
[前置動作]
aptitude install postfix-tls sasl2-bin libsasl2-modules
[執行步驟]
令 postfix 支援 sasl
nano /etc/default/saslauthd
# Should saslauthd run automatically on startup? (default: no)
START=yes
# Example: MECHANISMS="pam"
MECHANISMS="pam"
mkdir -p /etc/postfix/sasl
echo "pwcheck_method: saslauthd" > /etc/postfix/sasl/smtpd.conf
令 postfix 加入 sasl 群組
addgroup postfix sasl
nano /etc/postfix/main.cf
#enable sasl auth
smptd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks check_relay_domains reject_unauth_destination
smtpd_client_restrictions = permit_sasl_authenticated
測試是否有成功
telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 mail.exampl.com ESMTP Postfix (Debian/GNU)
EHLO qemu
250-mail.exampl.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
http://www.debian.org.tw/index.php/Postfix-SASL
筆記-postfix-saslauth-2005.10.23
| [+/-] |
[Debian] Postfix with TLS |
[執行步驟]
設定 key
cd /etc/postfix
openssl req -new -x509 -nodes -out cert.pem
Country Name (2 letter code) [AU]:TW
State or Province Name (full name) [Some-State]:Taiwan
Locality Name (eg, city) []:Taipei
Organization Name (eg, company) [Internet Widgits Pty Ltd]:example.com
Organizational Unit Name (eg, section) []:admin
Common Name (eg, YOUR name) []:fjufirefox
Email Address []:root@example.com
chown root:postfix cert.pem privkey.pem
chmod 640 cert.pem privkey.pem
修改 main.cf
nano /etc/postfix/main.cf
# TLS parameters
smtpd_tls_cert_file = /etc/postfix/cert.pem
smtpd_tls_key_file = /etc/postfix/privkey.pem
smtpd_use_tls=yes
tls_random_source = dev:/dev/urandom
tls_daemon_random_source = dev:/dev/urandom
修改 master.cf
nano /etc/postfix/master.cf
smtps inet n - - - - smtpd -v -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
| [+/-] |
[Tip] 加速上網效率 |
[實際作法請參閱]
[軟體需要]
[dns 設定]
請根據您的網路供應商來設定:
giga: 203.133.1.6, 203.133.1.8
| [+/-] |
[Fon] Fon Plus 自定設定 |
[前置動作]
[部份設定修改]
[昇級 Busybox]
暫停部份服務,為了解決 ipkg: fork failed: Cannot allocate memory
昇級取得 vi 功能
killall: dnsmasq,chilli,fonstate,httpd,fonsmcd,crond,hotplug2,logger,syslogd,klogd,watch_chilli, hostapd
安裝 kmod-*-fonera-1_mips.ipk 只能由下面網址所提供之套件來安裝
http://eric.levine.free.fr/foneraplus/Packages/
[設定自動更新]
確認
thinclient dummy
[在網頁管理加上指令功能]
vi /www/cgi-bin/webif/diag.sh (建一個新檔)
#!/usr/bin/webif-page
<?
###
#
# FreeWLAN Addons - http://www.freewlan.info
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA
#
# http://www.gnu.org/copyleft/gpl.html
#
###
. /usr/lib/webif/webif.sh
validate <<EOF
string|FORM_submit|@TR<<Submit>>|max=10|$FORM_submit
EOF
if [ "$?" != "0" ]
then
FORM_submit=""
fi
sel_diag=1
. /usr/lib/webif/advanced.sh
header "Diagnostics"
echo "<textarea style='width:700px; height:400px'>"
eval $FORM_cmd
echo "</textarea>"
display_form <<EOF
start_table|0|10|5
add_row
add_label_cell|@TR<<Command>>:
add_input_cell|cmd||tableTextButton
add_button_cell|submit|@TR<<Submit>>
end_row
end_table
EOF
footer ?>
vi /usr/lib/webif/advanced.sh (加在最後)
<tr>
<td class=\"advancedMenu\">
<span class=\"submenu${sel_diag:+_sel}\">
<a href=\"/cgi-bin/webif/diag.sh\">@TR<<Diag_Title|Diagnostics>></a>
</span>
</td>
</tr>
http://www.fonboard.nl/wiki/Unlock_la_fonera_plus#Windows_howto
| [+/-] |
[Fon] Fon Plus 啟用 SSH 功能 |
[前置準備]
[注意事項]
※將自己電腦 IP 改為192.168.1.254
※與自己電腦與 Fon Plus (Lan) 連接
※登入 Fon Plus 採用 nslu2 redboot port 9000
[執行步驟]
1. ping -t 192.168.1.1
※ Fon Plus 於開機前就要先做,直到有回應

2. telnet 192.168.1.1 9000

3. Redboot

4. 安裝 firmware_francofon.bin

image.bin 與 firmware_francofon.bin 差別:
firmware_francofon.bin 有 vi 功能;
image.bin 沒有 vi 功能。
load -r -b 0x80100000 image.bin 會出現下面畫面

同時 ping 也會 timed out,完成更新就會回應。

最後 reset 完工
[測試 SSH 是否啟用]

http://www.fonboard.nl/wiki/Unlock_la_fonera_plus#Windows_howto
| [+/-] |
[Debian] SVK 安裝與使用 |
[安裝步驟]
aptitude install svk
[使用方法]
※ //mirror/libtorrent -> 鏡射目錄(虛擬目錄),此為專案之目錄
※ svn://rakshasa.no/libtorrent/trunk/libtorrent -> 遠端目錄
※ xxx.xxx -> 任意檔案
svk mkdir //mirror -m "這設鏡射位置,也是說明之用"
svk mirror //mirror/libtorrent svn://rakshasa.no/libtorrent/trunk/libtorrent
將所有的修定版 head 全下載
svk sync //mirror/libtorrent
指定修定版head下載
svk sync -s rev_number //mirror/libtorrent
由虛擬目錄取出libtorrent
svk co //mirror/libtorrent libtorrent
對於取出之libtorrent進行新增、刪除、復原
新增:svk add xxx.xxx
刪除:svk rm xxx.xxx
復原:svk revert xxx.xxx
提交(指修改之資料送到 svn://rakshasa.no/libtorrent/trunk/libtorrent)
svk ci
更新(與遠端目錄資料同步)
svk up -s
匯入
svk import /home/man //mirror/libtorrent/man -m "這設鏡射位置,也是說明之用"
http://svk.bestpractical.com/view/HomePage
http://svk.bestpractical.com/view/UsingSVKAsARepositoryMirroringSystem
筆記-svn and svk 使用與比較(2006.10.23)
| [+/-] |
[Debian] Console 中文顯示 |
[執行步驟]
設定系統為UTF-8模式
dpkg-reconfigure locales
選擇
zh_TW.UTF-8 UTF-8(令其為預設)
en_US.UTF-8 UTF-8
[測試是否顯示中文]
export
是否有-> declare -x LANG="zh_TW.UTF-8"
nano xxx.xxx (xxx.xxx 為任意檔) 顯示中文

date 顯示中文

ls -lsa 顯示中文
[解決putty無法顯示中文]
下面設定要改

| [+/-] |
[Debian] Red5 安裝 |
[前置動作]
aptitude install sun-java5-bin
[安裝Red5]
[使用]
/etc/init.d/red5 start
帳/密: admin/admin
| [+/-] |
[CF] SnipEx設定 |
好用技巧:



| [+/-] |
[Debian] Deluge 安裝 - BT Client |
支援 Web UI、DHT、PE(Protocol Encryption)、UPnP、SafePeer、PeerGuardian
提供桌面系統使用
[前置動作]
aptitude install g++ make python-all-dev python-gnome2-extras python-all python-dbus python-gtk2 python-notify librsvg2-common python-xdg python-support subversion libboost-dev libboost-thread-dev libboost-date-time-dev libboost-filesystem-dev libboost-serialization-dev libssl-dev zlib1g-dev
[安裝 Deluge]
[執行 Deluge]
deluge
| [+/-] |
[Other] 財務管理軟體 |
種類如下:
| [+/-] |
[Debian] 硬碟效能加倍 |
[前置動作]
aptitude install hdparm
[查詢硬碟支援範圍]
hdparm -i /dev/hda
/dev/hda:
Model=ExcelStor Technology J360, FwRev=V22OA63A, SerialNo=VNVB05E20179JA
Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=52
BuffType=DualPortCache, BuffSize=1821kB, MaxMultSect=16, MultSect=16
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=120103200
IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
PIO modes: pio0 pio1 pio2 pio3 pio4
DMA modes: mdma0 mdma1 mdma2
UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
AdvancedPM=yes: disabled (255) WriteCache=enabled
Drive conforms to: ATA/ATAPI-6 T13 1410D revision 3a: ATA/ATAPI-2 ATA/ATAPI-3 ATA/ATAPI-4 ATA/ATAPI-5 ATA/ATAPI-6
* signifies the current active mode
[設定 hdparm.conf]
nano /etc/hdparm.conf
ROOTFS = /dev/hda
command_line {
hdparm -X udma5 -d1 -u1 -m16 -c1 /dev/hda
}
注意:
hdparm -tT /dev/hda
調教前:
/dev/hda:
Timing cached reads: 134 MB in 2.01 seconds = 66.67 MB/sec
Timing buffered disk reads: 16 MB in 3.76 seconds = 4.26 MB/sec
調教後:
/dev/hda:
Timing cached reads: 138 MB in 2.00 seconds = 69.00 MB/sec
Timing buffered disk reads: 22 MB in 3.01 seconds = 7.31 MB/sec
筆記-Linux-系統調教 v22(2007.11.01)
| [+/-] |
[LinkStation] Samba Joining Active Directory |
[加入方法]
[問題解決]
無法加入時,有幾項要解決。
http://buffalo.nas-central.org/index.php/Joining_Active_Directory
| [+/-] |
[Flex] 10個 flex 迷思解析 |
一些對於Flex迷思,詳細內容如ref.
http://www.infoq.com/news/2007/12/top-10-flex-misconceptions
| [+/-] |
[Web] PHP 6.0 注意事項 |
[下載php 6.0]
[注意事項]
以下執行要特別注意:
php 6.0 將完全採 utf-8 模式執行,以解決出現亂碼之問題,
並且整體編寫程式將趨向嚴僅。
| [+/-] |
[Debian] Squid 安裝與設定 |
[前置動作]
這裡可以根據您的需要,選擇squid 2.x或squid 3.x。
[一般設定squid.conf]
squid 2.x
nano /etc/squid/squid.conf
# http_port 是提供 Proxy Client 連接所使用的 Port,
#Default:
http_port 3128
icp_port 0
# icp_query_timeout 設定 icp query timeout 的時間(ms)
# Default:
icp_query_timeout 0
# hierarchy_stoplist cgi-bin ?
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 64 MB
#調整cache swap的高低水平,以維持cache資料有效率的置換
cache_swap_low 80
cache_swap_high 95
# 當單一資料超過此大小便不 cache 在硬碟中,限制單一資料的『檔案的容量』。
maximum_object_size 4096 KB
#限制cache digests 可暫存 IP、Domain Name紀錄的容量。
ipcache_size 32768
ipcache_low 80
ipcache_high 95
# 完整主機名稱(FQDN)紀錄筆數。
fqdncache_size 4096
# PROXY存放資料的位置及硬碟容量 第一層及第二層目錄數
cache_dir ufs /var/spool/squid 4096 32 256
# 以下為各項系統記錄檔所在目錄設定。各 log file 設定如下:
# access.log 為 proxy 所有使用記錄檔。
# cache.log 為系統運作狀況記錄檔,應常去查看是否正常。
# 需在 crontab 中執行 /usr/bin/squid -k rotate 做每日定時
# 清除 log file,否則會因 log file 太大,而塞爆系統。
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_swap_log /var/log/squid/swap.log
cache_store_log none
logfile_rotate 3
dns_children 6
[進階squid.conf設定]
redirect_children 20
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443
acl Safe_ports port 21 80 443 3128
acl connect method CONNECT
acl PASSWORD proxy_auth REQUIRED
acl proxyAccess external NT_global_group "/etc/squid/ntgroup.acl"
deny_info no_proxAccess_right proxyAccess
# for AD
# Authentication for IE
auth_param ntlm program /usr/bin/ntlm_auth --helper-protocol=squid-2.6-ntlmssp
auth_param ntlm children 50
auth_param ntlm max_challenge_reuses 0
auth_param ntlm max_challenge_lifetime 10 minutes
auth_param ntlm use_ntlm_negotiate on
squid 3.x
目前為測試版,部分設定檔與squid 2.x不同,但影響不大。
鳥哥-伺服器第一版書
筆記-proxy v18(2007.10.12)
| [+/-] |
[LinkStation] 更新Kernel至2.6.23.12 |
[注意事項]
[前置動作]
avr-evt 設定
openlink 使用者要安裝的
u-Boot 安裝要做的
[安裝步驟]
下載安裝指令
執行安裝指令
/usr/local/sbin/webinstaller-kernelinst.sh
安裝完成,重新開機
/usr/local/sbin/kernel26.sh
[完成畫面]
http://hvkls.dyndns.org/downloads/documentation/README-webinstaller.html#dryrun
| [+/-] |
[Debian] Wifi WPA |
令wifi啟用WPA功能,如要更為安全的環境可導入radius server<->openldap or mysql ......
[設定interfaces]
nano /etc/network/interfaces
auto lo
iface lo inet loopback
...
iface wlan0 inet static
address 192.168.10.254
netmask 255.255.255.0
gateway 192.168.1.254
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
auto wlan0
[設定wpa]
nano /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
eapol_version=1
ap_scan=2
network={
ssid="WPA-Network"
scan_ssid=1
proto=WPA
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
#psk="您的密碼"
psk=password
}
| [+/-] |
[歌] 劉若英 - 我很好 |
作詞:阿信(五月天) 作曲:陳忠義
沙發上睡著 孤單冷醒的破曉
冷的麵條 熱的淚痕 啤酒在苦笑
當時的煎熬 當時的心痛如絞
天終於亮了 遺憾終於退潮
終於能夠恨不再瘋 淚不再掉 心不跑
一定會有一個人 一段新的美好
誰讓我擁抱 誰讓我再一次心跳
就算愛情讓我再次的跌倒 傷痕也要是一種驕傲
誰讓我擁抱 誰讓我瘋狂的心跳
就算明天整個城市要傾倒 也讓我愛到最後一秒
丟掉電影票 刪掉信件跟合照
洗了床單 剪了頭髮 清空了煩惱
恨可以很小 小到眼淚能沖掉
我現在很好 可以重新起跑
終於能夠恨不再瘋 淚不再掉 心不跑
一定會有一個人 一段新的美好
誰讓我擁抱 誰讓我再一次心跳
就算愛情讓我再次的跌倒 傷痕也要是一種驕傲
誰讓我擁抱 誰讓我瘋狂的心跳
就算明天整個城市要傾倒 也讓我愛到最後一秒
地鐵湧出了人潮 幸福湧出了預兆
我會找回當初對愛天真的霸道
誰讓我擁抱 誰讓我再一次心跳
就算愛情讓我再次的跌倒 傷痕也要是一種驕傲
誰讓我擁抱 誰讓我瘋狂的心跳
就算明天整個城市要傾倒 也讓我愛到最後一秒
誰讓我擁抱 誰讓我瘋狂的心跳
就算明天整個城市要傾倒 也讓我愛到最後一秒
| [+/-] |
[Debian] 安裝 USB Ethernet |
[適用範圍]
適合所有USB ethernet,USB WIFI安裝。
[前置動作]
aptitude install subversion build-essential libtool automake1.9 openssl libcurl3 libcurl3-dev libsigc++-2.0-0c2a libsigc++-2.0-dev libncurses5 libncurses5-dev
[編譯ndiswrapper]
cd /usr/src
svn co https://ndiswrapper.svn.sourceforge.net/svnroot/ndiswrapper/trunk/ndiswrapper
cd ndiswrapper
make
make install
上傳 usb ethernet driver(admtek adm8511 usb to fastethernet converter)至Server
[載入usb ethernet]
mkdir /lib/windrivers
cp adm8511.sys /lib/windrivers
cp net8511.inf /lib/windrivers
ndiswrapper -i /lib/windrivers/net8511.inf
[檢查是否安裝]
ndiswrapper -l
[載入 Kernel]
modprobe ndiswrapper
[檢查是否載入Kernel]
dmesg
ndiswrapper version X.X loaded
ndiswrapper adding adm8511.sys
[自動啟用]
nano /etc/network/interfaces
allow-hotplug eth1
iface eth1 inet static
address 192.168.10.254
network 192.168.10.0
netmask 255.255.255.0
broadcast 192.168.10.255
gateway 192.168.10.1
| [+/-] |
[Debian] 安裝VMware Tool |
[啟動VMware前]
[前置動作]
[安裝VMware]
| [+/-] |
[Debain] Shorewall 單網設定 |
[前置動作]
aptitude install shorewall
[設定shorewall]
nano /etc/default/shorewall
startup=0
改為
startup=1
cd /usr/share/doc/shorewall/examples/one-interface
gzip -d interfaces.gz
gzip -d rules.gz
cp /usr/share/doc/shorewall/examples/one-interface/* /etc/shorewall
cd /etc/shorewall
nano interfaces //修改 interfaces 如下
net eth0 detect routefilter,dhcp,tcpflags,logmartians,nosmurfs
nano rules //修改 rules 如下,允許SSH
SSH/ACCEPT net $FW
ACCEPT $FW net icmp
Ping/REJECT net $FW
[啟動shorewall]
/etc/init.d/shorewall start
| [+/-] |
[Linux] 網路設計 |
[前置動作]
測用軟體:Zeroshell
Zeroshell 介紹:
Zeroshell 具有強大之router、radius、web介面、防火牆、vpn、Qos、DHCP、dns轉發等功能,可用來安裝到伺服器上為內部網路提供網路服務,而且安裝和使用都很方便,有Live CD和Flash imgage文件用於安裝,可以使用web介面進行設置和管理。
測試環境架構分為兩種:2ethernet, 3ethernet
採用設備(yahoo bid關鍵字:"via" or "car pc" or "epia"):epia-cl 6000e
2ethernet:
3ethernet:(加裝 usb ethernet)->這部份為測試
導入之方案:
http://www.zeroshell.net/eng/
http://www.shorewall.net/
| [+/-] |
[Debian] Radius + LDAP 架構圖 |
通過Radius和LDAP驗證,DD-WRT(Radius)->LDAP。

| [+/-] |
[Debian] DNS安裝與設定 |
[前置安裝]
aptitude install bind9
[DNS資訊列表]
網域名稱:example.com
主機名稱:mail.example.com, example.com
管理者信箱:root@example.com
MX主機紀錄:mail.example.com
收信位址:mail.example.com, example.com
[設定bind]
cd /etc/bind
nano exmple.com.hosts
example.com. IN SOA mail.example.com. root.example.com. (
1193107487
10800
3600
604800
38400 )
example.com. IN NS mail.example.com.
example.com. IN A 192.168.1.2
mail.example.com. IN A 192.168.1.2
mail.example.com. IN MX 10 mail.example.com.
[於windows下,測試bind]
完工
| [+/-] |
[Debian] Webmin安裝 |
[前置動作]
aptitude install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
[加入webmin sources.list]
nano /etc/apt/sources.list
deb http://download.webmin.com/download/repository sarge contrib
[安裝webmin]
aptitude install webmin
[使用webmin]