{"id":435,"date":"2021-05-27T15:48:23","date_gmt":"2021-05-27T14:48:23","guid":{"rendered":"http:\/\/chaddha.com\/wp\/?p=435"},"modified":"2021-05-27T15:48:25","modified_gmt":"2021-05-27T14:48:25","slug":"installation-procedure","status":"publish","type":"post","link":"http:\/\/chaddha.com\/wp\/2021\/05\/27\/installation-procedure\/","title":{"rendered":"Installation Procedure"},"content":{"rendered":"\n<p>Prerequisites for the software installation is remote access to a physical server with minimum specifications of 30Gb of hard disk, 4GB of RAM and installed Ubuntuv17.10.1. During initial Ubuntu installation menu, LAMP (i.e. Linux, Apache, MySQLand PHP) should be selected, also Tomcat, Java and SSH Server. The server will require two configured network interface cards (NICS). One NIC was connected to the internet with a public IP address and the other NIC connected to the customer\u2019s environment. It is assumed that the installer has basic Unix\/Ubuntu and Network admin skills. The installation procedure to install MRTG and associated software was:-<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">#install supporting software<\/h1>\n\n\n\n<p>apt-get install libpango1.0-dev libxml2-dev<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">#validate the previous install<\/h1>\n\n\n\n<p>gcc -v<br>perl -v<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">#install supporting software<\/h1>\n\n\n\n<p>sudo apt-get install libgd-dev<br>sudo apt-get install libpng-dev<br>sudo apt-get install zlib1g-dev<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">#setup directories<\/h1>\n\n\n\n<p>mkdir -p \/usr\/local\/src<br>cd \/usr\/local\/src<br>cd home<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">#download and install MRTG<\/h1>\n\n\n\n<p>sudo wget https:\/\/oss.oetiker.ch\/mrtg\/pub\/mrtg-2.17.4.tar.gz<br>gunzip -c mrtg-2.17.4.tar.gz | tar xvf &#8211;<br>cd mrtg-2.17.4<br>.\/configure &#8211;prefix=\/usr\/local\/mrtg-2<br>make<br>sudo make install<br>cd \/usr\/local\/mrtg-2\/bin<br>sudo apt-install mrtg<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">#Install web and snmp software<\/h1>\n\n\n\n<p>sudo apt install snmp<br>sudo ufw enable<br>sudo ufw app list<br>sudo ufw allow &#8216;Apache Full&#8217;<br>sudo ufw allow ssh<br>sudo ufw status verbose<br>sudo systemctl status apache2<br>sudo apt-get install curl<br>hostname -I<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">#amend the default location of the website<\/h1>\n\n\n\n<p>sudo nano \/etc\/apache2\/sites-available\/000-default.conf<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">#amend the 000-default.conf DocumentRoot line as follows<\/h1>\n\n\n\n<p>DocumentRoot \/var\/www\/html<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">#Restart the service<\/h1>\n\n\n\n<p>sudo systemctl restart apache2<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This posts  lists out the remote installation procedure, all software and libraries required to operate the system are detailed within this post<\/p>\n","protected":false},"author":1,"featured_media":436,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-thisistheword","4":"has-excerpt","5":"post-435","7":"format-standard","8":"has-post-thumbnail","9":"category-energy-monitoring-system"},"_links":{"self":[{"href":"http:\/\/chaddha.com\/wp\/wp-json\/wp\/v2\/posts\/435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/chaddha.com\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/chaddha.com\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/chaddha.com\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/chaddha.com\/wp\/wp-json\/wp\/v2\/comments?post=435"}],"version-history":[{"count":1,"href":"http:\/\/chaddha.com\/wp\/wp-json\/wp\/v2\/posts\/435\/revisions"}],"predecessor-version":[{"id":437,"href":"http:\/\/chaddha.com\/wp\/wp-json\/wp\/v2\/posts\/435\/revisions\/437"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/chaddha.com\/wp\/wp-json\/wp\/v2\/media\/436"}],"wp:attachment":[{"href":"http:\/\/chaddha.com\/wp\/wp-json\/wp\/v2\/media?parent=435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/chaddha.com\/wp\/wp-json\/wp\/v2\/categories?post=435"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/chaddha.com\/wp\/wp-json\/wp\/v2\/tags?post=435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}