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....

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....

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

How to suspend/hibernate from command line

First find out what states your system is supported: To suspend to ram: To hibernate: Ref: <a href=“http://askubuntu.com/questions/1792/how-can-i-suspend-hibernate-from-command-line>http://askubuntu.com/questions/1792/how-can-i-suspend-hibernate-from-command-line

January 6, 2014 · 1 min · 18 words · kenno

How to extract .xz file

Today is the first time I ever saw a compressed file in *.xz format. According to this page TIP: extract .xz format, we can decompress it by running the following command: Just make sure you have “xz-utils” package, on Debian system, or something equivalent on other distros installed.

December 29, 2013 · 1 min · 48 words · kenno