OK, first time configuring vncserver on Centos7. I have read through a
bunch of old messages here on vncserver and thought I had it. Obviously
not.
1) cp /usr/lib/systemd/system/vncserver@.service
/etc/systemd/system/vncserver@.service
2) vi /etc/systemd/system/vncserver@.service
I changed <USER> in both places to root
3) systemctl daemon-reload
4) systemctl enable vncserver@:3.service
5) vncpasswd
To create /root/.vnc/passwd
6) systemctl start vncserver@:3.service
# systemctl -l status vncserver@:3
● vncserver@:3.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver@.service; enabled;
vendor preset: disabled)
Active: failed (Result: resources) since Thu 2017-05-25 12:31:13
EDT; 13s ago
Process: 5173 ExecStart=/usr/sbin/runuser -l root -c
/usr/bin/vncserver %i (code=exited, status=0/SUCCESS)
Process: 5170 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill %i >
/dev/null 2>&1 || : (code=exited, status=0/SUCCESS)
May 25 12:31:10 homebase.home.htt systemd[1]: Starting Remote desktop
service (VNC)...
May 25 12:31:13 homebase.home.htt systemd[1]: PID file
/home/root/.vnc/homebase.home.htt:3.pid not readable (yet?) after start.
May 25 12:31:13 homebase.home.htt systemd[1]: Failed to start Remote
desktop service (VNC).
May 25 12:31:13 homebase.home.htt systemd[1]: Unit vncserver@:3.service
entered failed state.
May 25 12:31:13 homebase.home.htt systemd[1]: vncserver@:3.service failed.
Thanks for all help.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos