What's new

Prosody jabber server

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

sHAsHiLx

New Around Here
Hello!

Want to say some words about installing prosody jabber server on my home ASUS N66U router. After installation I've found that it want to run under login/group prosody/prosody. No adduser was found so I was run command

Code:
opkg install busybox
and then
Code:
addgroup prosody
adduser -G prosody -H -D prosody
and add this line to /jffs/configs/passwd.add so that it not needs to add user/group after reboot (or create this file if you don't have it):
Code:
prosody:x:1:1:Linux User,,,:/opt/home/prosody:/bin/sh
and also to /jffs/configs/shadow.add:
Code:
prosody:!:16549:0:99999:7:::
then it still not want to run because startup script was runned by root user. I've installed coreutils by
Code:
opkg install coreutils
ans now i can use su command, so
Code:
su - prosody -c '/opt/etc/init.d/S34prosody start'
is worked but complaints about config files. edited it to my needs and successfully started server. registered user by command
Code:
prosodyctl register username jabber.server.org Myc001pAssWord
allowed connections to jabber server outside and also allow s2s (server-to-server).
iptables part can be putted to (this part i was get from entware transmission wiki):
Code:
nano -w /jffs/scripts/firewall-start
paste the following
Code:
#!/bin/sh
iptables -I INPUT -p tcp --destination-port 5222 -j ACCEPT
iptables -I INPUT -p udp --destination-port 5222 -j ACCEPT
iptables -I INPUT -p tcp --destination-port 5269 -j ACCEPT
iptables -I INPUT -p udp --destination-port 5269 -j ACCEPT
then make it executable:
Code:
chmod a+rx /jffs/scripts/firewall-start
one thing that for now I need to start it manually by
Code:
su - prosody -c '/opt/etc/init.d/S34prosody start'
Maybe someone can make modification to prosody startup script so that it runs by needed user and also there will be great if maintainer of this package added as dependencies busybox (and coreutils if start script will be corrected to use su).
 
Last edited:

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top