I have installed a VNC server but there is a problem, when restarting I lose the geometry and color depth configuration.
Having to stop service, reconfigure geometry and color depth.
Someone knows how these data can be configured so that they are still present at restart.
This is what I've done to install and configure the server:
yum install tigervnc-server -y
cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
Then I have edited the copied file modifying the following lines:
User=root
PIDFile=/root/.vnc/%H%i.pid
Then I have continued with the following commands:
vncpasswd (set password...)
systemctl daemon-reload
systemctl enable vncserver@:1.service
systemctl start vncserver@:1.service
systemctl stop vncserver@:1.service
vncserver :1 -geometry 1366x768 -depth 16
firewall-cmd --permanent --add-service vnc-server
systemctl restart firewalld.service
Regards