manish
Create own WiFi router using raspberry pi 4
To get better control of internet at home, I have build own wifi router. This article covers, how you can convert your raspberry pi 3 or 4 boxes into a wifi router. I have used raspbian OS lite 64 bit based on Debian bullseye. You will need following software to build router hostapd turns on […]
Raspbian distro upgrade
My Raspberry pi boards are running on “buster” and now since “bullseye” is out, I thought to update them. While doing this, I thought to capture steps to help others. Here are the steps. First update repositories Now run full upgrade command Update raspberry pi firmware Next edit source.list at /etc/apt/sources.list to change distro from […]
Grafana behind apache proxy
It is always a good idea to expose Grafana like web apps on network via a standard web proxy. In this write up, I will mention required configuration updates in grafana and apache to achieve this. Grafana installation by default listens of all network interface IPs on port 3000/tcp. First let us restrict it on […]
Receive and process logs using Fluentd and Python
In normal use cases, we just have to receive logs from multiple hosts or devices, or have to forward logs from one syslog collector to another to further store them in filesystem or elastic like databases. In this case, I will discuss a scenario, where the ask is to filter logs by looking at the […]
RSA PKI based encryption and decryption in python
Generate RSA key pair in pem format Remember above pem file contains private and public key. Keep it secure with yourself. Extract public key out of pem file Now you have private key embedded in private.pem file along with public key. And a copy of public key is available in public.pem file. You can share […]
Enterprise grade Json Schema validator
In the world of enterprise grade microservices, data payload validation between webservices must be centrally controlled. For eg, in a eco system there are multiple webservices, say ws1, ws2, ws3. If ws1 gets json input data from some web form, ws1 processes it and passes its output json payloads to ws2, ws3 as input. Now […]
GPS data out of NEO M8N using python
I was thinking of building own low stratum NTP server for home. Stratum 0 NTP services are available out of atomic clocks, satellites or via some radio links. Any GPS module can easily get datetime (UTC) from satellite transmissions along with latitude, longitude (for geo positioning), speed, altitude etc. To build the project, I bought […]
Raspberry pi zero w based car dashcam
My pi zero board was lying unused since last couple of year. So I thought to make some use of it and decided to build a car dashcam. What all you need ? Raspberry pi zero w board, microSD memory card (>8GB), pi camera I have used raspbian lite OS and python3 to develop scripts. […]
Python remote ssh using public key
Quite often we come across scenarios where putting passwords in config or code is not allowed. In such situations, we can still do remote ssh using netmiko module combined with public key based authentication. Here is the sample code:
Remote syslog using python
This is quite handy way of sending informative or debug level message to a remote syslog server. And it is quite easy. Here is the basic code