= Debian 9 = * Installing as a VM, the network auto-config may not work. Configure network manually & use a static IP. * Set display resolution to 1440x900 $ su # adduser username sudo # apt-get install openssh-server # nano /etc/ssh/sshd_config Set "PermitRootLogin yes" Logout & login again... == Static IP Configuration == > sudo nano /etc/network/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback auto ens32 iface ens32 inet static address 139.169.156.xx netmask 255.255.255.0 network 139.169.156.0 broadcast 139.169.156.0 gateway 139.169.156.1 dns-nameservers 139.169.156.60 139.169.16.150 139.169.31.2 == WebMin == > sudo nano /etc/apt/sources.list Add the line: "deb http://download.webmin.com/download/repository sarge contrib" > su > cd /root > wget http://www.webmin.com/jcameron-key.asc > apt-key add jcameron-key.asc > exit > sudo apt-get update > sudo apt-get install webmin == Mumble Server == > sudo apt-get install mumble-server > sudo dpkg-reconfigure mumble-server > sudo nano /etc/mumble-server.ini welcometext= Whatever NASA dictates... bandwidth=128000 == Apache == > sudo apt-get install apache2 php7.0 libapache2-mod-php7.0 > sudo a2enmod reqtimeout > sudo a2enmod cgi > sudo rm /var/www/html/index.html > sudo nano /var/www/html/index.php > sudo nano /etc/php/7.0/apache2/php.ini change "upload_max_filesize = 2M" to "upload_max_filesize = 20M" > sudo systemctl restart apache2 == Squid == > sudo apt-get install squid > sudo nano /etc/squid/squid.conf Remove "#" from "#http_access allow localnet" acl localnet src 10.10.0.0/18 # EC4 internal network acl localnet src 139.169.156.0/24 # EC4 internal network acl localnet src 139.169.206.0/24 # EC4 internal network Change "#dns_v4_first off" to "dns_v4_first on" Remove "#" from: "#Cache_mem 256 MB" Change "#Maximum_object_size 4 MB" to "Maximum_object_size 4096 MB" Change "#Maximum_object_size_in_memory 512 KB" to "Maximum_object_size_in_memory 8192 KB" Change "#cache_dir ufs /var/spool/squid 100 16 256" to "cache_dir ufs /var/spool/squid 8192 16 256" > sudo service squid restart Webmin changes Path to the squid configuration file: /etc/squid/squid.conf squid3' to 'squid' in the commands to start,stop & apply changes to squid cache directory: /var/spool/squid == Sarg == > sudo apt-get install sarg Webmin changes Path to the sarg configuration file: /etc/sarg/sarg.conf Destination report directory: /var/www/html/squid-reports Enable scheduled reports (daily at midnight) == Webalizer == > sudo apt-get install webalizer Webmin changes /var/log/apache2/access.log Write report to directory: /var/www/webalizer Enable scheduled reports (daily at midnight) Create another report for /var/log/squid/access.log == Nagios == > su # apt-get install apache2 libapache2-mod-php7.0 build-essential libgd2-xpm-dev snmp # /usr/sbin/useradd -m -s /bin/bash nagios # passwd nagios # /usr/sbin/groupadd nagcmd # /usr/sbin/usermod -a -G nagcmd nagios # /usr/sbin/usermod -a -G nagcmd www-data # cd /tmp # wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.3.4.tar.gz # tar zxvf nagios-4.3.4.tar.gz # wget http://www.nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz # tar zxvf nagios-plugins-2.2.1.tar.gz # cd /tmp/nagios-4.3.4 # ./configure --with-command-group=nagcmd # make all # make install # make install-init # make install-config # make install-commandmode # /usr/bin/install -c -m 644 sample-config/httpd.conf /etc/apache2/sites-enabled/nagios.conf # make install-webconf # htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin # htpasswd -c /usr/local/nagios/etc/htpasswd.users svjsdars_admin # cd /tmp/nagios-plugins-2.2.1 # ./configure --with-nagios-user=nagios --with-nagios-group=nagios # make # make install # ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios # nano /etc/systemd/system/nagios.service [Unit] Description=Nagios BindTo=network.target [Install] WantedBy=multi-user.target [Service] User=nagios Group=nagios Type=simple ExecStart=/usr/local/nagios/bin/nagios /usr/local/nagios/etc/nagios.cfg # systemctl enable /etc/systemd/system/nagios.service # systemctl start nagios # systemctl status nagios === To upgrade Nagios === > su # cd /tmp # wget https://assets.nagios.com/downloads/nagioscore/releases/nagios-4.3.4.tar.gz # wget http://www.nagios-plugins.org/download/nagios-plugins-2.2.1.tar.gz # tar zxvf nagios-4.3.4.tar.gz # tar zxvf nagios-plugins-2.2.1.tar.gz # cd /tmp/nagios-4.3.4 # ./configure --with-command-group=nagcmd # make all # make install # cd /tmp/nagios-plugins-2.2.1 # ./configure --with-nagios-user=nagios --with-nagios-group=nagios # make # make install # service nagios restart # exit == Install MediaWiki == > sudo apt update > sudo apt install mysql-server > sudo apt-get install phpmyadmin > sudo mysql -p MariaDB > CREATE DATABASE wikidb; MariaDB > CONNECT wikidb MariaDB [wikidb] > GRANT ALL PRIVILEGES ON wikidb.* TO 'wikiuser'@'localhost' IDENTIFIED BY 'password'; MariaDB > update user set plugin='' where user='root'; > sudo wget https://releases.wikimedia.org/mediawiki/1.30/mediawiki-1.30.0.tar.gz > sudo tar xvzf mediawiki-1.30.0.tar.gz > sudo cp -r /home/username/mediawiki-1.30.0/ /var/www/html/mediawiki/ > sudo apt-get install php7.0-mbstring > sudo apt-get install php-xml > sudo service apache2 restart > sudo chown www-data -R /var/www/html/mediawiki/ > sudo chgrp www-data -R /var/www/html/mediawiki/ == Install the latest patches == > sudo apt-get update > sudo apt-get upgrade > sudo nano /etc/ssh/sshd_config change "PermitRootLogin without-password" to "PermitRootLogin yes"