A Practical Guide to Linux Commands, Editors, and Shell Programming is the most useful, most comprehensive Linux tutorial and reference you can find. A tutorial on fundamental Linux concepts and techniques, plus a separate reference. Worse, most Linux references offer little more than prettied-up man pages. Now, there’s a far better solution. You can use it on any Linux system, now and for years to come. it’s packed with hundreds of high-quality examples: better examples than you’ll find in any other Linux guidebook.
Read more »
A Practical Guide to Linux Commands, Editors and Shell Programming
August 13th, 2009
Tum. Why CPU stats between ps and top Command are Different
August 12th, 2009
Tum. ความแตกต่างของการใช้ command ps กับ top ในการดู CPU stat อยู่ตรงที่
- คำสั่ง ps จะใช้วิธีการคำนวน cpu utilization ด้วย total CPU time หารด้วย time task is running
- คำสั่ง top จะแสดงค่าในรูปแบบ percent ของค่า overall CPU time
การคิดค่า CPU Utilization ของคำสั่ง ps ถ้าในกรณีที่มี process หนึ่งรันอยู่เป็นเวลานานแต่ไม่ได้ใช้งาน CPU มากนัก เมื่อเราใช้คำสั่ง
#ps %cpu
จะเห็นว่าค่า CPU Utilization ของคำสั่งนี้จะน้อยมากๆ ดังนั้นเมื่อ ต้องการดูค่า CPU Utilization ในปัจจุบัน ให้ใช้คำสั่ง top ดู เพราะว่าจะถูกต้องมากกว่า ps
How to Set up GRUB to boot from both disks of mirrored RAID
August 12th, 2009
Tum. ถ้าในระบบได้มีการใช้งาน software raid ของ linux แบบ raid 1 หรือ mirror raid เวลา boot เครื่อง grub จะอ่านค่าโปรแกรมและ configure จาก hard disk ที่เป็น primary แต่เราสามารถที่จะ configure ให้ grub สามารถอ่านค่าโปรแกรมและ configure จาก secondary hard disk ได้ในกรณีที่ primary hard disk เกิด fail ขึ้น วิธีการนี้อาจจะเรียกว่า การทำ High Available ให้กับ grub บน mirror raid
สมมติว่าในระบบมี hard disk แบบ sata หรือ scsi หรือ SAS 2 ตัว และมี device ชื่อ sda, sdb และให้ sda เป็น primary hard disk ส่วน sdb เป็น secondary hard disk
Read more »
How to Configure yum Show Availble updates from exclude list
August 11th, 2009
Tum.
โดยปกติแล้ว yum จะไม่แสดง package ที่เราใส่ exclude list ไว้ในไฟล์ yum.conf ดังนั้นจึงไม่สามารถที่จะรู้ได้ว่า package ที่ได้ ใส่ไว้ใน exclude list update ถึงเวอร์ชั่นอะไร เมื่อใช้คำสั่ง yum update แต่เราสามารถใช้ yum shell แทนการใช้คำสั่ง yum update เพื่อให้สามารถดู package ที่เราได้ใส่ไว้ใน exclude list ว่า update หรือไม่
ตย. ไฟล์ฺ /etc/yum.conf ได้ใส่ exclude=php* เอาไว้ ซึ่งจะทำให้ไม่เห็นไฟล์ update ของ php ดังนั้นถ้าเราต้องการดูว่า package php ได้มีการ update ถึงเวอร์ชั่นไหนแล้ว ก็จะไม่สามารถรู้ได้เมื่อใช้คำสั่ง yum update แต่ถ้าเราใช้ yum shell แทนก็จะรู้ว่า php package ได้ update ถึงเวอร์ชั่นไหนแล้ว
Read more »
คอมพิวเตอร์คลัสเตอร์, Computer Cluster คืออะไร
August 11th, 2009
Tum.
คอมพิวเตอร์คลัสเตอร์ คือ กลุ่มของคอมพิวเตอร์ที่เชื่อมต่อกันและทำงานด้วยกันเสมือนว่าเป็นเครื่องคอมพิวเตอร์เพียง 1 เครื่อง การเชื่อมต่อแต่ละเครื่องจะผ่านเครือข่าย fast local area network โดยทั่วไปแล้วคลัสเตอร์จะถูกนำมาใช้ในการเพิ่มประสิทธิภาพหรือความมีตัวตนอยู่ของเครื่องคอมพิวเตอร์เครื่องหนึ่ง
ระบบคลัสเตอร์สามารถแบ่งเป็น 4 ประเภทด้วยกัน คือ Read more »
สอบ RHCT, RHCT Training, RHCT Exam, Red Hat Certified Technician
August 9th, 2009
Tum. RHCT Certification
การสอบ RHCT เป็นการสอบความสามารถของผู้สอบในในระดับการใช้งานและดูแลระบบ โดยใช้ command line หรือใช้ administrative tools ต่างๆ, ทั้งนี้ยังรวมไปถึงการติดตั้ง Red Hat OS, การใช้คำสั่งตรวจสอบและดูแลระบบ, การแก้ไขปํญหา บน Red Hat OS
RHCT Course
สำหรับ RHCT Courses นั้นมีการระบุเอาไว้ทั้งสิ้น 2 Course ด้วยกัน แต่ไม่จำเป็นต้องเรียนทั้งหมด 2 Courses ก็ได้เนื่องจากว่าทาง Red Hat เองไม่ได้ระบุเอาไว้ว่าจะต้องผ่านการเรียน Course อะไรมาก่อน รายชื่อของ Course เรียน RHCT ที่ทาง Red Hat ได้ระบบไว้มีดังนี้
Read more »
Build Custome SUSE Versions from SUSE Studio
August 4th, 2009
Tum. 
SUSE Linux ได้เปิดตัว SUSE Studio ซึ่งเป็น web-base ที่สามารถทำ custom SUSE linux os และ application ที่จะสร้างขึ้นมา ซึ่ง base จะใช้ SUSE Linux
ตอนที่เห็น SUSE Studio ครั้งแรกก็คิดว่าน่าจะไม่ต่างอะไรกับ RHN ของ Red Hat แต่พอลองดูดีๆแล้วพบว่า SUSE Studio ทำมาสำหรับตลาดของ appliances เป็นหลัก
Read more »


