void linux: recover from grub, kernel panic using live OS

# mount & chroot to void cryptsetup open /dev/nvme0n1p2 root mount /dev/mapper/root /mnt mount /dev/nvme0n1p1 /mnt/boot mount --rbind /sys /mnt/sys && mount --make-rslave /mnt/sys mount --rbind /dev /mnt/dev && mount --make-rslave /mnt/dev mount --rbind /proc /mnt/proc && mount --make-rslave /mnt/proc chroot /mnt /bin/bash # regenerate initramfs and grub config VERSION=5.18.16_1 mkinitcpio -c /etc/mkinitcpio.conf -g /boot/initramfs-$VERSION.img -k $VERSION

July 18, 2022 · 1 min · 57 words · Akhil Jalagam

How to add bulk IP addresses to DigitalOcean firewall ?

Trying to add bulk IP’s in DigitalOcean firewall? You are in the right place. DigitalOcean cloud control panel UI doesn’t allow you to paste in multiple IP Addresses at once. That’s a good idea for a UI improvement. In the meantime you can definitely do it via the API… Use the following shell script. It uses json for POST data, so update TOKEN, FIREWALL NAME, IP addresses, ports… and then run the script ...

July 15, 2020 · 1 min · 206 words · Akhil Jalagam

How to renew the SSL certificates for dovecot and postfix

Make a backup of the existing SSL key and certificate file cd /etc/pki/dovecot cp -a certs/dovecot.pem certs/dovecot.pem.old cp -a private/dovecot.pem private/dovecot.pem.old Create the new SSL certificate for two years: openssl genrsa -out private/dovecot.pem 1024 openssl req -new -x509 -key private/dovecot.pem -out certs/dovecot.pem -days 730 Restart Dovecot and Postfix sudo systemctl restart dovecot sudo systemctl restart postfix Check the start and end dates for the certificate: openssl x509 -dates -in certs/dovecot.pem

April 10, 2020 · 1 min · 70 words · Akhil Jalagam

How to display brightness level in i3status bar

I’ve been using Linux for a long time, but I was never entirely happy with the desktop environment options available. Until last year, Xfce was the closest to what I consider a good compromise between features and performance. Then I found i3, an amazing piece of software that changed my life. i3 is a tiling window manager. The goal of a window manager is to control the appearance and placement of windows in a windowing system. Window managers are often used as part a full-featured desktop environment (such as GNOME or Xfce), but some can also be used as standalone applications. ...

November 26, 2019 · 3 min · 449 words · Akhil Jalagam

What is DevOps?

1. Definition from Wikipedia: DevOps (a clipped compound of “development” and “operations”) is a set of software development practices[failed verification] that combines software development (Dev) with information technology operations (Ops) to shorten the systems development life cycle while delivering features, fixes, and updates frequently in close alignment with business objectives. 2. Definition from Webopedia DevOps (development and operations) is an enterprise software development phrase used to mean a type of agile relationship between development and IT operations. The goal of DevOps is to change and improve the relationship by advocating better communication and collaboration between these two business units. ...

November 2, 2019 · 2 min · 399 words · Akhil Jalagam