0% found this document useful (0 votes)
120 views3 pages

Install GenieACS

Uploaded by

Faiz Firmansyah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
120 views3 pages

Install GenieACS

Uploaded by

Faiz Firmansyah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

=======INSTALL NODEJS========

#curl -sL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh

#sudo bash nodesource_setup.sh

#sudo apt install nodejs

=======TAMBAHKAN REPOSITORY=========

#echo "deb http://security.ubuntu.com/ubuntu impish-security main" | sudo tee


/etc/apt/sources.list.d/impish-security.list
sudo apt-get update
sudo apt-get install libssl1.1

============INSTALASI MONGO DB==================

#curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -

pilih salah satu command di bawah dan sesuaikan dengan ubuntu servernya
===================================
==UBUNTU PRECISE (12.04)
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu precise/mongodb-
org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list

==UBUNTU TRUSTY (14.04)


echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu trusty/mongodb-
org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list

==UBUNTU XENIAL (16.04)


echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-
org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list

==UBUNTU BIONIC (18.04)


echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-
org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list

==UBUNTU FOCAL (20.04)


echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-
org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list

==UBUNTU JAMMY (22.04)


echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-
org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list

=============INSTALL MONGO DB===============

#sudo apt update


#sudo apt install mongodb-org -y

#sudo systemctl start mongod.service

#sudo systemctl status mongod

#sudo systemctl enable mongod


#mongo --eval 'db.runCommand({ connectionStatus: 1 })'

#sudo npm install -g [email protected]


#sudo useradd --system --no-create-home --user-group genieacs
#mkdir /opt/genieacs
#mkdir /opt/genieacs/ext
#chown genieacs:genieacs /opt/genieacs/ext

#nano /opt/genieacs/genieacs.env
GENIEACS_CWMP_ACCESS_LOG_FILE=/var/log/genieacs/genieacs-cwmp-access.log
GENIEACS_NBI_ACCESS_LOG_FILE=/var/log/genieacs/genieacs-nbi-access.log
GENIEACS_FS_ACCESS_LOG_FILE=/var/log/genieacs/genieacs-fs-access.log
GENIEACS_UI_ACCESS_LOG_FILE=/var/log/genieacs/genieacs-ui-access.log
GENIEACS_DEBUG_FILE=/var/log/genieacs/genieacs-debug.yaml
NODE_OPTIONS=--enable-source-maps
GENIEACS_EXT_DIR=/opt/genieacs/ext

#node -e "console.log(\"GENIEACS_UI_JWT_SECRET=\" +
require('crypto').randomBytes(128).toString('hex'))" >> /opt/genieacs/genieacs.env
#sudo chown genieacs:genieacs /opt/genieacs/genieacs.env
#mkdir /var/log/genieacs
#chown genieacs:genieacs /var/log/genieacs

#sudo systemctl edit --force --full genieacs-cwmp


[Unit]
Description=GenieACS CWMP
After=network.target

[Service]
User=genieacs
EnvironmentFile=/opt/genieacs/genieacs.env
ExecStart=/usr/bin/genieacs-cwmp

[Install]
WantedBy=default.target

#sudo systemctl edit --force --full genieacs-nbi


[Unit]
Description=GenieACS NBI
After=network.target

[Service]
User=genieacs
EnvironmentFile=/opt/genieacs/genieacs.env
ExecStart=/usr/bin/genieacs-nbi

[Install]
WantedBy=default.target

#sudo systemctl edit --force --full genieacs-fs


[Unit]
Description=GenieACS FS
After=network.target

[Service]
User=genieacs
EnvironmentFile=/opt/genieacs/genieacs.env
ExecStart=/usr/bin/genieacs-fs

[Install]
WantedBy=default.target
#sudo systemctl edit --force --full genieacs-ui
[Unit]
Description=GenieACS UI
After=network.target

[Service]
User=genieacs
EnvironmentFile=/opt/genieacs/genieacs.env
ExecStart=/usr/bin/genieacs-ui

[Install]
WantedBy=default.target

#nano /etc/logrotate.d/genieacs
/var/log/genieacs/*.log /var/log/genieacs/*.yaml {
daily
rotate 30
compress
delaycompress
dateext
}

#sudo systemctl enable genieacs-cwmp


sudo systemctl start genieacs-cwmp
sudo systemctl restart genieacs-cwmp
sudo systemctl enable genieacs-nbi
sudo systemctl start genieacs-nbi
sudo systemctl restart genieacs-cwmp
sudo systemctl enable genieacs-fs
sudo systemctl start genieacs-fs
sudo systemctl restart genieacs-cwmp
sudo systemctl enable genieacs-ui
sudo systemctl start genieacs-ui
sudo systemctl restart genieacs-cwmp

You might also like