Install Grub on GPT

I came across a problem with grub being broken recently on a system running Ubuntu 16.04. This happened after the grub2 package got upgraded. This post will explain how I solved the problem. If you have similar issues, please do not just copy and paste the commands and execute on your machine. First read on, and try to understand it. Usually, when this happened in the past, we just need to chroot into the system and reinstall grub....

September 25, 2017 · 4 min · 690 words · kenno

Remove trailing whitespace with VIM

Here’s a quick tip on how to get rid of unwanted trailing whitespace using vim. Let’s say, I have the following code: Open that file with vim. The following command deletes any trailing white spaces. :%s/\s\+$//e Here’s the screenshot of the text after removing the whitespace: In search, \s finds whitespace (a space or tab). \+ finds one or more occurrences. $ matches the end of line, finally e flag means no error is displayed....

July 27, 2017 · 1 min · 96 words · kenno

RHCSA’s Prep

At the end of last year, I took a training to prepare for Red Hat Certified System Administrator (RHCSA EX200) exam. Now it’s February and I haven’t taken the exam yet. Even worse, I forgot most of the things I learned during that 3 day training. Well, since I’m being chased to get this exam done ASAP, with a passing grade of course, I think now it’s the best time to start revising the material again....

February 19, 2017 · 1 min · 193 words · kenno

How to toggle between buffers in Vim with vim-airline

First if you haven’t yet heard about vim-airline plugin, and you’re a Vim user, you really owe it to yourself to check it out. By default vim-airline displays the opening buffers on the top part of the window. So how to navigate between those buffers? Well, according to this, it seems those buffers are for visual only. To navigate between them, we can use :bp for previous buffer, and :bn for next buffer....

January 29, 2017 · 1 min · 116 words · kenno

Changing a User’s Password on FreeBSD

Before getting into how to change a user’s password on FreeBSD, let’s have a quick revision on how that can be done on a Linux system. As a user we can change the password by typing: Or with a root account, we can change/set the password for another user: How about a FreeBSD? It should be the same way as how it’s done on Linux right? Right? Well, not quite....

January 10, 2017 · 1 min · 114 words · kenno

FreeBSD 11 Blank Screen After Login via SLiM

After rebooting my FreeBSD 11.0, I wasn’t able to login to Mate desktop manager via SLiM (Login Manager). I spent sometimes to try to fix it, but failed. I’ll try it again later when I have a bit of free time. Here’s a quick note of a work around, so I won’t forget what I’ve done. Disable loading slim on start up by editing /etc/rc.conf and commented out the following line: Run this command manually to start mate-session: So, it appears SLiM is the culprit here since Mate-session can be started up manually....

January 9, 2017 · 1 min · 93 words · kenno

Zpool Not Automatically Mounted on Boot on Fedora

I love ZFS, but there is something that has annoyed me for quite sometimes – the zpool doesn’t get automatically mounted on boot. To work around this, I had to login as root and run: to import tank pool before I login with my normal user account. Well, I finally found a solution. This is what’s written on zfsonlinux/zfs WIFI about Fedora specifically: Systemd Update: When upgrading to the zfs-0.6.5.8 release it’s recommended that users manually reset the zfs systemd presets....

December 20, 2016 · 1 min · 139 words · kenno

របៀប​លុប​អត្ថបទ​ចម្រៀង​​ចេញ​ពី​ mp3

ខ្ញុំ​មាន​បទ​ចម្រៀង mp3 ពីរ​ឬបី​ ដែល​មាន​អត្ថបទ​ចម្រៀង​ភ្ជាប់ជាមួយ (embedded lyric)។ ខ្ញុំ​ចង់លុប​អត្ថបទ​នោះចេញ។ នេះ​ជា​វិធី​មួយ​ ដែល​អាច​សម្រេច​បំណង​ខាងលើ ដោយប្រើកម្មវិធី​ឈ្មោះ id3v2 នៅ​លើហ្វេដ័ររ៉ា។ ឧទាហរណ៍​ថា​ ចម្រៀង​ដែល​ខ្ញុំ​ចង់លុប​អត្ថបទភ្ជាប់​នោះ​ មាន​ឈ្មោះ​ថា “01 love you.mp3” ខំម៉ានដែល​យើង​ត្រូវ​វាយ ដូច​ខាង​ក្រោម​នេះ៖ $ id3v2 --remove-frame 'TEXT' 01\ love\ you.mp3 --remove-frame – លុប​ id3v2 frame 'TEXT' បើសិន​ជា​យើង​មាន​ mp3 ច្រើន​ក្នុង​ directory តែ​មួយ​ ហើយយើង​ចង់​លុប​​ ‘TEXT’ frame ចេញ យើង​អាច​ប្រើ​ខំម៉ាន​ដូច​នេះ៖ $ for i in *.mp3; do id3v2 -r 'TEXT' $i; done Deleting Frame TEXT in file 01 love you.mp3 ... Deleting Frame TEXT in file 02 Ima demo Aitai yo…....

December 17, 2016 · 1 min · 94 words · kenno

Nvidia Driver on Fedora 25

Fedora 25 has Wayland enabled by default. However, if your computer has a (good) Nvidia graphic card and want to make use of it, you’ll need to switch to Xorg and install the Nvidia proprietary driver. Note that only the Nvidia driver with the version newer than 375.20 works on Fedora 25. Ref: How do I install the Nvidia driver on Fedora 25?

December 17, 2016 · 1 min · 63 words · kenno

Install ZFS on Fedora 25 with kernel 4.8.13-300

After I had my Fedora 24 upgraded to 25 on my desktop, ZFS no longer worked. I tried to remove zfs package and reinstalled; it didn’t work. Here’s how I got it working after trying many things. There could be a different way to fix it, though. Let’s check the version of the kernel: Check if spl, zfs are already installed: Manually install spl, dkms: Load zfs module: Voilla, I got ZFS working again....

December 15, 2016 · 1 min · 74 words · kenno