You are not logged in.
Hi Friends,
I need some help.
vncserver showing only black screen and cursor on client,
I am using mate desktop,
I read a lot and tried a lot but till now it is still black, I hope some one will solve this problem for me.
Thank you in advance for your time.
Last edited by Lacerda (2018-04-17 20:58:24)
Offline
Hello Lacerda and welcome to Arch!
With the little information you have provided no one will be able to help you. At the very least post the contents all the configuration files for your TigerVNC setup (in code tags) and the commands you use to connect.
Offline
Thank you Robg for your welcome and your time.
here is my vnc xtartup configuration file, the fault must be here, because I can connect to server, and the only think that I see on the client is a black screen with a cursor.
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" &
start mate-session &Offline
Are you running SuSE? Are you running mate?
Offline
Hi graysky,
friend I am running mate.
Linux Archer 4.14.34-1-lts #1 SMP Thu Apr 12 20:30:09 CEST 2018 x86_64 GNU/Linux
with mate desktop Offline
Your ~/.vnc/xstartup is confusing to me. I think you just need to figure out what the proper command is to start a mate session. For example, mine starting lxqt is simply:
cat ~/.vnc/xstartup
#!/bin/sh
exec startlxqtOffline
Hi Friends!
Long live the Arch Wiki! ![]()
I have found the solution for my vnc connection and Desktop sharing.
Here's what have worked for me, maybe it will help someone else.
VNC with an new session: Desktop :1
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
exec mate-session mate.desktopAnd for Desktop sharing!
Create /etc/systemd/system/x0vncserver.service and modify it defining the user to run the server, and the desired options.
/etc/systemd/system/x0vncserver.service
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
User=foo
ExecStart=/usr/bin/sh -c '/usr/bin/x0vncserver -display :0 -rfbport 5900 -passwordfile /home/foo/.vnc/passwd &'
[Install]
WantedBy=multi-user.targetthen start the server, as root.
systemctl start x0vncserver.serviceThank you all for your time.
Offline