4

Utilizing these instructions for tightvncserver for Jessie Lite. I have a tightvncserver running on startup using this as my ~/.vnc/xstartup file:

#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey -cursor_name left_ptr
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
# Fix to make GNOME work
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession
lxterminal &
/usr/bin/lxsession -s LXDE &

When I check

netstat -lnt

I get

tcp        0      0 0.0.0.0:5901            0.0.0.0:*               LISTEN

Is this correct? Because when I run

open vnc://192.168.2.2:5901

or using VncViewer, I get a grey box with this

Xsession: unable to start X session --- no "/home/pi/.xsession" file, no "/home/pi/.Xsession" file, no session managers, no window managers, and no terminal emulators found; aborting.

Obviously I'm missing the .xsession file. So I create it but can't seem to find what belongs in the file anywhere. Can someone help me with the details I'm missing?

Architek1
  • 143
  • 2
  • 8

4 Answers4

3

The problem is you running Jessie-Lite. it similar to Jessie(full) but without a window manager, X-server and its components. Those are mandatory for VNC to run :)

Believe me, try same VNC setup on Jessie(full) and it will work nicely :)

Aura
  • 428
  • 2
  • 12
0

Man this seems more complicated than necessary. I followed these instructions from the Raspberry Pi foundation's website and have no problems. I can hit all of my RPi2B's (Jessie Lite) with TightVNC viewer on Windows.

adengle
  • 746
  • 5
  • 6
0

Missing X environment components and install all of them:

sudo apt-get install xserver-xorg-core xserver-xorg-input-all \
xserver-xorg-video-fbdev libx11-6 x11-common \
x11-utils x11-xkb-utils x11-xserver-utils xterm lightdm openbox
nullne
  • 101
-2

Jessielite does not support tightvncserver.