SSH Login notification using Telegram bot

Using Telepot and pam.d we can set a simple script that notifies any successful login on our Linux box thru Telegram.

Bot setup

BotFather is the Telegram Bot to create Bots. Call it and create a new bot using /newbot. Grab the token. We will use it in a while

Notification script

I wrote it on Python, you may want to set your chat_id and your Telegram Bot ID.

Create a folder at /etc/pam.scripts

sudo mkdir /etc/pam.scripts

And place the Python code inside

sudo cp /etc/pam.scripts/

And grant execution permissions

sudo chmod +x /etc/pam.scripts/

Pam.d configuration

Edit sshd pam.d config file

sudo vim /etc/pam.d/sshd

And append the following line

session   required         /etc/pam.script/


Building a Raspberry PI WebSDR node part 1


Some years ago my father shown me a pretty awesome piece of software created by Pieter-Tjerk de Boer. And I was absolutely surprised about this. Pieter built WebSDR, a software defined radio receiver thru Internet with the great gift of many simultaneous users listening to different frequencies.

Recently, Pieter added Raspberry PI support to his software, so it was a great moment to get hands dirty on this project: A fully automated Raspberry PI 3 powered WebSDR receiver. I had a spare Raspberry PI3, and also a RTL-SDR RTL2838u usb dongle ready to be used.

I asked Pieter for a copy of WebSDR, and he answered my email with an attached compressed file with webSDR binaries and files.

Continue reading Building a Raspberry PI WebSDR node part 1