<?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>Just My Life</title>
	<atom:link href="http://imrgill.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://imrgill.com</link>
	<description>I&#039;m mrGilL, I&#039;m Newbie Admin</description>
	<lastBuildDate>Mon, 19 Dec 2011 11:46:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>อยากรู้ว่าเครื่อง Ubuntu แสนรักของเราใส่แรมได้สูงสุดเท่าไหร่ทำไงหนอ</title>
		<link>http://imrgill.com/2011/12/19/how-to-find-maximum-of-ram-memory-on-ubuntu.html</link>
		<comments>http://imrgill.com/2011/12/19/how-to-find-maximum-of-ram-memory-on-ubuntu.html#comments</comments>
		<pubDate>Mon, 19 Dec 2011 11:23:49 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Daily command]]></category>
		<category><![CDATA[Daily tips]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[memory]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=684</guid>
		<description><![CDATA[วันนี้เป็น How To สั้นๆ ครับ สำหรับใครที่อยากรู้ว่าเครื่องคอมพิวเตอร์ที่ติดตั้ง Ubuntu ของตัวเองใส่ Ram ได้สูงสุดกี่ GB คำสั่งมีดังนี้ ง่ายแค่สั่ง sudo dmidecode --type memory ผลที่ได้ mrgill@mrgill-laptop:~$ sudo dmidecode --type memory [sudo] password for mrgill: # dmidecode 2.9 SMBIOS 2.6 present. Handle 0x0016, DMI type 16, 15 bytes Physical Memory Array Location: System Board Or Motherboard Use: System Memory Error Correction Type: None [...]]]></description>
			<content:encoded><![CDATA[<p>วันนี้เป็น How To สั้นๆ ครับ สำหรับใครที่อยากรู้ว่าเครื่องคอมพิวเตอร์ที่ติดตั้ง Ubuntu ของตัวเองใส่ Ram ได้สูงสุดกี่ GB คำสั่งมีดังนี้<br />
ง่ายแค่สั่ง</p>
<pre>
<div class="codesnip-container" >sudo dmidecode --type memory</div>
</pre>
<p>ผลที่ได้</p>
<pre>
<div class="codesnip-container" >mrgill@mrgill-laptop:~$ sudo dmidecode --type memory
[sudo] password for mrgill:
# dmidecode 2.9
SMBIOS 2.6 present.

Handle 0x0016, DMI type 16, 15 bytes
Physical Memory Array
	Location: System Board Or Motherboard
	Use: System Memory
	Error Correction Type: None
	<u>Maximum Capacity: 8 GB</u>
	Error Information Handle: Not Provided
	Number Of Devices: 2

Handle 0x0017, DMI type 17, 28 bytes
Memory Device
	Array Handle: 0x0016
	Error Information Handle: No Error
	Total Width: 64 bits
	Data Width: 64 bits
	Size: 4096 MB
	Form Factor: SODIMM
	Set: 1
	Locator: DIMM_A
	Bank Locator: Not Specified
	Type: <OUT OF SPEC>
	Type Detail: Synchronous
	Speed: 1333 MHz (0.8 ns)
	Manufacturer: 0198
	Serial Number: 8C1CE17A
	Asset Tag: 1137
	Part Number: 99U5428-040.A01G  

Handle 0x0018, DMI type 17, 28 bytes
Memory Device
	Array Handle: 0x0016
	Error Information Handle: No Error
	Total Width: 64 bits
	Data Width: 64 bits
	Size: 4096 MB
	Form Factor: SODIMM
	Set: 1
	Locator: DIMM_B
	Bank Locator: Not Specified
	Type: <OUT OF SPEC>
	Type Detail: Synchronous
	Speed: 1333 MHz (0.8 ns)
	Manufacturer: 80CE
	Serial Number: 673855AF
	Asset Tag: 1120
	Part Number: M471B5273DH0-CH9</div>
</pre>
<p>จากตัวอย่างเครื่อง Notebook Dell Inspiron N4010 ของผมสามารถใส่ Ram ได้สูงสุดแค่ 8GB และยังบอกอีกว่าใช้ DIMM ไหนไปบ้าง</p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2011/12/19/how-to-find-maximum-of-ram-memory-on-ubuntu.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>วิธีติดตั้ง Visual CertExam Suite บน Ubuntu 11.10</title>
		<link>http://imrgill.com/2011/12/11/how-to-visual-certexam-suite-on-ubuntu-11-10.html</link>
		<comments>http://imrgill.com/2011/12/11/how-to-visual-certexam-suite-on-ubuntu-11-10.html#comments</comments>
		<pubDate>Sun, 11 Dec 2011 11:38:31 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Daily tips]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[.vce]]></category>
		<category><![CDATA[visual certexam]]></category>
		<category><![CDATA[wine]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=681</guid>
		<description><![CDATA[วันนี้ขอแนะนำ Dark Side Technical เกี่ยวกับการติดตั้งโปรแกรม Visual CertExam Suite สำหรับท่านที่ต้องการลองทำข้อสอบจำลอง Certify ต่างบน Ubuntu กันครับ ในที่นี้ผมขอใช้ version 1.9.987 นะครับ อันนี้ Search หาใน Google กันได้เลยมี Key ให้เรียบร้อยผมแนะนำแค่นี้พอละกัน ส่วนใหญ่จะเป็น zip ไฟล์มีทั้งตัวติดตั้งและ Registry Key สำหรับ Activate ขั้นตอนการติดตั้ง 1. หาที่ download ไฟล์กันมาก่อน อันนี้หาเองครับลอง search ใน google ดู key ประมาณ Visual CertExam Suite with reg key ก็จะเจอ 2. ได้ไฟล์ .zip มาก็แตกมันออกครับ 3. [...]]]></description>
			<content:encoded><![CDATA[<p>วันนี้ขอแนะนำ Dark Side Technical เกี่ยวกับการติดตั้งโปรแกรม Visual CertExam Suite สำหรับท่านที่ต้องการลองทำข้อสอบจำลอง Certify ต่างบน Ubuntu กันครับ ในที่นี้ผมขอใช้ version 1.9.987 นะครับ<br />
อันนี้ Search หาใน Google กันได้เลยมี Key ให้เรียบร้อยผมแนะนำแค่นี้พอละกัน ส่วนใหญ่จะเป็น zip ไฟล์มีทั้งตัวติดตั้งและ Registry Key สำหรับ Activate</p>
<p>ขั้นตอนการติดตั้ง<br />
1. หาที่ download ไฟล์กันมาก่อน อันนี้หาเองครับลอง search ใน google ดู key ประมาณ Visual CertExam Suite with reg key ก็จะเจอ<br />
2. ได้ไฟล์ .zip มาก็แตกมันออกครับ<br />
3. ติดตั้ง package wine หากใครมีอยู่แล้วก็ไม่ต้องติดตั้ง<br />
4. เปิด Terminal แล้ว cd เข้าไปยัง Directory ที่เก็บไฟล์ที่แตกออกมาเมื่อกี้<br />
5. ใช้คำสั่ง</p>
<pre>
<div class="codesnip-container" >$ wine visual_certexam_suite_setup.exe</div>
</pre>
<p>หรือจะคลิกขวาที่ไฟล์ visual_certexam_suite_setup.exe แล้วเลือก Open With Wine Windows Program Loader<br />
จากนั้นทำตามขั้นตอน step next ไปเรื่อยๆ จนเสร็จ<br />
6. เมื่อติดตั้งเสร็จแล้วจะเข้า Registry Key เข้าไปยังไงนี่แหละปัญหา มัน Double Click ติดตั้งไม่ได้เหมือนใน Windows เรามีวิธีแก้ไม่ยากครับ ให้เปิด Terminal ขึ้นมา จากนั้นใช้คำสั่ง</p>
<pre>
<div class="codesnip-container" >mrgill@mrgill-laptop:~$ regedit</div>
</pre>
<p>7. จะมีหน้าต่างโปรแกรม Registry Editor ขึ้นมาเหมือนใน Windows คลิกที่เมนู Registry -> เลือกเมนู Import Registry File&#8230;<br />
8. ลองเรียกโปรแกรม Visual CertExam กันเลย ลอง Add ไฟล์ .vce กันได้เลย</p>
<p>เท่านี้ก็พร้อมใช้งานแล้วครับผม</p>
<p>โชคดีในการสอบ</p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2011/12/11/how-to-visual-certexam-suite-on-ubuntu-11-10.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>สูตรคำนวณพื้นที่ Disk สำหรับติดตั้ง Zimbra</title>
		<link>http://imrgill.com/2011/12/07/example-formula-for-calculate-disk-storage-for-install-zimbra.html</link>
		<comments>http://imrgill.com/2011/12/07/example-formula-for-calculate-disk-storage-for-install-zimbra.html#comments</comments>
		<pubDate>Wed, 07 Dec 2011 07:11:26 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Daily tips]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[mail server]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[zimbra]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=678</guid>
		<description><![CDATA[STORAGE CALCULATION EXAMPLE (Based on ‘Mailbox Usage of 200 MB’ and 500 users) + User Data: 500 users with 200 MB = 100 GB user data + MySQL data: 5% of 100 GB (User Data): 5 GB + Zimbra binaries: 10 GB + Zimbra logs: 20 GB + Zimbra indexes: 25% of 100GB (User Data) [...]]]></description>
			<content:encoded><![CDATA[<p><strong>STORAGE CALCULATION EXAMPLE</strong><span style="font-size: x-small;"><br />
(Based on ‘Mailbox Usage of 200 MB’ and 500 users)<br />
</span><br />
+ User Data: 500 users with 200 MB = 100 GB user data<br />
+ MySQL data: 5% of 100 GB (User Data): 5 GB<br />
+ Zimbra binaries: 10 GB<br />
+ Zimbra logs: 20 GB<br />
+ Zimbra indexes: 25% of 100GB (User Data) = 25 GB<br />
<strong><br />
SUBTOTAL:</strong> 100 + 5 + 10 + 20 + 25 = 160 GB<br />
<strong>Backups:</strong> 160 % of Subtotal: 160 * 160% = 256 GB for backups<br />
<strong>TOTAL:</strong> 160 + 256 = 416 GB</p>
<p>อ้างอิง : <a href="http://blog.zimbra.com/blog/archives/2009/05/6-tips-for-a-smooth-zimbra-server-install.html">http://blog.zimbra.com/blog/archives/2009/05/6-tips-for-a-smooth-zimbra-server-install.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2011/12/07/example-formula-for-calculate-disk-storage-for-install-zimbra.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>คลอดละครับ script auto login truewifi 3.0 หมดปัญหา pc/7eleven</title>
		<link>http://imrgill.com/2011/11/27/script-truewifi-auto-login-v3-0.html</link>
		<comments>http://imrgill.com/2011/11/27/script-truewifi-auto-login-v3-0.html#comments</comments>
		<pubDate>Sun, 27 Nov 2011 02:36:23 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Daily tips]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[google chrome]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[truewifi]]></category>
		<category><![CDATA[user script]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=676</guid>
		<description><![CDATA[การติดตั้งเหมือนเดิมครับ อ่านได้ที่ Script ต่อ True Wi-Fi อัตโนมัติ(Truewifi Auto Login V2.04) เวอร์ชันนี้ออกมาเพื่อแก้ปัญหา URL สำหรับบางพื้นที่ที่เปลี่ยนหน้า Login เป็น pc/7eleven โดยเฉพาะ change log : 1. ตัวแปร username ที่สามารถใส่ username@domain ได้โดยเลยที่ไม่ต้องระบุเป็นตัวเลข (ขอบคุณท่าน Warun Kietduriyakul แห่ง jomyut.net สำหรับ script ตรงส่วนนี้) 2. ผู้ใช้ต้องกำหนดค่า VLAN และ MAC เอง วิธีง่ายๆ ก็เอาค่านี้มาจาก URL Redirect นั้นแหละครับตรง "VLAN=851&#038;MAC=00:21:65:aa:f0:aa" มาใส่เป็นตัวแปร จากตัวอย่าง ให้ใส่เป็น var vlan = "851"; และ var [...]]]></description>
			<content:encoded><![CDATA[<p>การติดตั้งเหมือนเดิมครับ อ่านได้ที่ <a href="http://imrgill.com/2009/12/18/script-truewifi-auto-login-v2-04.html" target="_blank">Script ต่อ True Wi-Fi อัตโนมัติ(Truewifi Auto Login V2.04)</a></p>
<p>เวอร์ชันนี้ออกมาเพื่อแก้ปัญหา URL สำหรับบางพื้นที่ที่เปลี่ยนหน้า Login เป็น pc/7eleven โดยเฉพาะ</p>
<p>change log :</p>
<pre>
<div class="codesnip-container" >1. ตัวแปร username ที่สามารถใส่ username@domain ได้โดยเลยที่ไม่ต้องระบุเป็นตัวเลข (ขอบคุณท่าน Warun Kietduriyakul แห่ง jomyut.net สำหรับ script ตรงส่วนนี้)
2. ผู้ใช้ต้องกำหนดค่า VLAN และ MAC เอง วิธีง่ายๆ ก็เอาค่านี้มาจาก URL Redirect นั้นแหละครับตรง "VLAN=851&#038;MAC=00:21:65:aa:f0:aa" มาใส่เป็นตัวแปร จากตัวอย่าง ให้ใส่เป็น
   var vlan = "851"; และ
   var mac = "00:21:65:aa:f0:aa";
3. เนื่องด้วยมีผู้ใช้ script นี้รายงานมาว่า Truewifi ได้มีการเปลี่ยน URL สำหรับ Login ในบางพื้นที่เป็น "portal.trueinternet.co.th/wifiauthen/pc/7eleven/wi-fi_login.php" ผมจึงแก้ script ตรงส่วนนี้ให้แล้วโดยเพิ่ม if ให้ตรวจสอบ URL ว่าเป็นแบบเก่าหรือแบบใหม่นี้</div>
</pre>
<p>เอาไปลองใช้กันดูครับ</p>
<p><strong>ดาวน์โหลด : <a href="http://www.ziddu.com/download/17765869/auto_truewifi_3.1.user.zip.html" target="_blank">auto_truewifi_3.1.user.js.zip</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2011/11/27/script-truewifi-auto-login-v3-0.html/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>แก้ปัญหา traceroute: raw socket: Protocol not supported บน Solaris Containers</title>
		<link>http://imrgill.com/2011/11/22/%e0%b9%81%e0%b8%81%e0%b9%89%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-traceroute-raw-socket-protocol-not-supported-%e0%b8%9a%e0%b8%99-solaris-containers.html</link>
		<comments>http://imrgill.com/2011/11/22/%e0%b9%81%e0%b8%81%e0%b9%89%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-traceroute-raw-socket-protocol-not-supported-%e0%b8%9a%e0%b8%99-solaris-containers.html#comments</comments>
		<pubDate>Tue, 22 Nov 2011 15:06:45 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Daily tips]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[net_rawaccess]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[solaris 10]]></category>
		<category><![CDATA[solaris containers]]></category>
		<category><![CDATA[sun]]></category>
		<category><![CDATA[traceroute]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=674</guid>
		<description><![CDATA[ช่วงนี้จับเครื่อง Sun บ่อยครับเลยเขียนเรื่อง Solaris บ่อย เช่น วันนี้เจอปัญหา bash-2.03$ /usr/sbin/traceroute x.x.x.x traceroute: raw socket: Protocol not supported ปัญหานี้เกิดจากเราไม่ได้กำหนด Privileges Non-Global Zones บางตัวเข้าไปครับซึ่งจะเป็นเฉพาะกับ Branded Zones เท่านั้นเช่นถ้าเราติดตั้ง Non-Global Zones ที่เป็น Solaris 9 วิธีแก้ปัญหานี้คือให้เราเพิ่ม Privileges net_rawaccess เข้าไป ขั้นตอน zonecfg -z &#60;zonename&#62; set limitpriv=default,sys_admin,net_rawaccess verify commit exit zoneadm -z &#60;zonename&#62; reboot หลังจาก Reboot เสร็จก็ลองใช้คำสั่ง traceroute ดูครับก็น่าจะใช้ได้แล้ว แหล่งข้อมูล : http://solarisbackupandstorage.wordpress.com/2011/09/17/solaris-branded-zones/]]></description>
			<content:encoded><![CDATA[<p>ช่วงนี้จับเครื่อง Sun บ่อยครับเลยเขียนเรื่อง Solaris บ่อย เช่น วันนี้เจอปัญหา</p>
<pre>
<div class="codesnip-container" >bash-2.03$ /usr/sbin/traceroute x.x.x.x
traceroute: raw socket: Protocol not supported</div>
</pre>
<p>ปัญหานี้เกิดจากเราไม่ได้กำหนด Privileges Non-Global Zones บางตัวเข้าไปครับซึ่งจะเป็นเฉพาะกับ Branded Zones เท่านั้นเช่นถ้าเราติดตั้ง Non-Global Zones ที่เป็น Solaris 9<br />
วิธีแก้ปัญหานี้คือให้เราเพิ่ม Privileges net_rawaccess เข้าไป<br />
ขั้นตอน</p>
<pre>
<div class="codesnip-container" >zonecfg -z &#60;zonename&#62;
set limitpriv=default,sys_admin,net_rawaccess
verify
commit
exit
zoneadm -z &#60;zonename&#62; reboot</div>
</pre>
<p>หลังจาก Reboot เสร็จก็ลองใช้คำสั่ง traceroute ดูครับก็น่าจะใช้ได้แล้ว<br />
แหล่งข้อมูล : <a href="http://solarisbackupandstorage.wordpress.com/2011/09/17/solaris-branded-zones/" target="_blank">http://solarisbackupandstorage.wordpress.com/2011/09/17/solaris-branded-zones/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2011/11/22/%e0%b9%81%e0%b8%81%e0%b9%89%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-traceroute-raw-socket-protocol-not-supported-%e0%b8%9a%e0%b8%99-solaris-containers.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Daily Tips : การออกจากคำสั่ง zlogin บน Solaris 10</title>
		<link>http://imrgill.com/2011/11/20/daily-tips-%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%ad%e0%b8%ad%e0%b8%81%e0%b8%88%e0%b8%b2%e0%b8%81%e0%b8%84%e0%b8%b3%e0%b8%aa%e0%b8%b1%e0%b9%88%e0%b8%87-zlogin-%e0%b8%9a%e0%b8%99-solaris-10.html</link>
		<comments>http://imrgill.com/2011/11/20/daily-tips-%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%ad%e0%b8%ad%e0%b8%81%e0%b8%88%e0%b8%b2%e0%b8%81%e0%b8%84%e0%b8%b3%e0%b8%aa%e0%b8%b1%e0%b9%88%e0%b8%87-zlogin-%e0%b8%9a%e0%b8%99-solaris-10.html#comments</comments>
		<pubDate>Sun, 20 Nov 2011 08:45:42 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Daily tips]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[solaris 10]]></category>
		<category><![CDATA[solaris containers]]></category>
		<category><![CDATA[zlogin]]></category>
		<category><![CDATA[zone]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=672</guid>
		<description><![CDATA[คำสัั่ง zlogin เป็นคำสั่งสำหรับเปิดหน้า console ของ containers ก็เปรียบเสมือนที่เราเอาสาย console ไปเสียบกับช่อง console หน้าเครื่องนั้นแหละครับ แต่ปกติตอนเราเสียบสาย console เราก็สามารถ logout และถอดสาย console ออกได้ แต่คำสั่ง zlogin เมื่อ logout ออกมาแล้วก็จะค้างอยู่ที่หน้า console รอให้เรา login ใหม่จะถอดสายก็ไม่ได้เพราะมันเป็น virtual console ทางออกของคำสั่งนี้มีดังนี้ครับ ตัวอย่าง bash-3.00# zlogin -e \@ -C sol10_db_acc [Connected to zone 'sol10_db_acc' console] bash-3.00# id uid=0(root) gid=0(root) bash-3.00# uname -a SunOS ACB_DB 5.10 Generic_142909-17 sun4u sparc [...]]]></description>
			<content:encoded><![CDATA[<p>คำสัั่ง zlogin เป็นคำสั่งสำหรับเปิดหน้า console ของ containers ก็เปรียบเสมือนที่เราเอาสาย console ไปเสียบกับช่อง console หน้าเครื่องนั้นแหละครับ แต่ปกติตอนเราเสียบสาย console เราก็สามารถ logout และถอดสาย console ออกได้ แต่คำสั่ง zlogin เมื่อ logout ออกมาแล้วก็จะค้างอยู่ที่หน้า console รอให้เรา login ใหม่จะถอดสายก็ไม่ได้เพราะมันเป็น virtual console ทางออกของคำสั่งนี้มีดังนี้ครับ</p>
<p>ตัวอย่าง</p>
<pre>
<div class="codesnip-container" >bash-3.00# zlogin -e \@ -C sol10_db_acc
[Connected to zone 'sol10_db_acc' console]

bash-3.00# id
uid=0(root) gid=0(root)
bash-3.00# uname -a
SunOS ACB_DB 5.10 Generic_142909-17 sun4u sparc SUNW,Netra-T12
bash-3.00# ls
#UNTITLED#   bin          etc          kernel       oracle       thai
-e           cdrom        export       lib          platform     tmp
1            core         fsbackup.sh  lost+found   proc         u01
Desktop      dev          fsbt         mnt          sbin         usr
Mail         dir          home         net          sqlnet.log   var
TT_DB        dotprofile   k1           opt          system       vsm_backup
bash-3.00# <strong>@.</strong>
[Connection to zone 'sol10_db_acc' console closed]
bash-3.00# uname -a
SunOS vsm 5.10 Generic_142909-17 sun4u sparc SUNW,Netra-T12
bash-3.00#</div>
</pre>
<p>จากตัวอย่างผมเปิด console ของ container ที่ชื่อ sol10_db_acc ด้วยการใช้คำสั่ง</p>
<pre>
<div class="codesnip-container" >bash-3.00# zlogin -e \@ -C sol10_db_acc</div>
</pre>
<p>พารามิเตอร์ -e เป็นตัวบอกว่าเราจะใช้ key อะไรในการออกจาก console ซึ่งในที่นี้ผมใช้ @ ซึ่งวิธีการออกจาก console ก็เพียงแค่พิมพ์ <strong>@.</strong> ย้ำกันอีกทีครับ @. ต้องมี . ตามหลัง @ ด้วยนะครับ แค่นี้เราก็สามารถออกจาก console ของ containers ได้แล้ว</p>
<pre>
<div class="codesnip-container" >bash-3.00# <strong>@.</strong>
[Connection to zone 'sol10_db_acc' console closed]</div>
</pre>
<p>แหล่งข้อมูล : <a href="http://www.tech-recipes.com/rx/891/solaris-10-connect-or-login-to-zone-console/" target="_blank">http://www.tech-recipes.com/rx/891/solaris-10-connect-or-login-to-zone-console/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2011/11/20/daily-tips-%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%ad%e0%b8%ad%e0%b8%81%e0%b8%88%e0%b8%b2%e0%b8%81%e0%b8%84%e0%b8%b3%e0%b8%aa%e0%b8%b1%e0%b9%88%e0%b8%87-zlogin-%e0%b8%9a%e0%b8%99-solaris-10.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>รวม link เกี่ยวกับ NFS บน Solaris 10 ครับ</title>
		<link>http://imrgill.com/2011/11/18/%e0%b8%a3%e0%b8%a7%e0%b8%a1-link-%e0%b9%80%e0%b8%81%e0%b8%b5%e0%b9%88%e0%b8%a2%e0%b8%a7%e0%b8%81%e0%b8%b1%e0%b8%9a-nfs-%e0%b8%9a%e0%b8%99-solaris-10-%e0%b8%84%e0%b8%a3%e0%b8%b1%e0%b8%9a.html</link>
		<comments>http://imrgill.com/2011/11/18/%e0%b8%a3%e0%b8%a7%e0%b8%a1-link-%e0%b9%80%e0%b8%81%e0%b8%b5%e0%b9%88%e0%b8%a2%e0%b8%a7%e0%b8%81%e0%b8%b1%e0%b8%9a-nfs-%e0%b8%9a%e0%b8%99-solaris-10-%e0%b8%84%e0%b8%a3%e0%b8%b1%e0%b8%9a.html#comments</comments>
		<pubDate>Fri, 18 Nov 2011 08:27:02 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Daily tips]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[solaris 10]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=670</guid>
		<description><![CDATA[วันนี้เจอปัญหา bash-3.00# svcs network/nfs/server STATE STIME FMRI disable 15:02:42 svc:/network/nfs/server:default ทำยังไงก็ไม่ยอม online สักทีเลยค้นเจอ ปัญหาดังกล่าวเกิดมาจากไฟล์ /etc/dfs/dfstab ไม่มีข้อมูลที่จะ share วิธีแก้ไขก็คือใส่บรรทัด share อะไรไปก็ได้เพื่อให้มันสามารถสั่งให้ service online ได้เช่น share -F nfs -o nosuid,rw=@10.0.22.0/23,anon=60001 -d "home dirs" /export/home จากนั้นให้ลองสั่ง restart service nfs ดู bash-3.00# svcadm restart network/nfs/server bash-3.00# svcs network/nfs/server STATE STIME FMRI online 15:10:42 svc:/network/nfs/server:default ทีนี้ก็พร้อมสำหรับแชร์ด้วยคำสั่ง share แล้วครับ แหล่งข้อมูล : [...]]]></description>
			<content:encoded><![CDATA[<p>วันนี้เจอปัญหา</p>
<pre>
<div class="codesnip-container" >bash-3.00# svcs network/nfs/server
STATE          STIME    FMRI
disable         15:02:42 svc:/network/nfs/server:default</div>
</pre>
<p>ทำยังไงก็ไม่ยอม online สักทีเลยค้นเจอ ปัญหาดังกล่าวเกิดมาจากไฟล์ /etc/dfs/dfstab ไม่มีข้อมูลที่จะ share วิธีแก้ไขก็คือใส่บรรทัด share อะไรไปก็ได้เพื่อให้มันสามารถสั่งให้ service online ได้เช่น</p>
<pre>
<div class="codesnip-container" >share -F nfs -o nosuid,rw=@10.0.22.0/23,anon=60001 -d "home dirs" /export/home</div>
</pre>
<p>จากนั้นให้ลองสั่ง restart service nfs ดู</p>
<pre>
<div class="codesnip-container" >bash-3.00# svcadm restart network/nfs/server
bash-3.00# svcs network/nfs/server
STATE          STIME    FMRI
online         15:10:42 svc:/network/nfs/server:default</div>
</pre>
<p>ทีนี้ก็พร้อมสำหรับแชร์ด้วยคำสั่ง share แล้วครับ<br />
แหล่งข้อมูล :<br />
<a href="http://troysunix.blogspot.com/2011/02/configuring-nfs-in-solaris.html"></a>http://troysunix.blogspot.com/2011/02/configuring-nfs-in-solaris.html<br />
<a href="http://serversolaris.blogspot.com/2008/01/sharing-directories-with-nfs-in-solaris.html">http://serversolaris.blogspot.com/2008/01/sharing-directories-with-nfs-in-solaris.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2011/11/18/%e0%b8%a3%e0%b8%a7%e0%b8%a1-link-%e0%b9%80%e0%b8%81%e0%b8%b5%e0%b9%88%e0%b8%a2%e0%b8%a7%e0%b8%81%e0%b8%b1%e0%b8%9a-nfs-%e0%b8%9a%e0%b8%99-solaris-10-%e0%b8%84%e0%b8%a3%e0%b8%b1%e0%b8%9a.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>แก้ปัญหา Emesene connect ไม่ได้บน Ubuntu</title>
		<link>http://imrgill.com/2011/11/11/%e0%b9%81%e0%b8%81%e0%b9%89%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-emesene-connect-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b9%84%e0%b8%94%e0%b9%89%e0%b8%9a%e0%b8%99-ubuntu.html</link>
		<comments>http://imrgill.com/2011/11/11/%e0%b9%81%e0%b8%81%e0%b9%89%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-emesene-connect-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b9%84%e0%b8%94%e0%b9%89%e0%b8%9a%e0%b8%99-ubuntu.html#comments</comments>
		<pubDate>Fri, 11 Nov 2011 04:08:10 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Daily tips]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=667</guid>
		<description><![CDATA[ตอนนี้หลายที่คนใช้ Emesene บน Ubuntu คงประสบปัญหาน้ำท่วมกันแถมยัง connect หรือ login เจ้า emesene ไม่ได้อีกใช่ไหมครับ ปัญหาดังกล่าวเกิดมาจากทาง Server ของ Live Messenger จึงทำให้ Third-party MSN Client ไม่สามารถ login ได้ วิธีแก้ไขปัญหาชั่วคราวตอนนี้ก็ให้ Download Emesene จากลิงค์ข้างล่างมาใช้ไปก่อนครับ Download Emesene Snapshot โหลดมาแล้วก็ Extract มันออกมาครับแล้วเข้าไปในไดเรกทอรี emesene -> ดัลเบิลคลิกที่ emesene เลือก Run จากนั้นก็กรอกข้อมูล login ปกติได้เลยครับ หลังจาก login สำเร็จ ระบบอาจแจ้งเตือนว่า profile เรา broken ถ้าเรากด Yes มันก็จะให้เรา login เข้าไปใน Live [...]]]></description>
			<content:encoded><![CDATA[<p>ตอนนี้หลายที่คนใช้ Emesene บน Ubuntu คงประสบปัญหาน้ำท่วมกันแถมยัง connect หรือ login เจ้า emesene ไม่ได้อีกใช่ไหมครับ<br />
ปัญหาดังกล่าวเกิดมาจากทาง Server ของ Live Messenger จึงทำให้ Third-party MSN Client ไม่สามารถ login ได้<br />
วิธีแก้ไขปัญหาชั่วคราวตอนนี้ก็ให้ Download Emesene จากลิงค์ข้างล่างมาใช้ไปก่อนครับ</p>
<p><a href="https://github.com/emesene/emesene/zipball/master">Download Emesene Snapshot</a></p>
<p>โหลดมาแล้วก็ Extract มันออกมาครับแล้วเข้าไปในไดเรกทอรี emesene -> ดัลเบิลคลิกที่ emesene เลือก Run<br />
จากนั้นก็กรอกข้อมูล login ปกติได้เลยครับ<br />
หลังจาก login สำเร็จ ระบบอาจแจ้งเตือนว่า profile เรา broken ถ้าเรากด Yes มันก็จะให้เรา login เข้าไปใน Live profile เพื่อแก้ไข profile ได้ครับ</p>
<p>สำหรับหรับใครที่จะใช้ emesene ตัวนี้เป็นการถาวรก็ mv directory emesene ของใหม่ไปทับของเก่าที่ /usr/share/emesene/ ได้เลยครับ</p>
<pre>
<div class="codesnip-container" >root@mrgill-laptop:~# mv /usr/share/emesene/emesene /usr/share/emesene/emesene.backup #backup ตัวเก่าเก็บไว้ก่อน
root@mrgill-laptop:~# mv Desktop/emesene-emesene-00cd2cc/emesene/ /usr/share/emesene/ #ย้ายตัวใหม่มาไว้แทนที่ของเก่า</div>
</pre>
<p>จบครับ</p>
<p>ขอบคุณข้อมูลจาก : <a href="http://www.omgubuntu.co.uk/2011/11/emesene-not-connecting-quick-fix/">http://www.omgubuntu.co.uk/2011/11/emesene-not-connecting-quick-fix/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2011/11/11/%e0%b9%81%e0%b8%81%e0%b9%89%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2-emesene-connect-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b9%84%e0%b8%94%e0%b9%89%e0%b8%9a%e0%b8%99-ubuntu.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle กำลังจะปล่อย Linux Containers</title>
		<link>http://imrgill.com/2011/11/11/oracle-%e0%b8%81%e0%b8%b3%e0%b8%a5%e0%b8%b1%e0%b8%87%e0%b8%88%e0%b8%b0%e0%b8%9b%e0%b8%a5%e0%b9%88%e0%b8%ad%e0%b8%a2-linux-containers.html</link>
		<comments>http://imrgill.com/2011/11/11/oracle-%e0%b8%81%e0%b8%b3%e0%b8%a5%e0%b8%b1%e0%b8%87%e0%b8%88%e0%b8%b0%e0%b8%9b%e0%b8%a5%e0%b9%88%e0%b8%ad%e0%b8%a2-linux-containers.html#comments</comments>
		<pubDate>Thu, 10 Nov 2011 17:43:31 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[linux containers]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[oracle linux]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=666</guid>
		<description><![CDATA[หลายคนคงเคยได้ยิน Solaris Containers กันมาแล้ว ตอนนี้ Oracle กำลังจะปล่อย Linux Containers มาให้ลองใชักันใน Oracle Linux ซึ่งตอนนี้ยังเป็น beta อยู่รายละเอียดตามลิงค์ด้านล่างครับ https://blogs.oracle.com/linux/entry/looking_back_at_oracle_openworld?msgid=3-5327215462 https://blogs.oracle.com/wim/entry/containers_on_linux]]></description>
			<content:encoded><![CDATA[<p>หลายคนคงเคยได้ยิน Solaris Containers กันมาแล้ว ตอนนี้ Oracle กำลังจะปล่อย Linux Containers มาให้ลองใชักันใน Oracle Linux ซึ่งตอนนี้ยังเป็น beta อยู่รายละเอียดตามลิงค์ด้านล่างครับ</p>
<p><a href="https://blogs.oracle.com/linux/entry/looking_back_at_oracle_openworld?msgid=3-5327215462">https://blogs.oracle.com/linux/entry/looking_back_at_oracle_openworld?msgid=3-5327215462</a><br />
<a href="https://blogs.oracle.com/wim/entry/containers_on_linux">https://blogs.oracle.com/wim/entry/containers_on_linux</a></p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2011/11/11/oracle-%e0%b8%81%e0%b8%b3%e0%b8%a5%e0%b8%b1%e0%b8%87%e0%b8%88%e0%b8%b0%e0%b8%9b%e0%b8%a5%e0%b9%88%e0%b8%ad%e0%b8%a2-linux-containers.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>แก้ปัญหาเวลาใน Solaris Container Non-Global ไม่ตรงกับ Global</title>
		<link>http://imrgill.com/2011/11/10/%e0%b9%81%e0%b8%81%e0%b9%89%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2%e0%b9%80%e0%b8%a7%e0%b8%a5%e0%b8%b2%e0%b9%83%e0%b8%99-solaris-container-non-global-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b8%95.html</link>
		<comments>http://imrgill.com/2011/11/10/%e0%b9%81%e0%b8%81%e0%b9%89%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2%e0%b9%80%e0%b8%a7%e0%b8%a5%e0%b8%b2%e0%b9%83%e0%b8%99-solaris-container-non-global-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b8%95.html#comments</comments>
		<pubDate>Thu, 10 Nov 2011 03:41:03 +0000</pubDate>
		<dc:creator>mrgill</dc:creator>
				<category><![CDATA[Daily command]]></category>
		<category><![CDATA[Daily tips]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[container]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[timezone]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[zone]]></category>

		<guid isPermaLink="false">http://imrgill.com/?p=665</guid>
		<description><![CDATA[เครื่อง Global เวลา bash-3.00# date Tue Nov 8 18:16:00 GMT+7 2011 เครื่อง Non-Global เวลา root@email # date Wed Nov 9 08:16:12 ICT 2011 ผมพยายามลอง date MMddhhmmYY แล้วก็ไม่สามารถเปลี่ยนได้ครับ root@email # date 1108181711 date: Not owner usage: date [-u] mmddHHMM[[cc]yy][.SS] date [-u] [+format] date -a [-]sss[.fff] Solved : สำหรับ error : Not owner สามารถแก้ไขโด้โดยเพิ่ม privileg sys_time เข้าไปใน [...]]]></description>
			<content:encoded><![CDATA[<p>เครื่อง Global เวลา</p>
<div class="codesnip-container" >bash-3.00# date<br />
Tue Nov  8 18:16:00 GMT+7 2011</div>
<p>เครื่อง Non-Global เวลา</p>
<div class="codesnip-container" >root@email # date<br />
Wed Nov  9 08:16:12 ICT 2011</div>
<p>ผมพยายามลอง date MMddhhmmYY แล้วก็ไม่สามารถเปลี่ยนได้ครับ</p>
<div class="codesnip-container" >root@email # date 1108181711<br />
date: Not owner<br />
usage:  date [-u] mmddHHMM[[cc]yy][.SS]<br />
        date [-u] [+format]<br />
        date -a [-]sss[.fff]</div>
<p><strong>Solved</strong> :<br />
สำหรับ error : Not owner สามารถแก้ไขโด้โดยเพิ่ม privileg sys_time เข้าไปใน zonecfg (sys_time ทำให้เราใช้คำสั่ง date และ ntpdate สำหรับ adjust เวลาได้)</p>
<div class="codesnip-container" >zonecfg -z myzone1<br />
zonecfg:myzone1> set limitpriv=default,sys_time<br />
zonecfg:myzone1> verify<br />
zonecfg:myzone1> commit<br />
zonecfg:myzone1> exit</div>
<p>จากนั้นแก้ไข /etc/default/init ของเครื่อง Global ให้ตรงกับใน Zone เนื่องจาก /etc/default/init สิทธิ์เป็น 555 read only เราต้องแก้สิทธิ์ให้เป็น 644 เพื่อให้แก้ไขได้ชั่วคราว</p>
<div class="codesnip-container" >chmod 644 /etc/default/init<br />
vi /etc/default/init</div>
<p>ตัวอย่างของผมใน Global set ไว้เป็น GMT+7 แต่ใน Non-global set ไว้เป็น Asia/Bangkok ก็เปลี่ยนจาก GMT เป็น Bangkok</p>
<div class="codesnip-container" >#TZ=&#8221;&#60;GMT+7&#62;+7&#8243;<br />
TZ=Asia/Bangkok</div>
<p>บันทึกและแก้สิทธิ์เป็น 555 ตามเดิมเพื่อความปลอดภัย</p>
<div class="codesnip-container" >chmod 555 /etc/default/init</div>
<p>reboot สักรอบครับทั้งใน zone และ global </p>
<p>เสร็จครับ</p>
]]></content:encoded>
			<wfw:commentRss>http://imrgill.com/2011/11/10/%e0%b9%81%e0%b8%81%e0%b9%89%e0%b8%9b%e0%b8%b1%e0%b8%8d%e0%b8%ab%e0%b8%b2%e0%b9%80%e0%b8%a7%e0%b8%a5%e0%b8%b2%e0%b9%83%e0%b8%99-solaris-container-non-global-%e0%b9%84%e0%b8%a1%e0%b9%88%e0%b8%95.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

