Vnc connects but nothing is there

I am running Ubuntu 18.04 and just installed a VNCserver on Gnome.

To do it, as it was the first time I tried it, I read an online guide.

The result is I have the VNC server installed and I can connect to it, but when I do it from my Android tablet it only appears a grey screen.

This is the content of my config file:

#!/bin/sh
xrdb $HOME/.Xresources
xsetroot -solid grey
#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

And this are the errors of the Xtightvnc log:

Font directory '/usr/share/fonts/X11/75dpi/' not found - ignoring
Font directory '/usr/share/fonts/X11/100dpi/' not found - ignoring
xrdb: No such file or directory
xrdb: can't open file '/home/ubuntu/.Xresources'

I achieved to fix the problems with the fonts, I only have to struggle with the xrdb, and I have no idea on how to fix it.

And just to clarify, when I installed the packets I install all of this, and maybe more:

$ sudo apt-get install \ gnome-panel \ gnome-settings-daemon \ metacity nautilus \ gnome-terminal \ x11-xserver-utils

Thanks in advance

1

1 Answer

It can happen if there is no monitor on a server. Make sure that your monitor is plugged in.

If not try these:

  1. ssh/putty into monitorless server
  2. enter "vnc4server :1"
  3. enter "export DISPLAY=:1"
  4. enter "x-session-manager &"
  5. exit terminal session and you should now be able to vnc into the server with "vncviewer server_name :1"

p.s. taken from ubuntu forums. ()

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like