Listen online Irish/any radio station.

A few things what we have to do to listen the radio in linux console.

1. Get the radio stream from website:

wget http://dynamic.rte.ie/av/live/radio/radio1.smil

2. After that find the stream:

user@zeus:~$egrep "rtsp|mms" radio1.smil

Some of radio stations broadcasts the stream by rtsp, some of them uses mms, but what’s sure one of them must be there.

If you know the stream of your favorite station, just write:

user@zeus:~$ mplayer rtsp://live2.rte.ie/redundant/1516.ra

Turn off periodic FSCK at booting time.

Forces drives to be checked once for every 30 times the filesystem is mounted. This means that on an average, once every 30 times you bootup your computer, the filesystem integrity is checked.
To disable filesystem integrity check forever do:

$sudo tune2fs -c -1 `mount | awk '$3 == "/" {print $1}'`

or

$sudo tune2fs -c -1 /dev/yourhdd

but if you don’t want disable filesystem check forever, only for the next bootup, create a file called /fastboot.

$sudo touch /fastboot

will disable filesystem check for the next time you bootup. Since the /fastboot file is removed during bootup, this will disable filesystem check only once – for the one time you bootup after you create the /fastboot file
On the contrary to force a filesystem check the next time you bootup, create a file called /forcefsck by doing

$sudo touch /forcefsck

How to save CPU and life of battery.

apt-get install cpufrequtils

next step:

cpufreq-set -g performance

if have 2 cpu:

cpufreq-set -c1 -g performance

get more information about your cpu by:

cpufreq-info

Which governor to use? Available governors:

* performance (default) — The performance governor is built into the kernel and runs the CPU(s) at maximum clock speed
* cpufreq_ondemand (recommended) — Dynamically increases/decreases the CPU(s) clock speed based on system load
* cpufreq_conservative — Similar to ondemand, but more conservative (clock speed changes are more graceful)
* cpufreq_powersave — Runs the CPU at minimum speed
* cpufreq_userspace — Manually configured clock speeds by user

I use at home “performance” and “powersave” on travel with my laptop.

How do I find text within files in Linux ?

This document is for users looking for information about finding text within one or more files on their computer. One of the easiest methods of locating text contained within a file on a computer running Linux is to use the grep command. Below is a basic example of a command used to locate any file containing the word “linux”.

find / -type f -exec grep -H 'linux' {} ;

Added by the LiNiO long before his died:
try also:
fgrep -rw linux path

Debian Squeeze 6.0 released.

The Debian 6.0 release is now available. Debian 6.0 includes over 10,000 new packages like the browser Chromium, the monitoring solution Icinga, the package management frontend Software Center, the network manager wicd, the Linux container tools lxc and the cluster framework Corosync. With this broad selection of packages, Debian once again stays true to its goal of being the universal operating system. It is suitable for many different use cases: from desktop systems to netbooks; from development servers to cluster systems; and for database, web or storage servers. At the same time, additional quality assurance efforts like automatic installation and upgrade tests for all packages in Debian’s archive ensure that Debian 6.0 fulfils the high expectations that users have of a stable Debian release. It is rock solid and rigorously tested. The next development phase, code-named “wheezy” starts now.

Well now, my laptop has been updated to “wheezy”, as a matter of fact I always use on my laptop testing distribution.
Continue reading “Debian Squeeze 6.0 released.”