เกิดเป็นไทย ต้องรักชาติ
มีอำนาจ ต้องเป็นธรรม
script สลับสาย
ระบบนี้ จะมี 2 router
เมื่อสายใดสายหนึ่งหลุด จะ สลับไปอีกสาย ใช้ใน freebsd
router 1 :192.168.10.1
router 2 :192.168.20.1
จะประกอบด้วย LAN CARD จำนวน 3 ใบ
เริ่มลงมือ
vi /etc/rc.conf
Installing apcupsd
Why apcupsd? Because it works. The homepage describes apcupsd as:

Apcupsd can be used for power management and controlling most of APC's UPS models on Unix and Windows machines. Apcupsd works with most of APC's Smart-UPS models as well as most simple signaling models such a Back-UPS, and BackUPS-Office. During a power failure, apcupsd will inform the users about the power failure and that a shutdown may occur. If power is not restored, a system shutdown will follow when the battery is exhausted, a timeout (seconds) expires, or runtime expires based on internal APC calculations determined by power consumption rates. Apcupsd is licensed under the GPL version 2.
I was using FreeBSD 6.1 when I did this. Of course, apcupsd is in the Port tree, so I installed it using these commands:
ใน Computer Architecture นั้น 64-bit เป็นการขยายของการใช้ integer, floating point, memory address หรือ ชนิดข้อมูลอื่นๆ ที่ต้องการใส่ข้อมูลที่มีขนาดความกว้างของข้อมูลมากถึง 64 bit (8 octets) โดยที่รายละเอียดของ CPU และ สถาปัตยกรรม ALU บน register, address buses, หรือ data buses ต้องมีขนาดเท่านั้นด้วย
ผมใช้ freebsd 7.0 rc 2 ลองของใหม่ซะหน่อย
ติดตั้ง โดยเลือก location thailand keymap เป็น iso แล้วเลือกติดตั้งแบบ minimal ( ลืม Capture ภาพ ไว้ดู)
เลือก Custom
1. base
2. kernel
3. lib32
4. ports
5. src แล้วเลือก base, compat, bin, sbin, sys
ถึงตอน Add user ให้ Add group ก่อน
Add group pgsql gid 70 group member ไม่ใส่
Add user postgres uid 70 group pgsql member group wheel
ประมาณ 10 นาที ติดตั้งเสร็จ
Server ใหม่ครับ สั่งซื้อที่ http://www.pantiponline.com/ ราคาไม่แพงอย่างที่คิด 49,900 เอง


: Support :