Can't run VNC on Centos 7 with GNOME

Issues related to applications and software problems
Post Reply
nermin_dadan
Posts: 2
Joined: 2020/01/08 14:57:32

Can't run VNC on Centos 7 with GNOME

Post by nermin_dadan » 2020/01/08 15:51:19

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.

User avatar
TrevorH
Forum Moderator
Posts: 29171
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Can't run VNC on Centos 7 with GNOME

Post by TrevorH » 2020/01/08 18:46:48

Did you set a password for the user and does the path leading down to /home/futura/.vnc/server1.futuratoneri.info:1.pid exist?
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

nermin_dadan
Posts: 2
Joined: 2020/01/08 14:57:32

Re: Can't run VNC on Centos 7 with GNOME

Post by nermin_dadan » 2020/01/09 15:27:08

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

Post Reply

Return to “CentOS 7 - Software Support”