How to install and configure Openfire & Spark

Posted by Md. Mahidul Hasan on 3:27 AM with No comments
How to install and configure Openfire & Spark

Question_1: How to install openfire server?
Update the source list:
~# vim /etc/apt/sources.list
deb http://mirrors.kernel.org/debian/ squeeze main contrib non-free
deb-src http://mirrors.kernel.org/debian/ squeeze main contrib non-free
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free
~# apt-get update
~# apt-get upgrade

Install dependency software (Java):
~# apt-get install sun-java6-jre

Download openfire:
~# wget http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3.6.4_all.deb
~# dpkg -i *openfire*.deb
~# vim /etc/openfire/openfire.xml
<interface>192.168.1.2</interface>

Make sure to open these ports from your firewall,
3478 - STUN Service (NAT connectivity)
3479 - STUN Service (NAT connectivity)
5222 - Client to Server (standard and encrypted)
5223 - Client to Server (legacy SSL support)
5229 - Flash Cross Domain (Flash client support)
7070 - HTTP Binding (unsecured HTTP connecitons)
7443 - HTTP Binding (secured HTTP connections)
7777 - File Transfer Proxy (XMPP file transfers)
9090 - Admin Console (unsecured)
9091 - Admin Console (secured)

Restart the openfire server:
~# /etc/init.d/openfire restart

Now go to the browser and follow the simple instruction one by one.
http://192.168.1.2:9090


Requirements:
1. database server (Optional)

Question_2: How to install spark client?
mahidul@mahidul:~$ sudo apt-get install spark
mahidul@mahidul:~$ spark &
Wait a few moment to start spark. After that add your user name, password and server ip address to connect with your server.

We can also install the spark from tar file
mahidul@mahidul:~$ sudo spark_2_6_3.tar.gz
mahidul@mahidul:~$ sudo tar -zxvf spark_2_6_3.tar.gz
mahidul@mahidul:~$ sudo mv Spark/ /usr/local/
mahidul@mahidul:~$ sudo ln -s /usr/local/Spark/spark /usr/local/bin/spark
mahidul@mahidul:~$ sudo /usr/local/bin/spark/starter
mahidul@mahidul:~$ spark &

Optional tuning:

mahidul@mahidul:~$ sudo vim /usr/local/Spark/Spark
#for i in `ls "$app_home/lib/windows" | egrep "\.(jar$|zip$)"`
#do
# add_class_path "$app_home/lib/windows/$i"
#done


Wait a few moment to start spark. After that add your user name, password and server ip address to connect with your server.