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

How to test cron

So you drop a script in /etc/cron.daily. How to check if that script does what it is expected to do without having to wait, in this case, a day? Here is how: # run-parts -v /etc/cron.daily Reference: http://stackoverflow.com/questions/4984725/how-to-test-cron-job

February 18, 2014 · 1 min · 38 words · kenno

Can't find the 'libpq-fe.h header

I need to install pg 0.17.1 gem on a server running CentOS. This is the error message I saw: # gem install pg -v '0.17.1' Building native extensions. This could take a while... ERROR: Error installing pg: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb checking for pg_config... no No pg_config... trying anyway. If building fails, please try again with --with-pg-config=/path/to/pg_config checking for libpq-fe.h... no Can't find the 'libpq-fe.h header *** extconf....

February 3, 2014 · 1 min · 192 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

Fedora 20 Installing KDE

From the command line: Optionally, if you want to run KDM instead of GDM: Note: This guide should work on Fedora 19 as well; but I haven’t tested it. Source: http://marcofalchi.blogspot.com.au/2013/10/fedora-1920-install-kde-kdm-swith-from.html

January 2, 2014 · 1 min · 31 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

Setting proxy for CPAN

To enable CPAN behind proxy: Ref: http://abhijit.name/setting_cpan_for_proxy.html

November 15, 2013 · 1 min · 7 words · kenno

Install Google Chrome on Fedora 19

Add the following to /etc/yum.repos.d/google-chrome.repo: Pick a version, stable, beta or unstable and install with the following command: Ref: http://www.if-not-true-then-false.com/2010/install-google-chrome-with-yum-on-fedora-red-hat-rhel/

November 15, 2013 · 1 min · 20 words · kenno

Permanently Disable Search Indexing In Windows 8

This post is mainly to remind me how to disable the search indexing. On the start screen type: services.msc. Once the service dialog windows opened, look for “Windows Search”. Right click on it, and select Properties. In the Startup type drop-down list, select Disabled. Full credit goes to this link: http://www.addictivetips.com/windows-tips/how-to-permanently-disable-search-indexing-in-windows-8/.

November 4, 2013 · 1 min · 51 words · kenno