Google
 

星期四, 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...

晶華酒店尾牙