<?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"
	>

<channel>
	<title>EzyLinux - Linux Server &#38; Desktop &#187; System</title>
	<atom:link href="http://www.ezylinux.com/category/system/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ezylinux.com</link>
	<description>ลินุกซ์ง่ายนิดเดียว</description>
	<pubDate>Sat, 04 Oct 2008 17:50:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>How to use command to restart or shut down Linux system</title>
		<link>http://www.ezylinux.com/system/how-to-use-command-to-restart-or-shut-down-linux-system/</link>
		<comments>http://www.ezylinux.com/system/how-to-use-command-to-restart-or-shut-down-linux-system/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 18:51:06 +0000</pubDate>
		<dc:creator>Tum.</dc:creator>
		
		<category><![CDATA[System]]></category>

		<category><![CDATA[restart]]></category>

		<category><![CDATA[shut down]]></category>

		<guid isPermaLink="false">http://www.ezylinux.com/?p=290</guid>
		<description><![CDATA[คำสั่งที่ใช้ในการปิดเครื่อง หรือ shutdown
#shutdown -h now
#init 0
#halt
#poweroff
&#160;
คำสั่งที่ใช้ในการ Reboot เครื่อง
#reboot
#init 6
#shutdown -r now

	Tags: restart, shut down

	Related Topics
	
	Diskdump report error messages when restart the diskdump service (0)


]]></description>
		<wfw:commentRss>http://www.ezylinux.com/system/how-to-use-command-to-restart-or-shut-down-linux-system/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Export a directory with NFS v4</title>
		<link>http://www.ezylinux.com/hdd-management/export-a-directory-with-nfs-v4/</link>
		<comments>http://www.ezylinux.com/hdd-management/export-a-directory-with-nfs-v4/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 16:47:53 +0000</pubDate>
		<dc:creator>Tum.</dc:creator>
		
		<category><![CDATA[HDD Management]]></category>

		<category><![CDATA[System]]></category>

		<category><![CDATA[Export]]></category>

		<category><![CDATA[Export  directory]]></category>

		<category><![CDATA[NFS]]></category>

		<category><![CDATA[NFS v4]]></category>

		<guid isPermaLink="false">http://www.ezylinux.com/?p=178</guid>
		<description><![CDATA[ความแตกต่างอย่างมากที่ NFS v4 กับ NFS version เก่า คือสามารถที่จะ export แบบ single directory ที่มีรูปแบบคล้ายๆกับ ftp หรือ web server ตัวอย่างเช่น export directory /shared และ client สามารถที่จะ mount /shared ได้ในรูปแบบ servername:/ เราสามารถที่จะแก้ไขไฟล์ที่ /etc/exports ได้ดังนี้
/shared *(rw,fsid=0,sync)
** การที่จะทำการ export แบบนี้ได้จะต้องเซ็ตให้มี option fsid=0 ด้วย และสามารถที่จะทำได้แค่ directory เดี่ยวเท่านั้น
จากนั้น restart service แล้วลองใช้คำสั่งด้านล่างที่เครื่องฝั่ง client 
#mount -t nfs4 servername:/ /mnt/
ในการ export นี้ directory ภายใน /shared [...]]]></description>
		<wfw:commentRss>http://www.ezylinux.com/hdd-management/export-a-directory-with-nfs-v4/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Lock user after a set number of login attempts but also automatically unlock after 5 minutes</title>
		<link>http://www.ezylinux.com/system/lock-user-after-a-set-number-of-login-attempts-but-also-automatically-unlock-after-5-minutes/</link>
		<comments>http://www.ezylinux.com/system/lock-user-after-a-set-number-of-login-attempts-but-also-automatically-unlock-after-5-minutes/#comments</comments>
		<pubDate>Thu, 18 Sep 2008 09:53:22 +0000</pubDate>
		<dc:creator>Tum.</dc:creator>
		
		<category><![CDATA[SSH/Telnet]]></category>

		<category><![CDATA[System]]></category>

		<category><![CDATA[fail login]]></category>

		<category><![CDATA[Lock user]]></category>

		<category><![CDATA[login]]></category>

		<category><![CDATA[number of attempts login]]></category>

		<category><![CDATA[PAM]]></category>

		<category><![CDATA[pam_tally]]></category>

		<guid isPermaLink="false">http://www.ezylinux.com/?p=219</guid>
		<description><![CDATA[หากต้องการให้ระบบทำการ lock user ที่จะพยายามเข้าสู่ระบบเกินกว่าจำนวนครั้งที่เรากำหนด แต่ไม่รู้จะสามารถทำได้อย่างไร ในบทความนี้มีคำตอบให้กับปัญหานี้ครับ
ใน Pluggable Authentication Module (PAM) มี module ที่ชื่อ pam_tally ซึ่งเป็น login counter module ซึ่งความสามารถของ module นี้คือ นับจำนวนครั้งที่ได้ทำการ login ถ้าในการ login นั้นสำเร็จ module นี้จะทำการ reset ค่า login counter แต่ถ้าทำการ login เกินกว่าจำนวนครั้งที่กำหนด module นี้จะทำการ lock user นั้นเป็นการชั่วคราวแล้วแต่ว่าเราจะกำหนดให้ว่าไม่สามารถใช้งานได้เป็นระยะเวลาเท่าไหร่
ไฟล์ที่เราจะต้องทำการตั้งค่า คือ ไฟล์  /etc/pam.d/system-auth 
จากนั้นให้เรามองหา บรรทัด

auth required pam_tally.so
จากนั้นให้เราเพิ่ม parameter deny=จำนวนครั้งที่สามารถ login ได้ และ unlock_time=ระยะเวลาที่เราจะทำการ lock [...]]]></description>
		<wfw:commentRss>http://www.ezylinux.com/system/lock-user-after-a-set-number-of-login-attempts-but-also-automatically-unlock-after-5-minutes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Diskdump report error messages when restart the diskdump service</title>
		<link>http://www.ezylinux.com/system/diskdump-report-error-messages-when-restart-the-diskdump-service/</link>
		<comments>http://www.ezylinux.com/system/diskdump-report-error-messages-when-restart-the-diskdump-service/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 08:45:08 +0000</pubDate>
		<dc:creator>Tum.</dc:creator>
		
		<category><![CDATA[System]]></category>

		<category><![CDATA[Troubleshooting]]></category>

		<category><![CDATA[diskdump]]></category>

		<category><![CDATA[diskdump service]]></category>

		<category><![CDATA[Hard disk]]></category>

		<category><![CDATA[partition]]></category>

		<category><![CDATA[restart]]></category>

		<guid isPermaLink="false">http://www.ezylinux.com/?p=180</guid>
		<description><![CDATA[เมื่อเราได้ทำการแก้ไขหรือ configure diskdump แล้ว restart diskdump service ได้มี error เกิดขึ้นที่ /var/log/messages โดยมีข้อความดังข้างล่าง

diskdump: diskdumpctl: failed to add /dev/hdb!
diskdump: activating failed
kernel: disk_dump: shut down


ในปัญหาข้างต้นเกิดจาก Linux ที่ใช้อยู่ไม่ support full hard disk dump partition ดังนั้นวิธีแก้ไขสามารถทำได้โดยสร้าง partition ใน Hard disk และ ใช้ partition นั้นสำหรับการ dump memory information.

	Tags: diskdump, diskdump service, Hard disk, partition, restart

	Related Topics
	
	How to use command to restart [...]]]></description>
		<wfw:commentRss>http://www.ezylinux.com/system/diskdump-report-error-messages-when-restart-the-diskdump-service/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to enable xdmcp</title>
		<link>http://www.ezylinux.com/system/how-to-enable-xdmcp/</link>
		<comments>http://www.ezylinux.com/system/how-to-enable-xdmcp/#comments</comments>
		<pubDate>Fri, 20 Jun 2008 16:33:38 +0000</pubDate>
		<dc:creator>Tum.</dc:creator>
		
		<category><![CDATA[System]]></category>

		<category><![CDATA[xdmcp]]></category>

		<guid isPermaLink="false">http://www.ezylinux.com/?p=169</guid>
		<description><![CDATA[เมื่อต้องการที่จะเปิดการทำงานของ xdmcp ในปัจจุบันไฟล์ config ของ xdmcp ได้ถูกเปลี่ยนแปลงไป จากเดิมอยู่ที่ /etc/X11/gdm/gdm.conf มาเป็น /etc/gdm/custom.conf การเปิด xdmcp นั้นให้แก้ไขไฟล์นี้ โดยแก้ไขในส่วนด้านล่างของข้อความ xdmcp ให้มีคำว่า 
Enable=true

หรืออีกวิธีคือใช้ tool แบบ gui โดยรัน
#gdmsetup

เมื่อทำการแก้ไขเสร็จเรียบร้อยแล้ว อย่าลืมรันคำสั่ง
#gdm-restart

ด้วยนะครับ

	Tags: xdmcp

	Related Topics
	
	No related Topics.
	

]]></description>
		<wfw:commentRss>http://www.ezylinux.com/system/how-to-enable-xdmcp/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Reduce a non-root LVM.</title>
		<link>http://www.ezylinux.com/hdd-management/reduce-a-non-root-lvm/</link>
		<comments>http://www.ezylinux.com/hdd-management/reduce-a-non-root-lvm/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 09:56:07 +0000</pubDate>
		<dc:creator>Tum.</dc:creator>
		
		<category><![CDATA[HDD Management]]></category>

		<category><![CDATA[System]]></category>

		<category><![CDATA[LVM]]></category>

		<guid isPermaLink="false">http://www.ezylinux.com/?p=165</guid>
		<description><![CDATA[การลดขนาดของ LVM สามารถที่ไม่ไม่ใช้ root user ทำก็ได้ ซึ่งจากตัวอย่างนี้จะสมมติการลดขนาดของ LVM ที่มีเนื้อที่จำนวน 10GB โดยต้องการที่จะลดขนาดของ LVM ให้มีขนาดเหลือ 8GB โดยสมมติว่าเราได้ Mount LVM นี้ใน directory /data ขั้นตอนการลดขนาดสามารถทำตาม step ข้างล่างนี้ได้เลยครับ
ขั้นที่ 1. ให้ทำการ umount ข้อมูลก่อนเพื่อป้องกันไม่ให้ OS ใช้งาน LVM นี้
$ umount /data
ขั้นที่ 2. ทำการลดขนาด file system ก่อน ซึ่งขั้นตอนนี้สำคัญมากถ้าเราไม่ทำการลดขนาดของ file system ก่อนจะทำให้อาจเกิดความเสียหายต่อ data ของเราได้
$ resize2fs /dev/vg0/LV 8G         [...]]]></description>
		<wfw:commentRss>http://www.ezylinux.com/hdd-management/reduce-a-non-root-lvm/feed/</wfw:commentRss>
		</item>
		<item>
		<title>View just the uncommented lines of text in a config file</title>
		<link>http://www.ezylinux.com/system/view-just-the-uncommented-lines-of-text-in-a-config-file/</link>
		<comments>http://www.ezylinux.com/system/view-just-the-uncommented-lines-of-text-in-a-config-file/#comments</comments>
		<pubDate>Fri, 30 May 2008 11:46:34 +0000</pubDate>
		<dc:creator>Tum.</dc:creator>
		
		<category><![CDATA[System]]></category>

		<category><![CDATA[config file]]></category>

		<category><![CDATA[grep]]></category>

		<guid isPermaLink="false">http://www.ezylinux.com/2008/05/30/view-just-the-uncommented-lines-of-text-in-a-config-file/</guid>
		<description><![CDATA[เราสามารถที่จะใช้คำสั่ง grep ในการช่วยดูไฟล์คอนฟิกในส่วนของข้อความที่มีที่ขึ้นต้นด้วยตัวอักษรต่างๆ เพื่อใช้ในการดูคอมเม้นต์ของไฟล์คอนฟิกนั้นๆว่าได้ทำการคอมเม้นต์อะไรบ้าง จะได้สะดวกในการค้นหาและตรวจสอบค่าคอนฟิกของเรา
รูปแบบคำสั่ง
#grep -v &#8220;^#&#8221; myfile.conf  &#124; cat -s &#124; less
ต้องการดูคอมเม้นต์ของไฟล์คอนฟิกที่มีลักษณะการคอมเม้นต์ที่ใช้ #
# grep -v &#8220;^#&#8221; /etc/CONFIGFILE.conf &#124; cat -s &#124; less
หรือ ต้องการดูคอมเม้นต์ของไฟล์ sendmail.mc ให้พิมพ์
# grep -v &#8220;^dnl&#8221; /etc/mail/sendmail.mc &#124; cat -s &#124; less

	Tags: config file, grep

	Related Topics
	
	No related Topics.
	

]]></description>
		<wfw:commentRss>http://www.ezylinux.com/system/view-just-the-uncommented-lines-of-text-in-a-config-file/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Configure the shell to logout automatically after a period of idle time.</title>
		<link>http://www.ezylinux.com/system/configure-the-shell-to-logout-automatically-after-a-period-of-idle-time/</link>
		<comments>http://www.ezylinux.com/system/configure-the-shell-to-logout-automatically-after-a-period-of-idle-time/#comments</comments>
		<pubDate>Fri, 30 May 2008 10:55:13 +0000</pubDate>
		<dc:creator>Tum.</dc:creator>
		
		<category><![CDATA[SSH/Telnet]]></category>

		<category><![CDATA[Security]]></category>

		<category><![CDATA[System]]></category>

		<category><![CDATA[logout]]></category>

		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://www.ezylinux.com/2008/05/30/configure-the-shell-to-logout-automatically-after-a-period-of-idle-time/</guid>
		<description><![CDATA[ในบางระบบที่มีการให้ user  login เข้าสู่ระบบเยอะมากและมี user ที่ออกจากระบบโดยไม่มีการ logout ออกไปจะทำให้ระบบสูญเสียทรัพยากรโดยใช้เหตุ ดังนั้นเราสามารถที่จะนำวิธีนี้มาแก้ไขได้และยังเพื่อความปลอดภัยให้กับระบบอีกทางนึงด้วย วิธีการจะแตกต่างกันขึ้นอยู่กับ shell ที่ใช้ซึ่งสามารถดูวิธีการเว็ตของแต่ละ shell ได้ดังวิธีข้างล่าง
สำหรับ bash or zsh:
#export TMOUT=เวลา หน่อยเป็นวินาที
สำหรับ tcsh:
#set autologout=เวลา หน่อยเป็นวินาที
สำหรับ ksh:
#export TMOUT=เวลา หน่อยเป็นวินาที

	Tags: logout, shell

	Related Topics
	
	No related Topics.
	

]]></description>
		<wfw:commentRss>http://www.ezylinux.com/system/configure-the-shell-to-logout-automatically-after-a-period-of-idle-time/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Access a USB flash drive in Linux.</title>
		<link>http://www.ezylinux.com/hdd-management/access-a-usb-flash-drive-in-linux/</link>
		<comments>http://www.ezylinux.com/hdd-management/access-a-usb-flash-drive-in-linux/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 19:52:32 +0000</pubDate>
		<dc:creator>Tum.</dc:creator>
		
		<category><![CDATA[HDD Management]]></category>

		<category><![CDATA[System]]></category>

		<category><![CDATA[USB flash drive]]></category>

		<guid isPermaLink="false">http://www.ezylinux.com/2008/04/23/access-a-usb-flash-drive-in-linux/</guid>
		<description><![CDATA[การใช้งาน USB flash หรือ thumbdrives ในระบบปฏิบัติการ Linux นั้นโดยทั่วไปแล้วเมื่อเราเสียบเจ้าตัว USB flash หรือ thumbdrives เข้าไป Linux จะ auto mount ให้เอง แต่ในบางครั้งก็ไม่มีการ auto mount เจ้า USB flash หรือ thumbdrives ดังนั้นผู้ใช้งานมือใหม่ทั้งหลายอาจจะเกิดอาการเซ็งขึ้นมาเนื่องจากการใช้งานที่ยุ่งยาก และไม่รู้ว่าจะทำอย่างไรถึงจะสามารถใช้งานได้ ในบทความนี้ผมจะได้กล่าวถึงการทำให้เราสามารถใช้งาน USB flash หรือ thumbdrives ได้ในกรณีที่ Linux ไม่ทำการ auto mount ให้

ขั้นแรกให้พิมพ์คำสั่ง
#tail -f /var/log/messages
เพื่อตรวจสอบดูว่า  USB flash หรือ thumbdrives ที่เสียบเข้าไปนั้นตัว linux เห็น Hardware นี้หรือปล่าว จากนั้นให้้ทำการเสียบ USB flash หรือ [...]]]></description>
		<wfw:commentRss>http://www.ezylinux.com/hdd-management/access-a-usb-flash-drive-in-linux/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Disable some CPUs within Red Hat Enterprise Linux 5 without rebooting the system</title>
		<link>http://www.ezylinux.com/system/disable-some-cpus-within-red-hat-enterprise-linux-5-without-rebooting-the-system/</link>
		<comments>http://www.ezylinux.com/system/disable-some-cpus-within-red-hat-enterprise-linux-5-without-rebooting-the-system/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 19:13:04 +0000</pubDate>
		<dc:creator>Tum.</dc:creator>
		
		<category><![CDATA[System]]></category>

		<category><![CDATA["Red Hat Enterprise Linux 5"]]></category>

		<category><![CDATA[CPU]]></category>

		<guid isPermaLink="false">http://www.ezylinux.com/2008/04/23/disable-some-cpus-within-red-hat-enterprise-linux-5-without-rebooting-the-system/</guid>
		<description><![CDATA[คำเตือน: โปรดทำการเชค Hardware ว่า support CPU hotswapping หรือไม่ก่อนทำการทดลองเล่นหรือใช้งานคำสั่งนี้ ไม่เช่นนั้นอาจจะเกิดความเสียหายต่อ Hardware ของท่านได้
RedHat Enterprise 5 support การทำงานแบบ Hotplug ของ CPU ดังนั้นเราสามารถทำการ Disable และ Enable CPU ได้แบบ On-the-Fly หรือว่าไม่ต้อง Restart เครื่องใหม่นั้นเอง ส่วนวิธีการนั้นขั้นแรกเราจะต้องรู้ก่อนว่าเรามี CPU กี่ตัวและต้องการ Disable CPU ตัวไหน โดยจะใช้คำสั่ง
# cat /proc/cpuinfo
เพื่อดูรายละเอียดของ CPU ที่ระบบปฏิบัติการเห็น เมื่อทำการรันคำสั่งนี้แล้วจะเห็นราบละเอียดของ CPU ทั้งหมด และให้ดูที่บรรทัด processor เพื่อจะนำมาใช้ในการอ้างอิงถึง CPU ที่เราต้องการจะ Disable หรือ Enable ตย. ถ้าบรรทัดที่กล่าวมาแสดงผลเป็น processor : 0 [...]]]></description>
		<wfw:commentRss>http://www.ezylinux.com/system/disable-some-cpus-within-red-hat-enterprise-linux-5-without-rebooting-the-system/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
