需求
1. 首先需要有可開機的DOS系統磁碟機,透過USB隨身碟替代
2. 更新BIOS程式:afudos.exe
3. 新版本的BIOS:例如20080101.ROM
步驟
1. 開機按F2,選擇適當的槽開機進入DOS模式
2. 輸入以下指令
afudos /i檔名.附檔名
例如:afudos i20080101.ROM /pbnc
注意:請勿在更新 BIOS 過程關閉或重新啟動系統!此舉將會導致系統毀損!就是最好插電才執行的意思
ref: http://support.asus.com.tw/technicaldocuments/technicaldocuments_content.aspx?no=193&SLanguage=zh-tw
2008年9月21日 星期日
改變Eee PC的快速鍵
因為Eee PC是採用icewm來當作window manager,所以修改的地方是在這個檔案
/etc/X11/icewm/keys
由於我較常用的功能只有這幾個,所以暫時追加這幾個而已,事實上有很多快捷鍵都是不能用的,因為在Eee PC中並沒有安裝這些程式
key "Alt+Ctrl+t" sudo x-terminal-emulator
key "Alt+Ctrl+i" sudo firefox
key "Alt+Ctrl+f" sudo XandrosFileManager --title Payton --maximized
key "Alt+Ctrl+g" sudo gedit
key "Alt+Ctrl+h" sudo halt
更改完成後,利用一個隱藏的快速鍵『Ctrl + Alt + Backspace』來快速重新啟動icewm,以便讓所有的快速鍵生效
同時Alt + F10也是另一個我常用的快速鍵,此鍵可以將視窗放到最大
/etc/X11/icewm/keys
由於我較常用的功能只有這幾個,所以暫時追加這幾個而已,事實上有很多快捷鍵都是不能用的,因為在Eee PC中並沒有安裝這些程式
key "Alt+Ctrl+t" sudo x-terminal-emulator
key "Alt+Ctrl+i" sudo firefox
key "Alt+Ctrl+f" sudo XandrosFileManager --title Payton --maximized
key "Alt+Ctrl+g" sudo gedit
key "Alt+Ctrl+h" sudo halt
更改完成後,利用一個隱藏的快速鍵『Ctrl + Alt + Backspace』來快速重新啟動icewm,以便讓所有的快速鍵生效
同時Alt + F10也是另一個我常用的快速鍵,此鍵可以將視窗放到最大
Hack simpleui.rc in Eee PC
這幾天遇到一些bug,一直在想要找出某一個按鍵對應到哪一支程式,此時常需要用很暴力的方法,就是
1. 按Ctrl + Alt + Del觀察那個是打開的程式
2. 在shell上打top,拖拉視窗,觀察那個是打開的程式
但是這樣對整個系統的瞭解太弱了,所以我做了下面的步驟,來破解一下Eee PC的simpleui.rc
# 1. We open /opt/xandros/share/AsusLauncher/simpleui.rc
# 2. This is head of simple ui
# 3. Define the background of simple ui
# 4. This is top tabs, we called simplecat (It may be abbreviated from "Simple categories")
# It also define a lot of languages
Internet
Internet
...
# 5. Folder definition. Ex. Science folder in Learn category
Science
Ciências
...
# 6. This is the mapping between applications and icons. (parcel stand for ??)
# This icon is in the Internet/WebMail and execute /opt/xandros/bin/p701-gmail.sh
Gmail
Gmail
...
# 7. This is messenger, but what is pidgin.desktop?
Messenger
Mensageiro Instantâneo
...
# 8. We found the shortcut place by tracing many shortcut tags
# Here store lot of shortcuts
/usr/share/applications/
# 9. pidgin.desktop has detail application information. When we execute pidgin, it will launch application "pidgin" directly.
# cat /usr/share/applications/pidgin.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Pidgin Instant Messenger
GenericName=Instant Messenger
Comment=Send instant messages over multiple protocols
Comment[af]=Stuur kitsboodskappe oor veelvoudige protokolle
...
Comment[zh_TW]=透過多種通訊協定發送即時訊息
Exec=pidgin
Icon=pidgin
StartupNotify=true
Terminal=false
Type=Application
Categories=Network;InstantMessaging;
# 10. This is different from others? We can't find this shortcut?
Documents
Documentos
...
# 11. We found the secrets in simpleui.rc, There are many same "documents_hi.png" in it.
# That also means the old shortcut still in here, but only correct one will be executed.
asus-1559960460:/opt/xandros/share/AsusLauncher> grep 'documents_hi' ./simpleui.rc
777:
1366:
3453:
3832:
4003:
# 12. Let's hack simpleui.rc
# First of all, we write a hello world in /root
asus-1559960460:/root> cat ./hello.sh
#!/bin/sh
echo "Hello World!!"
asus-1559960460:/root>
# 13. We add the following code in /opt/xandros/share/AsusLauncher/simpleui.rc
# It will create a top tab, a folder, and a button
Hack Me
Hack Me Folder
Hello
# 14. Restart AsusLauncher, but nothing happened!! What's wrong!!
>ps aux | grep Asus
104:root 10165 28.0 0.7 26156 15424 pts/2 S 17:30 0:01 /opt/xandros/bin/AsusLauncher
110:root 10230 0.0 0.0 2852 712 pts/2 S+ 17:30 0:00 grep --color -n Asus
> kill 10165
> /opt/xandros/bin/AsusLauncher &
# 15. Find where is simpleui.rc in AsusLauncher by "strings"
# Ok, we find the clue in /var/lib/Asuslauncher/simpleui.rc
asus-1559960460:/opt/xandros/bin> strings AsusLauncher | grep simple
947:%1/simpleui.rc
961:simplecat
980:/var/lib/AsusLauncher/simpleui.rc
981:Failed to load customized simpleui.rc.
982:Failed to open customized simpleui.rc.
983:Failed to load system simpleui.rc.
984:Failed to open system simpleui.rc.
# 16. Remodified /var/lib/Asuslauncher/simpleui.rc again
# OK, succeess!
As figure


Notations:
1. The all desktop figures are in /opt/xandros/share/AsusLauncher/
2. But the real simpleui.rc is in /var/lib/Asuslauncher/simpleui.rc
1. 按Ctrl + Alt + Del觀察那個是打開的程式
2. 在shell上打top,拖拉視窗,觀察那個是打開的程式
但是這樣對整個系統的瞭解太弱了,所以我做了下面的步驟,來破解一下Eee PC的simpleui.rc
# 1. We open /opt/xandros/share/AsusLauncher/simpleui.rc
# 2. This is head of simple ui
# 3. Define the background of simple ui
# 4. This is top tabs, we called simplecat (It may be abbreviated from "Simple categories")
# It also define a lot of languages
...
# 5. Folder definition. Ex. Science folder in Learn category
...
# 6. This is the mapping between applications and icons. (parcel stand for ??)
# This icon is in the Internet/WebMail and execute /opt/xandros/bin/p701-gmail.sh
...
# 7. This is messenger, but what is pidgin.desktop?
...
# 8. We found the shortcut place by tracing many shortcut tags
# Here store lot of shortcuts
/usr/share/applications/
# 9. pidgin.desktop has detail application information. When we execute pidgin, it will launch application "pidgin" directly.
# cat /usr/share/applications/pidgin.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Pidgin Instant Messenger
GenericName=Instant Messenger
Comment=Send instant messages over multiple protocols
Comment[af]=Stuur kitsboodskappe oor veelvoudige protokolle
...
Comment[zh_TW]=透過多種通訊協定發送即時訊息
Exec=pidgin
Icon=pidgin
StartupNotify=true
Terminal=false
Type=Application
Categories=Network;InstantMessaging;
# 10. This is different from others? We can't find this shortcut?
...
# 11. We found the secrets in simpleui.rc, There are many same "documents_hi.png" in it.
# That also means the old shortcut still in here, but only correct one will be executed.
asus-1559960460:/opt/xandros/share/AsusLauncher> grep 'documents_hi' ./simpleui.rc
777:
1366:
3453:
3832:
4003:
# 12. Let's hack simpleui.rc
# First of all, we write a hello world in /root
asus-1559960460:/root> cat ./hello.sh
#!/bin/sh
echo "Hello World!!"
asus-1559960460:/root>
# 13. We add the following code in /opt/xandros/share/AsusLauncher/simpleui.rc
# It will create a top tab, a folder, and a button
# 14. Restart AsusLauncher, but nothing happened!! What's wrong!!
>ps aux | grep Asus
104:root 10165 28.0 0.7 26156 15424 pts/2 S 17:30 0:01 /opt/xandros/bin/AsusLauncher
110:root 10230 0.0 0.0 2852 712 pts/2 S+ 17:30 0:00 grep --color -n Asus
> kill 10165
> /opt/xandros/bin/AsusLauncher &
# 15. Find where is simpleui.rc in AsusLauncher by "strings"
# Ok, we find the clue in /var/lib/Asuslauncher/simpleui.rc
asus-1559960460:/opt/xandros/bin> strings AsusLauncher | grep simple
947:%1/simpleui.rc
961:simplecat
980:/var/lib/AsusLauncher/simpleui.rc
981:Failed to load customized simpleui.rc.
982:Failed to open customized simpleui.rc.
983:Failed to load system simpleui.rc.
984:Failed to open system simpleui.rc.
# 16. Remodified /var/lib/Asuslauncher/simpleui.rc again
# OK, succeess!
As figure


1. The all desktop figures are in /opt/xandros/share/AsusLauncher/
2. But the real simpleui.rc is in /var/lib/Asuslauncher/simpleui.rc
2008年9月16日 星期二
2008年9月14日 星期日
Eee PC with touch screen and GPS inside
不久前,曾想想Eee PC如果有touch screen以及GPS inside的話,將可能會有哪些應用,以下是我的一些觀察。
Eee PC with touch screen and GPS inside
1.For GPS
a.Mobile GPS for everyone in city jungle (First one)
b.Stationary GPS for car ( ex. Mio, Garmin)
( 但是大小偏大,還有天線問題,不過可參考大尺寸汽車衛星導航商品 Mio C728 http://shopping.pchome.com.tw/?mod=item&func=exhibit&IT_NO=AEAC0P-A17909569&SR_NO=CGAD0G&ROWNO=5)
2.For Multimedia
a.Portable Digital TV ( ex. 飛來訊)
b.Media player ( ex. WorldRadio, iriver )
c.數位相框 ( ex. Viewsonic)
d.Portable DVD player ( ex. Sony, LG)
3.For Mobile NB
a.Skype everywhere ( First one)
b.Browse everywhere ( Better than HTC, iphone)
c.Remote control the E-family Eee Monitor (First one)
4.For Learn and Game
a.Interactive gamer ( ex. PSP, NDSL)
b.Portable library ( ex. 無敵CD, 哈電族 )
c.電子書閱覽器 ( ex. Amazon Kindle)
Conclusion:
Each application should have really easy BIG TOUCH BUTTON to replace keyboard.
( I'm really excited with 1.a. :) )
Eee PC with touch screen and GPS inside
1.For GPS
a.Mobile GPS for everyone in city jungle (First one)
b.Stationary GPS for car ( ex. Mio, Garmin)
( 但是大小偏大,還有天線問題,不過可參考大尺寸汽車衛星導航商品 Mio C728 http://shopping.pchome.com.tw/?mod=item&func=exhibit&IT_NO=AEAC0P-A17909569&SR_NO=CGAD0G&ROWNO=5)
2.For Multimedia
a.Portable Digital TV ( ex. 飛來訊)
b.Media player ( ex. WorldRadio, iriver )
c.數位相框 ( ex. Viewsonic)
d.Portable DVD player ( ex. Sony, LG)
3.For Mobile NB
a.Skype everywhere ( First one)
b.Browse everywhere ( Better than HTC, iphone)
c.Remote control the E-family Eee Monitor (First one)
4.For Learn and Game
a.Interactive gamer ( ex. PSP, NDSL)
b.Portable library ( ex. 無敵CD, 哈電族 )
c.電子書閱覽器 ( ex. Amazon Kindle)
Conclusion:
Each application should have really easy BIG TOUCH BUTTON to replace keyboard.
( I'm really excited with 1.a. :) )
訂閱:
文章 (Atom)