In this tutorial we will see how to make the keyboard's NumLock and ScrollLock LEDs flash (blink) to indicate incoming & outgoing network traffic on a wired or wireless network connection. To be able to do this, we need to install first "tleds", a network traffic monitoring utility. This utility will be useful for users who want to monitor their download / upload network activity.

To install tleds under Ubuntu (12.04/11.10 or older), run these commands:

cd /tmp && wget -O tleds.deb http://goo.gl/VSW2Q

sudo dpkg -i tleds.deb 

To see your network interfaces, run this command:

cat /proc/net/dev

Then start tleds with this command for a wired connection:

sudo /usr/bin/tleds -q -c -d 20 eth0

Replace eth0 with your own network interface (eth1, eth2, etc.).

For a wireless connection (WiFi), run this command:

sudo /usr/bin/tleds -q -c -d 20 wlan0

Repalce wlan0 with your own wireless network interface (wlan1, wlan2, etc.).

Your NumLock and ScrollLock LEDs will start now to blink indicating outgoing and incoming network traffic on the selected network interface. Here is a video showing this:

For more help about using tleds, run simply this command:


To kill all running processes for tleds, run this command:

sudo killall tleds

If you want to start tleds automatically at system startup, then do the following:

- Edit the /etc/rc.local file with this command:

sudo gedit /etc/rc.local

- At the end of the file just before "exit 0", add this line (enter your correspondent network interface):

sudo /usr/bin/tleds -q -c -d 20 eth0

- Save your file and exit.

That's it!

Post a Comment