Flipkart

Sunday, July 23, 2017

Enable VNC server on RHEL 7 or OEL 7

Enable VNC server on RHEL 7 or OEL 7

Please install the following package.

# yum install tigervnc-server

Then copy the service file to systemd location.

The browse to the directory vi /etc/systemd/system/vncsever@:2.service
Make the following changes

[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 root -c “/usr/bin/vncserver %i”
PIDFile=/root/.vnc/%H%i.pid
ExecStop=/bin/sh -c ‘/usr/bin/vncserver -kill %i > /dev/null 2>&1 || :’

Change the VNC password
vncpasswd
Password- 12345
Retype password- 12345


Then run the following commands

No comments:

Post a Comment