Answer the question
In order to leave comments, you need to log in
How to connect to vnc server?
Given: Fedora 21, Tiger-vns, GNOME Shell 3.14.3 Everything
was done according to the dock: HERE .
When connecting from the client to the server, the message "Oh no! Something has gone wrong" appears.
xstartup config:
#!/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 &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
eval `dbus-launch --sh-syntax –exit-with-session`
echo "D-BUS per-session daemon address is: \
$DBUS_SESSION_BUS_ADDRESS"
fi
exec gnome-session
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/sbin/runuser -l des -c "/usr/bin/vncserver %i"
PIDFile=/home/des/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
[Install]
WantedBy=multi-user.target
Answer the question
In order to leave comments, you need to log in
Debug without a daemon.
If you manually run "sudo -u des -H vncserver" does it start listening on a port?
Checked with "netstat -ntlp | grep vnc" command.
After that, can you connect to it?
If so, there is a bug in the systemd settings.
If not, there is an error in xstartup.
Before each command and at the end, put calls to logger to see if execution reaches them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question