Wow that is a long title!
Here I will be posting the steps on how to install the Rocket Chat Server quickly and easily using snap on Ubuntu Server 20.04. I wanted a quick and easy chat server for home use which runs on an old Raspberry Pi I have and this seemed to be the quickest and easiest way to get a chat / instant messaging server running.
Let’s get starting shall we?
Flash Ubuntu 20.04 to an SD card using the Raspberry Pi imager by opening Raspberry Pi imager. If you don’t have it then install it using the Pop_Shop in Pop_OS! Otherwise download it from here.
- Choose Other general purpose OS
- Click on Ubuntu
- Choose the Ubuntu Server 20.04 LTS (RPi 2/3/4/400) 32 bit option
- Choose storage, click on your SD card and then click on write.
- After completion, eject the SD card and insert it into your Pi. Boot your Pi
- Connect your Pi to a monitor or check your router for the PI’s IP address. It should show the name of the Pi as Ubuntu.
- Login to the Pi using ssh: ubuntu@your_pi_IP_address
- The username as per above is ubuntu and the password is also ubuntu
- You will be prompted to change the password after logging in.
- Update your Operating system by running: sudo apt update && sudo apt upgrade
- Reboot your Pi: sudo reboot now
- Login and change the hostname: hostnamectl set-hostname your_new_hostname
- If you want, add a new user: sudo adduser username
- Provide the user’s password and fille in the rest of the prompts
- Add the user to the sudo group: sudo usermod -aG sudo username
- Type logout to logout and then ssh back with the new user that you created.
- Type yes when prompted after connecting using ssh.
- Now install the Rocket Chat server using snap: sudo snap install rocketchat-server
- Check if it is running: sudo service snap.rocketchat-server.rocketchat-server status
- Wait a few minutes and then access the server at http://ipaddress_of_your_pi:3000
- you will be greeted with a screen to setup your admin user and then login to your Rocket Chat server