Changes

Jump to navigation Jump to search
no edit summary
Line 1: Line 1: −
Allmon2 Install.
+
[[Category:How to]]
 
+
[[Category:Node Configuration]]
==  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.
 
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:~$
 
  repeater@repeater:~$
      
Once you are there you have to type the following commands:
 
Once you are there you have to type the following commands:
   −
sudo apt update
+
<pre>
sudo apt install apache2 -y
+
repeater@repeater:~$ sudo apt install git
sudo apt install php libapache2-mod-php -y
+
repeater@repeater:~$ sudo git clone https://github.com/tsawyer/allmon2.git /var/www/html/allmon2
sudo apt install git
+
repeater@repeater:~$ cd /var/www/html/allmon2
sudo git clone https://github.com/tsawyer/allmon2.git /var/www/html/allmon2
+
repeater@repeater:~$ sudo mv allmon.ini.txt allmon.ini.php
cd /var/www/html/allmon2
+
repeater@repeater:~$ sudo mv controlpanel.ini.txt controlpanel.ini.php
sudo mv allmon.ini.txt allmon.ini.php
+
</pre>
sudo mv controlpanel.ini.txt controlpanel.ini.php
     −
 
+
== Configuration ==
 
  −
== Allmon2 Configuration==
      
Now you have to edit the allmon.ini.php file:
 
Now you have to edit the allmon.ini.php file:
   −
cd /var/www/html/allmon2
+
repeater@repeater:~$ sudo nano allmon.ini.php
sudo nano allmon.ini.php
  −
 
  −
Search for the stanza [500] and change 500 to your node number i.e. [12345]
  −
 
  −
[12345]
  −
 
  −
Change the following lines for your node stanza.
  −
 
  −
host=127.0.0.1:5038
  −
user=admin
  −
passwd=yourpassword
  −
nomenu=no
  −
hideNodeURL=no
  −
menu=yes
     −
(note: 'llcgi' is the default password according to the initial node setup)
+
# 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 acording 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>'''.
 
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>'''.
   −
Next, type the following commands:
+
<pre>
 +
repeater@repeater:~$ htpasswd -cB .htpasswd admin
 +
repeater@repeater:~$ chmod 777 astdb.php
 +
</pre>
   −
mv -f /var/www/html/allmon2/allmon.ini.php $WEBROOT/allmon2/allmon.ini.php.$DATEEXT 2>/dev/null #backup default
+
== Test and Use ==
cp -f /usr/local/sbin/allmon.ini.php /var/www/html/allmon2/allmon.ini.php 2>/dev/null #copy what node-setup script created
     −
sudo htpasswd -cB /var/www/html/allmon2/.htpasswd admin
+
Using your web browser go to:
   −
Next you have to type twice your password (note: 'llcgi' is the default password according to the initial node setup).
+
Note: 192.168.x.x is your nodes IP.
   −
yourpassword
+
http://192.168.x.x/allmon2
   −
yourpassword
+
There you can login with the user 'admin' and your password 'yourpassword' or remember default password is 'llcgi'.
   −
sudo chmod 777 astdb.php
+
== Lighttpd Notes ==
 +
'''If you are using Lighttpd, you must modify your configuration to work with Allmon2.'''
   −
== Allmon2 Test and Use. ==
+
Add
 
+
  server.stream-response-body = 2
Using your web browser go to:
+
to /etc/lighttpd/lighttpd.conf and restart lighttpd.
 
  −
http:192.168.x.x/allmon2
  −
 
  −
Note: where 192.168.x.x is your node's IP.
  −
 
  −
There you can login with the user 'admin' and your password 'yourpassword' or remember default password is 'llcgi'.
 

Navigation menu