Sunday, October 24, 2010

BitNami Stacks

BitNami
http://bitnami.org/stacks

จะมีโปรแกรมต่างๆที่ทำเป็น Package เตรียมเอาไว้ให้ install ได้ง่ายๆ สำหรับหลายๆ OS เพื่อไม่ต้องมายุ่งยาก เรียนรู้วิธีการ install อีก แต่สามารถเอาไปใช้งานได้เลย เช่น

Saturday, October 09, 2010

Change Attribute Command

ใช้แสดงและเปลี่ยนแปลง attribute ของ file และ folder
เช่นถ้าโดน virus เปลี่ยนแปลง attribute ของ file และต้องการแก้ไขกลับมาให้ใช้คำสั่ง

attrib -R -S -H d:\*.* /S /D

- = clear attribute
R = Read Only File
S = System File
H = Hidden File
/S = Process Subfolder ด้วย
/D = ให้ทำงานกับ Folder ด้วย

Saturday, October 02, 2010

UltraVNC

User ธรรมดาสามารถ remote เข้า vnc server ได้ โดยไม่จำเป็นต้องให้สิทธิ์ admin
แต่ถ้ามีการกำหนด Logon To เอาเไว้ จะต้องใส่ชื่อเครื่องของ vnc server เข้าไปด้วย ไม่งั้นจะ login ไม่ได้


winvnc
admin properties
[ ] Disable viewers inputs (remove check)
OK
restart windows


Did you enable (may be by accident) the View Only option?

Check these two area:

At server, Admin Proerties, "Disable viewer input"
verifiy if you have this feature selected.


At viewer, Options, "View Only (input ignored)"

verify if you have this feature selected.

Monday, September 27, 2010

Load Balance

ยี่ห้อนี้น่าจะดี มีให้เลือกใช้ได้ 7 algorithms
http://www.peplink.com/technology/load-balancing-algorithms/
http://www.3gig.com/peplink/

Linksys RV042


1. ที่ modem set เป็น bridge mode ค่าต่างๆ เช่น VPI/VCI ตั้งไว้ด้วย
2. ที่ router set เป็น PPPoE พร้อมกับใส่ user/pass
3. DDNS จะแบ่งเป็น 3 ช่อง ให้ใส่ทีละช่อง ถ้าใส่ที่ช่องแรก จะไม่ยอมทำงาน
4. เมื่อ modem ถูก set ให้เป็น bridge mode แล้วคุณสมบัติอื่นๆจะใช้ไม่ได้เช่น port ที่ forward เอาไว้หรือ DDNS และการ config modem จะต้องเอาสาย lan ไปต่อตรงเท่านั้น

Note
- อาจจะเกิดกรณีที่บาง ISP ปิดการ ping Default Gateway เอาไว้ทำให้ wan บางอันไม่ได้ถูกใช้งานเลย
ให้ทดสอบโดยการลอง ping defaut gateway ดูว่าได้หรือไม่ ถ้าไม่ได้ก็ ปิดการ ping default gateway ไปแล้วให้ไป ping อย่างอื่นแทน

Friday, September 24, 2010

Convert Firmware .BIN to .TRX

Firmware ของ OpenWRT จะเป็น .trx ไม่สามารถเอา firmware ของ tomato หรือ dd-wrt ที่เป็น .bin มาใส่ได้
โดยตรง จะต้องแปลง .bin ให้เป็น .trx ก่อน ซึ่งเป็นการตัด 32 byte แรกออก โดยใช้คำสั่ง

dd bs=32 skip=1 if=tomato.bin of=tomato.trx

คำสั่ง dd เป็นคำสั่งที่มีอยู่ใน Linux แทบทุกระบบ เช่นใน Endian Firewall เองก็มี

เมื่อได้ไฟล์ .trx มาแล้วสามารถ upgrade firmware ของ WRT54GL ได้โดยตรงจากทาง หน้าเวปเลยหรือ อาจจะใช้ command line ก็ได้โดยใช้คำสั่ง

mtd -r write tomato.trx linux

Sunday, September 19, 2010

Endian Firewall 2.3 to 2.4

วิธี upgrade endian firewall
ใช้ ssh login เข้าไปแล้วสั่งคำสั่ง efw-upgrade
เสร็จแล้วให้ใส่ user ที่สมัครเอาไว้กับ endian community จะ upgrade ให้เองอัตโนมัติ

วิธีแก้ปัญหาเข้าบางเวปไม่ได้ เช่น Google เหมือนกับ resolve dns ผิด ให้ลองเข้าไปที่ Proxy/DNS/Anti-Spyware แล้ว disable ออกให้หมด

การ copy file เข้าไปใส่ใน endian ให้ใช้ sftp(ssh ftp) port 22 เช่นใช้จาก FileZilla

หลัง upgrade จาก endian 2.3 ไปเป็น 2.4 แล้ว Traffic Graphs ไม่ขึ้น แก้ตามนี้
download libipt_standard.so ได้จาก http://bugs.endian.com/view.php?id=2943
copy ไปใส่ที่ /lib/iptables/ เสร็จแล้ว chmod 755
reboot แล้วรอสักพัก graph ถึงจะขึ้น

- บางครั้งถ้าไม่สามารถใช้ ftp download file ได้ขึ้น error เกี่ยวกับ virus scanning ให้ไป disable ftp proxy ออก ถึงแม้ว่า เครื่องที่ใช้ ftp จะเป็นการออกโดยไม่ผ่าน proxy ก็ตาม เหมือนกับว่า ftp proxy เป็น transparent proxy

Update จาก 2.4 เป็น 2.41 แล้วเจอปัญหา save config proxy แล้วค้าง
ให้ไป download 2 file ที่ http://bugs.endian.it/view.php?id=2676
แล้ว copy file notifications.py ไปใส่ /usr/lib/python2.4/site-packages/endian/status/
file servicesubscriber.js ไปใส่ /home/httpd/html/include/

rename file เก่าเป็นชื่ออื่นไว้ก่อนเผื่อมีปัญหา เสร็จแล้วสั่ง restart

Saturday, September 18, 2010

วิธีเพิ่ม SNMP ให้กับ Tomato Firmware

Download snmpd ได้จาก
http://systembash.com/source/snmpd.zip

extract file ออกมาเก็บไว้ใน folder snmpd แล้วสร้าง share เอาไว้ พร้อมกับกำหนด permission ว่าจะให้เข้าใช้ได้จาก user อะไร

เข้าหน้า config ของ tomato แล้วไปที่ administrations/CIFS Client
กำหนดค่าให้กับ cifs1 save ถ้าสำเร็จจะที่ Total/ Free Size จะขึ้นตัวเลขมาให้เห็น

telnet เข้าที่ tomato ทดสอบคำสั่งให้ run snmpd ดังนี้
/cifs1/snmpd -c /cifs1/snmpd.conf &

เสร็จแล้วลองเปิดโปรแกรม Network Monitor อะไรก็ได้ scan ดูว่าสำเร็จหรือไม่

สั่งให้ snmpd ทำงานทุกครั้งที่ router ทำงานโดย
ไปที่ web config หน้า Administration /Scripts /Firewall แล้วใส่คำสั่ง
sleep 30
/cifs1/snmpd -c /cifs1/snmpd.conf -s &

Firmware version 1.27 ใส่ที่ firewall ใช้ไม่ได้ ต้องใส่ที่ Init ถึงจะใช้ได้

save แล้วลอง สั่ง restart ดู

Note
-s คือให้ log error / warning ไว้ใน syslog
- สามารถดู syslog ได้จาก /var/log/message

Schedule Reboot Tomato


ให้ใส่คำสั่งนี้ใน Administration /Scripts / Init
sleep 86400
/sbin/reboot
จะเป็นการ reboot ทุกๆ 24 ชั่วโมง
ถ้าตั้ง reboot ใน schedule จะใช้ไม่ได้

Thursday, September 16, 2010

การใช้ Excel แปลงวันที่จาก yyyymmdd ให้เป็น dd/mm/yyyy

ใช้สูตร
=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))
แทนที่ A1 ด้วย cell ที่ต้องการแปลง
เสร็จแล้วใช้ format cell แปลงให้อยู่ใน format ที่ต้องการ อาจจะใช้ custom format ก็ได้

Wednesday, September 15, 2010

Config 3Com Switch ผ่าน Console Port (รุ่นเก่า)

ใช้สาย Serial Null Modem 9-pin Female to Female
Speed = 19200
Data Bits = 8
Parity = N
Stop Bits = 1
Flow Control = None

สำหรับ Windows 7 จะไม่มี Hyper Terminal มาให้ แต่สามารถ copy ของ Windows XP มาใช้งานได้
โดย copy file hypertrm.exe และ hypertrm.dll มา

สำหรับ Swith 3com รุ่น 3226 จะต้องตั้งค่า Send line ends with line feeds ใน File/Properties/Settings/ASCII Setup ด้วย

Note
การ recovery switch 3com ที่ flash พลาดให้ใช้ SUU (3Com Software Update Utility) ในการ flash ซ้ำ
version ล่าสุดคือ 3.20 file suu03_20.exe

Tuesday, September 14, 2010

วิธีแก้ Backup Exec error V-79-57344-34110

V-79-57344-34110 - AOFO: Initialization failure on: "\\". Advanced Open File Option used: Symantec Volume Snapshot Provider (VSP).
AOFO: Unable to get minimum quiet time for physical volumes. Reduce the activity on these volumes, or wait and run the backup when there is ...



1. ทำ defrag drive ที่เกิดปัญหา
2. ลดเวลา quiet time ลงโดยการใช้ Advance Open File Option Wizard ที่อยู่ใน Tools/Wizard
connect ไปที่ server ที่เกิดปัญหา แล้วลดค่าลงจาก default 5 ให้เหลือ 2-4 วินาทีได้ โดยให้ลองลดดูทีละ 1 วินาที

การย้าย Profile

Windows Easy transfer for windows xp

http://www.microsoft.com/downloads/en/details.aspx?FamilyId=2B6F1631-973A-45C7-A4EC-4928FA173266&displaylang=en

http://www.howtotransferfiles.com/XP/XP_XP.html

ยังไม่ได้ลอง จดไว้ก่อน

Monday, September 13, 2010

วิธีแก้ปัญหา Backup Exec error 0xe0001201

Final error: 0xe0001201 - For this operation, the Backup Exec Virtual File Filter (VFF) driver must be installed on the media server. The VFF driver is installed when you install any of the following Backup Exec agents or options:

Exchange Agent
Active Directory Recover Option
VMware Virtual Infrastructure Agent
Microsoft Virtual Server Agent

Final error category: Resource Errors For additional information regarding this error refer to link V-79-57344-4609

ความหมายคือไม่มี VFF Driver install อยู่ ต้อง install VFF Driver โดยการ install exchange agent
เสร็จแล้วเปิด command promt แล้วพิมพ์คำสั่ง fltmc
จะเห็นบันทัด VirtFile เพิ่มขึ้นมา

Saturday, July 24, 2010

วิธีแก้ Windows Update Error 0x8024402F

Possible reasons for the error code:-

1. Internet Explorer temporary files corrupted.

2. Background Intelligent and Event Log service not started

3. SoftwareDistribution folder has become corrupted

4. You may need to re-registered some dlls files

5. You may need to add Windows Update to the Trusted Sites Zone:

6. Spyware.

7. Third party programs running in background.

8. Windows Update Engine corrupted.

Suggestion 1:-

Clearing Temporary Internet files, cookies and history in Internet Explorer

Tools>Internet Options>General

You'll see Delete Cookies, Delete files, Delete History

NB: "Delete all offline content", will delete all files needed to browse the

websites offline.

Reboot and try Windows Update again.

Suggestion 2:-

1: Check that the Background Intelligent Transfer Service to is set to Automatic

and verify the Status is Started.

Click Start, Choose Run, and in the Run box, type services.msc, Click OK

Locate the Background Intelligent Transfer Service service, and right-click to

select it.

Select Properties, and in the Startup Type list, select Automatic. Verify the

service Status is Started. Click OK.

2. Check that the Set Event Log service is set to Automatic and verify that the

Status is Started

Click Start, Choose Run, and in the Run box, type services.msc, Click OK.

Locate the Event Log service, and right-click to select it.

Select Properties., and in the Startup type list, select Automatic. Verify the

Service status is Started. Click OK.

3. Register qmgr.dll and qmgrprxy.dll

Click Start, Choose Run and in the Run box, type regsvr32 qmgr.dll, Click OK.

Click Start, Choose Run and in the Run box, type regsvr32 qmgrprxy.dll, Click

OK.

Suggestion 3:-

It is possible that the contents of the SoftwareDistribution folder have become

corrupted, so try Renaming the SoftwareDistribution folder

Click Start, Choose Run.

In the Run box, type services.msc.

Click OK.

Right-click the Automatic Updates service.

Click Stop.

Stopping the service will take a moment.

Rename the "SoftwareDistribution" folder:

a. Click Start, click Run, type: %systemroot%

Click OK.

b. Right-click the SoftwareDistribution folder, and then click Rename.

c. Type SoftwareDistribution.old, and then press ENTER to rename this folder.

Click Start. Choose Run.

In the Run box, type services.msc.

Click OK.

Right-click the Automatic Updates service.

Click Start.

Starting the service will take a moment.

Please note that your update history is contained in the "datastore" folder and

when you rename the Software Distribution folder, the history is lost but it's

not important. You can if need be, copy the contents back from the renamed

softwareDistribution.old folder. Losing the history of Windows Updates is not

important.

Suggestion 4:-

Certain files may have become unregistered, and you will need to register them

again:-

Click Start, Choose Run and in the Run box, type regsvr32 wuaueng1.dll, Click

OK.

Do the same for the other files:-

wucltui.dll

wuaueng.dll

wuapi.dll

jscript.dll

MSXML.DLL

MSXML2.DLL

MSXML3.DLL

Suggestion 5:-

Add Windows Update to the Trusted Sites Zone:

Please note that Security settings in Internet Explorer must be set to Medium or

lower for ActiveX files to correctly pass to your computer.

Only the Web sites listed in Internet Explorer's Trusted Sites Zone will be

affected by the lowering of Security settings. Your current security settings

for all other Web sites will remain as they are currently configured.

Open Internet Explorer, click Tools, and then click Internet Options, Click

Security. Click Trusted Sites Zone. Click Sites.

Clear the Require server verification (https:) for all sites in this zone check

box.

Use the Add button next to the Add this Web site to the zone box to add the

following sites:

http://*.windowsupdate.microsoft.com

https://*.windowsupdate.microsoft.com

http://download.windowsupdate.com

Suggestion 6:-

The below links assist you in checking your system for parasites:-

http://aumha.org/a/noads.htm

http://inetexplorer.mvps.org/tshoot.html

Please note that some malware may kill the internet connection when it is

removed, the program on the link below will enable you to regain the internet

connection.

http://www.cexx.org/lspfix.htm

Spyware Programs links:-

www.lavasoftusa.com Ad-Aware

www.security.kolla.de Spybot

Suggestion 7:-

Make sure you haven't got anything blocking Windows Update like Nortons,

Zonealarm etc

Also make sure you don't have a Web Accelerator working in the background such

as NetZerio, HiSpeed, Speedband etc.

Suggestion 8:

If still receiving the error, then reinstall the Windows Update Engine

http://download.windowsupdate.com/v6/windowsupdate/redist/standalone/WindowsUpdateAgent20-x86.exe

Saturday, July 17, 2010

ค่าธรรมเนียมการโอนเงินต่างธนาคาร

SCB
โอน ทันที = 25 บาท
โอน รอ 2 วัน = 12 บาท

BBL
โอน ทันที = 25 บาท
โอน รอบ่ายวันเดียวกัน = 20 บาท
โอน รอบ่ายวันถัดไป = 12 บาท

Thursday, July 15, 2010

Gmail , Google Apps Standard Whitelist

ถ้ามี email ที่ต้องการเข้าไปอยู่ใน spam มี 2 วิธีแก้สำหรับ Google Apps Standard Edition หรือ Gmail

1. เพิ่มรายชื่อผู้ส่ง email ฉบับนั้นให้เข้าไปอยู่ใน Contact
2. สร้าง Filter ขึ้นมาซึ่งสามารถระบุเป็นชื่อ email หรือทั้ง domain เลยก็ได้เช่น
name@abc.com หรือ @abc.com และเลือก action ไปที่ Never Send it to Spam

Friday, June 18, 2010

Gmail search operator



http://mail.google.com/support/bin/answer.py?answer=7190

Wednesday, June 16, 2010

ซ่อมหลังคารั่ว

งานซ่อมหลังคารั่ว ให้ใช้พวก อะคลิลิค หรือโพลี่ยูริเทน อย่าใช้พวกซิลิโคน เพราะจะแห้งกรอบหลุดร่อน เมื่อใช้ไปนานๆ

Friday, May 14, 2010

Backup Exec Duplicate Data

สำหรับ Backup Exec 2010

File /New /Duplicate Backup Set Jobs
จะมีขึ้น option ขึ้นมาให้เลือก 2 อันคือ

1. Duplicate Existing Backup Sets
- เป็นการ copy ข้อมูลจาก Backup set หนึ่งไปยังอีก media หนึ่ง คือจะสามารถเลือก copy ได้ละเอียดกว่า source job
- สามารถตั้ง schedule ได้

2. Duplicate Backup sets following the job
- เป็นการ copy ข้อมูลทั้งหมดที่ได้ backup จาก job หนึ่งไปเก็บไว้ยังอีก media set หนึ่ง จะมีให้เลือก source job และ destination media
- ไม่สามารถตั้ง schedule ได้

Disk to Disk to Tape Backup
- Backup Policy ประกอบไปด้วย Job Template + Template Rule
- Job Template ก็คือ ค่า setting ต่างๆที่กำหนดในตอนที่สร้าง Backup job ยกเว้น Seletion List
- ดังนั้นสารถมารถสร้าง backup job ได้จาก backup policy(job template) + selection list

- ถ้าสร้าง Backup Job ขึ้นมาจาก Policy + Selection List แล้วต้องการลบออกจะต้องทำตามนี้
http://seer.entsupport.symantec.com/docs/342279.htm

- ในหน้าของ Job Setup จะแบ่งออกเป็น 3 ส่วนคือ Jobs, Policy , Selection List ต้องไปลบ Policy ออกด้วย menu Deleting a job created from a policy ที่อยู่ทางด้านซ้ายมือก่อน โดยให้เลือกไปที่ Policy ที่ต้องการลบ ไม่ใช่ Job ที่ต้องการลบ แล้วก็ทำตามไปเรื่อยๆ

Thursday, May 13, 2010

Backup Exec Backup to Disk

http://seer.entsupport.symantec.com/docs/266377.htm
http://www.biztechmagazine.com/article.asp?item_id=409
http://www.symantec.com/connect/articles/techtip-automating-backup-exec-disk-disk-tape-operations
http://www.backupexecfaq.com/articles/using/how-to-duplicate-a-backup-set.html

Wednesday, May 12, 2010

Manual install and uninstall the Advanced Open File Option

สำหรับ Backup Exec บางครั้ง อาจจะเกิดปัญหาไม่สามารถ remote install remote agent ผ่าน Media Server ได้ เช่นอาจจะไม่ได้ลง Dotnet Framework 2.0 เอาไว้หรือปัญหาอื่นๆ จึงต้องทำการ install remote agent จากแผ่น Backup Exec เองโดยตรง ซึ่งการลงด้วยวิธีนี้จะไม่มี option ให้เลือกลง advanced open file option จึงต้องมาเอาเอง โดย ให้ Browse ไปที่เครื่อง Media Server แล้วไปที่ \Program Files\Symantec\Backup Exec\Agents\RAWS32 สั่งคำสั่ง setup.exe /AOFO: -s เสร็จแล้ว reboot เครื่อง

สามารถตรวจสอบว่ามีการ install advanced open file option สำเร็จ ได้จาก
%SystemRoot%\system32\drivers หาไฟล์ VSP.SYS

Tuesday, May 11, 2010

Concept การ Backup และ Restore ของ Differential และ Incremental Backup

การ Backup

- โดยทั่วไปแล้วการ Backup แบบ differential และ incremental จะดูที่ archive bit ของไฟล์ (อาจจะมีบางโปรแกรมสามารถเลือกใช้ modified time แทนก็ได้เช่น backup exec เป็นต้น)

- เมื่อมีการทำ full backup โปรแกรม backup จะมีการ clear archive bit ของไฟล์ทุกไฟล์ที่ได้ backup 
- เมื่อมีการ แก้ไขไฟล์ จะมีการ set archive bit
- เมื่อมีการทำ incremental โปรแกรมจะเลือก backup เฉพาะ ไฟล์ที่มีการ set archive bit เท่านั้น ซึ่งก็คือจะ backup ไฟล์ที่มีการเปลี่ยนแปลงจากการ backup ครั้งก่อน เมื่อ backup เสร็จแล้วโปรแกรมจะทำการ clear archive bit เมื่อทำ incremental ครั้งต่อไปก็จะ backup เฉพาะไฟล์ที่มีการ set archive bit เท่านั้น

- สำหรับ differential backup นั้นจะต่างกับ incremental ตรงที่เมื่อ backup เสร็จแล้ว จะไม่มีการ clear archive bit ทำให้ การ backup แบบ differential ครั้งต่อไปจะ backup ไฟล์ที่มีการเปลี่ยนแปลงหลังจากการทำ full backup เสมอ

- ดังนั้นการ เลือกวิธีการ backup หลายๆแบบผสมกันใน backup plan จะต้องคำนึงถึงการ set  และ clear archive bit ด้วย ไม่อย่างนั้นไฟล์ที่ backup เอาไว้อาจจะไม่เป็นไปตามที่ต้องการ

- จำไว้ว่าถ้ามีการทำ full backup จะมีการ clear archive ทั้งหมด การทำ inc หรือ diff backup ต่อจาก full backup จะเริ่มต้นใหม่

- ถ้าเริ่มต้น การ backup แบบ inc หรือ diff โดยที่ไม่มีการทำ full backup เอาไว้ก่อน ผลการ backup ก็จะไม่สมบูรณ์

การ restore

- ตัวอย่าง
Full backup file A,B,C และได้ตั้ง Incremental backup เอาไว้ทุกวัน เช่น Inc 1 , Inc 2
Delete file C
Create file D
เมื่อมีการ restore full + inc 1 + inc 2 จะได้ไฟล์ A,B,C,D ไม่ใช่ A,B,D

การใช้งานจริง
- บางที backup media มีความจุมากกว่าข้อมูลมากมาย อาจจะสามารถ set ให้ทำ full backup ในวันอาทิตย์ และ inc backup ในวันจันทร์ ถึง พฤหัส (หรือศุกร์) โดยใช้ tape ตลับเดียวกัน (เป็นวิธีการที่ไม่ค่อยดีเพราะถ้าเทปมีปัญหาข้อมูล backup ไว้ทั้งอาทิตย์จะหายไปทั้งหมด) โดยแบ่งเป็น 2 job คือ
job 1 full backup วันศุกร์ กำหนดให้ overwrite media
job 2 inc backup วันจันทร์ ถึง ฟฤหัส กำหนดให้ append media

- ในแต่ละอาทิตย์จะใช้ 2 job และ tape 1 ม้วน ใน 1 เดือนจะใช้ tape 5 ม้วน

Note สำหรับ Backup Exec

- ถ้าต้องการทำ full backup โดยไม่ต้องการให้ไปยุ่งกับ archive bit ให้เลือก option "Copy the files" จะไม่ทำการ reset archive bit

- ถ้าต้องการ backup โดยใช้ modified time จะต้องใช้แบบเดียวกันหมดคือ full , Inc , Diff

- Compression type ถ้า backup ลง tape ใช้ Hardware ถ้า backup ลง disk ใช้ Software

- http://www.backupexecfaq.com    ดีมาก

Saturday, May 08, 2010

Open port for TeamViewer

By default TeamViewer uses only the outgoing port 80 (HTTP) - no firewall configuration is necessary. Alternatively you can open port 5938 (TCP) for outgoing connections.

Sunday, April 25, 2010

สรุปการตั้งค่า Receiver ของดาวเทียม

สรุป
- ชื่อของ ดาวเทียม และ องศา ไม่มีความสำคัญ ขอแค่ตั้งหน้าจานให้ถูกต้องลากสายจาก LNB มาที่ receiver ก็ใช้ได้แล้ว

- จุดที่สำคัญคือ การตั้งค่าหัว LNB โดยเลือกตั้งตามนี้
LNB C Band คือ 5150
LNB KU Band คือ 9750,10600
LNB KU UBC คือ 11300

- ตั้งค่า Transponder (TP) ที่จะให้ scan , receiver บางรุ่นสามารถที่จะ scan หาช่องให้จากทุก TP ได้เอง บางรุ่นต้องเพิ่มค่า TP เข้าไปเองก่อน แล้วจะ scan แค่ TP ที่อยู่ใน list เท่านั้น (ต้องระบุว่าเป็น H หรือ V ด้วย)

- receiver ที่รับ H จะต่อพ่วงกับ V ไม่ได้ ต้องแยกสาย H , V มาจาก LNB เลย เวลาซื้อ LNB ให้ซื้อแบบที่มีทั้ง H และ V

- ถ้ารู้ความถี่ช่องที่ต้องการ สามารถให้ scan เฉพาะความถี่นั้นได้ โดยใส่ค่า TP, H หรือ V, SR , FEC

- ทิศทางการหันหน้าจานดูจากเวปนี้ http://www.dishpointer.com/ จะง่ายที่สุด

Note
- บางเมนูไม่ขึ้นเป็นปุ่มให้กด แต่จริงๆแล้วสามารถได้เช่นการ scan ช่อง บางทีให้กดตรง SR หรือ TP ก็มี

Tuesday, April 20, 2010

Vmware Player with multiple network adpater

ถ้าเรามี network card หลายอัน default แล้ว vmware player จะเลือกให้เราเอง
สามารถเปลี่ยนแปลงได้โดยใช้ vmnetcfg.exe ซึ่งจะไม่ถูก install โดยอัตโนมัติ
จะต้อง extract ออกมาจากตัว installer เอง โดยใช้ option /e และจะอยู่ในไฟล์ network.cab อีกที
เสร็จแล้ว copy ไปใส่เอาไว้ใน folder ที่ได้ install vmware player เอาไว้ ก็จะใช้งานได้

Thursday, April 08, 2010

Dell Optiplex Light Code and Beep Code

Dell Technical Support



Optiplex, Latitude, Studio & Precision Standard Tier Main Line                       1800-0060-07
PowerEdge & PowerVault Main Line                                                              1800-0600-09
Thailand Toll-free (AIS & TOT Telco)                                                            1800-060-157
Thailand Toll-free(CAT, True & DTAC Telco)                                               001-800-601-5623
Thailand Customer Care Toll Free                                            1800-006-006 Press: 2 & Press: 5
Local Landline Call                                                  02-6707000 Press 2 & Press 1 Ext: 2133416




Technical Support จะถามอยู่ 3 คำถามคือ

1. ไฟ Power ติดสีอะไร และกระพริบหรือไม่
2. ไฟ Diagnostic Light ติดที่หมายเลขอะไรบ้าง
3. ได้ยินเสียง Beep ด้วยหรือเปล่า

System Lights

Your power button light and hard-drive light may indicate a computer problem.


Power Light

Problem Description

Suggested Resolution
Solid greenPower is on, and the computer is operating normally. On the desktop computer, a solid green light indicates a network connection.No corrective action is required.
Blinking greenThe computer is in a power-saving mode (Microsoft® Windows® XP).Press the power button, move the mouse, or press a key on the keyboard to wake the computer.
Blinks green several times and then turns offA configuration error exists.Check the diagnostic lights to see if the specific problem is identified (see Diagnostic Lights).
Solid yellowThe Dell Diagnostics is running a test, or a device on the system board may be faulty or incorrectly installed.If the Dell Diagnostics is running, allow the testing to complete.
If the computer does not boot, contact Dell for technical assistance (see Contacting Dell).
Blinking yellowA power supply or system board failure has occurred.See Power Problems.
Solid green and a beep code during POSTA problem was detected while the BIOS was executing.See Beep Codes for instructions on diagnosing the beep code. Also, check the diagnostic lights to see if the specific problem is identified (see Diagnostic Lights).
Solid green power light and no beep code and no video during POSTThe monitor or the graphics card may be faulty or incorrectly installed.Check the diagnostic lights to see if the specific problem is identified (see Diagnostic Lights).
See Video and Monitor Problems.
Solid green power light and no beep code but the computer locks up during POSTAn integrated system board device may be faulty.Check the diagnostic lights to see if the specific problem is identified (see Diagnostic Lights). If the problem is not identified, contact Dell for technical assistance (see Contacting Dell).


Diagnostic Lights


CAUTION: Before you begin any of the procedures in this section, follow the safety instructions located in the Product Information Guide.
To help you troubleshoot a problem, your computer has four lights labeled "1," "2," "3," and "4" on the front or back panel. The lights can be off or green. When the computer starts normally, the patterns or codes on the lights change as the boot process completes.
If the POST portion of system boot completes successfully, all four lights display solid green. If the computer malfunctions during the POST process, the pattern displayed on the LEDs may help identify where in the process the computer halted.
NOTE: The orientation of the diagnostic lights may vary dependent upon the computer type. The diagnostic lights can appear either vertical or horizontal.


Light Pattern

Problem Description

Suggested Resolution


The computer is in a normal "off" condition, or a possible pre-BIOS failure has occurred.
The diagnostic lights are not lit after the computer successfully boots to the operating system.
Plug the computer into a working electrical outlet and press the power button.


A possible BIOS failure has occurred; the computer is in the recovery mode.Run the BIOS Recovery utility, wait for recovery completion, and then restart the computer.


A possible processor failure has occurred.Reinstall the processor and restart the computer.


Memory modules are detected, but a memory failure has occurred.
  • If you have one memory module installed, reinstall it and restart the computer. (see Memory for instructions on how to remove and install memory modules.)
  • If you have two or more memory modules installed, remove the modules, reinstall one module, and then restart the computer. If the computer starts normally, reinstall an additional module. Continue until you have identified a faulty module or reinstalled all modules without error.
  • If available, install properly working memory of the same type into your computer.
  • If the problem persists, contact Dell (see Contacting Dell).


A possible graphics card failure has occurred.
  • If the computer has a graphics card, remove the card, reinstall it, and then restart the computer.
  • If the problem still exists, install a graphics card that you know works and restart the computer.
  • If the problem persists or the computer has integrated graphics, contact Dell (see Contacting Dell).


A possible floppy or hard drive failure has occurred.Reseat all power and data cables and restart the computer.


A possible USB failure has occurred.Reinstall all USB devices, check cable connections, and then restart the computer.


No memory modules are detected.
  • If you have one memory module installed, reinstall it and restart the computer. (see Memory for instructions on how to remove and install memory modules.)
  • If you have two or more memory modules installed, remove the modules, reinstall one module, and then restart the computer. If the computer starts normally, reinstall an additional module. Continue until you have identified a faulty module or reinstalled all modules without error.
  • If available, install properly working memory of the same type into your computer.
  • If the problem persists, contact Dell (see Contacting Dell).


Memory modules are detected, but a memory configuration or compatibility error exists.
  • Ensure that no special memory module/memory connector placement requirements exist (see Memory).
  • Verify that the memory modules that you are installing are compatible with your computer (see Memory).
  • If the problem persists, contact Dell (see Contacting Dell).


A failure has occurred.
This pattern also displays when you enter system setup (see Entering System Setup) and may not indicate a problem.
  • Ensure that the cables are properly connected to the system board from the hard drive, CD drive, and DVD drive.
  • Check the computer message that appears on your monitor screen.
  • If the problem persists, contact Dell (see Contacting Dell).


After POST is complete, all four diagnostic lights turn green briefly before turning off to indicate normal operating condition.None.


Beep Codes

Your computer might emit a series of beeps during start-up if the monitor cannot display errors or problems. This series of beeps, called a beep code, identifies a problem. One possible beep code (code 1-3-1) consists of one beep, a burst of three beeps, and then one beep. This beep code tells you that the computer encountered a memory problem.
If your computer beeps during start-up:
  1. Write down the beep code on the Diagnostics Checklist.

  2. Run the Dell Diagnostics to identify a more serious cause (see Dell Diagnostics).

  3. Contact Dell for technical assistance (see Contacting Dell).



Code

Cause
1-1-2Microprocessor register failure
1-1-3NVRAM read/write failure
1-1-4ROM BIOS checksum failure
1-2-1Programmable interval timer failure
1-2-2DMA initialization failure
1-2-3DMA page register read/write failure
1-3Video Memory test failure
1-3-1 through 2-4-4Memory not being properly identified or used
3-1-1Slave DMA register failure
3-1-2Master DMA register failure
3-1-3Master interrupt mask register failure
3-1-4Slave interrupt mask register failure
3-2-2Interrupt vector loading failure
3-2-4Keyboard Controller test failure
3-3-1NVRAM power loss
3-3-2Invalid NVRAM configuration
3-3-4Video Memory test failure
3-4-1Screen initialization failure
3-4-2Screen retrace failure
3-4-3Search for video ROM failure
4-2-1No timer tick
4-2-2Shutdown failure
4-2-3Gate A20 failure
4-2-4Unexpected interrupt in protected mode
4-3-1Memory failure above address 0FFFFh
4-3-3Timer-chip counter 2 failure
4-3-4Time-of-day clock stopped
4-4-1Serial or parallel port test failure
4-4-2Failure to decompress code to shadowed memory
4-4-3Math-coprocessor test failure
4-4-4Cache test failure

Tuesday, April 06, 2010

การใช้ excel vlookup


ข้อกำหนดของ vlookup (ไม่แน่ใจว่า excel version ใหม่แก้หรือยัง)
- ต้องมีการเรียงลำดับจากน้อยไปหามากเอาไว้ก่อน
- column ที่ใช้ค้นหาของ table array จะต้องเป็น column ที่อยู่ซ้ายมือสุดเสมอ

 =VLOOKUP(ค่าที่ต้องการค้นหา,ตารางข้อมูล,หมายเลขของ column ตารางข้อมูลที่ต้องการนำข้อมูลมาแสดงเริ่มตั้งแต่ซ้ายสุดคือ 1 ไปเรื่อยๆ,not_exact_match)

- not_exact_match ส่วนใหญ่จะใช้ FALSE หรือ 0 ซึ่งหมายถึงต้องการให้ค้นหาแบบ exact match
- ถ้าใช้เป็น TRUE จะหมายถึง approximate match หมายความว่าถ้าค้นหาไม่เจอ vlookup จะหาค่าที่มากที่สุดที่น้อยกว่าค่าที่ต้องการค้นหา (ไม่ค่อยได้ใช้ True)

http://www.techonthenet.com/excel/formulas/vlookup.php


สำหรับ Excel แล้ว False = 0 และ True = 1

การอ้างถึงข้ามไฟล์ข้าม sheet ใช้ [Book2]Sheet1!

การตรึงใช้ $ สามารถตรึงได้ทั้ง row และ column เช่น $A$1 หรือจะใช้ Defind Name ก็ได้สะดวกดี

Friday, March 26, 2010

การเปลี่ยน Microsoft SQL Server 2000 Licensing Mode โดยไม่ต้อง install ใหม่

ปกติจะมีให้เลือก mode ตอน install ถ้าเลือกแล้วจะไม่สามารถเปลี่ยนได้ นอกจาก reinstall sql หรืออีกวิธีที่ง่ายกว่าคือไปแก้ที่ registry ดังนี้


HKLM\Software\Microsoft\Microsoft SQL Server\80\MSSQLLicenseInfo\MSSQL8.00\Mode

เปลี่ยนเป็น 0

เมื่อเข้าไปที่ Control Panel แล้วจะสามารถเลือก mode ได้ใหม่


Sunday, March 21, 2010

Group Policy Preferences

http://alsolorzano.com/blogs/tips__tricks/archive/2008/06/02/group-policy-preferences-in-a-windows-2003-domain-and-a-windows-2008-domain.aspx

การ Uninstall Application ที่ Install จาก Software Installation ของ GPO

มีอยู่ 3 แบบ

1. ถ้าใน Deployment Option ได้เลือกไว้ว่า Uninstall this application when it falls out of the scope management แล้วเราย้าย computer หรือ user ไปยัง OU อื่น มันจะ uninstall ให้เอง
2. ถ้าไม่ต้องการให้ application นี้ถูกติดตั้งลงในเครื่องใหม่เพิ่มจากเดิม แต่เครื่องที่เคย install ไปแล้วอนุญาติให้ใช้ต่อไปได้  ให้เลือก all task/ remove/ allow users to continue to use the software but prevent new installations.
3. ถ้าต้องการใช้ uninstall ออกไปทั้งหมดเลย ใช้เลือก all task/ remove/ immediately uninstall the software from user and computer.

Friday, March 19, 2010

การซื้อแอร์ และติดตั้ง

1. ตอนมาติดตั้งให้ทำ vaccum ให้ด้วย ต้องคุยกับที่ร้านตอนซื้อเพราะเสียเวลาทำพอสมควร
2. ใช้ท่อน้ำทิ้ง 4 หุน เพราะจะตันยาก
3. สายไฟเบอร์ 4 Yazaki หรือ Bangkok Cable เดินสายดินให้ด้วย ถ้าที่บ้านติด breaker กันดูดรวมทั้งบ้าน ให้แยก breaker main สำหรับแอร์ออกมาจาก bus bar แล้วต่อไปตรงจาก main breaker บ้านเพื่อไม่ให้ไฟดับทั้งบ้านเมื่อมีไฟรั่วจากแอร์
4. เติน breaker ย่อยของแอร์ เป็น breaker ธรรมดา ไว้ตัดไฟตอน service
5. ถ้าเป็นไปได้ ขอ turn ท่อน้ำยาให้ใช้ฉนวนแบบหนากว่าที่แถมมา ท่อเข้าท่อออกหุ้มฉนวนแยกจากกัน
6. ขอแถมรางเก็บท่อ และขายึดกำแพงด้วย ล้างแอร์ 2 ครั้ง
7. ใช้สว่าน hole saw เจาะกำแพงจะได้ไม่แตกมาก รูสวย
8. ตั้งถาดรับน้ำให้เอียงไปทางท่อน้ำทิ้งให้ถูกต้อง บางทีเอียงไปคนละฝั่ง
9. ซื้อแผ่นกรอก 3M Filtrete มาติดตรง filter จะได้ไม่ต้องล้างแอร์บ่อย ขนาด 15"x48" ประมาณ 240-290 บาท
10. เวลาช่างล้างแอร์ให้คุมให้ดีๆ อย่าให้ไปวัดน้ำยาแอร์ อาจจะทำให้รั่ว หรือ แอบทำให้รั่วได้
11. วันน้ำยาแอร์วัดเป็นความดันมีหน่วยเป็น ปอน์ดต่อตารางนิ้ว psi ไม่ใช่หน่วยน้ำหนัก ซื้อถังเล็กๆ
ประมาณ 800 บาท
12. ท่อน้ำทิ้งให้กะ slope ด้วย
13. การคำนวณค่าไฟแอร์ kilo-Watt(จาก plate ของแอร์) X ชั่วโมงที่เปิดในแต่ละวัน X ค่าไฟหน่วยละประมาณ 3 บาท = ค่าแอร์ต่อวัน เช่น 1.56kW x 3hr x 3baht = 14 บาท ต่อวัน หรือประมาณชั่วโมงละ 4-5 บาท

Sunday, March 14, 2010

IPTABLE

ถ้าต้องการ block ช่วง 221.0.0.0-221.255.255.255 ใช้คำสั่ง


sbin/iptables -I INPUT -s 221.0.0.0/255.0.0.0 -j DROP
หรือ
sbin/iptables -I INPUT -s 221.0.0.0/8 -j DROP

ถ้าใช้ /24 จะ block ตั้งแต่ 221.0.0.0-221.0.0.255


ถ้าต้องการระบุเป็นช่วงเช่น 192.168.1.100-192.168.1.200 จะต้องโหลด module ipt_iprange ใน kernel ด้วย
โดยใช้ modprobe หรือ recomplid kernel ด้วย iprange ในส่วนของ netfilter

Saturday, March 13, 2010

All about FSMO Roles and Remove Domain Controller

Understanding FSMO Roles in Active Directory
http://www.petri.co.il/understanding_fsmo_roles_in_ad.htm

Planning FSMO Roles in Active Directory
http://www.petri.co.il/planning_fsmo_roles_in_ad.htm

Determining FSMO Role Holders
http://www.petri.co.il/determining_fsmo_role_holders.htm

Transferring FSMO Roles
http://www.petri.co.il/transferring_fsmo_roles.htm

Seizing FSMO Roles
http://www.petri.co.il/seizing_fsmo_roles.htm

Forcibly Removing Active Directory from a DC – Retire a  Domain Controller
http://www.petri.co.il/forcibly_removing_active_directoy_from_dc.htm

Delete Failed DCs from Active Directory
http://www.petri.co.il/delete_failed_dcs_from_ad.htm

Windows 2003 Domain Controller Rename
http://www.petri.co.il/windows_2003_domain_controller_rename.htm

Thursday, March 11, 2010

การยื่น แบบทาง Internet ของ ภ.ง.ด. 90

รายได้เป็นเงินเดือน อย่างเดียว ยื่น ภ.ง.ด. 91 และไม่ต้องไปสนใจ ภ.ง.ด. 90 ที่บริษัทออกให้
ถ้ามีรายได้อย่างอื่นด้วยนอกเหนือจากเงินเดือน ยื่น ภ.ง.ด. 90
เช่นกรณีทำงานเป็นพนักงานประจำและมีรายได้อื่นเป็นเงินปันผล ให้ยื่นแบบ ภ.ง.ด. 90

สำหรับการยื่น ภ.ง.ด. 90
- เงินเดือนกรอกใน ห้วข้อ 40(1) + หักณ ที่จ่าย
- เงินได้จากอย่างอื่น กรอกใน หัวข้อ 40(2) อย่าลืมใส่หักณ ที่จ่าย 3% ออกด้วย
- ในหน้าผู้จ่ายเงินได้ กรอกหมายเลขประจำตัวผู้เสียภาษีของ บริษัทที่จ่ายเงินให้เรา หรือหมายเลขบัตรประชาชนสำหรับกรณีที่ไม่ได้เป็นบริษัท ต้องใส่ทั้งของ 40(1) และ 40(2)
- ในหน้า ลดหย่อนและการคำนวนภาษี กรอก เงินหักประกันสังคม , เงินบริจาค

- เงินปันผลให้กรอกใน 40(4) ให้กดที่ link แก้ไข/เพิ่มเติม แล้วจะเปิดหน้าต่างใหม่ให้กรอก เงินปันผลที่ได้รับตามใบที่ได้จาก TSD ต้องกรอกให้ครบหมดทุกตัว หรือไม่ก็ไม่ต้องกรอกเลย

- ถ้าเป็นเงินปันผลจาก2.1 BOI ให้กรอกในช่องยกเว้นภาษี

ถ้าเป็นเงินปันผลจาก2.2,2.3,2.4 ให้กรอกในช่องไม่ได้รับเครดิตภาษี
นอกนั้นกรอกตามเอกสาร

- สามารถดูสรุปยอดภาษีที่ได้รับทั้งปีได้จาก www.tsd.co.th

Monday, March 08, 2010

ค่าธรรมเนียมซื้อขายบ้าน

ค่าธรรมเนียมหลังวันที่ 28 มีนาคม 2553 ที่ครมมีมติไม่ต่ออายุ

1.ค่าธรรมเนียมโอนบ้านและคอนโดฯ จาก 0.01% เป็น 2% (ปกติจะออกคนละครึ่ง)
2.ค่า จดจำนองจาก 0.01% เป็น 1% (กรณีกู้กับธนาคาร ถ้าซื้อสดไม่ต้องเสีย)
3.ภาษีธุรกิจเฉพาะในการซื้อขายอสังหาฯ จาก 0.11% เป็น 3.3% (ปกติผู้ขายออก)

Thursday, January 21, 2010

วิธีปลดล๊อค Zyxel 660HW Port 3 กับ 4


ไม่จำเป็นต้องใส่เอาไว้ใน autoexec.net


sys tripleplay portbase disable
sys tripleplay portbase save

Sunday, January 03, 2010

ปั๋มน้ำ

ปั๊มกลม
- เรียกว่าปั๋มอัตโนมัติ
- ทำงานโดย pressure switch
- มี bypass ให้น้ำไหลผ่านตัวได้เมื่อไฟดับ

ปั๋มเหลี่ยม
- เรียกว่าปั๊มแรงดันคงที่ แต่ความจริงน่าจะเรียกว่าปั๊มทำงานเต็มที่มากกว่า
- เริ่มทำงานโดย pressure switch
- แต่จะหยุดทำงานโดย flow switch
- ไม่มี bypass ในตัว

ปั๊มเหลี่ยม Invertor
- ปรับปรุงให้สามารถทำงานมากน้อยตามโหลด ไม่ต้องทำงานเต็มที่ตลอดเวลา ทำให้ประหยัดไฟ

การต่อปั๋ม
- ควรจะต่อ check valve ทั้งทางดูดและทางจ่ายด้วย
- ต่อทางจ่ายเพื่อป้องการ water hammer เมื่อปั๊มหยุดทำงาน
- ต่อทางดูดเพื่อป้องกันน้ำเล็ดรอดกลับเข้า tank
- เมื่อต่อ check valve แล้วจะรู้สึกได้ว่าปั๊มทำงานเองน้อยลง

Union
- ควรใช้ของท่อน้ำไทย
- เวลาซื้อให้ขันออกมาดูว่าจะมีแผ่นพลาสติกใสกับยางให้ครบ (หายบ่อย)
- ไม่ควรใช้กับท่อที่มี pressure สูงๆเช่นด้านจ่ายของปั๊ม(หลังปั๋ม)
- work เพราะไม่มีน้ำหยดตรงรอยต่อจริงๆ

การต่อท่อ
- ถ้าต้องการต่อกับพวกเกลียวทองเหลืองของ valve ต่างๆที่มีช่วงเกลียวสั้น ให้เจียร์เกลียวนอกของ PVC ออกหน่อยนึงก่อน เพื่อจะได้เข้าได้ลึกที่สุด
- หัวท่อ pvc ที่ต่อขึ้นมาจากพื้นทั้งหมดให้ใช้เป็นเกลียวในทองเหลืองเพื่อที่จะได้ถอดบำรุงรักษาได้โดยที่ไม่ต้องแย๊กพื้น อย่าต่อโดยการใช้กาว
- ควรต่อท่อขนาดเดียวกับ meter  และเดินทั้งบ้านด้วย 1" รวมถึงปั๊มและ tank ด้วย
- ควรมีตัวดักเศษกรวดที่ท่อด้วยถ้าสามารถหาซื้อได้
- PVC ควรซื้ออย่างหนา ตัวหนังสือสีทอง
- ท่อน้ำไทยมีขายหน้าแปลน PVC อีกข้างเป็นเกลียวนอกด้วย

Valve
- check valve ที่ใช้ตามบ้านทั่วไปมี 2 แบบคือแบบ spring กับแบบ swing
- swing ดีกว่าเพราะขัดข้องได้ยากกว่า และทนกว่า ไม่มีอาการ spring ล้าเมื่อใช้ไปนานๆ แต่หาซื้อได้ยากกว่า ทั่วไปจะเจอยี่ห้อ Kitz กับ Sanwa
- แบบ spring ข้อดีคือสามารถติดตั้งได้ทุกแนว
- แบบ swing ควรจะติดตั้งในแนวดิ่ง หรือถ้าติดตั้งในแนวราบให้เอียงท่อนิดหน่อยเพื่อให้ฝาปิดสามารถลงมาปิดได้สนิท ถ้าเอียงผิดจะทำให้ฝาปิดไม่สนิท
- check valve ไม่ได้ปัองกันน้ำไหลย้อนกลับได้สนิท 100% แต่จะลดแรงดันน้ำหลัง valve ลงให้เหลือแค่นิดเดียว และเมื่อเจอกับแรงดันน้ำที่มากกว่าทางด้านหลัง ก็จะทำให้น้ำไม่ไหลย้อนกลับทาง

สายยางรดน้ำต้นไม้
- ควรซื้อของยี่ห้อท่อน้ำไทย สีเขียว ขนาด 5/8"

http://www.pantip.com/cafe/home/topic/R7480894/R7480894.html
http://www.pantip.com/cafe/home/topic/R7482936/R7482936.html