Saturday, 21 November 2015

Installing Greenfoot Java in Linux

Greenfoot is a great tool for learning Java programming. One issue I ran into was setting the default Java environment for it to install.

As it needs JavaFX, it needs the official flavour from Oracle. Most people will have the Open JDK libraries installed along side with Oracle's Java too.









By using the following command, you can select the version that Greenfoot needs and completing the installation.

sudo update-alternatives --config java

Select the "/usr/java/jdk1.8.0_65/jre/bin/java" or whatever the latest version is for you.
 
Then we can open Greenfoot and code away.



Thursday, 5 November 2015

Wifi not resuming after suspend

In Lubuntu 15.04 wifi there is a bug that causes the wifi to not re-connect after the suspend state is removed. I've found a simple fix to remedy this situation.

I'm using a Acer laptop with the AR9462 Wireless Network Adapter, but this seems to be a generic fix from what I can see so far.

We need to create a file under /etc/pm/config.d/ and add a instruction to suspend a kernel module. So, fire up your terminal and edit the file.

sudo nano /etc/pm/config.d/config

Then add this line into the new file:

SUSPEND_MODULES="iwlwifi"

I've found this quick fix to work well on suspend resume on Lubuntu 15.04.