0

I'm trying to set up vnc4server on an Ubuntu 16.04 (Xenial Xerus) server version system.

I can currently vnc into the computer no problem, but I can't view my running applications - only my terminal. How can I view my running application on the device?

This is what I see:

Terminal emulator with which background and prompt in console font and nothing else

Here is my ~/.vnc/xstartup file:

#!/bin/sh

# unset SESSION_MANAGER
# unset DBUS_SESSION_BUS_ADDRESS
# exec /etc/X11/xinit/xinitrc
startxfce4 &

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &

gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &

1 Answers1

0

I had the same problem to get a remote graphical access to a Ubuntu server. I ended up to login with ssh to the server, run 'tasksel' and install "Xubuntu". This is the most lightweight variant, since my server has a next-to-no-good-at-all graphics card. After the install your server boots into a desktop. It does not hurt, since most of the time it will remain at login screen and does not eat up too much resources. I did configure my server to not start the X-Server, so I have to do it manually from SSH when I need it with

sudo service lightdm start

When the X-Server (aka the desktop) is running your VNC server actually has something to show. You should see your application as you intend. You could also login from a Linux client with

 ssh -X 

Then you are able to get the graphical windows running on the server on your client screen. Then you even might not need VNC and the response times are a lot better.

CatMan
  • 1,449
  • 1
  • 19
  • 48