Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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