Install the required package:
# yum install tigervnc-server
Copy the configuration file:
# cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver_root@:2.service
Modify the configuration file:
#sed -i 's/<USER>/root/g' /etc/systemd/system/vncserver_root@:2.service
#sed -i 's/i"/i -geometry 800x800"/g' /etc/systemd/system/vncserver_root@:2.service
Enable VNC Server:
# systemctl enable vncserver_root@:2.service
Create password:
# vncserver :2
To allow Clipboard in VNC server:
open an terminal in vnc server and use the command -- "vncconfig &"
# yum install tigervnc-server
Copy the configuration file:
# cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver_root@:2.service
Modify the configuration file:
#sed -i 's/<USER>/root/g' /etc/systemd/system/vncserver_root@:2.service
#sed -i 's/i"/i -geometry 800x800"/g' /etc/systemd/system/vncserver_root@:2.service
Enable VNC Server:
# systemctl enable vncserver_root@:2.service
Create password:
# vncserver :2
To allow Clipboard in VNC server:
open an terminal in vnc server and use the command -- "vncconfig &"