Remove a file/directory starting with dash/hyphen

I just noticed that in the /root directory, there exists a directory with its name starting with a dash: -p in my FreeBSD box. As much as I wanted to get rid of it, I was curious to find out what’s inside that directory. That didn’t work. After a short while of trying many things, I figured out 2 ways to do it. ...

July 7, 2015 · 1 min · 148 words · kenno

Install PostgreSQL server on Raspberry Pi from FreeBSD port

Before I wrote this blog post, I had thought there was no binary package for PostgreSQL server for FreeBSD 11 running on Raspberry Pi. Hmm… how wrong I was! I just wasted the whole night compiling Postgres from source. DOH! Anyhow, here’s the step I took to do it. If you’re familiar with FreeBSD, there’s nothing new here. But, I only use FreeBSD once in awhile, and so I tend to forget a lot what I do. ...

June 18, 2015 · 2 min · 426 words · kenno

ការបញ្ចូល git ក្នុង Raspberry Pi ដើរ​ FreeBSD 11

ដោយ​សារ​ពុំមាន​ កញ្ចប់បាយនារី (binary package) នៃ​​ git យើង​​ត្រូវ​បញ្ចូល​ git​ពីសោះ​ខូត ដូច​ខាងក្រោម៖ # cd /usr/ports/devel/git # make install clean សង្ឃឹម​ថា​ថ្ងៃ​ក្រោយ​ឆាប់ៗ កញ្ចប់​បាយនារី នឹង​បាន​បង្កើត​ឡើង​ ព្រោះខំផាយ​ពី សោះខូត​យើត​ណាស់ ជាពិសេស​ពេល​ខំផាយ​វា​លើ​ រ៉ាស់​ប៊ែរី​ផាយ។

May 29, 2015 · 1 min · 23 words · kenno

FreeBSD 10: Shared object 'libstdc++.so.6' not found

Today while I was updating py27-m2crypto package on FreeBSD 10 using portmaster, the following error message was displayed: Shared object "libstdc++.so.6" not found, required by "swig" Fortunately, someone else has found the problem and solution before me. According this blog post, FreeBSD 10 includes a new C++ stack and gcc, including libstdc++, is not installed by default. Therefore, to fix the missing this libstdc++.so.6 issue, we need to install lang/gcc. If you use portmaster, the command to install lang/gcc is: ...

April 25, 2014 · 1 min · 85 words · kenno

Upgrade existing Perl 5.12 to Perl 5.18 on FreeBSD 9

Recently I’ve been trying to update the perl package on my FreeBSD box to the latest version 5.18 without any success. Here’s a snippet of the error message: So I turned to Google to see if other people experienced the same thing as me. According to an answer to a similar question about upgrading perl on serverfault.com, one should read document frequently. ...

October 30, 2013 · 1 min · 118 words · kenno