Archives
Always-on PPPoE but 30 seconds disconnection
Posted on April 21, 2021 1 Comment
So I have a FTTH internet connection and my ISP uses PPPoE – a rather common configuration. But the ISP resets my connection every 12 hours, possibly for accounting purposes. Now whenever the connection reset was taking place my internet used to vanish for 30 seconds – a very bad situation to be in when […]
Linux rename network interface using udev rules
Posted on February 11, 2021 Leave a Comment
Sometimes it is convenient to have user assigned names to network interfaces – particularly when the MAC address of the interface remains constant but the bus on which it is attached may change because it’s a virtual machine. All that is required to be done is create a file /etc/udev/rules.d/persistent-net.rules : This file used to […]
Hibernate support on Ubuntu 20.04 with encrypted swap and encrypted root filesystem
Posted on January 26, 2021 10 Comments
So I installed Ubuntu 20.04 on my laptop with encrypted root filesystem with bcache support since I have a NVME SSD along with the usual hard disk in it. While setting up encrypted root filesystem the installer will not allow you to have unencrypted swap – and the default encrypted swap setup is to use […]
Speeding up PHP CLI applications using OpCache
Posted on April 23, 2020 Leave a Comment
I run a few PHP based applications which require background jobs, and I use the usual crond via crontab to run the jobs. PHP has an excellent feature – OpCache which can cache the compiled code in memory to speed up the web applications, where typically the PHP-FPM process is a long running process so […]
Change username and hostname for Ubuntu instances on AWS
Posted on February 6, 2020 Leave a Comment
If you have used Ubuntu images on AWS, you might have noticed that the default username of the user on the instance is ‘ubuntu’. And the hostname is dynamically generated according to the public IP. Both of these can be changed using cloud-config supported on Ubuntu images – the config has to be provided in […]
Using privileged mode (become) in Ansible without a password
Posted on January 20, 2020 Leave a Comment
So I was working on automating some stuff using Ansible when the necessity to have password less superuser access came up. A simple way would be adding the ansible management key to the root account itself and allow SSH to root, but allowing ssh to root is usually a bad idea. I tried many things […]
LXD OpenVSwitch and VLANs
Posted on July 5, 2019 2 Comments
LXD is a fantastic container virtualization tool that comes by default with Ubuntu. In one of my applications I needed to have many containers each within it’s own VLAN network. So I used OpenVSwitch in combination with LXD to achieve this. There is no inherent facility in LXD to provide VLAN tag numbers to the […]
Monitoring your internet connections with OpenWRT and a Telegram Bot
Posted on August 25, 2017 2 Comments
For the past 5 years or so, I have been using a single ISP at home and mobile data for backup when it went down. But since last few months, the ISP service became a bit unreliable – this is more related to the rainy season. Mobile data doesn’t give fiber like constant speeds I […]
Asterisk PBX with Reliance PRI Line using Digium TE131F
Posted on July 14, 2017 Leave a Comment
So I got an opportunity to set up Asterisk PBX with a Reliance Communications E1 line. I have worked with Asterisk PBX, but without PSTN interfacing. This post is about what all stuff I have done to get a Reliance E1 line with Digium TE131F card. Having explored a lot of other distributions like Fedora, […]
ZFS convert stripe to striped-mirror
Posted on June 22, 2017 Leave a Comment
I’m a huge fan of ZFS because of its performance and other features like snapshots, transparent compression. In fact I had switched to FreeBSD for servers just because it had native ZFS support. But as of Ubuntu 16.04, ZFS is officially supported for non-root partitions. Now I’m migrating a FreeBSD server to Ubuntu 16.04 with […]