Installation Manual InfraManage.NET Installation Instructions for Ubuntu Copyright 1996 2017 Timothy Ste. Marie Version 7.5.72SQL InfraManage.NET Installing InfraManage.NET Page 1 of 78
Table of Contents Installing Ubuntu 14.04 3 Partitioning 16 Linux Software Selections 64 Login to Linux 69 Configure Your Firewall 70 Install Packages for Ubuntu 71 Install InfraManage.NET Software 74 Update InfraManage.NET to the Current Release 76 Done! 78 InfraManage.NET Table of Contents Page 2 of 78
Installing Ubuntu 14.04 Boot from the Ubuntu 14.04 media. Select English(US) for your language and press Enter. InfraManage.NET Installing InfraManage.NET Page 3 of 78
Select Install Ubuntu Server and press Enter. InfraManage.NET Installing InfraManage.NET Page 4 of 78
Select English and press Enter. InfraManage.NET Installing InfraManage.NET Page 5 of 78
Select United States and press Enter InfraManage.NET Installing InfraManage.NET Page 6 of 78
Select No for the keyboard detection and press Enter InfraManage.NET Installing InfraManage.NET Page 7 of 78
Select English (US) and press Enter InfraManage.NET Installing InfraManage.NET Page 8 of 78
Select English (US) and press Enter InfraManage.NET Installing InfraManage.NET Page 9 of 78
Enter the hostname for the system and press Enter InfraManage.NET Installing InfraManage.NET Page 10 of 78
Enter the full name of your first user and press Enter InfraManage.NET Installing InfraManage.NET Page 11 of 78
Enter the logon name for the first user and press Enter InfraManage.NET Installing InfraManage.NET Page 12 of 78
Enter the password and then the verification password for this first user and press Enter InfraManage.NET Installing InfraManage.NET Page 13 of 78
Select No for encryption and press Enter InfraManage.NET Installing InfraManage.NET Page 14 of 78
Select Yes if this is the correct timezone and press Enter InfraManage.NET Installing InfraManage.NET Page 15 of 78
Partitioning This is a sample of what the partition should be: The general scheme for partitioning is: /boot 500MB swap 2 X RAM (min 4GB) /var/log 15GB or more(considerably more if you have a number of devices logging to this server and/or Windows Event Viewer logs) / Rest of the drive space Select Manual for partitioning method and press Enter. InfraManage.NET Installing InfraManage.NET Page 16 of 78
Select your disk that you wish to partition and press Enter. InfraManage.NET Installing InfraManage.NET Page 17 of 78
Select Yes for partitioning the enter device and press Enter. InfraManage.NET Installing InfraManage.NET Page 18 of 78
Select the FREE SPACE and press Enter. InfraManage.NET Installing InfraManage.NET Page 19 of 78
Select Create a new partition and press Enter. InfraManage.NET Installing InfraManage.NET Page 20 of 78
Enter 500MB and press Enter. This will be for the /boot partition. InfraManage.NET Installing InfraManage.NET Page 21 of 78
Select Primary and press Enter. InfraManage.NET Installing InfraManage.NET Page 22 of 78
Select Beginning and press Enter. InfraManage.NET Installing InfraManage.NET Page 23 of 78
Highlight Use as: and select Ext4 journaling file system. Highlight Mount point: and change to /boot. Highlight Label: and key in ub-boot. Highlight Bootable flag: and press Enter to turn it on. Highlight Done setting up the partition and press Enter. InfraManage.NET Installing InfraManage.NET Page 24 of 78
Select the FREE SPACE and press Enter. InfraManage.NET Installing InfraManage.NET Page 25 of 78
Select Create a new partition and press Enter. InfraManage.NET Installing InfraManage.NET Page 26 of 78
Enter 8GB and press Enter. This will be for the swap partition. InfraManage.NET Installing InfraManage.NET Page 27 of 78
Select Primary and press Enter. InfraManage.NET Installing InfraManage.NET Page 28 of 78
Select Beginning and press Enter. InfraManage.NET Installing InfraManage.NET Page 29 of 78
Highlight Use as: and select swap area. Highlight Done setting up the partition and press Enter. InfraManage.NET Installing InfraManage.NET Page 30 of 78
Select the FREE SPACE and press Enter. InfraManage.NET Installing InfraManage.NET Page 31 of 78
Select Create a new partition and press Enter. InfraManage.NET Installing InfraManage.NET Page 32 of 78
Enter 95GB and press Enter. This will be for the / partition. InfraManage.NET Installing InfraManage.NET Page 33 of 78
Select Primary and press Enter. InfraManage.NET Installing InfraManage.NET Page 34 of 78
Select Beginning and press Enter. InfraManage.NET Installing InfraManage.NET Page 35 of 78
Highlight Use as: and select physical volume for LVM. Highlight Done setting up the partition and press Enter. InfraManage.NET Installing InfraManage.NET Page 36 of 78
Select the FREE SPACE and press Enter. InfraManage.NET Installing InfraManage.NET Page 37 of 78
Select Create a new partition and press Enter. InfraManage.NET Installing InfraManage.NET Page 38 of 78
Enter 20GB and press Enter. This will be for the /var/log partition. InfraManage.NET Installing InfraManage.NET Page 39 of 78
Select Logical and press Enter. InfraManage.NET Installing InfraManage.NET Page 40 of 78
Select Beginning and press Enter. InfraManage.NET Installing InfraManage.NET Page 41 of 78
Highlight Use as: and select physical volume for LVM. Highlight Done setting up the partition and press Enter. InfraManage.NET Installing InfraManage.NET Page 42 of 78
Select Configure the Logical Volume Manager and press Enter. InfraManage.NET Installing InfraManage.NET Page 43 of 78
Select Yes and press Enter to allow the partitioning scheme to be written to disk. InfraManage.NET Installing InfraManage.NET Page 44 of 78
Select Create volume group and press Enter. InfraManage.NET Installing InfraManage.NET Page 45 of 78
Name the Volume group vgroot and press Enter. InfraManage.NET Installing InfraManage.NET Page 46 of 78
Highlight the 94999MB device and press the spacebar to select it, then press Enter. InfraManage.NET Installing InfraManage.NET Page 47 of 78
Select Create volume group and press Enter. InfraManage.NET Installing InfraManage.NET Page 48 of 78
Name the Volume group vgvarlog and press Enter. InfraManage.NET Installing InfraManage.NET Page 49 of 78
Highlight the 19998MB device and press the spacebar to select it, then press Enter. InfraManage.NET Installing InfraManage.NET Page 50 of 78
Select Create logical volume and press Enter. InfraManage.NET Installing InfraManage.NET Page 51 of 78
Select vgvarlog and press Enter. InfraManage.NET Installing InfraManage.NET Page 52 of 78
Name the logical volume lv-varlog and press Enter. InfraManage.NET Installing InfraManage.NET Page 53 of 78
Make the size of the volume somewhat less than the total 19000MB and press Enter. InfraManage.NET Installing InfraManage.NET Page 54 of 78
Select Finish and press Enter. InfraManage.NET Installing InfraManage.NET Page 55 of 78
Highlight the vgroot Volume Group and press Enter. InfraManage.NET Installing InfraManage.NET Page 56 of 78
Highlight Use as: and select Ext4 journaling file system. Highlight Mount point: and change to /. Highlight Label: and key in vol-root. Highlight Done setting up the partition and press Enter. InfraManage.NET Installing InfraManage.NET Page 57 of 78
Highlight the vgvarlog Volume Group and press Enter. InfraManage.NET Installing InfraManage.NET Page 58 of 78
Highlight Use as: and select Ext4 journaling file system. Highlight Mount point: and change to /var/log. Highlight Label: and key in vol-varlog. Highlight Done setting up the partition and press Enter. InfraManage.NET Installing InfraManage.NET Page 59 of 78
Select Finish partitioning and write changes to disk and press Enter. InfraManage.NET Installing InfraManage.NET Page 60 of 78
Select Yes and press Enter to write the changes to disk. InfraManage.NET Installing InfraManage.NET Page 61 of 78
Enter in if you have an http proxy server and press Enter. InfraManage.NET Installing InfraManage.NET Page 62 of 78
Select Install security updates automatically and press Enter. InfraManage.NET Installing InfraManage.NET Page 63 of 78
Linux Software Selections Select Manual package selection and press Enter. InfraManage.NET Installing InfraManage.NET Page 64 of 78
Press q and then Enter. InfraManage.NET Installing InfraManage.NET Page 65 of 78
Install the GRUB loader by selecting Yes and pressing Enter. InfraManage.NET Installing InfraManage.NET Page 66 of 78
Ubuntu is now installed. Let the system reboot and then proceed to installing InfraManage.NET. InfraManage.NET Installing InfraManage.NET Page 67 of 78
We are going to be installing the following items: nmap fping mrtg syslog-ng php nagios tftp server samba at mysql apache2-mod_auth_mysql mysql, mysql-client mysql-shared perl-dbd-mysql whois expect InfraManage.NET Installing InfraManage.NET Page 68 of 78
Login to Linux Login as your user that you defined during the installation and then switch to root by issuing sudo su and pressing Enter. InfraManage.NET Installing InfraManage.NET Page 69 of 78
Configure Your Firewall Configure your network firewall and open the following ports from the IP address of the InfraManage.NET server TO the Internet. There is no need to allow access FROM the Internet specifically. Let your firewall return traffic that is initiated from the InfraManage.NET server to the Internet, but disallow any traffic that is INITIATED from the Internet to the InfraManage.NET server. Do this FIRST!!!!!! TCP port 25 -Allows SMTP alerts TCP port 80 -Allows PERL and system updates to occur TCP port 20 -Allows System Updates to be downloaded TCP port 21 -Allows System Updates to be downloaded TCP port 3306 -Allows System Updates to be downloaded InfraManage.NET Installing InfraManage.NET Page 70 of 78
Install Packages for Ubuntu Run the following commands from the bash prompt: vi /etc/network/interfaces # Change : auto eth0 iface eth0 inet dhcp # To (substitute in your networking for the addresses below) : auto eth0 iface eth0 inet static address 10.253.0.50 netmask 255.255.255.0 network 10.253.0.0 gateway 10.253.0.1 dns-nameservers 8.8.8.8 sed -i "s#us.archive#ca.archive#g" /etc/apt/sources.list apt-get update apt-get install -y zip unzip nmap fping bing apt-get install -y mrtg rrdtool librrds-perl librrd-dev apt-get install -y libgd2-xpm #gd-development package for highcharts apt-get install -y libgd2-xpm-dev #On Ubuntu 14.04 and above apt-get install -y syslog-ng-core syslog-ng apt-get install -y xinetd tftp tftpd-hpa service tftpd-hpa stop rm /etc/default/tftpd-hpa # Ignore issues if samba or swat do not get installed no longer needed apt-get install -y samba apt-get install -y swat apt-get install -y rpm at perl whois expect traceroute #For SWAKS apt-get install -y libgcrypt11 libgcrypt11-dev apt-get install -y postfix #Pick No Configuration for postfix install apt-get install -y openssh-server openssl apache2 php5 php5-cli libapache2-mod-php5 InfraManage.NET Installing InfraManage.NET Page 71 of 78
# For nfsen/nfdump apt-get install -y flex byacc apt-get install -y snmp snmpd snmp-mibs-downloader apt-get install -y mailutils apt-get install -y sysv-rc-conf apt-get install -y mysql-server mysql-client libapache2-mod-auth-mysql # Use root password of tsmdata5 for mysql root user apt-get install -y php5-mysql aptitude dos2unix ntp apt-get build-dep -y linux perl -MCPAN -e'install CPAN' perl -MCPAN -e'install Mail::Header' perl -MCPAN -e'install Socket6' #Verify with instmodsh -l apt-get update apt-get install -y update-manager # Only if you want a desktop apt-get install -y ubuntu-desktop apt-get install -y php5-gd apt-get install -y nagios-plugins mkdir /bob cp f /usr/lib/nagios/plugins/* /bob/ a2enmod cgi # Remove AppArmor /etc/init.d/apparmor stop update-rc.d f apparmor remove apt-get remove apparmor apparmor-utils y # Install VMware tools lsblk -f mount -t iso9660 /dev/sr0 /media/cdrom mkdir /kk cd /kk tar -xvzf /media/cdrom/vmware\ Tools/VMwareTools-8.6.5-621624.tar.gz cd vmware-tools-distrib./vmware-install.pl startx ctl-alt-t InfraManage.NET Installing InfraManage.NET Page 72 of 78
sudo su /usr/bin/vmware-user mkdir -p /data/installers/tsminstall vi /etc/ssh/sshd_config Comment out the following line: # PermitRootLogin without-password Just below it, add the following line: PermitRootLogin yes Then restart SSH: service ssh restart #Set a password on the root user passwd root apt-get autoremove -y apt-get install -y apache2-utils InfraManage.NET Installing InfraManage.NET Page 73 of 78
Install InfraManage.NET Software Type in startx and go into the graphical interface. Login as root and launch Firefox. Use Ctrl-Alt-T to get a terminal window. Download the iminstaller.zip file from http://www.inframanage.net, select Downloads, Download the zip file installer. In the Terminal: Create the directory for the software installation. mkdir p /data/installers/tsminstall Unzip the installer into the installation directory. Unzip /root/downloads/iminstaller.zip d /data/installers/tsminstall x MACOSX/* Change to the installation directory. cd /data/installers/tsminstall Run the installer../tsminstall.sh InfraManage.NET Installing InfraManage.NET Page 74 of 78
===================================================================== InfraManage.NET Linux Server Installation Script ===================================================================== Enter the SNMP Read-Only Community string: public Enter your DNS domain name: mycompany.com Enter your /var/log/<sitename> name : mycompany Enter your Samba root password (YOUR KEYSTROKES ARE ---NOT--- DISPLAYED!!!!) : Reenter your Samba root password : Apache DocumentRoot /srv/www/htdocs: [/srv/www/htdocs]: Using default path of [/srv/www/htdocs] for Apache2 DocumentRoot. Values being used: SNMP Read-Only Community string : public DNS domain name : mycompany.com Syslog Directory : /var/log/mycompany Apache Document Root : /srv/www/htdocs ===================================================================== Are these values correct? [Y/N/X] (Yes, No, Exit): Y Beginning InfraManage.NET installation... ===================================================================== Verifying Installed Packages... ===================================================================== Found installation files at /data/installers/tsminstall. Continuing installation........ Wait for the installation to complete. You will see a To Do List. To Do List... ------------- 1) Run an Update Installation to bring the software to current from the web interface. im7777:/data/installers/tsminstall # #Copy back the Nagios plugs cp f /bob/* /usr/lib/nagios/plugins InfraManage.NET Installing InfraManage.NET Page 75 of 78
Update InfraManage.NET to the Current Release Surf to the IP address of the InfraManage.NET server. http://1.1.1.1 (or whatever the IP address is that you used) You will be prompted for a username and password (Case-sensitive on both the username and password). Use the username of root Use the password of password Next, click on InfraManage.NET, Update Installation, System Update via FTP. Leave the FTP site at www.inframanage.net Contact InfraManage.NET for a username and password to update the installation with. Key in the username Key in the password InfraManage.NET Installing InfraManage.NET Page 76 of 78
You will receive a message that the MD5 checksum is valid. Press OK. Press Continue to Update System button. Press Update System button. The update will take about two to three minutes to complete. Click Done. InfraManage.NET Installing InfraManage.NET Page 77 of 78
Done! You are ready to start using InfraManage.NET! InfraManage.NET Installing InfraManage.NET Page 78 of 78