Sunday, January 30, 2011

Restart RV042

http://www.r00t.cz/Misc/RV042

reboot
?cmd=RebootReboots the router

enable telnet
?ConsoleSimulation=1/0Enables/disables telnet server on port 23

Friday, January 28, 2011

แปลงไฟล์ Karaoke

แปลง MPG Karaoke ให้เป็นไฟล์เสียงแยกซ้ายขวา ใช้โปรแกรม MPEG-VCR
http://www.womble.com/download/vcr.html

ตัดต่อไฟล์เสียงใช้ Goldwave

Saturday, January 08, 2011

Setting Google Apps Domain Key in DNS

Enable DKIM in Google Apps control panel

Create or Modify DNS

1. Creare new TXT Record name google._domainkey
2. enter value that you generated from google apps below the line TXT record value example: v=DKIM1; k=rsa; t=y; p=MIGfMA....






Verify DNS

1. open nslookup
2. type set type=txt
3. type google._domainkey.yourdomain.com you will see output like this
(but google._domainkey.yourdomain.com is not subdomain)


Server: google-public-dns-a.google.com
Address: 8.8.8.8

Non-authoritative answer:
google._domainkey.yourdomain.com text =

"v=DKIM1; k=rsa; t=y; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCzx1zk4E0J
LunrLqQ34OcUWIHpVRz1iJMeWygSaXNpkKCocWKLeBJyipkKmSlrsilAh4qmj0r+jQ7rGTM1Kc+hzVnlZzfFfUqidY0JyW2TpXY6zatSS2QAhjLv2Wn2p1WL6ABX0f4hKqwzg9CuvK80zJhDuuXH3MkRApNs4fN/gQIDAQAB"


Note
- In google apps if click show detail in email you will see information like this:

mailed-by yourdomain.com <- if you use SFP record in DNS
signed-by yourdomain.com <- if you enable DKIM

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

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

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