LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-08-2020, 08:04 AM   #1
burkina76
LQ Newbie
 
Registered: Mar 2018
Posts: 21

Rep: Reputation: Disabled
Grey screen with VNC


Hi all,

I had my VNC connection working well between my office's Ubuntu and my home Ubuntu (both 18.04). The connection basically works with vnc4server and vncviewer (or Remmina, but the result is the same).
Some time ago, there was a blackout in my office, and my system was down until today, when one colleague of mine restarted it.

However, the VNC connection is now not properly working. I get a gray screen with a mouse pointer (which I can move), but no other options, instead of the standard X session.

My xstartup is very basic:

Code:
#!/bin/bash
startxfce4 &
but it worked well before! Nevertheless, I tried to change it according to various solutions found on the web, but still I get the grey screen.
In principle, nothing changed in the server (no updates, since it was down), the client has been regularly updated, but still in Ubuntu 18.04.
The log of the connection seems similar to what I obtained in the past, when it worked (not sure...):

Code:
Fri May  8 14:27:45 2020
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on port 5902
 vncext:      created VNC server for screen 0
error opening security policy file /etc/X11/xserver/SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/misc/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/, removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/, removing from list!
Could not init font path element /usr/share/fonts/X11/75dpi/, removing from list!
AUDIT: Fri May  8 14:27:45 2020: 6583 Xvnc4: client 1 rejected from local host
AUDIT: Fri May  8 14:27:46 2020: 6583 Xvnc4: client 1 rejected from local host
AUDIT: Fri May  8 14:27:47 2020: 6583 Xvnc4: client 1 rejected from local host
/usr/bin/startxfce4: X server already running on display :2
xfce4-session: Another session manager is already running
AUDIT: Fri May  8 14:27:48 2020: 6583 Xvnc4: client 1 rejected from local host
AUDIT: Fri May  8 14:27:49 2020: 6583 Xvnc4: client 1 rejected from local host
Don't know what to try... unless the problem is due to the fact that I'm not physically logged in the server. I usually left it logged in in the past, but I have no access to it in this period. I assume the server is simply up (I can access it via SSH and VNC indeed connects), at the login page.

It may also be that the X-server did not properly start on the server. There are some issues with the graphic card I never solved, and sometimes I have to reboot 2-3 times before getting a working X-server. It is likely that the pc is now up and connectable via ssh, but the X-server has not properly started. Would this explain the VNC behaviour? How can I check it? Of course I could reboot various time remotely, but it's risky since I don't know when someone else can re-start the server in case of failure...

Thanks,

Stefano

Last edited by burkina76; 05-08-2020 at 10:53 AM.
 
Old 05-10-2020, 03:21 AM   #2
burkina76
LQ Newbie
 
Registered: Mar 2018
Posts: 21

Original Poster
Rep: Reputation: Disabled
Hi all,

I found the solution!
I suspected the problem was with:

Code:
/usr/bin/startxfce4: X server already running on display :2
xfce4-session: Another session manager is already running
so I did a search for that on the web.
It turns out that this could be solved by changing my xstartup file to:

Code:
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &
and it worked!
I don't know why this issue appeared after the blackout and the reboot of the server, but I'm happy as long as this solution works...

Thanks,
Stefano
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
VNC Grey screen lrolstad Linux - Software 8 01-14-2011 01:56 PM
Connecting to VNC server gives me grey screen Micro420 Ubuntu 0 08-18-2006 08:56 PM
VNC - the screen is a grey checked color rwtreke Linux - Newbie 1 02-01-2005 04:16 PM
xstartup configured, Vnc still only loads grey screen on boot. DeTHZiT Linux - Software 8 09-05-2004 11:45 AM
Grey screen when trying to VNC to Gnome In2Deep General 7 02-05-2004 05:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration