28 January 2015

วิธีแก้ "username is not in the sudoers file. This incident will be reported"

อาการคือตอนที่สั่ง sudo ตัว  terminal จะฟ้องว่า "username is not in the sudoers file. This incident will be reported"
*เคยลองแค่ใน CentOS

  1. เปิด terminal
  2. เปลี่ยนเป็น root user ด้วยคำสั่ง su
  3. กรอกพาสเวิร์ด root ที่ตั้งไว้ตอนลง CentOS
  4. รัน visudo
  5. หาบรรทัดที่เขียนว่า
    ## Allows people in group wheel to run all commands
    #%wheel ALL=(ALL) ALL
    แล้วลบ '#' ออกจาก "#%wheel ALL=(ALL) ALL" (ถ้าไม่มีอยู่แล้วก็ไม่เป็นไร)
  6. เซฟแล้วออกด้วยคำสั่ง :wq
  7. รัน 'usermod -aG wheel USERNAME' เปลี่ยน USERNAME เป็นชื่อ user ของเรา
  8. logout ออกจาก CentOS แล้ว Login ใหม่
หลังจากนั้นน่าจะใช้งาน sudo ได้ตามปกติ

04 January 2015

Steam Holidays Sales 2014 โดนอะไรไปบ้าง?




รอบนี้โดนไม่ค่อยเยอะเท่าไหร่เนอะ?
  • BattleBlock Theater                                                            ฿78.75
  • Bastion                                                                             ฿78.75
  • Hitman: Blood Money                                                         ฿39.80
  • PAYDAY 2: Gage Shotgun Pack                                              ฿32.25
  • To the Moon                                                                       ฿43.80
รวม                                                                                            ฿273.35