Difference between revisions of "Allmon2 Install"

From "PTTLink Wiki"
Jump to navigation Jump to search
m
m
Line 6: Line 6:
  
  
repeater@repeater:~$
+
repeater@repeater:~$
  
  
 
Once you are there you have to type the following commands:
 
Once you are there you have to type the following commands:
  
 
+
repeater@repeater:~$ sudo apt update
repeater@repeater:~$ sudo apt install git
+
repeater@repeater:~$ sudo apt install apache2 -y
 
+
repeater@repeater:~$ sudo apt install php libapache2-mod-php -y
repeater@repeater:~$ sudo git clone https://github.com/tsawyer/allmon2.git /var/www/html/allmon2
+
repeater@repeater:~$ sudo apt install git
 
+
repeater@repeater:~$ sudo git clone https://github.com/tsawyer/allmon2.git /var/www/html/allmon2
repeater@repeater:~$ cd /var/www/html/allmon2
+
repeater@repeater:~$ cd /var/www/html/allmon2
 
+
repeater@repeater:~$ sudo mv allmon.ini.txt allmon.ini.php
repeater@repeater:~$ sudo mv allmon.ini.txt allmon.ini.php
+
repeater@repeater:~$ sudo mv controlpanel.ini.txt controlpanel.ini.php
 
 
repeater@repeater:~$ sudo mv controlpanel.ini.txt controlpanel.ini.php
 
  
  
Line 29: Line 27:
  
  
repeater@repeater:~$ sudo nano allmon.ini.php
+
repeater@repeater:~$ cd /var/www/html/allmon2
 +
repeater@repeater:~$ sudo nano allmon.ini.php
  
# Change: the '500' number [500] to your node number.
+
# Change: the '500' number [500] to your node number.
# Change: host=127.0.0.1:5038
+
# Change: host=127.0.0.1:5038
# Change: passwd=yourpassword
+
# Change: passwd=yourpassword
# (note: 'llcgi' is the default password acording to the initial node setup)
+
# (note: 'llcgi' is the default password according to the initial node setup)
# Change: menu=yes
+
# Change: menu=yes
  
  
Line 41: Line 40:
  
  
repeater@repeater:~$ htpasswd -cB .htpasswd admin
+
repeater@repeater:~$ sudo htpasswd -cB /var/www/html/allmon2/.htpasswd admin
 +
 
 +
Next you have to type twice your password (note: 'llcgi' is the default password according to the initial node setup).
 +
 
 +
yourpassword
  
repeater@repeater:~$ chmod 777 astdb.php
+
yourpassword
  
 +
repeater@repeater:~$ sudo chmod 777 astdb.php
  
 
==  Allmon2 Test and Use.  ==
 
==  Allmon2 Test and Use.  ==
Line 53: Line 57:
 
Note: 192.168.x.x is your nodes IP.
 
Note: 192.168.x.x is your nodes IP.
  
http:192.168.x.x/allmon2
+
http:192.168.x.x/allmon2
  
 
There you can login with the user 'admin' and your password 'yourpassword' or remember default password is 'llcgi'.
 
There you can login with the user 'admin' and your password 'yourpassword' or remember default password is 'llcgi'.

Revision as of 16:48, 24 October 2020

Allmon2 Install.

Allmon2 Install.

The first thing to do is to log on your node as user 'repeater' command line, you can log in with a keyboard and monitor or using SSH as in the initial node setup.


repeater@repeater:~$


Once you are there you have to type the following commands:

repeater@repeater:~$ sudo apt update
repeater@repeater:~$ sudo apt install apache2 -y
repeater@repeater:~$ sudo apt install php libapache2-mod-php -y
repeater@repeater:~$ sudo apt install git
repeater@repeater:~$ sudo git clone https://github.com/tsawyer/allmon2.git /var/www/html/allmon2
repeater@repeater:~$ cd /var/www/html/allmon2
repeater@repeater:~$ sudo mv allmon.ini.txt allmon.ini.php
repeater@repeater:~$ sudo mv controlpanel.ini.txt controlpanel.ini.php


Allmon2 Configuration.

Now you have to edit the allmon.ini.php file:


repeater@repeater:~$ cd /var/www/html/allmon2
repeater@repeater:~$ sudo nano allmon.ini.php
# Change: the '500' number [500] to your node number.
# Change: host=127.0.0.1:5038
# Change: passwd=yourpassword
# (note: 'llcgi' is the default password according to the initial node setup)
# Change: menu=yes


After making your changes type <CTRL> + <X> and then type <Y> followed by <Enter>. You will be back to the previous menu and choose <Back>.


repeater@repeater:~$ sudo htpasswd -cB /var/www/html/allmon2/.htpasswd admin

Next you have to type twice your password (note: 'llcgi' is the default password according to the initial node setup).

yourpassword

yourpassword

repeater@repeater:~$ sudo chmod 777 astdb.php

Allmon2 Test and Use.

Using your web browser go to:


Note: 192.168.x.x is your nodes IP.

http:192.168.x.x/allmon2

There you can login with the user 'admin' and your password 'yourpassword' or remember default password is 'llcgi'.