Last active
October 26, 2018 01:53
-
-
Save rightson/3ee77d2748ed1d9f531ada9ee35421f1 to your computer and use it in GitHub Desktop.
XMind-8 For Ubuntu 18.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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