<?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>Mai.in.th &#187; linux</title>
	<atom:link href="http://mai.in.th/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://mai.in.th</link>
	<description></description>
	<lastBuildDate>Fri, 27 Jan 2012 23:18:34 +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>Shared files ผ่าน Samba แบบกำหนดสิทธิ์ User</title>
		<link>http://mai.in.th/2009/06/16/shared-files-%e0%b8%9c%e0%b9%88%e0%b8%b2%e0%b8%99-samba-%e0%b9%81%e0%b8%9a%e0%b8%9a%e0%b8%81%e0%b8%b3%e0%b8%ab%e0%b8%99%e0%b8%94%e0%b8%aa%e0%b8%b4%e0%b8%97%e0%b8%98%e0%b8%b4%e0%b9%8c-user/</link>
		<comments>http://mai.in.th/2009/06/16/shared-files-%e0%b8%9c%e0%b9%88%e0%b8%b2%e0%b8%99-samba-%e0%b9%81%e0%b8%9a%e0%b8%9a%e0%b8%81%e0%b8%b3%e0%b8%ab%e0%b8%99%e0%b8%94%e0%b8%aa%e0%b8%b4%e0%b8%97%e0%b8%98%e0%b8%b4%e0%b9%8c-user/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 22:07:07 +0000</pubDate>
		<dc:creator>IaMMaI</dc:creator>
				<category><![CDATA[Linux Exp]]></category>
		<category><![CDATA[clarkconnect]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://www.morenetz.com/?p=802</guid>
		<description><![CDATA[ปกติใช้ share แบบ share ที่ทุกคนเปิดเข้ามา เขียน-อ่าน ได้ตามสบายแต่เมื่อใช้งานไปก็พบปัญหาไฟล์ขยะที่ลูกค้ายัดเข้าไว้ยิ่งเยอะขึ้นและยากที่จะตรวจสอบ วันนี้เลยลองหาวิธีกำหนดให้ใช้ user ในการเขียน-อ่าน โดยใช้แนวคิดง่ายๆ กำหนดเป็น 2 user ให้ user นึงอ่านได้อย่างเดียว และอีก user เขียนลงไปได้ด้วย โดยกำหนด user ผ่าน webconfig ของ clarkconnect ขึ้นมาใหม่ 2 อัน และกำหนดให้ใช้ file server ไว้ด้วย หลังจากนั้นกำหนด Security Type เป็นแบบ user ซะ สร้าง &#8230; <a href="http://mai.in.th/2009/06/16/shared-files-%e0%b8%9c%e0%b9%88%e0%b8%b2%e0%b8%99-samba-%e0%b9%81%e0%b8%9a%e0%b8%9a%e0%b8%81%e0%b8%b3%e0%b8%ab%e0%b8%99%e0%b8%94%e0%b8%aa%e0%b8%b4%e0%b8%97%e0%b8%98%e0%b8%b4%e0%b9%8c-user/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p><a href="http://mai.in.th/wp/wp-content/uploads/2009/06/logo-samba.gif" rel="lightbox[802]" title="logo-samba"><img class="size-full wp-image-803 alignleft" title="logo-samba" src="http://mai.in.th/wp/wp-content/uploads/2009/06/logo-samba.gif" alt="logo-samba" width="180" height="93" /></a>ปกติใช้ share แบบ share ที่ทุกคนเปิดเข้ามา เขียน-อ่าน ได้ตามสบายแต่เมื่อใช้งานไปก็พบปัญหาไฟล์ขยะที่ลูกค้ายัดเข้าไว้ยิ่งเยอะขึ้นและยากที่จะตรวจสอบ วันนี้เลยลองหาวิธีกำหนดให้ใช้ user ในการเขียน-อ่าน โดยใช้แนวคิดง่ายๆ กำหนดเป็น 2 user ให้ user นึงอ่านได้อย่างเดียว และอีก user เขียนลงไปได้ด้วย</p>
<p>โดยกำหนด user ผ่าน webconfig ของ clarkconnect ขึ้นมาใหม่ 2 อัน และกำหนดให้ใช้ file server ไว้ด้วย</p>
<p>หลังจากนั้นกำหนด Security Type เป็นแบบ user ซะ</p>
<p>สร้าง folder ที่จะเปิด share โดยกำหนด permission เป็น 777</p>
<p>แก้ smb.conf</p>
<p>#=======================</p>
<p>[Program]<br />
delete readonly = yes</p>
<p>#ใส่ user ที่กำหนดให้อ่านอย่างเดียว<br />
read list = user1</p>
<p>#ใส่ user ที่กำหนดให้เขียนได้ด้วย<br />
write list = user2<br />
path = /home/shared<br />
force directory mode = 777<br />
force create mode = 777<br />
create mode = 777<br />
directory mode = 777</p>
<p>#========================</p>
<p>restart samba เป็นอันจบ</p>
<p>หลังจากนั้นถ้่า login จาก windows เป็น user ใหนก็จะมีสิทธิ์เป็น user นั้นๆ</p>
<footer class="entry-meta">คำค้น : <a href="http://mai.in.th/2009/06/16/shared-files-%e0%b8%9c%e0%b9%88%e0%b8%b2%e0%b8%99-samba-%e0%b9%81%e0%b8%9a%e0%b8%9a%e0%b8%81%e0%b8%b3%e0%b8%ab%e0%b8%99%e0%b8%94%e0%b8%aa%e0%b8%b4%e0%b8%97%e0%b8%98%e0%b8%b4%e0%b9%8c-user/" title="samba clarkconnect">samba clarkconnect</a> (4) | <a href="http://mai.in.th/2009/06/16/shared-files-%e0%b8%9c%e0%b9%88%e0%b8%b2%e0%b8%99-samba-%e0%b9%81%e0%b8%9a%e0%b8%9a%e0%b8%81%e0%b8%b3%e0%b8%ab%e0%b8%99%e0%b8%94%e0%b8%aa%e0%b8%b4%e0%b8%97%e0%b8%98%e0%b8%b4%e0%b9%8c-user/" title="Shared files ผ่าน Samba แบบกำหนดสิทธิ์ User">Shared files ผ่าน Samba แบบกำหนดสิทธิ์ User</a> (3) | <a href="http://mai.in.th/2009/06/16/shared-files-%e0%b8%9c%e0%b9%88%e0%b8%b2%e0%b8%99-samba-%e0%b9%81%e0%b8%9a%e0%b8%9a%e0%b8%81%e0%b8%b3%e0%b8%ab%e0%b8%99%e0%b8%94%e0%b8%aa%e0%b8%b4%e0%b8%97%e0%b8%98%e0%b8%b4%e0%b9%8c-user/" title="กําหนดสิทธิ์ samba">กําหนดสิทธิ์ samba</a> (3) | <a href="http://mai.in.th/2009/06/16/shared-files-%e0%b8%9c%e0%b9%88%e0%b8%b2%e0%b8%99-samba-%e0%b9%81%e0%b8%9a%e0%b8%9a%e0%b8%81%e0%b8%b3%e0%b8%ab%e0%b8%99%e0%b8%94%e0%b8%aa%e0%b8%b4%e0%b8%97%e0%b8%98%e0%b8%b4%e0%b9%8c-user/" title="user samba กำหนดสิทธิ์">user samba กำหนดสิทธิ์</a> (2) | <a href="http://mai.in.th/2009/06/16/shared-files-%e0%b8%9c%e0%b9%88%e0%b8%b2%e0%b8%99-samba-%e0%b9%81%e0%b8%9a%e0%b8%9a%e0%b8%81%e0%b8%b3%e0%b8%ab%e0%b8%99%e0%b8%94%e0%b8%aa%e0%b8%b4%e0%b8%97%e0%b8%98%e0%b8%b4%e0%b9%8c-user/" title="clarkconnect samba">clarkconnect samba</a> (2) |</footer><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://mai.in.th/2009/06/16/shared-files-%e0%b8%9c%e0%b9%88%e0%b8%b2%e0%b8%99-samba-%e0%b9%81%e0%b8%9a%e0%b8%9a%e0%b8%81%e0%b8%b3%e0%b8%ab%e0%b8%99%e0%b8%94%e0%b8%aa%e0%b8%b4%e0%b8%97%e0%b8%98%e0%b8%b4%e0%b9%8c-user/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Block Website ด้วย Squid 2.7</title>
		<link>http://mai.in.th/2009/01/05/block-website-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-squid-27/</link>
		<comments>http://mai.in.th/2009/01/05/block-website-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-squid-27/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 04:29:46 +0000</pubDate>
		<dc:creator>IaMMaI</dc:creator>
				<category><![CDATA[Linux Exp]]></category>
		<category><![CDATA[block web]]></category>
		<category><![CDATA[clarkconnect]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[squid]]></category>

		<guid isPermaLink="false">http://www.maixblog.com/?p=391</guid>
		<description><![CDATA[วิธีการเขียน config squid.conf ให้ บล็อคเว็บไซท์ ที่ต้องการตามกำหนดเวลา และยังสามารถกำหนด เครื่องที่ไม่บล็อคได้ไม่ยากเย็น acl time_block time M T W H F A S 08:00-23:00 #ตั้งเวลาที่จะบล็อคในที่นี้บล็อคตั้งแต่ 8.00 - 23.00 น. acl notblock  src 192.168.0.110 192.168.0.123 #ตั้งเครื่องที่จะปล่อยให้เข้าเว็บไซท์ที่บล็อคได้ตลอดเวลา acl blockweb url_regex -i '/etc/squid/blockweb.txt' #สร้างไฟล์ชื่อ blockweb.txt เก็บ keyword หรือ &#8230; <a href="http://mai.in.th/2009/01/05/block-website-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-squid-27/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>วิธีการเขียน <strong>config squid.conf</strong> ให้ <strong>บล็อคเว็บไซท์ </strong>ที่ต้องการตามกำหนดเวลา และยังสามารถกำหนด เครื่องที่ไม่บล็อคได้ไม่ยากเย็น</p>
<p><span id="more-391"></span></p>
<pre lang="php">acl time_block time M T W H F A S 08:00-23:00
#ตั้งเวลาที่จะบล็อคในที่นี้บล็อคตั้งแต่ 8.00 - 23.00 น.

acl notblock  src 192.168.0.110 192.168.0.123
#ตั้งเครื่องที่จะปล่อยให้เข้าเว็บไซท์ที่บล็อคได้ตลอดเวลา

acl blockweb url_regex -i '/etc/squid/blockweb.txt'
#สร้างไฟล์ชื่อ blockweb.txt เก็บ keyword หรือ url  ของเว็บที่จะบล็อค
#1 เว็บ/คำ ต่อ 1 บรรทัด ไว้ที่ /etc/squid/

http_access allow notblock  blockweb
#ปล่อยให้เครื่องที่กำหนดไว้เข้าดูได้

http_access deny blockweb time_block
#บล็อคการเข้าชมตามเวลาที่กำหนด</pre>
<footer class="entry-meta">คำค้น : <a href="http://mai.in.th/2009/01/05/block-website-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-squid-27/" title="squid block web">squid block web</a> (115) | <a href="http://mai.in.th/2009/01/05/block-website-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-squid-27/" title="squid block facebook">squid block facebook</a> (68) | <a href="http://mai.in.th/2009/01/05/block-website-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-squid-27/" title="squid 2 7">squid 2 7</a> (42) | <a href="http://mai.in.th/2009/01/05/block-website-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-squid-27/" title="block web facebook">block web facebook</a> (36) | <a href="http://mai.in.th/2009/01/05/block-website-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-squid-27/" title="block web squid">block web squid</a> (35) |</footer><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://mai.in.th/2009/01/05/block-website-%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-squid-27/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Shutdown using Power Button [ClarkConnect]</title>
		<link>http://mai.in.th/2008/09/15/shutdown-using-power-button-clarkconnect/</link>
		<comments>http://mai.in.th/2008/09/15/shutdown-using-power-button-clarkconnect/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 14:58:25 +0000</pubDate>
		<dc:creator>IaMMaI</dc:creator>
				<category><![CDATA[Linux Exp]]></category>
		<category><![CDATA[clarkconnect]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[shutdown]]></category>

		<guid isPermaLink="false">http://www.maixblog.com/?p=87</guid>
		<description><![CDATA[ภพ ร้าน Room19 ถามว่าจะปิดเครื่อง clarkconnect ง่ายๆ ได้ไงโดยไม่ต้องใช้ command หรือเข้าไปปิดในเว็บ ไปค้นมาให้เจอวิธีการปรับใช้ปุ่ม Power ในการปิดเครื่อง อ่า แหล่มๆ จดๆๆ Pressing the power button to shutdown a computer is always a bad thing to do, to properly shut down the system you must either log &#8230; <a href="http://mai.in.th/2008/09/15/shutdown-using-power-button-clarkconnect/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>ภพ ร้าน Room19 ถามว่าจะปิดเครื่อง clarkconnect ง่ายๆ ได้ไงโดยไม่ต้องใช้ command หรือเข้าไปปิดในเว็บ ไปค้นมาให้เจอวิธีการปรับใช้ปุ่ม Power ในการปิดเครื่อง อ่า แหล่มๆ จดๆๆ</p>
<p>Pressing the power button to shutdown a computer is always a bad thing to do, to  properly shut down the system you must either log into the web interface and  browse to &#8216;Tools &#8211; Shutdown/Restart&#8217; or log in via PuTTY and enter the  following:</p>
<pre lang="dos">shutdown -h now</pre>
<p>This is a real problem especially as you will most probably have to power up one  computer just to power down the other. A very useful tool can be installed that  automatically runs the shutdown command for you when the Power Button is  pressed safely shutting down the server.</p>
<p>Login in as root using PuTTY and type:</p>
<pre lang="dos">apt-get update
apt-get clean
apt-get install acpid</pre>
<p>When you reboot you will find the power button now properly shuts down your  computer.</p>
<p>(If this fails to work, it could be that your hardware doesn&#8217;t support the  Advanced Configuration &amp; Power Interface (ACPI) standard &#8211; check your  motherboard&#8217;s BIOS settings and make sure it&#8217;s switched on.)</p>
<p>ACPID can be configured to run other scripts when acpi events occur, the  configuration file is found at <strong>/etc/acpi/events/sample.conf</strong> if you fancy  developing this further.</p>
<p>other tweaking @ <a href="http://www.ulverston.myzen.co.uk/mini-itx/pages/tuning.htm">http://www.ulverston.myzen.co.uk/mini-itx/pages/tuning.htm</a></p>
<footer class="entry-meta">คำค้น : <a href="http://mai.in.th/2008/09/15/shutdown-using-power-button-clarkconnect/" title="กดปุ่มpowerปิดcc4 3">กดปุ่มpowerปิดcc4 3</a> (5) | <a href="http://mai.in.th/2008/09/15/shutdown-using-power-button-clarkconnect/" title="power bottom clarkconnect">power bottom clarkconnect</a> (4) | <a href="http://mai.in.th/2008/09/15/shutdown-using-power-button-clarkconnect/" title="shutdown clarkconnect acpid">shutdown clarkconnect acpid</a> (2) | <a href="http://mai.in.th/2008/09/15/shutdown-using-power-button-clarkconnect/" title="clarkconnect ชัดดาว">clarkconnect ชัดดาว</a> (2) | <a href="http://mai.in.th/2008/09/15/shutdown-using-power-button-clarkconnect/" title="acpi clarkconnect">acpi clarkconnect</a> (2) |</footer><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://mai.in.th/2008/09/15/shutdown-using-power-button-clarkconnect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Clarkconnect 4.3 on Asus p5gc-mx 1333</title>
		<link>http://mai.in.th/2008/09/12/install-clarkconnect-43-on-asus-p5gc-mx-1333/</link>
		<comments>http://mai.in.th/2008/09/12/install-clarkconnect-43-on-asus-p5gc-mx-1333/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 22:13:03 +0000</pubDate>
		<dc:creator>IaMMaI</dc:creator>
				<category><![CDATA[Linux Exp]]></category>
		<category><![CDATA[asus]]></category>
		<category><![CDATA[clarkconnect]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.maixblog.com/?p=12</guid>
		<description><![CDATA[< !- - google_ad_section_start (weight=ignore) - -> เนื่องจากความซนทำให้ต้องลงกันใหม่บ่อยๆ วันนี้มาเขียน Step การ Install และรวมไฟล์ที่จำเป็นไว้ที่เดียวเลย คราวหน้า (ต้องมีแน่ๆ) จะได้ง่าย ขึ้น 1. Install CC ด้วยCD ธรรมดา จนเสร็จจัดการให้ต่อเข้าวง Lan ให้เรียบร้อย และต่อเข้า Internet ให้ได้ เนื่องจากเจ้า Lan Onboard ของ p5gc-mx 1333 นั้นเป็น attansic ซึ่ง CC ไม่สามารถใช้งานได้เลยต้องลง Driver &#8230; <a href="http://mai.in.th/2008/09/12/install-clarkconnect-43-on-asus-p5gc-mx-1333/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p>< !- - google_ad_section_start (weight=ignore) - -></p>
<p>เนื่องจากความซนทำให้ต้องลงกันใหม่บ่อยๆ วันนี้มาเขียน Step การ Install และรวมไฟล์ที่จำเป็นไว้ที่เดียวเลย คราวหน้า (ต้องมีแน่ๆ) จะได้ง่าย ขึ้น</p>
<p>1. Install  CC ด้วยCD ธรรมดา จนเสร็จจัดการให้ต่อเข้าวง Lan ให้เรียบร้อย และต่อเข้า Internet ให้ได้ เนื่องจากเจ้า Lan Onboard ของ p5gc-mx 1333 นั้นเป็น attansic ซึ่ง CC ไม่สามารถใช้งานได้เลยต้องลง Driver เอง</p>
<p>2. เราก็จะต้องทำให้ Lan Onboard ใช้ได้ก่อนโดยการ Compile Driver ตามขั้นตอนต่อไปนี้</p>
<p><code>apt-get install cc-devel<br />
apt-get install kernel-sourcecode#2.6.18-93.cc4<br />
apt-get install kernel-devel#2.6.18-93.cc4 </code></p>
<p>3. หลังจากจัดการ Download Tool ในการ Compile มาแล้วก็ Download Driver<br />
<code>wget ftp://ftp.hogchain.net/pub/linux/attansic/vendor_driver/l2-linux-v1.0.40.4.tar.gz</code></p>
<p>4.แตกไฟล์ Driver ด้วย<br />
<code>tar -zxvf l2-linux-v1.0.40.4.tar.gz</code></p>
<p>5.หลังจากนั้นต้อง Edit File kcompat.h เพราะ Compile เลยจะไม่ผ่านต้องแก้โดย Delete บรรทัดที่ 1084 ทิ้งไป<br />
<code>typedef irqreturn_t (*irq_handler_t)(int, void*, struct pt_regs *);</code></p>
<p>6. Compile<br />
<code>make install</code></p>
<p>7. Edit ไฟล์ /etc/modprobe.conf Add alias eth<strong>2</strong> atl2 ลงไป ให้ Lan ตัวนี้เป็นตัวที่ 3</p>
<p>8. Call Driver<br />
<code>depmod<br />
modprobe eth2</code></p>
<p>9. Reboot System ก็จะใช้งาน Lan Onboard ได้</p>
<p>10. Install Frox เพื่อเก็บ Patch Game ต่างๆ ใช้ตัว SiamCaFeTruefasterFroxV4.1 Download >><br />
siamcafe truefaster frox v4.1</p>
<p>11. tar &#8211;> ./install</p>
<p>12. Forward Port เพื่อ Create DotA, แยก Port Games กะ Internet</p>
<p>13.Config Proxy แบบ Transparent</p>
<p>14. Done.</p>
<p>< !- - google_ad_section_end - -></p>
<footer class="entry-meta">คำค้น : <a href="http://mai.in.th/2008/09/12/install-clarkconnect-43-on-asus-p5gc-mx-1333/" title="clarkconnect logo">clarkconnect logo</a> (2) | <a href="http://mai.in.th/2008/09/12/install-clarkconnect-43-on-asus-p5gc-mx-1333/" title="webconfig samba clarkconnect">webconfig samba clarkconnect</a> (2) | <a href="http://mai.in.th/2008/09/12/install-clarkconnect-43-on-asus-p5gc-mx-1333/" title="SiamCaFeTruefasterFroxV4 1">SiamCaFeTruefasterFroxV4 1</a> (2) | <a href="http://mai.in.th/2008/09/12/install-clarkconnect-43-on-asus-p5gc-mx-1333/" title="compile driver clarkconnect">compile driver clarkconnect</a> (2) | <a href="http://mai.in.th/2008/09/12/install-clarkconnect-43-on-asus-p5gc-mx-1333/" title="วิธีบล๊อกเวป cc4 3">วิธีบล๊อกเวป cc4 3</a> (2) |</footer><!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://mai.in.th/2008/09/12/install-clarkconnect-43-on-asus-p5gc-mx-1333/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

