Wednesday, 18 June 2014

Installing netbeans 8.0 on debian wheezy

We provide over 200 debian wheezy desktops in student labs and are currently getting another desktop image ready for the next academic year. Here's the steps we took to install netbeans 8.0 along with a script to add some post install tweaks. These desktops are multi-user, running the Mate desktop. To do a multi-user install of netbeans, you need to run the installer as root.
  1. log in as a normal user.
  2. download the netbeans installer from https://netbeans.org/
  3. su to root in a terminal.
  4. run the netbeans installer from the command line at the root prompt.
  5. click the customize button to install glassfish and tomcat.
  6. change the install path for each package to /opt/<name of package>
Once done, we needed to perform some post-install tweaks.
  • We needed to fix permissions to the installed files and directories.
  • The netbeans menuitem did not appear and so that needed to be added.
  • And the third tweak was a workaround with the mouse focus not matching the mouse pointer and disappearing menus as described in this bug
To make things easy, here's a bash script to do the above tweaks.

We run the Mate desktop environment and so this script sets the DESKTOP_SESSION variable to mate for the netbeans process. If you use gnome3 then DESKTOP_SESSION=gnome-shell is what you want. Edit the script accordingly. This environment variable is used to get around the disappearing menus/mouse pointer bug.

No comments:

Post a Comment