In csh:
command > stdout.txt
command 2>&1 stdout_and_stderr.txt
參考 http://www.faqs.org/faqs/unix-faq/faq/part2/section-9.html
2011年11月3日 星期四
紙模型 F-14 Tomcat black night (真的可以飛)
這次做的過程忘了照相,大約花了四天,時數估計有10小時。
遠看還可以。
近看慘不忍睹。
試飛成功
Download link:
http://www.geocities.jp/ojimak_01/images/f14blackknights1_ver02.pdf (password: ojimak)
http://www.geocities.jp/ojimak_01/images/mkf14b01b.pdf
遠看還可以。
近看慘不忍睹。
試飛成功
Download link:
http://www.geocities.jp/ojimak_01/images/f14blackknights1_ver02.pdf (password: ojimak)
http://www.geocities.jp/ojimak_01/images/mkf14b01b.pdf
2011年10月31日 星期一
(輕微)痔瘡紀錄2011/10/30
症狀:
剛開始的前幾天感覺肛門口有異物感,洗澡時發現肛門口有一點點肉跑出來。
以前發生過痔瘡,去看中醫是說火氣大,開清瀉的藥給我,但是感覺效果不大。後來在網路上查到西瓜可以降火氣,所以夏天我都一直吃西瓜,痔瘡就沒再發作。
(參考 http://www.ge.net.tw/?q=node/2058)
最近已經到秋季了,西瓜比較不容易買到,有一陣子沒吃西瓜,所以痔瘡又來了。
這次查到一個偏方的網頁 (http://www.relativehumanity.com.tw/web/cm/cm2.htm),裡面有提到 "痔" 的療法,我試用生吃小黃瓜的方法,果然非常有效,隔天那一團小肉就縮回去了。
(參考 http://www.relativehumanity.com.tw/web/cm/cm2.htm#153)
剛開始的前幾天感覺肛門口有異物感,洗澡時發現肛門口有一點點肉跑出來。
以前發生過痔瘡,去看中醫是說火氣大,開清瀉的藥給我,但是感覺效果不大。後來在網路上查到西瓜可以降火氣,所以夏天我都一直吃西瓜,痔瘡就沒再發作。
(參考 http://www.ge.net.tw/?q=node/2058)
最近已經到秋季了,西瓜比較不容易買到,有一陣子沒吃西瓜,所以痔瘡又來了。
這次查到一個偏方的網頁 (http://www.relativehumanity.com.tw/web/cm/cm2.htm),裡面有提到 "痔" 的療法,我試用生吃小黃瓜的方法,果然非常有效,隔天那一團小肉就縮回去了。
(參考 http://www.relativehumanity.com.tw/web/cm/cm2.htm#153)
2011年10月28日 星期五
Linux tar file unzip (gz, bz2)
file type: *.tar.gz, *.tgz
unzip command: tar zxvf *.tar.gz
file type: *.tar.bz2
unzip command: tar jxvf *.tar.bz2
unzip command: tar zxvf *.tar.gz
file type: *.tar.bz2
unzip command: tar jxvf *.tar.bz2
Limit Linux user login 限制使用者登入
參考 http://www.360doc.com/content/10/0119/10/146562_13977302.shtml
限制只能讓特定 group (Ex: mis wheel shutdown sync) 登入 Linux。
步驟:
限制只能讓特定 group (Ex: mis wheel shutdown sync) 登入 Linux。
步驟:
- 修改 /etc/pam.d/system-auth,加入
- account required /lib/security/$ISA/pam_access.so # for CentOS 4
- account required pam_access.so # for CentOS 5, CentOS 6
- 修改 /etc/pam.d/password-auth,加入
- account required pam_access.so # for CentOS 6
- 修改 /etc/security/access.conf,加入 -:ALL EXCEPT mis wheel shutdown sync:ALL
如果是Solaris,在 /etc 底下建一個 nologin 的檔案就可以了。
2011年10月27日 星期四
Linux Rsync 設定
參考
http://kennyp.pixnet.net/blog/post/18303839
http://marcustsai.blogspot.com/2009/12/rsync-server.html
To Exclude Multiple Files and Directories
Example 1
rsync -av --exclude '*.txt' source/ destination/
Example 2
create /root/rsync.exclude as following:
*.txt
*.log
rsync -av --exclude-from '/root/rsync.exclude' source/ destination/
http://kennyp.pixnet.net/blog/post/18303839
http://marcustsai.blogspot.com/2009/12/rsync-server.html
To Exclude Multiple Files and Directories
Example 1
rsync -av --exclude '*.txt' source/ destination/
Example 2
create /root/rsync.exclude as following:
*.txt
*.log
rsync -av --exclude-from '/root/rsync.exclude' source/ destination/
訂閱:
文章 (Atom)





