For full recipes, please visit our recently launched Egyptian Cuisine Recipes web site.

Avoiding changlog prompt when running aptitude full-upgrade

If you are, like me, an Ubuntu user who is annoyed when doing aptitude full-upgrade because it stops and displays the changelog until you press "q", then here is why this happens, and how to change the behavior.

The reason this happens is that the package apt-listchanges is installed on your system. This package lists the changes before applying them.

However, by default, it stops the upgrade process until the user has provided input. The silly part is that there are no choices at this point, the user must dismiss the output and nothing else can be done.



KDE on Kubuntu 14.04, and how to get an external monitor/projector to work

If you upgraded your Kubuntu KDE Desktop from 12.04 (precise pangolin) to 14.04 (trusty tahr), and tried to connect your laptop to a projector, you will be, like me, frustrated with the default "Monitor and Display" settings that pops up. You can't unify outputs easily.

To overcome this, install the kde-workspace-randr package. It will provide you with an icon in the system tray where you can unify the outputs and change each's resolution more easily.

Do it using the following command, or use your favorite software installation program:



How to find out files created within a date range, and above a certain size

Looking at the regular weekly backups, I saw a jump in size that was not accounted for by regular normal growth.

ls -ltrh /backupdirectory
-rw-r--r-- 1 root root 31G May 25 03:23 backup-2014-05-25.dump
-rw-r--r-- 1 root root 31G Jun 1 03:22 backup-2014-06-01.dump
-rw-r--r-- 1 root root 32G Jul 6 03:21 backup-2014-07-06.dump
-rw-r--r-- 1 root root 41G Aug 3 03:25 backup-2014-08-03.dump



How to avoid PackageKit consuming lots of CPU and RAM on Kubuntu 14.04

After upgrading my laptop from Kubuntu 12.04 LTS to 14.04 LTS, I noticed that the laptop runs hotter than usual.

Upon investigating further, I found that PackageKit was the process that was consuming lots of CPU and memory.

For example, here is a sample output from htop, showing packagekitd maxing out one core, and eating up almost a quarter of the laptop's RAM:



How to use strace for a daemon with multiple processes, including children

Sometimes when you are running Linux and have a weird bug, you wish you would know what the process is doing. For example, which files it is opening and such ...

The strace command is very useful.

Use case 1: Simple command as argument

However, its common use cases is when you have a single process running. Usually, you would run strace and your command as an argument, like so:

strace your_program

Use case 2: Tracing a running command


Presentation: OpenWRT, for the KWLUG, August 2014

On August 12th, I did a presentation on OpenWRT for the KW Linux Users Group.

The slides from this presentation are attached below, and the audio for the presentation is available as a podcast.

Hope it is of use for some.

In that presentation I mentioned wrtbwmon, the bandwidth monitoring script for OpenWRT. You can download my modified version from here.



wrtbwmon: A Bandwidth Monitoring Tool for OpenWRT Routers

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:





Subscribe to The Baheyeldin Dynasty RSS