Where to find OpenStack Cloud Images

รวบรวม Openstack cloud image ของแต่ละ distribution สำหรับใช้ในการ create image บน glance CirrOS Linux ขนาดเล็กที่เป็น cloud image ใช้สำหรับทดสอบการสร้าง intance บน openstack สามารถ download ได้ที่ Official CirrOS OpenStack cloud images. Ubuntu Official…

How to convert string to lower case

วิธีการ convert string จาก Upper case (ตัวใหญ่) ไปเป็น Lower case (ตัวเล็ก) บน bash shell สามารถทำได้หลายวิธีดังนี้ ใช้คำสั่ง tr $ echo 'Hello World!' | tr '' '' hello world! ใช้คำสั่ง awk $…

How to change an iDRAC password using Racadm

เราสามารถ reset password ของ iDRAC ผ่าน server โดยตรงผ่าน OpenManage ได้ ด้วยคำสั่ง racadm ในขั้นตอนการ reset iDRAC จำเป็นจพต้องติดตั้ง OpenManage บนเครื่องเสียก่อน ซึ่งสามารถดูวิธรการติดตั้งได้ที่ How to install Dell OpenManage Server Administrator (OMSA) เมื่อทำการติดตั้ง OpenManage เรียบร้อยแล้ว…

How to fix bind hangs on generating rndc key

ถ้าหากทำการ setup DNS server เรียบร้อยแล้ว และ start named service ขึ้นมาพบว่าค้างอยู่ที่ Generating /etc/rndc.key: ดังตัวอย่าง # /etc/init.d/named restart Stopping named: Generating /etc/rndc.key: การแก้ไขปัญหา ให้ gen rndc.key ขึ้นมาให้ด้วยคำสั่ง

How to fix “SSL_connect … certificate verify failed” on puppet client

เมื่อทำการติดตั้ง puppet client เสร็จเรียบร้อยแล้ว และใช้คำสั่ง # puppet agent --test เพื่อทำการ connect ไปยัง puppet master แล้วพบ error ดังนี้ err: Could not retrieve catalog from remote server: SSL_connect returned=1 errno=0 state=SSLv3 read…

Scanning heartbleed bug with the nmap NSE script

สืบเนื่องจาก Heartbleed Bug: OpenSSL Security Flaw ซึ่งทำให้บริการที่ใช้ secure protocol ที่ใช้งาน OpenSSL 1.0.1 เกิดความไม่ปลอดภัยอีกต่อไป จากเหตุการณ์เช่นนี้ทำให้ผู้ดูแลระบบที่มีการใช้ OpenSSL ต้องทำการตรวจสอบระบบของตนเองว่ามีช่องโหว่ตรงส่วนนี้หรือไม่ ซึ่งถ้าหากมีอยู่จำนวน server อยู่ไม่มากก็สามารถตรวจสอบและแก้ไขได้ง่าย แต่สำหรับผู้ดูแลระบบที่ต้องดูแล server จำนวนมากก็จะต้องใช้เวลาในการตรวจสอบค่อนข้างนาน

Heartbleed Bug: OpenSSL Security Flaw

security researchers ประกาศพบ bug ในไลบรารี OpenSSL version 1.0.1 – 1.0.1f และ 1.0.2beta โดยใช้ชื่อว่า Heartbleed (CVE-2014-0160) Bug ที่เกิดขึ้นนี้ทำให้ attacker ส่ง heartbeat message ที่ไม่สมบูรณ์ไปยังเป้าหมายและเครื่องเป้าหมายจะทำการส่งข้อมูลที่เก็บอยู่ใน memory กลับไป โดยการโจมตีแต่ละครั้งจะสามารถดึงข้อมูลมาได้ 64 kilobytes แต่ถ้าหาก attacker ทำการโจมตีเรื่อยๆก็จะสามารถได้ข้อมูลที่ต้องการได้ครบถ้วน…

Rescan a SCSI bus without rebooting

โดยปรกติแล้วเมื่อทำการเพิ่ม HDD ที่รองรับ hotplug (VM หรือ Physical) เข้าไปในระบบปฏิบัติการ Linux และรันคำสั่ง # fdisk -l จะไม่พบ HDD จนกระทั่ง reboot เครื่องก่อน ถ้าต้องการให้ linux พบ HDD ที่ได้เพิ่มเข้าไปโดยไม่ต้อง reboot ก็สามารถทำได้โดยการ rescan SCSI