You are not logged in.
Pages: 1
I carefully followed the official Arch documentation to configure TigerVNC, however, I'm unable to enable or start the xnvcserver.service:
× x0vncserver.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/x0vncserver.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Wed 2023-01-04 07:43:45 EST; 3s ago
Duration: 5ms
Process: 3183 ExecStart=x0vncserver -display :0 -rfbauth ~/.vnc/passwd (code=exited, status=1/FAILURE)
Main PID: 3183 (code=exited, status=1/FAILURE)
CPU: 5ms
Jan 04 07:43:45 arch systemd[1]: x0vncserver.service: Scheduled restart job, restart counter is at 5.
Jan 04 07:43:45 arch systemd[1]: Stopped x0vncserver.service - Remote desktop service (VNC).
Jan 04 07:43:45 arch systemd[1]: x0vncserver.service: Start request repeated too quickly.
Jan 04 07:43:45 arch systemd[1]: x0vncserver.service: Failed with result 'exit-code'.
Jan 04 07:43:45 arch systemd[1]: Failed to start x0vncserver.service - Remote desktop service (VNC).Here's are the steps I took:
1. sudo su
2. create a password for root using vncpasswd. The file ~/.vnc/passwd was created
3. added :0=root to /etc/tigervnc/vncserver.users. Physical display is :1
4. added the following to ~/.vnc/config:
alwaysshared
geometry=1920x1080
session=gnome-xorg5. run x0vncserver to control the local display with system service. I've created the file /etc/systemd/system/x0vncserver.service with the following content:
[Unit]
Description=Remote desktop service (VNC) for :0 display
Requires=display-manager.service
After=network-online.target
After=display-manager.service
[Service]
Type=simple
Environment=HOME=/root
Environment=XAUTHORITY=/var/run/lightdm/root/:0
ExecStart=x0vncserver -display :0 -rfbauth ~/.vnc/passwd
Restart=on-failure
RestartSec=500ms
[Install]
WantedBy=multi-user.targetFrom my understanding this should be enough but maybe I'm missing something.
Offline
maybe im wrong but the user that is starting the service should also be the one logged in in the X11 session? so you should configure the server to be launched as your desktop user ans make the systemd service run as that user as well.
Offline
Are you launching GNOME from lightDM? Otherwise, if you are using gdm, I think these two configs conflict:
... session=gnome-xorg... Environment=XAUTHORITY=/var/run/lightdm/root/:0
Also, is there a particular reason you want to use the physical display?
Offline
3. added :0=root to /etc/tigervnc/vncserver.users. Physical display is :1
As I understand it, you're specifying ports there and the suggested default start is +1, so I'd try that rather than +0. What do you mean that the physical display is :1? In the service file, you're using display :0.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Pages: 1