quinta-feira, 9 de fevereiro de 2017

GenieACS - instalacao (tambem funciona para Ubuntu14.04)

Installation in Debian 8.6



For Sable Version

1- Get package dependencies. I like to use joe as editor for later file edition.
aptitude install checkinstall build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev sudo unzip redis-server mongodb libsqlite3-dev curl joe tmux
2- Get, Compile and Install Ruby 2.3.1
cd /opt
wget https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.gz
tar -zxvf ruby-2.3.1.tar.gz
cd ruby-2.3.1
./configure
make
make install
gem install rails
gem install bundle --pre
3- Get, Compile and Install Node 0.12.17
cd /opt
wget https://nodejs.org/download/release/v0.12.17/node-v0.12.17.tar.gz
tar -xzvf node-v0.12.17.tar.gz
cd node-v0.12.17
./configure
make
make install
4- Get GenieACS stable 1.0.7
cd /opt
wget https://github.com/zaidka/genieacs/releases/download/v1.0.7/genieacs-1.0.7.tgz
tar -xzvf genieacs-1.0.7.tgz
mv package genieacs
cd genieacs
npm install
npm run configure
5- Get GenieACS GUI stable v1.0
cd /opt
wget https://github.com/zaidka/genieacs-gui/archive/v1.0.zip
unzip v1.0.zip
mv genieacs-gui-1.0 genieacs-gui
cd genieacs-gui
bundle update
cp config/graphs-sample.json.erb config/graphs.json.erb
cp config/index_parameters-sample.yml config/index_parameters.yml
cp config/summary_parameters-sample.yml config/summary_parameters.yml
cp config/parameters_edit-sample.yml config/parameters_edit.yml
cp config/parameter_renderers-sample.yml config/parameter_renderers.yml
cp config/roles-sample.yml config/roles.yml
cp config/users-sample.yml config/users.yml
From this point you can follow other guides like startup/stop scripts and such.

For Alpha (1.1.0) Version

1- Get package dependencies. I like to use joe as editor for later file edition.
aptitude install checkinstall build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev sudo unzip redis-server mongodb libsqlite3-dev curl joe tmux
2- Get, Compile and Install Ruby 2.3.1
cd /opt
wget https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.gz
tar -zxvf ruby-2.3.1.tar.gz
cd ruby-2.3.1
./configure
make
make install
gem install rails
gem install bundle --pre
3- Get, Compile and Install Node 4.6.2
cd /opt
wget https://nodejs.org/download/release/v4.6.2/node-v4.6.2.tar.gz
tar -xzvf node-v4.6.2.tar.gz
cd node-v4.6.2
./configure
make
make install
4- Get GenieACS alpha 1.1.0
cd /opt
wget https://github.com/zaidka/genieacs/archive/master.zip
unzip master.zip
rm master.zip
cd genieacs-master
npm install
npm run configure
npm run compile
5- Get GenieACS GUI alpha v1.1.0
cd /opt
wget https://github.com/zaidka/genieacs-gui/archive/master.zip
unzip master.zip
cd genieacs-gui-master
bundle install
bundle update
cp config/graphs-sample.json.erb config/graphs.json.erb
cp config/index_parameters-sample.yml config/index_parameters.yml
cp config/summary_parameters-sample.yml config/summary_parameters.yml
cp config/parameters_edit-sample.yml config/parameters_edit.yml
cp config/parameter_renderers-sample.yml config/parameter_renderers.yml
cp config/roles-sample.yml config/roles.yml
cp config/users-sample.yml config/users.yml
bin/rails db:migrate RAILS_ENV=development
From this point you can follow other guides like startup/stop scripts and such.

fonte: https://github.com/zaidka/genieacs/wiki/Installation-in-Debian-8.6
-------- Comentários ----
 - há uma carencia grande de documentação para configurar corretamente os CPEs.
- os scripts passa-a-passo para Ubuntu 14.04 ou qq outro que está no site não funcionam corretamente, acreditem testei todos, inclusive o scrip .sh que dá uma m...a!
- para mim o produto não é escalavel o suficiente e nem gera relatorios que eu preciso.
- falta eu incluir os adendos como fail2ban e log.io e concatenar as informações de criação de scripts de down e up que estao espalhado pelo site do projeto. (não sei se farei já que ele não me atendo para aquilo que eu preciso)
  - tem um bug violento na aba de Devices cuja tabela vem em branco na versão 1.1.0, sei que na versao anterior estava funcionando....mas acho que perco alguma features da 1.1 que talvez me seja util.



0 comentários: