*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

[HOWTO] install a XMPP (Jabber) Server on Nas4Free (Messenger on Localhost)

XigmaNAS Packages
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
ozdesoner
NewUser
NewUser
Posts: 8
Joined: 10 Nov 2015 16:59
Location: Ordu/TURKEY
Status: Offline

[HOWTO] install a XMPP (Jabber) Server on Nas4Free (Messenger on Localhost)

#1

Post by ozdesoner » 24 Mar 2016 19:28

Step 1: Installation of required packages
Login to your NAS4Free box via your web browser of your choice: http{s*}://{your-NAS4Free-IP_address}:{port**} (my's: 192.168.1.250)
Go to Access > Users and Groups
Click On Groups and click on the Add (+) Button.
Type in your group name, group ID (leave as-is), and type in a description, click on Add and apply
Create a new user by clicking the Add (+) Button
Type in the login name of user (ex: soner)
Type in the full name (ex: Soner Ozdemir)
Type and Re-enter your desired password (ex: soner1234)
Specify a User ID, or leave as-is
Specify a shell login (bash is recommended)
Select your primary group (ex: sonerfirma)
Select the additional groups wheel and sshd (recommended for logging in via ssh and for running su - root)
Setup a home directory for read-write access for your user (ex: /home/soner)
*Optional, but recommended* tick the box to allow the user to access the user portal
Click on Add and apply
Go to Services > SSH
Click on Enable, and click on Save and Restart
Sign in to your NAS4Free box on your computer that is either running Windows, Linux, Mac OS X or UNIX via ssh
Windows: download and run PuTTY, and type in the IP Address (my’s: 192.168.1.250) of your NAS4Free box, and select SSH, and click on open.
Type in your username and password
Linux, Unix, and Mac OS X: Run a terminal and type in the following:
ssh -l username ip-address
Where username is your newly created username and ip-address is your NAS4Free IP Address and type in your password to login.
Login as root by typing in:

Code: Select all

su - root
Type in root's password (nas4free)
Enter the following command to install the packages:

Code: Select all

pkg install openfire
Step 2: Configuring System Files
Login as root by typing in:

Code: Select all

su - root
Type in root's password (nas4free)
Copy sample configuration files and make a new one:

Code: Select all

cd /usr/local/etc/openfire
cp keystore.sample keystore
cp openfire.xml.sample openfire.xml
cp security.xml.sample security.xml
cp truststore.sample truststore
Login to NAS4Free via web interface, go to access > users and groups
Syntax for openfire:
Username: openfire
Name: openfire
user ID 1001
shell: nologin
primary group: openfire
additional group: wheel
Add and apply

Go to System > Advanced and click on rc.conf
Add the following variables and values:
Variable---------------------Value
openfire_enable----------------YES
Reboot to apply settings.

Step 3: Configuring XMPP Server via HTTP
Login to Openfire via web interface, go to address bar and type
localhost:9090 (Ex me: 192.168.1.250:9090)
Image
Appear Welcome to Setup and select language click to continue.
Image
In the Server setting you type mail and click to continue.
Image
In the database settings you should Embedded Database and continue.
Image
In the profile settings you should Default and click to continue.
Image
Setup complete and Login to the admin console.
Image
You can make a lot of setting in the console.
First you can create New users on the Users/Groups tabs.
Now Ready XMPP Server.

Step 4: Installing client Other devices (PC, OSX, Linux and Android Phones)
Image
For Windows:
Download http://www.igniterealtime.org/downloads ... _2_7_6.exe and install it.

For Redhat Linux:
Download http://www.igniterealtime.org/downloads ... -2.7.6.rpm and install it.

For Mac:
Download http://www.igniterealtime.org/downloads ... _2_7_6.dmg and install it.

For Android Phones:
Download Talkonaut via Google Play Store and install it.

For Other Linuxs:
# Checking JAVA Version #
$ java -version
java version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.15.10.1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)

# Download Spark Archive file #
$ sudo wget http://download.igniterealtime.org/spar ... 7_5.tar.gz

# Extract Spark Archive file #
$ sudo tar -zxvf spark_2_7_5.tar.gz

# Download Spark Icon #
$ sudo wget https://dl.dropbox.com/u/50880014/spark.png

# Prerequiest library #
$ sudo apt-get install libxtst6:i386 libxi6:i386

Create Desktop shortcut for Spark.
$ sudo nano /usr/share/applications/spark.desktop
[Desktop Entry]
Name=Spark
Version=2.7.5
GenericName=Spark
X-GNOME-FullName=Spark
Comment=ignite realtime Spark IM client
Type=Application
Categories=Application;Utility;
Path=/opt/Spark
Exec=/opt/Spark/Spark
Terminal=false
StartupNotify=true
Icon=/opt/Spark/spark.png
TargetEnvironment=Unity
FOXCONN 45CS/45CSX 2GB RAM 16 GB SSD 4 TB HDD x64-full on Intel Atom CPU 230 @ 1.60GHz Silverstone ML05 Mini-ITX

Post Reply

Return to “Packages”