Posts

Showing posts from August, 2022

How to auto-apply custom display resolution mode in linux

User can create a script-file in  /etc/X11/Xsession.d as 91_custom_xrandr and add the mode there. xrandr --newmode "1680x1050_60.00"  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync xrandr --addmode DP-2 "1680x1050_60.00"

Using systemd-networkd on Ubuntu as networking backend

Recently I came across a use case where on a product-line, we needed to use systemd-networkd as networking back-end. The product in question was using a very old networking back-end and the newer version of Linux was going along with systemd. So along came some thoughts on netplan which is a tool developed by canonical which abstracts both NetworkManager and systemd-networkd. Basically user provides network configuration via yaml configuration files and netplan creates back-end configuration automatically depending on whichever back-end is in use. Now, the version of Ubuntu I was using (22.04) had NetworkManager enabled and it also had systemd-networkd available but disabled. So my first step was to stop and disable NetworkManager. #systemctl stop NetworkManager #systemctl disable NetworkManager Next enable systemd-networkd and observe it's status if there is a successful startup: #systemctl enable systemd-networkd #systemctl start systemd-networkd #systemctl status systemd-netwo...

Realme 3 - 2 years 7 months and going

I bought this in dec'19 and it has been overall a great phone. It came with Android 9, received one OS update to Android 10 and few more security patches. It's price was about 10000 INR and I was eligible for a bank offer that knocked off 900 INR off the price. It has 2 versions - one with 3GB RAM/32GB flash and another with 4GB RAM/64GB flash. I went with the latter. Now after so many days Accubattery reports the battery health at 86% which is excellent. I recall so many phones where battery replacement was needed after 2 years of usage. This phone has plastic construction and is not really a looker. It's originally supplied case is still holding even though it has yellowed a lot. I don't seem to find vinegar anywhere which might help clear out the yellowness and make it look new. Anyway the phone is smooth because I don't really have a lot of apps on it. Couple of games, few messengers, and some food ordering, cab booking apps. And I ensure to keep 10-15GBs of fla...

Upgrading Debian 10 Buster to 11 Bullseye

I followed below linked article to upgrade Debian 10 to 11, and it worked well. https://linuxize.com/post/how-to-upgrade-debian-10-to-debian-11/ I'll add the text below for quick reference or in case the original link goes down. Prerequisites The upgrade operation must be run with superuser privileges. You need to be logged in as a root or a user with sudo privileges . Backup Your Data First and foremost, make sure you backup your data before starting the major upgrade of your operating system. If you are running Debian on a virtual machine, it is best to take a complete system snapshot so you can quickly restore your machine in case the update goes south. Update Currently Installed Packages Before starting the release upgrade, it is recommended to update all your currently installed packages to their latest versions. Packages marked as held back cannot be automatically installed, upgraded or removed. This may cause issues during the upgrade process. To check whet...

Maruti Celerio 20000km update

It's about a year and 10 months and the car has crossed 20000 km. It was overall smooth sailing. There were no issues, a few parts were scuffed up and there were few underbody hits. But nothing critical, and the car seems to have survived. We will be doing 2-3 road trips in the coming year and the car seems like it can take it. I can imagine hitting 30000km next year. One good thing is the car is not driven much in neck-to-neck traffic so the AGS transmission has had it easy. Hopefully, with this work-from-home situation, things will continue to be easy. Also with limited parking space in office premises(my company being a small one), I prefer to take 2-wheeler to office. I'm getting consistent 15-16kmpl with air-conditioning on. I would try for more, but with the crazy weather and so much dust on the road, we prefer to keep the windows closed and use air-conditioning on the lowest setting. I tried to travel with windows open a few times but around any city, it's impossible...