With no response to my previous post on accessing a Pi with Guacamole I've now changed tack and am using tightvncserver on the Pi instead of the regular RealVNC server. All I had to do was apt install tightvncserver, then run tightvncserver from a shell logged in as pi. Both guacamole and RealVNC Viewer connect without so much as batting an eyelid!
But I still need to start tightvncserver with systemd, and once again I seem to be wading through a tar pit.
In /etc/systemd/system I created tightvncserver.service containingWhen I reboot, tightvncserver starts, but connecting to it I get a desktop with a warning "No session for pid 1879 (which is lxpolkit) and a Pi start button that doesn't do anything.
Tightvncserver appears to have created a .vnc/xstartup file containingHowever, I don't have a .Xresources file in $HOME, which I guess might be the problem.
Someone give me a hand out of this hole please!
But I still need to start tightvncserver with systemd, and once again I seem to be wading through a tar pit.
In /etc/systemd/system I created tightvncserver.service containing
Code:
[unit]Description-TightVNC Renote Desktop ServerAfter=network.target[Service]Type=forkingUser=piEnvironment="HOME=/home/pi"ExecStart=/usr/bin/tightvncserver :1ExecStop=/usr/bin/tightvncserver -kill :1[Install]WantedBy=multi.user.target
Tightvncserver appears to have created a .vnc/xstartup file containing
Code:
xrdb "$HOME/.Xresources"xsetroot -solid grey#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &#x-window-manager &# Fix to make GNOME workexport XKL_XMODMAP_DISABLE=1/etc/X11/Xsession
Someone give me a hand out of this hole please!
Statistics: Posted by pleriche — Sat Feb 01, 2025 9:53 pm