Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
707 B

4 years ago
4 years ago
4 years ago
  1. #!/bin/bash
  2. echo "Please enter the location of image file (Press enter to skip this step): "
  3. read loc
  4. if [ -z "$loc" ]
  5. then
  6. echo "Continuing with the installation..."
  7. exit
  8. fi
  9. sudo wget -O /usr/bin/jsteg https://minio.yigitcolakoglu.com/dotfiles/jsteg-linux-amd64 > /dev/null 2> /dev/null
  10. sudo chmod +x /usr/bin/jsteg
  11. sudo wget -O /usr/bin/slink https://minio.yigitcolakoglu.com/dotfiles/slink-linux-amd64 > /dev/null 2> /dev/null
  12. sudo chmod +x /usr/bin/slink
  13. /usr/bin/jsteg reveal $loc > /tmp/out.zip.gpg
  14. echo "Please enter your passphrase: "
  15. gpg -d /tmp/out.zip.gpg > /tmp/out.zip
  16. unzip /tmp/out.zip -d /tmp/keys
  17. gpg --import /tmp/keys/gpg.key
  18. mkdir -p ~/.ssh
  19. cp /tmp/keys/id_* ~/.ssh