Monday, 16 June 2008

Ubuntu + Juniper

I've now successfully set up my development environment on Ubuntu so I can work from home without needing my work laptop. I had a few issues with installing Juniper, but these have now been resolved ...

First issue: Firefox wouldn't install the Java Plugin. Solution: apt-get the plugin and then put a symlink in the Firefox plugins folder ...

> sudo apt-get install sun-java5-plugin sun-java5-fonts

> sudo ln -s /usr/lib/jvm/java-1.5.0-sun/jre
/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox/plugins

Second issue: the juniper install needs to run as root and will prompt you for the root password. Solution: set a root password ...

> sudo -i
> passwd

To lock the root account again after you've finished ...

> sudo passwd -l root

And should you need to unlock (ie. set the password back to what it was before) ...

> sudo passwd -u root

Third issue: the juniper scripts don't work properly so it attempts to install them every time (note that this doesn't seem to prevent you from logging in!) Solution: You need to overwrite the default scripts with some provided in this rather excellent post on Ubuntu Forums.

Fourth issue: the lastest Subversive plugin for Eclipse doesn't seem to work on Ubuntu. Solution: use the old one:

> http://www.polarion.org/projects/subversive/download/1.1/update-site/

Fifth issue: Eclipse crashing randomly when it attempts to synchronise with SVN. Solution: this was either because I was running Eclipse under Java6 or because I had Java5 and Java6 both installed - it went away when I rolled back to Java5 only.

That should do it!