<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.9.2" -->
<rss version="0.92">
<channel>
	<title>聚沙成塔</title>
	<link>http://www.arule.net</link>
	<description>養貓的陌生人筆記本</description>
	<lastBuildDate>Tue, 09 Nov 2010 17:11:51 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Windows 2003 DHCP 快速鎖定大量 Mac Address</title>
		<description><![CDATA[以往要綁定 DHCP 總是要一筆一筆輸入    公司電腦又一天比一天多，實在麻煩了，&#124;     因此想快速完成這件事。     以下是我起心動念之後開始的步驟：     
1. 先利用2003本身的管理介面，導出現有的 DHCP 列表，把第一行中文字給刪除。
2. 將這個文件用 awk 重新整理一下

cat DHCP.txt &#124;awk -F\t '{print $1,$5,$2}'

會得出一個這樣的結果：    
 192.168.x.101 001xx09689f0 mis 

3. 查詢一下 netsh 的指令，得知綁定 DHCP 的完整命令為

 netsh dhcp server 192.168.x.1 scope 192.168.x.0 add reservedip 192.168.x.101 [...]]]></description>
		<link>http://www.arule.net/2009/08/26/windows-2003-dhcp-%e5%bf%ab%e9%80%9f%e9%8e%96%e5%ae%9a%e5%a4%a7%e9%87%8f-mac-address/</link>
			</item>
	<item>
		<title>cron.d 資料夾</title>
		<description><![CDATA[為了讓系統能夠更自動化，   我發現了CentOS /etc 目錄下，    分別有 cron.daily cron.horly 等資料夾，    分別是作業系統預設一定會去找的工作，    然後又發現了一個叫cron.d的資料夾，    底下可以設定一個檔案自動排程的時間，    這樣的話就可以自訂時間而不需使用 crontab -e 來編輯排程了.
然而卻碰到了問題，時間到了卻沒有執行&#8230;   查看log發現了這樣的訊息：
(*system*) BAD FILE MODE   經過查詢需要更改權限&#8230;    chmod 0600 /etc/cron.d/*
改了權限後，錯誤訊息沒有了，但仍然不會執行，   參考/etc/crontab 文件後，    增加一個使用者身份如下，就成功了。
00 [...]]]></description>
		<link>http://www.arule.net/2009/08/25/cron-d-%e8%b3%87%e6%96%99%e5%a4%be/</link>
			</item>
	<item>
		<title>Could not load all ISAPI filters for site/service</title>
		<description><![CDATA[事發原因都是因為 Vista 64 的印表機驅動有問題。
原本用公司配給我的 PC 灌 Windows 2008&#160; x64 來分享一台 HP1505n，   沒想到會出現部份檔案可以印，部份檔案不能印的問題，    於是就想用另一台 Sever 2003 WSUS x64 來分享看看，
裝好印表機之後，很遺憾實驗失敗了，情況沒改善而且 WSUS 也掛了&#8230;   看事件檢視器真是一片狼藉啊&#8230;
&#160;&#160;&#160; Could not load all ISAPI filters for site/service
&#160;&#160;&#160; Application pool &#8216;DefaultAppPool&#8217; is being automatically disabled due to a series of failures in the process(es) serving that application [...]]]></description>
		<link>http://www.arule.net/2009/05/13/could-not-load-all-isapi-filters-for-siteservice/</link>
			</item>
	<item>
		<title>FreeBSD nss_ldap v.s OpenSSL</title>
		<description><![CDATA[哈哈，終於找到 FreeBSD 裝不順利的原因了，   原來是 OpenSSL 這個東西在亂搞鬼，    FreeBSD 原本都有內建一版 OpenSSL    但是更新 Ports Tree 之後再安裝 OpenSSL 則會更新到 0.9.8k    由於已經試驗過所有版本的 FreeBSD (x64,x86,7.1,6.4,6.3)    所以可以輕易推論出目前不能使用 Ports Tree 上的 OpenSSL 最新版，    否則會造成 LDAP, nss_ldap, apache    以及其他所有跟 OpenSSL 有關係的服務不匹配。    [...]]]></description>
		<link>http://www.arule.net/2009/05/11/freebsd-nss_ldap-v-s-openssl/</link>
			</item>
	<item>
		<title>在 AIX 5.2 上安裝 bind8</title>
		<description><![CDATA[ 
aix

其實在 aix 5.2 上面裝 bind 跟一般並沒有什麼不同， 但是實做最大&#8230;你沒裝過你敢說之前的做法一定成功嗎？XD 故在此紀錄一下步驟&#8230;
 
/etc/named.conf 內容




options { directory &#8220;/data/dns&#8221;; #設定工作目錄。 allow-transfer { none; }; }; logging { channel syslog_query { file &#8220;/var/bindquery.log&#8221;; severity debug; }; 
channel syslog_info { file &#8220;/var/bindall.log&#8221; versions 20 size 2m; print-category yes; print-time yes; severity notice; }; category default { lame-servers { null; }; syslog_info; }; [...]]]></description>
		<link>http://www.arule.net/2008/10/02/%e5%9c%a8-aix-52-%e4%b8%8a%e5%ae%89%e8%a3%9d-bind8/</link>
			</item>
	<item>
		<title>使用 telnet 連上 IRC Server</title>
		<description><![CDATA[IRC 是一個聊天型的服務，不過是明碼的，
以下示範如何用 telnet 指令就登入 IRC Server


telnet  irc.server.domain  6667

NICK [your name]

USER [your name]  irc.server.domain blah germaN

join #[ch-name]

PRIVMSG  #[ch-name]  : TSET





telnet irc.server.domain 6667
NICK [your name]
USER [your name] irc.server.domain blah germaN
join #[ch-name]
PRIVMSG #[ch-name] : TSET



]]></description>
		<link>http://www.arule.net/2008/10/02/%e4%bd%bf%e7%94%a8-telnet-%e9%80%a3%e4%b8%8a-irc-server/</link>
			</item>
	<item>
		<title>使用反向代理 squid 保護 apache</title>
		<description><![CDATA[
squid

squid 的功能我就不贅述了，除了當作 httpd-proxy server 之外，還能保護後端的網站，
減少該網站 I/O 的效能消耗。
以下為 squid.conf 的組態設定，#部份是 FreeBSD 的路徑




########## Base control ##########
cache_mgr webmaster
cache_effective_user squid
cache_effective_group squid
visible_hostname cache.arule.net
http_port 80
icp_port 0
#cache_dir ufs /usr/cache 300 16 256
cache_dir ufs /var/spool/squid 300 16 256
#cache_access_log /var/log/squid-cache-access.log
#cache_log /var/log/cache.log
#cache_store_log /var/log/cache_store.log
#error_directory /s/squid/etc/squid/errors/English
error_directory /usr/share/squid/errors/English
#icon_directory /s/squid/etc/squid/icons
icon_directory /usr/share/squid/icons
#mime_table /s/squid/etc/squid/mime.conf
mime_table /etc/squid/mime.conf
#coredump_dir /s/squid/squid/cache
coredump_dir /var/spool/squid
#pid_filename /s/squid/squid/logs/squid.pid
pid_filename /var/run/squid.pid
hosts_file /data/squidhosts
#unlinkd_program /s/squid/libexec/squid/unlinkd
unlinkd_program /usr/lib/squid/unlinkd
########## Performance control ##########
cache_mem 256 MB
cache_swap_low 90
cache_swap_high 95
maximum_object_size 4096 KB
minimum_object_size [...]]]></description>
		<link>http://www.arule.net/2008/10/02/%e4%bd%bf%e7%94%a8%e5%8f%8d%e5%90%91%e4%bb%a3%e7%90%86-squid-%e4%bf%9d%e8%ad%b7-apache/</link>
			</item>
	<item>
		<title>控制搜尋引擎蜘蛛</title>
		<description><![CDATA[網站流量節節升高，
所以必須節流的時候到了！
開啟一個空白檔案 叫做 robots.txt 在網站根目錄下，
內容為：




User-agent: *
Disallow: /*.PDF$
Disallow: /*.swf$
Disallow: /*.jpg$
Disallow: /*.gif$
Disallow: /*.png$
Disallow: /*.pl$
Disallow: /*.zip$
Disallow: /*.rar$
Disallow: /*.css$
Disallow: /*.js$
Disallow: /*.xml$
Crawl-delay: 14400



為何要如此？因為搜尋引擎去抓資料時也會消耗頻寬！
 
]]></description>
		<link>http://www.arule.net/2008/10/01/%e6%8e%a7%e5%88%b6%e6%90%9c%e5%b0%8b%e5%bc%95%e6%93%8e%e8%9c%98%e8%9b%9b/</link>
			</item>
	<item>
		<title>NetBSD 3 基本上網設定</title>
		<description><![CDATA[ 
netbsd

以下為 NetBSD 3 基本網路設定
安裝也是照畫面指示即可，
網路配置
 
先輸入 ifconfig -a 觀看網路介面名稱， 假如看到的名字為 pcn0
那就建立一個檔叫做：
/etc/ifconfig.pcn0
內容為：
inet 192.168.xxx.xxx netmask 255.255.255.0
然後在 /etc/rc.conf 以下加入這行：
auto_ifconfig=YES
新增 /etc/mygate 裡面打入 gateway 名字 新增 /etc/myname 裡面輸入你決定的名字 新增 /etc/resolv.conf 裡面輸入你要的 DNS 手動更改 IP 其實可以直接打指令
ifconfig pcn0 inet 192.168.1.4 netmask 255.255.255.0
就可以生效。 接著可以以 traceroute www.hinet.net 來測試網路是否通了。

]]></description>
		<link>http://www.arule.net/2008/10/01/netbsd-3-%e5%9f%ba%e6%9c%ac%e4%b8%8a%e7%b6%b2%e8%a8%ad%e5%ae%9a/</link>
			</item>
	<item>
		<title>打開 rcp</title>
		<description><![CDATA[打開簡單的 rcp 權限
今日老闆突然要打開 rcp 的語法權限，
是 AIX 與 Solaris&#8230;
 
查了一下，如果是 root 只要編輯一個叫做 /.rhosts 的檔案裡面如下：



BG78 root



BG78 是電腦名稱，必需要在 /etc/hosts 裡面有 IP
這樣就可以允許rcp 指令傳送檔案了
如果是一般 User 如 cat 這個 User 好了
那必須是 $HOME/.rhosts



BG78 cat



這樣才行。
.rhosts 檔案最好為 600 增加安全性。

]]></description>
		<link>http://www.arule.net/2008/10/01/%e6%89%93%e9%96%8b-rcp/</link>
			</item>
</channel>
</rss>

