install_vnc.sh 362 Bytes
Newer Older
David Beniamine's avatar
David Beniamine committed
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash

# Already configured, abort
if [ -e "/etc/systemd/system/vnc.service" ]
then
    exit
fi

tftp ecole-dc <<'EOF'
get vnc.passwd
quit
EOF
mv vnc.passwd /etc/.vnc.passwd
14 15
chown administrateur:administrateur /etc/.vnc.passwd
chmod 600 /etc/.vnc.passwd
David Beniamine's avatar
David Beniamine committed
16 17 18 19 20

cp vnc.service /etc/systemd/system/
systemctl daemon-reload
systemctl start vnc
systemctl enable vnc