You are not logged in.
If I create /etc/systemd/system/vncserver@:1.service (per the wiki), starting it runs without errors just fine.
% cat /etc/systemd/system/vncserver@:1.service
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[Service]
Type=simple
User=facade
PAMName=login
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/usr/bin/vncserver -desktop sandbox -geometry 2000x1200 -fg -AlwaysShared -localhost -dpi 100 %i
ExecStop=/usr/bin/vncserver -kill %i
[Install]
WantedBy=multi-user.targetI would like to adapt the system service to a user service. I just copied it to ~/.config/systemd/user and removed the User= directive since it will not run in usermode with that specified. I am finding that when I run the user service, that the following lxpolkit bug has returned: https://bugs.archlinux.org/task/42703
As I understand it, the PAMName=login needs to be present to keep the bug from occuring BUT it needs to paired with a User= directive to work which again, fails in user mode. Any thoughts are welcomed.
% systemctl --user start vncserver@:1.service
Job for vncserver@:1.service failed because the control process exited with error code. See "systemctl status vncserver@:1.service" and "journalctl -xe" for details.
% systemctl --user status vncserver@:1.service
● vncserver@:1.service - Remote desktop service (VNC)
Loaded: loaded (/home/facade/.config/systemd/user/vncserver@:1.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2015-08-02 06:37:34 EDT; 3min 9s ago
Process: 1110 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill %i > /dev/null 2>&1 || : (code=exited, status=216/GROUP)
Aug 02 06:37:34 phobos systemd[980]: Starting Remote desktop service (VNC)...
Aug 02 06:37:34 phobos systemd[1110]: vncserver@:1.service: Failed at step GROUP spawning /bin/sh: Operation not permitted
Aug 02 06:37:34 phobos systemd[980]: vncserver@:1.service: Control process exited, code=exited status=216
Aug 02 06:37:34 phobos systemd[980]: Failed to start Remote desktop service (VNC).
Aug 02 06:37:34 phobos systemd[980]: vncserver@:1.service: Unit entered failed state.
Aug 02 06:37:34 phobos systemd[980]: vncserver@:1.service: Failed with result 'exit-code'.Offline