WordPress Wii Edition Plugin (WiiPress v1.3)
WordPress Wii Edition Plugin (WiiPress v1.3)
About the Wordpress Wii Edition Plugin v1.3
The WordPress Wii Edition Plugin is a plugin that automatically renders an optimized version of your blog when visitors come to your blog on a Nintendo Wii running the Opera browser. Wii’s are automatically detected, there is no configuration needed. The theme used by the plugin is based on the colours of the Wii interface and uses the “Wii” font at sizes that provide for easy reading on TV screens. This plugin was inspired by Alex King’s Mobile Plugin.
嗯,先裝起來了,等晚上回家再來用 Wii 的 Opera 連上來看看…:p
使用 Apple AirPort Express AP 透過 Radius Server 來做認証
使用 Apple AirPort Express AP 透過 Radius Server 來做認証
Case 1:
第一種是在 “連線權限控制” 的地方,除了可以自行輸入 MAC Address 來限制外,還可以使用 RADIUS Server,把 MAC Address 的清單放到 RADIUS 中
使用 RADIUS Server 的好處是,可以隨時增減 MAC Address 的紀錄,AirPort Express 不需要重開機
但若是用 AirPort 管理工具程式來設定,則每增減一個 MAC Address 時 AirPort Express 都要 Reboot,這樣無線網路就會暫時中斷,很不方便
AirPort Express 的設定:
只要填上 RADIUS Server 的 IP、Port 及 Secret Key 即可
Radius Server 的設定:
以 FC6 為例,用 yum 把 freeradius 及 freeradius-mysql 給裝起來 (我把資料放 MySQL 中)
$ yum install freeradius freeradius-mysql
再來是修改 FreeRadius 的主要設定檔
1./etc/raddb/radiusd.conf
我有改的部份:
hostname_lookups = yes
log_auth = yes
log_auth_badpass = yes
log_auth_goodpass = yes
# 要使用 MySQL,所以跟 sql 相關的都要打開 (把前面的 # 拿掉)
modules {
$INCLUDE ${confdir}/sql.conf
}
authorize {
sql
}
accounting {
sql
}
session {
sql
}
post-auth {
sql
}
2./etc/raddb/clients.conf
我的內部網段是 10.10.10.x 所以加一筆:
client 10.10.10.0/24 {
secret = mysecret
shortname = LAN
}
3./etc/raddb/users
若要使用 file 認証,在 “#John Doe” 附近的下面加上:
"test" Auth-Type := Local, User-Password == "testpassword"
Reply-Message = "Hello, %u"
再把底下兩行註解起來:
#DEFAULT Auth-Type = System
# Fall-Through = 1
4./etc/raddb/sql.conf (使用 MySQL 認証)
主要是把連接 MySQL 的 Server、帳號及密碼指定好:
server = "localhost" login = "root" password = "rootpass"
設定好後,重新啟動 radiusd 即可:
$ /etc/init.d/radiusd restart
MySQL Server 的設定:
1.建立 radius 資料庫及匯入 schema
$ echo "CREATE DATABASE radius" | mysql $ mysql radius < /usr/share/doc/freeradius-1.1.3/examples/mysql.sql
2.建立群組資料
$ mysql
mysql> insert into radgroupreply (groupname,attribute,op,value) values ('user','Auth-Type',':=','Local');
mysql> insert into radgroupreply (groupname,attribute,op,value) values ('user','Service-Type',':=','Framed-User');
mysql> insert into radgroupreply (groupname,attribute,op,value) values ('user','Framed-IP-Address',':=','255.255.255.254');
mysql> insert into radgroupreply (groupname,attribute,op,value) values ('user','Framed-IP-Netmask',':=','255.255.255.0');
3.建立帳號
以 Client 無線網卡的 MAC Address 當帳號:
mysql> insert into radcheck (username,attribute,op,value) values ('001124-112233','User-Password',':=','mypassword');
4.將帳號加入群組
mysql> insert into usergroup (username,groupname) values (’001124-112233′,’user’);
要再新增帳號,就重覆 3. 4. 的步驟即可
5.測試
$ radtest 001124-112233 mypassword 10.10.10.251 0 mysecret
Sending Access-Request of id 69 to 10.10.10.251 port 1812
User-Name = "001123-112233"
User-Password = "mypassword"
NAS-IP-Address = 255.255.255.255
NAS-Port = 0
rad_recv: Access-Accept packet from host 10.10.10.251:1812, id=69, length=20
Service-Type = Framed-User
Framed-IP-Address = 255.255.255.254
Framed-IP-Netmask = 255.255.255.0
查看 /var/log/radius/radius.log,若成功的話,會有類似底下的訊息:
Thu Jan 11 13:33:29 2007 : Info: rlm_sql_mysql: Starting connect to MySQL server for #0 Thu Jan 11 13:33:29 2007 : Auth: Login OK: [001124-112233/mypassword] (from client LAN port 0)
Client (PC) 的設定:
不需要做任何設定,只要知道無線網卡的 MAC Address 有被建在 RADIUS 的資料庫中即可
除了這種方式外,另外也可以使用 WPA/WPA2 企業級的認証方式 (下次再介紹)
玩 Wii 的一些心得
先小抱怨一下
為了玩 VC 的 Game (N64 Mario Kart),昨天只好先去萬年的印第安買了 Classic 手把 (499)
日幣 1800 換算約 488,所以是可以接受了,其他家有的賣到 600-800 不等,坑人啊
小報怨一下,原來花了 1600 可以買到 Classic 手把還附 5000 點…XD
但我已經用信用卡刷了 3000 點+花 499 買了 Classic 手把
換算一下
5000點=NT$1101 (1600-499手把錢)
1000點=NT$220
3000點=NT$824
1000點=NT$274
所以小賠了(買太早…XD)
再來抱怨一下華科的 PSA PT-168 電視盒
買來接色差,想要有更好一點的畫質
結果, PSA PT-168 一拿回家,接下電源,沒過電,買到瑕疵品,只好再拿回去換…Orz
第二台當場試,沒問題才拿回家,現在玩了幾天,又發現似乎又拿到瑕疵品了
華科,你嘛幫幫忙,問題這麼多…
因為那台沒 Audio 梅花端子輸入,只有 3.5mm 立體聲輸入,我買了好幾個轉接頭,結果都不能用
怎麼試都覺得是那台電視盒的問題 (直接接擴大機是 OK 的)
後來,只好 Video 用色差接,Audio 接到 AV 轉 S 端子的地方
結果竟然有聲音,就加減用吧
好了,回到正題
我還是幾乎停留在玩 Wii Play (第一次接觸) 的階段
因為我比較喜歡玩這些小遊戲
目前的紀錄:
射擊 439 銀
尋找 Mii 44 銀
桌球 100 金
Mii擺動作 219 銅
桌上曲棍球 10 金
撞球 48 銀
釣魚 1790 銀
騎牛衝刺 200 銅
坦克大戰 17 銅






