GenieACS in Ubuntu 16.04

Sergio sergio.fernandez at electronicamartinez.com
Fri Nov 18 19:02:15 EST 2016


Hi!

Some users in the list have tried to install GenieACS in Ubuntu 16.04, 
unsuccesfully.

I was trying to make a guide for it, using the tutorials of 
DigitalOcean, like the following:
_Ruby on Rails & NodeJS_ : 
https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-16-04
_Redis_ : 
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-redis-on-ubuntu-16-04
_MongoDB_ : 
https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-16-04
I've tried using Nodejs 6.9, ruby 3.2.3, MongoDB 3.10, rails 5.0.0.1...

When I come to the part that I have to /npm install -g genieacs/, I get 
some errors. I posted the problem in the Google Groups of nodejs, but I 
still got no response.

The post is here. 
https://groups.google.com/forum/m/#!topic/nodejs/lX2W2etAfjE 
<https://groups.google.com/forum/m/#%21topic/nodejs/lX2W2etAfjE>there, 
you can see the errors shown while doing the /npm install -g genieacs/

If you could guide me... that would be very helpful! For me and for 
others. I have attached an skeleton of the resumed steps of all the 
three DigitalOcean pages, including some previous config, and the failed 
install of GenieACS.

Thank you!

-- 
Sergio Fernández
sergio1993_1 at hotmail.com
(+34) 687 016 994

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genieacs.com/pipermail/users/attachments/20161119/8a2bec4b/attachment.html>
-------------- next part --------------
---non-root account

sudo apt update

--------------------------------Firewall

sudo ufw app list

sudo ufw allow OpenSSH
sudo ufw enable


--------------------------------Ruby on Rails & NodeJS : https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-16-04

sudo apt install autoconf bison build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
source ~/.bashrc
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build

---At this time version 2.3.2 of Ruby

rbenv install 2.3.2
rbenv global 2.3.2

---Turn off local documentation

echo "gem: --no-document" > ~/.gemrc
gem install bundler

---Install Rails

gem install rails
gem install rails -v 5.0.0.1
rbenv rehash

---Install JavaScript Runtime

cd /tmp
\curl -sSL https://deb.nodesource.com/setup_6.x -o nodejs.sh
cat /tmp/nodejs.sh | sudo -E bash -
sudo apt-get install -y nodejs


--------------------------------Redis : https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-redis-on-ubuntu-16-04

sudo apt-get install build-essential tcl
cd /tmp
curl -O http://download.redis.io/redis-stable.tar.gz
tar xzvf redis-stable.tar.gz
cd redis-stable
make
make test
sudo make install

---Configure Redis

sudo mkdir /etc/redis
sudo cp /tmp/redis-stable/redis.conf /etc/redis
sudo nano /etc/redis/redis.conf

---Edit the file, find the "supervised" directive. Change from "no" to "systemd".
---Find the "dir" directory. Change "./" to "/var/lib/redis"

---Create a Redis systemd Unit File

sudo nano /etc/systemd/system/redis.service

---And insert the following:
[Unit]
Description=Redis In-Memory Data Store
After=network.target

[Service]
User=redis
Group=redis
ExecStart=/usr/local/bin/redis-server /etc/redis/redis.conf
ExecStop=/usr/local/bin/redis-cli shutdown
Restart=always

[Install]
WantedBy=multi-user.target

---Create the Redis User, Group and Directories

sudo adduser --system --group --no-create-home redis

sudo mkdir /var/lib/redis
sudo chown redis:redis /var/lib/redis
sudo chmod 770 /var/lib/redis
sudo systemctl start redis
sudo systemctl enable redis


--------------------------------MongoDB : https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-16-04

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
sudo apt-get update

---Install:

sudo apt-get install -y mongodb-org
sudo nano /etc/systemd/system/mongodb.service

---Paste:
[Unit]
Description=High-performance, schema-free document-oriented database
After=network.target

[Service]
User=mongodb
ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf

[Install]
WantedBy=multi-user.target

---Finish:

sudo systemctl start mongodb
sudo systemctl enable mongodb


--------------------------------GenieACS

sudo apt install python

.......................
npm install libxmljs

sudo npm install -g genieacs






More information about the Users mailing list