Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

(Solved) Black screen when connecting to VNC

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
frazatto
Posts: 34
Joined: 2018-06-21 11:48
Has thanked: 3 times

(Solved) Black screen when connecting to VNC

#1 Post by frazatto »

I would appreciate any help regarding this issue o/

Yes yes I already did my homework but none of the solutions I found made any difference.
I'm currently using a fresh install of Buster with Cinnamon both on my server and the local machine.
The problem is none of the VNC servers are creating the xstartup file on the first run. When trying to connect remotely the result is a black screen with an message "could not acquire name on session bus" and in the log I found this error "cinnamon-session[1218]: WARNING: t+0,00730s: Failed to acquire org.gnome.SessionManager".

After some research I found this bug on TigerVNC https://github.com/TigerVNC/tigervnc/issues/659.
After some trying, I found out that TightVNC server creates an xstartup but it made no difference, the error persisted as described:

Code: Select all

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
exec cinnamon-session &
Than I tried the solution on the link and manually copied the latest TigerVNC release and indeed it created a different xstartup file:

Code: Select all

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
  case "$WINDOWMANAGER" in
    *gnome*)
      if [ -e /etc/SuSE-release ]; then
        PATH=$PATH:/opt/gnome/bin
        export PATH
      fi
      ;;
  esac
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
  exec /etc/X11/xinit/xinitrc
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
  exec sh /etc/X11/xinit/xinitrc
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
Now There are no errors on the server log, but when connecting I still get only a black sceen with the the message "could not acquire name on session bus".

So, any clues what I could try next???
Last edited by frazatto on 2019-07-14 17:41, edited 1 time in total.

User avatar
ruwolf
Posts: 640
Joined: 2008-02-18 05:04
Location: Banovce nad Bebravou
Has thanked: 40 times
Been thanked: 29 times

Re: Black screen when connecting to VNC (Buster with Cinnamo

#2 Post by ruwolf »

https://github.com/TurboVNC/turbovnc/issues/86 writes about

Code: Select all

TVNC_WM=mate-session
, so I woud try

Code: Select all

TVNC_WM=cinnamon-session

frazatto
Posts: 34
Joined: 2018-06-21 11:48
Has thanked: 3 times

Re: Black screen when connecting to VNC (Buster with Cinnamo

#3 Post by frazatto »

ruwolf wrote:https://github.com/TurboVNC/turbovnc/issues/86 writes about

Code: Select all

TVNC_WM=mate-session
, so I woud try

Code: Select all

TVNC_WM=cinnamon-session
Nop.....

I tried adding your suggestion just before OS=`uname -s` (I'm assuming the last command "twm &" uses what ever is set on TVNC_WM?!) but no difference.
I tried just changing "twm &" for "cinnamon-session &" just to be sure and still nothing.
I also tried the previous xstartup (LMDE Mate) but also the same result.

I'm very confused why nobody else is having this issue.

If anyone have a working VNC server with Buster, could you please post your xstartup file????

User avatar
ruwolf
Posts: 640
Joined: 2008-02-18 05:04
Location: Banovce nad Bebravou
Has thanked: 40 times
Been thanked: 29 times

Re: Black screen when connecting to VNC (Buster with Cinnamo

#4 Post by ruwolf »

On mentioned page https://github.com/TurboVNC/turbovnc/issues/ you will find solutution with higher probability than here. :wink:

frazatto
Posts: 34
Joined: 2018-06-21 11:48
Has thanked: 3 times

Re: (Solved) Black screen when connecting to VNC

#5 Post by frazatto »

OK!! This is what I had to do.

First, stop trying to use Cinnamon on the server and went for Xfce.
Installed TigerVNC and copied the most recent binary release over it.
Run vncserver once so it can self configure.

At this point, when trying to connect I just got a black screen, but no errors!!! That is good hahahaha
After that it was just a quick search to find the correct xstartup script:

Code: Select all

#!/bin/sh

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &
And now everything woks.

Post Reply