from 強者我同學 ShinHsin
--------------------------
壓縮時排除某些檔案
--exclude FILE 打包時,排除指定的檔案
-X, --exclude-from FILE 讀取指定檔案(文字檔案),作為排除打包的檔案表列依據。
法1: 只排除單個目錄
tar -cvzf 檔名.tar.gz 要壓的東西 --exclude 排除目錄名
法2:排除多個目錄可建立一個文字檔excludelist,將要排除的目錄全寫在裡面
tar -cvzf 檔名.tar.gz 要壓的東西 -X excludelistortar -cvzf 檔名.tar.gz 要壓的東西 --exclude-from excludelist
--------------------------
用tar建立含日期為檔名的壓縮檔
tar cvzf ~/backup/mybackup`date +%Y-%m-%d`.tar.gz ~/fileToBackup
2008年10月20日 星期一
2008年10月17日 星期五
freenx server - timeout
權限問題:
freeNX會需要將資料導到/dev/urandom和/dev/null上,如果您的client曾經出現 Authorication failure或Connection timeout的問題,就是這兩個device檔案權限沒設好 ,
請確定他們在0666上。
來源:
http://moto.debian.org.tw/viewtopic.php?p=37478
freeNX會需要將資料導到/dev/urandom和/dev/null上,如果您的client曾經出現 Authorication failure或Connection timeout的問題,就是這兩個device檔案權限沒設好 ,
請確定他們在0666上。
來源:
http://moto.debian.org.tw/viewtopic.php?p=37478
2008年10月6日 星期一
madwifi - VAPs
VAP = Virtual AP
就是虛擬裝置
可以把一張網卡模擬成很多張 (最多四個!? 不確定)
http://madwifi.org/users-guide/node14.html
裡面就有很多範例
1.
Example:If we wish to use the system as a station only, we would create a single station VAP once the driver is loaded. The following command creates a single station VAP named ath0 on device wifi0:
2.
Example:Now, we wish to create two AP VAPs on device wifi0. Both devices will have a the same MAC address cloned from the underlying device. The first VAP will be ath0 and the second VAP will be ath1.
3.
Example:Now, we wish to create two AP VAPs and one station VAP. The AP VAPs will be ath0 and ath2 and the station VAP will be ath1.
4.
Example:Now, we wish to destroy a VAP (regardless of its operating mode). We assume that there is a VAP named ath0, and it's the one we wish to destroy.
第三個範例 就打
wlanconfig ath create wlandev wifi0 wlanmode ap
wlanconfig ath create wlandev wifi0 wlanmode sta nosbeacon
wlanconfig ath create wlandev wifi0 wlanmode ap
--------------------------------------------------
也可以模仿meraki 兩個master 一個managed 一個monitor
wlanconfig ath create wlandev wifi0 wlanmode ap -bssid
wlanconfig ath create wlandev wifi0 wlanmode sta nosbeacon
wlanconfig ath create wlandev wifi0 wlanmode monitor
wlanconfig ath create wlandev wifi0 wlanmode ap -bssid
--
不過VAP好像不能用 adhoc !?!?
就是虛擬裝置
可以把一張網卡模擬成很多張 (最多四個!? 不確定)
http://madwifi.org/users-guide/node14.html
裡面就有很多範例
1.
Example:If we wish to use the system as a station only, we would create a single station VAP once the driver is loaded. The following command creates a single station VAP named ath0 on device wifi0:
2.
Example:Now, we wish to create two AP VAPs on device wifi0. Both devices will have a the same MAC address cloned from the underlying device. The first VAP will be ath0 and the second VAP will be ath1.
3.
Example:Now, we wish to create two AP VAPs and one station VAP. The AP VAPs will be ath0 and ath2 and the station VAP will be ath1.
4.
Example:Now, we wish to destroy a VAP (regardless of its operating mode). We assume that there is a VAP named ath0, and it's the one we wish to destroy.
第三個範例 就打
wlanconfig ath create wlandev wifi0 wlanmode ap
wlanconfig ath create wlandev wifi0 wlanmode sta nosbeacon
wlanconfig ath create wlandev wifi0 wlanmode ap
--------------------------------------------------
也可以模仿meraki 兩個master 一個managed 一個monitor
wlanconfig ath create wlandev wifi0 wlanmode ap -bssid
wlanconfig ath create wlandev wifi0 wlanmode sta nosbeacon
wlanconfig ath create wlandev wifi0 wlanmode monitor
wlanconfig ath create wlandev wifi0 wlanmode ap -bssid
--
不過VAP好像不能用 adhoc !?!?
2008年10月5日 星期日
redhat 9 & apt-get
http://www.cyut.edu.tw/~jengru/redhat/apt_server.html
線上安裝:
rpm -ivh http://ftp.freshrpms.net/pub/freshrpms/redhat/9/apt/apt-0.5.5cnc6-fr1.i386.rpm
import key:
rpm --import http://ftp.freshrpms.net/pub/freshrpms/RPM-GPG-KEY
--
不過好像沒辦法更新了 囧~~~~~
2008年10月4日 星期六
ssh 登入緩慢的問題
http://blog.taiwanpage.com.tw/rssview.html?id=3183 在這邊看到
原來是反查的問題 囧
去修改 /etc/ssh/sshd_config
把UseDNS設為no
接著重新啟動sshd
這樣就解決了 XD
原來是反查的問題 囧
去修改 /etc/ssh/sshd_config
把UseDNS設為no
接著重新啟動sshd
這樣就解決了 XD
訂閱:
文章 (Atom)