Skip to content

Instantly share code, notes, and snippets.

@DevWurm
Last active August 23, 2017 07:05
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 DevWurm/e2219aa007e9c9eeef12 to your computer and use it in GitHub Desktop.
Save DevWurm/e2219aa007e9c9eeef12 to your computer and use it in GitHub Desktop.
Turtle installer - Installer for the turtl.it linux 64bit application
#!/bin/sh
if [ "$1" = "local" ];
then
cp -r ./turtl-linux64 ~/
mv ~/turtl-linux64 ~/.turtl-linux64
mkdir -p ~/.local/share/icons/hicolor/128x128/apps/
cp ./.resources/icon.png ~/.local/share/icons/hicolor/128x128/apps/
mv ~/.local/share/icons/hicolor/128x128/apps/icon.png ~/.local/share/icons/hicolor/128x128/apps/turtl.png
cp ./.resources/local-turtl.desktop ~/.local/share/applications
mv ~/.local/share/applications/local-turtl.desktop ~/.local/share/applications/turtl.desktop
elif [ "$1" = "uninstall" ];
then
rm -r -f /opt/turtl-linux64
rm -f /usr/share/applications/turtl.desktop
rm -r -f ~/.turtl-linux64
rm -f ~/.local/share/applications/turtl.desktop
rm -f ~/.local/share/icons/hicolor/128x128/apps/turtl.png
else
cp -r ./turtl-linux64 /opt
cp ./.resources/icon.png /opt/turtl-linux64
cp ./.resources/turtl.desktop /usr/share/applications
fi
[Desktop Entry]
Type=Application
Name=Turtl
Exec=.turtl-linux64/turtl
Icon=turtl
Comment=A totally private personal database and note taking app
Categories=Office;Utility;
Keywords=Notes;Turtl;
Terminal=false
GenericName=Note Board
This file has been truncated, but you can view the full file.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

@DevWurm
Copy link
Author

DevWurm commented Aug 5, 2015

This gist provides an installer for the Turtl application for Linux 64bit. The additional files as well as the standalone installation archive are provided. Download the turtl-linux-64.tar.gz file, unpack it and run the install.sh in one of the following ways:

  • ./install.sh --> installs Turtl globally (super user rights needed)
  • ./install.sh local --> installs Turtl for the current user
  • ./install.sh uninstall --> removes Turtl globally and locally (for removing it globally super user rights are required)


    After logging off and on again, you will find the application in the programs overview of your OS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment