2011-07-19

啟用&關閉中華電信 ZyXEL P874 的無線網路連線功能的步驟

<< 新版軔體已可讓使用者自行開/關 Wifi, 不再需要下列繁覆的動作了 >>

關閉無線網路功能的最簡單方法


2011/07/19 家裡的網路由 12M/3M, 升級為 20M/4M. 原本P874的Wi-Fi網路需要月租89元,但這次促銷案裡以0元免費安裝,因此安裝後預設就有無線AP,面板上的WLAN燈號就是標示是否有無線網路的指示燈。要關掉無線網路的最簡單方法就是戳P874後方的Reset鈕,按個5秒重開後WLAN燈號就不亮了。


P874只支援到802.11g,如果你已使用802.11n的無線AP,那應該還是把它給關了吧。但為了日後或許有機會要使用,因此最好是先把有無線功能的設定儲存起來,日後才好回復。

如何備份現有設定

首先我把具備無線網路功能的目前設定備份起來:
以網路線連接電腦與ZyXEL P874,設定電腦IP為192.168.1.2,閘道192.168.1.1


  1. 以瀏覽器瀏覽 http://192.168.1.1,以管理帳號 cht 登入 (密碼:cht?vdsl,北區?=n,中區?=c,南區?=s)。
  2. 點擊左側的【Management】→【Settings】→【Backup】,按右側的〔Backup Settings〕,再指定要儲存的檔名(預設檔名是backupsettings.conf),將檔案先備份在你的硬碟裡。
  3. 將 backupsettings.conf 複製成 new.conf, 後續編輯new.conf並更新回P874。

編輯設定檔並更新

接著以文字編輯器編輯new.conf,因為備份出的設定檔的每列結尾是UNIX的ASCII 10,並不是Windows系統的ASCII 13+10,因此建議使用Notepad++或EmEditor之類的編輯器,而不要使用Windows的記事本。修改步驟如下:

搜尋第一個 <WlBaseCfg> ,在其下插入 <WlEnbl>0</WlEnbl>,中間的數字0表示要關閉無線AP,1則表示要啟用無線AP。請注意只要修改第一個 <WlBaseCfg> 就可以了,後面不用再修改。

<WlBaseCfg>
<WlEnbl>0</WlEnbl>
...
</WlBaseCfg>
修改後儲存,再點擊【Management】→【Settings】→【Update】,選擇new.conf後按〔Update〕,P874會上載new.conf並重新開機,再等待120秒就完成設定更新。更新時不要被網頁顯示【韌體更新中】嚇到,也不要選錯成【Update Software】了,【Management】→【Settings】→【Update】才真的是更新韌體的。
再以 user / user(密碼也記得要改掉)登入http://192.168.1.1,可以由System Status觀察P874的狀態。
 
常見問題

  • 如果修改的設定有錯,按了〔Update〕後會出現下列畫面,修改conf檔後再上傳一次即可。

     
  • 如果弄亂了系統,可以按【Management】→【Settings】→【Restore Default】或按數據機後面的Reset鈕5秒以重置系統而回復出廠的設定。

2011-07-13

Can't Delete HKEY_CLASSES_ROOT\{80b8c23c-16e0-4cd8-bbc3-cecec9a78b79}\

These two registry keys are introduced by Avira.

HKCR\{80b8c23c-16e0-4cd8-bbc3-cecec9a78b79}\
HKLM\software\classes\{80b8c23c-16e0-4cd8-bbc3-cecec9a78b79}\

Uncheck the following item. Then execute CCleaner or jv16-powertools to delete them. After that you can check it again.

2011-07-12

[教學] 讓 SMPlayer 正常顯示中文字幕

SMPlayer 是一款很出色的影音播放器,它以 MPlayer 為核心,提供了直覺的操作介面,被稱為最棒的 MPlayer 前端介面。它同時有 Windows 跟 Linux 版本,因為功能完整且對硬體要求不高,所以受到許多人的喜愛。MuldeR's MPlayer for Windows 則是玩家修改後的版本,它同樣是 SMPlayer,不過有對各種 CPU 做最佳化,也是值得一試。

不過相信很多在 Windows 底下使用 SMPlayer 的人都有遇過無法顯示中文字幕的問題,要怎麼解決呢?底下三張圖片就是解答!

1.
在偏好設定裡頭,切換到「進階 → Mplayer 的選項」,將原本的「-nofontconfig」移除。



2.
在「字幕」分類的〔字幕〕分頁底下,預設的字幕編碼選擇「正體中文字元集 (BIG5)」。若有時候你的字幕編碼是 Unicode 或 UTF-8,這裡就需要改為相對應的值。



3.
切到〔Font and colors〕分頁,按下〔Enable SSA/ASS subtitles〕按鈕以便啟用它。然後你就可以選擇字體跟位置、顏色、樣式等設定了。最新版的 SMPlayer 將 SSA/ASS 的設定改成這樣,再也不用自己下參數,實在是非常方便。記得一定要啟用 SSA/ASS,才可以正常顯示字幕喔。

2011-07-11

三用電表的使用方法.....數位式三用電表 (YF1069型)





直流電壓測試
1 將紅色測試棒插入“V/Ω”插座,黑色測試棒插入“COM”插座。
2 旋轉開關轉至DCV區域。(若不知道待測電壓的約略值,則轉至最高檔,再依實際測量值轉至最佳解析度為止,最大電壓勿超過 DC 1000V。)
3 將測試棒與待測線路並聯。
4 從液晶顯示器讀取待測電壓值。
 
交流電壓測試

ACV

1 將紅色測試棒插入“V/Ω”插座,黑色測試棒插入“COM”插座。
2 旋轉開關轉至ACV區域。(最大電壓勿超過 AC 750Vrms。)
3 將測試棒與待測線路並聯。
4 從液晶顯示器讀取待測電壓值。
 
直流電流測試

DCA

1 將紅色測試棒插入“mA”插座(大於200mA則插入10A插座),黑色測試棒插入“COM”插座。
2 旋轉開關轉至DCA區域。(若不知道待測電流的約略值,則轉至最高檔,再依實際測量值轉至最佳解析度為止)
3 將測試棒與待測線路串連。
4 從液晶顯示器讀取待測電流值。
 
電阻測試

OHM

1 將紅色測試棒插入“V/Ω”插座,黑色測試棒插入“COM”插座。
2 旋轉開關轉至OHM(Ω)區域。(若不知道待測電組的約略值,則轉至最高檔,再依實際測量值轉至最佳解析度為止)
3 將測試棒接到待測電阻上。
4 從液晶顯示器讀取待測電阻值。
 
二極體測試
1 將紅色測試棒插入“V/Ω”插座,黑色測試棒插入“COM”插座。
2 旋轉開關轉至二極體 “”檔位。
3 將測試棒接至待測二極體。
4 從液晶顯示器讀取測量值。
 
電晶體測試
1 旋轉開關轉至 hFE 區域。(依電晶體形式轉至 PNP 或 NPN 位置。)
2 將待測電晶體腳位 EB 配合插孔標示插入電晶體測試插座。
3 從液晶顯示器讀取 hFE 值。

2011-04-26

ATX 電源供應器手動啟動 (不接主機板啟動)

2014-12-22_114828

重點在 PS_ON# 這支接腳即16號接腳,只要跟任何 GND 的接腳(3、5、7、15 、17 、18、19)短路即可啟動ATX 電源供應器進行直流輸出(電源供應器的散熱風扇開始運轉)。要注意的是,短路動作要一直保持,一旦兩接腳開 路,ATX 電源供應器就會停止直流輸出(電源供應器的散熱風扇停止轉動)。

PS: 千萬不要以電線線色來做判別,各家電源供應器廠商的線色使用不盡相同!

這樣還不能保證電源供應器沒壞,只是知道電源供應器可啟動而已. 這只是最基本的功能沒壞. 接下來還要量各腳的輸出訊號(這只能大約得知各輸出是否正常),然後再進行負載測試, 也就是接上主機板

2014-12-21_181328

2011-03-24

沒軟碟機怎麼製作 USB FLASH KEY MS-DOS 開機碟?

Comment 2012/11/2 --- 以下方法太複雜了; 可改用 unetbootin or ultraiso

1: 到 這裡 下載Bootdisk



我是建議下載Windows 98 SE No Ram Drive 的開機碟,無特別偏好。但只要是Windows與Dos系列的應該都可用,NT的開機就不是DOS了。



2: 到 這裡 下載 Virtual Floppy 的程式 ( x32 only. For x64, please use imdisk )



3: 解壓縮檔案,例如 C:\VFloppy



4: 執行 vfdwin.exe
執行後會出下如下圖片



請點Install安裝虛擬Floppy。如果會經常需要虛擬Floppy,可以將啟動方式設為Auto。


成功安裝後,視窗會出現『The VFD driver is installed.』 請點Start 啟動 VFloppy



正確啟動後會顯示



不要急著去打開我的電腦,絕對不會顯示有軟碟機的 但不要擔心!請跟著下列順序操做!


先點 Drive0,接著change,Driver Letter A:,最後OK (當然,如果你電腦A: 已經用掉了,也請自己改成別的Drive Letter)



打開我的電腦看一下~~



出現了!!!
但還沒結束,我們要放磁片進去:

請點選『Open/Create』,接著點『Create』。注意橢圓部分設定請不要更改



最後,請去『我的電腦』,點進去Floppy,應該出現如下圖:一張空白的軟碟片




5: 製作開機軟碟
點選剛剛下載的檔案,並點OK



成功後A槽內容如下。對於以前常用Dos的朋友,裡面的東西應該都相當熟悉吧





5: 製作可開機MS-DOS USB 隨身碟


終於,花了這麼多步驟,最後重頭戲來了!

如同另外一篇教學,請下載HPUSBFW.EXE這文件 http://files.filefront.com/HPUSBFWEX.../fileinfo.html

接著請把製作開機碟的USB插入電腦,先讓他偵測。

注意!此USB隨身碟裡面所有資料接會被抹除!

執行HPUSBFW

勾選『Quick Format』以及『Create DOS Startup Disk』,並在下面空位輸入軟碟機的代號。在此例是A:\



接著按下『Start』,會跳出如下圖選項



程式會警告你,建立開機USB碟會殺掉所以裡面的資料。確認裡面資料都備份過後,請按『Yes』 不要沒確認資料誤殺來找我!



格式化成功後如下



此時USB裡面都是空的,這是正常的,因為重要系統檔案都被隱藏起來。
複製你所需要的檔案至 A:\. 假設我想要Flash Nvidia顯卡的Bios,那當然要把Bios跟刷卡的程式都放進去。如果是想要Flash其他東西,也請把相關程式放進去。







6: 開機
確認USB隨身碟有插在電腦上,進入 BIOS 設定由 USB FLASH KEY 優先開機。

2011-02-20

把老舊的Buffalo WBR2-G54 更新 dd-wrt firmware


======================
Method 1

DD-WRT serial recovery


======================
Method 2

TFTP recovery in Windows
*Untested, credit goes to ermax at D-WRT forum
  1. Get your router's MAC, its the 12 digit default SSID printed on the sticker at the back of the router, starting with 00. Then you'll need to break it down every two digit by inserting : or - between them.
  2. Download the latest official firmware(in case of recovery) from Buffalo's official website. Extract to get the firmware, in my case, its 1.74 and the firmware name is wzrhpg300nh-174, ~20MB.

    Also download the 
    Linksys TFTP utility.
  3. (May not necessary) Do a hard reset or 30/30/30 on the router.
  4. Unplug all the ethernet cable and the power cable and connect the computer directly to the router(still leave it off)
  5. Set the computer's static IP to 192.168.11.2, netmask 255.255.255.0, gateway/DNS 192.168.11.1.
  6. Open a Windows command prompt as Administrator. This is default on Windows XP, under Windows Vista/7, type cmd in the search box from Start menu, then press Ctrl+Shift+Enter. You will be prompted with the User Account Control dialog. 
  7. Type route print to get a list of your NIC(s). Write down the interface number for the LAN card, in my case, it's 12.
  8. Now type the command below to get the ARP binding(thanks ermax at DD-WRT forum):

    netsh interface ipv4 add neighbors 12 192.168.11.1 00-1d-12-34-56-78

    Replacing the number 12 with the interface number and 00-1d-12-34-56-78 with the router's MAC address.
  9. Run Linksys TFTP utility. Put 192.168.11.1 as Server address, Password empty, File is wzrhpg300nh-174 just extractedset retry time to 30.
  10. Click "Upgrade" in the TFTP utility and quickly plug the power back to turn on the router. There might be few failed attempts but the flash process should start later. Wait patiently the router will reboot itself when the upgrade is done. Navigate to http://192.168.11.1(for stock firmware) to configure your router.
TFTP recovery in Linux
*Most of this part is from DD-WRT wiki with some tweak. TEST WORKING

Will use Ubuntu Live CD as an example but other distro should also work. The Ubuntu LiveCD can be booted from a USB flash drive. See here.
  1. Do Step 1-4 in "TFTP recovery in Windows" except we don't need Linksys TFTP utility here. So we have MAC address ready, router unpowered and the computer is directly connected to the router.
  2. After booting into Ubuntu, open a terminal and type:

    sudo apt-get update
    sudo apt-get install tftp-hpa
    sudo /etc/init.d/networking stop
    sudo ifconfig eth0 192.168.11.2
    sudo ifconfig eth0 netmask 255.255.255.0 
    sudo arp -s 192.168.11.1 00:1D:12:34:56:78#change to the folder where you put the firmware image, if it's on desktop then it's
    #"/home/ubuntu/Desktop".
    cd /home/ubuntu/Desktop
    tftp 192.168.11.1
    *from this point, you're under tftp command prompt, the "tftp>" is the prompt tftp gives you, you just need to type the command AFTER that.
    tftp> verbose
    tftp> binary
    tftp> trace
    tftp> rexmt 1 
    tftp> timeout 60 
    tftp> put wzrg300nh-firmware.tftp

    Replace the fictional MAC in red with the router's. All command you need to input is in italic. Also replace wzrg300nh-firmware.tftp with the firmware you need, in case of stock firmware, its wzrhpg300nh-174.Also, at this point, the router is still unpowered and that's OK. Tftp will keep trying to send the firmware to the router and when it fails (because the router isn't yet on or hasn't yet brought up it's tftp interface) it will wait 1 second and retry, up to 60 times as that's how we set up the tftp client.
  3. Now quickly plug the power cord back to the router. The router will start up and you will see some lights blinking (possibly). About 10-20 seconds in, you should notice that tftp is sending the file. instead of the retry message over and over you will see some progress scrolling down the screen and at the end it will tell you how many blocks or bytes were transferred in how many second.
  4. After the transfer is complete, wait about 5-10 minutes the router will reboot itself. When the wireless LED is on you're good to go.
  5. Bring the network back in Linux by typing

    sudo service networking start
======================

Reference 1. : "http://www.dd-wrt.com/wiki/index.php/Recover_from_a_bad_flash"