I was working in a Oracle Linux server through XRDP with Xvnc(TigerVNC) and the server crash. After the crash I only can access the server through XRDP with Xorg, but not with Xvnc, when I try to access using VNC I only have a black screen with the mouse pointer.

The file .xstartup was missing, the file vncserver@:1.service located in /etc/systemd/system was missing.

I try to reconfigure the vnc service

  • Stop the service xrdp and vncserver
  • Delete lock files loacated in /tmp
  • Delete .Xauthority from home folder
  • Create ~/.vnc/xstartup file

    vncserver -kill $DISPLAY

  • Create /etc/systemd/system/vncserver@:1.service

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


    ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
    ExecStart=/usr/sbin/runuser -l vncuser -c "/usr/bin/vncserver %i"
    ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'


  • Start xrdp service

  • execute systemctl daemon--reload

  • Execute systemctl vncserver@:1.service

  • Execute vncserver

The issue persist. I can connect using Xorg, but with Xvnc I only get a black screen with the mouse pointer

The server only have GNOME as GUI

Any Advice

Thanks In advance

Your Answer

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

Browse other questions tagged or ask your own question.