Eclipse headless on Centos 6
When I was looking for tools, which would help me with editing of RPM spec files, I decided to use Eclipse + Linux tools plugin. I found, it is unusable on my Windows desktop for 2 reasons:
- there is no rpmlint on Windows, making Linux tools load one cpu core to 100%
- i needed to transfer every change to linux machine and run rpm build
So I decided to create a dedicated virtual machine for rpm builds, on OpenVZ, running Eclipse and all needed plugins (git and Linux tools).
To install Eclipse dependencies do:
yum install xorg-x11-xauth gtk2 libXtst dejavu-sans-fonts dejavu-sans-mono-fonts dejavu-serif-fonts
Then you need Java (download JDK6 from http://java.oracle.com) and Eclipse (download from http://www.eclipse.org/downloads/).
Unpack Eclipse in /opt
Make sure you have this in /etc/ssh/sshd_config
X11Forwarding yes
I am using MobaXterm as Windows X server and putty to start Eclipse.
Start Putty, set Connection > SSH > X11 > Enable X11 forwarding, login to linux machine, type /opt/eclipse/eclipse and you should see Eclipse running.