How to remove a user password

Sure, you Linux gurus must be laughing at me to see this post. However, this is my 2nd time needing to remove a user’s password and I had to Google for it! So here is just a quick tip to mind your truly: In case you’re wondering why I need to remove a password for an account, it’s for my 4 year old daughter who enjoys playing supertuxcart. She wants to have her own user account on a Fedora 24 box without a password....

August 7, 2016 · 1 min · 86 words · kenno

បង្កើត RSS feeds ពី SoundCloud និង iTunes urls

ខ្ញុំ​​ចូល​ចិត្ត​ស្តាប់ ផត់ខាស់​ណាស់ ពីព្រោះវាមាន​អត្ថប្រយោជន៍​ជាច្រើន។ តើផត់ខាស​បានការអ្វី​ខ្លះ? បើសិន​ជាអ្នក​ចង់ដឹង សូម​សួរ​ក្នុង​ខំម៉ិន​ខាង​ក្រោម។ ថ្ងៃ​នេះ ខ្មុំ​ចង់ប្រាប់​របៀបបង្កើត RSS feeds ពីផត់ខាស់​ដែល​ត្រូវការ អាយធូន​ដើម្បីស្តាប់បាន។ ជាមួយ RSS feeds យើង​អាច​ប្រើ​កម្មវិធី​ផ្សេងៗ​ដូចជា អាម៉ារ៉ុក។ មុន​ដំបូង​ យើងត្រូវ​ចំលងលិង អាយធូន ហើយ​ចូល​ទៅ http://getrssfeed.com/ និង​បិទលិងនោះ។ វិបសាយ​ getrssfeed.com និង​ផ្តល់​លិងថ្មី ដែល​ជា RSS feed. វិធីខាងលើអាច​ប្រើជាមួយ​ SoundCloud urls ផងដែរ៕

July 31, 2016 · 1 min · 33 words · kenno

Resizing an LVM logical volume

One of the logical volumes on my desktop is running out of space. I want to add 200GB to that volume. Here is one way to achieve this task. First a bit of warning. Don’t, or never, just copy and paste what you see here if you want to apply it to your own system. You may accidentally destroy your precious data. # lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert backup data -wi-ao---- 200....

July 20, 2016 · 2 min · 253 words · kenno

Fix corrupted GPT on FreeBSD

One of the disks in my FreeBSD server reported an issue: Jul 14 18:00:56 nas kernel: GEOM: da0: the primary GPT table is corrupt or invalid. Jul 14 18:00:56 nas kernel: GEOM: da0: using the secondary instead -- recovery strongly advised. Jul 14 18:00:56 nas kernel: GEOM: diskid/DISK-67304734999999999999: the primary GPT table is corrupt or invalid. Jul 14 18:00:56 nas kernel: GEOM: diskid/DISK-67304734999999999999: using the secondary instead -- recovery strongly advised....

July 14, 2016 · 2 min · 235 words · kenno

How to convert vdi to qcow2 image

vdi file is a type of disk image used by VirtualBox. qcow2, on the other hand, is the format of disk image used by KVM. Recently, I want to move some existing virtual machines running on VirtualBox to KVM. To do that I need to convert the disk image from vdi to qcow2. Here’s one way to achieve that: Ref: How to convert VirtualBox vid to KVM qcow2

July 3, 2016 · 1 min · 68 words · kenno

FreeBSD git fatal: Unable to find remote helper for 'https'

I just found out that git is not fully functional on my FreeBSD (11) box. It was installed from port (using portmaster git). I can clone a repo using SSH key, but not with HTTPS. I’m not quite sure if it’s always been this way. Here is how to fix it: Reinstall curl # pkg remove curl # portmaster curl Reinstall git # pkg remove git # portmaster git Why did I install git from port?...

July 1, 2016 · 1 min · 94 words · kenno

grep: error while loading shared libraries: libpcre.so.0

I have a server running CentOS 6 successfully upgraded to CentOS 7. The only problem I encountered so far is that ‘grep’ doesn’t work. First thing I tried was to reinstall pcre package which provides libpcre.so*. It still didn’t work. Fortunately, someone has posted a solution as the following: Credit: update to Centos 7; libpcre.so.0 No such file or directory

July 1, 2016 · 1 min · 60 words · kenno

Create bootable USB Fedora 24

Every time there is a new release of Linux distro, I need to create a bootable USB. And, I forgot how I did it last time. So, I tried by using the “Startup Disk Creator” program installed on my Ubuntu workstation, only to find out that it didn’t even work. After a while I remember, it was just a matter of using dd command to copy the ISO image to the USB....

June 27, 2016 · 1 min · 181 words · kenno

How to remove a newline at end of file

Those who know me know that I don’t like Perl. Sometimes in life the thing you don’t like could be best tool/friend. I need to remove a newline character from a text file: layouts/partials/pagination.html. The easiest way to do this is to run the following command: Thanks Perl and this Stack Overflow question.

June 9, 2016 · 1 min · 53 words · kenno

Fedora 23/24 gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1

While updating Ansible pip package on Fedora 24 today, I got the following error message I believe I came across this problem before when I installed a ruby gem on Centos 6 a short while back. Unfortunately, I already forgot how I’d solved it. So here’s a note to remind myself or anyone who’s having the same issue. We need to install a package called: redhat-rpm-config. Ref: https://bugs.launchpad.net/openstack-gate/+bug/1424582 How to upgrade SciPy on Fedora 23

May 15, 2016 · 1 min · 75 words · kenno