<?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>stephenyeong&#039;s blog &#187; FTP</title>
	<atom:link href="http://www.stephenyeong.idv.hk/wp/tag/ftp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stephenyeong.idv.hk/wp</link>
	<description>Blog about my IT life</description>
	<lastBuildDate>Mon, 06 Feb 2012 13:41:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Openfiler upgrade proftpd to 1.33</title>
		<link>http://www.stephenyeong.idv.hk/wp/2010/03/openfiler-proftpd-1-33-2/</link>
		<comments>http://www.stephenyeong.idv.hk/wp/2010/03/openfiler-proftpd-1-33-2/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 03:12:51 +0000</pubDate>
		<dc:creator>stephenyeong</dc:creator>
				<category><![CDATA[NAS]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Openfiler]]></category>
		<category><![CDATA[proftpd]]></category>

		<guid isPermaLink="false">http://www.stephenyeong.idv.hk/wp/?p=532</guid>
		<description><![CDATA[前幾日又被人追問點設定, 不幸地之前 DROP 下的NOTES 不見了. 結果今早在VM下由頭SET一次. 1. Install related component conary update gcc gcc:devel conary update libtool libtool:devel conary update glib glib:devel conary update glibc glibc:devel conary update automake autoconf pkgconfig conary update gcc-c++ conary update pam:devel 2. Download &#38; extract proftpd (in this case 1.3.3 ) wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.3.tar.gz tar -zxf proftpd-1.3.3.tar.gz cd proftpd-1.3.3 3. [...]]]></description>
			<content:encoded><![CDATA[<fb:like href='http://www.stephenyeong.idv.hk/wp/2010/03/openfiler-proftpd-1-33-2/' send='false' layout='standard' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like><p>前幾日又被人追問點設定, 不幸地之前 DROP 下的NOTES 不見了. 結果今早在VM下由頭SET一次.</p>
<h3>1. Install related component</h3>
<pre class="brush:shell">conary update gcc gcc:devel
conary update libtool libtool:devel
conary update glib glib:devel
conary update glibc glibc:devel
conary update automake autoconf pkgconfig
conary update gcc-c++
conary update pam:devel
</pre>
<h3>2. Download &amp; extract proftpd (in this case 1.3.3 )</h3>
<pre class="brush:shell">wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.3.tar.gz

tar -zxf proftpd-1.3.3.tar.gz
cd proftpd-1.3.3
</pre>
<h3>3. Config &amp; Compile</h3>
<p>makesure proftpd ( ftp service ) stopped before "make install".</p>
<pre class="brush:shell">./configure --prefix=/usr --sysconfdir=/etc/proftpd --localstatedir=/var/run --enable-nls --enable-auth-pam

make

make install
</pre>
<h3>4. modify generate.inc</h3>
<p>因為proftpd自1.3.2開始有一句config改了syntex, 所以openfiler要修改一下才能正常generate出1.32以後的proftpd.conf</p>
<p><a href="http://www.stephenyeong.idv.hk/wp/wp-content/uploads/2010/03/1.-proftpd-fail-to-start.png" rel="lightbox[532]" title="1. proftpd fail to start"><img class="alignnone size-medium wp-image-535" title="1. proftpd fail to start" src="http://www.stephenyeong.idv.hk/wp/wp-content/uploads/2010/03/1.-proftpd-fail-to-start-300x90.png" alt="" width="300" height="90" /></a></p>
<p>Modify openfiler web generate.inc</p>
<pre class="brush:shell">vi ./opt/openfiler/var/www/includes/generate.inc
</pre>
<p>find</p>
<p>$ac_ftp_fp-&gt;AddLine("DisplayFirstChdir\t\t.message");</p>
<p>replace with</p>
<p>$ac_ftp_fp-&gt;AddLine("DisplayChdir\t\t.message");</p>
<p>修改完後到share edit 再 update 令openfiler更新一次proftpd.conf</p>
<p><a href="http://www.stephenyeong.idv.hk/wp/wp-content/uploads/2010/03/2.-update-share-setting.png" rel="lightbox[532]" title="2. update share setting"><img class="alignnone size-medium wp-image-536" title="2. update share setting" src="http://www.stephenyeong.idv.hk/wp/wp-content/uploads/2010/03/2.-update-share-setting-300x219.png" alt="" width="300" height="219" /></a></p>
<p>這樣就可以start ftp service.</p>
<p>1.3.3 已解決MLST不能正常進入有"[]"的路徑問題. 所以不用disable mod-facts</p>
<p>關於1.3.2 的問題和解決方法.</p>
<p><a href="http://forum.filezilla-project.org/viewtopic.php?f=2&amp;t=13555" target="_blank">FileZilla Forums • View topic &#8211; 550 error on certain characters</a></p>
<p><a href="http://pank.org/blog/2009/02/disable-proftpd-132-mod-facts.html">Disable ProFTPD 1.3.2 mod_facts</a></p>
<h3>5. Completed &amp; Test</h3>
<p><a href="http://www.stephenyeong.idv.hk/wp/wp-content/uploads/2010/03/5.-feat.png" rel="lightbox[532]" title="5. feat"><img class="alignnone size-medium wp-image-539" title="5. feat" src="http://www.stephenyeong.idv.hk/wp/wp-content/uploads/2010/03/5.-feat-300x191.png" alt="" width="300" height="191" /></a><a href="http://www.stephenyeong.idv.hk/wp/wp-content/uploads/2010/03/3.-ftp-done.png"></a></p>
<p><a href="http://www.stephenyeong.idv.hk/wp/wp-content/uploads/2010/03/3.-ftp-done.png" rel="lightbox[532]" title="3. ftp done"><img class="alignnone size-medium wp-image-537" title="3. ftp done" src="http://www.stephenyeong.idv.hk/wp/wp-content/uploads/2010/03/3.-ftp-done-300x222.png" alt="" width="300" height="222" /></a><a href="http://www.stephenyeong.idv.hk/wp/wp-content/uploads/2010/03/4.-bracket-folder-pass.png"></a></p>
<p><a href="http://www.stephenyeong.idv.hk/wp/wp-content/uploads/2010/03/4.-bracket-folder-pass.png" rel="lightbox[532]" title="4. bracket folder pass"><img class="alignnone size-medium wp-image-538" title="4. bracket folder pass" src="http://www.stephenyeong.idv.hk/wp/wp-content/uploads/2010/03/4.-bracket-folder-pass-300x222.png" alt="" width="300" height="222" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stephenyeong.idv.hk/wp/2010/03/openfiler-proftpd-1-33-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Home NAS</title>
		<link>http://www.stephenyeong.idv.hk/wp/2010/02/my-home-nas/</link>
		<comments>http://www.stephenyeong.idv.hk/wp/2010/02/my-home-nas/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 19:31:56 +0000</pubDate>
		<dc:creator>stephenyeong</dc:creator>
				<category><![CDATA[NAS]]></category>
		<category><![CDATA[網絡]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[Openfiler]]></category>
		<category><![CDATA[RAID]]></category>

		<guid isPermaLink="false">http://www.stephenyeong.idv.hk/wp/?p=497</guid>
		<description><![CDATA[農歷新年幾日足不出戶，重點完成了家裏NAS PROJECT (除了NAS 還睇完100集REBORN) 因為有兩隻1TB是有DATA的，所以花了多了時間。 一晚時間做 BACKUP、一日安裝、兩日個調整，終於大功告成。 硬件 ASL ATOM 330 ITX onboard  ICH7 with 4x SATA、1x40PIN PATA, PCIE x16 slot (x8 Actual) Realtek 8111C Gigabit Ethernet AC97 (no use for me) 1GB DDR2 4GB CF BOOT UP 4x1TB RAID5 (3隻Seagate + 1隻WD) 軟件 Openfiler 2.3 32bit 外掛 TransmissionBT 更新 proftpd 至 1.3.2c (支援 UTF8檔)]]></description>
			<content:encoded><![CDATA[<fb:like href='http://www.stephenyeong.idv.hk/wp/2010/02/my-home-nas/' send='false' layout='standard' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like><p>農歷新年幾日足不出戶，重點完成了家裏NAS PROJECT (除了NAS 還睇完100集REBORN)</p>
<p>因為有兩隻1TB是有DATA的，所以花了多了時間。<br />
一晚時間做 BACKUP、一日安裝、兩日個調整，終於大功告成。</p>
<p>硬件</p>
<ul>
<li>ASL ATOM 330 ITX<br />
onboard  ICH7 with 4x SATA、1x40PIN PATA,<br />
PCIE x16 slot (x8 Actual)<br />
Realtek 8111C Gigabit Ethernet<br />
AC97 (no use for me)</li>
<li>1GB DDR2</li>
<li>4GB CF BOOT UP</li>
<li>4x1TB RAID5 (3隻Seagate + 1隻WD)</li>
</ul>
<p>軟件</p>
<ul>
<li>Openfiler 2.3 32bit</li>
<li>外掛 TransmissionBT</li>
<li>更新 proftpd 至 1.3.2c (支援 UTF8檔)</li>
</ul>

<div class="ngg-galleryoverview" id="ngg-gallery-27-497">

	<!-- Slideshow link -->
	<div class="slideshowlink">
		<a class="slideshowlink" href="http://www.stephenyeong.idv.hk/wp/2010/02/my-home-nas/?show=slide">
			[Show as slideshow]		</a>
	</div>

	<!-- Piclense link -->
	<div class="piclenselink">
		<a class="piclenselink" href="javascript:PicLensLite.start({feedUrl:'http://www.stephenyeong.idv.hk/wp/wp-content/plugins/nextgen-gallery/xml/media-rss.php?gid=27&amp;mode=gallery'});">
			[View with PicLens]		</a>
	</div>
	
	<!-- Thumbnails -->
		
	<div id="ngg-image-363" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.stephenyeong.idv.hk/wp/wp-content/gallery/2010-02-18-nas/dsc8253.jpg" title="ASL ATOM 330, 上面張PERC5i 不需改SMBUS PIN也可以正常運作。
但因PERC5i 太熱，最後無用。" rel="lightbox[set_27]" >
								<img title="ASL ATOM 330" alt="ASL ATOM 330" src="http://www.stephenyeong.idv.hk/wp/wp-content/gallery/2010-02-18-nas/thumbs/thumbs_dsc8253.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-364" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.stephenyeong.idv.hk/wp/wp-content/gallery/2010-02-18-nas/dsc8806.jpg" title="初時放在桌面" rel="lightbox[set_27]" >
								<img title="NAS on Desktop#1" alt="NAS on Desktop#1" src="http://www.stephenyeong.idv.hk/wp/wp-content/gallery/2010-02-18-nas/thumbs/thumbs_dsc8806.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-365" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.stephenyeong.idv.hk/wp/wp-content/gallery/2010-02-18-nas/dsc8807.jpg" title="初時放在桌面, 4隻HDD在主板下面, 要加把8CM FAN" rel="lightbox[set_27]" >
								<img title="NAS on Desktop#2" alt="NAS on Desktop#2" src="http://www.stephenyeong.idv.hk/wp/wp-content/gallery/2010-02-18-nas/thumbs/thumbs_dsc8807.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-366" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.stephenyeong.idv.hk/wp/wp-content/gallery/2010-02-18-nas/dsc8809.jpg" title="加埋之前隻pfsense firewall, 共2塊ATOM。
一隻230W 小火牛推
兩塊板、
4隻HDD、
一個HUBS" rel="lightbox[set_27]" >
								<img title="Final#1" alt="Final#1" src="http://www.stephenyeong.idv.hk/wp/wp-content/gallery/2010-02-18-nas/thumbs/thumbs_dsc8809.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-367" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.stephenyeong.idv.hk/wp/wp-content/gallery/2010-02-18-nas/dsc8814.jpg" title="4隻HDD接口向上，方便接線" rel="lightbox[set_27]" >
								<img title="Final#2" alt="Final#2" src="http://www.stephenyeong.idv.hk/wp/wp-content/gallery/2010-02-18-nas/thumbs/thumbs_dsc8814.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-368" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.stephenyeong.idv.hk/wp/wp-content/gallery/2010-02-18-nas/dsc8815.jpg" title=" " rel="lightbox[set_27]" >
								<img title="Final#3" alt="Final#3" src="http://www.stephenyeong.idv.hk/wp/wp-content/gallery/2010-02-18-nas/thumbs/thumbs_dsc8815.jpg" width="100" height="75" />
							</a>
		</div>
	</div>
	
		
 		
	<div id="ngg-image-362" class="ngg-gallery-thumbnail-box"  >
		<div class="ngg-gallery-thumbnail" >
			<a href="http://www.stephenyeong.idv.hk/wp/wp-content/gallery/2010-02-18-nas/transmission-web.png" title="在NAS裝了TransmissionBT
自帶WEB介面，支援magnet。" rel="lightbox[set_27]" >
								<img title="transmission-web" alt="transmission-web" src="http://www.stephenyeong.idv.hk/wp/wp-content/gallery/2010-02-18-nas/thumbs/thumbs_transmission-web.png" width="91" height="75" />
							</a>
		</div>
	</div>
	
		
 	 	
	<!-- Pagination -->
 	<div class='ngg-clear'></div>
 	
</div>


]]></content:encoded>
			<wfw:commentRss>http://www.stephenyeong.idv.hk/wp/2010/02/my-home-nas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Openfiler vs FreeBSD</title>
		<link>http://www.stephenyeong.idv.hk/wp/2010/01/openfiler-vs-freebsd/</link>
		<comments>http://www.stephenyeong.idv.hk/wp/2010/01/openfiler-vs-freebsd/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 14:35:00 +0000</pubDate>
		<dc:creator>stephenyeong</dc:creator>
				<category><![CDATA[NAS]]></category>
		<category><![CDATA[網絡]]></category>
		<category><![CDATA[軟件]]></category>
		<category><![CDATA[FreeNAS]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Openfiler]]></category>
		<category><![CDATA[RAID]]></category>

		<guid isPermaLink="false">http://www.stephenyeong.idv.hk/wp/?p=440</guid>
		<description><![CDATA[早在一個月前已開始準備在家建立一台NAS，當時還未選定用FreeNAS還是Openfiler。 剛好有個PROJECT要為ESXi準備NAS Storage，所以返復測試了兩者。 今次測試的版本 Openfiler 2.3 FreeNAS 0.7 在驅動方面, 如終是LINUX的Openfiler佔優。 因為Openfiler 的Kernel 可以在Web介面上更新，而且想自己Compile Driver 也比較易。 無論在ESX下使用VMXNET3、還是ATOM NanoITX用RTL8111C的JUMBOFRAME支援上，比起使用FreeBSD 7.2的FreeNAS好。 FreeBSD 對於Realtek 8111的jumboframe支援應該要到 FreeBSD 8.0 才能解決。 論功能，FreeNAS 佔優 兩者皆有 iSCSI Target, iSCSI Initiator, NFS, SMB, FTP 但在FTP方面, FreeNAS 佔優。 FreeNAS用proftpd 1.31, 而Openfiler只是proftpd 1.30。雖然版本號相差很少，但可用性就大有不同。 FreeNAS是可以用UTF8的. 用UTF8支援的FTP CLIENT可以見到完整的檔名。而proftpd 1.30 就會出亂碼。 還未計FreeNAS原生有Bittorrent client，基本上可以選定FreeNAS了。 RAID管理，Openfiler LVM+XFS vs FreeNAS ZFS。 在RAID管理方面，Openfiler較強 用到電腦做家用NAS，差不多一定會用RAID。 [...]]]></description>
			<content:encoded><![CDATA[<fb:like href='http://www.stephenyeong.idv.hk/wp/2010/01/openfiler-vs-freebsd/' send='false' layout='standard' show_faces='true' width='450' height='65' action='like' colorscheme='light' font='lucida+grande'></fb:like><p>早在一個月前已開始準備在家建立一台NAS，當時還未選定用FreeNAS還是Openfiler。<br />
剛好有個PROJECT要為ESXi準備NAS Storage，所以返復測試了兩者。</p>
<p>今次測試的版本<br />
Openfiler 2.3<br />
FreeNAS 0.7</p>
<p><strong>在驅動方面, 如終是LINUX的Openfiler佔優。</strong><a href="http://www.stephenyeong.idv.hk/wp/wp-content/uploads/2010/01/System-Update.png" rel="lightbox[440]" title="System Update"><img class="size-thumbnail wp-image-446 alignright" title="System Update" src="http://www.stephenyeong.idv.hk/wp/wp-content/uploads/2010/01/System-Update-150x150.png" alt="" width="150" height="150" /></a><br />
因為Openfiler 的Kernel 可以在Web介面上更新，而且想自己Compile Driver 也比較易。<br />
無論在ESX下使用VMXNET3、還是ATOM NanoITX用RTL8111C的JUMBOFRAME支援上，比起使用FreeBSD 7.2的FreeNAS好。</p>
<p>FreeBSD 對於Realtek 8111的jumboframe支援應該要到 FreeBSD 8.0 才能解決。</p>
<p><strong>論功能，FreeNAS 佔優</strong><br />
兩者皆有 iSCSI Target, iSCSI Initiator, NFS, SMB, FTP</p>
<p>但在FTP方面, FreeNAS 佔優。<br />
FreeNAS用proftpd 1.31, 而Openfiler只是proftpd 1.30。雖然版本號相差很少，但可用性就大有不同。<br />
FreeNAS是可以用UTF8的. 用UTF8支援的FTP CLIENT可以見到完整的檔名。而proftpd 1.30 就會出亂碼。</p>
<p>還未計FreeNAS原生有Bittorrent client，基本上可以選定FreeNAS了。</p>
<p><strong>RAID管理，Openfiler LVM+XFS vs FreeNAS ZFS。</strong><br />
在RAID管理方面，Openfiler較強</p>
<p>用到電腦做家用NAS，差不多一定會用RAID。</p>
<p>在空間擴展方面，單以WEB面介面來比較，FreeNAS 較好。因為FreeNAS能用WEB介面使ZFS不斷以Stripe方法擴展。當然Stripe不是真正的RAID。<br />
而Openfiler的Software RAID 只有建立array及加HDD入array為HOT SPARE功能。而且新建的array也不能加到現有的share folder入面。</p>
<p>但Openfiler的優勢是LVM可以在console用指令擴展array.<br />
例如把4碟RAID5加多2碟成為6碟RAID5。</p>
<p>返而FreeNAS的ZFS未能做到。</p>
<p><strong>Finally, LINUX WIN</strong><br />
餘下來的問題是選擇，要功能強大的Openfiler，但沒有UTF8 FTP支援。還是要簡單好用，但RAID未能逹標的FreeNAS?<a href="http://www.stephenyeong.idv.hk/wp/wp-content/uploads/2010/01/proftpd-1.32-on-openfiler.png" rel="lightbox[440]" title="proftpd 1.32 on  openfiler"><img class="size-medium wp-image-445 alignright" title="proftpd 1.32 on  openfiler" src="http://www.stephenyeong.idv.hk/wp/wp-content/uploads/2010/01/proftpd-1.32-on-openfiler-292x300.png" alt="" width="292" height="300" /></a></p>
<p>其實最簡單就要令Openfiler入面的proftpd升給就可以。</p>
<p>設定方法、待續..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stephenyeong.idv.hk/wp/2010/01/openfiler-vs-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

