Saturday, December 15, 2007

การเพิ่ม Time Server และเปลี่ยนแปลงความถึ่ของการ Synchronize

To synchronize more often

find the W32Time registry key given below modify the existing value called "SpecialPollInterval". If you don't see SpecialPollInterval listed in this section, you can create it as a new DWORD value. The value of this should be set to the number of Seconds between sync attempts. If you wanted to check once per day, the value would be 86400.

System Key: [HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeTimeProvidersNtpClient]
Value Name: SpecialPollInterval
Data Type: REG_DWORD (DWORD Value)
Value Data: Seconds in Decimal

To add more time servers

first check to see if your version of Windows will let you simply type them in on the screen shown above. If so, this saves you the trouble and possible problems of editing the registry yourself.

If your version of Windows won't let you simply add them on the screen above, you may need to add them manually yourself. Find the registry key for DateTime Servers provided in full below and create a new string value. Name it the next number in sequence (usually '3') and set the data of the new value to equal the hostname or IP address of the time server.

You can also change the default server by setting the value of "(Default)" to the entry number of the required server.

System Key: [HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionDateTimeServers]
Value Name: (Default)
Data Type: REG_SZ (String Value)
Value Data: Server Hostname or IP Address

Friday, November 30, 2007

Rename Workstation Name in the domain.

ต้องใช้คำสั่ง netdom ที่ต้องลงเพิ่ม อยู่ใน Support\Tools ในแผ่น Windows XP CD.

รูปแบบคำสั่ง

netdom renamecomputer <ชื่อเก่า> /newname:<ชื่อใหม่>
/userd:<ชื่อโดเมนแบบ netbios>\<ชื่อ user ที่เป็น domain admin> /passwordd:*
/usero:<ชื่อlocal admin> /passwordo:*
/reboot:<เวลาที่รอก่อนจะ reboot>

ตัวอย่างคำสั่ง

netdom renamecomputer CIS /newname:IT
/userd:MYDOMAIN\MYADMIN /passwordd:*
/usero:administrator /passwordo:*
/reboot:30

* = รอให้ใส่ password
o = object = local
d = domain

Tuesday, November 20, 2007

Volume Shadow Service (VSS)

Concept คือ
1. สร้าง share ขึ้นบน Windows Server 2003
2. ไปที่ Drive Propertites ที่มีการสร้าง share แล้ว enable VSS เสร็จแล้วกำหนด schedule สำหรับ backup ว่าจะให้ทำตอนไหนบ้าง กันพื้นที่ไว้เท่าไหร่ (VSS จะ backup เฉพาะ folder ที่ได้ทำการ share เอาไว้เท่านั้น และจะทำการเรียกคืนจาก client ที่ได้ map share นั้นเอาไว้)
3. การเรียกคืน file , folder จะเรียกคืนได้จากเครื่องที่ได้เข้าถึง share โดยให้เลือก properties จะมีแถบ Old Version เพิ่มขึ้นมาให้เลือกว่าจะ restore version ไหนกลับคืนมา

Note
- ตรง Schedule จะแปลกหน่อยคือมีมาให้โดย default อยู่ 2 schedule ซื่งทำงานทั้งคู่ ต้อง click dropdown ลงมาถึงจะเห็น สามารถแก้ไข ลบออก หรือเพิ่ม schedule ใหม่เข้าไปก็ได้ซึ่งจะทำงานทุกอันที่ list ไว้

- The snapshot is taken if the "modified date" is newer than the last snapshot date.
- If the modified date is older than the last snapshot date, then no snapshot is taken.
- Example: the last snapshot was Monday at 7AM. It is now Tuesday at 3PM. A file with a Last Modified Date of Monday at 5PM will get copied, and a file with Last Modified Date of Sunday will not be copied.

Publishing Print Sever Behind ISA Firewall

ขั้นแรกต้อง Forward Port 9100 ที่ตัว Router ก่อน
สร้าง Protocal Definition ขึ้นมาโดยมีค่าดังนี้
Port = 9100
Protocal Type = TCP
Direction = Inbound
หลังจากนั้นก็สร้าง Access Rule ธรรมดา แล้วก็ add tcp/ip printer ธรรมดา

Sunday, November 04, 2007

Windows Time Synchronization

การ Synchronize ของ Windows 2003/2000/NT จะขึ้นอยู่กับ Windows Time Serivce (W32time)
Windows 2003 ใช้ NTP
Windows XP ใช้ SNTP/NTP
Windows 2000 ใช้ SNTP

Default time sync
Windows 2003 every 15 minutes
Windows XP every 7 days
Windows 2000 every 45 minutes จนกว่าจะสำเร็จ หลังจากนั้นทุกๆ 8 ชั่วโมง

เราต้องการที่จะทำให้ DC ของ Domain sync กับ Time Server ภายนอก แล้ว Workstation ทุกตัว Sync กับ DC อีกที

W32Time ใช้ Network Time Protocol (NTP) หรือ Simple Network Time Protocol (SNTP) ในการ synchronize Windows 2000/2003 network.
(The only available input to W32Time is NTP or SNTP) แต่ NTP จะมีความแม่นยำมากกว่า SNTP

EventID 29,38,47,50 แสดงถึงการที่ W32time ไม่สามารถ sync time ได้

Synchronizing a Windows 2003 domain controller or Windows XP client (SP2) to a time server

1. Stop W32time service
2. ตั้งเวลาของเครื่องให้ย้อนหลังกลับไป เพื่อทดสอบว่าเมื่อ w32time ทำงานปกติแล้ว เวลาจะถูกตั้งค่าอย่างถูกต้องหรือไม่
3. Define the authoritative time server and configure the windows 2003 domain controller or XP workstation for NTP client mode

โดย default แล้ว Windows 2003 และ Windows XP SP2 จะถูกกำหนดให้ sync time กับ external time server เอาไว้อยู่แล้ว แต่จะถูกตั้งค่าให้ทำงานใน mode Symmetric Active mode แต่ NTP time server จะตอบสนองเฉพาะกับ Client Mode เท่านั้น จึงต้องเปลี่ยน mode ก่อนโดย ไปที่ CMD แล้วสั่ง

w32tm /config /manualpeerlist:xxx.xxx.xxx.xxx,0x8 /syncfromflags:MANUAL

โดยที่ xxx.xxx.xxx.xxx คือ ip ของ NTP time server

4. เสร็จแล้วสั่งใช้ service w32time ทำงาน แล้วสั่ง w32tm /resync ใน CMD

ตรวจสอบดูเวลาของเครื่องว่าตรงหรือยัง

Note
0x1 = Instead of following the NTP specification, wait for the interval specified in the SpecialPollInterval entry before attempting to recontact this time source. Setting this flag decreases network usage, but it also decreases accuracy.

0x2 = Use this time source only as a fallback. If all time sources that are not fallbacks have failed, then the system selects one fallback time source at random and uses it.

0x4 = Set the local computer to operate in symmetric active mode in the association with this source.

0x8 = Set the local computer to operate in client mode in the association with this source.

Tuesday, October 09, 2007

ช่องความถี่

VHF Low (47MHz-68Mhz) => 2-4
FM (88MHz-108MHz)
S-Band Low (104MHz-174MHz)=> s1-s10
VHF High (174MHz-230MHz)=> 5-12
S-Band High (230MHz-300MHz)=> s11-s20
UHF Low (470MHz-582MHz)=> 21-34
UHF High (582MHz-862MHz)=> 35-69

Explanation of (L.O.) Local Oscillator Frequency

Explanation of (L.O.) Local Oscillator Frequency:

Suppose a signal comes from the satellite at a microwave frequency of 12 GHz but your typical receiver tunes up only to 1.75 GHz? (Also bear in mind that most cable will NOT happily pass frequencies much above 2GHz).
The function of the LNB is to reduce the frequency of the satellite signal. It does so by subtracting a frequency figure from the satellite signal frequency.
This figure is called the "Local Oscillator" frequency ("LO") of the LNB.
So an LNB with a LO of 10.25GHz will send a 12GHz satellite signal down the cable at 1.75GHz (just within range of your old receiver).
12GHz - 10.25GHz = 1.75GHz
Working in reverse, if your highest satellite frequency is 12.6 GHz then you will need an LNB with a LO of at least
12.6 - 1.75 = 10.85GHz
in order to reduce the satellite signal to a frequency that your receiver can "see" (1.75 GHz).
Now let's reverse the process again:
A "standard" LNB has a LO of 10.0GHz. So the highest satellite program frequency that your standard receiver can *see* is
1.75 + 10.0 = 11.75GHz
An "enhanced" LNB has a LO of 9.75 GHz
1.75 + 9.75 = 11.50GHz
A "universal LNB has TWO LOs. One is 9,75 (same as "enhanced") The other is 10.6 which is selected if it "hears" a 22kHz (just above audio) signal.
1.75 + 10.6 = 12.35GHz
Of course, if your receiver can accept signals up to 2.0 GHz then the highest acceptable signal frequency becomes
2.00 + 10.6 = 12.60GHz
And a receiver with a tuner that extends to 2.15GHz achieves
2.15 + 10.6 = 12.75GHz (which happens to be the top of the "Telecom" band!)
Now, you are still puzzled about the DBS LNB
This has a LO of (typically) 10.75GHz
So an old 1.75GHz receiver will get up to
1.75 + 10.75 = 12.50GHz
A final consideration has to be the LOWER limit on tuning:
Most old receivers can tune no lower than 0950 MHz (= 0.95GHz) whereas later ones might go down to 0.70GHz.
Check out the above calculations with these lower tuning range limits to see the overall tuning bandwidth for any receiver.
This is all very basic "sums" - nothing complex - so once you have a "picture" of what is happening, you can sketch little band plans for any combination of receiver annd LNB.
Once you know the value(s) of the LO(s) in the LNB and of the upper and lower tuning limits of the receiver in question, you can quickly figure out what can be received.
NOTE:
Older receivers *expect" an LNB with a 10.0 LO and the frequency display is arranged just for this. However, you can use an LNB with a different value LO. It just means that the *displayed* frequency will be incorrect.
Transponder  - LNB Local  = tuner frequency Frequency      Oscillator     12750 MHz                       Telecom/Astra 1F               DBS/Astra 1E       11700 MHz  - 10000 MHz = 1700                             Astra 1B                                            Astra 1A     Receiver tuning range without ADX                             Astra 1C                                        950  + 500 = 1450   Astra 1D                                                              Tuning range with ADX                                          10700 MHz  - 10000 MHz = 700  + 500 = 1200

An old standard receiver usually tunes from 950 to 1700 MHz.
The map above shows the limited tuning range of an old standard receiver with an old standard 10.0 GHz LNB. The addition of an ADX Channel Expander moves the Astra 1D frequencies up by 500 MHz into the tuning range of the receiver.

To receive all Astra channels from satellites D to B without using an ADX, a receiver would need a tuning range of 700 to 1700 MHz.



Transponder    LNB Local Frequency      Oscillator     12750 MHz  - 10600 MHz = 2150                                                       Telecom/Astra 1F                     Receiver tuning range for Hi band (22kHz on)                             DBS/Astra 1E                      - 10600 MHz = 1100 11700 MHz  -  9750 MHz = 1950                             Astra 1B                                            Astra 1A                              Receiver tuning range for Lo band (22kHz off)   Astra 1C                                            Astra 1D                                          10700 MHz  -  9750 MHz = 950

An Enhanced LNB has a local oscillator frequency of 9750 MHz.
The receiver now needs a tuning range of 950 to 1950 MHz as shown in the map above.

If a Universal LNB is used, its local oscillator can be switched from 9750 to 10600 MHz by sending a 22kHz signal up the cable. Some receivers have this facility built inside. Some will need an external signal-inserter box connected into the cable.

If the receiver has a range of 950 to 2150, it will be able to receive programmes on both Hi and Lo band.



Another possibility is to use an ADX-Plus. This has an internal switch which, when moved across, makes the ADX-Plus move the frequencies DOWN by 500 MHz instead of up.

So a channel at 12750 MHz is moved down like this:

12750 - 10600 - 500 = 1650 MHz (with an ADX-Plus)

which is well within the tuning range of an old standard receiver.

And the lowest channel receivable will be:

950 + 500 + 10600 = 12050 MHz (with 22kHz signal ON and ADX-Plus)

By fiddling with the ADX-Plus switch and the 22kHz signal inserter you can probably receive the full range of channels if you have a Universal LNB and a standard receiver!


Note: MHz (MegaHertz) = GHz (GigaHertz) x 1000
So 9750 MHz = 9.75 GHz
Please let me know if you have any other thoughts on this and maybe we can add it to the FAQs.
Astra broadcast frequencies range from 10700 Mhz (Astra 1D) through to
11700 Mhz (Astra 1B). So I need to calculate which of these frequencies
each of the two L.O.s on the LNB in conjunction with the tuning range
of the receiver, I can receive, thus:

L.O. 1 of 9750 Mhz

950 Mhz (lower tuning capabilities of receiver ) + 9750 Mhz (L.O. 1)
= 10700 Mhz
1700 Mhz (upper tuning cap. of receiver) + 9750 Mhz (L.O. 1) = 11450
Mhz.

Hence able to receive frequencies of 10700 Mhz to 11450 Mhz.

L.O. 2 of 10600 Mhz

950 Mhz (lower tuning capabilities of receiver ) + 10600 Mhz (L.O. 2)
= 11550 Mhz
1700 Mhz (upper tuning cap. of receiver) + 10600 Mhz (L.O. 2) = 12300
Mhz.

Hence able to receive frequencies of 11550 Mhz to 12300 Mhz.

Being an old crappy Amstrad SRD400, I presume my receiver isn't able to
signal the LNB to switch to the upper of the two L.O. frequencies, so I
can't access anything above 11450 Mhz. With a 22kHz signal inserter I should
therefore be able to access 11550Mhz - 12300Mhz?

You are doing OK so far.

However, this leaves a gap in the middle between 11450 and 11550 of
frequencies which I can't access! Presumably with an ADX (and 22kHz signal
inserter) I can shift those frequencies into tunable ranges?

Presumably, all I need now is an ADX and a 22kHz signal inserter in order to
receive all Astra frequencies (and then some ... )? Oh yes, and a Sky
subscription :-)

You don't really need a 22kHz signal inserter.

Would I be better off buying an ADX plus, so that I shift the
frequencies down rather than up? So as to ensure my receiver is happier
about it?

Yes, I would think so. There's nothing on the higher frequencies for your Amstrad to receive from Astra at 19.2 degrees East.
Sky Sports 3 would be the highest useful channel, with a couple of foreign stations just above that.


How much would I expect to pay for an ADX and 22kHz signal inserter?

If you have a Sky subscription they will post you an ADX-Plus for just £9.99.
Otherwise you can buy one for £12.95 upwards.


Many thanks for all your help. It all seems so much simpler now. Or have
I missed something?

Nope. I told you it was simple. People become frightened because they think it's too technical. The truth is that you simply need to be able to add and subtract - roughly to primary school level or lower! You don't need *any* technical knowledge. Just realise that there are various ways to add or subtract the frequencies. Specifically: there are various fixed values that you can use - Typically 10.00 GHz, 9.75 Ghz, 10.6 Ghz etc. for an LNB. Also +0.5GHz and -0.5GHz for an ADX-Plus Channel Expander, dependent on its internal switch position.

______________________________________________________
LNB Universal จะมี LO อยู่หลายค่า เช่น 2 ค่าสำหรับ KU Low Band กับ KU High Band คือ 9750 กับ 10600
ส่วน LNB 11300 เป็น LNB สำหรับ UBC จะมี LO อยู่ค่าเดียวคือ 11300
สังเกตว่าความถี่ช่องต่างกๆของ UBC จะมากกว่า 11300 เสมอ เมื่อนำมาหักล้างกันจะได้ออกมาเป็นความถี่ที่ Receiver จะสามารถรับได้ ถ้าใช้ LNB 10600 เมื่อเอามาหักล้างกันแล้วอาจจะเกินช่วงที่ Receiver สามารถรับได้

การเปลี่ยนค่า LO ของ LNB Universal ใช้สัญญาณ 22 KHz แต่มันจะทำโดยอัตโนมัติไม่จำเป็นต้องสั่งเอง
สาเหตุที่ต้องมีการหมุนองศาของหัว LNB เพราะว่าภายในจะมีแผ่นรับสัญญาณซึ่งจะวางตั้งฉากกันเพื่อรับสัญญาณจากทั้ง V และ H จึงต้องหมุน LNB เพื่อให้ขั้วรับสัญญาณได้ดีที่สุด

สรุป
- ค่า LNB C Band คือ 5150
- ค่า LNB KU Band คือ 9750,10600
- ค่า LNB UBC คือ 11300

Tuesday, October 02, 2007

Satellite Equipment

Splitter
คือตัวแยกสัญญาณ RF แบบปกติ ซึ่งสัญญาณจุด Out จะ Loss เท่ากันหมดทุก Port , splitter TV ธรรมดา ไม่ต้องมีการส่งสัญญาณย้อนกลับ ทำให้เอาไปใช้กับระบบดาวเทียมไม่ได้

Tap off
สัญญาณช่อง Tap จะ Loss มากกว่าช่อง Out ตัวอย่างเช่น Tap off 2 ทาง จะมี
1. ช่อง In = 1 ช่อง
2. ช่อง Out = 1 ช่อง Loss ประมาณ 3.5 dB
3. ช่อง Tap = 2 ช่อง Loss ประมาณช่องละ -10 dB (หรือแล้วแต่เลือก เช่น -15, -20, -25 dB)
ดังนั้น Tap off เหมาะใช้แยกสัญญาณต้นแหล่งที่ออกจาก Booster และสัญญาณยังแรงมากอยู่ จึงต้องใช้ Tap off ลดสัญญาณให้พอดี ก่อนเข้าโทรทัศน์ ส่วนช่อง Out ของ Tap off ใช้ต่อไปยัง Tap off หรือ Splitter ตัวต่อไป

Power Pass Splitter
เอาไว้ต่อระหว่าง LNB กับ Receiver ต่างจาก Splitter ธรรมดา คือไฟสามารถย้อนกลับจาก Out ไป In ได้ เหมาะใช้แยกรีซีฟเวอร์ หลาย ๆ เครื่อง เนื่องจาก Lnb ต้องการไฟเลี้ยงจากรีซีฟเวอร์ (Receiver ส่งสัญญาณคำสั่งไปสั่ง LNB ) โดยจะมีตัวไดโอดที่ต่ออยู่ในตัวสปลิทเตอร์ ทำหน้าที่กำหนดขั้วทางเดินของไฟ ขั้วไฟของสปลิทเตอร์แบบนี้ส่วนมาก จะออกแบบให้ไฟ + ผ่านเข้าทาง Output ไปออกทาง Input และทุกๆ Output จะต่อไดโอดไว้และรวมกันที่จุด Input ทั้งหมด ( แบบนี้เขาเรียก ALL PASS ) หรือยอมให้ไฟผ่านตัวมันได้ทุกทาง สปลิทเตอร์แบบนี้จะมีย่านความถี่คลอบคลุมไว้ค่อนข้างกว้างคือ ตั้งแต่ 5-2400 MHz ฉนั้นสปลิทเตอร์แบบนี้จึงสามารถใช้ได้ทั้งสัญญาณทีวีธรรมดา จนถึงย่านความถี่ดาวเทียม







DiSEqC (Digital Sattelite Equipment Control)
เป็นตัวอุปกรณ์ที่ใช้ทำหน้าที่ตัดต่อสลับเลือกสัญญาณจากตัว LNB เพื่อนำมาใช้งาน โดยมี IC ไมโครโปรเซสเซอร์ เป็นตัวอ่านคำสั่งจากเครื่องรับว่าสั่งให้สวิทไปทางใหน การจ่ายไฟเลี้ยงให้กับตัว LNB โดยปกติของสวิทแบบนี้จะจ่ายไฟเลี้ยงให้กับตัว LNB ที่ถุกเลือกเท่านั้น ถ้ามีการใช้ DiSEqC Switch ต่อกับ splitter เพื่อพ่วงกับ Receiver หลายๆตัวอาจจะทำให้สัญาณกวนกันได้



ดังนั้นการใช้ DiSEqC Switch จึงเป็นการเลือกสัญญาณจาก LNB หลายๆหัวจาก Receiver เครื่องเดียว
แต่การใช้ Multi switch จะเป็นการเลือกสัญญาณจาก LNB หลายๆหัวจาก Reveiver หลายๆเครื่องดูได้อิสระ



คำสั่งที่ออกมาจากหลังเครื่องReceiver คำสั่งพื้นฐานได้แก่
คำสั่ง 13/18 ใช้เลือก V(13v) หรือ H(18v)
คำสั่ง 0/22 Khz ใช้เลือก C(0Khz,Low Band) หรือ Ku(22Khz,High Band)
คำสั่ง DiSEqC 1.0 เลือก จาน fix แต่ละใบ
คำสั่ง DiSEqC 1.2 สั่ง Move จาน

Multi Switch คืออุปรณ์ ซึ่งเกิดจากการนำชุดคำสั่งข้างต้นไปประกอบกันหลายๆคำสั่ง ซับซ้อนกว่า DiSEqC switch ทำให้ต่อกับหลาย Reciever ได้


Spec ของพวก splitter แบบต่างๆ
http://www.9sats.com/product/product.php?cat=75&
วิธีการต่อ Multiswitch แบบต่างๆ
http://www.nics-sat.com/index.php?lay=show&ac=article&Id=326827&Ntype=6



LNB (Low-noise Block Converter)
สัญญาณที่มาจากดาวเทียมเป็นสัญญาณ Microwave ทำให้มี Loss สูงเวลาผ่านสายเคเบิล LNB จะทำหน้าที่แปลงสัญญาณความถี่สูง (GHz) ให้เป็นความถึ่ต่ำ (MHz) ทำให้มี loss น้อยลง เวลาซื้อ LNB จะต้องระบุว่าทำงานที่ความถึ่เท่าไหร่เช่น 11300 MHz เป็นต้น



Combiner
เป็นอุปกรณ์รวมสัญญาณ RF หลายๆช่องจาก Modulator ให้ออกมารวมกันอยู่ในสายเส้นเดียว เวลาเลือกซื้อต้องเลือกย่านความถึ่ด้วยว่าต้องการย่านไหนเช่น UHF, VHF, S-Band อย่างละกี่ช่อง ต้องดูเครื่องรับด้วยว่ารับได้ย่านละกี่ช่อง, Combiner แบ่งออกเป็น 2 ชนิดคือชนิด Passive ไม่ต้องใช้ไฟเลี้ยง กับแบบ Active จะต้องมีไฟเลี้ยงเพราะว่าได้เพิ่มวงจรในส่วนของ การขยายสัญญาณ , การกรองสัญญาณ เข้ามา ในบางกรณีถ้ามีจำนวนช่องน้อยๆสามารถใช้ splitter ต่อกลับทางก็ได้เหมือนกัน หรืออาจจะสามารถใช้ splitter ต่อกลับทางในการรวม combiner 2 ตัวที่ไม่มีช่องสำหรับ link กันก็ได้

Mixer
ใช้สำหรับรวมสัญญาณดาวเทียม (950-2250 MHz) กับ สัญญาณทีวีจากเสาอากาศ (40-860 MHz) ลงมาในสายเส้นเดียวกัน เช่นในกรณีรับบางช่องจาก CableTV แล้วเอามารวมกับรายการที่มาจากดาวเทียมอีกบางช่องเพื่อประหยัดค่าใช้จ่าย

Card Reader
UBC ใช้ Irdeto สังเกตุที่ตัว reader จะมี chip ความถี่ติดอยู่ด้วย
ASTRO ใช้ Mediaguard หรือ SECA2
SVT ใช้ VIAccess
ตัวอ่านบัตรของ Mediaguard กับ VIAccess สามารถเสียบในช่องเดียวกันได้ แต่อาจจะต้อง flash firmware หรือสลับสารแพรของตัวอ่านบัตร หรือกดปุ่ม Format ค้างเอาไว้

Booster
การส่งสัญญาณไปในสาย ช่องความถี่สูงจะ lost ไปได้ไวกว่าช่องความถี่ต่ำ การปรับ booster จึงต้องปรับ slope ให้ขยายช่องความถี่สูงมากกว่าความถี่ต่ำ

Line AMP Booster
เป็นบูสเตอร์ขยายสัญญาณ LNB ความถี่ 950-2050 MHz (DC 13-18V)ใช้ขยายสัญญาณในกรณีที่มีการเดินสายระหว่างจานดาวเทียมกับเครื่องรับ เป็นระยะไกล ๆ

Modulator
ใช้แปลงสัญญาณ AV จาก receiver ให้เป็น RF ปกติจะใช้ต่อกันหลายๆตัวแล้วเอาเข้า Combiner เพื่อที่จะได้สามารถส่งหลายๆช่องไปในสายเส้นเดียวได้

จาน Offset
หมายถึงจานที่ หน้าจานจะหันไม่ตรงตำแหน่งดาวเทียมตรงๆ จะทำมุมก้มกว่า (มุมกวาดเท่ากัน)รับสัญญาณโดยหัว LNB ไม่ได้อยู่ตรงกลางจาน เช่นจาน UBC เป็นต้น
จานที่ LNB อยู่กลางจานเรียกว่า Prime Focus

Friday, September 28, 2007

รวม Link เกี่ยวกับดาวเทียม

http://www.lyngsat-address.com/tv/Asia.html
รายการ TV ผ่านดาวเทียมที่อยู่ในแถบ asia ทั้งหมด

รายการช่องเรียงตามตัวอักษร
http://www.lyngsat-address.com/tv/index_C.html

รายการ Free TV Thai ที่อยู่บน Thaicom 2/5 C Band
http://www.lyngsat.com/thai2.html

รายการ TV ผ่านดาวเทียมของไทยทั้งหมด
http://www.lyngsat-address.com/tv/Thailand.html

รายการฟรี TV ของไทย
http://www.lyngsat.com/freetv/Thailand.html

Package CableTV ใน Asia
http://www.lyngsat.com/packages/asia.html

Package Astro ของมาเลย์
http://www.lyngsat.com/packages/astro1.html

Package UBC
http://www.lyngsat.com/packages/truevisions.html

บอร์ดโบราณ
http://www.thaimisc.com/freewebboard/php/vboard.php?user=boranphone

9sats
http://www.9sats.com/download/

nics-sat อบรมการติดตั้งฟรี มีบทความสอนการติดตั้งมากมาก Weboard
http://www.nics-sat.com/index.php
http://www.thaimisc.com/freewebboard/php/vboard.php?user=nicssat
สำหรับค้นหากระทู้เก่า ในบอร์ดไม่ได้ทำ link เอาไว้ให้
http://www.thaimisc.com/freewebboard/php/search.php?user=nicssat

satthai
http://www.satthai.tv/html/dlxsat.php

siamdst
http://www.siamdst.com/support.htm
http://www.geocities.com/neotion2000/

yantech
http://www.yantech.com/index.php?page=showcategory&category=SPLITTER&group=1

Mazz
http://www.mazz-smatv.com/webboard.php?lang=th&headername=เว็บบอร์ด&headername=

Filsat - Xsat
http://filsat.com/forum/viewforum.php?f=8&sid=5f9353a1727305871604fa21195f68fd

Monday, September 24, 2007

การ block ไม่ให้ GPO มีผลกับผู้ใช้บางคน

เข้าไปที่ properties ของ GPO แล้วไปที่แถบ Security
เพิ่ม user นั้นเข้าไปโดยให้สิทธิ Read กับ Applay Group Ploicy ให้เป็น Deny

Saturday, September 22, 2007

GPO Screen Saver password protect

อยู่ในส่วนของ User Configuration > Administrative Template > Control Panel > Display
Screen Saver = Enable
Screen Saver Executable Name = scrnsave.scr
Password Protect with the Screen Saver = Enable
Screen Saver timeout = 600s (10 min)

Thursday, September 20, 2007

Disable Autorun by Group Policy

Computer Configuration > Administrative Templates > System > select 'Turn Off Autoplay' > dropdown select All Drive.

User Configuration > Administrative Templates > System > select 'Turn Off Autoplay' > dropdown select All Drive.

Friday, September 14, 2007

Cat5e Patch Panel position

ลืมบ่อยๆเลยทำไว้ดูเอง

Saturday, August 11, 2007

Excel

สอนคำนวนเกี่ยวกับเงินกู้

Monday, August 06, 2007

รายชื่อ NOD32 Update Server

เวปจีนมีการ Update อย่างสม่ำเสมอ
วิธีการ update แบบพิสดาร แต่ยุ่งยากหน่อย ใช้เมื่อหา server ไม่ได้จริงๆ
http://xchange.teenee.com/index.php?showtopic=46932&st=960&p=737004&#entry737004

http://nod32.domonkey.com/

Wednesday, July 25, 2007

การลง Intel® Matrix Storage Manager หลัง install XP เสร็จแล้ว

ปกติจะลงผ่านการกด F6 ในขั้นตอนของการ install XP ถ้ามาลงตอนหลังอาจจะลงไม่ผ่าน แต่จะมีวิธีลงตอนหลังดังนี้
1. ตอนลง XP ให้ set ใน bios เลือก compatible mode ก่อน แล้วลงตามปกติ
2. เสร็จแล้ว download Intel® Matrix Storage Manager จากเวป Lenovo
(http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&lndocid=MIGR-62909)
แต่มันจะเป็น version 7 แต่ปัจจุบันออกถึง version 7.5 แล้ว
3. install โดยสั่ง install.cmd
4. เปลี่ยน Bios ให้ SATA ทำงานใน mode AHCI
5. boot เข้า XP จะเจอ HW ใหม่ browse ไปใน folder ที่ extract ออกมา install inf file
6. boot ใหม่อีกที ตอนนี้เราสามารถ upgrade ให้เป็น version 7.5 ได้แล้ว โดย download ได้จาก
(http://www.intel.com/support/chipsets/imsm/)

Sunday, July 08, 2007

การแก้ปัญหา Promote DC ตัวใหม่ที่เป็น Windows server 2003 R2 เข้าไปใน Domain

การ Promote DC ตัวใหม่ที่เป็น Windows server 2003 R2 เข้าไปใน Domain เดิมที่เป็น Windows Server 2003 ในขั้นตอนสุดท้ายจะมี error ที่เกี่ยวกับ Version ของ Active Directory ไม่ตรงกัน เราสามารถแก้ปัญหานี้ได้โดยสั่ง Run dcprep /forestprep และ dcprep /domainprep ที่เครื่อง Domain Controller เดิมที่อยู่ใน Domain เพื่อ upgrade version ของ active directory ให้ compatable กับ R2 เสียก่อน โดยมี version ดังนี้

System Schema Version ObjectVersion values and corresponding operating system support level

13=Microsoft Windows 2000
30=Original release version of Microsoft Windows Server 2003 and Microsoft Windows Server 2003 Service Pack 1 (SP1)
31=Microsoft Windows Server 2003 R2

โดย dcprep ที่จะเอามาใช้จะอยู่ในแผ่น CD ที่ 2 folder DCPREP ซึ่งจะสามารถ upgrade ได้ถึง version 31 สำหรับ R2 ได้

Note
- dcprep ที่อยู่ในแผ่นที่ 1 folder i386 จะใช้ไม่ได้ เพราะสามารถ upgrade ได้ถึงแค่ version 30 เท่านั้น

Saturday, June 23, 2007

Domain Local vs Domain Global Group

ในกรณีที่ Mixed Mode Domain

Local Group
- สำหรับ Domain Controller จะเห็นได้เฉพาะภายใน DC ด้วยกันเองเท่านั้น เพราะ DC ทุกตัวจะ share local security database เดียวกัน
- สำหรับ Stand Alone จะเห็นได้เฉพาะเครื่องตัวเองเท่านั้น
- ตัวอย่างเช่น Group Administrators เป็น Local Group ดังนั้นจะสามารถเอาไปใช้ได้เฉพาะภายใน DC ด้วยกันเอง เครื่อง Member Server หรือ Workstation ภายใน Domain จะไม่สามารถมองเห็น Group Administrators นี้

Global Group
- จะสามารถมองเห็นได้จากทุกเครื่องที่อยู่ใน Domain เช่น Group Domain Admins เป็นต้น
- เวลาสร้าง group ใหม่ขึ้นมาให้เลือกเป็น Global Group จะสำดวกกว่า
- ถ้ามีการ add computer เข้าเป็นสมาชิกของ Domain แล้วโดย default จะมีการเพิ่ม Domain Admins group เข้าไปเป็นสมาชิกของ Local Administrators เพื่อให้มีสิทธิที่จะ manage computer นั้นได้

ในกรณีที่ได้ Raise Domain and Forest ให้ทำงานใน Native Mode แล้ว
- Local Group จะกลายเป็น Domain Local Group ทำให้สามารถมองเห็นได้จากทั้ง Domain
- Domain Local Group (ยกเว้น Administrators group) จะสามารถถูกมองเห็นได้จาก Member Server/Workstation ของ Domain

- สามารถ convert Domain Local Group ให้เป็น Universal Group ได้ แต่จะไม่สามารถเปลี่ยนให้เป็น Domain Global Group ( Mixed Mode เปลี่ยนอะไรไม่ได้เลย)

Concept ของ AGDLP เป็นดังนี้

Accounts > Global Groups > Domain Local Groups > Permissions
หรือ
Accounts > Global Groups > Universal > Domain Local Groups > Permissions

ความหมายคือ จับ account ที่มีความต้องการใช้ resource คล้ายๆกันให้รวมกันอยู่ใน Global Group เสร็จแล้วค่อยเอา Global Group นั้นมาอยู่ใน Domain Local Group อีกทีเพื่อ Assign Resource ให้


Note:
- Domain ที่ได้เปลี่ยน Function Level ให้เป็น Native Mode แล้ว ไม่มีผลอะไรกับเครื่อง Windows 98 client เพราะว่า Mixed/Native Mode เป็นเรื่อง Backward Compatable ของ Domain Controller ไม่เกี่ยวข้องกับ Client

Domain Local Group
– This group scope is designed to contain Global Groups and Universal Groups, even though it can also contain user accounts and other Domain Local Groups. If you want to follow a logical nesting rule pattern, you will not put user accounts into Domain Local Groups. As you design and create Domain Local Groups, you should be considering “What the group is designed to do at the resource.” Examples might be “Read SQL DB,” “Full Control HR Data,” or “Modify Finance Group Membership.”

Note:
Domain Local Groups can only be seen and used on domain controllers if the domain is still in mixed mode. Mixed mode also eliminates the capability of nesting Domain Local Groups into other Domain Local Groups. This is due to the fact that NT4 domain controllers don’t understand the concept of Domain Local Groups, so they are simply seen as Local Groups.

Global Groups
– This group scope is designed to contain user accounts. Global Groups can contain user accounts and other Global Groups. Global groups are designed to be “global” for the domain. After you place user accounts into Global Groups, the Global Groups are typically placed into Domain Local Groups or Local Groups (which reside on member servers in the Security Accounts Manager (SAM)). As you design and create Global Groups, you should be considering “What type of user belongs in this group.” Examples might be “Salesreps,” “HR Managers,” or “Finance Managers.”

Note:
Global Groups can only contain user accounts if the domain is in mixed mode. Like group nesting is not available in mixed mode due to legacy NT4 domain controllers.

Universal Groups
– This group scope is designed to contain Global Groups from multiple domains. Universal Groups are designed to help “group” groups in a multi-domain enterprise. Universal Groups can contain Global Groups, other Universal Groups, and user accounts. After the Global Groups from the different domains are placed into the Universal Group, the Universal Group is typically placed into a Domain Local Group or Local Group. As you design and create Universal Groups, you should be almost mimicking the concepts of the Global Group, but from an enterprise standpoint. So, you might have a Universal Group named “All HR Managers” or “All Finance Managers.” Within each of these Universal Groups, you will have the “HR Managers” or “Finance Managers” from each domain as members.

Note:
Universal Groups cannot be used as Security Groups if the domain is in mixed mode. This means that they can’t be used for controlling access to resources via permissions. Again, this is because NT4 domain controllers don’t understand the concept of Universal Groups.

Security Groups
– This type of group has a unique characteristic in that it has a Security Identifier (SID) assigned to it from Active Directory. This SID enhances the function of the group so that it can be used for assigning and controlling permissions to a resource. In essence,
Security Groups can be placed on an ACL of a resource. Security Groups can also be used for email distribution lists.

Distribution Groups
– This type of group is limited in capabilities, because it does not have a SID assigned to it. Distribution Groups are designed to work with email, but not for the assignment or control of permissions to a resource.

Wednesday, June 20, 2007

วิธีเปลี่ยนความกว้างของ Template Blogger

เข้าไปแก้ที่ Template / Edit HTML

ค่าความกว้างที่เหมาะสมของ Template Rounders 3

ส่วนที่เป็น http:/// เป็นการเอากรอบโค้งที่ทำจาก image ออกเพราะว่าขยายความกว้างแล้วทำให้ไม่พอดี

/* Page Structure
----------------------------------------------- */
/* The images which help create rounded corners depend on the
following widths and measurements. If you want to change
these measurements, the images will also need to change.
*/
#outer-wrapper {
width:850px;
margin:0 auto;
padding:10px;
text-align:left;
font: $bodyFont;
}
#main-wrap1 {
width:600px;
margin-left: 20px;
float:left;
background:$mainBgColor url("http:///") no-repeat left bottom;
margin:15px 0 0;
padding:0 0 10px;
color:$mainTextColor;
font-size:97%;
line-height:1.5em;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}
#main-wrap2 {
float:left;
width:100%;
background:url("http:///") no-repeat left top;
padding:10px 0 0;
}
#main {
background:url("http:///") repeat-y;
padding:0;
}
#sidebar-wrap {
width:240px;
float:right;
margin:15px 0 0;
font-size:97%;
line-height:1.5em;
word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
overflow: hidden; /* fix for long non-text content breaking IE sidebar float */
}

.main .widget {
margin-top: 4px;
width: 568px;
padding: 0 13px;
}

.main .Blog {
margin: 0;
padding: 0;
width: 600px;
}

วิธี Add Google Analytics ใน Blogger

ตอนนี้ Blogger หรือ Blogspot ยังไม่มี module statistic หรือ counter มาให้ เราสามารถนำเอา Google Analytics มาใส่เพิ่มเข้าไปเองได้ ง่ายๆตามนี้

1. สมัคร Google Analytics ได้ที่ http://www.google.com/analytics/ ทำตามขั้นตอนไปเรื่อยๆจะได้ Code มาอันนึง copy เก็บเอาไว้
2. ไปที่ Template / Page Elementของ Blog ของเราแล้ว ไปที่ Footer เพิ่ม HTML/JavaScript element ใส่ code ของเราเข้าไป ตรง Title ปล่อยว่างไว้ เสร็จแล้ว save
3. หรืออีกวิธีจะ add html code ลงไปตรงๆเลยก็ได้โดยไปที่ Dashboard / Settings / Template / Edit HTML หา tag /body ให้เจอจะอยู่ล่างๆ แล้ว paste code ของเราลงไป ก็ได้เหมือนกัน

ISA: Publish Website with DNS name and public IP

Concept

1. ไปเพิ่ม DNS record ของ DNS server ภายนอกใช้ชี้ไปที่ public ip ที่เรามีเช่นให้ชื่อว่า webmail.my.com = 203.155.33.142
2. add secondary public ip ใน external interface ของ ISA เช่น 203.155.33.142
3. ใน ISA สร้าง Web Server Publishing Rule ขึ้นมาโดยมีค่า setting ที่สำคัญๆตามนี้
From => External
To => คือ Internal IP ของ Server ที่ต้องการ Publish เช่น 192.168.0.203
=> เลือก Forward the original host header instead of the actual one. <- เพื่อให้มีการใช้ host header ในการแยกความแตกต่างของ website ที่ต้องการ publish หรือในกรณีนี้เราต้องการให้เข้า webmail ได้จากการใส่ url http://webmail.my.com/ ตามนี้เท่านั้น ถ้าไม่เลือก option นี้ host header จะกลายเป็น 192.168.0.203 แทน
=> เลือก Requests Appear to come from the ISA Server Computer <- ที่ web server จะเห็น request ว่ามาจาก ISA แทนที่จะเป็น ip ของ client ที่ request เข้ามาจริงๆ
Traffic => HTTP
Listener => สร้าง HTTP Listener ขึ้นมาทาง External Interface
Public Name => เลือก Requests for the following websites เพื่อให้ Listerner ตรวจสอบ host headers ว่าเรียกมายัง website ที่เรา publish เอาไว้จริง
=> ตรง Website and IP address ให้เพิ่มชื่อ website ของเราที่ต้อง publish สามารถเพิ่มได้หลายชื่อตามต้องการ

Tuesday, June 19, 2007

Example of Subnet on Cisco Router

สมมุติว่าเช่า lease line มา 1 link ความเร็ว 1Mb ISP ได้ให้ public ip มา 1 block เช่น

203.155.33.136/29 จะมี ip ที่เราสามารถนำมาใช้ได้ดังนี้

จะเห็นว่า IP ที่สามารถนำมาใช้ได้คือ .137 - .142 เท่านั้น และเป็น directly connected กับ eth0 ดังนั้นdestination ip ที่อยู่ใน subnet นี้สามารถเอาไปใช้กำหนดให้กับ server ภายในบริษัทได้เลย ในกรณีที่ไม่มี firewall มาคั่น

ถ้าที่ router มีการทำ NAT เช่น

ip nat pool mypool 203.155.33.138 203.155.33.140 netmask 255.255.255.248
ip nat inside source list 7 pool mypool overload

จะเหลือ ip ที่นำมาใช้งานได้คือ .137, .141, .142 เท่านั้น
ถ้าเรามี Firewall ภายในที่ไม่ได้ใช้งานใน mode Transparent (bridge mode) เราก็จะเสียไปอีก 1 ip เช่น .141

เราจะเสียไปอีก 1 ip สำหรับ ethernet0 เช่น .137

interface Ethernet0
description LAN
ip address 192.168.1.1 255.255.255.0 secondary <--- ทำเอาไว้ bypass firewall เผื่อพัง
ip address 203.155.33.137 255.255.33.248
ip accounting output-packets
ip nat inside
no ip route-cache
no ip mroute-cache
ip policy route-map RAGserver

สรุปว่าจะเหลือแค่ .142 เอาไว้ใช้สามารถ publish server ภายในได้
แต่ในความเป็นจริงเราสามารถใช้ ip firewall .141 เพียง ip เดียว publish server ภายในได้เป็นสิบๆ

Monday, June 18, 2007

การเปลี่ยน Cisco Router Password

การเปลี่ยน Password ที่ใช้เข้าสู่ enable mode
Router> en
Router# config t
Router(config)# enable secret [passwd2550]

การเปลี่ยน Password ที่ใช้ในการ Telnet เข้า Router
Router(config)# line vty 0 4
Router(config-line)# login
Router(config-line)# password [passwd2550]

การเปลี่ยน Password ที่ใช้ในการเข้า Router จาก console
Router(config)# line con 0
Router(config-line)# login
Router(config-line)# password [passwd2550]

เมื่อเปลี่ยน password เสร็จแล้วสั่ง save config โดยใช้คำสั่ง
Router# copy run start

สั่ง Reboot Router โดยคำสั่ง
Router# reload

คำสั่งดู routing table
Router# show ip route

Saturday, June 16, 2007

Video Clip สอนการเข้าห้วแบบต่างๆของ AMP

อันนี้เป็นวิธีการเข้าหัวของ SL Series ที่จะมาแทนการเข้าหัวโดยใช้ Impact Tool

http://www.ampnetconnect.com/support_center_literature_search.asp?keyword=sl+series&DTP_ID=532

Friday, June 15, 2007

วิธีแก้ไข Network Parameter ของ Linux โดยตรง

เข้าไปแก้ที่นี่
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/network-scripts/ifcfg-eth1

คำสั่งดู ip address ของแต่ละ interface
#ifconfig <--- ดูหมดทุก interface
#ifconfig eth1 <--- เลือกดูเฉพาะ interface eth1 เท่านั้น

Sunday, June 10, 2007

Differential VS Incremental Backup

Incremental backs up all the files modified since the last full backup, differential or incremental backup.

Restoring from incremental backup, you need the most recent full backup as well as EVERY incremental backup you've made since the last full backup.

Differential backs up everything that's different since the last full backup.

Restoring a differential backup is a faster process than restoring an incremental backup because only two backup container files are needed: the latest full backup and the latest differential.

For example, if you did a full backup on Friday and incrementals on Monday, Tuesday and Wednesday, and the PC crashes Thursday morning, you would need all four backup container files: Friday's full backup plus the incremental backup for Monday, Tuesday and Wednesday. As a comparison, if you had done differential backup on Monday, Tuesday and Wednesday, then to restore on Thursday morning you'd only need Friday's full backup plus Wednesday's differential.

Thursday, May 10, 2007

Remote Desktop User Group

โดย Default แล้ว user ที่มีสิทธิในการใช้ Remote Desktop เข้าไปที่เครื่อง Server ได้ก็คือ Administrators Group แต่บางทีเราต้องการให้ user ทั่วไปสามารถ remote เข้าไปได้ด้วย สามารถทำได้อย่างง่ายๆแค่ไป add user นั้นให้เข้าไปอยู่ใน Remote Desktop User Group แค่นั้นเอง

แต่จริงๆแล้วสิทธิของ RDP Group จะมาจาก Group Polocy ที่ชื่อว่า Allow log on through Terminal Services ที่อยู่ใน Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment\ นั่นเอง

ซื่งการ แก้ไข Policy นี้สำหรับเครื่องที่เป็น Domain Controller มีอยู่หลายวิธีเช่นใช้ Domain Controller Group Policy จะมีผลกับ DC ทุกตัวใน Domain หรือจะสามารถแก้ไขจาก Local Group Policy (เรียกจากคำสั่ง gpedit.msc) ซึงจะมีผลกับ Server ที่เราแก้ Policy นี้เท่านั้น

Monday, May 07, 2007

วิธีการเรียก Local System Account ขึ้นมาใช้งาน

1. เปิด Command Prompt
2. ตั้งเวลาเรียก task manager ขึ้นมา
EX: at 3:11pm /interactive taskmgr.exe
3. Kill task explorer.exe
4. New task explorer.exe คราวนี้ explorer จะ run โดย Local System Account แล้ว
5. ทดสอบโดยการสั่งเปิด program อะไรก็ได้ขึ้นมาแล้วดูจาก task manager จะเห็นว่า run โดย System

Sunday, April 29, 2007

Reboot Router from wget command line

ทดสอบใช้ได้กับ router Zyxel ส่วนยี่ห้ออื่นก็ไม่ต่างกัน

http://gnuwin32.sourceforge.net/packages/wget.htm
http://www.ieinspector.com/httpanalyzer/download.html
download version standalone มาจะดีกว่าเพราะสามารถดูผลได้จากการสั่งผ่าน IE หรือ Command line ก็ได้

วิธีที่ 1
wget --user=username --password=password --post-data IsReset=1 http://192.168.15.2/Forms/DiagGeneral_2
ข้อดีของการใช้ option --user ,--passwd ก็คือจะไม่มีปัญหากับ user หรือ password ที่มีตัวอักษรแปลกๆ

หรือ
wget --post-data IsReset=1 http://username:password@192.168.15.2/Forms/DiagGeneral_2

วิธีที่ 2 กรณีที่ไม่ต้องการให้รู้ว่า user/pass คืออะไรโดยทำการ encode user/pass ก่อน (แต่ก็มีวิธีการ decode ได้)
wget -E --header="Authorization: Basic ZnJlZDp0aGF0cyBtZQ==" --post-data IsReset=1 http://192.168.15.2/Forms/DiagGeneral_2

วิธีที่ 3 ใช้ autoit script

AutoItSetOption("WinTitleMatchMode",2)
AutoItSetOption("SendKeyDownDelay",50)

Run("cmd.exe","",@SW_MAXIMIZE)
sleep(1000)

WinActivate("cmd.exe")
WinWaitActive("cmd.exe")

Send("telnet 192.168.1.1{ENTER}")
Sleep(500)
Send("password{ENTER}")
Sleep(500)

Send("24{ENTER}")
Sleep(500)
Send("8{ENTER}")
Sleep(500)
Send("sys reboot{ENTER}")

Friday, April 27, 2007

ประโยชน์ของ IP Alias หรือ Secondary IP ของ Router

Example 1 Bypass Firewall (Basic) Example 2 Bypass Firewall + Separate Network (Complex)

Monday, March 19, 2007

การแก้ Dependency ของ php กับ php-pear ใน CentOS 4.4

จะทำให้ yum update ไม่ผ่าน แก้โดย
yum remove php
หรือ rpm -e php
rm -rf /var/cache/yum/

enable centosplus ใน repo

download php 5 จาก http://www.mirror.in.th/centos/4.4/centosplus/x86_64/RPMS
wget http://www.mirror.in.th/centos/4.4/centosplus/x86_64/RPMS/php-5.1.6-1.2.1.centos.x86_64.rpm

ถ้า install โดยใช้คำสั่ง rpm -ivh php-5.1.6-1.2.1.centos.x86_64.rpm มันจะ error เราต้อง install php-pear พร้อมๆกันเลย โดยเอา php-pear มาเก็บไว้ก่อน
wget http://www.mirror.in.th/centos/4.4/centosplus/x86_64/RPMS/php-pear-1.4.9-1.2.centos.noarch.rpm

แล้วสั่งใหม่ rpm -ivh rpm -ivh php-5.1.6-1.2.1.centos.x86_64.rpm php-pear-1.4.9-1.2.centos.noarch.rpm

เสร็จแล้วสั่ง yum update -y

อีกวิธีสั่ง rpm -Uvh
http://www.mirror.in.th/centos/4.4/centosplus/x86_64/RPMS/php-5.1.6-1.2.1.centos.x86_64.rpm http://www.mirror.in.th/centos/4.4/centosplus/x86_64/RPMS/php-pear-1.4.9-1.2.centos.noarch.rpm

Wednesday, March 14, 2007

Public DNS Server

Google DNS
8.8.8.8
8.8.4.4

OpenDNS
208.67.222.222
208.67.220.220

Level 3
4.2.2.2

True Intenet
203.144.207.29
203.144.207.49

Cat Telecom
61.19.245.245
61.19.245.246
202.129.27.133

KSC
203.155.33.1

Monday, March 12, 2007

Yum Yum

ก่อนที่จะใช้ yum ได้จะต้อง import GPG ก่อน
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
สำหรับ CentOS4 ใช้
rpm --import /usr/share/rhn/RPM-GPG-KEY-centos4

เสร็จแล้วก่อนอื่นสั่ง
yum update -y ก่อนเลย

วิธีการเพิ่ม Repository ให้กับ yum

import gpg key เพื่อตรวจสอบว่าข้อมูลของ package ไม่ได้ถูกแก้ไข
wget http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
rpm --import RPM-GPG-KEY.dag.txt

cd /etc/yum.repos.d
สร้างไฟล์ชื่อ dag.repo แล้วเพิ่มข้อมูลดังนี้เข้าไป

[dag]
name=Dag RPM Repository for CentOS
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1

ลองสั่ง yum install pine lynx -y ดู

ถ้าต้องการเอา package ออกให้สั่ง yum remove pine
ถ้าต้องการค้นหา package สั่ง yum search perl*
yum list available
yum list installed <- ดูว่า install อะไรอยู่บ้าง หรือ rpm -q
yum clean all <- clear disk space yum info lynx สั่ง schedule update โดยให้ yum ตอนกลางคืน
chkconfig yum on <- สั่งให้ yum ทำงานที่ run level ไหนบ้าง แต่ยังไม่ได้สั่งให้ทำงานจริงๆ service yum start <- สั่งให้ yum ทำงานNote
ส่วนใหญ่แล้ว Package ของ 3rd party จะใหม่กว่าของ Official แต่เราต้องการความ stable ของ Package จาก official จึงไม่แนะนำให้ update ทับ package ของ Official วิธีการทำแบบนี้ได้ต้องอาศัย pluginyum install yum-plugin-protectbaseแก้ไขไฟล์ /etc/yum.conf เพิ่มบันทัด plugins=1 เข้าไปแก้ไขทุกๆไฟล์ .repo ที่อยู่ใน /etc/yum.repos.d โดยเพิ่ม
protect=1 ให้กับ Official Repository
protect=0 ให้กับ 3rd party Repositaryเพราะว่า protect=0 จะไม่สามารถ update protect=1 ได้ถึงแม้ว่ามันจะใหม่กว่าก็ตามถ้าใน .repo มีการใส่ repository อยู่หลายแห่ง น่าจะต้องใส่เพิ่ม protect=0 ให้กับทุกๆที่Yum 3rd part: List of other repositorieshttp://www.ducea.com/2006/10/22/yum-3rd-part-list-of-other-repositories/

Tuesday, March 06, 2007

OpenVZ VS Xen, Vmware

The operating system level architecture(OpenVZ) has low overhead that helps to maximize efficient use of server resources. Due to a single-kernel approach, this type of virtualization introduces only a negligible overhead and allows running hundreds of virtual private servers on a single physical server. In contrast, approaches such as emulation (like VMware) and paravirtualization (like Xen or UML) cannot achieve such level of density, due to overhead of running multiple kernels. On the other hand, operating system-level virtualization does not allow running different operating systems (i.e. different kernels), although different libraries, distributions etc. are possible

Since there is a single OS kernel which maintains all the partitions, isolation and resource management become very important. Without proper isolation security can be compromised, and without proper resource management an application from one partition can abuse resources and thus cause a denial of service for other partitions. Resources controlled and limited can include: CPU time, disk space, I/O bandwidth, network access, and all the other finite resources like RAM, shared memory, locked pages, number of processes, socket buffers etc. For example, OpenVZ provide a set of more than 20 finite resources that are accounted and limited on a per-partition basis.
Compared to the hardware-assisted virtualization solutions (like IBM's LPAR), OS-level virtualization has the benefit of running on inexpensive commodity hardware

OS level virtualization solutions initially gained popularly with service providers who needed a very low overhead, customizable, cost effective solution to provide hosting services to customers. The technology is now becoming more widely deployed as many different industries and customers are recognizing the benefits and differences between OS virtualization and hardware virtualization. The common uses and scenarios now include server and OS consolidation, business continuity (disaster recovery and high availability) and centralized desktop virtualization.

An owner (root) of OpenVZ physical server (also known as Hardware Node) can see all the VE processes and files. That makes mass management scenarios possible. Consider that VMware or Xen is used for server consolidation: in order to apply a security update to your 10 virtual servers you have to log in into each one and run an update procedure – the same you would do with the ten real physical servers.
In OpenVZ case, you can run a simple shell script which will update all (or just some selected) VEs at once.

http://wiki.openvz.org/Introduction_to_virtualization

http://en.wikipedia.org/wiki/Operating_system-level_virtualization

Saturday, January 27, 2007

Removing Old Network Card

Create environmental variable:
DEVMGR_SHOW_NONPRESENT_DEVICES=1
Reboot, then go into device manager and VIEW\SHOW HIDDEN DEVICES.
You will then see all of the hardware ghosts. Right click and uninstall under network adapters.