<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hao&#039;s Blog &#187; Network</title>
	<atom:link href="http://www.haostudio.idv.tw/blog/?cat=12&#038;feed=rss2" rel="self" type="application/rss+xml" />
	<link>https://www.haostudio.idv.tw/blog</link>
	<description>小豪的日誌</description>
	<lastBuildDate>Thu, 10 Nov 2016 10:53:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CentOS 6.0 中Samba 無法存取home directory</title>
		<link>https://www.haostudio.idv.tw/blog/?p=431</link>
		<comments>https://www.haostudio.idv.tw/blog/?p=431#comments</comments>
		<pubDate>Thu, 14 Jul 2011 08:51:54 +0000</pubDate>
		<dc:creator>hao</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[架站]]></category>

		<guid isPermaLink="false">http://www.haostudio.idv.tw/blog/?p=431</guid>
		<description><![CDATA[



(adsbygoogle = window.adsbygoogle &#124;&#124; []).push({});

剛剛裝玩CentOS 6.0, 並且裝完samba server 後, 發現幾個問題.
1. system-config-samba 不見了.
 解決方式: 原來是CentOS 6 以後, 將他移除了. 唉~ 只能手動修改 smb.conf 檔來設定.
2. 設完samba user 並且啟動samba service 後, 在windows XP 下卻看不到.
解決方式: 原來是linux 的firewall 搞鬼, ok, 用system-config-firewall 來允許samba 連接.
嗯, XP 中可以看到家目錄了, 但是卻無法連進去 ??!!
查了好久, 才知道是selinux 搞鬼. 記得在CentOS 5.x 時, 第一次啟動時都會問是否要enable selinux.
但是CentOS 6.0 卻沒有詢問, 害我忘記 selinux 的存在. Default 值是Enable 的.
本來想用system-config-securitylevel [...]]]></description>
		<wfw:commentRss>https://www.haostudio.idv.tw/blog/?feed=rss2&amp;p=431</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>在Samba中新增一個目錄, 讓Windows User不需帳號也能存取</title>
		<link>https://www.haostudio.idv.tw/blog/?p=409</link>
		<comments>https://www.haostudio.idv.tw/blog/?p=409#comments</comments>
		<pubDate>Mon, 21 Jun 2010 06:37:34 +0000</pubDate>
		<dc:creator>hao</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[架站]]></category>

		<guid isPermaLink="false">http://www.haostudio.idv.tw/blog/?p=409</guid>
		<description><![CDATA[



(adsbygoogle = window.adsbygoogle &#124;&#124; []).push({});

最近有個需求, 就是要在Samba server 中開啟一個shared的目錄, 讓Windows 的User沒有帳號, 也可以存取此目錄.
感覺上是個簡單的問題, 但是我卻搞了好久才搞定&#8230;.
首先在Samba有開一個shared的目錄, 權限如下:

[shared]
        path = /home/shared
        writeable = no
        browseable = yes
        guest ok = yes

設定完後, 重新啟用samba, [...]]]></description>
		<wfw:commentRss>https://www.haostudio.idv.tw/blog/?feed=rss2&amp;p=409</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Synergy+ : Share Keyboard &amp; Mouse (支援Windows/Linux/MacOS)</title>
		<link>https://www.haostudio.idv.tw/blog/?p=388</link>
		<comments>https://www.haostudio.idv.tw/blog/?p=388#comments</comments>
		<pubDate>Tue, 26 Jan 2010 11:24:21 +0000</pubDate>
		<dc:creator>hao</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MAC]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.haostudio.idv.tw/blog/?p=388</guid>
		<description><![CDATA[



(adsbygoogle = window.adsbygoogle &#124;&#124; []).push({});

剛剛才找到的一個非常實用的軟體: 讓兩部電腦共用Keyboard &#038; Mouse. (螢幕沒有共用)
Synergy+
他是Synergy的延伸版本. 因為Synergy 在2006年以後就沒有再改版了.
而Synergy+ 是基於Synergy改版而來的. 到目前為止還有持續在改版喔~~
]]></description>
		<wfw:commentRss>https://www.haostudio.idv.tw/blog/?feed=rss2&amp;p=388</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>將Fon+(FON2201) 刷成DD-WRT</title>
		<link>https://www.haostudio.idv.tw/blog/?p=305</link>
		<comments>https://www.haostudio.idv.tw/blog/?p=305#comments</comments>
		<pubDate>Fri, 10 Jul 2009 10:02:03 +0000</pubDate>
		<dc:creator>hao</dc:creator>
				<category><![CDATA[MAC]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[embedded system]]></category>
		<category><![CDATA[架站]]></category>

		<guid isPermaLink="false">http://www.haostudio.idv.tw/blog/?p=305</guid>
		<description><![CDATA[



(adsbygoogle = window.adsbygoogle &#124;&#124; []).push({});

操作環境: MAC OS
MAC端的準備動作:
(1) 先下載安裝tftp server for MAC OS, 並且安裝
到此下載TFTP server 3.2.1 for MAC
(2) 在家目錄下建立一個tftpboot的目錄.
(3) 下載DD-WRT的image file, 我目前抓的版本是v24-sp1, 並將其拷貝到tftpboot的目錄
下載網址: http://www.dd-wrt.com/dd-wrtv2/downloads/stable/dd-wrt.v24%20SP1/Consumer/Fon/Fonera/linux.bin
(3) 將電腦的 IP 改為192.168.1.2

(4) 執行tftpserver.app, 選擇』Change Path』, 把路徑指到上面所建立的tftpboot的目錄, 並且按下』Start TFT』來啟動server

接下來準備破解Fon+的firmware.
(1) 開啟終端機.
(2) 建立一個break.bin檔, 這個目的是建立一個中斷字元檔(^C), 來送給Fon+. 在終端機輸入如下
echo -e "\0377\0364\0377\0375\0006" >break.bin
(3) 將網路線接到Fon+的LAN port, 先不要把Fon+的電源接上.
(4) 接上Fon+的電源後, 需要在1~2秒內在終端機中執行下列指令
nc -vvv 192.168.1.1 9000 < break.bin; telnet 192.168.1.1 9000
若成功的話將出現Redboot的提示符號, 如下
Connection to [...]]]></description>
		<wfw:commentRss>https://www.haostudio.idv.tw/blog/?feed=rss2&amp;p=305</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another opensource NX server : neatx</title>
		<link>https://www.haostudio.idv.tw/blog/?p=302</link>
		<comments>https://www.haostudio.idv.tw/blog/?p=302#comments</comments>
		<pubDate>Wed, 08 Jul 2009 23:20:41 +0000</pubDate>
		<dc:creator>hao</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Open Source]]></category>

		<guid isPermaLink="false">http://www.haostudio.idv.tw/blog/?p=302</guid>
		<description><![CDATA[



(adsbygoogle = window.adsbygoogle &#124;&#124; []).push({});

NX Server一直是我最喜愛的remote desktop technologies 之一. 又快又不佔頻寬.
雖然NoMachine有提供各式各樣的版本. 但是他不是Open Source, 所以許多Linux的distribution中無法將其內建使用.
而FreeNX感覺上穩定性又沒NoMachine的來的好.
剛剛在這看到高興的消息.
繼FreeNX之後, 另一個open source 的NX sever即將出現.
那就是neatx.
雖然尚未release, 但是期待它有好的表現.
]]></description>
		<wfw:commentRss>https://www.haostudio.idv.tw/blog/?feed=rss2&amp;p=302</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在Linux中強制ethernet 網卡降速 (1000M &#8211;&gt; 100M)</title>
		<link>https://www.haostudio.idv.tw/blog/?p=297</link>
		<comments>https://www.haostudio.idv.tw/blog/?p=297#comments</comments>
		<pubDate>Wed, 08 Jul 2009 22:38:11 +0000</pubDate>
		<dc:creator>hao</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[架站]]></category>

		<guid isPermaLink="false">http://www.haostudio.idv.tw/blog/?p=297</guid>
		<description><![CDATA[



(adsbygoogle = window.adsbygoogle &#124;&#124; []).push({});

或許您會覺得很奇怪, 為何會想要降速. 當然啦, 我不會閒閒沒事幹, 做這種無聊的事.
最近剛把家裡的其中一台Server換電腦主機, 改用Shuttle 的X27D. 目的是為了省電.
本來使用後一切還算正常, 前一陣子, 想要copy 一些檔案到這台server中, 我是用FTP來傳檔.
同時傳輸約5個檔案, 但是每傳一下子, 這台server就沒回應了, 連ping都沒反應.
本以為他當機了, 跑到server前看, 機器還活著, 只有ethernet死了&#8230;.
連續試了幾次, 都一樣的結果.
最後查了/var/log/message 來看, 似乎是這裡的問題:
hns2 kernel: NETDEV WATCHDOG: eth0: transmit timed out
我懷疑是ethernet driver設計不良所造成的(或許是我的直覺吧!!, 我對於realtek的ethernet controller都沒信心耶!!)
這台機器的ethernet controller是Realtek 的RTL8168c/8111c (我不是很確定), 應該是PCI Express的1Gb ethernet網卡.
所以我想將他降速試試看.
查了realtek driver中的readme檔. 其中一段描述如下:

Force Link Status

        1. Force the [...]]]></description>
		<wfw:commentRss>https://www.haostudio.idv.tw/blog/?feed=rss2&amp;p=297</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Wake-On-LAN with Linux</title>
		<link>https://www.haostudio.idv.tw/blog/?p=281</link>
		<comments>https://www.haostudio.idv.tw/blog/?p=281#comments</comments>
		<pubDate>Tue, 16 Jun 2009 05:58:38 +0000</pubDate>
		<dc:creator>hao</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[架站]]></category>

		<guid isPermaLink="false">http://www.haostudio.idv.tw/blog/?p=281</guid>
		<description><![CDATA[以下文章擷取自http://www.study-area.org/tips/wol.htm
Using Wake-On-LAN with Linux
圖文．我本善良 (asako@parzival.org）
●前言●
 Wake-On-LAN 是使用AMD 『Magic Packet』技術，它非常類似於PCMCIA數據機的』wake
on ring』的訊號技術，其基本的原理是提供網路卡一個非常低的電源讓它去監看網路上
的特別的封包進而起動電腦。

●本文●
 當我們要喚醒目標電腦時，我們必需要知道這台電腦的網路卡編號及網路卡位置.如果
您的機器是有多片的網路卡時，您還必需確認您的WOL連接線接在哪一片網路卡。
 到ftp://ftp.scyld.com/pub/diag/ether-wake.c.下載喚醒程式，使用下面的指令
cc -O -Wall -o ether-wake ether-wake.c編譯後會有ether-wake執行檔。
然後在我們的目標機器裡載入網路卡的驅動程式並且利用ifconfig記錄網路卡的卡號。
關掉目標電腦，請注意不要把電源開關關掉，不然將無法從網路開機。
 在我們的控制電腦執行以下指令。
  [root@asako mail]# ~asako/ether-wake 00:50:14:cc:2e:8c
然後我們將會看到目標的電腦自動的開機。
&#8230;.
&#8230;.
完整文章請至http://www.study-area.org/tips/wol.htm




(adsbygoogle = window.adsbygoogle &#124;&#124; []).push({});

]]></description>
		<wfw:commentRss>https://www.haostudio.idv.tw/blog/?feed=rss2&amp;p=281</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>列出dhcp使用者有哪些人</title>
		<link>https://www.haostudio.idv.tw/blog/?p=278</link>
		<comments>https://www.haostudio.idv.tw/blog/?p=278#comments</comments>
		<pubDate>Tue, 16 Jun 2009 05:49:54 +0000</pubDate>
		<dc:creator>hao</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[架站]]></category>

		<guid isPermaLink="false">http://www.haostudio.idv.tw/blog/?p=278</guid>
		<description><![CDATA[



(adsbygoogle = window.adsbygoogle &#124;&#124; []).push({});

常常要查看到底某某IP被哪台電腦要走了.
老是忘記dhcpd把這資訊放在哪. 所以記在blog中
就是這一行指令:
cat /var/lib/dhcp/dhcpd.lease
]]></description>
		<wfw:commentRss>https://www.haostudio.idv.tw/blog/?feed=rss2&amp;p=278</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NSCD: name service cache daemon</title>
		<link>https://www.haostudio.idv.tw/blog/?p=271</link>
		<comments>https://www.haostudio.idv.tw/blog/?p=271#comments</comments>
		<pubDate>Sun, 14 Jun 2009 00:26:31 +0000</pubDate>
		<dc:creator>hao</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[架站]]></category>

		<guid isPermaLink="false">http://www.haostudio.idv.tw/blog/?p=271</guid>
		<description><![CDATA[



(adsbygoogle = window.adsbygoogle &#124;&#124; []).push({});

剛剛在我的server中, 執行route指令.
突然出現do_ypcall: clnt_call: RPC: Timed out的錯誤訊息!!
怪怪!! 這又是啥東東??  最近老是看到一些怪現象??

既然不懂, 就虛心的請教谷狗大神. 谷狗大神只思考不到一秒. 指點我去這裡找答案.
厲害!! 那裡的一句話, 立刻點出我的問題所在:

Are you running nscd (name service cache daemon)? If not, start this daemon.
You should start this daemon if you use slow naming services like NIS, NIS+, LDAP or hesiod.

果然,啟用nscd 後, 問題就消失了!!
對於谷狗大神的高明, 真是甘拜下風~~  
[2009/06/15] 更新:
雖然啟用nscd 可以改善, 但是還是有時會出現這個問題.
根據谷狗大神的另一指示:看這裡
原來在/etc/nsswitch.conf 有設定尋找hosts的順序. [...]]]></description>
		<wfw:commentRss>https://www.haostudio.idv.tw/blog/?feed=rss2&amp;p=271</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux QoS實作記錄(l7-filter &amp; Traffic Control &amp; iptables)</title>
		<link>https://www.haostudio.idv.tw/blog/?p=256</link>
		<comments>https://www.haostudio.idv.tw/blog/?p=256#comments</comments>
		<pubDate>Fri, 12 Jun 2009 04:17:05 +0000</pubDate>
		<dc:creator>hao</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[架站]]></category>

		<guid isPermaLink="false">http://www.haostudio.idv.tw/blog/?p=256</guid>
		<description><![CDATA[



(adsbygoogle = window.adsbygoogle &#124;&#124; []).push({});

過程有點繁複, 記下來以免以後忘記.
(1) 安裝CentOS 5.2
(2) 升級到5.3. 此時kernel 版本為2.6.18-128.1.10.el5
(3) 下載Kernel source
#cd /usr/local/src
#wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.tar.gz
(4) 下載iptable source
#wget ftp://ftp.netfilter.org/pub/iptables/iptables-1.3.8.tar.bz2
(5) 下載』l7-filter kernel version』 package (netfilter-layer7-vX.Y.tar.gz)
到 http://sourceforge.net/project/showfiles.php?group_id=80085
去下載 netfilter-layer7-v2.21.tar.gz
#tar -zxvf netfilter-layer7-v2.21.tar.gz

(6) 下載』Protocol definitions』 package (l7-protocols-YYYY-MM-DD.tar.gz)
到 http://sourceforge.net/project/showfiles.php?group_id=80085
去下載 l7-protocols-2009-05-28.tar.gz
#tar -zxvf l7-protocols-2009-05-28.tar.gz
(7) Patch kernel
#cd /usr/src/kernels
#tar -zxvf /usr/local/src/linux-2.6.18.tar.gz
#mv linux-2.6.18 linux-2.6.18-l7_fileter
#cd linux-2.6.18-l7_filter
#patch -p1 < /usr/local/src/netfilter-layer7-v2.21/for_older_kernels/kernel-2.6.18-2.6.19-layer7-2.9.patch
(8) copy &#038; setup kernel configure
#cp ../2.6.18-128.1.10.el5-i686/.config .
#make menuconfig
參照下面的設定(不同版本的kernel, 設定的位置不盡然相同):
"Prompt [...]]]></description>
		<wfw:commentRss>https://www.haostudio.idv.tw/blog/?feed=rss2&amp;p=256</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
