install java:

install openfire:

JAVA_HOME bugfix:

add to top in /etc/init.d/openfire:

configure:

start daemon

open 127.0.0.1:9090 in browser and follow instructions

reboot && enjoy