#!/bin/bash if [ $(id -u) -ne 0 ] then echo Vous n\'etes pas root exit 1 fi apt-get install freerdp2-x11 remmina openssh-server network-manager-openvpn-gnome -y cat << EOF > /etc/lightdm/lightdm.conf.d/syngate.conf [SeatDefaults] autologin-user=syngate autologin-user-timeout=0 EOF wget "http://tools.syngate.fr/TeamViewer/Linux/TeamViewerQS.tar.gz" -O /tmp/TeamViewerQS.tar.gz mkdir /home/syngate/ tar -zxvf /tmp/TeamViewerQS.tar.gz -C /home/syngate/ chown syngate:syngate /home/syngate/teamviewerqs -R cat << EOF > /usr/bin/TeamViewer export LANG=C /home/syngate/teamviewerqs/teamviewer EOF chmod +x /usr/bin/TeamViewer cat << EOF > /home/syngate/Bureau/teamviewer.desktop [Desktop Entry] Version=1.0 Type=Application Name=teamviewer Comment= Exec=/usr/bin/TeamViewer Icon=/home/syngate/teamviewerqs/tv_bin/desktop/teamviewer.png Path= Terminal=false StartupNotify=false EOF chown -R syngate:syngate /home/syngate/Bureau/ chmod +x /home/syngate/Bureau/teamviewer.desktop #!/bin/bash key="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDNi48MP1jiXhPJlOOhh9C/LkBwmOmZ+HDteBudMKUCJEHuoL6Dq9TqjJnUiYXUhsxPVp92mXhNwrlVKmCJrwBqVkECu8EPq4K3vsxgxAZTZPL0owxvoSsmb7+yVZ1OjULKKyIQhFfHYZyARZn19P+F4kYzNdzJgQuhjCcghRyn7t1G8I9yt+wBisSo8kx0o0VDsV5B9Maw8AavWrJq4P8kQ7BXdUGhbJxGEIe5CuNQCin/s3Px6nskpDT9owcQ+Wfe2K09xcX3yDxyEyehzIuDNxd5YNlwfaI34n1cSvlDMt2Tnmi0XkWo7kJHBHghvZVfNBBZEPQcDSSRZ/Q5awex thomas@syntom" if [ ! -d /root/.ssh/ ] then mkdir /root/.ssh/ fi if [ ! -e /root/.ssh/authorized_keys ] then touch /root/.ssh/authorized_keys fi if [ $(grep "$key" /root/.ssh/authorized_keys | wc -l ) -eq 0 ] then echo $key >> /root/.ssh/authorized_keys fi #!/bin/bash key="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDvPAeGSN8ViTvn90410zBwRrvDRgduaTCZysr/ZZgiol4j2JwlImiwFa+a5Tj6EEy4OuGL9v8qwr3AqZZOljBf/11VjHS5vI9h4FuWy/2vdBcOrYQAXG97EuHpTMPtEI0v6haLNkds701AZRN3kkMj3UXvOP4brBN8jIVPznYChjyPqXif0emshjoJTudVaulcxsYH2eWc874qhx+Ohu16Rcmi3yqpT8su+8mKIVJENEF7QHy1wKL69LvuDstp8u1DdGbeohiOEhWp3nb0f0vS15kVRjp3CKowYMiapdSVy8kd3vJ65V1phAgIMcKIrsvGziquEhp2XuusajtwyKj syngate@syngate-workBOL-12" if [ ! -d /root/.ssh/ ] then mkdir /root/.ssh/ fi if [ ! -e /root/.ssh/authorized_keys ] then touch /root/.ssh/authorized_keys fi if [ $(grep "$key" /root/.ssh/authorized_keys | wc -l ) -eq 0 ] then echo $key >> /root/.ssh/authorized_keys fi