ข่าว: ข่าวประกาศ

  • 18 มิถุนายน 2024, 01:26:07

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

แสดงกระทู้

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - admin

หน้า: 1 ... 16 17 [18] 19 20 ... 24
256
Linux Server System / คู่มือการติดตั้ง Ubuntu 7.10 ตอนที่ 3
« เมื่อ: 07 กรกฎาคม 2008, 12:47:55 »
เมื่อทำการติดตั้งในขั้นตอนที่ 2 เสร็จแล้ว

Server ก็จะ Reboot 1 ครั้ง แล้วก็ขึ้นหน้าจอให้ทำการ Login


ในขั้นตอนนี้เราจะต้องทำการ Config Modem/Router ให้ทำงานเป็น Bridge Mode

เมื่อทำการ Config เสร็จแล้วก็นำไปต่อกับ eth1 เพื่อทำการเชื่อมต่อ Server สู่อินเตอร์เน็ต

แผนผังการเชื่อมต่ออุปกรณ์ในขั้นตอนที่ 3

เมื่อทำการเชื่อมต่อเสร็จแล้วก็ดำเนินตามขั้นตอนต่อไปนี้

ทำการ Login ด้วย User/Pass ที่ได้กำหนดไว้ในขั้นตอนที่ 2

ตรวจสอบว่า Ubuntu มองเห็น LAN Card ทั้งหมดของเราหรือไม่ ด้วยคำสั่ง ifconfig -a | more

จะได้ผลลัพธ์ออกมาเป็น
eth0      Link encap:Ethernet  HWaddr 00:0C:29:E4:38:8D 
          inet addr:192.168.1.99  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fee4:388d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:404 errors:0 dropped:0 overruns:0 frame:0
          TX packets:333 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:31845 (31.0 KB)  TX bytes:35943 (35.1 KB)
          Interrupt:17 Base address:0x1400

eth1      Link encap:Ethernet  HWaddr 00:0C:29:E4:38:97 
          inet6 addr: fe80::20c:29ff:fee4:3897/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:176 errors:0 dropped:0 overruns:0 frame:0
          TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:11686 (11.4 KB)  TX bytes:2174 (2.1 KB)
          Interrupt:18 Base address:0x1480

eth2      Link encap:Ethernet  HWaddr 00:0C:29:E4:38:A1 
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:19 Base address:0x1800

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

ทำการเชื่อมต่อ Internet โดยใช้คำสั่ง sudo pppoeconf eth1 (ต่อ Modem แบบ Bridge ไว้กับช่อง eth1)

ตอบ Yes

รอสักครู่

ตอบ Yes

ใส่ Username ของ ISP ที่โมเด็มเชื่อมต่ออยู่

ใส่ Password

ตอบ Yes

ตอบ Yes

ตอบ Yes

ตอบ Yes

ตอบ Ok

เสร็จสิ้นการ Config

หากขั้นตอนถูกต้องทุกอย่างจะปรากฎ interface ppp0 เพิ่มขึ้นมา เมื่อใช้คำสั่ง ifconfig

eth0      Link encap:Ethernet  HWaddr 00:0C:29:E4:38:8D 
          inet addr:192.168.1.99  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fee4:388d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:404 errors:0 dropped:0 overruns:0 frame:0
          TX packets:333 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:31845 (31.0 KB)  TX bytes:35943 (35.1 KB)
          Interrupt:17 Base address:0x1400

eth1      Link encap:Ethernet  HWaddr 00:0C:29:E4:38:97 
          inet6 addr: fe80::20c:29ff:fee4:3897/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:176 errors:0 dropped:0 overruns:0 frame:0
          TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:11686 (11.4 KB)  TX bytes:2174 (2.1 KB)
          Interrupt:18 Base address:0x1480

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

ppp0      Link encap:Point-to-Point Protocol 
          inet addr:118.173.142.218  P-t-P:118.173.142.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1432  Metric:1
          RX packets:182918 errors:0 dropped:0 overruns:0 frame:0
          TX packets:162518 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:157164688 (149.8 MB)  TX bytes:65316086 (62.2 MB)

ให้ทำการแจ้งหมายเลข IP เพื่อให้ทาง Hadyai Internet ได้ทำการ Remote และทำการติดตั้งต่อไป

เมื่อทำการ config เสร็จเรียบร้อยแล้ว (ใช้เวลาประมาณ 2-3 ชั่วโมง) ก็สามารถใช้งาน MultiWAN Server ได้อย่างสมบูรณ์


257
Linux Server System / คู่มือการติดตั้ง Ubuntu 7.10 ตอนที่ 2
« เมื่อ: 07 กรกฎาคม 2008, 12:10:45 »
ใส่ชื่อเครื่อง Server

เลือก Guilded - use entire disk

เลือก HDD ขนาดที่ตรงกับที่ติดตั้งไว้ในเครื่อง Server

ตอบ Yes

รอสักครู่

ตอบ Yes

ใส่ชื่อเต็มของผู้ดูแลระบบ

ใส่ Username สำหรับไว้ Login

ใส่ Password (แนะนำว่าจำนวน 6-8 ตัวอักษร)

ทวน Password ที่ใส่อีกครั้ง

รอสักครู่

รออีกแล้ว (อาจจะนานหน่อยถ้าหาก Server ไม่เชื่อมต่อ Internet)

เลือก LAMP และ OpenSSH (เลือกโดยการใช้ปุ่มลูกศรและ Spacebar และกด Tab เพื่อเลือก Continue)

ใส่ Password สำหรับฐานข้อมูล

รอสักครู่

เสร็จสิ้นการติดตั้ง CDROM จะเด้งออกมา เอาแผ่น CD ออกแล้วทำการเลือก Continue เพื่อ Reboot


258
Linux Server System / คู่มือการติดตั้ง Ubuntu 7.10 ตอนที่ 1
« เมื่อ: 07 กรกฎาคม 2008, 07:49:14 »
แผนผังการเชื่อมต่อ Server ในการติดตั้ง OS

ขั้นตอนในการติดตั้ง Ubuntu 7.10 Server i386

สำหรับลูกค้าที่ใช้บริการติดตั้ง Server ผ่านอินเตอร์เน็ต โดยท่านจะได้รับแผ่น CD 2 แผ่นประกอบด้วย
1. Ubuntu 7.10 Server i386
2. Patch L7 + ipp2p + Kernel Source

ให้ทำการบูตด้วยแผ่น CD โดยใส่แผ่นที่ 1 ลงไป แล้วทำตามขั้นตอนดังนี้

เลือก Install to the hard disk

เลือก English

เลือก other

กดตัว t 5 ครั้งจะเจอประเทศไทย เลือก Thailand

เลือก No

กดปุ่มลูกศรขึ้นบน 2 ครั้ง เลือก Thailand

เลือก Thailand

เลือก Alt + Shift

รอสักครู่

ทำการติดตั้ง Network

ถ้าหากภายในร้านไม่มีระบบ DHCP จะต้องทำการกำหนด IP เอง เลือก Configure Network Manually

กำหนด IP Address

กำหนด Netmask

กำหนด Gateway

กำหนด DNS


259
Linux Server System / Driver LAN Gigabit Ethernet :: Marvell Technology Group Ltd. 88E8001
« เมื่อ: 06 กรกฎาคม 2008, 02:02:05 »
เป็น Chipset ที่มากับ LAN Card Gigabit ของ TP-Link รุ่น TG-3201

(ถ้าเป็นไปได้ แนะนำให้ซื้อยี่ห้อ SMC ใช้ Chipset Realtek รุ่น SMC9452TX-1
ตัว Ubuntu จะ Detect และมองเห็นเลย โดยไม่ต้องลง Driver เพิ่มเติม)

จะต้องไป download driver ของ Marvell (install_v10.50.1.3.tar.bz2)

วิธีติดตั้งจะแตกต่างไปจากยี่ห้ออื่น ๆ ให้อ่านจาก README

จะได้ driver มาเป็น skge, sk98lin

ก็ติดตั้งได้ปกติ

จากตัวอย่างที่ติดตั้งให้ลูกค้า เครื่องลูกค้าใช้ Mainboard P5K Premium จะมี

Gigabit Onboard 2 Port
Port แรก ด้านบนเป็น Marvell Technology Group Ltd. 88E8056 PCI-E Gigabit Ethernet
Port สอง เป็น Realtek Semiconductor Co., Ltd. RTL-8110SC/8169SC Gigabit Ethernet

และลูกค้าได้ซื้อ LAN Card ของ TP-Link รุ่น TG-3201 มาใส่ 1 ใบ
Port สาม เป็น Marvell Technology Group Ltd. 88E8001 Gigabit Ethernet

เมื่อทำการติดตั้ง Driver เสร็จเรียบร้อย ก็จะสามารถใช้งานได้ทั้ง 3 Port

root@tnet160:~# ethtool -i eth0
driver: sk98lin
version: 10.50.1.3 (01)
firmware-version: N/A
bus-info: 0000:02:00.0

root@tnet160:~# ethtool -i eth1
driver: r8169
version: 2.2LK
firmware-version:
bus-info: 0000:05:04.0

root@tnet160:~# ethtool -i eth2
driver: skge
version: 1.11
firmware-version: N/A
bus-info: 0000:05:01.0

และก็ได้ทำการ compile kernel ใหม่ ที่ support LAN Chipset Marvell โดยเฉพาะ

Linux tnet160 2.6.22.14-l7support-marvell #1 SMP Sat Jul 5 19:34:33 ICT 2008 i686 GNU/Linux


260
Linux Server System / Driver LAN Gigabit Ethernet controller: Attansic Technology Corp.
« เมื่อ: 05 กรกฎาคม 2008, 02:39:43 »
ปกติ Linux จะมี Driver สำหรับ Attansic มาให้แล้วสองตัวคือ atl1 และ atl2 แต่ M/B บางรุ่นจะไม่รับ
จะขึ้น Error เมื่อทำการ lspci

02:00.0 Ethernet controller: Attansic Technology Corp. Unknown device 1026 (rev b0)

ดังนั้นจะต้องทำการ compile driver atl1e ลงไป

http://support.asus.com/download/download.aspx?product=1&SLanguage=us-en&type=map&model=P5KPL-CM

วิธีลงเหมือนกัน P5GC ครับ

261
เป็นร้านที่ติดตั้งผ่านระบบอินเตอร์เน็ต

ค่อนข้างลำบากอยู่ เนื่องจากเจ้าของร้านไม่มีความรู้เรื่อง Linux เลยแม้แต่นิดเดียว

แต่ก็สามารถติดตั้งได้จนเสร็จ ใช้เวลาในการติดตั้ง 6 ชั่วโมง จนเสร็จสิ้นสามารถใช้งานได้


262
เนื่องจากว่า เครื่อง Server มักจะวางไว้ใกล้กับอุปกรณ์พวก Switch , DSLAM , Router ซึ่งจะมี Console Port
ที่สามารถเชื่อมต่ออุปกรณ์และสามารถ Config ผ่าน Console Port ได้ เนื่องจากว่า notebook ไม่มี Serial Port
และตัวแปลง Serial - USB ก็ไม่ได้พกมาซะด้วย

ใน Linux นั้นจะมีโปรแกรม minicom ใช้สำหรับเชื่อมต่อ

ใช้คำสั่ง

minicom -s

สำหรับ config ค่าของ serial ให้ตรงกับอุปกรณ์ที่เชื่อมต่ออยู่ แล้ว save เป็น dfl (default)

ใช้คำสั่ง

minicom -o

สำหรับเชื่อมต่อ serial port ไปยังอุปกรณ์ดังกล่าว

ใช้ปุ่ม Ctrl + A  Z  สำหรับดู Help


264
หากท่านใดที่ต่อ Server ผ่านเน็ต TOT และ Modem Router ยี่ห้อ Thomson แล้วขึ้น Error ว่า


เนื่องจากทาง TOT ได้ปรับปรุงระบบ Authentication ใหม่ โดยมีการกำหนด Session Limit เพิ่มขึ้นมา

โดยจะมี Error แจ้งใน /var/log/messages ดังนี้

Jul  1 15:00:17 ubuntu pppd[9882]: Plugin rp-pppoe.so loaded.
Jul  1 15:00:17 ubuntu pppd[9884]: pppd 2.4.4 started by root, uid 0
Jul  1 15:00:17 ubuntu pppd[9884]: PPP session is 14493
Jul  1 15:00:17 ubuntu pppd[9884]: Using interface ppp101
Jul  1 15:00:17 ubuntu pppd[9884]: Connect: ppp101 <--> eth1
Jul  1 15:00:17 ubuntu pppd[9884]: Remote message: PPP session limit exceeded
Jul  1 15:00:17 ubuntu pppd[9884]: Connection terminated.
Jul  1 15:00:47 ubuntu pppd[9884]: PPP session is 9605
Jul  1 15:00:47 ubuntu pppd[9884]: Using interface ppp101
Jul  1 15:00:47 ubuntu pppd[9884]: Connect: ppp101 <--> eth1
Jul  1 15:00:47 ubuntu pppd[9884]: Remote message: PPP session limit exceeded
Jul  1 15:00:53 ubuntu pppd[9884]: Connection terminated.
Jul  1 15:00:54 ubuntu pppd[9884]: Modem hangup
Jul  1 15:01:24 ubuntu pppd[9884]: PPP session is 11399
Jul  1 15:01:24 ubuntu pppd[9884]: Using interface ppp101
Jul  1 15:01:24 ubuntu pppd[9884]: Connect: ppp101 <--> eth1
Jul  1 15:01:24 ubuntu pppd[9884]: Remote message: PPP session limit exceeded
Jul  1 15:01:24 ubuntu pppd[9884]: Connection terminated.
Jul  1 15:01:55 ubuntu pppd[9884]: PPP session is 7514
Jul  1 15:01:55 ubuntu pppd[9884]: Using interface ppp101
Jul  1 15:01:55 ubuntu pppd[9884]: Connect: ppp101 <--> eth1
Jul  1 15:01:58 ubuntu pppd[9884]: Remote message: PPP session limit exceeded
Jul  1 15:01:58 ubuntu pppd[9884]: Connection terminated.
Jul  1 15:02:28 ubuntu pppd[9884]: PPP session is 2216
Jul  1 15:02:28 ubuntu pppd[9884]: Using interface ppp101
Jul  1 15:02:28 ubuntu pppd[9884]: Connect: ppp101 <--> eth1
Jul  1 15:02:31 ubuntu pppd[9884]: Remote message: PPP session limit exceeded
Jul  1 15:02:31 ubuntu pppd[9884]: Connection terminated.
Jul  1 15:03:01 ubuntu pppd[9884]: PPP session is 14535
Jul  1 15:03:01 ubuntu pppd[9884]: Using interface ppp101
Jul  1 15:03:01 ubuntu pppd[9884]: Connect: ppp101 <--> eth1
Jul  1 15:03:04 ubuntu pppd[9884]: Remote message: PPP session limit exceeded
Jul  1 15:03:04 ubuntu pppd[9884]: Connection terminated.

จึงทำให้บางท่านเจอปัญหาเหล่านี้


265
หลาย ๆ ท่านอาจจะเจอปัญหา Server ทำงานผิดปกติ หรือไม่ตรงกับที่ต้องการ

วิธีการตรวจสอบการทำงานของ Server เบื้องต้น เพื่อหาสาเหตุว่าปัญหาเกิดจาก Service อะไร

1. ตรวจเช็คค่า IP / SUBNET / GATEWAY และ DNS ของเครื่องลูกข่าย


ถ้าเป็น Server ที่ติดตั้งจากทาง Hadyai Internet ให้ตั้งค่าดังนี้
เครื่องที่ 1
IP : 192.168.200.101
SUBNET : 255.255.255.0
GATEWAY : 192.168.200.1

DNS : 192.168.200.1

เครื่องถัดไป ก็ให้เปลี่ยนหมายเลข IP ไปตามลำดับ เช่น เครื่องที่ 2 IP 192.168.200.102 เป็นต้น

266
Software / ทดสอบประสิทธิภาพของ HDD ด้วย HD Tune Pro 3.00
« เมื่อ: 28 มิถุนายน 2008, 02:29:50 »
โปรแกรม HD Tune Pro 3.00

เป็นโปรแกรมที่ใช้ในการทดสอบประสิทธิภาพ (Performance) ของ HDD

เช่น

- ต้องการทดสอบการทำงานว่า HDD ทำงานปกติหรือไม่
- ต้องการทดสอบความเร็วในการอ่าน และ เขียน ของ HDD เพื่อใช้ในการตัดสินใจเลือก HDD
- ต้องการทดสอบอุณภูมิของตัว HDD และการระบายความร้อนของ Case ที่ใช้งานอยู่

เป็นต้น

จะเป็นตัวช่วยในการตัดสินใจเลือกซื้อ HDD มาทำ Server เช่น AOE Server, Proxy Server หรือ Database Server
ที่จำเป็นต้องใช้งานประสิทธิภาพของ HDD สูง

สามารถ download ตัวโปรแกรมได้จากเวป

http://www.hdtune.com/download.html

267
Linux Server System / วิธีติดตั้ง Asterisk GUI
« เมื่อ: 22 มิถุนายน 2008, 00:52:05 »
ก่อนอื่นต้องติดตั้ง subversion ก่อน ด้วยคำสั่ง

apt-get install subversion

เสร็จแล้วก็ติดตั้ง Asterisk GUI

svn checkout http://svn.digium.com/svn/asterisk-gui/trunk asterisk-gui

cd asterisk-gui

รัน ./configure

make

make install

ทำการ backup config เดิมก่อน

cp -r /etc/asterisk /etc/asterisk.backup

ทำการสร้าง symbolic link `/usr/share/asterisk/static-http' to `/var/lib/asterisk/static-http/'

แก้ config ไฟล์

manager.conf
http.conf


manager.conf
=======================
[general]
displaysystemname = yes
enabled = yes
webenabled = yes
port = 5038
httptimeout = 60
bindaddr = 0.0.0.0

[administrator]
secret = lriur
read = system,call,log,verbose,command,agent,user,config
write = system,call,log,verbose,command,agent,user,config



http.conf
======================
[general]
enabled=yes
enablestatic=yes
bindaddr=0.0.0.0
bindport=8088



เสร็จแล้วก็ทำการ reload asterisk ด้วยคำสั่ง

asterisk -rx "reload"

ก็จะสามารถเข้าสู่เวป GUI ของ Asterisk ได้


268
หลายคนอาจจะสงสัย ว่าทำอย่างไรให้ squid ของเรา เร็วและแรง และไม่มีปัญหากะ Patch Game ต่าง ๆ

ก็เลยตั้งกระทู้ไว้ให้พูดคุยกันเรื่องนี้โดยเฉพาะไปเลย

มีความคิดเห็นอย่างไรมาแลกเปลี่ยนกันครับ


269
เนื่องจาก DotA จะทำการ โหลดแพท ซึ่งมีรายละเอียดในไฟล์ update_list.txt

ไฟล์ที่มีการโหลด ได้แก่
UCG.exe
UCGA.exe
UCG.DAT

ถ้าหากทำการเก็บ Cache ไฟล์เหล่านี้ จะทำให้ DotA ไม่สามารถเข้าเกมส์ได้


270
Linux Server System / ทดสอบประสิทธิภาพของ HDD บน Linux
« เมื่อ: 14 มิถุนายน 2008, 21:44:05 »
ด้วยคำสั่ง hdparm -Tt /dev/hda

ยกตัวอย่างเช่น

root@Ubuntu:~# hdparm -Tt /dev/sda

/dev/sda:
 Timing cached reads:   7710 MB in  2.00 seconds = 3858.62 MB/sec
 Timing buffered disk reads:  208 MB in  3.06 seconds =  67.93 MB/sec
root@Ubuntu:~#

ผลลัพธ์จากการทดสอบ HDD SATA รุ่น

SCSI Devices - ATA ST3320620NS (Direct-Access)
 

หน้า: 1 ... 16 17 [18] 19 20 ... 24