Cтавим gnome и vncserver на centos vps


cd /var/lib/vz/template/cache
wget https://download.openvz.org/template/precreated/centos-7-x86_64.tar.gz

vzctl create 122 --ostemplate centos-7-x86_6

/sbin/iptables --list

yum install net-tools
yum install tigervnc-server
useradd maxa
passwd maxa
systemctl status vncserver@:.service
systemctl is-enabled vncserver@.service
cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
~/.secret
(
ExecStart=/usr/sbin/runuser -l maxa -c "/usr/bin/vncserver %i -geometry 1280x1024"
PIDFile=/home/maxa/.vnc/%H%i.pid
)

sudo systemctl daemon-reload

yum groupinstall "GNOME Desktop"
reboot


Читать дальше →