GNU/Linux >> Linux Esercitazione >  >> Ubuntu

Come installare The Lounge IRC Client su Ubuntu 20.04

The Lounge è un client IRC web-based scritto in Node.js. Può essere installato e utilizzato da qualsiasi browser moderno, offrendo un'esperienza simile a quella di un'applicazione nativa senza installare un client dedicato.

Principali vantaggi

  • Funzionalità moderne: notifiche push, anteprime dei link, indicatori dei nuovi messaggi.
  • Connessione persistente: resta collegato ai server IRC anche quando sei offline.
  • Multipiattaforma: funziona ovunque possa essere eseguito Node.js.
  • Interfaccia responsive: adatta a desktop, smartphone e tablet.
  • Esperienza sincronizzata: riprende da dove hai lasciato su qualsiasi dispositivo.

Prerequisiti

  • Sistema consigliato: Ubuntu 20.04, opzionalmente Ubuntu 21.04.
  • Utente con privilegi sudo o accesso root.

Installare Node.js

sudo apt update
sudo apt upgrade
sudo apt install nodejs

Verifica la versione:

sudo nodejs -v

The Lounge richiede Node.js versione 6 o superiore. Nelle versioni recenti di Ubuntu questo requisito è già soddisfatto.

Installare The Lounge

Scarica l'ultimo pacchetto Debian dalla pagina GitHub ufficiale. Esempio:

wget https://github.com/thelounge/thelounge/releases/download/v4.2.0/thelounge_4.2.0_all.deb
sudo apt install ./thelounge_4.2.0_all.deb

Verifica la versione:

thelounge -version

Controlla lo stato del servizio:

systemctl status thelounge

Se non è attivo, avviarlo:

sudo systemctl start thelounge
sudo systemctl enable thelounge

Creare un utente The Lounge

sudo -u thelounge thelounge add USERNAME

Sostituisci USERNAME con il nome utente desiderato. Ti verrà chiesto di impostare una password e di scegliere se salvare i log su disco.

Accedere a The Lounge

Apri il browser e visita l'indirizzo del server sulla porta 9000:

https://yourserverip:9000

Inserisci nome utente e password. Poi potrai configurare i server IRC e le reti a cui collegarti.

Reverse proxy con Apache

Installa Apache:

sudo apt install apache2 -y
sudo systemctl enable apache2
sudo systemctl start apache2

Abilita i moduli proxy:

sudo a2enmod proxy proxy_http headers proxy_wstunnel

Crea un file di configurazione:

sudo nano /etc/apache2/sites-available/irc.conf

Esempio di configurazione:

<VirtualHost *:80>
    ServerName irc.example.com
    ProxyPass / https://localhost:9000/
    ProxyPassReverse / https://localhost:9000/
</VirtualHost>

Verifica la configurazione:

sudo apache2ctl configtest

Abilita il sito e riavvia Apache:

sudo a2ensite irc.conf
sudo systemctl restart apache2

Reverse proxy con Nginx

Installa Nginx:

sudo apt install nginx -y
sudo systemctl enable nginx
sudo systemctl start nginx

Crea il file di configurazione:

sudo nano /etc/nginx/conf.d/irc.conf

Esempio:

server {
    listen 80;
    server_name irc.example.com;
    location / {
        proxy_pass https://127.0.0.1:9000;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

Verifica e ricarica Nginx:

sudo nginx -t
sudo systemctl reload nginx

Certificato SSL gratuito con Let's Encrypt

Per Apache:

sudo apt install python3-certbot-apache -y
sudo certbot --apache --agree-tos --redirect --hsts --staple-ocsp --email you@example.com -d irc.example.com

Per Nginx:

sudo apt install python3-certbot-nginx -y
sudo certbot --nginx --agree-tos --redirect --hsts --staple-ocsp --email you@example.com -d irc.example.com

Dopo l'attivazione, il sito sarà raggiungibile tramite HTTPS e le richieste HTTP verranno reindirizzate automaticamente.

Ubuntu
  1. Come installare Docker su Ubuntu 18.04

  2. Come installare Apache su Ubuntu 18.04

  3. Come installare MariaDB 10.4 su Ubuntu 18.04

  4. MongoDB su Ubuntu 18.04: due metodi di installazione

  5. Installare Jenkins su Ubuntu 18.04: dal repository alla prima build

Come installare Tomcat 8.5 su Ubuntu 18.04

Installare Asterisk 18 su Ubuntu 18.04

Installare WildFly su Ubuntu 20.04

Come installare il client IRC The Lounge su Debian 11 Bullseye

Come installare il client Zoom su Ubuntu 20.04

Come installare The Lounge IRC Client su Ubuntu 20.04