We realized a line like this “PIDFile=/home/ /.vnc/%H%i.pid" in the configuration file may cause problem in starting the service. ĭescription =Remote desktop service (VNC ) After =syslog.target network.targetĮxecStartPre =/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :' ExecStart =/usr/sbin/runuser -l centos -c "/usr/bin/vncserver %i" ExecStop =/bin/sh -c '/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :' Copy the bellow configuration to the newly created file and replace the centos with your username. The VNC server uses ports ranging from 5901 to 5909. sudo cp number 1 in shows the display port in VNC server. In CentOS, we can copy the default config file and modify it to reflects the appropriate configuration. The next step is to create a config file for VNC server. Install it on the CentOS by: sudo yum install tigervnc-server xorg-x11-fonts-Type1 VNC Server Configuration To install Gnome on CentOS 7: sudo yum groupinstall "GNOME Desktop" TightVNC Server Installation and Configuration If the operating system has a graphical environment you may skip the Install Graphical Environment section.
0 Comments
Leave a Reply. |