How to fix yum return Segmentation fault error

By Tum. | On Thursday, December 25th, 2014 - No Comments »
How to fix yum return Segmentation fault error

บน CentOS 5 เมื่อใช้คำสั่ง yum แล้วเกิด error “Segmentation fault” ดังตัวอย่าง [root@ezylinux ~]# yum update bash base | 1.1 kB 00:00 base/primary | 1.3 MB 00:00 Segmentation fault 123456  [root@ezylinux ~]# yum update bashbase                                                          . 

How to convert string to lower case

By Tum. | On Wednesday, December 17th, 2014 - No Comments »
How to convert string to lower case

วิธีการ convert string จาก Upper case (ตัวใหญ่) ไปเป็น Lower case (ตัวเล็ก) บน bash shell สามารถทำได้หลายวิธีดังนี้ ใช้คำสั่ง tr [tum@ezylinux ~]$ echo 'Hello World!' | tr '[:upper:]' '[:lower:]' hello world! 12345  [tum@ezylinux ~]$ echo 'Hello World!' | tr '[:upper:]' '[:lower:]' hello world!  ใช้คำสั่ง awk [tum@ezylinux ~]$ echo 'Hello World!' | awk '{print tolower($0)}' hello world! 12345  [tum@ezylinux. 

How to change an iDRAC password using Racadm

By Tum. | On Wednesday, October 22nd, 2014 - No Comments »
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

By Tum. | On Wednesday, October 22nd, 2014 - No Comments »
How to fix bind hangs on generating rndc key

ถ้าหากทำการ setup DNS server เรียบร้อยแล้ว และ start named service ขึ้นมาพบว่าค้างอยู่ที่ Generating /etc/rndc.key: ดังตัวอย่าง [root@zm named]# /etc/init.d/named restart Stopping named: [ OK ] Generating /etc/rndc.key: 12345  [root@zm named]# /etc/init.d/named restartStopping named:                                            [  OK  ]Generating. 

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

By Tum. | On Sunday, October 5th, 2014 - No Comments »
How to fix “SSL_connect … certificate verify failed” on puppet client

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

Scanning heartbleed bug with the nmap NSE script

By Tum. | On Friday, April 11th, 2014 - No Comments »
Scanning heartbleed bug with the nmap NSE script

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

Heartbleed Bug: OpenSSL Security Flaw

By Tum. | On Thursday, April 10th, 2014 - No Comments »
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.