Linux

Articles on Linux, the open source operating system

wrtbwmon: A Bandwidth Monitoring Tool for OpenWRT Routers

Contents: 

Tags: 

Years ago, I wrote about the various tools available for monitoring bandwidth usage for individual devices in a home network.

Now, I have a definitive solution that will help with the questions: wrtbwmon. This is based on several variants that are floating around the internet, each a fork of another.

Here is an excerpt from the README file:

Description
===========

Using Linode Dynamic DNS with OpenWRT

Contents: 

Tags: 

If you have a VPS at Linode, then you have free Dynamic DNS. You can use that from a regular Linux machine, or from a router that runs OpenWRT.

This article describes how to setup an OpenWRT router with Linode Dynamic DNS.

First, the script itself, which goes into the file: /etc/custom/linodedns.sh

#!/bin/ash
 
BASE=`basename $0 .sh`
DIR=`dirname $0`

OUTPUT1=/tmp/$BASE-1.out
OUTPUT2=/tmp/$BASE-2.out

# Read the configuration file
CONF=$DIR/$BASE.conf
if [ -r "$CONF" ]; then
  . $CONF
else 

Logging with Syslog-NG on OpenWRT

Contents: 

Tags: 

Update 2014-10-08: If you upgraded to the stable Barrier Breaker 14.07, and Syslog-NG is not available, or if don't want to use Syslog-NG for any other reason, please check our other article on using the built in logging feature of OpenWRT to write the log to a file.

We wrote earlier on OpenWRT on D-Link DIR-835. Now, we need to expand the functionality a bit more.

On OpenWRT, the default logging mechanism is an in-memory circular buffer. The user interface for it is the logread command. The log buffer default size is 16 kB. There are a couple of directives that can be set in the system configuration for OpenWRT, but because of the limited size of flash and the non-permanence of RAM, you need another solution if you want to store logs for anything longer than a day or two.

Syslog-NG

Syslog-NG is a good system logging program that is available for OpenWRT.

Youtube/Flash not working on Semperon under Ubuntu? Use Gnash!

Contents: 

Tags: 

If you are using Ubuntu 12.04 on an older computer with a Semperon CPU, you will soon find that Flash is not working and therefore Youtube videos will not work either.

Adobe Flash built with SSE2 flag

This is because Adobe has build the recent Flash versions with the SSE2 flags enabled, yet many Semperons lack this particular flag.

$ cat /proc/cpuinfo
vendor_id : AuthenticAMD
cpu family : 6
model : 8
model name : AMD Sempron(tm) 2600+
...

Four hours of battery time on a Linux laptop

Contents: 

Tags: 

I previously wrote about reducing CPU usage for Firefox by disabling Firebug. Later, I wrote on disabling the YSlow extension also reducing CPU usage.

Now, the laptop is able to exceed 4 hours of battery time under Kubuntu Linux 12.04:

Four hours, seven minutes:

09:37:27 localhost pm-utils: Power source switched to battery, Battery: discharging, A/C adapter: off-line

Quick How To: Installing OpenWRT on the D-Link DIR-835 wireless router

Contents: 

Tags: 

This is a quick how to for installing OpenWRT custom firmware on a D-Link DIR-835 router.

Though these instructions were tested on the DIR-835, they apply to many other router models from Linksys, Netgear, ASUS, and many other brands.

Check if your hardware is supported

How to install Firefox ESR on Ubuntu 64 bit LTS

Contents: 

Tags: 

Update: 2017-Nov-19: See the last section for automated installation and upgrading, which is now possible.

To read my RSS feeds, I use Tiny Tiny RSS, which worked fine until 21 Feb 2014.

On 22 Feb 2014, Ubuntu pushed Firefox 27, Tiny Tiny RSS stopped working, with a Javascript error. After logging in, there would be a pop up error referring to getCookie and tracing to prototype.js.

To solve this, I went back to the ESR (Extended Support Release). This was quite a few steps, so I am documenting them here.

How to get better fonts in Firefox on Linux

Contents: 

Tags: 

To have better fonts in Firefox, you need to disable anti-aliasing, and clear all font caches.

Do achieve this, run the following commands from a terminal:

Clear the cached fonts in your home directory

cd ~
rm -f .fonts.conf .fonts.cache-1 .fontconfig/*

Disable antialiasing

cd /etc/fonts/
sudo mv 10-antialias.conf disabled-10-antialias.conf 

Reconfigure the fonts

sudo dpkg-reconfigure fontconfig

Now, restart FIrefox and check if the fonts look better ...

How often do you reboot your laptop?

Contents: 

Tags: 

How often do you reboot your laptop?

Well, for me, I run Linux (Kubuntu 12.04), and I usually do it when a new kernel security update is released. And put it on sleep otherwise.

This means I can go for a month and a half without rebooting.

Here is a recent example, output from the "uptime" command:

14:31:46 up 45 days, 2:10, 7 users, load average: 1.45, 1.29, 1.28

Pages

Subscribe to RSS - Linux