waterstealer
Posts: 5
Joined: Mon Jun 25, 2018 5:04 pm

VNC grey screen, x cursor, nothing helps [SOLVED]

Mon Jun 25, 2018 6:34 pm

[SOLVED] Hi everybody, I'm facing a well known issue but nothing helps from the answers on the net

My build

raspberry pi 3 b+
Kali linux 2018.2

~/.vnc/xstartup:

Code: Select all

#!/bin/sh

# Uncomment the following two lines for normal desktop:
#unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
startxfce4 &
as was suggested here viewtopic.php?f=91&t=37724

Image


Please help

Thanks.
Last edited by waterstealer on Sun Jul 15, 2018 12:32 am, edited 2 times in total.

waterstealer
Posts: 5
Joined: Mon Jun 25, 2018 5:04 pm

Re: VNC grey screen, x cursor, nothing helps

Thu Jun 28, 2018 10:32 am

If a grey screen is encountered change /root/.vnc/xstartup contents to this

Code: Select all

#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
Last edited by waterstealer on Sun Jul 15, 2018 12:31 am, edited 2 times in total.

DirkS
Posts: 10882
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: VNC grey screen, x cursor, nothing helps

Thu Jun 28, 2018 1:26 pm

waterstealer wrote:
Thu Jun 28, 2018 10:32 am
please close the topic
You can do that by adding [Solved] to the title of your first post

koko004
Posts: 1
Joined: Fri Jun 23, 2017 8:49 pm

Re: VNC grey screen, x cursor, nothing helps

Sat Nov 24, 2018 1:48 pm

waterstealer wrote:
Thu Jun 28, 2018 10:32 am
If a grey screen is encountered change /root/.vnc/xstartup contents to this

Code: Select all

#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
startxfce4 &

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
Great, it works!!

bigjoncoop
Posts: 3
Joined: Mon Aug 28, 2017 8:45 pm

Re: [SOLVED] VNC grey screen, x cursor, nothing helps

Thu Jul 25, 2019 11:29 pm

This work for me after searching 4 hours on hours changing everything I could find. And I'm running Bohdi Linux I PC. I just so happened to give this a shot. Just completely deleted all the lines and replaced with the lines Post in the thread..


Thx

Return to “Troubleshooting”