More and more users have more and more memory installed. In order to take advantage of their memory, some users move cache of Firefox or Chrome to memory from their disk, some Linux users move their temp directories to tempfs.
I mentioned MyEclipse needs swap, or virtual memory, during installation. I came across almost the same problem when I installed Oracle Database Express Edition.
This system does not meet the minimum requirements for swap space. Based on the amount of physical memory available on the system, Oracle Database 10g Express Edition requires 1024 MB of swap space. This system has 0 MB of swap space. Configure more swap space on the system and retry the installation.
I don't have swap partition or swap file at that time, but the installer ignored its own warning and installed itself successfully. I thank Oracle.
I repeat my point here, swap is not necessary in Linux desktop. Hope those applications that still require swap or virtual memory consider it. For those still not sure whether you can remove swap, please reduce your swappiness to 0 to see if you can live without swap.
Sunday, September 25, 2011
Wednesday, September 07, 2011
I tried Ubuntu 11.10 Oneiric Ocelot Beta 1. LightDM is lighter and beautiful. Maybe I can keep using Ubuntu on my ThinkPad T42, rather than jumping onto Lubuntu.
Due to the retiring of the "Operating System Distributor License for Java (DLJ)", Sun / Oracle JDKs / JREs cannot be installed by enabling Canonical Partners' repository any more. It's a good news to OpenJDK. With more usage of OpenJDK, we can expect higher priority and fewer bugs.
Since Java 7 is out, the first thing I did is installing OpenJDK 7. From Ubuntu Software Centre, you can only install JRE. I miss Synaptic Package Manager.
sudo apt-get install openjdk-7-jdk
Change default JRE of system from OpenJDK 6 to 7.
sudo update-alternatives --config java
I got following error when installing Subclipse plugin to Eclipse.
An internal error occurred during: "Install download0".
Library /usr/lib/i386-linux-gnu/libsoftokn3.so does not exist
Creating a symbolic link sovled it.
sudo ln -s nss/libsoftokn3.so libsoftokn3.so
After Subclipse is installed, I had a small problem in starting Eclipse 3.7 Indigo, but it's a common one.
sudo apt-get install libsvn-java
in eclipse.ini solved it.
m2eclipse and Google plugin for Eclipse work out of box. Maven 3.0.3 works fine with OpenJDK 7.
Apache Tomcat 7.0.21 works fine with OpenJDK 1.7.0 but if you haven't created the above symbolic link, you'll get below error when starting Tomcat.
java.security.ProviderException: Library /usr/lib/i386-linux-gnu/libsoftokn3.so does not exist
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
I also tried to install Gnome Shell.
sudo apt-get purge gnome-shell
Installation finished successfully but later when I specified Gnome to login, I got a dialog box saying
failed to load session "gnome"
There are a couple of solutions to the problem but none works for me, so I installed classic Gnome.
sudo apt-get install gnome-session-fallback
A fantastic experience, I'm looking forward to its release next month.