Difference between revisions of "Rocket Chat"

From SME Server
Jump to navigationJump to search
Line 47: Line 47:
  
 
===Start Mongodb as service===
 
===Start Mongodb as service===
 +
(please note the usage of mongod and NOT mongodb)
 
  ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S99rh-mongodb26-mongod
 
  ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S99rh-mongodb26-mongod
 
  config set rh-mongodb26-mongod service
 
  config set rh-mongodb26-mongod service

Revision as of 11:22, 15 April 2016

Warning.png Work in Progress:
This page is a Work in Progress. The contents off this page may be in flux, please have a look at this page history the to see list of changes.


Rocket-dot-chat-logo.png

About

"Rocket Chat, the ultimate webchat platform. From group messages and video calls all the way to helpdesk killer features. Our goal is to become the number one cross-platform open source chat solution"

RAW NOTES

RocketChat install script for SME Server 9.x 64-bit
Copyright 2016 RequestedDeletion (RequestedDeletion@gmail.com)

Add epel repo

/sbin/e-smith/db yum_repositories set epel repository \
Name 'Epel - EL6' \
BaseURL 'http://download.fedoraproject.org/pub/epel/6/$basearch' \
MirrorList 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=$basearch' \
EnableGroups no \
GPGCheck yes \
GPGKey http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL \
Exclude perl-Razor-Agent \
Visible no \
status disabled

Add Centos-rh SCL repo’s

/sbin/e-smith/db yum_repositories set scl \
repository Name 'Software collections' \
BaseURL 'http://mirror.centos.org/centos/$releasever/SCL/$basearch/' \
EnableGroups no Visible yes status disabled


/sbin/e-smith/db yum_repositories set centos-sclo-rhl \
repository Name 'Software collections' \
BaseURL 'http://mirror.centos.org/centos/$releasever/sclo/$basearch/rh/' \
EnableGroups no Visible yes status disabled

Expand new repo’s

signal-event yum-modify

Install Software Collections applications

yum install rh-python34-python rh-mongodb26-mongodb rh-mongodb26-mongodb-server nodejs010 GraphicsMagick --enablerepo=centos-rh-scl,epel

using NPM:

scl enable nodejs010 bash
npm install -g inherits
npm install -g n
n 0.10.40
exit

Start Mongodb as service

(please note the usage of mongod and NOT mongodb)

ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S99rh-mongodb26-mongod
config set rh-mongodb26-mongod service
config setprop rh-mongodb26-mongod status enabled
config setprop rh-mongodb26-mongod access private
config setprop rh-mongodb26-mongod TCPPort 27017

Create boot scripts for software collections application

nano -w /etc/profile.d/scls-rh-mongodb26

#!/bin/sh
export ROOT_URL=http://10.11.12.178:3000/
export PORT=3000
export MONGO_URL=mongodb://localhost:27017/rocketchat

nano -w /etc/profile.d/scls-rh-python34.sh

#!/bin/sh
source /opt/rh/rh-python34/enable
export X_SCLS="`scl enable rh-python34 'echo $X_SCLS'`"

nano -w /etc/profile.d/scls-rh-java-common.sh

#!/bin/sh
source /opt/rh/rh-java-common/enable
export X_SCLS="`scl enable rh-java-common 'echo $X_SCLS'`"

nano -w /etc/profile.d/scls-nodejs010.sh

#!/bin/sh
source /opt/rh/nodejs010/enable
export X_SCLS="`scl enable nodejs010 'echo $X_SCLS'`"

config rocket chat

config set rocketchat service status enabled TCPPort 3000 access public
signal-event remoteaccess-update

Get RocketChat from downloads

cd /root
curl -L https://rocket.chat/releases/latest/download -o rocket.chat.tgz
tar zxvf rocket.chat.tgz
mv bundle /opt/Rocket.Chat
cd /opt/Rocket.Chat/programs/server

Start Rocket Chat

cd /opt/Rocket.Chat/programs/server
node main.js &

Browse to https://yourserver:3000 and create the first admin user.

TO DO

  • Auto start Rocket Chat
  • Fine tune various things (e.g. Security)
  • Enable LDAP authentication
  • Create subdomain e.g. https://chat.yourdomain.com using the webapps-common contrib
  • Test, test, test
  • Create a contrib
  • Showcase SME Server, contribs and software collections.