Friday, February 24, 2012

การตั้งค่า FAX สำหรับหรับ Printer HP Laserjet

สำหรับ Laserjet M1212nf

- Factory Reset โดยการปิดเครื่อง ถอดสาย LAN แล้วกดปุ่ม > กับ X ค้างเอาไว้พร้อมกันพร้อมกับกดปุ่มเปิดเครื่องใหม่ รอจนขึ้น PERMANENT STORAGE INIT แล้วค่อยปล่อยมือ มันจะ restart เองอีกรอบ
- เมื่อเปิดเครื่องใหม่ขึ้นมาแล้วจะถามภาษาให้เลือกภาษาที่ต้องการ ส่วน Location ให้เลือกเป็น Thailand
- เสร็จแล้วเข้าไปตั้งค่า Fax ตามนี้

Fax Setup
Fax Send setup
 Detect dial tone – On
Fax Recv. Setup
 Answer mode – Automatic
 Rings to answer –(2-6 ครั้ง)
 Answer Ring Type – All Ring
 Silence Detect – On
All Faxes
 Error correction – ON (Off หากสัญาณโทรศัพท์มีปัญหา)
 Fax Speed – Fast ( V.34) หากสัญาณโทรศัพท์มีปัญหา
สามารถปรับลด Speed ได้


ส่วนเครื่องรุ่นอื่นก็สามารถตั้งค่าได้คล้ายๆกัน


Tuesday, January 17, 2012

วิธีการ set IP Address ของ Printer Epson Dot Matrix

ที่ใช้เป็น Check Printer
- ที่ module lan ด้านหลัง printer จะมีรูให้ใช้ที่หนึบกระดาษจิ้วไว้ 1 นาที จะได้ default ip = 192.168.192.168
- เปิด browse เข้าไปที่ 192.168.192.168 แล้วเปลี่ยนตามต้องการ
- กด save จะถามว่าจะให้ reboot printer หรือเปล่าก็ตอบตกลง
- เมื่อ boot เสร็จแล้วลอง ping ถ้าเจอก็เสร็จ

Thursday, January 12, 2012

วิธีตรวจสอบว่า Computer Restart เวลาไหนบ้าง

ดูที่ eventlog ที่ event id = 6005 = event log service was starte
6006 = event log service was shut down

Sunday, December 25, 2011

Add static ARP in Windows 7, Vista, Server 2008

Windows XP
arp -s 192.168.1.1 00-11-18-21-45-91

Windows 7 , Vista, Server 2008
netsh interface ipv4 add neighbors "Local Area Connection" 192.168.1.1 00-11-18-21-45-91


ARP Spoofing Detection
http://www.chrismc.

กรณีที่มี ip address ชนกันกับ gateway จะดูคล้ายกับโดน ARP Spoofing
เช่นกรณี ap อยู่ดีๆก็โดน reset กลับเป็นค่า default setting
ให้ใช้คำสั่ง arp -a ดูว่า mac ของ gw เปลี่ยนไปมาหรือเปล่า
แล้ว add static arp เพื่อเข้าไป set ap นัั้นให้ได้ โดยเปลี่ยน ip ใหม่ โดยใช้ ip ที่ ap นั้นอยากจะเป็น ถ้าใช้เป็น ip อื่นอาจจะเข้าไปแล้วหลุดออกมา และตั้งค่าอื่นๆใหม่
เสร็จแล้วค่อยลบ static arp นั้นออกโดยใช้คำสั่ง arp -d <ip>
ถ้าจะให้ดีควรทำ บัญชี mac ของทุกเครื่องและทุกอุปกรณ์ให้หมด เวลามีปัญหาจะได้เช็กง่าย
สามารถเอา mac ไปเช็กได้ด้วยว่ามาจากอุปกรณ์ยี่ห้ออะไรจะได้ตัดให้แคบลงได้

สำหรับ Windows 7 บางกรณีอาจจะลบ static arp ไม่ออก คือลบออกแต่เมื่อ restart computer
static arp ที่เคยตั้งไว้ก็กลับมาใหม่ ให้ใช้คำสั่งด้านล่าง reset ค่าของ interface ก่อน
netsh interface ipv4 reset
netsh interface ip delete arpcache

Sunday, December 18, 2011

Google Authenticator

Codes from Google Authenticator not working after phone reset

If you recently reset or wiped your phone, the Google Authenticator app might not be able to generate valid codes. To get your Google Authenticator app working again, you will need to delete your account from the app, turn off 2-step verification, turn it back on, and add your account to the app again.
Open the Google Authenticator app on your phone.
Delete your account from the app. Don't worry, your Google Account will not be deleted – just the connection from the app to your account.
Press and hold the account you want to delete, then tap Delete on the dialog box that pops up.
Go to your 2-step verification settings page.
Click Remove near your smartphone name (Android, BlackBerry, or iPhone).
Turn 2-step verification back on by clicking Set up 2-step verification and following the directions. You will need to configure Google Authenticator again on your phone, but your other details will be saved.
Once you've completed the 2-step verification setup, your app should once again be generating valid codes

Monday, May 30, 2011

Windows 2000

ถ้ามีความจำเป็นที่จะต้องใช้ Windows 2000 ควรทำ 2 ขั้นตอนนี้ด้วยคือ

- Enable big harddisk support (ตามปกติจะเห็นประมาณ 120G) ถ้าไม่ทำจะทำให้มีอาการอยู่ๆ partition หายไปเฉยๆ หรือมองเห็น harddisk ไม่เต็มความจุ

1. Start Registry Editor (Regedt32.exe).
2. Locate and then click the following key in the registry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Atapi\Parameters
3. On the Edit menu, click Add Value, and then add the following registry value:
Value name: EnableBigLba
Data type: REG_DWORD
Value data: 0x1
4. Quit Registry Editor.
http://support.microsoft.com/kb/305098/EN-US/


- Install IE6 SP1 เพื่อให้สามารถเข้า Windows Update ได้ (ปกติจะมาพร้อมกับ IE5)
1. download ie6 sp1 setup ได้จาก link http://www.microsoft.com/downloads/info.aspx?na=90&p=&SrcDisplayLang=en&SrcCategoryId=&SrcFamilyId=1e1550cb-5e5d-48f5-b02b-20b602228de6&genscs=&u=http://download.microsoft.com/download/ie6sp1/finrel/6_sp1/W98NT42KMeXP/EN-US/ie6setup.exe
2. สั่ง download setup file มาเก็บไว้เพื่อ install ได้โดย run คำสั่ง

ie6setup.exe /c:"ie6wzd.exe /d /s:""#E"
ซึ่งจะ save ไว้ที่ drive e:

http://www.petri.co.il/download_the_full_ie_package.htm

Tuesday, March 01, 2011

Case Dell Optiplex

มี 3 แบบ

1. Mini Tower
- มีขนาดใหญ่สุด เสียบ card pci ได้เลย
- รหัสต่อท้าย Model คือ MT เช่น 380 MT

2. Desktop
- ใหญ่พอกับ Mini Tower แต่บางกว่า หา card มาเสียบได้ยาก
- รหัสต่อท้าย Model คือ DT เช่น 380 DT

3. Small Form Factor
- เล็กสุด ราคาแพงกว่าแบบอื่น

Tuesday, February 01, 2011

Free Time Sync Software

http://www.analogx.com/contents/download/Network/ats/Freeware.htm

http://www.1stbyte.com/2009/04/07/configure-windows-server-2003-and-2008-w32tm-commands-on-domain-controller/

http://social.technet.microsoft.com/Forums/en-US/winservergen/thread/96278628-03a1-4b3d-90d9-2208a65a1210/

http://social.technet.microsoft.com/Forums/en-US/winserverPN/thread/192fe65f-478b-45fd-9ba4-5798802c13d8

http://social.technet.microsoft.com/Forums/en/winservergen/thread/ed37e31c-c012-42aa-a9cf-9762e5da3a43

http://social.technet.microsoft.com/Forums/en/windowsserver2008r2general/thread/62a12268-0ac5-4816-a990-9a97bb4acd45

http://social.technet.microsoft.com/Forums/en-US/winservergen/thread/628a7e09-cd75-4e6e-92dc-a8e187c21f7c

http://social.technet.microsoft.com/Forums/en-US/itprovistasetup/thread/d9c65d89-4691-4212-8991-616f01183d70

http://social.technet.microsoft.com/Forums/en/winservergen/thread/96278628-03a1-4b3d-90d9-2208a65a1210


w32tm /config "/manualpeerlist:0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org pool.ntp.org",0×8 /syncfromflags:MANUAL /reliable:yes /update
w32tm /config /manualpeerlist:0.pool.ntp.org,0x8 /syncfromflags:MANUAL /reliable:yes /update
w32tm /resync /rediscover

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