2014年7月14日 星期一

Android連結WiFi

1. wpa_supplicant -Dwext -iwlan0 -C/data/system/wpa_supplicant
    -c/data/misc/wifi/wpa_supplicant.conf
2. wpa_cli -p/data/system/wap_supplicant -iwlan0
    使用下面command設置WiFi
    scan
    scan_results
    add_network
    set_network <network id> <variable> <value>
    enable_network <network id>
    disable_network <network id>

Android查看service狀態



getprop|grep xxx.svc

修改Ubuntu host name

1. 查看hostname
#hostname
2. 更改hostname
#hostname xxxx
3. 更改hosts
#vi /etc/hosts
127.0.0.1       localhost
127.0.1.1       xxxx

2014年7月9日 星期三

Ubuntu使用USB轉RS232裝置

常見的USB轉RS232是PL2303
1. sudo modprobe pl2303
2. 將在/dev底下看到ttyUSBX

2014年5月30日 星期五

menuconfig出現Preparing scripts: functions Your lxdialog utility does not exist錯誤





 氣死了啦!!!
把source code放到另一個環境compiler,
打menuconfig竟然給我出現下面的錯誤 ><
Preparing scripts: functionsYour lxdialog utility does not exist
make: *** [menuconfig] Error 1

在google又搜不到,而且其他環境又沒問題~~~

突然想到,會不會是這個環境的file system問題,導致檔案不全或格式有問題。
果然,這環境竟然給我用NTFS,雖然是想相容windows啦,可是也造成問題了啦!!!
改為ext4,沒問題了,Lucky ^^

2014年5月26日 星期一

WinCE,不用hive-based,如何儲存registry

參考Registry OS Functions
http://msdn.microsoft.com/en-us/library/ms891458.aspx

可以用RegCopyFile
This function saves a copy of the current Windows CE RAM–based registry to a specified file.

以及RegRestoreFile
This function places the operating system in a state in which the registry can be replaced by the supplied file on a warm boot.

Xubuntu以Fcitx取代Ubuntu

因為Xubuntu使用的ibus,是用垂直的選字視窗,
可是如果輸入視窗的位置在下面時,根本就看不到選字視窗 ><
將ibus修改為水平視窗顯示,又沒作用,一樣是垂直的。
另外也不能讓輸入法預設是英文,每次都要由中文切換回英文><
所以改用fcitx

sudo add-apt-repository ppa:fcitx-team/nightly
sudo apt-get update

sudo apt-get install fcitx
sudo apt-get install fcitx-chewing(安裝酷音輸入法)

將預設輸入法設為fcitx