Hello,
I am having trouble making VNC work on Centos 7 with GNOME.
These are the steps I follow:
1. sudo yum install tigervnc-server
2. vncpasswd
3. put my password, and verify it.
4. cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
5. It makes new file in that path.
6. Content of that file is:
[Unit]
Description=Remote desktop service (VNC)
After=syslog.target network.target
[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 futura -c "/usr/bin/vncserver %i"
PIDFile=/home/futura/.vnc/%H%i.pid
ExecStop=/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :'
[Install]
WantedBy=multi-user.target
7. I have put my user "futura" in file.
8. I run systemctl daemon-reload
9. then run systemctl start vncserver@:1
10. error happens: Job for vncserver@:1.service failed because a configured resource limit was exceeded. See "systemctl status vncserver@:1.service" and "journalctl -xe" for details.
11. systemctl status vncserver@:1.service. this is the output: ● vncserver@:1.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver@:1.service; enabled; vendor preset: disabled)
Active: failed (Result: resources) since Wed 2020-01-08 16:47:04 CET; 1min 13s ago
Process: 6730 ExecStart=/usr/sbin/runuser -l futura -c /usr/bin/vncserver %i (code=exited, status=0/SUCCESS)
Process: 6708 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill %i > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)
Jan 08 16:47:00 server1.futuratoneri.info systemd[1]: Starting Remote desktop service (VNC)...
Jan 08 16:47:04 server1.futuratoneri.info systemd[1]: Can't open PID file /home/futura/.vnc/server1.futuratoneri.info:1.pid (yet?) after start: No such file or directory
Jan 08 16:47:04 server1.futuratoneri.info systemd[1]: Failed to start Remote desktop service (VNC).
Jan 08 16:47:04 server1.futuratoneri.info systemd[1]: Unit vncserver@:1.service entered failed state.
Jan 08 16:47:04 server1.futuratoneri.info systemd[1]: vncserver@:1.service failed.
How can I make this work?
Thank you for your support.
Can't run VNC on Centos 7 with GNOME
Re: Can't run VNC on Centos 7 with GNOME
Did you set a password for the user and does the path leading down to /home/futura/.vnc/server1.futuratoneri.info:1.pid exist?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
-
- Posts: 2
- Joined: 2020/01/08 14:57:32
Re: Can't run VNC on Centos 7 with GNOME
I have set up password with:
vncpasswd
Also there is path /home/futura/.vnc/
but there is no file server1.futuratoneri.info:1.pid in it.
What could be the issue?
Thank you for your support!
Nermin Dadanovic
vncpasswd
Also there is path /home/futura/.vnc/
but there is no file server1.futuratoneri.info:1.pid in it.
What could be the issue?
Thank you for your support!
Nermin Dadanovic