Vaibhav Singh

Blog - vaibhavsingh.com

Category: Linux

Protect SSH with TOTP 2FA

A few of my compute nodes running on AWS were required to have their SSH port open to the public internet. There are several well established ways that can be used to protect the login. Fail2ban comes to mind, or a firewall if you know the source IP addresses or the range. In this instance, […]

Interacting with Gitlab from Linux CLI

Follow the documentation from the official website [here]. Installation on Ubuntu Add SSH key to GitLab First generate SSH keys from your Linux CLI for seamless and secure interaction with Gitlab servers. Navigate to https://gitlab.com and sign in. Select your avatar in the upper right corner, and click Settings Click SSH Keys. Paste the public […]

Automated backups using tar on Linux

Even though I use GCP’s scheduled snapshot feature as a means to backup entire OS, for a last known good configuration for my compute instances. But it seems excessive in some cases because it doesn’t make sense to restore the entire OS for something as simple as recovering an accidentally deleted file. Therefore, we must […]

Interfacing 16×2 LCD with Raspberry Pi 3 using GPIO

This note is to document how I finally managed to connect a HD44870 (JHD162A) based generic 16×2 LCD with my Raspberry Pi 3. I was at it for two days but the module just wouldn’t display any text, only the back light would stay lit but just won’t display any text. Wiring I followed [this] […]

VNC on a headless Raspberry Pi 3

I’ve had way too many problems trying to run tightvncserver on Rpi3 under Kali that I decided to rip out the tighvncserver and try vnc4derver daemon. The main problem was that it would give me a blank screen with a X cursor randomly. It would work fine one day and wouldn’t work the next time, […]

Embedded Linux on my consumer grade IP CAM

Lately I have been messing around with tiny devices that have a SoC with embedded Linux on them typically equipped with an ARM processor or similar. Such a new toy in my collection to tinker with is a cheap IP Camera that I bought from Thailand. Steps Disassembling the outer case Soldering USB TTL cable […]

Colourful bash shell

There are several ways to make bash present a colourful prompt as well as the file list. There are a plenty of tutorials on the web, Google for more. Here is my ~/.bashrc and ~./bash_profile To setup system wide settings, enter them in /etc/profile. Note that sometimes the location or system files are customized for […]

Tinkering with embedded linux on a WD MyBook NAS

Here is the deal, I have a Western Digital MyBook 1TB NAS. It runs a trimmed version of Linux, called BusyBox. For the past two weeks I’ve been busy hacking and customizing it. Linux MyBookWorld 2.6.17.14 #1 PREEMPT Fri Jan 18 10:40:25 GMT 2008 armv5tejl GNU/Linux Recently after upgrading to latest firmware version 2.00.18, I […]

Back to top