2012年10月25日 星期四

安裝 Edimax EW-7711UMn 於 CentOS

我的CentOS不支援當初為壹網樂買的USB無線網卡
自己裝的方式如下:

1. 從原廠下載Linux driver source (2.0.1.0版)

點   這裡
(會跳出網頁請你留下email,可填不填,之後按Download即可)

2. 解開來 

unzip RT3070_Linux_STA_v2.0.1.0.tar.zip
tar xvf RT3070_Linux_STA_v2.0.1.0.tar

3. 進目錄編driver

cd ./2008_1225_RT3070_Linux_STA_v2.0.1.0
make

注意: 編譯會有些warning,可忽略。可是編譯成功後用make install安裝卻因為有檔案找不到而失敗。

4. 自行猜測修正安裝問題

Makefile裡install指定的檔案就是缺了,看來是RT3070STA.dat不見了,我猜driver會放同一包的應該都相容,從目錄下找同類型檔案來冒充。

cp ./RT2870STA.dat ./RT3070STA.dat

此時再安裝一次就可以了

make install

5. 確認CentOS認識網卡而且可使用了

iwconfig

看最下方那段

ra0     RT2870 Wireless  ESSID:""
          Mode:Auto  Frequency=2.412 GHz
          Link Quality=10/100  Signal level:-256 dBm  Noise level:-143 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


介面出現了,信號也讀出來了,完成 !

2012年10月23日 星期二

全新AirPort Express撥放音樂 選項不見了

買了台 "全新AirPort Express" 光纖出力接家用音響
部分實現手持裝置 無線音樂撥放 的想法 (只有apple可用...)

家裡原本就有無線網路  iPad 播音樂也要上網才能用 KKBOX 找歌
所以讓 AirPort Express 加入原有無線網路
(應該是一般無線路由器的 repeater 模式吧)

將無線網路密碼設定好  等幾分鐘讓 AirPort 搞定自己再回神

iPad撥放程式馬上跳出新選項
點選 AirPort Express 上設定的名稱後
稍等兩、三秒音樂就用力的放出來了

爽 !   聲音比先前用藍芽好一百倍 !!!


可是  把 AirPort Express 拔電重開後
iPad 上再也沒跳出那個可愛的選項

推測 iPad 應該是自動改連到原有無線路由器上
靜靜等一下讓兩台路由器自己去喬喬

十幾分鐘過了  iPad 上依然毫無動靜
換 iPhone 看看  沒有~
換 iPod Touch 試  沒有~
開電腦上的 iTunes 確認  真的沒有~~


基於對 AirPlay 的一點概念 
猜是 Bonjour 被卡住了

把原來那部無線路由器也重開  

Bingo~ 出現了


重覆玩幾次狀況都一樣.....


解法:

把當作主要基地台的那台換掉就好了
喜新厭舊 !  只見新人笑 !  不見舊人哭 !?


沒辦法  因為 AirPort Express 會放音樂給我聽...





2012年10月22日 星期一

硬碟版遊戲出現 xinput1_3.dll , vcomp100.dll 錯誤

幫人解決硬碟版遊戲無法啟動的問題,紀錄資訊讓需要的朋友查詢。
(玩"硬碟版"的遊戲電腦有被植入木馬的風險,真的很不建議)

出現找不到 xinput1_3.dll :
參考來源  (How To Fix Xinput1_3.dll Not Found or Missing Errors)

xinput1_3.dll 是 DirectX 套件內的檔案,這問題通常是 DirectX 未安裝或版本過舊,直接更新DirectX 套件即可! 按 這裡

我下載的安裝檔名為 dxwebsetup.exe,直接執行,同意微軟的授權規定後就能安裝完成,沒有難度。電腦無需重開就直接套用了。

注意: 如果你從搜尋引擎找 xinput1_3.dll 應該會很興奮排名前面的網站都提供了解法。其實這些多是圖謀不軌的網站 ! 假好心提供如 XINPUT1_3.DLL Fixer 等,檔名看起來像救世主般的程式引誘你下載安裝。這些程式或許幫你解決了問題,但它們多半還會順便安裝一些tracker(紀錄上網行為)甚至偷偷的綁架你的電腦。強烈建議不要從其他網站上下載這類DLL檔案!!!


出現找不到 vcomp100.dll :
參考來源   (http://wiki.dolphin-emulator.com/index.php?title=FAQ)

vcomp100.dll 找不到的原因稍複雜,但也不難。除了 DirectX 套件要更新,還得安裝 Visual C++ 2010 Redistributable Package (VC++ 2010可轉散發套件,注意是2010版)。DirectX 我們前面處理過了,繼續裝 VC++ 2010 套件即可。

注意 ! 這套件很奇妙,電腦明明是跑 64bit 版的 Windows 7 ,可是 VC++ 2010 套件卻是要將 x86 及 x64 版都安裝了才有用 !!!

VC++ 2010 Redistributable Package : 32 bit / 64 bit

我下載的安裝檔名為 vredist_x86.exe (32bit) 及 vredist_x64.exe (64bit),一樣是同意授權規定後下一步就能安裝完成。電腦一樣無需重新開機就套用了。

希望能幫上忙~


2012年8月27日 星期一

手機聽音樂....

使用智慧手機好幾年了 

搭高鐵時常插上耳機聽聽MP3或KKBOX輕鬆一下
(其實常常是想阻隔小孩哭鬧聲造成的情緒壓力)
(那些父母是怎麼了 不覺放任孩子一路吵鬧也是侵犯他人的不禮貌行為嗎?)

買了幾副中階耳機
(推薦Yamaha EPH-100 --> 水準OK、價格合宜、聲音中性)

意外讓我重拾以前玩HiFi時全身起雞皮疙瘩的感動


可是這感動 每每回到家後就熄了火


原本手上把玩的音源現在必須插3.5mm線轉接到擴大機

癱在沙發上享受音樂卻得常常起身走到機器前選歌調大小聲

科技感蕩然無存  更壞了享受音樂的興致

我需要一個產品

一台價格親民 聲音中等 卻能輕易讓智慧手機成為無線手持撥放器的設備

我知道airplay compatible,可是我想接自己的音響系統聽

勉強用notebook灌shairport4w再光纖接入原本CD用的DAC

五分鐘不到就斷線了... 重開又斷... 殘念!!!

// 題外話   我發現Sony Ericssion類比輸出當音源細節比iPhone4還多
// (無線沒得比,因為Android不玩airplay)
// 或許因為iPhone類比太小聲  細節在放大的過程中被損失掉了


 我試過那種帶3.5mm輸出必須外接耳機的藍芽無線裝置

聲音真的令人無法忍受 粗糙 毫無細節 寧願不聽 零分
(CD音質立體聲要1.411Mbps頻寬,目前藍芽音訊裝置顯然低於這個)

BOSE當然不錯 可是我買來放房間用 不想再買大的放客廳

而且他的遙控功能KKOBX不是很買帳

到日本首次接觸到音響等級的Network Audio Player簡直驚為天人

聽完後當場到結帳台買單卻發現護照沒帶 不能tax free
只好第二天再來

回飯店上網查了一下卻發現更殘酷的事實:

* Marantz NA7004限時免費升級airplay的韌體僅限日本(註冊後寄送信件)
* 台灣Marantz的付費升級聯結點進去卻變成韓文(very unsong)
甚麼都好  就這點無解 非常不順心
我買東西就是要自己爽 這下買不成了~

店裡其他選擇如Pioneer N-50 聲音太亮太前進 勉強接受
網路上評價雖好卻都是談N-50 "Elite"
第三天到店裡 日本人完全不知道有什麼Elite機種
更因為這樣他們怕我以後找他們盧所以建議我回台灣買當地版本
(日本當地的機器少有國際電壓切換功能  音響當然不用switching power)
(我覺得更奇怪的是  以前日本售貨員不會這樣建議的  作罷)

店裡最划算的Denon DNP-702SE不但支援airplay還內建無線網卡
可是這機器外觀質感超差  天線醜過TP-Link  聲音我難以接受
很明顯是用一台embedded平台去兜的
這種事應該是台廠或大陸廠商幹的 怎麼會是Denon這有點形象的公司

是的 我的要求很龜毛

可是這種東西不難搞吧 為甚麼找不到跟我配對的呢?

莫非是老天要我自己想辦法做台來賣?

或許 我會先去COSTCO買那台新的B&W Zeppelin Air來聽

只是這樣不夠完美 因為只有Apple可以無線...




2012年8月22日 星期三

foobar2000轉mp3 (找不到lame.exe?)

應該有人跟我遇到一樣的情況,解決歷程記下來提供參考:

想用foobar2000將flac檔切割轉成mp3格式
點選到最後一步foobar竟然問我電腦上的lame.exe存在哪裡
找到lame的源頭 http://lame.sourceforge.net/
它說 LAME is only distribued in source code form
(LAME只以原始碼方式提供)


專案下載頁提供了一些使用lame的免費及商用軟體連結
下載了幾個解開都沒有我要的lame.exe(多半是.dll給自己主程式用的)

重新搜尋google後又找到個佛心大哥編了很多binary可下載


32bit Windows 下載這個
http://www.rarewares.org/files/mp3/lame3.99.5.zip

64bit Windows 下載這個
http://www.rarewares.org/files/mp3/lame3.99.5-64.zip

解開來bingo! 裡面的確有lame.exe 
(lame_enc.dll及一堆html檔請忽略)

把lame.exe這檔案單獨解到你喜歡的目錄裡
我是為了foobar2000轉檔用的所以就放在foobar目錄下

完成後把轉檔的流程重新點一次

問lame.exe時選到foobar目錄下按下一步

320Kbps的mp3就這樣出來了

再見~

2012年5月4日 星期五

USB網卡(AX88772a)CentOS 5.5不支援 驅動程式source code又compile失敗 - ELRepo佛心套件

USB有線網卡插到CentOS 5.5 server無法驅動
原廠光碟裡的driver都是要自己編譯的source code
readme說得很簡單: make, make install 就好
其實不然... 
make執行下去,先要kernel source、又要gcc、又缺Library.....
功力不好肯定走不到make install這一步

想偷個懶上網找人家編好的driver沒下落
卻意外發現ELRepo這個好東西,真是懶人的救星!
官方網址  http://elrepo.org
它是為RedHat Enterprise及衍生系統設計的好東東
ELRepo supports Red Hat Enterprise Linux (RHEL) and its derivatives (Scientific Linux, CentOS & others)

強烈建議常亂加硬體的人要裝這套!!!

安裝方式非常簡單,先這樣:

如果是 RHEL-5, SL-5 or CentOS-5,下這行:

如果是 RHEL-6, SL-6 or CentOS-6,用這行:

這麼簡單一套懶人神器就安裝完成了~

接下來,依照你的硬體加裝driver
我的是AX88772網卡,來自ASIX公司,用這行:
yum install kmod-asix

ELRepo佛心好物就幫我把driver裝好了
網卡插上USB埠試看看,上工!  bravo!!!
 
( 不知道裝哪隻的話 這裡查 http://elrepo.org/tiki/Packages )


由衷感謝開發這套系統的大哥大姐們~
誠如其slogan所說:

"For the community, by the community."





2012年4月29日 星期日

無法開啟 新增印表機 列印多工緩衝處理器未開啟

VISTA下無法列印 以為沒有安裝印表機

開啟控制台新增印表機後,跳出現下列訊息

(Windows無法開啟 [新增印表機],本機列印多工緩衝處理器服務未執行,請重新啟動多工緩衝處理器,或重新開機)



原因就是Windows系統中負責處理列印工作的服務被關閉



解決方法如下~

步驟一: 檔案總管中,在"電腦"上按右鍵選取"管理"





步驟二: 在"管理"視窗左邊列表中,選取 "服務" (services)。右邊視窗內就是本機的所有服務,往下選到Print Spooler,此時它的狀態空白,啟動類型是"手動",難怪不能使用印表機!





步驟三: 在Print Spooler上點兩下出現下列視窗。點一下"啟動"按鈕即可啟動此服務。這台電腦不知何因竟然把列印功能必備的服務關掉了! 順便將它改成"自動"以確保Windows重新啟動後列印功能可以正常運作。





完成!









2012年4月28日 星期六

為什麼我的JAPAN LIFE遊戲找不到加朋友按鈕

如果你也是個玩遊戲都不看說明 也懶得執行任務的人
玩到JAPAN LIFE這個iPAD遊戲時 就可能遇到一樣的問題

玩沒兩天發現好多商店及設施都不能建 說是要有neighbor(中文版好像叫好友)...
想說沒看到哪裡有neighbor的按鈕
應該繼續玩升個兩、三級後自己會出現吧!

就這樣繼續亂玩幾天
還是沒消息  忍不住上網查

這才發現這遊戲叫和風物語  已經流行好幾個月了~
還有一大堆人在邀朋友 (英文版叫neighbor)

恍然大悟 原來neighbor要靠自己努力找 手動加

滿心歡喜抄了幾個ID回到遊戲裡 卻遍找不到可以加好友的按鈕



再次搜尋google卻沒看到相關討論
剛好工作也忙  就這樣再拖了幾天

今天   我終於搞懂了!!!

原來遊戲的設計是要玩家一步步跟著monggi學習
跟著導覽做些簡單任務後好像會走到加好友這關
自己沒理會熱心的monggi   他當然幫不上忙...

所以
如果你跟我一樣已經先蓋了一大堆房子才發現這點

直接進去設定把導覽功能"跳過"就好了
我的是英文版 所以是 "Skip tutorial"這個
點選後繼續按確定 這個按鈕就出現了!

最後 如果你也在找好友
我的ID:   4joal


老實說 我原先以為它是單機版遊戲.....



2012年4月13日 星期五

Tagging / Untagging VLAN ID with Linux

Here's the note of my VLAN ID tagging / untagging experiment on CentOS 5.5.

Add VLAN tag on packets from LAN port 1 with ID 1000 and LAN port 2 with ID 2000. Forward both to LAN port 3 and remove VLAN tags in the reverse direction. To do this, we need 8021q kernel module and bridge controller "brctl". Here's the command to make it work:

Three interfaces on my PC:
LAN port 1 = eth0
LAN port 2 = eth1
LAN port 3 = eth2


First bring up all the base interfaces:
   ifconfig eth0 0.0.0.0 up
   ifconfig eth1 0.0.0.0 up
   ifconfig eth2 0.0.0.0 up

Create VLAN interfaces and bring them up:
   vconfig add eth0 1000
   ifconfig eth0.1000 0.0.0.0 up
   vconfig add eth1 2000
   ifconfig eth1.2000 0.0.0.0 up

Prepare (create) bridges:
   brctl addbr bridge1000
   brctl addbr bridge2000

Bridge eth0.1000 to LAN port 3 (eth2):
   brctl addif bridge1000 eth0.1000
   brctl addif bridge1000 eth2
   ifconfig bridge1000 up

Bridge eth1.2000 to LAN port 3 (eth2):
   brctl addif bridge2000 eth1.2000
   brctl addif bridge2000 eth2
   ifconfig bridge2000 up

~Done!


note 1: I once had troubles to make it work. reason is that bridge needs to be activated manually.

note 2: saw such info somewhere, "8021q kernel module is enabled by default only in Kernel 2.6". with Kernel 2.4 you need to insert the module manually (insmod 8021q). if you don't find the module in system, install it with yum. try keyword 8021q or vlan.

note 3: interfaces in a bridge seems lose their layer3 functions. for example, I lost access to IP address of eth2 after "ifconfig bridge2000 up". guess that's because all packets (in fact Ethernet frames) to eth2 forwarded to eth0.2000 before going up to IP layer.   

2012年4月3日 星期二

How to block Microsoft Live Messenger Ads

I agree this is a fair deal that I use Live Messenger for free while Microsoft pushing Ads at the bottom to make some money.

Some time ago the Ads became unbearable. A big window pop up right in the middle of desktop whenever my cursor walk over the minimized Ad. This drove me crazy and I decided to block the Ads with no mercy...

Again, google helps in almost all cases. I found there are at least 3 ways to deal with the Ads.
1. install MSN Shell
2. block the site rad.msn.com by adding it in IE options
3. blind messenger by redirecting rad.msn.com to itself (loopback)

I don't like 3rd party shell since they are too powerful to win my trust. I don't like IE to get involved because it get hi-jacked by ad sites easily. Option 3 is no doubt the best solution because it's risk free. I gave it a try and it work out so great. Here's the steps to carry it out:

step 1. edit the file c:\windows\system32\drivers\etc\hosts, add a line "127.0.0.1 rad.msn.com" at the bottom. (example from Windows 7)

   # Copyright (c) 1993-2009 Microsoft Corp.
   #
   # This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
   #
   # This file contains the mappings of IP addresses to host names. Each
   # entry should be kept on an individual line. The IP address should
   # be placed in the first column followed by the corresponding host name.
   # The IP address and the host name should be separated by at least one
   # space.
   #
   # Additionally, comments (such as these) may be inserted on individual
   # lines or following the machine name denoted by a '#' symbol.
   #
   # For example:
   #
   #      102.54.94.97     rhino.acme.com          # source server
   #       38.25.63.10     x.acme.com              # x client host
   # localhost name resolution is handled within DNS itself.
   #    127.0.0.1       localhost
   #    ::1             localhost

   127.0.0.1    rad.msn.com

step 2. save the file to your desktop (it's a system file so I save it to desktop temporarily)

step 3. move the saved file back to its origin. my case, cut the file "c:\users\jason\desktop\hosts" and paste it in folder "c:\windows\system32\drivers\etc". you need to authorize the request to overwrite because you're accessing a system file.

step 4. execute the command in DOS Shell "ipconfig /flushdns" to activate the trick

step 5. re-login restart your Messenger and you should fine Ads no longer show


Hope this work for you also.



cheers!

2012年4月2日 星期一

Why is my hard drive so busy (process hacker)

Ever wonder why your hard drive is always busy reading or writing something that slow down your Windows dramatically even you're doing nothing? I do, and it bothers me all the time because my Windows VISTA running on a E8200, 4G memory hardware is always writing something I don't know making endless clicking sound even after screen saver activated.

An always busy hard drives is really annoying. It can be a windows service, a virus, or in most cases the windows memory swapping who make your hard drive busy. Anyway, it's always good to know who's making it busy. Isn't it?

A quick search led me to a Taiwanese blog (http://twchuck.blogspot.com/2010/11/blog-post_19.html) which talking about the same thing (busy hard drive) and introduces a nice tool call "process hacker" (from sourceforge). I had it working on my computer in 3 minutes and the result came out so great!


Download the great tool from sourceforget here:
Process Hacker

No installation required. Just extract the folder you need to a place where files can be excuted (x64 folder for 64bit Windows, x86 for non-64bits, choose one that fits your Windows) and run "ProcessHacker.exe". This program will analyze and show you lots of useful information. Down below is a snapshop of my Windows VISTA. The task with highest "I/O Total" should be the one who bother your hard drive most. Ignore the process who bursts up and go down in 1 second. The ones who keep high I/O for at least 5 seconds are the real bad guys.

You can right click on the process you don't like to "terminate" it or even "terminate tree" to kill related processes at once. I made this post to help you find clues to an annoying symptom, not to ruin your unsaved work so be sure that you know what you're doing. Killing something you don't know may cause system unstable!

Cheers!

(ignore those Chinese characters since I have no way to change them to English in a Chinese Windows)