Source: Install The Lounge on CentOS using the Snap Store | Snapcraft
The following directions assume snap is not installed. If snap is installed
- Install snap.
yum install epel-release
yum install snapd
systemctl enable –now snapd
snapd.socket ln -s /var/lib/snapd/snap /snap
- Install theLounge
snap install thelounge
Create users
After installing run the following in a terminal/console:
sudo thelounge add $USER
Replace $USER
with your preferred Lounge username. You will be prompted to add a password once you’ve authenticated for sudo. When you have added your username navigate to http://localhost:9000/ (replace localhost with your server IP or hostname if you are on a different machine) and login with your new username and password.
Enable https
For this to work, port 80 on your device must be Internet accessible.
Run the following in a terminal/console:
sudo thelounge.cert-generate
Next, enter your email address, agree to the terms of service and enter your domain when prompted.
Update the https
stanza in thelounge configuration, replacing example.org
with your domain.
sudo nano /var/snap/thelounge/current/home/config.js
The https
stanza should look something like this:
https: {
enable: true,
key: "/var/snap/thelounge/common/letsencrypt/live/example.org/privkey.pem",
certificate: "/var/snap/thelounge/common/letsencrypt/live/example.org/fullchain.pem",
ca: "",
},
Finally, restart thelounge to enable https.
sudo snap restart thelounge
There is an error in one of the commands:
It should be:
systemctl enable –now snapd
Awesome! Thanks for letting me know 😀 Fixed!
How does one start the lounge aferwards? This guide doesn’t explain anything beyond how to install it.
Hi, I have updated the post to reflect the new info on starting thelounge. 😀