LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-03-2011, 01:37 PM   #1
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Xubuntu, Slackware, Amazon Linux
Posts: 1,905
Blog Entries: 20

Rep: Reputation: 126Reputation: 126
looking for lightweight IM/xmpp server


I am looking for a lightweight IM/xmpp server. By lightweight I mean a very minimum of extra package needs for it, and most definitely not an SQL database or LDAP requirement. It doesn't need distributed access to other servers or even multimedia. The use will be text-only, in a small group (5 people). It would be nice if it can be configured to only listen on 127.0.0.1.

FYI, I will not entertain discussion of SQL in this thread.
 
Old 10-03-2011, 05:29 PM   #2
waqas
LQ Newbie
 
Registered: Oct 2011
Posts: 4

Rep: Reputation: Disabled
Prosody - http://prosody.im/

It's probably the most lightweight (yet full featured) XMPP server you could find. The default storage backend is text files.

Dependencies: http://prosody.im/doc/depends

The configuration file should be easily readable. To make it listen only on 127.0.0.1, add this to the global config section (top part):

c2s_interface = "127.0.0.1"
s2s_interface = "127.0.0.1"

Feel free to join the Prosody chatroom, which is usually quite active: http://prosody.im/discuss

Disclaimer: I'm one of the Prosody authors.
 
1 members found this post helpful.
Old 10-03-2011, 05:38 PM   #3
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
I've set up Openfire before and was pretty happy with it, only gave it 1 cpu and 1GB of ram - there were no extra package dependencies from memory plus it has plugin capability.
 
Old 10-03-2011, 09:36 PM   #4
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Xubuntu, Slackware, Amazon Linux
Posts: 1,905

Original Poster
Blog Entries: 20

Rep: Reputation: 126Reputation: 126
I decided to give prosody a try because:
  • there is a prosody package for Ubuntu 11.04, but not one for openfire
  • Lua is at the top of my "want to learn a new language" list

I have these new questions:

What is port 5347 used for? That one is not listed in /etc/services (although 5222 and 5269 are).

Edit: This is version 0.7.0 on Ubuntu 11.04. But I also installed 0.6.1 on another server with Ubuntu 10.04 LTS (these versions are what Ubuntu had packaged). In the latter case, there is no listening on port 5347.

How would I specify 2 addresses to listen on? This:
Code:
c2s_interface = "127.0.0.1,172.30.1.5"
s2s_interface = "127.0.0.1,172.30.1.5"
or this:
Code:
c2s_interface = { "127.0.0.1", "172.30.1.5" }
s2s_interface = { "127.0.0.1", "172.30.1.5" }
FYI: if I can use SSL/TLS and listen on alternate non-standard ports, I won't need to listen only on the localhosts (in which my users would be limited to port forwarding via SSH).

Is there any automatic association of vhost names to real internet domain names (e.g. I get logged into my user name @ the vhost name that I used to connect with), or is it all fakery (e.g. I can pick any vhost name I want and it only makes sense in the context of my physical server ... e.g. "thor@asgard.yggdrasil")? Can I use other character set (e.g. "hermóšr@įsgaršr.yggdrasil")?

Any chance there is a xmpp client in Lua ... especially if it can run in text mode (e.g. running the client without X being available, such as at the remote end of an ssh connection without X forwarding enabled)? I would use this for access testing purposes, but also routinely at times.

Last edited by Skaperen; 10-03-2011 at 10:11 PM.
 
Old 10-04-2011, 12:57 AM   #5
waqas
LQ Newbie
 
Registered: Oct 2011
Posts: 4

Rep: Reputation: Disabled
The correct form is:

c2s_interface = { "127.0.0.1", "172.30.1.5" }
s2s_interface = { "127.0.0.1", "172.30.1.5" }

Ports can be configured of course. The default is:

c2s_ports = { 5222 }
s2s_ports = { 5269 }

documented here: http://prosody.im/doc/configure#port...twork_settings

5347 is the default port for external components to connect. It listens on 127.0.0.1 by default:
http://prosody.im/doc/components#add...rnal_component

You can use any hostname, including e.g., internal hostnames or IPs. It shouldn't have non-hostnamey characters (like spaces), otherwise it doesn't matter (unless you want federation with other servers to work). hermóšr@įsgaršr.yggdrasil would work fine; XMPP is UTF-8 based.

The Prosody team didn't write a Lua based client yet, so no. We do have a CLI tool (Clix), and a bot framework (Riddim), based on Verse (our Lua based XMPP library), if you are into that sort of thing

This page has a list of CLI clients, though I haven't used them enough to recommend any: http://xmpp.org/xmpp-software/clients/

P.S.: If 0.6 works for you, great. Otherwise do consider upgrading to 0.8.2 (the current stable), which has tons of improvements. Browse back through http://blog.prosody.im/ to see changes; our package repository: http://prosody.im/download/package_repository
 
Old 10-04-2011, 02:12 AM   #6
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Xubuntu, Slackware, Amazon Linux
Posts: 1,905

Original Poster
Blog Entries: 20

Rep: Reputation: 126Reputation: 126
It does not appear that IPv6 works. Can you confirm?
 
Old 10-04-2011, 02:34 AM   #7
waqas
LQ Newbie
 
Registered: Oct 2011
Posts: 4

Rep: Reputation: Disabled
Confirmed. IPv6 is working in nightly builds, and the soon to be released version 0.9.
 
Old 10-04-2011, 01:51 PM   #8
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Xubuntu, Slackware, Amazon Linux
Posts: 1,905

Original Poster
Blog Entries: 20

Rep: Reputation: 126Reputation: 126
Thanks. Once I have things stabilized, I may be trying the build from source. It's just messy to do that with Ubuntu as I have to install everything to a different location than what the Ubuntu package is set up for, to avoid fouling up the package management.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
XMPP server cross compiling jisywh Linux - Newbie 0 08-15-2011 08:40 AM
LXer: Deciphering the jibber jabber: getting started with your own self-hosted XMPP server LXer Syndicated Linux News 0 01-20-2011 12:20 AM
Lightweight server window manager jantman Linux - Software 1 10-31-2007 08:21 AM
lightweight antivirus for mail server? JustinHoMi Linux - Server 10 10-26-2007 02:45 PM
Lightweight Server Distro VideoLinux Linux - Distributions 3 05-19-2006 10:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration