In this tutorial, we will learn how to install the Zulip chat server software on Debian 9.
- A server debian that is running host.
- Non root individual with sudo privileges.
First, you need to upgrade the device and install some packages on your own system. You’ll install these utilizing the command that is following********)
sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install python-dev python-pip openssl nano wget -y
Once all the packages are installed, you can proceed to install SSL certificate.
Install SSL Certificate
Zulip server works on HTTPS connection, so you will need to generate self-signed certificate that is SSL get commercial SSL certification. Right here, we’ll create a certificate that is private
First, generate RSA key of 2048 bits using the following command:
openssl genrsa -des3 -passout pass server.pass.key that is:x-out 2048
Next, compose RSA key that is private zulip.key file using the following command:
openssl rsa -passin pass server.pass.key that is:x-in -out zulip.key
Next, generate signing demand by operating these demand:
openssl req -new -key zulip.key -out server.csr
Above demand will ask you some information to build the CSR. Offer all the details as shown below:
You are going to be expected to enter information that'll be that are incorporated***********************************); into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a fields that are few it is possible to keep some blank for a few areas you will have a default value, in the event that you enter '.', the industry is going to be kept blank. ----- nation Name (2 page rule) [AU]:IN State or Province title (name) [Some-State]:Gujarat Locality title (eg, town) :Ahmedabad Organization Name (eg, business) [Internet Widgits Pty Ltd]:ENJ Organizational device title (eg, part) :IT typical title (age.g. host FQDN or YOUR title) :Hitesh email :[email protected] Please enter these 'extra' characteristics become delivered along with your certificate demand difficult password : An optional business title :
Next, create the certificate files by operating these demand:
openssl x509 -req -days 365 -in server.csr -signkey zulip.key -out zulip.combined-chain.crt
Next, copy the certificate that is generated key using the following command:
sudo cp zulip.key /etc/ssl/private/zulip.key
sudo cp zulip.combined-chain.crt /etc/ssl/certs/zulip.combined-chain.crt
Install Zulip Server
First, you will need to download the latest version of the Zulip from their official website. You can download it with the command that is following********)
After downloading, draw out the installed file utilizing the after demand:
tar -xvzf zulip-server-latest.tar.gz
Next, rename removed directory to zulip:
mv zulip-server-1.7.1 zulip
Next, replace the directory to your zulip and install zulip by operating the command that is following********)
Once the installation is completed, you will need to make some changes in settings.py file:
sudo nano /etc/zulip/settings.py
Change the file as shown below:
EXTERNAL_HOST localhost ZULIP_ADMINISTRATOR [email protected] ADMIN_DOMAIN yourdomain.com DEFAULT_FROM_EMAIL [email protected] NOREPLY_EMAIL_ADDRESS [email protected]
Save the file when you are finished. Then, initialize the PostgreSQL database using the command that is following********)
su zulip -c /home/zulip/deployments/current/scripts/setup/initialize-database
Once all things are setup precisely you’ll get the message you have actually effectively configured your Zulip database.
Finally, restart the Zulip host utilizing the command that is following********)
su zulip -c /home/zulip/deployments/current/scripts/restart-server
Now, start your online web browser and kind the Address https://yourdomain.com and register your brand-new account.
Congratulations! you have got effectively set up Zulip talk host on Debian 9 host.