IRC Server

Posted by Teno 
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Now, this forum is in read-only mode. You find details Details hereContinue on /r/PirateBox
IRC Server
February 09, 2018 05:18PM
Hello there!!

I was looking insde and found som IRC server option, but cannot get it work.

Was looking into the GitHub and didn't (understand) what I was doing, even when modifying bot piratebox and piratebox_alf files.

Can anyone give me a hint?

Cheers!

Marcelo from Argentina
Re: IRC Server
February 09, 2018 05:43PM
Hi,
yes, there is currenlty an issue....
You need to edit /opt/piratebox/init.d/piratebox_alt., the IRC section needs to look like this

       #Start IRC Server
       if [ "$ENABLE_IRC_SERVER" = "yes" ] ; then
           . $CONF_IRC
           IRC_PARMS="--daemon --motd $IRC_MOTD "

           if [ ! -z "$IRC_STATEDIR" ] ; then
                IRC_PARMS=" $IRCPARMS --statedir $IRC_STATEDIR "
           fi
           echo  "Starting Miniircd..."
           start-stop-daemon $IRC_USER -m -S -p $PIDFILE_IRC -x $PIRATEBOX/bin/miniircd.py -- $IRC_PARMS
           echo $?
        fi
     fi

best regards Matthias
Re: IRC Server
February 09, 2018 06:01PM
Wow, I was messing with cron...

@reboot /opt/piratebox/bin/miniircd.py

But no luck!

Is I do /opt/piratebox/bin/miniircd.py from ssh it do work very well!

Still not working with the code moded in piratebox_alt

Anyway, will first test it tomorrow at Red Cross Argentina, will post pictures!!!

Cheers!
Re: IRC Server
February 09, 2018 06:19PM
What (error) messages do you get during
/opt/piratebox/init.d/piratebox_alt stop
/opt/piratebox/init.d/piratebox_alt start
Re: IRC Server
February 14, 2018 07:56PM
Hello!!!

After the success of this weekend, here we are!

Hope this helps (us?)

Cheers!

Marcelo from Argentina

Using sudo:
[alarm@alarmpi ~]$ sudo /opt/piratebox/init.d/piratebox_alt stop
Stopping script piratebox
Stopping hostap...
start-stop-daemon: warning: failed to kill 390: No such process
1
Stopping dnsmasq...
start-stop-daemon: warning: failed to kill 396: No such process
1
Removing firewall rules...
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
0
Stopping droopy...
start-stop-daemon: warning: failed to kill 419: No such process
1
Stopping IRC...
start-stop-daemon: warning: failed to kill 440: No such process
1
Stopping lighttpd...
1
Stopping wifi interface wlan0
[alarm@alarmpi ~]$

sudo /opt/piratebox/init.d/piratebox_alt start
Starting script piratebox
Generating hosts file ....
Generating dnsmasq.conf .....
Generating Environment-config for lighttpd .....
Empty tmp folder
rm: cannot remove '/opt/piratebox/tmp/': Is a directory
Copy over directory design files
Generating json configuration file: /opt/piratebox/www/piratebox_config.json
Starting hostap...
0
  Setting up wlan
Bringing up wifi interface wlan0
Setting up wlan0
Starting dnsmasq...
0
Setting up firewall rules...
0
Starting droopy...
0
Generated HTML-Shoutbox File.
CRITICAL: /opt/piratebox/share/Shared modified 1229 minutes ago. Threshold set to 5 minutes. Cannot update.
Generated HTML-DiskUsage File.
Starting lighttpd...
0
Starting Miniircd...
Usage: miniircd.py [options]

miniircd.py: error: Running this service as root is not recommended. Use the --setuid option to switch to an unprivileged account after startup. If you really intend to run as root, use "--setuid root".
2
[alarm@alarmpi ~]$
Re: IRC Server
February 20, 2018 10:13AM
Hi,
thanks for testing. This is a bug .. even in the hotfix branch - meh.

The correct segment looks like this:

      #Start IRC Server
       if [ "$ENABLE_IRC_SERVER" = "yes" ] ; then
           . $CONF_IRC
           IRC_PARMS="--setuid $IRC_USER --daemon --motd $IRC_MOTD "

           if [ ! -z "$IRC_STATEDIR" ] ; then
                IRC_PARMS=" $IRCPARMS --statedir $IRC_STATEDIR "
           fi
           echo  "Starting Miniircd..."
           start-stop-daemon -m -S -p $PIDFILE_IRC -x $PIRATEBOX/bin/miniircd.py -- $IRC_PARMS
           echo $?
        fi

I thought, I already fixed that one *wondering*

best regards Matthias
Re: IRC Server
March 05, 2019 01:38AM
IRC SERVER??? NICE! How long has THAT been a thing? Oh Well, gotta upgrade AGAIN! :-)
Re: IRC Server
March 23, 2019 06:18AM
If I make the edits to opt/piratebox/init.d/piratebox_alt how do I access the IRC from index.html
Re: IRC Server
April 16, 2019 01:54PM
IRC server needs to be enabled via /opt/piratebox/conf/piratebox.conf

You need an extra IRC client on you computer to get access to it.


If someone will put some effort in it, it might be possible to get that [kiwiirc.com] running on the RPi.
(it runs on nodeJS)