1. 程式人生 > >ubuntu本地程式顯示在樹莓派xserver螢幕上

ubuntu本地程式顯示在樹莓派xserver螢幕上

本地程式遠端顯示在樹莓派上
    參考:Linux江湖03:X Window的奧祕
    http://www.cnblogs.com/youxia/p/linux003.html
1.關閉樹莓派xserver的-nolisten tcp關閉tcp監聽(關閉xserver遠端訪問功能)
    檢視/etc/X11/xinit/xserverrc
    #!/bin/sh
    exec /usr/bin/X -nolisten tcp "[email protected]"
    即開始執行X程式,-nolisten tcp關閉tcp監聽(關閉xserver遠端訪問功能),引數等.
2.在樹莓派上執行xhost
    [email protected]
~$ export DISPLAY=':0'
    [email protected] ~$ xhost +192.168.1.6 (ubuntu ip地址)
3.在ubuntu上執行
    export DISPLAY=192.168.1.4:0 (樹莓派地址)
    gnome-terminal 顯示在樹莓派螢幕上