First, the wireless interface has to be activated. In this case I am using Debian and the interface name is wlan0.

Step 1. Activate the wireless interface

ifconfig wlan0 up

Step 2. Scan for the wireless networks

iwlist wlan0 scan

The output should be sometshig like this:

wlan0     Scan completed :
          Cell 01 - Address: 00:17:53:0B:30:C0
                    ESSID:"linksys"
                    Mode:Master
                    Channel:6
                    Frequency:2.437 GHz (Channel 6)
                    Quality=47/100  Signal level:-76 dBm
                    Encryption key:on
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
                              12 Mb/s; 24 Mb/s; 36 Mb/s; 9 Mb/s; 18 Mb/s
                              48 Mb/s; 54 Mb/s
                    Extra:tsf=0000010b1bfe2181
                    Extra: Last beacon: 28ms ago

Continue Reading…

Monitorix is a free, open source, lightweight system monitoring tool designed to monitorize as many services as possible.

At this time it monitors from the CPU load and temperatures to the users using the system. Network devices activity, network services demand and even the devices’ interrupt activity are also monitored, and more. The current status of any corporate server with Monitorix installed can be accessed via a web browser.

Installation:

apt-get install rrdtool librrds-perl apache2 libwww-perl

Then download and extract the Monitorix package:

wget http://www.monitorix.org/monitorix-1.5.1.tar.gz
tar -zxvf monitorix-1.5.1.tar.gz

Then  execute the install script:

Continue Reading…

LibCpufreq is a library which offers a unified access method for userspace tools and programs to the cpufreq core and drivers in the Linux kernel. This allows for code reduction in userspace tools, a clean implementation of the interaction to the cpufreq core, and support for both the sysfs and proc interfaces.

Cpufreq-info determines current cpufreq settings, and provides useful debug information to users and bug-hunters.

Cpufreq-set allows to set a specific frequency and/or new cpufreq policies.

Installation:

To install cpufreq-info use the following command

apt-get install cpufrequtils

Usage:

Continue Reading…

I will show you get started with sending mails from the Linux command line. Will also cover sending attachments from the command line. We will begin with the “mail” command.

First we need to test the sendmail application to be installed and working correctly executing the following command:

echo “This is the body of  mail.” | mail -s “Subject” you@youremail.com

Other command line option:

-s subject Specify subject on command line.
-c email-address Mark a copy to this “email-address”, or CC.
-b email-address Send blind carbon copies to list. List should be a comma-separated list of names.

Below are few examples that you can use with the mail command:

Continue Reading…

Under Debian Linux startup files are stored in /etc/init.d/ directory.

Debian uses scripts to start services at boot time from /etc/init.d/ directory.

I will show two ways with which you can remove unwanted startup files or services:

Firts is rcconf :

Rcconf gets a list of services from /etc/init.d and looks in the /etc/rc?.d directories to determine whether each service is on or off.

Installation:

apt-get install rccconf

Usage:

Continue Reading…