You are not logged in.
Hi friends!
I´m trying to get VNC working on odroid n2+ which I run nextcloud from. OS is ArchLinux Wayland and desktop is gnome.
Unfortunately I´ve been struggling for many days and the closest I can get is a black screen with cursor or a gnome error screen stating: "Something has gone wrong..." with a button to log out which ends up killing the server.
· From what I understand there is a bug/issue starting gnome desktop from a systemd service: Gnome cannot start from systemd vnc - gitlab.gnome.org
· I´ve gathered that there is a difference between for example using tigervnc (which is a wrapper for x0?) or using x0vncserver:
Empty black window with cursor - wiki.archlinux.org
TigerVNC: something gone wrong - fedoraforum.org
· x0vncserver shares an existing session/desktop (physical session already in existance), whereas tigervnc creates an entirely new session & cannot share an existing session.
Should anyone care to correct me, please do.
Regardless of which of the 2 available options I try, I either end up with the black screen & cursor or the gnome desktop error. Below are my relevant files in current state, including commented configurations I´ve tested:
~/.vnc/config
session=gnome
geometry=1920x1080
#localhost
#alwaysshared -----------------------------------------------
~/.vnc/xstartup
#!/bin/sh
#[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
#[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
#vncconfig nowin &
#dbus-launch --exit-with-session env GNOME_SHELL_SESSION_MODE=ubuntu gnome-session --session=ubuntu &
#PATH=/usr/bin:/usr/sbin
#unset SESSION_MANAGER
#unset DBUS_SESSION_BUS_ADDRESS
#exec /usr/bin/gnome-session &
#OS=Linux
export XDG_SESSION_TYPE=x11
exec gnome-session gnome.desktop &-----------------------------------------------
/etc/vnc/xstartup
test x"$SHELL" = x"" && SHELL=/bin/bash
test x"$1" = x"" && set -- default
vncconfig -iconic &
"$SHELL" -l <<EOF
export XDG_SESSION_TYPE=x11
dbus-launch --exit-with-session gnome-session
exec /etc/X11/Xsession "$@"
EOF
vncserver -kill $DISPLAY
#gnome-session &-----------------------------------------------
/etc/x11/xinit/xinitrc
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f"
done
unset f
fi
#twm &
#xclock -geometry 50x50-1+1 &
#xterm -geometry 80x50+494+51 &
#xterm -geometry 80x20+494-0 &
#exec xterm -geometry 80x66+0+0 -name login
# commented above & added below 4 vnc
export XDG_SESSION_TYPE=x11
exec gnome-session-----------------------------------------------
Below is the systemd service I created for testing "sharing" with x0vncserver: (I get same results)
/etc/systemd/system/x0vncserver.service
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=forking
User=root
ExecStart=/usr/bin/sh -c '/usr/bin/x0vncserver -display :0 -rfbport 5905 -passwordfile ~/.vnc/passwd &'
[Install]
WantedBy=multi-user.target-----------------------------------------------
I feel like some areas of this functioning are still obscure to me, I would really appreciate if anyone could shed some light on this topic.
Here are some more threads of others that experienced the same issue:
Gnome VNC issue 1 - bbs.archlinux.org
Gnome VNC issue 2 - bbs.archlinux.org
Gnome VNC issue 3 - bbs.archlinux.org
Also found this which seems useful: XFCE not playing nice with tigervnc - forum.manjaro.org
Many thanks in advance!! ![]()
Last edited by shartalpton (2022-07-18 04:22:22)
Offline
Hello again,
Anybody able to provide a point or slight nudge in the right direction?
For now I will continue trying the solution provided in Gnome cannot start from systemd vnc - gitlab.gnome.org
In theory it should work, atleast for the systemd service. What I still don´t get is why I get the same results whether its making a new session using tigervnc or sharing one with x0vnc.
Any help is appreciated at this point.
Regards
Last edited by shartalpton (2022-07-19 22:50:28)
Offline
Hello,
Does anybody hsve VNC working on ArchLinux??
Regards
Last edited by shartalpton (2022-07-30 23:46:47)
Offline
BUMP
Anybody out there please?
Is there an easier route to get vnc on my n2??
Offline