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

  • 06 พฤษภาคม 2024, 16:39:52

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

แสดงกระทู้

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 ... 20 21 [22] 23 24
316
ในการติดตั้ง HDD เพิ่มเข้าไปอีก 1 ตัว เพื่อเพิ่มขนาดเนื้อที่สำหรับเก็บข้อมูล หรือสำหรับแยก Cache File สำหรับ squid ก็สามารถทำได้โดย

root@cpluszone:~# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x54bf54bf

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        9327    74919096   83  Linux
/dev/sda2            9328        9729     3229065    5  Extended
/dev/sda5            9328        9729     3229033+  82  Linux swap / Solaris

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8f800000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        1913    15366141    7  HPFS/NTFS
/dev/sdb2            1914        9729    62782020    f  W95 Ext'd (LBA)
/dev/sdb5            1914        9053    57352018+   7  HPFS/NTFS
/dev/sdb6            9054        9729     5429938+   7  HPFS/NTFS
root@cpluszone:~#

จาก ตัวอย่าง จะเห็นว่า HDD ลูกแรก /dev/sda ขนาด 80GB ติดตั้ง Ubuntu 7.10 และ
HDD ตัวที่สอง /dev/sdb ขนาด 80GB ยังไม่ได้ทำการ Format ยังคงมี Partition ของ Windows XP อยู่

ทำการ format โดยใช้คำสั่ง

root@cpluszone:~# fdisk /dev/sdb  <--- คำสั่ง fdisk เพื่อทำการลบและสร้าง partition ใหม่

The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): d  <-- กด d เพื่อ ลบ patition ที่มีอยู่
Partition number (1-6): 1 <-- เลือก partition ที่ต้องการลบ

Command (m for help): p  <-- กด p เพื่อดู partition

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8f800000

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): n <-- สร้าง patition ใหม่ขึ้นมา
Command action
   e   extended
   p   primary partition (1-4)
<-- เป็นแบบ primary
Partition number (1-4): 1
First cylinder (1-9729, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-9729, default 9729):
Using default value 9729

Command (m for help): w  <-- ทำการบันทึก partition ใหม่
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

เมื่อแบ่ง partition เสร็จแล้ว ต่อไปก็ต้องทำการ make filesystem หรือ format นั่นเอง

root@cpluszone:~# mkfs.ext3 /dev/sdb
mke2fs 1.40.2 (12-Jul-2007)
/dev/sdb is entire device, not just one partition!
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
9781248 inodes, 19537686 blocks
976884 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
597 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424

Writing inode tables: done                           
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 37 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

317
เป็นระบบบริการจัดการระบบ Karaoke ผ่านระับบเครือข่าย Ethernet ซึ่งจะทำให้ระบบ Karaoke มีประสิทธิภาพและจัดการได้ง่ายขึ้น


ความสามารถของระบบ
- สามารถกำหนดการใช้งานเป็นแบบต่อเพลง (สำหรับตู้เพลง) หรือต่อชั่วโมง (สำหรับห้อง VIP) ได้
- มีระบบ Prepaid สำหรับซื้อเพลงก่อนร้องได้ (สำหรับตู้เพลง)
- สามารถค้นหาเพลงผ่านทางจอทีวีได้
- สามารถสั่งอาหารและเครื่องดื่มผ่านทางจอทีวีได้
- สามารถส่งข้อความตอบโต้ระหว่างเครื่องผู้ควบคุมกับทีวีแต่ละห้องได้
- สามารถบันทึกข้อมูลลูกค้าไ้ด้
- มีระบบบันทึกการจองห้องได้
- สามารถดัดแปลงเป็นใช้งานอินเตอร์เน็ต / VDO Online สำหรับโรงแรมหรืออพาร์ตเม้นท์ได้
- และอื่น ๆ สามารถพัฒนาเพิ่มเติมได้

เหมาะสำหรับ
- ตู้คาราโอเกะ
- ร้านคาราโอเกะแบบห้องรวม และห้อง VIP
- โรงแรม / อพาร์ตเม้นท์ ที่ต้องการบริการ Karaoke / VDO On Demand / Internet กับลูกค้าในห้องพัก

แผนผังการเชื่อมต่อและควบคุมระบบ Karaoke


ตัวอย่างตู้ Karaoke


ตัวอย่างห้อง Karaoke


318

เนื่องจากตัวโปรแกรม EBG นั้นสามารถรองรับ Client ได้ถึง 1,000 User Online ดังนั้นระบบเครือข่ายขนาดใหญ่ จึงสามารถนำระบบนี้ไปใช้งานได้ อย่างไม่มีปัญหา ยกตัวอย่างเช่น

มหาวิทยาลัยราชภัฏสุราษฏร์ธานี ได้ใช้ระบบ EBG เป็นตัว Authentication ระบบ Wireless ของมหาวิทยาลัย ซึ่งสามารถทำงานได้เทียบเท่าระบบที่มีราคาหลายแสนบาทเลยทีเดียว

ตัวระบบโปรแกรม EBG นั้นเป็นโปรแกรมที่ทางหาดใหญ่อินเตอร์เน็ต ได้เป็นผู้พัฒนาและคิดค้นขึ้นมา จึงสามารถปรับแต่งและจูนให้เข้ากับระบบของลูกค้า ได้ตรงตามความต้องการมากที่สุด



ความสามารถของตัวโปรแกรม EBG สามารถดูได้จาก http://www.hadyaiinternet.com/index.php?topic=16.0



319
โดยใช้โปรแกรม rp-pppoe เป็นตัวทำหน้าที่เป็น pppoe-server และใช้การ Authentication อ้างอิงจาก text file ซึ่งเป็นแบบง่าย ๆ โดยไม่ต้องใช้ RADIUS Server

ขั้นตอนการติดตั้ง

1. apt-get install pppoe

2. config /etc/ppp/options

lock
crtscts
nobsdcomp
nodeflate
nopcomp

3. config /etc/ppp/pppoe-server-options

auth
require-chap
default-mru
default-asyncmap
lcp-echo-interval 60
lcp-echo-failure 5
ms-dns a.b.c.d
ms-dns e.f.g.h
noipdefault
noipx
nodefaultroute
noproxyarp
noktune
netmask 255.255.255.255
logfile /var/log/pppd.log

4. config /etc/ppp/chap-secrets

ีuser1 * pass1 172.16.35.10

5. start your pppoe-server like this:

pppoe-server -I eth0 -L 10.0.0.1

เรียบร้อย

320
Linux Server System / วิธีตั้งเวลาใน Server Ubuntu 7.10
« เมื่อ: 29 เมษายน 2008, 12:06:59 »
View Time
To view the current date and time, the following command will be enough

date

Set Time
To change time means to set a new time. To set time in Ubuntu (or any Linux), just run the following command

sudo date newdatetimestring

where newdatetimestring has to follow the format nnddhhmmyyyy.ss which is described below

nn is a two digit month, between 01 to 12
dd is a two digit day, between 01 and 31, with the regular rules for days according to month and year applying
hh is two digit hour, using the 24-hour period so it is between 00 and 23
mm is two digit minute, between 00 and 59
yyyy is the year; it can be two digit or four digit: your choice. I prefer to use four digit years whenever I can for better clarity and less confusion
ss is two digit seconds. Notice the period ‘.’ before the ss.
Let’s say you want to set your computer’s new time to December 6, 2007, 22:43:55, then you would use:

sudo date 120622432007.55

It couldn’t be any easier, could it? The source of this information was a good post on Ubuntu Forums (Set time/date via command line).


321
ตอนที่ 1-9

ตอนที่ 1 การออกแบบเครือข่าย และเตรียมอุปกรณ์ก่อนการติดตั้ง ( Planning )
ตอนที่ 2 การติดตั้งโปรแกรม ClarkConnect 4.2 Enterprise (Installation)
ตอนที่ 3 หน้าตาโปรแกรม ClarkConnect (Console / Webbase Config)
ตอนที่ 4 การเชื่อมต่ออินเตอร์เน็ต (Network Configuration)
ตอนที่ 5 การลงทะเบียน ClarkConnect (Register)
ตอนที่ 6 การอัพเดทและลงโปรแกรมเพิ่ม (Update)
ตอนที่ 7 การเชื่อมต่ออินเตอร์เน็ตแบบหลายเส้น ( Multi-WAN 1 )
ตอนที่ 8 การเชื่อมต่ออินเตอร์เน็ตแบบหลายเส้น ( Multi-WAN 2 iptables )
ตอนที่ 9 ปรับแต่ง Firewall ให้ Create Dot A ( Port forwarding )

http://www.hadyaiinternet.com/datasheet/CC42-xxxkung.pdf

ตอนที่ 10 - 19

ตอนที่ 10 ติดตั้ง WebProxy เพิ่มความเร็วให้เน็ต ( Squid )
ตอนที่ 11 การปรับแต่ง squid.conf
ตอนที่ 12 ติดตั้ง FTP Proxy เก็บแพทเกมส์ ( Frox )
ตอนที่ 13 การปรับแต่ง frox.conf
ตอนที่ 14 ติดตั้ง Samba สำหรับแชร์ไฟล์ (Windows Files Sharing)
ตอนที่ 15 การปรับแต่งระบบเส้นสำรองแทนเส้นหลักที่มีปัญหา ( failed over )
ตอนที่ 16 ระบบ VPN เชื่อมต่อมาจากภายนอก
ตอนที่ 17 ระบบป้องกันเวปที่ไม่พึงประสงค์ (Web Filtering )
ตอนที่ 18 ระบบบันทึกข้อมูลการใช้งานของผู้ใช้ เป็นเวลา 90 วัน (Logging)
ตอนที่ 19 การดูแลรักษา และแก้ปัญหาเบื้องต้น


322
ให้แก้ไฟล์ /etc/ppp/peers/dsl-xxx

# Minimalistic default options file for DSL/PPPoE connections

noipdefault
#defaultroute
#replacedefaultroute
hide-password
#lcp-echo-interval 30
#lcp-echo-failure 4
noauth
persist
mtu 1432
#persist
maxfail 0
#holdoff 20
plugin rp-pppoe.so
nic-eth1    <---- กำหนด eth1
unit 1       <---- กำหนด ppp1

user "y74240000@goldcyber"

-----------------------------------------------

323
Linux Server System / Frox Version 0.7.18 แก้บั๊ก URL และ lock file
« เมื่อ: 27 เมษายน 2008, 23:58:04 »
สามารถ download ได้ที่

http://www.hadyaiinternet.com/upload/frox-xxxkung.tar.gz

อัพโหลดแล้วแตกไฟล์ ก๊อปปี้ทับ frox ตัวเก่าได้เลย

/* หมายเหตุ compile สำหรับ ClarkConnect 4.2 Enterprise เท่านั้น */

ตัวอย่างแพท Audition
โค๊ด: [Select]
Sun Apr 27 20:05:49 2008 frox[26232] Connect from 192.168.200.160
Sun Apr 27 20:05:49 2008 frox[26232] ... to 203.144.132.11()
Sun Apr 27 20:05:50 2008 frox[26232] Cache hit for ftp://t3upload@203.144.132.11//AUDITION/Update.ini.
Sun Apr 27 20:05:51 2008 frox[26232] Cache hit for ftp://t3upload@203.144.132.11//AUDITION/AUDITION06085.zip.
Sun Apr 27 20:05:55 2008 frox[26232] Cache hit for ftp://t3upload@203.144.132.11//AUDITION/AUDITION06086.zip.
Sun Apr 27 20:07:20 2008 frox[26232] Server closed the control connection
Sun Apr 27 20:07:20 2008 frox[26232] Closing session


324
เลือกที่ Start -> Control Panel -> Network Connections -> Create New Connection









325
Windows Server System / Terminal Server บน Windows 2003 Server R2
« เมื่อ: 25 เมษายน 2008, 04:33:19 »
Coming Soon...

326
Windows Server System / VPN บน Windows 2003 Server R2
« เมื่อ: 25 เมษายน 2008, 04:31:57 »
Coming Soon

327
Games

แพทเกมส์ที่วิ่งทาง port 80 (ใช้โปรแกรม squid ที่ปรับแต่งแล้วในการเก็บแพท)
- Special Force
- Cabal Online
- Pangya Online

แพทเกมส์ที่วิ่งทาง port 21 (ใช้โปรแกรม frox ที่แก้บั๊กแล้วในการเก็บแพท)
- Ragnarok Online
- Audition
- Luna Online
- Ghost Online
- HipStreet (use port 8021)
- Yulgung

Service ที่สำคัญ ๆ
- DNS   udp port 53
- HTTPS  tcp port 443
- MSN    tcp port 1863, 7001, udp 7001 (dest : 207.46.0.0/16, 64.4.0.0/18, 65.52.0.0/14)
- RSTP   tcp port 554   (Real Time Streaming Protocol)
- Camfrog  tcp port 6005 (default port)  udp 5000-15000 (default port)

328
วิเคราะห์การทำงานของ Squid เพื่อเพิ่มความเร็วในการเข้าเวป
และสำหรับเก็บเกมส์แพทเกมส์ และแก้ปัญหา error ของ แพทเกมส์

329

mini IP DSLAM ยี่ห้อ IPTran รุ่น 9024
ความสามารถ
- เป็น DSLAM แบบ ADSL/ADSL2/ADSL2+ ขนาด 24 port
- มี Port Uplink เป็น Gigabit แบบ 1000BaseTX
- มี DSL แบบ 24-port 50-pin RJ-21 champ connector
- มี POTS แบบ 24-port 50-pin RJ-21 champ connector


330
Linux Server System / ปัญหา Asus P5GC LAN Onboard บน Ubuntu 7.10
« เมื่อ: 25 เมษายน 2008, 02:08:31 »
เมื่อติดตั้ง Ubuntu 7.10 บน เมนบอร์ด Asus P5GC จะไม่สามารถใช้งาน Gigabit LAN Card ได้ จะต้องทำการลง driver ใหม่

ด้วยวิธีการดังนี้

ASUS P5GC network howto

--------------------------------------------------------------------------------

Hi. If you have the Asus P5GC motherboard (not the p5gc-xx) with 6 pci slots and no onboard video chances are that Ubuntu 7.10 will fail to recognice your onboard network properly

to check:
lspci (look for r8168 or r1869)
ethtool -i eth0

if you, like me, find that lspci lists r8168 but ethtool list r8169 and you have no working network connection do:

1 - Download the newest r8168-xxxx driver from : http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=5&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false#RTL8111B/RTL8168B/RTL8111/RTL8168/RTL8111C
2 - Unpack on the Desktop
3 - $ sudo mv r8168-xxxx /usr/src
4 - $ cd /usr/src/r8168-xxx
5 - $ sudo make clean modules
6 - $ sudo make install
7 - $ sudo depmod -a
8 - $ sudo insmod ./src/r8168.ko
9 - $ lsmod -a | grep 8168 #just to check it is there
10 - $ cd /etc/modprobe.d
11 - $ sudo touch blacklist-network
12 - $ nano blacklist-network # add 'blacklist r1869' without the quotes
13 - $ sudo update-initramfs -u #to make the change permanent
14 - reboot
15 - ethtool -i eth0 #to see new driver assigned

Most of this stolen from http://www.linuxquestions.org/questions/linux-networking-3/no-network-detected-realtek-81118168-issue-615047/#post3029998
regards,
Lasse


หน้า: 1 ... 20 21 [22] 23 24