J2EE with Netbeans and Tomcat with Ubuntu Mate

You should have installed a recent java jdk. If you want also use java FX install the Oracle jdk. Open jdk has some trouble with java FX cause licences.
J2EE may not be downloaded from Oracle separately.
Install Netbeans from the Ubuntu repository and download tomcat .gz file from http://tomcat.apache.org/download-80.cgi.
Netbeans will be version 8.1 and I use tomcat 8.5.15. My OS is Ubuntu Mate 17.04.
Extract the apache-tomcat-8.5.15.tar.gz to your home-folder or where ever you want.
Start Netbeans and select from the Tools menu Plugins.
Add Java EE Base and EjB and EAR plugins.

(click to enlarge)

Without the EjB and EAR plugin an „javaee-endorsed-api-7.0.jar missing error“ will raise, when you start a new project.

Go to the Tool menu and choose Servers.
Click on Add Server .. down left in the window and choose Apache Tomcat or TomEE.
The server location is the root directory where tomcat was extracted to, i.e. the tomcat folder in your home folder.
Enter a username and a password and leave the option „Create user …“ checked.

There is also a well known bug in the tomcat configuration you have to fix.
Open the server.xml in <tomcat-folder>/bin set the connector tag as comment and define the connector like this:

<Connector
connectionTimeout=“20000″
port=“8080″
protocol=“HTTP/1.1″
redirectPort=“8443″
server=“Apache-Coyote/1.1″
/>

(click to enlarge)

That’s it.
Now you can start a new project and test the installation. When click on the green arrow for „run project“ the code will be deployed, tomcat is starting and a new browser-window or tab opens with the result of your code.
This setup is so much easier than with MS Windows. And except download times you will be back at work in less than 15 minutes.

(click to enlarge)

 

How to install more screensavers on mate desktop

This should work for all Ubuntu linux versions. It’s testet with Linux Mint Mate 17.1 Rebecca.

Install srceensaver packages:

sudo apt-get install xscreensaver-data-extra xscreensaver-gl-extra

Make them usable with Mate:

cd /usr/share/applications/screensavers
sudo perl -p -i -e 's/OnlyShowIn=GNOME;/OnlyShowIn=GNOME;MATE;/g' *.desktop

Now you have a big selection of screensavers in your preferences.

Credits to Sergey Potapov and bladerunner6978.
http://greyblake.com/blog/2013/02/02/install-more-screensavers-on-mate-desktop/

CrunchbangPlusPlus Add launcher to tint2 panel

After installation of #!++ are some launcher defined in the tint2 configuration, but not shown.
Open the file tint2rc from the menu by selecting

Settings -> tint2 -> Edit config file

menu

Add a L to the panel_items entry in front of TSC. L is for launchers.

panel

Go to the Launcher section.
There are four launcher_icon_app entries. The both in the middle do not work.
Change them to Thunar.desktop and geany.desktop. Gedit is not installed by default in #!++.
Creating launchers is very easy.

launcher

Restart tint2.

menu1

The result should be like the picture below.

tint2