hello all, im trying to set up a vnc server on my centos 7 server virtual machine(hosted on a Win7 Desktop). Network connection is established and i can ssh into that VM from my fedora laptop.
i am following a guide @
https://www.howtoforge.com/vnc-serve...on-on-centos-7
i followed this exactly, with 2 users, using both @:1 and @:2
ssh in so i can copy the output into this forum
/etc/systemd/system/vncserver@:1.service
Code:
[Service]
Type=forking
# Clean any existing files in /tmp/.X11-unix environment
ExecStartPre=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
ExecStart=/usr/sbin/runuser -l ant -c "/usr/bin/vncserver %i"
PIDFile=/home/ant/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
trying to start service
Code:
[ab@localhost system]$ systemctl 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.
checking status
Code:
[ab@localhost ~]$ systemctl status vncserver@:1.service
● vncserver@:1.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver@:1.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2016-03-28 14:23:31 EDT; 3min 22s ago
Process: 18718 ExecStart=/usr/sbin/runuser -l ant -c /usr/bin/vncserver %i (code=exited, status=2)
Process: 18713 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill %i > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)
on a side note, i have rebooted and also added firewall-cmd rules and did a systemctl daemon-reload as well.
can anyone tell me what i am doing wrong here?