Posts

Showing posts with the label NTP

Ubuntu : Centralized Log Server & PHPSyslogViewer

ติดตั้ง Ubuntu 8.04 Server 1.Boot จากแผ่นติดตั้ง เลือกภาษาที่จะใช้ในการติดตั้ง : English 2.เลือกการติดตั้ง : Install Ubuntu Server 3.เลือกภาษาสำหรับระบบ : English 4.เลือกประเทศ : other -> Thailand 5.Detect keyboard layout : No -> Thailand -> Thailand 6.เลือกปุ่มเปลี่ยนภาษา : Alt+Shift 7.ตั้งชื่อ Server : Go Back (เพื่อกลับไปตั้งค่า IP) 8.ตั้งค่า Network : Configure network manually 8.1 IP Address : 192.168.0.251 8.2 Netmask : 255.255.255.0 8.3 Gateway : 192.168.0.3 8.4 Name server : 192.168.0.254 9.ตั้งชื่อ Server : Server1 10.Domain : sci.com 11.จัดการ Partition : Guided - use entire disk -> Yes 12.ตั้งชื่อ user : System Administrator -> sa 13.ตั้งรหัสผ่านและยืนยัน : *** -> *** 14.ตั้งค่า proxy : 15.เลือก Software ที่จะติดตั้ง : OpenSSH server 16.Restart (หลังจากนี้สามารถ ssh มาจากเครื่องอื่นได้) 17.Login ด้วย User ที่สร้าง 18.กรณีไม่ได้ตั้งค่า IP ในขั้นตอนที่ 8 ตั้งค่าได้โดยใช้คำสั่ง sudo nano /etc/network/interfaces แก้ไขให้เป็นดังนี้ # The loopback network...

Centralized Log ภาคที่ 1 : NTP

ติดตั้ง NTP (Network Time Protocol) ตาม พรบ.ว่าด้วยการกระทำผิดเกี่ยวกับคอมพิวเตอร์ พ.ศ. 2550 กำหนดให้ ต้องตั้งนาฬิกาของอุปกรณ์บริการทุกชนิดให้ตรงกับเวลาอ้างอิงสากล (Stratum 0) โดยผิดพลาดไม่เกิน 10 มิลลิวินาที 1.ติดตั้ง apt-get install ntp (ที่ Log Server และ Server อื่น ๆ) 2.ตั้งค่า Log Server ( /etc/ntp.conf ) # /etc/ntp.conf, configuration for ntpd; see ntp.conf(5) for help driftfile /var/lib/ntp/ntp.drift # Enable this if you want statistics to be logged. #statsdir /var/log/ntpstats/ #statistics loopstats peerstats clockstats #filegen loopstats file loopstats type day enable #filegen peerstats file peerstats type day enable #filegen clockstats file clockstats type day enable # You do need to talk to an NTP server or two (or three). server 203.185.69.60 dynamic server time.navy.mi.th dynamic server time.nist.gov dynamic server 127.127.1.0 # local clock fudge 127.127.1.0 stratum 10 broadcastdelay 0.008 keys /etc/ntp/keys # Access control configuration; see /usr/share/doc/ntp-doc/html/...