User:Evilgold/remote

Install a vncserver
pacman -S tightvnc

Setup VNC Server
firstrun to set password vncserver :1

then stop the server vncserver -kill :1

edit xstartup file, this file works just like .xinitrc nano ~/.vnc/xstartup

example xstartup file export XKL_XMODMAP_DISABLE=1 xrdb $HOME/.Xresources xsetroot -solid grey exec ck-launch-session startlxde
 * 1) !/bin/sh

SSH and VNC
connect over ssh and run the vnc server. This example uses compression (-C) and forwards (-L) port 8900 on the local machine to to port 5801(the vnc port) on the remote host. Geometry can be changed as needed (320x480 for my android phone).

ssh -C user@ipaddress -L 8900/localhost/5901 vncserver -geometry 1024x768 -alwaysshared -dpi 96 :1

connect to the vnc server on the local machine using port 8900

vncviewer localhost:8900

see 'man vncviewer' for more information and to get the most out of your connection. If the connection seems too slow, try using a higher jpeg compression level or less color.