Google
 

星期三, 3月 05, 2014

Oracle 設定Client Info


begin
dbms_application_info.set_client_info(3);
end;


星期五, 2月 28, 2014

228紀念日之旅

在228紀念日,天氣正好,本是該出門一遊的日子。選定了六福村為今日的行程,出門查了下國道路況,結果國道1號及國道3號在特定的區段都是塞車的狀態。特定繞道從西濱走台66線至中豐路前往關西。結果卡在車陣當中,長十多公里。最後只好放棄,停在路邊到麥當勞吃速食。用完午餐後,往北走至桃園市的虎頭山公園玩。






星期六, 2月 22, 2014

在Linux平台上用Stackedit來編輯Blog

第一篇用Stackedit編寫的Blog文章。

Written with StackEdit.

碧山嚴漫步

過年後的假日不是太冷,就是太忙,沒空帶媃出門曬太陽,今天難得天氣好,就到內湖的碧山嚴走走。


穠舍田園咖啡

豐盛的下午荼餐點

店門口還有一些小朋友玩的玩具,在享用點心之後稍微運動一下。
白石湖吊橋,今天來的人好多,在橋山搖搖晃晃的。

星期二, 2月 18, 2014

dolly

2014元宵節

2014

年獸,這是女兒的畫畫,應該隨時紀錄下來。

星期四, 6月 27, 2013

Linux上安裝x11vnc遠端遙控

1.首先是安裝 x11vnc

sudo apt-get install x11vnc

2.接著是設定遠端登入時的登入密碼,

sudo x11vnc -storepasswd /etc/x11vnc.pass

3.使用 gedit 或 vi 在 /etc/init 目錄下建立一個名為 x11vnc.conf 的文件,
目的是讓 x11vnc 在開機時能自動啟動。

sudo vi /etc/init/x11vnc.conf

start on login-session-start

script
x11vnc -display :0 -auth /var/run/gdm/root/:0 -forever -bg -o /var/log/x11vnc.log -rfbauth /etc/x11vnc.pass -rfbport 5900
end script

script 的內容主要是與 x11vnc 有關,
利用 x11vnc -h 可查詢其意義,
這裡做個簡易的解釋:
-display :0
-auth /var/run/gdm/root/:0 設定 X 權限檔變成文件,相當於啟動前將 XAUTHORITY 環境變數設定成文件
-forever 持續不斷監聽連入的用戶端,直到用戶端斷線。
-bg 當螢幕畫面建立後進入背景執行。
-o /var/log/x11vnc.log 建立 x11vnc.log 檔於 /var/log 目錄下。
-rfbauth /etc/x11vnc.pass 使用 RFB 協定認證檔,也是之前存放於 /etc 下的 x11vnc.pass 檔
-rfbport 5990 設定 RFB 協定的 TCP 埠,預設是 5900,我使用 5990,之後會在防火牆開 port 時用到

星期三, 5月 22, 2013

picuntu usb wifi

for i in /sys/class/net/*; do e=`basename $i`; echo "# $e"; sudo ethtool $e | grep -E "Link|Speed" ; done

星期一, 5月 20, 2013

Picuntu mk808b usbnet設定

/etc/network/interface
auto lo
iface lo inet loopback
auto usbnet0
iface usbnet0 inet dhcp
auto usb0
iface usb0 inet static
address 192.168.1.200
auto eth0
iface eth0 inet dhcp
wpa-ssid #####
wpa-psk #####

星期二, 5月 14, 2013

Java字串中換行符號的ascii


    String aa[] = {"\n\r"} ;
    System.out.println( (int)(aa[0].charAt(0)));
    System.out.println( (int)(aa[0].charAt(1)));

星期二, 2月 05, 2013

MK808 監控cpu溫度

And to watch live temps you can run it in a terminal with watch, ie:

watch -n1 cat /sys/module/tsadc/parameters/temp0 /sys/module/tsadc/parameters/temp1

星期三, 1月 23, 2013

測試網路速度iperf

Server
iperf -s
Client
iperf -c 192.168.1.1 -w 100M -t 120 -i 5

Ubuntu 12.10 mount windows samba share指令


smbclient -L //192.168.1.19/Movie/ -U alvinkao
sudo mount -t cifs -o username=alvinkao,password=xxxx //192.168.1.19/Movie /mnt/alvin_pc

MK808 Linux參考資料

Ubuntu NetworkManager 使用要項

http://blog.roodo.com/rocksaying/archives/11777065.html

NetworkManager沒有出現在面板,如何啟動它

http://linux-deeptree.blogspot.tw/2011/02/gnomenetworkmanager.html

Wicd won't stay disconnected from wireless

http://ubuntuforums.org/showthread.php?t=2061545

How To Fix Ubuntu Wifi Connection Issues With Wicd

http://techhamlet.com/2012/08/wicd-fix-ubuntu-wifi-connection-issues/

星期六, 1月 19, 2013

ubuntu server 12.04 安裝 Samba Server


參考這篇文章

http://blog.dgps.kh.edu.tw/blog/jimjye/ubuntuc/2012/06/20/3656

星期四, 1月 17, 2013

現有資訊設備列表

項目 品名 備註 耗電量
1 Acer aspire    
2 MK808B 藍芽版  
3 MK808    
4 ASUS RT-N16    
5 ACER E350    
6 Novo7 Advanced    
7 Nokia N82    

星期二, 1月 15, 2013

build a10 kernel

Lubuntu 12.04 on Gemei G2

kernel : 3.0.31+

Reference :

http://rhombus-tech.net/allwinner_a10/

http://liliputing.com/2012/06/ubuntu-12-04-and-lubuntu-12-04-images-for-the-m...

update: 2012.7.19

https://www.miniand.com/forums/forums/2/topics/138#post-1225

update2:2012.9.2

https://www.miniand.com/forums/forums/development/topics/how-do-i-get-the-lcd...


Build linaro

http://www.cnx-software.com/2012/06/13/hardware-packs-for-allwinner-a10-devices-and-easier-method-to-create-a-bootable-ubuntu-12-04-sd-card/

Nightly Builds for AllWinner A10 U-boot, Linux Kernel and Hardware Packs

Read more: http://www.cnx-software.com/2012/07/20/nightly-builds-for-allwinner-a10-u-boot-linux-kernel-and-hardware-packs/#ixzz2I6On8w81
http://www.cnx-software.com/2012/07/20/nightly-builds-for-allwinner-a10-u-boot-linux-kernel-and-hardware-packs/


Hardware Packs for AllWinner A10 Devices and Easier Method to Create a Bootable Ubuntu 12.04 SD Card

Read more: http://www.cnx-software.com/2012/06/13/hardware-packs-for-allwinner-a10-devices-and-easier-method-to-create-a-bootable-ubuntu-12-04-sd-card/#ixzz2I6Pf1X6e

http://www.cnx-software.com/2012/06/13/hardware-packs-for-allwinner-a10-devices-and-easier-method-to-create-a-bootable-ubuntu-12-04-sd-card/

Linux on Gemei G2 reference

Lubuntu 12.04 on Gemei G2
kernel : 3.0.31+

Reference :
http://rhombus-tech.net/allwinner_a10/
http://liliputing.com/2012/06/ubuntu-12-04-and-lubuntu-12-04-images-for-the-m...

update: 2012.7.19
https://www.miniand.com/forums/forums/2/topics/138#post-1225

update2:2012.9.2
https://www.miniand.com/forums/forums/development/topics/how-do-i-get-the-lcd...

晶華酒店尾牙

星期五, 12月 21, 2012

RT-N16 上安裝BT相關

開啟BT
transmission-daemon -g /opt/share/transmission/config

/opt/bin/transmission-daemon -u your_account -v your_password -g /opt/share/transmission/config

關閉
killall transmission-daemon

讓BT Web GUI可連線設定
1、#編輯設定檔

vi /opt/etc/transmission/settings.json

2、找到:
  "rpc-whitelist": "127.0.0.1",

  修改為:
  "rpc-whitelist": "127.0.0.1,192.168.*.*,其他可以連的IP", // 指定認可的IP位置,以,區隔

3、#kill 掉 transmission-daemon
killall transmission-daemon

4、#再次啟動
/opt/bin/transmission-daemon -u your_account -v your_password -g /opt/etc/transmission/