Created
January 20, 2016 21:25
-
-
Save cyper85/71ddca239373eded0494 to your computer and use it in GitHub Desktop.
WLAN im studNET in Leipzig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Passwort ändern | |
passwd | |
# Programme installieren | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
sudo apt-get -y dist-upgrade | |
sudo apt-get -y install nohup vim sshpass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo touch /usr/local/bin/studnet.sh | |
sudo chmod u+rwx /usr/local/bin/studnet.sh | |
sudo vim /usr/local/bin/studnet.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/bin/nohup /bin/sh /usr/local/bin/studnet.sh > /var/log/studnet.log & | |
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while true | |
do | |
sshpass -p 'PASSWORT' ssh -t -t -o StrictHostKeyChecking=no MIETERNUMMER@139.18.143.253 | |
echo "done" | |
sleep 5 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://blog.stadtplan-ilmenau.de/2014/01/wlan-im-studnet-in-leipzig/