I'm running centos 7 server (command line only) on a vps and I've installed vnc using these commands:
yum -y groupinstall "GNOME Desktop"
yum -y install tigervnc-server
the install goes alright and after setup vnc works and I can connect to this remote desktop on the vps. However when I reboot the vps it doesn't come back up. I've managed to do 'journalctl -f' for another (rescue) console and the log stops at these two lines:
Quote:
Nov 24 08:43:10 <hostname> gnome-session[23675]: (gnome-settings-daemon:23824): color-plugin-WARNING **: could not find device: property match 'XRANDR_name'='VNC-0' does not exist
Nov 24 08:43:10 <hostname> gnome-session[23675]: (gnome-settings-daemon:23824): color-plugin-WARNING **: could not find device: property match 'XRANDR_name'='VNC-0' does not exist
|
I don't know whether this is a gnome desktop problem or a vnc problem. After searching google I can't find much on this specific error. Is there a way to resolve this?
update - solved:
Installing a desktop on an openvz container always knocks out the network on reboot. The solution is to mask the network services before the reboot by running these commands in a terminal immediately after the desktop install:
Quote:
# systemctl set-default multi-user.target
# systemctl mask lightdm.service
# systemctl mask NetworkManager.service
# systemctl mask NetworkManager-wait-online.service
# systemctl mask NetworkManager-dispatcher.service
|
this method enabled me to install a gnome desktop in a centos 7 openvz container (a vps) and it survived a reboot.
The solution came from a video
here.