Whatbox Logo
Login for certain variables to be updated with your slot's information

Wiki > The Lounge

The Lounge

The Lounge is a web-based IRC client. For more information see https://thelounge.chat.


Create a directory for The Lounge, its config, and its data:

mkdir ~/thelounge

Install The Lounge:

cd ~/thelounge
npm install thelounge

Start The Lounge:

cd ~/thelounge
THELOUNGE_HOME=$PWD npx thelounge start --config port=19492 > /dev/null 2>&1 &

At this point The Lounge should be accessible at http://server.whatbox.ca:19492. In order to log in you need to create a user:

cd ~/thelounge
THELOUNGE_HOME=$PWD npx thelounge add user

Automatically Restarting The Lounge

You can create a cron job that automatically restarts The Lounge when it goes down:

cd ~/thelounge  
cat > cron <<'EOF'

cmd='npx thelounge start --config port=19492'

if ! pgrep --full "$cmd" --uid $USER > /dev/null
  cd ~/thelounge         
  THELOUNGE_HOME=$PWD $cmd > /dev/null 2>&1 &

chmod +x cron
(crontab -l 2> /dev/null;echo "* * * * * $HOME/thelounge/cron") | crontab -