How to wireless in Linux box.

Quick description of how to do it:

cat /etc/wpa_supplicant/wpa_supplicant.conf


next step:

cat /etc/network/interfaces

#if your wireless card is wlan0, otherwise change to the right wireless card.
allow-hotplug wlan0
iface wlan0 inet static
address your_ip
netmask your_mask
gateway your_gateway
dns-nameservers your_dns
pre-up wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf -B
post-down killall -q wpa_supplicant

Why that ? because it works on all linux distributions.

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:


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://

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}'`


$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:


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