irc.segured.org & https://webchat.segured.org
$ hostnamectl set-hostname irc
$ adduser ircd
$ apt update; apt upgrade -y
$ apt install git curl wget apt-transport-https dirmngr git build-essential gcc make g++ gettext libssl-dev gettext-lint cmake libmysql++-dev tcl-dev
$ dpkg-reconfigure locales #Seteamos es_ES.UTF-8 y presionamos [ENTER]
$ su - ircd
Clone the required repositories
$ mkdir core; cd core
$ git clone https://github.com/unrealircd/unrealircd.git
$ git clone https://github.com/anope/anope.git
$ git clone https://github.com/alxsenen/ircd.git #Este es solo para la red SeguRED
$ git clone https://github.com/eggheads/eggdrop.git
Extra git configurations
$ git config --global user.email "[email protected]"
$ git config --global user.name "Name"
This line is for store git credential after clone repositorie (Optional)
$ git config credential.helper store
INstalling MySQL/MariaDB
$ apt install mysql-server
Setting up MySQL root password
$ /etc/init.d/mysql stop
$ mysqld_safe --skip-grant-tables &
$ mysql -uroot
$ use mysql;
$ update user set authentication_string=PASSWORD("mynewpassword") where User='root';
$ flush privileges;
$ quit
Starting MySQL Server normally
$ sudo /etc/init.d/mysql stop
$ sudo /etc/init.d/mysql start
Setting up MySQL database for Anope IRC Services
$ CREATE DATABASE db_ircd;
$ CREATE USER 'db_ircd'@'%' IDENTIFIED BY 'db_ircd';
$ GRANT ALL PRIVILEGES ON * . * TO 'db_ircd'@'%';
$ FLUSH PRIVILEGES;
Setting up iptables rules allowing access by 443 port
iptables -t nat -I PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 6667
iptables-save
Setting up UnrealIRCd and compile
$ cd ~/core/unrealircd
$ ./Config # presionamos [enter] en todas las opciones
$ make; make install
$ cd ~/unrealircd; mv conf conf-orig; ln -s ~/core/ircd/uconf; mv uconf conf
Setting up Anope IRC Services
$ cd ~/core/anope
$ ./Config # presionamos [enter] en todas las opciones
$ ./extras # para habilitar los módulos [ m_mysql.cpp | m_sql_log.cpp | m_ssl_openssl.cpp | stats ]
$ make; make install
$ cd ~/services; mv conf conf-orig; ln -s ~/core/ircd/uconf; mv sconf conf
Starting UnrealIRCd Server
$ cd ~/unrealircd; ./unrealircd start
Starting Anope IRC Services
$ cd ~/services; ./services
Setting up nginx webserver
$ echo "export LC_CTYPE=en_US.UTF-8" >> ~/.bashrc; source ~/.bashrc
$ apt update; apt upgrade -y
$ apt install nginx nginx-full
$ nano /etc/nginx/sites-available/default # Cambiamos la variable server_name _; por server_name webchat.segured.org;
$ nginx -t # Comprobamos la configuración del nginx
$ services nginx restart
Setting up nginx webserver by https
$ apt install python-certbot-nginx
$ certbot --nginx -d webchat.segured.org
$ /etc/init.d/nginx reload
Setting up webchat by TheLounge
$ apt install nodejs
$ cd /opt; wget https://github.com/thelounge/thelounge/releases/download/v4.0.0/thelounge_4.0.0-1_all.deb
$ apt install ./thelounge_4.0.0-1_all.deb
$ adduser ircd
$ su ircd
$ cp -r /etc/letsencrypt/archive/webchat.segured.org/ /etc/thelounge/
$ mv webchat.segured.org/ ssl
$
Starting Anope IRC Services
$ cd ~/services; ./services
- MIT license
- Copyright 2020 © irc.segured.org.