genieacs Installation on Ubuntu14.04

Beside the installation guide on the main page, here is a guide to install GenieACS off a freshly installed Ubuntu 14.04 LTS, be it on a virtual box or within a full Ubuntu OS install. The guide ist mostly based on a similar guide at tr069.wordpress.com, with some minor adjustments.

Prequisites and basic components

First you should install the following prequisites

apt-get install g++ zlib1g-dev libssl-dev build-essential openssl libreadline6 libreadline6-dev zlib1g libsqlite3-0 libsqlite3-dev sqlite libxml2 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion tcl git

After installing all the prequisites, you then should get the latest source code for the necessary components.

Ruby:

tar -zxvf *.tar.gz
cd rub-2.1.2
./configure
make
make install
gem install rails
gem install bundle --pre

If an error with readline occurs while the "make" step, see here for a [Readline Patch] (https://github.com/sstephenson/ruby-build/issues/526#issuecomment-37932244). Even if it's intended for Ruby 2.1.1, it should work with Ruby 2.1.2 too.

Node.js:

tar -zxvf *.tar.gz
cd node-v0.10.28
./configure
make
make install

Redis:

tar -zxvf *.tar.gz
cd redis-2.8.9
make
make test
make install

MongoDB: I didn't used the one from their website, used the version from the ubuntu repository

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
sudo apt-get install mongodb-org

Install GenieACS itself:

I installed GenieACS into my home directory, most of the guides I saw (Zaid advices that too) said /opt. I did install from the Git

git clone https://github.com/zaidka/genieacs.git
cd genieacs
npm install

Install GenieACS-GUI:

git clone https://github.com/zaidka/genieacs-gui
cd genieacs-gui
bundle

After all those steps GenieACS and it's GUI should be installed properly and is ready for the first start.

 

refer:https://github.com/genieacs/genieacs/wiki/Installation-Ubuntu

posted @ 2019-02-28 13:56  “人生苦短”  阅读(1127)  评论(1编辑  收藏  举报