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

moserial - a serial terminal for Linux

The real tag line for moserial is “a serial terminal for the GNOME desktop”. However, since it’s installed just fine on my KDE desktop, I titled this post as “moserial - a serial terminal for Linux”. (Well, it probably works on servers as well, not just desktop.) So what is this moserial? It’s a terminal which allows you to connect to view or send data to a serial port. For example, a lot of mbed device or micro controllers, such as Arduino, can be configured to send/receive data via serial port. Before I found out about this program, I normally open up Arduinio IDE and connect to the Arduino via Serial Monitor function. Now, I never look back after using moserial. ...

April 22, 2014 · 1 min · 146 words · kenno

Puppet agent hangs after loading facts

At my current work place, we use Puppet to manage desktop machines. Recently, I need to prepare an new image based on Ubuntu 14.04 LTS. To prepare an image, in brief, first thing is to install a fresh Ubuntu on a machine, compile and package lots of applications, and make change to configuration such as look and feels, etc. As mentioned earlier, I use Puppet to manage machine, so I store all customed configuration on the Puppet server. ...

April 22, 2014 · 2 min · 373 words · kenno

PostgreSQL: Peer authentication failed for user

Ever since Oracle took the ownership of MySQL, I’ve been leaning more and more toward PostgreSQL, or other NoSQL database like MongoDB. Also, I’m not completely new to PostgreSQL, but the fact that I only have to touch it once in awhile, makes me feel PostgreSQL is so hard to use and missing the goold-oldie MySQL. Anyway, this is the issue I had: # su - postgres -bash-4.1$ psql -l List of databases Name | Owner | Encoding | Collate | Ctype | Access privileges -------------+----------+----------+-------------+-------------+----------------------- postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | postgres-db | postgres | UTF8 | en_US.UTF8 | en_US.UTF8 | puppetdb | puppetdb | UTF8 | en_US.UTF8 | en_US.UTF8 | template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres + | | | | | postgres=CTc/postgres (5 rows) -bash-4.1$ psql -d puppetdb -U puppetdb --password Password for user puppetdb: psql: FATAL: Peer authentication failed for user "puppetdb" To fix it, we need to modify pg_hba.conf, which is located in the /var/lib/pgsql/9.3/data/ directory on my system. ...

January 23, 2014 · 2 min · 238 words · kenno

Vim backspace delete problem

In insert mode, backpace doesn’t delete characters as intended. To fix this issue, add this configuration to the .vimrc as the following: set backspace=indent,eol,start Reference: http://vim.wikia.com/wiki/Backspace_and_delete_problems

August 7, 2012 · 1 min · 26 words · kenno