CentOS7 - VNC Partial Gnome Desktop Shown

Issues related to applications and software problems
inseighn
Posts: 1
Joined: 2017/10/18 13:51:58

CentOS7 - VNC Partial Gnome Desktop Shown

Postby inseighn » 2017/10/18 14:27:21

Hi All! I've been searching for this exact issue for a few days and have no luck. I am trying to set up VNC on my CentOS Server and then remote into it from my Laptop.

I have VNC setup and configured, and have done so plenty times in the past with various other servers, and I can connect to my server with VNC but all I see is this screen:

Image

It is giving me a GNOME desktop (which is what I have configured) but.. not the whole thing? There's no taskbar when I VNC into it but if I attach a monitor everything works fine.

The contents of my systemd daemon(which is running just fine):

Code: Select all

[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target

[Service]
Type=forking
User=aaronvnc

# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=-/usr/bin/vncserver -kill %i
ExecStart=/usr/bin/vncserver %i
PIDFile=/home/aaronvnc/.vnc/%H%i.pid
ExecStop=-/usr/bin/vncserver -kill %i

[Install]
WantedBy=multi-user.target


This is my /home/aaronvnc/.vnc/xstartup config:

Code: Select all

#!/bin/sh

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

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &


And this is my /etc/X11/xinitrc

Code: Select all

if [ -f $HOME/.Xclients ]; then
    exec $CK_XINIT_SESSION $SSH_AGENT $HOME/.Xclients || \
    exec $CK_XINIT_SESSION $SSH_AGENT $HOME/.Xclients
elif [ -f /etc/X11/xinit/Xclients ]; then
    exec $CK_XINIT_SESSION $SSH_AGENT /etc/X11/xinit/Xclients || \
    exec $CK_XINIT_SESSION $SSH_AGENT /etc/X11/xinit/Xclients
else
    # Failsafe settings.  Although we should never get here
    # (we provide fallbacks in Xclients as well) it can't hurt.
    [ -x /usr/bin/xsetroot ] && /usr/bin/xsetroot -solid '#222E45'
    [ -x /usr/bin/xclock ] && /usr/bin/xclock -geometry 100x100-5+5 &
    [ -x /usr/bin/xterm ] && xterm -geometry 80x50-50+150 &
    [ -x /usr/bin/twm ] && /usr/bin/twm
fi

hunter86_bg
Posts: 759
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: CentOS7 - VNC Partial Gnome Desktop Shown

Postby hunter86_bg » 2017/10/20 04:12:04

I've noticed the same thing.Maybe a bugzilla should be opened as it definatly seems that it fails to run a gnome3 session properly.