From 7f4b82af18a02fe01e2d98080012af98d46a3128 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D1=80=D0=BA=D0=BE=20=D0=9C=2E=20=D0=9A=D0=BE?= =?UTF-8?q?=D1=81=D1=82=D0=B8=D1=9B=20=28Marko=20M=2E=20Kosti=C4=87=29?= Date: Thu, 8 Oct 2015 12:33:15 +0200 Subject: [PATCH] Added CentOS 7 specific instructions to the manual install guide. --- README.md | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) diff --git a/README.md b/README.md index 3b224605cb..0ecb6c2461 100644 --- a/README.md +++ b/README.md @@ -257,6 +257,77 @@ host all all 127.0.0.1/32 md5 sudo systemctl start redis memcached rabbitmq-server postgresql ``` +On CentOS 7 (Core): + +``` +# Add user zulip to the system (not necessary if you configured zulip as the administrator +# user during the install process of CentOS 7). +useradd zulip + +# Create a password for zulip user +passwd zulip + +# Allow zulip to sudo +visudo +# Add this line after line `root ALL=(ALL) ALL` +zulip ALL=(ALL) ALL + +# Switch to zulip user +su zulip + +# Enable EPEL 7 repo so we can install rabbitmq-server, redis and other dependencies +sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm + +# Install dependencies +sudo yum install libffi-devel memcached rabbitmq-server openldap-devel python-devel redis postgresql-server \ +postgresql-devel postgresql libmemcached-devel wget python-pip openssl-devel freetype-devel libjpeg-turbo-devel \ +zlib-devel nodejs + +# We need these packages to compile tsearch-extras +sudo yum groupinstall "Development Tools" + +cd && wget https://launchpad.net/~tabbott/+archive/ubuntu/zulip/+files/tsearch-extras_0.1.3.tar.gz +tar xvzf tsearch-extras_0.1.3.tar.gz +cd ts2 +make -j $(nproc) +sudo make install + +# Now create the missing dictionary files +sudo touch /usr/share/pgsql/tsearch_data/zulip_english.stop +sudo touch /usr/share/pgsql/tsearch_data/english.stop +sudo touch /usr/share/pgsql/tsearch_data/en_us.dict +sudo touch /usr/share/pgsql/tsearch_data/en_us.affix + +# clone Zulip's git repo and cd into it +cd && git clone https://github.com/zulip/zulip && cd zulip/ + +# Initialize the postgres db +sudo postgresql-setup initdb + +# Edit the postgres settings: +sudo vi /var/lib/pgsql/data/pg_hba.conf + +# Add these two lines after line 80: +local zulip zulip md5 +host all all 127.0.0.1/32 md5 + +# Change these lines: +host all all 127.0.0.1/32 ident +host all all ::1/128 ident +# to this: +host all all 127.0.0.1/32 md5 +host all all ::1/128 md5 + +# Start the services +sudo systemctl start redis rabbitmq-server memcached postgresql + +# Enable automatic service startup after the system startup +sudo systemctl enable redis rabbitmq-server memcached postgresql + +# Recompile pillow with freetype support (required for build_emoji script) +sudo pip uninstall pillow; sudo pip install pillow +``` + All Systems: ```