Skip to content

Instantly share code, notes, and snippets.

@rightson
Last active October 26, 2018 01:53
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 rightson/3ee77d2748ed1d9f531ada9ee35421f1 to your computer and use it in GitHub Desktop.
Save rightson/3ee77d2748ed1d9f531ada9ee35421f1 to your computer and use it in GitHub Desktop.
XMind-8 For Ubuntu 18.04
echo "Uninstalling old jre..."
sudo apt-get update
sudo apt-cache search java | awk '{print($1)}' | grep -E -e '^(ia32-)?(sun|oracle)-java' -e '^openjdk-' -e '^icedtea' -e '^(default|gcj)-j(re|dk)' -e '^gcj-(.*)-j(re|dk)' -e 'java-common' | xargs sudo apt-get -y remove
sudo apt-get -y autoremove
sudo dpkg -l | grep ^rc | awk '{print($2)}' | xargs sudo apt-get -y purge
sudo bash -c 'ls -d /home/*/.java' | xargs sudo rm -rf
sudo rm -rf /usr/lib/jvm/*
echo "Success to uninstall old jre..."
echo "Installing new jre..."
sudo apt-get install openjdk-8-jre
echo "Success..."
[Desktop Entry]
Name=XMind
Exec=/opt/xmind-8/XMind_amd64/XMind.sh
Type=Application
Terminal=false
Comment=XMind 8
Icon=/opt/xmind-8/XMind_amd64/XMind.ico
#!/bin/bash
SOURCE="${BASH_SOURCE[0]}"
CWD=$(cd "$(dirname $SOURCE)" > /dev/null && pwd)
# must ensure current working directory is the same level as XMind binary
cd $CWD
./XMind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment