Skip to content

Instantly share code, notes, and snippets.

@Makova
Last active October 27, 2015 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Makova/6e4d7d9e6b3346e955c5 to your computer and use it in GitHub Desktop.
Save Makova/6e4d7d9e6b3346e955c5 to your computer and use it in GitHub Desktop.
Instalar Geany
#!/usr/bin/env bash
# Usage: ./geany.sh [host]
host="${1:-manu@cabas.ugr.es}"
# The host key might change when we instantiate a new VM, so
# we remove (-R) the old host key from known_hosts
ssh-keygen -R "${host#*@}" 2> /dev/null
# tar cj . | ssh -o 'StrictHostKeyChecking no' "$host" '
# sudo rm -rf ~/chef &&
# mkdir ~/chef &&
# cd ~/chef &&
# tar xj &&
sudo bash geany.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment