Installation Guide Ubuntu 16.04

Beside the installation guide on the main page, here is a guide to install GenieACS off a freshly installed Ubuntu 16.04 LTS.

Prequisites and basic components

First you should update all components and install the following perquisites

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install redis-server mongodb npm build-essential ruby-bundler ruby-dev libsqlite3-dev
cd ~
curl -sL https://deb.nodesource.com/setup_7.x -o nodesource_setup.sh
chmod +x nodesource_setup.sh
sudo ./nodesource_setup.sh
sudo apt-get install nodejs
sudo npm install libxmljs

Install GenieACS itself

I installed GenieACS into my home directory.

sudo npm install -g genieacs

Next GenieACS-GUI

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install redis-server mongodb npm build-essential ruby-bundler ruby-dev libsqlite3-dev
cd ~
curl -sL https://deb.nodesource.com/setup_7.x -o nodesource_setup.sh
chmod +x nodesource_setup.sh
sudo ./nodesource_setup.sh
sudo apt-get install nodejs
sudo npm install libxmljs
git clone https://github.com/zaidka/genieacs-gui
cd genieacs-gui/
bundle

Create the config files

cp config/summary_parameters-sample.yml config/summary_parameters.yml
cp config/index_parameters-sample.yml config/index_parameters.yml
cp config/parameter_renderers-sample.yml config/parameter_renderers.yml
cp config/parameters_edit-sample.yml config/parameters_edit.yml
cp config/roles-sample.yml config/roles.yml
cp config/users-sample.yml config/users.yml
cp config/graphs-sample.json.erb config/graphs.json.erb
rake db:migrate
cd ..

And now make some files to start and stop all files in a TMUX Session

cat << EOF > ./genieacs-start.sh
#!/bin/sh
if tmux has-session -t ‘genieacs‘; then
  echo "GenieACS is already running."
  echo "To stop it use: ./genieacs-stop.sh"
  echo "To attach to it use: tmux attach -t genieacs"
else
  tmux new-session -s ‘genieacs‘ -d
  tmux send-keys ‘genieacs-cwmp‘ ‘C-m‘
  tmux split-window
  tmux send-keys ‘genieacs-nbi‘ ‘C-m‘
  tmux split-window
  tmux send-keys ‘genieacs-fs‘ ‘C-m‘
  tmux split-window
  tmux send-keys ‘cd genieacs-gui‘ ‘C-m‘
  tmux send-keys ‘rails server -b 0.0.0.0‘ ‘C-m‘
  tmux select-layout tiled 2>/dev/null
  tmux rename-window ‘GenieACS‘

  echo "GenieACS has been started in tmux session ‘geneiacs‘"
  echo "To attach to session, use: tmux attach -t genieacs"
  echo "To switch between panes use Ctrl+B-ArrowKey"
  echo "To deattach, press Ctrl+B-D"
  echo "To stop GenieACS, use: ./genieacs-stop.sh"
fi
EOF

cat << EOF > ./genieacs-stop.sh
#!/bin/sh
if tmux has-session -t ‘genieacs‘ 2>/dev/null; then
  tmux kill-session -t genieacs 2>/dev/null
  echo "GenieACS has been stopped."
else
  echo "GenieACS is not running!"
fi
EOF

chmod +x genieacs-start.sh genieacs-stop.sh

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

./genieacs-start.sh
tmux attach -t genieacs

原文地址:https://www.cnblogs.com/hester/p/10450075.html

时间: 2024-10-08 11:58:00

Installation Guide Ubuntu 16.04的相关文章

Ubuntu 16.04 系统安装

[1] Insert a disk for installation of Ubuntu 16.04 and reboot your computer. Next, Choose your language and go next. [2] Push Enter key to start installation. [3] Select your language again. [4] Select your country for time-zone. [5] Select your loca

[GUIDE] How to Setup Ubuntu 16.04 LTS Xenial Xerus for Compiling Android ROMs

With a new version of Ubuntu comes an update to my guide for setting up a build environment to compile Android ROMs. The aim of this is to simplify the configuration process and teach a little bit about the command line. Follow the directions step-by

ubuntu 16.04 和 windows 10系统安装mysql 允许远程访问 | mysql user guide on ubuntu 16.04 and windows 10

本文首发于个人博客https://kezunlin.me/post/36e618e7/,欢迎阅读! mysql user guide on ubuntu 16.04 and windows 10 Part-1: Ubuntu install sudo apt-get install mysql-server # root,123456 mysql -uroot -p123456 allow remote access change bind-address cd /etc/mysql grep

Ubuntu 16.04 installation failure

问题描述: 在安装 Ubuntu 16.04 (64 bit), 屏幕上出现下面的信息: missing parameter in configuration file. Keyword: path gfxboot.c32: not a com32R image boot: 并且后面的信息会一遍又一遍的重复. 解决方案: Once you see that message, try typing "help" and pressing enter. That should take y

Ubuntu 16.04 服务器上配置使用 docker

Docker基础概念 在使用Docker之前,我们先了解下几个Docker的核心概念 Docker Daemon Docker引擎,就是运行在后台的一个守护进程,在我们启动它之后,我们就可以通过Docker客户端发送相关Docker的命令. Docker Images Docker镜像,这个就类似于我们在安装Windows时的镜像,只不过windows的镜像,在以前我们通常存在光盘上或者U盘里,这里的镜像我们通常会发布到Docker Registry Docker Containers Dock

How To Install Java with Apt-Get on Ubuntu 16.04

Koen Vlaswinkel Subscribe Share 29 How To Install Java with Apt-Get on Ubuntu 16.04 PostedApril 23, 2016 1.1mviews JAVA UBUNTU UBUNTU 16.04 Introduction Java and the JVM (Java's virtual machine) are widely used and required for many kinds of software

Ubuntu 16.04下搭建kubernetes集群环境

简介 目前Kubernetes为Ubuntu提供的kube-up脚本,不支持15.10以及16.04这两个使用systemd作为init系统的版本. 这里详细介绍一下如何以非Docker方式在Ubuntu16.04集群上手动安装部署Kubernetes的过程. 手动的部署过程,可以很容易写成自动部署的脚本.同时了解整个部署过程,对深入理解Kubernetes的架构及各功能模块也会很有帮助. 环境信息 版本信息 组件 版本 etcd 2.3.1 Flannel 0.5.5 Kubernetes 1

ubuntu 16.04安装docker

环境 操作系统:ubuntu 16.04 64位,默认安装 准备 1. 添加GPG key: $ sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D 2. 添加源 新建文件:/etc/apt/sources.list.d/docker.list,在里面添加内容: deb https://apt.dockerpro

【转】Ubuntu 16.04安装配置TensorFlow GPU版本

之前摸爬滚打总是各种坑,今天参考这篇文章终于解决了,甚是鸡冻\(≧▽≦)/,电脑不知道怎么的,安装不了16.04,就安装15.10再升级到16.04 requirements: Ubuntu 16.04 python 2.7 Flask tensorflow GPU 版本 安装nvidia driver 经过不断踩坑的安装,终于google到了靠谱的方法,首先检查你的NVIDIA VGA card model sudo lshw -numeric -C display 可以看到你的显卡信息,比如