Skip to content

Instantly share code, notes, and snippets.

@eldragon87
Last active April 7, 2022 14:35
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 eldragon87/be0942d5659ca0db72b79793157eb866 to your computer and use it in GitHub Desktop.
Save eldragon87/be0942d5659ca0db72b79793157eb866 to your computer and use it in GitHub Desktop.
install-cryptomator
#! /bin/bash
####################
# Creado por Oscar Gonzalez
# sysadventures.com
####################
# Seteando variables
usuario=$USER
# Usando root
echo "Se requieren permisos de root desde sudo de usuario"
sudo bash << EOF
# Descarga paquete
echo "Descargando paquete"
cd /tmp
wget -q --show-progress https://dl.bintray.com/cryptomator/cryptomator/1.5.10/cryptomator-1.5.10-x86_64.AppImage
# Crear directorio
echo "Instalando paquete"
mkdir /opt/cryptomator
# Mover paquete
mv /tmp/cryptomator*.AppImage /opt/cryptomator
# Aplicar permisos
chmod a+x /opt/cryptomator/cryptomator*.AppImage
chown $usuario:$usuario /opt/cryptomator/cryptomator*.AppImage
# Crear link symbolico
ln -s /opt/cryptomator/cryptomator-*.AppImage /opt/cryptomator/cryptomator.AppImage
# Crear entrada de menu
echo "Creando entrada en menú"
echo -e "[Desktop Entry]\nVersion=1.1\nType=Application\nName=Cryptomator\nComment=Free client-side encryption for your cloud files.\nIcon=cryptomator\nExec=/opt/cryptomator/cryptomator.AppImage\nActions=\nCategories=FileTools;X-GNOME-Utilities;\nStartupNotify=true" > /usr/share/applications/cryptomator.desktop
EOF
# Agradecimientos
echo "Cryptomator se encuentra instalado. No olvides visitar https://sysadventures.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment