Unverified Commit 723fc365 authored by David Beniamine's avatar David Beniamine
Browse files

Put all vnc install insite install_vnc.sh

parent 9a3acfbc
Loading
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -50,7 +50,6 @@ echo "Récupération TFTP sur le serveur"
tftp ecole-dc <<'EOF'
get id_rsa.pub
get secret.tgz
get vnc.passwd
quit
EOF
sshdir="/root/.ssh/"
@@ -68,10 +67,6 @@ rm secret.tgz
chown -R root:root /etc/cifs
cd -

mv vnc.passwd /etc/.vnc.passwd
chown administrateur:administrateur /etc/.vnc.passwd
chmod 600 /etc/.vnc.passwd

hostn=`hostname`
echo "Veuillez entrer le numéro de poste"
read numero
+2 −0
Original line number Diff line number Diff line
@@ -11,6 +11,8 @@ get vnc.passwd
quit
EOF
mv vnc.passwd /etc/.vnc.passwd
chown administrateur:administrateur /etc/.vnc.passwd
chmod 600 /etc/.vnc.passwd

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