Skip to content

Instantly share code, notes, and snippets.

@rightson rightson/XMind.desktop

Last active Oct 26, 2018
Embed
What would you like to do?
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
You can’t perform that action at this time.