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