自由學習的風

幽夢影 張潮 少年讀書,如隙中窺月;中年讀書,如庭中望月;老年讀書,如臺上玩月。皆以閱歷之淺深,為所得之淺深耳。

[PHP] cake bake 時出現時區(TimeZone)有問題

2010年12月4日 星期六

最近開啟對 CakePHP 有興趣,所以照著官網的教學來操作

不過,當使用「cake bake」的指令時,卻出現下列的錯誤訊息

Warning: DbConfigTask::bake(): It is not safe to rely on the system's timezone s
ettings. You are *required* to use the date.timezone setting or the date_default
_timezone_set() function. In case you used any of those methods and you are stil
l getting this warning, you most likely misspelled the timezone identifier. We s
elected 'UTC' for '8.0/no DST' instead in E:\UniServer\www\caketest\cake\console
\libs\tasks\db_config.php on line 260

Fatal error: Class 'DATABASE_CONFIG' not found in E:\UniServer\www\caketest\cake
\console\libs\tasks\db_config.php on line 260

原本以為是 PHP 的時區設定有問題,所以開啟「php.ini」,把裡頭的「date.timezone = "Europe/London"」改成「date.timezone = "Asia/Taipei"」,重啟 Apache 後,還是出現一樣的訊息,後來才找出來,原來是 CakePHP 本身也有設定時區,所以必須修改 「./app/config/core.php.」,找到「date.timezone」 的設定,把它解除註解,然後設為自己所在的時區就正常了,我這邊設成「date.timezone = "Asia/Taipei"

把它記下來,避免下次又忘了!

 

[Ubuntu] TM4330 無線卡(RA2860) 無法支援 WPA & WPA2 認證

2010年10月24日 星期日

1. 首先從 ralink 下載 ra2860 的驅動程式
 
2. 將下載的 ralink 2860 驅動程式解壓縮,開啟終端機,切換至解壓縮目錄後,編輯 ./os/linux/config.mk

tar   zxvf   
nano   ./os/linux/config.mk

3. 將下列 WPA 的選項,設為 "Y",儲存後離開

HAS_WPA_SUPPLICANT=y
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y 

4. 編輯 ./common/cmm_wpa.c,找到「MIX_CIPHER_NOTUSE」字串,並將該行取代為「WPA_MIX_PAIR_CIPHER FlexibleCipher = WPA_TKIPAES_WPA2_TKIPAES;」,然後儲存並離開

5. 編譯並安裝

sudo make

sudo make install

sudo ifconfig wlan0 down    (on some hardware it is ra0)

sudo rmmod rt2860sta

sudo mv /lib/modules/2.6.*/kernel/drivers/staging/rt2860/rt2860sta.ko rt2860sta.ko.dist

6. 停止 Ubuntu 找到的 ralink 2860 的驅動程式模組 「nano   /etc/modprobe.d/blacklist.conf」

blacklist rt2800pci

blacklist rt2800usb

blacklist rt2x00lib

blacklist rt2x00pci

blacklist rt2x00usb

7. 卸除原先無線網卡,再啟動新的無線網卡

sudo depmod -a

sudo modprobe rt2860sta

sudo ifconfig wlan0 up

8. 複製驅動程式至系統目錄中

sudo cp rt2860sta.ko /lib/modules/2.6.*/kernel/drivers/staging/rt2860/

[Utils] ScribeFire 提供 Google Chrome版本

2010年10月10日 星期日

原本只在  firegox 上的部落格離線工具 ScribeFire ,已提供 Chrome 的版本,大家可以試試囉!

https://chrome.google.com/extensions/detail/elkkomimknapgodalnkjeddkjnjkfmfp

[FF] ScribeFire 的XML解析錯誤

2010年9月13日 星期一

ScribeFire突然出現XML解析錯誤,如
XML 解析錯誤: 不符合語法位址: chrome://scribefire/content/editor/editor.xul行號 80, 第 6 個字: ----------------------------------------^



解決的辦法也很簡單,直接把 ScribeFire 套件更新至 3.5.3.1 就行了!


[轉貼]網頁設計收藏站80個

2010年9月9日 星期四

家儒的筆記

整理了一些蠻有用的網頁設計收藏網站!很值得參考!
http://ka-yue.com/blog/web-design-pick

妄想之陰謀論

主官:「現在任務需要,我們需要從某系統把全縣的學生資料抓出來」。
「報告長官,這個系統非常複雜,我們沒有辦法獨立完成,需要該系統廠商協助。」
主官:「聯絡廠商,是否可以幫我們完成這個部分。」

*****一小時後***********
「報告長官,廠商回報『沒有問題』,但是需要編列經費約六萬元,不過,我爭取後,廠商念在合作多年,願意打折,只收五萬元。」
主官:「.........」
主官:「好吧!」

( B哥 和 L哥私下討論,「哭夭,一行 SQL 的指令要五萬塊!!」)

test upload

2010年8月21日 星期六

test upload image

[資料結構] 十進位轉換成八進位 part2 (非遞迴)

2010年8月7日 星期六


利用非遞迴的方式將十進位轉換成八進位,方向正確!
/* octnonrecu2.c */
main(){
    void    oct(int);
    int        i, n, arr[50];

    printf("Enter an integer: ");
    scanf("%d", &n);
    i = 0;
    while( n >= 8 ){
        /* printf("%d", n % 8); */
        arr[i]    = n % 8;
        n = n / 8;
        i++;
    }
    /* printf("%d\n", n); */
    arr[i]    = n;

    while( i >= 0){
        printf("%d", arr[i]);
        i--;
    }
}


[資料結構] 十進位轉換成八進位 part 1 (非遞迴)


利用非遞迴的方式將十進位轉換成八進位,不過,方向有顛倒~~~
/* octnonrecu.c */
main(){
    void    oct(int);
    int        n;
    printf("Enter an integer: ");
    scanf("%d", &n);
    while( n >= 8 ){
        printf("%d", n % 8);
        n = n / 8;
    }
    printf("%d\n", n);

    /* 較高位會先列印出來,所以會顛倒 */
    getch();
}


[資料結構] - 十進位轉換成八進位(遞迴)

/* octrecu.c */
main(){
    void    oct(int);
    int        n;
    printf("Enter an integer: ");
    scanf("%d", &n);
    oct(n);                /* 呼叫遞迴函數 */
}


void oct(i){
    if( i < 8 ){
        printf("%d", i);
        getch();
    }else{
        oct(i/8);
        printf("%d", i%8);
        getch();
    }
}


FreeBSD線上學習資源

儘管目前使用 Ubuntu 做為我的桌面系統環境,網管的作業系統中,FreeBSD 還是我的最愛!!也推薦大家試試這個超棒的系統。

Ubuntu 安裝 Webmin

2010年7月15日 星期四

下載 webmin-x-x.deb

安裝webmin 必需的套件
sudo apt-get install apt-show-versions libapt-pkg-perl libio-pty-perl libauthen-pam-perl libnet-ssleay-perl libpam-runtime openssl perl perl-modules

手動安裝 webmin-x-x.deb

開啟瀏覽器,連線至 https://該台主機ip:10000/

轉貼 - URL, URN, URI 與 PURL

2010年6月17日 星期四

轉貼自 E-Office學園的文章

[ssh] 如果指定 ssh 的 port 和 username

2010年4月29日 星期四

由 A主機透過 ssh 連線至 B主機,預設的 port 是走 port 22,直接以目前A主機的帳號為 ssh 的登入帳號。

由於預設值是無法變更帳號,所以可以利用 .ssh/config 這個檔案來指定 ssh 登入遠端 ssh server 的port 和登入帳號。例:
Host *.tpc.edu.tw
User myadmin
Port 2288

Host mail
User mailadmin
Port 2288





putty color scheme

2010年4月10日 星期六

two putty color scheme: light, desert

light
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\igvita-light]
"Present"=dword:00000001
"HostName"=""
"LogFileName"="putty.log"
"LogType"=dword:00000000
"LogFileClash"=dword:ffffffff
"LogFlush"=dword:00000001
"SSHLogOmitPasswords"=dword:00000001
"SSHLogOmitData"=dword:00000000
"Protocol"="ssh"
"PortNumber"=dword:00000016
"CloseOnExit"=dword:00000001
"WarnOnClose"=dword:00000001
"PingInterval"=dword:00000000
"PingIntervalSecs"=dword:00000000
"TCPNoDelay"=dword:00000001
"TCPKeepalives"=dword:00000000
"TerminalType"="xterm"
"TerminalSpeed"="38400,38400"
"TerminalModes"="INTR=A,QUIT=A,ERASE=A,KILL=A,EOF=A,EOL=A,EOL2=A,START=A,STOP=A,SUSP=A,DSUSP=A,REPRINT=A,WERASE=A,LNEXT=A,FLUSH=A,SWTCH=A,STATUS=A,DISCARD=A,IGNPAR=A,PARMRK=A,INPCK=A,ISTRIP=A,INLCR=A,IGNCR=A,ICRNL=A,IUCLC=A,IXON=A,IXANY=A,IXOFF=A,IMAXBEL=A,ISIG=A,ICANON=A,XCASE=A,ECHO=A,ECHOE=A,ECHOK=A,ECHONL=A,NOFLSH=A,TOSTOP=A,IEXTEN=A,ECHOCTL=A,ECHOKE=A,PENDIN=A,OPOST=A,OLCUC=A,ONLCR=A,OCRNL=A,ONOCR=A,ONLRET=A,CS7=A,CS8=A,PARENB=A,PARODD=A,"
"AddressFamily"=dword:00000000
"ProxyExcludeList"=""
"ProxyDNS"=dword:00000001
"ProxyLocalhost"=dword:00000000
"ProxyMethod"=dword:00000000
"ProxyHost"="proxy"
"ProxyPort"=dword:00000050
"ProxyUsername"=""
"ProxyPassword"=""
"ProxyTelnetCommand"="connect %host %port\\n"
"Environment"=""
"UserName"=""
"LocalUserName"=""
"NoPTY"=dword:00000000
"Compression"=dword:00000000
"TryAgent"=dword:00000001
"AgentFwd"=dword:00000000
"ChangeUsername"=dword:00000000
"Cipher"="aes,blowfish,3des,WARN,arcfour,des"
"KEX"="dh-gex-sha1,dh-group14-sha1,dh-group1-sha1,WARN"
"RekeyTime"=dword:0000003c
"RekeyBytes"="1G"
"SshNoAuth"=dword:00000000
"AuthTIS"=dword:00000000
"AuthKI"=dword:00000001
"SshNoShell"=dword:00000000
"SshProt"=dword:00000002
"SSH2DES"=dword:00000000
"PublicKeyFile"=""
"RemoteCommand"=""
"RFCEnviron"=dword:00000000
"PassiveTelnet"=dword:00000000
"BackspaceIsDelete"=dword:00000001
"RXVTHomeEnd"=dword:00000000
"LinuxFunctionKeys"=dword:00000000
"NoApplicationKeys"=dword:00000000
"NoApplicationCursors"=dword:00000000
"NoMouseReporting"=dword:00000000
"NoRemoteResize"=dword:00000000
"NoAltScreen"=dword:00000000
"NoRemoteWinTitle"=dword:00000000
"RemoteQTitleAction"=dword:00000001
"NoDBackspace"=dword:00000000
"NoRemoteCharset"=dword:00000000
"ApplicationCursorKeys"=dword:00000000
"ApplicationKeypad"=dword:00000000
"NetHackKeypad"=dword:00000000
"StorageType"=dword:00000000
"Tray"=dword:00000001
"StartTray"=dword:00000000
"TrayRestore"=dword:00000000
"WakeupReconnect"=dword:00000000
"FailureReconnect"=dword:00000000
"Transparency"=dword:000000ff
"WindowIcon"=""
"AltF4"=dword:00000001
"AltSpace"=dword:00000000
"AltOnly"=dword:00000000
"ComposeKey"=dword:00000000
"CtrlAltKeys"=dword:00000001
"TelnetKey"=dword:00000000
"TelnetRet"=dword:00000001
"LocalEcho"=dword:00000002
"LocalEdit"=dword:00000002
"Answerback"="PuTTY"
"AlwaysOnTop"=dword:00000000
"FullScreenOnAltEnter"=dword:00000000
"HideMousePtr"=dword:00000000
"SunkenEdge"=dword:00000000
"WindowBorder"=dword:00000001
"CurType"=dword:00000000
"BlinkCur"=dword:00000000
"Beep"=dword:00000001
"BeepInd"=dword:00000000
"BellWaveFile"=""
"BellOverload"=dword:00000001
"BellOverloadN"=dword:00000005
"BellOverloadT"=dword:000007d0
"BellOverloadS"=dword:00001388
"ScrollbackLines"=dword:000003e8
"DECOriginMode"=dword:00000000
"AutoWrapMode"=dword:00000001
"LFImpliesCR"=dword:00000000
"DisableArabicShaping"=dword:00000000
"DisableBidi"=dword:00000000
"WinNameAlways"=dword:00000001
"WinTitle"="root@localhost:/bin"
"TermWidth"=dword:0000003e
"TermHeight"=dword:0000000a
"Font"="Consolas"
"FontIsBold"=dword:00000000
"FontCharSet"=dword:00000000
"FontHeight"=dword:0000000a
"FontQuality"=dword:00000003
"FontVTMode"=dword:00000004
"UseSystemColours"=dword:00000000
"TryPalette"=dword:00000000
"ANSIColour"=dword:00000001
"Xterm256Colour"=dword:00000001
"BoldAsColour"=dword:00000001
"Colour0"="187,187,187"
"Colour1"="255,255,255"
"Colour2"="0,0,0"
"Colour3"="85,85,85"
"Colour4"="0,0,0"
"Colour5"="0,255,0"
"Colour6"="0,0,0"
"Colour7"="85,85,85"
"Colour8"="187,0,0"
"Colour9"="255,85,85"
"Colour10"="152,251,152"
"Colour11"="85,255,85"
"Colour12"="187,187,0"
"Colour13"="255,255,85"
"Colour14"="3,92,190"
"Colour15"="85,85,255"
"Colour16"="187,0,187"
"Colour17"="255,85,255"
"Colour18"="255,160,160"
"Colour19"="85,255,255"
"Colour20"="187,187,187"
"Colour21"="255,255,255"
"RawCNP"=dword:00000000
"PasteRTF"=dword:00000000
"MouseIsXterm"=dword:00000000
"RectSelect"=dword:00000000
"MouseOverride"=dword:00000001
"Wordness0"="0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
"Wordness32"="0,1,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1"
"Wordness64"="1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,2"
"Wordness96"="1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1"
"Wordness128"="1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"
"Wordness160"="1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"
"Wordness192"="2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2"
"Wordness224"="2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2"
"LineCodePage"="ISO-8859-1:1998 (Latin-1, West Europe)"
"CJKAmbigWide"=dword:00000000
"UTF8Override"=dword:00000001
"Printer"=""
"CapsLockCyr"=dword:00000000
"ScrollBar"=dword:00000001
"ScrollBarFullScreen"=dword:00000000
"ScrollOnKey"=dword:00000000
"ScrollOnDisp"=dword:00000001
"EraseToScrollback"=dword:00000001
"LockSize"=dword:00000000
"BCE"=dword:00000001
"BlinkText"=dword:00000000
"X11Forward"=dword:00000000
"X11Display"=""
"X11AuthType"=dword:00000001
"LocalPortAcceptAll"=dword:00000000
"RemotePortAcceptAll"=dword:00000000
"PortForwardings"=""
"BugIgnore1"=dword:00000000
"BugPlainPW1"=dword:00000000
"BugRSA1"=dword:00000000
"BugHMAC2"=dword:00000000
"BugDeriveKey2"=dword:00000000
"BugRSAPad2"=dword:00000000
"BugPKSessID2"=dword:00000000
"BugRekey2"=dword:00000000
"StampUtmp"=dword:00000001
"LoginShell"=dword:00000001
"ScrollbarOnLeft"=dword:00000000
"BoldFont"=""
"BoldFontIsBold"=dword:00469bac
"BoldFontCharSet"=dword:00487a08
"BoldFontHeight"=dword:00000001
"WideFont"=""
"WideFontIsBold"=dword:00487a0c
"WideFontCharSet"=dword:00469bac
"WideFontHeight"=dword:00000000
"WideBoldFont"=""
"WideBoldFontIsBold"=dword:00469b9c
"WideBoldFontCharSet"=dword:00487a0c
"WideBoldFontHeight"=dword:00000000
"ShadowBold"=dword:00000000
"ShadowBoldOffset"=dword:00000001
"SerialLine"="COM1"
"SerialSpeed"=dword:00002580
"SerialDataBits"=dword:00000008
"SerialStopHalfbits"=dword:00000002
"SerialParity"=dword:00000000
"SerialFlowControl"=dword:00000001
"HyperlinkUnderline"=dword:00000001
"HyperlinkUseCtrlClick"=dword:00000000
"HyperlinkBrowserUseDefault"=dword:00000001
"HyperlinkBrowser"=""
"HyperlinkRegularExpressionUseDefault"=dword:00000001
"HyperlinkRegularExpression"="(((https?|ftp):\\/\\/)|www\\.)(([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)|localhost|([a-zA-Z0-9\\-]+\\.)*[a-zA-Z0-9\\-]+\\.(com|net|org|info|biz|gov|name|edu|[a-zA-Z][a-zA-Z]))(:[0-9]+)?((\\/|\\?)[^ \"]*[^ ,;\\.:\">)])?"



desert
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions\igvita-desert]
"Present"=dword:00000001
"HostName"="192.168.171.128"
"LogFileName"="putty.log"
"LogType"=dword:00000000
"LogFileClash"=dword:ffffffff
"LogFlush"=dword:00000001
"SSHLogOmitPasswords"=dword:00000001
"SSHLogOmitData"=dword:00000000
"Protocol"="ssh"
"PortNumber"=dword:00000016
"CloseOnExit"=dword:00000001
"WarnOnClose"=dword:00000001
"PingInterval"=dword:00000003
"PingIntervalSecs"=dword:00000000
"TCPNoDelay"=dword:00000001
"TCPKeepalives"=dword:00000000
"TerminalType"="xterm"
"TerminalSpeed"="38400,38400"
"TerminalModes"="INTR=A,QUIT=A,ERASE=A,KILL=A,EOF=A,EOL=A,EOL2=A,START=A,STOP=A,SUSP=A,DSUSP=A,REPRINT=A,WERASE=A,LNEXT=A,FLUSH=A,SWTCH=A,STATUS=A,DISCARD=A,IGNPAR=A,PARMRK=A,INPCK=A,ISTRIP=A,INLCR=A,IGNCR=A,ICRNL=A,IUCLC=A,IXON=A,IXANY=A,IXOFF=A,IMAXBEL=A,ISIG=A,ICANON=A,XCASE=A,ECHO=A,ECHOE=A,ECHOK=A,ECHONL=A,NOFLSH=A,TOSTOP=A,IEXTEN=A,ECHOCTL=A,ECHOKE=A,PENDIN=A,OPOST=A,OLCUC=A,ONLCR=A,OCRNL=A,ONOCR=A,ONLRET=A,CS7=A,CS8=A,PARENB=A,PARODD=A,"
"AddressFamily"=dword:00000000
"ProxyExcludeList"=""
"ProxyDNS"=dword:00000001
"ProxyLocalhost"=dword:00000000
"ProxyMethod"=dword:00000000
"ProxyHost"="proxy"
"ProxyPort"=dword:00000050
"ProxyUsername"=""
"ProxyPassword"=""
"ProxyTelnetCommand"="connect %host %port\\n"
"Environment"=""
"UserName"=""
"LocalUserName"=""
"NoPTY"=dword:00000000
"Compression"=dword:00000000
"TryAgent"=dword:00000001
"AgentFwd"=dword:00000000
"ChangeUsername"=dword:00000000
"Cipher"="aes,blowfish,3des,WARN,des,arcfour"
"KEX"="dh-gex-sha1,dh-group14-sha1,dh-group1-sha1,WARN"
"RekeyTime"=dword:0000003c
"RekeyBytes"="1G"
"SshNoAuth"=dword:00000000
"AuthTIS"=dword:00000000
"AuthKI"=dword:00000001
"SshNoShell"=dword:00000000
"SshProt"=dword:00000002
"SSH2DES"=dword:00000000
"PublicKeyFile"=""
"RemoteCommand"=""
"RFCEnviron"=dword:00000000
"PassiveTelnet"=dword:00000000
"BackspaceIsDelete"=dword:00000001
"RXVTHomeEnd"=dword:00000000
"LinuxFunctionKeys"=dword:00000000
"NoApplicationKeys"=dword:00000000
"NoApplicationCursors"=dword:00000000
"NoMouseReporting"=dword:00000000
"NoRemoteResize"=dword:00000000
"NoAltScreen"=dword:00000000
"NoRemoteWinTitle"=dword:00000000
"RemoteQTitleAction"=dword:00000001
"NoDBackspace"=dword:00000000
"NoRemoteCharset"=dword:00000000
"ApplicationCursorKeys"=dword:00000000
"ApplicationKeypad"=dword:00000000
"NetHackKeypad"=dword:00000000
"StorageType"=dword:00000000
"Tray"=dword:00000001
"StartTray"=dword:00000000
"TrayRestore"=dword:00000001
"WakeupReconnect"=dword:00000001
"FailureReconnect"=dword:00000001
"Transparency"=dword:000000ff
"WindowIcon"=""
"AltF4"=dword:00000001
"AltSpace"=dword:00000000
"AltOnly"=dword:00000000
"ComposeKey"=dword:00000000
"CtrlAltKeys"=dword:00000001
"TelnetKey"=dword:00000000
"TelnetRet"=dword:00000001
"LocalEcho"=dword:00000002
"LocalEdit"=dword:00000002
"Answerback"="PuTTY"
"AlwaysOnTop"=dword:00000000
"FullScreenOnAltEnter"=dword:00000000
"HideMousePtr"=dword:00000000
"SunkenEdge"=dword:00000000
"WindowBorder"=dword:00000001
"CurType"=dword:00000000
"BlinkCur"=dword:00000000
"Beep"=dword:00000001
"BeepInd"=dword:00000000
"BellWaveFile"=""
"BellOverload"=dword:00000001
"BellOverloadN"=dword:00000005
"BellOverloadT"=dword:000007d0
"BellOverloadS"=dword:00001388
"ScrollbackLines"=dword:000000c8
"DECOriginMode"=dword:00000000
"AutoWrapMode"=dword:00000001
"LFImpliesCR"=dword:00000000
"DisableArabicShaping"=dword:00000000
"DisableBidi"=dword:00000000
"WinNameAlways"=dword:00000001
"WinTitle"="root@localhost:/svn/applications/discovery"
"TermWidth"=dword:0000003e
"TermHeight"=dword:0000000b
"Font"="Consolas"
"FontIsBold"=dword:00000000
"FontCharSet"=dword:00000000
"FontHeight"=dword:00000009
"FontQuality"=dword:00000003
"FontVTMode"=dword:00000004
"UseSystemColours"=dword:00000000
"TryPalette"=dword:00000000
"ANSIColour"=dword:00000001
"Xterm256Colour"=dword:00000001
"BoldAsColour"=dword:00000001
"Colour0"="255,255,255"
"Colour1"="255,255,255"
"Colour2"="51,51,51"
"Colour3"="85,85,85"
"Colour4"="0,0,0"
"Colour5"="0,255,0"
"Colour6"="77,77,77"
"Colour7"="85,85,85"
"Colour8"="255,43,43"
"Colour9"="255,85,85"
"Colour10"="152,251,152"
"Colour11"="85,255,85"
"Colour12"="240,230,140"
"Colour13"="255,255,85"
"Colour14"="205,133,63"
"Colour15"="135,206,235"
"Colour16"="255,222,173"
"Colour17"="255,85,255"
"Colour18"="255,160,160"
"Colour19"="255,215,0"
"Colour20"="245,222,179"
"Colour21"="255,255,255"
"RawCNP"=dword:00000000
"PasteRTF"=dword:00000000
"MouseIsXterm"=dword:00000000
"RectSelect"=dword:00000000
"MouseOverride"=dword:00000001
"Wordness0"="0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"
"Wordness32"="0,1,2,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1,1"
"Wordness64"="1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,2"
"Wordness96"="1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,1,1,1,1"
"Wordness128"="1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"
"Wordness160"="1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"
"Wordness192"="2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2"
"Wordness224"="2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,1,2,2,2,2,2,2,2,2"
"LineCodePage"="ISO-8859-1:1998 (Latin-1, West Europe)"
"CJKAmbigWide"=dword:00000000
"UTF8Override"=dword:00000001
"Printer"=""
"CapsLockCyr"=dword:00000000
"ScrollBar"=dword:00000001
"ScrollBarFullScreen"=dword:00000000
"ScrollOnKey"=dword:00000000
"ScrollOnDisp"=dword:00000001
"EraseToScrollback"=dword:00000001
"LockSize"=dword:00000000
"BCE"=dword:00000001
"BlinkText"=dword:00000000
"X11Forward"=dword:00000000
"X11Display"=""
"X11AuthType"=dword:00000001
"LocalPortAcceptAll"=dword:00000000
"RemotePortAcceptAll"=dword:00000000
"PortForwardings"=""
"BugIgnore1"=dword:00000000
"BugPlainPW1"=dword:00000000
"BugRSA1"=dword:00000000
"BugHMAC2"=dword:00000000
"BugDeriveKey2"=dword:00000000
"BugRSAPad2"=dword:00000000
"BugPKSessID2"=dword:00000000
"BugRekey2"=dword:00000000
"StampUtmp"=dword:00000001
"LoginShell"=dword:00000001
"ScrollbarOnLeft"=dword:00000000
"BoldFont"=""
"BoldFontIsBold"=dword:0040bd58
"BoldFontCharSet"=dword:00468334
"BoldFontHeight"=dword:0012ffb0
"WideFont"=""
"WideFontIsBold"=dword:c1b51467
"WideFontCharSet"=dword:0040bd58
"WideFontHeight"=dword:0012ea24
"WideBoldFont"=""
"WideBoldFontIsBold"=dword:00000000
"WideBoldFontCharSet"=dword:c1b51467
"WideBoldFontHeight"=dword:0000000a
"ShadowBold"=dword:00000000
"ShadowBoldOffset"=dword:00000001
"SerialLine"="COM1"
"SerialSpeed"=dword:00002580
"SerialDataBits"=dword:00000008
"SerialStopHalfbits"=dword:00000002
"SerialParity"=dword:00000000
"SerialFlowControl"=dword:00000001
"HyperlinkUnderline"=dword:00000001
"HyperlinkUseCtrlClick"=dword:00000001
"HyperlinkBrowserUseDefault"=dword:00000001
"HyperlinkBrowser"=""
"HyperlinkRegularExpressionUseDefault"=dword:00000001
"HyperlinkRegularExpression"="(((https?|ftp):\\/\\/)|www\\.)(([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)|localhost|([a-zA-Z0-9\\-]+\\.)*[a-zA-Z0-9\\-]+\\.(com|net|org|info|biz|gov|name|edu|[a-zA-Z][a-zA-Z]))(:[0-9]+)?((\\/|\\?)[^ \"]*[^ ,;\\.:\">)])?"

Ubuntu 安裝Chromium

2010年4月6日 星期二

以下操作以Ubuntu 9.10環境為主,如果使用 9.04或其它版本的話,請將步驟1內的紅色文字以符合版本的CodeName來代替:

1. 將下列套件庫加入 /etc/apt/source.list
sudo echo "deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main" >> /etc/apt/source.list
2. 加入GPG金鑰
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xfbef0d696de1c72ba5a835fe5a9bf3bb4e5e17b5
3.更新套件庫
sudo apt-get update
4.安裝Chromium
sudo apt-get install chromium-browser









[網管教程] 大綱準備中

2010年3月29日 星期一

最近突然覺得單位網管能力有急速下降的趨勢,這似乎是一件令人十分擔憂的現象,小弟的能力雖然不足,不過,準備一下大綱應該還可以,希望內容也能夠逐步來完善它。

一、伺服器系統安裝
  1. FreeBSD
  2. Ubuntu Server
  3. Windows Server 2003(2008) x32(x64) (R2)
二、各項服務架設
  1. DNS - Bind
  2. MAIL - Postfix
  3. WEB - Apache
  4. DHCP
  5. MRTG
  6. Database - MySQL
三、虛擬化系統環境
  1. VMWare Server (VirtualBox)
  2. VMWare ESXi 4 (vShere)
  3. XEN 5.5
  4. Microsoft Hyper-V
四、雜項
  1. i-Chip 主機管理
  2. putty 操作(ssh client)
  3. vi 文字編輯器
  4. 其它常用命令列指令
  • find, locate, whereis
  • df, du
  • /etc/init.d/ (linux) , /etc/rc.d (freebsd)


[網管] 利用 nmap 取得各個機器的 ip 及網卡號碼

2010年2月24日 星期三

1. 先安裝 nmap 工具
sudo apt-get install nmap

2. 以root 權限執行下列指令 (紅色部分請依自己的網路情況調整)
sudo nmap -v -sP 10.xxx.141.0/24 |grep -v "down"
如果希望每次執行完的結果存成不同檔案,可以把步驟2修改如下:
nmap -v -sP 10.xxx.141.0/24 |grep -v "down" > ~/mylan_`date +%Y%m%d%H%M%S`.txt
上列指令會將結果存至家目錄。