Linux

Articles on Linux, the open source operating system

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

Solutions to Firefox using too much CPU on Ubuntu Linux

Contents: 

Tags: 

Ubuntu decided several months ago to forgo its policy of sticking with Firefox 3.6, and go with the latest versions from Mozilla.

With Firefox 13 running on Ubuntu 10.04, I had good performance, and did not suffer from this problem that I am about to describe. The only issue I faced was excessive disk activity and that was fixed by disabling the FireBug extension. Other than that, Firefox was speedy and responsive.

Speed up your Sony Xperia Arc by removing junk applications

Contents: 

Tags: 

Note: This article is Android version dependent. Before you do it, you have to upgrade your phone. Use the article on Making your Sony Xperia Arc faster using Android 2.3.4 Global Generic 4.0.2.A.0.42.

Root your phone

Root your phone using zergRush.

Remove the junk applications

$ adb shell
$ su
#

Pages

Subscribe to RSS - Linux