從玩 Linux 開始,Debian 並非紅的第一選擇
2001 / 2002年時 紅選用了GUI親合力不錯的 Mandrake(現更名為 Mandriva) 也不是網路上常見的Redhat(或現在的 Fedora)
起初的需求是要:
1.架設 NAT Server
2.能驅動 D-link 530TX 晶片(當時能直接支援驅動這晶片的 Distribution 沒幾家哩..)
No tag for this post.Archive for the ·
· Category...
從玩 Linux 開始,Debian 並非紅的第一選擇
2001 / 2002年時 紅選用了GUI親合力不錯的 Mandrake(現更名為 Mandriva) 也不是網路上常見的Redhat(或現在的 Fedora)
起初的需求是要:
1.架設 NAT Server
2.能驅動 D-link 530TX 晶片(當時能直接支援驅動這晶片的 Distribution 沒幾家哩..)
No tag for this post.機車哩~~spider 也有這種來陰的,不照規定來的:有已寫好的 robots.txt 讓 spider 知道這兒歡不歡迎它們,但就有不看的傢伙存在
沒關係,上網 google 一下發現,還是有網友有法子可以治那些網路垃圾
有國外網友寫了這一篇資料:How to keep bad robots, spiders and web crawlers away
0.在使用這份資料之前,需先注意 apache2 是否有開啟支援 .htaccess
看 /etc/apache2/sites-available/default 設定檔,”None” 才是有開啟
AllowOverride None
More: Read the rest of this entry…
Tags: IT花了好一些時間研究 robots.txt 的寫法與設定
對於劣質的網路爬虫類(spider , BOT)實在防不勝防,想全部擋掉,但又想在 google , yahoo , MSN live 上被人找到
在未研究 robots.txt 之前,實在不是件簡單的事
導入主題~有哪些劣質的 spider 呢?google一下,發現已有 外國網友 整理
(只要複製、另存在WWW 根目錄 / robots.txt 即可跟不少 bad spiders say Goodbye 了!)
網路上有不少 robots.txt checker ,可以檢測我們寫的 robots.txt 語法是否正確,並給我們一些建議
紅使用 New Robots.txt Syntax Checker 來進行檢測
以紅為例子,在它的 input field 輸入 http://red.ns2go.com/robots.txt 即可
會逐行檢查語法,並依各個 BOT 是否能 通過(Allow) / 封鎖(Disallow) 將其標示顏色
More: Read the rest of this entry…
Tags: IT目前在網路上找到關於 awstat 的安裝,針對 Debian4.0r0 或 3.1r0 寫的說明,好像並不多
且 Debian 中的 awstat 的路徑與其他網頁中又有稍略不同,安裝時,嘗了一些些苦頭 ~"~
決定要將其寫下,不然下次要再重新找資料,把過往記憶找回~實在太難了
為了寫此操作設定,將設定好的 awstats 完整移除,再重新安裝一次,並一步步寫下,才能完整記錄過程
如有錯誤,再麻煩指正了,謝謝~
實驗環境:
Debian4.0r0 Apache2.2 awstat6.5(關鍵字的預設編碼似有錯誤的情況;若有,就參考另一篇 utf8的調校)
假定網站的 Domain 為 aaa.ns2go.com
1.install awstats package
#apt-get install awstats
2.編輯 /etc/awstats/awstats.aaa.ns2go.com.conf (將 awstats.conf 複製並重新命名為:awstats.aaa.ns2go.com.conf )
#cd /etc/awstats
#cp awstats.conf awstats.aaa.ns2go.com.conf
More: Read the rest of this entry…
Tags: awstats, debian第一次灌 Debian 時,遇到這樣的問題
檢查了設定:eth0於開機時啟動、設定檔/etc/network/interface 似乎都沒太大問題,但怎麼無法連線?
查了紅的另一台主機 對照設定發現新安裝的DNS設定寫在 /etc/network/interface 中
似乎不太對~仔細對照,果然問題出自於此
More: Read the rest of this entry…
Tags: debian其實整個設定過程不太難,了解之後再設定,一下就好了…也不會讓自家小小的ADSL 被 Search BOT spider 爬到掛
總算解決擾人許久的問題!
下方的照片,即是設定成功之後,下載檔案的測試,apache 就會將adsl 的上傳頻寬限定在 18kbps(紅設定的限定值上限) 以下,而不致於把整個頻寬吃掉
實驗環境:
Debian4.0r0
apache2-mpm-itk
1.First,install package:libapache2-mod-cband
#apt-get -i libapache2-mod-cband
安裝後,即會在 /etc/apache2/mods-available/ 目錄看見 cband module 的兩個檔案: cband.conf , cband.load
More: Read the rest of this entry…
Tags: apache2===2009.04.06 update===
這次應該是補足最後缺少的部份
自己亦從頭至尾一步步的實作,確定是可行的
對於NAT ( Ipmasq + DHCP )找了好一陣子資料 資料之亂 讓紅都不知該怎麼下手才好
經過一整天的亂測後,得到了些心得
使用 aptitude 安裝幾個重要套件
dhcp3-server
dhcp3-client
dhcp3-common
ipmasq(執行NAT的重要套件)
iptable
More: Read the rest of this entry…
Tags: debian完成系統安裝 再來就是設定網管介面
對於許多系統高手來說 可能不太用這個 Webmin 工具 不過對於整個系統設定不太熟的紅來說 卻是個好幫手
到 http://www.webmin.com 就可以下載
下載 Debian 專用的安裝包: webmin_version_all.deb
下載後,就進行安裝
More: Read the rest of this entry…
Tags: debian, webmin