Comments (17)
while I'm not qualified to write the Readme as I still haven't got it to work properly (probably because I don't think Zulip agrees with self signed certs) I can at least pass along the steps that got me the farthest in the install process on ubuntu 14. Feel free to point out errors/solutions.
install python dependencies
sudo apt-get install python-setuptools python-virtualenv python-dev
install others
apt-get install libffi-dev memcached rabbitmq-server libldap2-dev redis-server postgresql-server-dev-all libmemcached-dev
apt-get install postgresql-9.3
wget https://dl.dropboxusercontent.com/u/283158365/zuliposs/postgresql-9.3-tsearch-extras_0.1.2_amd64.deb
dpkg -i postgresql-9.3-tsearch-extras_0.1.2_amd64.deb
generate self certs
openssl genrsa -des3 -passout pass:x -out server.pass.key 2048
openssl rsa -passin pass:x -in server.pass.key -out zulip.key
rm server.pass.key
openssl req -new -key zulip.key -out server.csr
openssl x509 -req -days 365 -in server.csr -signkey zulip.key -out zulip-combined-chain.crt
cp zulip.key /etc/ssl/private/zulip.key; cp zulip-combined-chain.crt /etc/ssl/certs/zulip-combined-chain.crt
edit host file (for rabbitmq)
hostname
and hostname -f
have values necessary
vi etc/hosts # put in hostname and hostname -f values after 127.0.0.1 localhost
/etc/init.d/rabbitmq-server start
/etc/init.d/rabbitmq-server status # should say running
get zulip
wget https://www.zulip.com/dist/releases/zulip-server-1.3.3.tar.gz
tar -xzf zulip-server-1.3.3.tar.gz
mv zulip-server-1.3.3 zulip
cd zulip
install pip requirements
pip install -r requirements.txt
install zulip
./scripts/setup/install
input mandatory values
vi /etc/zulip/settings.py # change all the email settings
su zulip -c /home/zulip/deployments/current/scripts/setup/initialize-database
from zulip.
On the front of self-signed certs, you can make Zulip happy as follows:
apt-get install ssl-cert
cd /etc/ssl/private
ln -s ssl-snake-oil.key zulip.key
cd /etc/ssl/certs
ln -s ssl-snak-oil.pem zulip.combined-chain.crt
from zulip.
Also the "install pip requirements" step is unnecessary and probably will lead to confusion since -- scripts/setup/install installs all the Python dependencies via apt, so that will just create duplicate copies of all the dependencies on the system...
from zulip.
(And thanks for doing this writeup!)
from zulip.
awesome - I'll try the updated steps tonight to see if it works for me
from zulip.
I would also add the step to check the locals. Some installs have failed because of this.
Check configured locals
locale
List installed local
locale -a
Install any missing
sudo locale-gen de_DE.UTF-8
from zulip.
For docker-based setup from ubuntu:trusty
- Ensure the Docker deamon is started after setting max open files > 40000 (
ulimit -n 100000
) because Zulip's supervisord.conf has 40000 hardcoded in it.
Docker containers will inherit this limit and Zulip requires it.
- From
ubuntu:trusty
, at least install first theen_US.UTF-8
locale before running the install (else postgresql will fail starting)
# locale-gen en_US.UTF-8
- Ensure to run your Zulip docker container with an explicit hostname (--hostname my-zullip)
from zulip.
I just tried the above install steps. When running "su zulip -c /home/zulip/deployments/current/scripts/setup/initialize-database" i get this error.
root@zulip:~# su zulip -c /home/zulip/deployments/current/scripts/setup/initialize-database
++ dirname /home/zulip/deployments/current/scripts/setup/initialize-database
+ cd /home/zulip/deployments/current/scripts/setup/../..
+ python manage.py checkconfig
/home/zulip/deployments/current/scripts/setup/initialize-database: line 6: 1653 Segmentation fault
(core dumped) python manage.py checkconfig
I am running Ubuntu 14.04 on Digital Ocean
Also, I had to install git. That should be included in the first steps.
from zulip.
I've never seen that before; might be a corrupted disk or bad RAM.
from zulip.
Do we have any updates on this? I see that people have been tweaking @marcstreeter's writeup, and I'm going to quickly try to get it working this morning following the instructions of everyone here.
from zulip.
@rfilmyer I think at this point the only piece that isn't now handled by the README.md instructions or the install script is making sure the user's hostname file is in good shape.
from zulip.
Doesn't the install script only cover an install on an Ubuntu system where it's the only thing running? Is there install documentation for if someone doesn't fit into that case?
The website says to either install automatically, or ask the mailing list. Is there an opportunity to contribute documentation for a manual install?
from zulip.
That's right, the production installation process currently only works for Ubuntu and assumes it's the only thing running.
There isn't installation documentation for other setups. If we wanted to add support for more platforms to the install script, that would be a manageable task which mostly requires work on packaging the right versions of dependencies and then adding some conditionals to the installation script code.
Making it friendly to install on a system where other stuff is running is a different challenge. There are two major issues involved: (1) Making the installation process not stomp over other configuration (mostly relevant for our dependency database services like redis, postgres, etc.) and (2) Adding an uninstallation process so that one can clean up their server afterwards (see e.g. #188).
I'm not excited about trying to do a "manual installation" process for production since I think it'd be relatively error-prone; I'd be more excited about the direction of building packages for Zulip that Just Work for the various platforms.
from zulip.
(If you're interested in working on any of those projects I'd be happy to provide guidance!)
from zulip.
@timabbott -- Do we have postgresql-9.3-tsearch-extras_0.1.2 for 32 bit system (Deb) ?
from zulip.
We have 0.1.3 built for 32-bit in the Zulip PPA:
from zulip.
As a sidenote, I think all the items in this issue have been fixed, so I'm closing this. If anyone feels something is missing, though, please let me know!
from zulip.
Related Issues (20)
- Migration from Mattermost is fail HOT 1
- Improve `onboarding_steps` subystem. HOT 1
- Remove local time from personal menu HOT 11
- Import of organization dump has failed: `KeyError: 'notifications_stream'` HOT 1
- [WIP] Change Welcome Bot message interactions HOT 1
- Update Welcome Bot messages HOT 3
- Do not send first Zulip Updates message with onboarding messages in new organization HOT 3
- Simplify instructions for moving topics/messages HOT 1
- Update Slack webhook integration to use the new Slack app instead of legacy custom integration HOT 2
- Convert channel warning tooltip to Tippy HOT 2
- Make name change permissions more flexible HOT 4
- Add option to notify users when they are DMing a guest HOT 3
- Recent conversations: Hover state on the row looks almost same as non-hover state on the dark mode.
- Abandoned drafts keep rising from the dead HOT 4
- Auto-close compose box after auto-opening
- Is it feasible to store data on cloud services?
- Link to /accounts/find from page for an organization that doesn't exist HOT 5
- Update message content on /for/X pages HOT 3
- Auto populate bot avatar for webhook integrations bot
- Old polls cause web exceptions and broken appearance HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zulip.