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. root@raspbsd:~ # ls -l total 144 drwxr-xr-x 2 root wheel 512 May 5 18:26 -p drwxr-xr-x 2 root wheel 512 May 5 20:45 .byobu drwxr-xr-x 3 root wheel 512 May 5 20:45 .cache -rw-r--r-- 2 root wheel 959 Jan 23 00:59 .cshrc As much as I wanted to get rid of it, I was curious to find out what’s inside that directory. ...

July 7, 2015 · 1 min · 212 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: Creating various symlinks in /usr/bin... Symlinking /usr/local/bin/perl5.18.1 to /usr/bin/perl Symlinking /usr/local/bin/perl5.18.1 to /usr/bin/perl5 Done. Installing perl5.18-5.18.1_2...pkg-static: perl5.18-5.18.1_2 conflicts with perl-5.12.5 (installs files into the same place). Problematic file: /usr/local/bin/a2p *** [fake-pkg] Error code 70 Stop in /usr/ports/lang/perl5.18. *** [install] Error code 1 Stop in /usr/ports/lang/perl5.18. ===>>> Installation of perl5.18-5.18.1_2 (lang/perl5.18) failed ===>>> Aborting update ===>>> Killing background jobs Terminated ===>>> You can restart from the point of failure with this command line: portmaster lang/perl5.18 ===>>> Exiting 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 ...

October 30, 2013 · 2 min · 362 words · kenno