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
and then
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):
and also to /jffs/configs/shadow.add:
then it still not want to run because startup script was runned by root user. I've installed coreutils by
ans now i can use su command, so
is worked but complaints about config files. edited it to my needs and successfully started server. registered user by command
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):
paste the following
then make it executable:
one thing that for now I need to start it manually by
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).
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
Code:
addgroup prosody
adduser -G prosody -H -D prosody
Code:
prosody:x:1:1:Linux User,,,:/opt/home/prosody:/bin/sh
Code:
prosody:!:16549:0:99999:7:::
Code:
opkg install coreutils
Code:
su - prosody -c '/opt/etc/init.d/S34prosody start'
Code:
prosodyctl register username jabber.server.org Myc001pAssWord
iptables part can be putted to (this part i was get from entware transmission wiki):
Code:
nano -w /jffs/scripts/firewall-start
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
Code:
chmod a+rx /jffs/scripts/firewall-start
Code:
su - prosody -c '/opt/etc/init.d/S34prosody start'
Last edited: