Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. #!/bin/bash
  2. #For my nigga. Enzo. The nigga. The niggaist of niggas.
  3. #Do sudo chmod +x nigger.sh in order to make it executable
  4. sudo apt-get update
  5. sudo apt-get upgrade
  6. sudo apt-get install nano
  7. sudo apt-get install git
  8. mkdir git
  9. mkdir ~/.ssh
  10. chmod 0700 ~/.ssh/authorized_keys
  11. touch ~/.ssh/authorized_keys
  12. chmod 0644 ~/.ssh/authorized_keys
  13. sudo sh -c 'echo "ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAj4Bcf8sTh9KMSMOc6bn7kWW1xUGW8blwZvtd+o9KUXsEMkp8zorqN6Gz47TyDkT5Zcw0HORBTXSrJOFyCVUQA37hCMmusHAaW2F3BLMpeeYBU40nfZth+jMKsljmTUk0l/W6ZEboTLksChA4uWG3/bAKTyK8VQisjpXz8npk1xDh1gFScSZItaUuUR09nnQfnWbNbqoERvzctSzAc3rUgQLLPmchVNz+T5DvWuYnNnqYR/FH64IhwxRq6RiUxtCcYsoh7CeVkh2U/cZSiGLRyhrTId4nk6SC5TPY1lxwSWYWqS9x9SLfpFz+DacW8e1pVSXa4l5FelW/69CqyJEm+w== rsa-key-20160502" >> ~/.ssh/authorized_keys'
  14. mkdir scripts
  15. echo -e "#!/bin/bash\ncd Retropie-Setup\nsudo ./retropie_setup.sh" ~/scripts/update.sh
  16. sudo chmod +x ~/scripts/update.sh
  17. sed -i 's/#Password Authentication yes/Password Authentication no/g' /etc/ssh/sshd_config
  18. sed -i 's/Port 22/Port 5656/g' /etc/ssh/sshd_config
  19. cat <(crontab -l) <(echo "* 5 * * 0 sudo apt-get update") | crontab -
  20. cat <(crontab -l) <(echo "5 5 * * 0 sudo apt-get upgrade") | crontab -
  21. cat <(crontab -l) <(echo "10 5 * * 0 ~/scripts/update.sh") | crontab -
  22. service sshd restart
  23. git clone --depth=1 https://github.com/RetroPie/RetroPie-Setup.git
  24. cd RetroPie-Setup
  25. sudo ./retropie_setup.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement