xset dpms force off
2013/10/24
2013/10/23
Blogger 網址真善變
走 proxy 到 linode Tokyo 再打開部落格,原本 blogspot.com 會跳到 blogspot.jp (HTTP 302),從台灣打開卻是 blogspot.tw。
所以到底哪一個才是真的部落格網址 .....
所以到底哪一個才是真的部落格網址 .....
標籤:
生活雜記
Linux motd
覺得輸入完帳號、密碼到 prompt 出現速度實在有點太慢,檢查了 .bashrc 發現在 bash_completion 之前,還有 script 拖到時間。
每次登入都會看到這個畫面,:
除了 uptime 以外,還會有需要更新的套件數量統計,不禁懷疑是否就是統計套件更新數量在慢。
先搜尋訊息存在哪裡:
看來是跟 motd 有關。man 一下, motd 的意思是「message of a day」,而 /etc/update-motd.d 下則是用來統計系統資訊的 script。
而 update-motd.d 的 script 是否在 login 時執行還不曉得,找個時間在繼續追。
每次登入都會看到這個畫面,:
Welcome to Ubuntu 12.04.3 LTS (GNU/Linux 3.9.3-x86 i686)
* Documentation: https://help.ubuntu.com/
System information as of Wed Oct 23 09:35:28 CST 2013
System load: 0.66 Processes: 163
Usage of /: 65.8% of 46.01GB Users logged in: 0
Memory usage: 39% IP address for eth0: 127.0.0.1
Swap usage: 10%
Graph this data and manage this system at https://landscape.canonical.com/
Last login: Wed Oct 23 09:30:26 2013 from some.where.net
除了 uptime 以外,還會有需要更新的套件數量統計,不禁懷疑是否就是統計套件更新數量在慢。
先搜尋訊息存在哪裡:
$ grep -s -r "System information" /etc
motd: System information as of Wed Oct 23 09:35:28 CST 2013
update-motd.d/50-landscape-sysinfo: echo -n " System information as of "
update-motd.d/50-landscape-sysinfo: echo " System information disabled due to load higher than $threshold"
看來是跟 motd 有關。man 一下, motd 的意思是「message of a day」,而 /etc/update-motd.d 下則是用來統計系統資訊的 script。
而 update-motd.d 的 script 是否在 login 時執行還不曉得,找個時間在繼續追。
標籤:
Linux
2013/10/19
AVG Anitvirus on Linux
Download deb package from official website:
http://free.avg.com/us-en/download.prd-alf
install it:
update before scanning:
setup real-time protection (support only special version of Linux kernel):
Scan whole system:
http://free.avg.com/us-en/download.prd-alf
install it:
$ sudo dpkg avg2013flx-r3115-a6155.i386.deb
update before scanning:
$ sudo avgupdate
setup real-time protection (support only special version of Linux kernel):
$ sudo avgsetup
Scan whole system:
$ sudo avgscan /
標籤:
Linux
網域名稱註冊
想從 GoDaddy 跳槽,開始尋覓新家。
之前註冊 GoDaddy 網域,主要是因為 .us 很便宜,但其實也只有便宜在第一次購買,要續約時價格就沒有這麼人性了。現在打算買個稍微正式的網域名稱,順便把部落格網址也搬過去。
以為尋找替代方案很麻煩,沒想到去爸爸把事情鬧那麼大,現在搜尋「leave godaddy」,教學多到看不完,連如何 transfer domain 都有。
幾個正在考慮的網域這次服務:
其中只有 name.com 註冊 .tw 網域的收費最便宜,讓我手癢。
之前註冊 GoDaddy 網域,主要是因為 .us 很便宜,但其實也只有便宜在第一次購買,要續約時價格就沒有這麼人性了。現在打算買個稍微正式的網域名稱,順便把部落格網址也搬過去。
以為尋找替代方案很麻煩,沒想到去爸爸把事情鬧那麼大,現在搜尋「leave godaddy」,教學多到看不完,連如何 transfer domain 都有。
幾個正在考慮的網域這次服務:
其中只有 name.com 註冊 .tw 網域的收費最便宜,讓我手癢。
2013/10/08
Nginx 將 HTTP 轉向 HTTPS
看了「Switch to HTTPS Now, For Free」後,到 StartSSL 將手上幾個常用的網域都申請了 SSL 憑證。
SSL 憑證上線使用後,再來就讓任何 HTTP 連線都可以導到 HTTPS。
或者要將網址後半部的參數一起轉過去:
note: 「permanent」會發送 HTTP 301
Ref:
Nginx HttpRewriteModule
http://wiki.nginx.org/HttpRewriteModule
SSL 憑證上線使用後,再來就讓任何 HTTP 連線都可以導到 HTTPS。
server {
location / {
# rewrite ^ https://my.url;
rewrite ^ https://$server_name permanent;
}
}
或者要將網址後半部的參數一起轉過去:
location {
rewrite ^ https://$server_name$request_uri permanent;
}
note: 「permanent」會發送 HTTP 301
Ref:
Nginx HttpRewriteModule
http://wiki.nginx.org/HttpRewriteModule
標籤:
Nginx
訂閱:
文章 (Atom)