Categories
Debian Buster (10)

Install latest Ansible version on Debian 10 (Buster)

This article will guide you on installing latest version of Ansible on a Debian 9/10 host. For this article I will be installing Ansible version 2.11.12 on a RaspberryPi 4 running on Debian 10 release.

Firstly start off by updating the the update cache

Categories
Debian Buster (10)

Install latest Nginx version from source – Debian 10 (Buster)

This article shows you how to install Nginx version 1.23 (at the time of writing this article) on a RaspberryPi running Debian 10 (Buster). This scenario might arise as Debian 10 comes pre-packaged with version 1.14 and if you want to upgrade, the only way around is, to compile from source to get to the latest version.

Categories
Rasberry Pi

Install Nagios NRPE latest version v3.x.x (source) on RaspberryPi – Jessie and Pixel

Its now possible to install the latest version of Nagios NRPE v 3.0.1 (source install) on RaspberryPi (incl. Pixel OS). Just follow this simple article and you will be up and running with NRPE on Nagios clients as well as on the Nagios server which needs to communicate to clients via nrpe agent. This guide is valid for Raspbian Jessie and the latest version that is Raspbian Pixel OS.

Categories
Rasberry Pi

Enable root login and change password – RaspberryPi

In Raspberry Pi from version Jessie onwards the “root” login for SSH sessions (via Putty Login) has been disabled by default. It can be enabled by just editing “sshd_config” file and then restarting “ssh” service.

To start with login to raspi via ssh using the default “pi” credentials. Then elevate yourself to super user “sudo”

# sudo -i

Then edit “/etc/ssh/sshd_config” and update the field “PermitRootLogin”

# vi /etc/ssh/sshd_config
Categories
Rasberry Pi

Resolve Nagios error – Failed to start nagios.service-Unit nagios.service failed to load – No such file or directory

If you are getting this error while installing Nagios Core on RaspberryPi run these commands to resolve the error and get Nagios up and running in no time. These commands wil need to be run as ROOT. You need to restart the nagios service after you carry out the changes.

Categories
Rasberry Pi

Install Nagios Core latest version 4.x.x on RaspberryPi – Jessie

Its now possible to install latest Nagios CORE version on Raspbian by following the steps in this article. Before writing this article I Googled for the same but couldn’t find a single article covering install of latest version of Nagios on RasberryPi hence this guide. It has been fully tested and working on my personal RasPi.

This guide was originally written for Ubuntu but will work for Raspbian (Debian Jessie) flavour for RasberryPi as well. It might work for all debian distros but not guranteed, you can try it out yourself.

Categories
Debian Wheezy (7)

Wake-On-LAN Automation – BASH Script – RaspberryPi

Wake-On-LAN (WOL) is a very useful feature if you have got a LAB at home and want to make it energy efficient. I have written a small BASH script to automate the Wake-On-LAN (WOL) procedure which can be used in an instance where there is a ESXi server which can turned on as and when required and then shutdown when not needed. Believe me it saves a lot on electric bills as the Servers are not running 24/7 and powered on only when required.

Categories
Debian Wheezy (7)

Enable BIND DNS forwarding incl Reverse Lookup – RaspberryPi

It’s possible to enable DNS forwarding using BIND and including reverse lookup for the zone. Once you are done with the config of a basic bind server, all you need to do is configure “/etc/bind/named.conf.options and conf.local” with the following options and restart the service.

In this example we have got 2 DNS server’s resolving.

SERVER1 = raspi-qud.hm.local = domain : HM.LOCAL : IP: 172.16.64.1

SERVER 2 = viz-raspi-st.dev.local = domain : DEV.LOCAL :IP: 172.16.66.212

We need to resolve local requests for “hm.local” on SERVER 1 and forward any “dev.local” domain requests (forward and reverse lookups) to SERVER 2 and hence need to configure SERVER 1  to achieve this.

To start with add the zone dev.local to “/etc/bind/named.conf.local” and add the forward zone to the config file.

Categories
Debian Wheezy (7)

Enable Ls Colors in RaspberryPi – DebianWheezy

If you are finding it difficult to recognize files and folders in RaspberryPi DebianWheezy dist OS, you can enable Ls COLORS to make them more recognizable. All you need to do is edit /.bashrc and logout and login back to enable it.

Categories
Debian Wheezy (7)

Get email when Public IP address changes using RasberryPi

If you can’t spend thousands for a static IP, Try out this script which sends out an email alert whenever Public IP address changes. In a situation where you need a VPN solution without spending thousands on a static IP no matter if you are a HOME user or a Small Business owner, all you need to have is a RasberryPi and a decent Small Business VPN Router. For this article I used a Cisco RV110w VPN Router.