How to tell which Linux distro you’re running

Update: Thanks to Jayen, there is a better way: $ lsb_release -a<br /> No LSB modules are available.<br /> Distributor ID: Ubuntu<br /> Description: Ubuntu 9.10<br /> Release: 9.10<br /> Codename: karmic<br /> — $ cat /etc/issue<br /> Debian GNU/Linux squeeze/sid n l<br /> Or <br /> $ cat /proc/version<br /> Linux version 2.6.32-trunk-686 (Debian 2.6.32-5) (ben@decadent.org.uk) (gcc version 4.3.4 (Debian 4.3.4-6) ) #1 SMP Sun Jan 10 06:32:16 UTC 2010<br /> Source: Which Linux Distro are you using?...

February 3, 2010 · 1 min · 79 words · kenno

Stopping hard drive clicking noise on MSI U100

Finally, the OS X has been removed from MSI Wind U100, and completely replaced by Debian (testing). Whenever the computer is idle, the hdd makes this weird clicking noise. To stop it, we can use hdparm to turn it off. ` kenno@tora:~$ sudo hdparm -B 254 /dev/sda Source: MSI Wind – Gentoo Linux Wiki

November 28, 2009 · 1 min · 54 words · kenno

Convert wav to m4a with GNU/Linux

There are probably a gazillion ways to do this. I use FAAC, Freeware Advanced Audio Coder, to do this job. It works very well: <br /> faac originalfile.wav -o outputfile.m4a<br />

July 27, 2009 · 1 min · 31 words · kenno

FIXED: extconf.rb:8:in `require&#8217;: no such file to load &#8212; mkmf (LoadError)

While reading Linux Journal Issue 181 today, I stumbled upon a section explaining about running Ruby on Rails on Apache using an Apache module called Phusion Passenger, also known as mod_rails. To install Passenger, I followed the instruction provided in the magazine: sudo gem install passenger Unxpectedly, I got the following error: ``Building native extensions. This could take a while… ERROR: Error installing passenger: ERROR: Failed to build gem native extension....

July 25, 2009 · 1 min · 167 words · kenno

Copy hard disks or partitions using dd

Warning: The following is for personal note only, and is not meant to be a tutorial or guide. On Debian server at work, we have /home reside on /dev/hda6 and I want to move to a new hard disk /dev/hdb. First, I need to format /dev/hdb using fdisk. Then use dd to copy the content from /dev/hda6 to /dev/hdb1, the newly createdd ext3 partition. # dd if=/dev/hda6 of=/dev/hdb1 bs=1024 The above commands instruct dd to read the content from /dev/hda6 and write it to /dev/hdb1....

July 14, 2009 · 1 min · 154 words · kenno