Limnoria

  IRC

Limnoria on debian Stretch

 apt install -t stretch-backports limnoria

creation de l’environnement user

adduser user
su - user

Plugins Généraux

ln -s /usr/lib/python3/dist-packages/supybot/plugins/ /home/limnoria

Plugins Git

## JUDD ##
mkdir ~/supybot/git && cd ~/supybot/git/
git clone https://github.com/architek/judd.git
cd judd/supybot/
./pinst.sh /home/supybot/supybot/
cd ~/supybot/plugins/
ln -s ~/supybot/git/judd/supybot/plugins/Judd

## REPOLOGY
cd ~/supybot/git
git clone https://github.com/architek/Repology.git
cd ~/supybot/plugins/
ln -s ~/supybot/git/Repology


# Pour Judd ouvrir le port via iptables pour acceder à la bdd de Debian

 ## Judd
 iptables -t filter -A INPUT -p tcp --dport 5432 -d 18.181.6.246 -j ACCEPT
 iptables -t filter -A OUTPUT -p tcp --dport 5432 -d 18.181.6.246 -j ACCEPT
 echo "JUDD [OK]"

# Création du service

vim /etc/systemd/system/limnoria.service
[Unit]
 Description=Limnoria Supybot
 After=syslog.target
 After=network.target

[Service]
 Environment="PATH=/usr/local/bin:/usr/local/sbin:/usr/local/games:/usr/bin:/usr/sbin:/usr/games:/bin:/sbin:/bin:/opt/local/bin:/opt/local/sbin:/opt/local/games TZ=UTC"
 Type=forking
 ExecStart=/usr/bin/supybot /home/limnoria/stallman/Stallman.conf --daemon
 ExecReload=/bin/kill -HUP $MAINPID
 Restart=always
 User=limnoria

[Install]
 WantedBy=multi-user.target
systemctl enable limnoria.service
systemctl start limnoria.service