Blogs

nBind Installation

Submitted by joezine on Wed, 01/07/2009 - 10:09

ถ้าใช้ DNS ของ CS Loxinfo, TRUE, KSC, Inet หรือ JI-Net ถ้าเปิดเว็บที่ไม่มีอยู่จริง DNS จะทำการ Redirect ไปหน้าเว็บของนามไทย (คล้าย NIPA) เหตุที่เป็นเช่นนี้แทนที่จะขึ้นว่า “Error 404 : Page not found” เพราะได้ติดตั้ง nBind เข้าไปที่ DNS (พัฒนาโดยนามไทย) วิธีการติดตั้งง่ายมาก โดยติดตั้ง nBind เข้าไปที่ DNS Cache ทุกเครื่อง

Download nBind

#wget http://download.namathai.com/nBIND/nBIND.htm

Tarball ออกมา (ใช้ RedHat ES4) จะได้ Folder 5 Folder (bin, include, lib, sbin, script, share)

#tar xzf nbind_9.4.2_P1_080711.redhatES4.tar.gz
Tags: | »

Korsak Interview (SIU)

Submitted by joezine on Wed, 01/07/2009 - 09:45

ฟังบทสัมภาษณ์ของคุณ “ก่อศักดิ์ ไชยรัศมีศักดิ์” ทาง SIU ให้แง่คิดเกี่ยวกับโลกทั้งโลกได้ดีมากๆ สรุปบทสัมภาษณ์ไว้เพื่ออ่านย้ำเตือนสติในวันหน้า

ตอนนี้วิถีชีวิตมนุษย์ถูกครอบงำโดย 1,000 บริษัทต้นๆของโลก เช่น Toyota, Nokia, Microsoft, Exxon ซึ่งบริษัทเหล่านี้มีการเติบโตขึ้นทุกวันๆ รวมถึงชักจูงให้คนทั้งโลกเดินตาม (และต้องเสียภาษีให้กับบริษัทเหล่านี้แทน)

ถ้าการเทียบกันในเรื่องขนาดเงินทุนของ 1,000 บริษัท จะเทียบได้กับ 360 ประเทศที่กำลังพัฒนา ซึ่งผู้นำของประเทศเหล่านี้ไม่เป็นที่รู้จัก ต่างจากผู้นำของบริษัท 1,000 บริษัท (เช่น Bill Gates, Steve Jobs)

Tags: | »

Auto Root Login

Submitted by joezine on Tue, 01/06/2009 - 10:22

I wrote how to automatically authenticate with user via public key authentication. But I still type root’s password. Right now, I don’t type it again. Here is how to automatically authenticate with root via ssh.

Firstly, logged in as root

#vi /etc/sudoers

Insert user in the last line

surasitl        ALL=(ALL) NOPASSWD: ALL

Then, save and exit.

Secondly, logged out root.

$vi .bash_profile

Then insert “sudo su -” into the last line

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
unset USERNAME
sudo su -

Finishly, save and exit.

Tags: | »