I'm trying to setup my Galaxy S4 as a monitor for my Pi 2. Using the VX ConnectBot android app and usb tethering, I have successfully logged into the Pi over ssh, displaying terminal on my android screen and accepting command inputs from it. Trying to take things a step further I try startx but the gui will only display on the hdmi monitor connected directly to the pi, while the android screen shows:
X.Org X Server 1.12.4
Release Date: 2012-08-27
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-2-mx5 armv7l Debian
Current Operating System: Linux raspberrypi 3.18.7-v7+ #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015 armv7l
Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=592 bcm2708_fb.fbheight=448 bcm2709.boardrev=0xa21041 bcm2709.serial=0x543333e2 smsc95xx.macaddr=B8:27:EB:33:33:E2 bcm2708_fb.fbswap=1 bcm2709.disk_led_gpio=47 bcm2709.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000 dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p6 rootfstype=ext4 elevator=deadline rootwait
Build Date: 11 February 2015 09:31:17PM
xorg-server 2:1.12.4-6+deb7u6 (Julien Cristau <[email protected]>)
Current version of pixman: 0.33.1
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Feb 16 20:20:42 2015
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
My understanding is that X over ssh is not straightforward, and that an xserver is needed. I have installed XServer XSDL on android, but I am unsure how to proceed now. When I launch this app on my phone it says:
'Launch these commands on your Linux PC:
env DISPLAY=192.168.1.156:0 metacity & env DISPLAY=192.168.1.156:0 gimp
To tunnel X over SSH, forward port 6000 in your SSH client'
when i enter these commands on the Pi it says that env: metacity and gimp so not exist. As for forwarding port 6000 in the SSH client, not really sure how to do that (is this done from the Pi?)
Any help would be greatly appreciated.