So I thought I'd try to write a compound SSH/VNC command to automate the process, for storage in an alias, eg:
Code: Select all
ssh pi@10.0.0.137 -t 'vncserver -geometry 960x640 -depth 16 :1' && sleep 6 && vncviewer 10.0.0.137:1
Grey screen:

Session:
Code: Select all
$ ssh pi@10.0.0.137
pi@10.0.0.137's password:
Linux raspberrypi 3.10.25+ #622 PREEMPT Fri Jan 3 18:41:00 GMT 2014 armv6l
...
pi@raspberrypi ~ $ cat /home/pi/.vnc/raspberrypi:1.log
16/02/14 20:58:29 Xvnc version TightVNC-1.3.9
16/02/14 20:58:29 Copyright (C) 2000-2007 TightVNC Group
16/02/14 20:58:29 Copyright (C) 1999 AT&T Laboratories Cambridge
16/02/14 20:58:29 All Rights Reserved.
16/02/14 20:58:29 See http://www.tightvnc.com/ for information on TightVNC
16/02/14 20:58:29 Desktop name 'X' (raspberrypi:1)
16/02/14 20:58:29 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
16/02/14 20:58:29 Listening for VNC connections on TCP port 5901
Font directory '/usr/share/fonts/X11/75dpi/' not found - ignoring
Font directory '/usr/share/fonts/X11/100dpi/' not found - ignoring
16/02/14 20:58:30 Xvnc version TightVNC-1.3.9
16/02/14 20:58:30 Copyright (C) 2000-2007 TightVNC Group
16/02/14 20:58:30 Copyright (C) 1999 AT&T Laboratories Cambridge
16/02/14 20:58:30 All Rights Reserved.
16/02/14 20:58:30 See http://www.tightvnc.com/ for information on TightVNC
16/02/14 20:58:30 Desktop name 'X' (raspberrypi:1)
16/02/14 20:58:30 Protocol versions supported: 3.3, 3.7, 3.8, 3.7t, 3.8t
Font directory '/usr/share/fonts/X11/75dpi/' not found - ignoring
Font directory '/usr/share/fonts/X11/100dpi/' not found - ignoring
16/02/14 20:58:36 Got connection from client 10.0.0.2
16/02/14 20:58:36 Using protocol version 3.8
16/02/14 20:58:36 Enabling TightVNC protocol extensions
16/02/14 20:58:44 Full-control authentication passed by 10.0.0.2
16/02/14 20:58:44 Pixel format for client 10.0.0.2:
16/02/14 20:58:44 32 bpp, depth 24, little endian
16/02/14 20:58:44 true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
16/02/14 20:58:44 Using tight encoding for client 10.0.0.2
16/02/14 20:58:44 Using compression level 1 for client 10.0.0.2
16/02/14 20:58:44 Using image quality level 6 for client 10.0.0.2
16/02/14 20:58:44 Enabling X-style cursor updates for client 10.0.0.2
16/02/14 20:58:44 Enabling cursor position updates for client 10.0.0.2
16/02/14 20:58:44 Enabling LastRect protocol extension for client 10.0.0.2
16/02/14 20:59:04 Client 10.0.0.2 gone
16/02/14 20:59:04 Statistics:
16/02/14 20:59:04 key events received 1, pointer events 325
16/02/14 20:59:04 framebuffer updates 1, rectangles 323, bytes 17824
16/02/14 20:59:04 LastRect markers 1, bytes 12
16/02/14 20:59:04 cursor shape updates 1, bytes 82
16/02/14 20:59:04 cursor position updates 1, bytes 12
16/02/14 20:59:04 tight rectangles 320, bytes 17718
16/02/14 20:59:04 raw bytes equivalent 2457612, compression ratio 138.707078
16/02/14 20:59:57 Got connection from client 10.0.0.2
16/02/14 20:59:57 Using protocol version 3.8
16/02/14 20:59:57 Enabling TightVNC protocol extensions
16/02/14 21:00:05 Full-control authentication passed by 10.0.0.2
16/02/14 21:00:05 Pixel format for client 10.0.0.2:
16/02/14 21:00:05 32 bpp, depth 24, little endian
16/02/14 21:00:05 true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
16/02/14 21:00:05 Using tight encoding for client 10.0.0.2
16/02/14 21:00:05 Using compression level 1 for client 10.0.0.2
16/02/14 21:00:05 Using image quality level 6 for client 10.0.0.2
16/02/14 21:00:05 Enabling X-style cursor updates for client 10.0.0.2
16/02/14 21:00:05 Enabling cursor position updates for client 10.0.0.2
16/02/14 21:00:05 Enabling LastRect protocol extension for client 10.0.0.2
16/02/14 21:00:08 Client 10.0.0.2 gone
16/02/14 21:00:08 Statistics:
16/02/14 21:00:08 framebuffer updates 1, rectangles 323, bytes 17824
16/02/14 21:00:08 LastRect markers 1, bytes 12
16/02/14 21:00:08 cursor shape updates 1, bytes 82
16/02/14 21:00:08 cursor position updates 1, bytes 12
16/02/14 21:00:08 tight rectangles 320, bytes 17718
16/02/14 21:00:08 raw bytes equivalent 2457612, compression ratio 138.707078
pi@raspberrypi ~ $