Last active
March 13, 2019 05:07
-
-
Save chetanppatil/750e0dc2818a8e6316616f6900acfec3 to your computer and use it in GitHub Desktop.
Install Apache Netbeans 10.0 On Linux From Binary With Desktop Entry
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 | |
cd /tmp || exit | |
echo "Downloading Netbeans 10.0 Binary ..." | |
wget -q https://www-us.apache.org/dist/incubator/netbeans/incubating-netbeans/incubating-10.0/incubating-netbeans-10.0-bin.zip | |
unzip incubating-netbeans-10.0-bin.zip | |
rm incubating-netbeans-10.0-bin.zip | |
echo "Installing to opt..." | |
if [ -d "/opt/netbeans" ];then | |
sudo rm -rf /opt/netbeans | |
fi | |
sudo mv netbeans /opt/netbeans | |
echo "Creating symbolic link..." | |
if [ -L "/usr/bin/netbeans" ];then | |
sudo rm -f /usr/bin/netbeans | |
fi | |
sudo ln -s /opt/netbeans/bin/netbeans /usr/bin/netbeans | |
echo "Installation completed successfully." | |
#echo "Downloading Apache Netbeans Logo...." | |
#cd /opt/netbeans | |
#wget -q https://cwiki.apache.org/confluence/download/attachments/75974482/[email protected] | |
echo "Creating desktop entry for Netbeans." | |
cat > ~/.local/share/applications/netbeans.desktop <<EOL | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=Apache Netbeans | |
Exec=/bin/sh "/opt/netbeans/bin/netbeans" | |
Icon=/opt/netbeans/nb/netbeans.png | |
Terminal=false | |
Type=Application | |
Categories=Development; | |
StartupNotify=true | |
EOL | |
echo "Done...You can use Netbeans 10.0!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment