{"id":642,"date":"2021-04-20T23:39:24","date_gmt":"2021-04-20T21:39:24","guid":{"rendered":"https:\/\/exchangetimes.net\/?p=642"},"modified":"2021-04-20T23:39:24","modified_gmt":"2021-04-20T21:39:24","slug":"install-rocket-chat-server-on-a-raspberry-pi-using-snap-on-ubuntu-server-20-04","status":"publish","type":"post","link":"https:\/\/exchangetimes.net\/?p=642","title":{"rendered":"Install Rocket Chat server on a Raspberry Pi using snap on Ubuntu Server 20.04"},"content":{"rendered":"\n<p>Wow that is a long title!<\/p>\n<p>Here I will be posting the steps on how to install the <a href=\"https:\/\/rocket.chat\/\" target=\"_blank\" rel=\"noopener\">Rocket Chat Server<\/a> quickly and easily using <a href=\"https:\/\/en.wikipedia.org\/wiki\/Snap_(package_manager)\" target=\"_blank\" rel=\"noopener\">snap<\/a> on <a href=\"https:\/\/ubuntu.com\/\" target=\"_blank\" rel=\"noopener\">Ubuntu<\/a> Server 20.04. I wanted a quick and easy chat server for home use which runs on an old <a href=\"https:\/\/www.raspberrypi.org\/\" target=\"_blank\" rel=\"noopener\">Raspberry Pi<\/a> I have and this seemed to be the quickest and easiest way to get a chat \/ instant messaging server running.<br \/><br \/>Let&#8217;s get starting shall we?<\/p>\n<ul>\n<li>\n<p>Flash Ubuntu 20.04 to an SD card using the Raspberry Pi imager by opening Raspberry Pi imager. If you don\u2019t have it then install it using the Pop_Shop in Pop_OS! Otherwise download it from <a href=\"https:\/\/ubuntu.com\/download\/raspberry-pi\" target=\"_blank\" rel=\"noopener\">here<\/a>.<a href=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-643\" src=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture1.png\" alt=\"\" width=\"394\" height=\"268\" srcset=\"https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture1.png 680w, https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture1-300x204.png 300w\" sizes=\"auto, (max-width: 394px) 100vw, 394px\" \/><\/a><\/p>\n<\/li>\n<li>Choose <strong><em>Other general purpose OS<br \/><\/em><\/strong><a href=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-644\" src=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture2.png\" alt=\"\" width=\"394\" height=\"264\" srcset=\"https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture2.png 684w, https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture2-300x201.png 300w\" sizes=\"auto, (max-width: 394px) 100vw, 394px\" \/><\/a><\/li>\n<li>Click on <em><strong>Ubuntu<br \/><\/strong><\/em><a href=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-645\" src=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture3.png\" alt=\"shows where to choose Ubuntu\" width=\"392\" height=\"266\" srcset=\"https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture3.png 680w, https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture3-300x204.png 300w\" sizes=\"auto, (max-width: 392px) 100vw, 392px\" \/><\/a><\/li>\n<li>Choose the <em><strong>Ubuntu Server 20.04 LTS (RPi 2\/3\/4\/400) 32 bit<\/strong><\/em> option<br \/><a href=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-646\" src=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture4.png\" alt=\"shows which version of Ubuntu server to choose\" width=\"395\" height=\"265\" srcset=\"https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture4.png 682w, https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture4-300x201.png 300w\" sizes=\"auto, (max-width: 395px) 100vw, 395px\" \/><\/a><\/li>\n<li>Choose storage, click on your SD card and then click on write.<\/li>\n<li>After completion, eject the SD card and insert it into your Pi. Boot your Pi<\/li>\n<li>Connect your Pi to a monitor or check your router for the PI\u2019s IP address. It should\u00a0 show the name of the Pi as <em><strong>Ubuntu<\/strong><\/em>.<\/li>\n<li>Login to the Pi using ssh: ubuntu@your_pi_IP_address<\/li>\n<li>The username as per above is <em><strong>ubuntu<\/strong> <\/em>and the password is also <em><strong>ubuntu<\/strong><\/em><\/li>\n<li>You will be prompted to change the password after logging in.<\/li>\n<li>Update your Operating system by running: <em><strong>sudo apt update &amp;&amp; sudo apt upgrade<br \/><a href=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-647\" src=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture5.png\" alt=\"\" width=\"392\" height=\"235\" srcset=\"https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture5.png 818w, https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture5-300x180.png 300w, https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture5-768x460.png 768w\" sizes=\"auto, (max-width: 392px) 100vw, 392px\" \/><\/a><br \/><\/strong><\/em><\/li>\n<li>Reboot your Pi: <em><strong>sudo reboot now<\/strong><\/em><\/li>\n<li>Login and change the hostname: <em><strong>hostnamectl set-hostname your_new_hostname<\/strong><\/em><\/li>\n<li>If you want, add a new user: <em><strong>sudo adduser username<\/strong><\/em><\/li>\n<li>Provide the user\u2019s password and fille in the rest of the prompts<\/li>\n<li>Add the user to the sudo group: <em><strong>sudo usermod -aG sudo username<\/strong><\/em><\/li>\n<li>Type logout to logout and then ssh back with the new user that you created.<\/li>\n<li>Type yes when prompted after connecting using ssh.<br \/><a href=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-648\" src=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture6.png\" alt=\"ssh prompt\" width=\"725\" height=\"26\" srcset=\"https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture6.png 725w, https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture6-300x11.png 300w\" sizes=\"auto, (max-width: 725px) 100vw, 725px\" \/><\/a><\/li>\n<li>Now install the Rocket Chat server using snap: <em><strong>sudo snap install rocketchat-server<br \/><a href=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture7.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-649\" src=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture7.png\" alt=\"\" width=\"376\" height=\"28\" srcset=\"https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture7.png 376w, https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture7-300x22.png 300w\" sizes=\"auto, (max-width: 376px) 100vw, 376px\" \/><\/a><\/strong><\/em><br \/><a href=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone  wp-image-650\" src=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture8.png\" alt=\"\" width=\"748\" height=\"29\" srcset=\"https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture8.png 813w, https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture8-300x12.png 300w, https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture8-768x30.png 768w\" sizes=\"auto, (max-width: 748px) 100vw, 748px\" \/><\/a><br \/><a href=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture8.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-650\" src=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture8.png\" alt=\"\" width=\"813\" height=\"32\" srcset=\"https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture8.png 813w, https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture8-300x12.png 300w, https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture8-768x30.png 768w\" sizes=\"auto, (max-width: 813px) 100vw, 813px\" \/><\/a><\/li>\n<li>Check if it is running: <em><strong>sudo service snap.rocketchat-server.rocketchat-server status<\/strong><\/em><a href=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture10.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-651\" src=\"http:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture10.png\" alt=\"\" width=\"1237\" height=\"171\" srcset=\"https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture10.png 1237w, https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture10-300x41.png 300w, https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture10-1024x142.png 1024w, https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture10-768x106.png 768w, https:\/\/exchangetimes.net\/wp-content\/uploads\/2021\/04\/Picture10-1140x158.png 1140w\" sizes=\"auto, (max-width: 1237px) 100vw, 1237px\" \/><\/a><\/li>\n<li>Wait a few minutes and then access the server at <em><strong>http:\/\/ipaddress_of_your_pi:3000<\/strong><\/em><\/li>\n<li>you will be greeted with a screen to setup your admin user and then login to your Rocket Chat server<\/li>\n<\/ul>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;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\u2019t 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\u2019s IP address. It should\u00a0 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 &amp;&amp; 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\u2019s 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 \u00a0<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,161,13,19],"tags":[558,556,369,554,553,557,555],"class_list":["post-642","post","type-post","status-publish","format-standard","hentry","category-linux","category-open-source-software","category-raspberry-pi","category-ubuntu","tag-install-rocket-chat-server-on-a-raspberry-pi-using-snap-on-ubuntu-server-20-04","tag-installing-rocket-chat-server-on-a-raspberry-pi","tag-raspberry-pi","tag-rocket-chat","tag-rocket-chat-server","tag-snap","tag-ubuntu-server-on-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/exchangetimes.net\/index.php?rest_route=\/wp\/v2\/posts\/642","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exchangetimes.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/exchangetimes.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/exchangetimes.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exchangetimes.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=642"}],"version-history":[{"count":1,"href":"https:\/\/exchangetimes.net\/index.php?rest_route=\/wp\/v2\/posts\/642\/revisions"}],"predecessor-version":[{"id":652,"href":"https:\/\/exchangetimes.net\/index.php?rest_route=\/wp\/v2\/posts\/642\/revisions\/652"}],"wp:attachment":[{"href":"https:\/\/exchangetimes.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=642"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/exchangetimes.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=642"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/exchangetimes.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=642"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}