Upgrade kernel version in Centos

You have centos 7.9 with an old kernel, like: [root@fss-a1 ~]# uname -r 3.10.0-1160.36.2.el7.x86_64 And you want to upgrade kernel version in Centos. Just execute: rpm –import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm yum –enablerepo=elrepo-kernel -y install kernel-lt vim /etc/default/grub #change GRUB_DEFAULT=0 grub2-mkconfig -o /boot/grub2/grub.cfg reboot You should have something like (/etc/default/grub): GRUB_TIMEOUT=1 GRUB_DISTRIBUTOR=”$(sed ‘s, release .*$,,g’…

Get a newer version of e2fsck

You will hit an error with your e2fsck version. In my case the issue happened in Centos7, when I try to expand the disk for a fedora34 qcow2 image. qemu-img resize fedora-new.qcow2 +20G You will hit an error with your e2fsck version. You will need to download the latest source binary of e2fsprogs from your…

Turn off auto indent when pasting code into vim

If you code with vi, then I also recommend to check out: Highlight ansible YAML and Jinja syntax in vim Editor When you paste code into my document from the clipboard, you get extra spaces at the start of each new line: line line line Figure: Example of issues issues with auto-indent Short answer To…

Highlight ansible YAML and Jinja syntax in vim Editor

Sometimes, I’m getting a bit confused and messing up my files because I don’t have a decent format highlight. Then I thought how great would be to highlight ansible YAML and Jinja syntax in vim Editor. Also, this will helpful to have more fun over your coding. Active syntax colors in your YAML and Jinja…

Bridge your dummy interface in centos7

I had to start using a dummy interface in my server to make it portable, like a demo in-a-box. Every time that I’ve tried to disconnect it and use other network. I had to make a lot of changes to my configuration: very messy. Basically, I will tell you how to bridge your dummy interface…