Why Pinning

There are plenty of guides about apt pinning, but no one really explains the motivation to do so. It took me some time to understand that, so I thought I'd write it down.

The Issue

The mainstream method of downloading and installing packages from a repository is via APT (Advanced …

more ...

Adding Repositories for Inspection

Sometime I want to inspect software repositories. However, I don't want my machine to actually install anything from it.
To do so, I made a small bash function that both adds the repository and pins it to priority -1, telling apt to never install anything from it (unless manually told …

more ...

Setting up Gargoyle as a Time Server

The Story
For reasons unknown to me, Debian's NTP daemon only works on udp port 123, even when operating as a client.
This is a problem because my network configuration does not allow incoming packets on this port, thus preventing my raspberrySeed (raspberry pi running Debian, deluge, flexget) from syncing …

more ...

Timing Execution By Output Lines

The Story

Today I got annoyed that some puppet agent runs took me over 90 seconds to complete, even though they actually did nothing (no change was needed).
I wanted to see which part of the run took the longest, so I tried this:

sudo puppet agent --test --debug

Unfortunately …

more ...

Hijacking a process's i/o streams using gdb

The Story

I recently had a very annoying problem - some daemon failed, but ran fine when told to run at foreground (not daemonize). Running at foreground is the easiest way to debug processes, because that way you get their input / output / error streams in your terminal.
Said daemon had no …

more ...



Automatically Mounting USB drives and Surviving Reconnects

Today I solved a problem that has been bothering me for a while - being unable to automatically "remount" my USB drive in case it disconnects and reconnects.

The Story

My raspberrySeed (rPi + Debian + Deluge) has a USB drive connected (to keep the downloaded content in). The filesystem on that drive …

more ...

Python Library for Deluge Torrent Maintenance

Update: I added this project as my first GitHub repo

I have an ongoing project which I nickname my raspberrySeed, which is a Rasbperry Pi running Deluge. Works 24/7, takes very little power, minimal heat, no noise, works as a fine seedbox.
However, I recently encountered strange situtations in …

more ...

Listing Unity's Scopes and Originating Package

I recently upgraded to Ubuntu 14.04 (beta2), and I got all of my "lenses" (searching additional items in the dash menu), that look like this:

Of course there's a way to disable those lenses, but I actually want to remove those I'll never use (like flickr).
The problem  - lenses …

more ...