Archive for June, 2008

Import PeerGuardian Blocklists into Ktorrent & Deluge

Monday, June 30th, 2008

Many lovers of PeerGuardian are out there, and some just happen to use linux. Luckily we have bit torrent clients that support PeerGuardian blocklists directly in the client, rather than affecting our entire internet connection. This is a rather simple prodcedure in both cases of Ktorrent and Deluge.

Note: Blocklists are not a fool proof protection and can come with their own problems. Please read up on the effectiveness of blocklists. That being said, every little bit helps.

Also See:

  1. Basics of iptables
  2. Iptables: How to save and restore rules at boot & shutdown
  3. Beating Sandvine on Linux with iptables
  4. How to Encrypt Bit Torrent Traffic With Ktorrent and Azurues

(more…)

Search and Replace in Vi/Vim

Wednesday, June 25th, 2008

In Vi or Vim, use the forward slash </> to search. Then type in your search string and hit <Enter>. You can navigate through occurrences of your search string using <n> to move forward and <N> to move backwards.

(more…)

Making Sense of Gentoo’s USE Flags

Saturday, June 21st, 2008

One of the best features of the Gentoo Linux Distribution is the fact that you can customize it to suit whatever needs your Operating System should provide. This stems from the fact that, because it is a “source-based” distribution, you can enable or disable different features in certain programs before the source code gets built into “binaries”.

For example, say you need to use Samba to connect to a Windows based computer, you probably do not need to have LDAP support built into Samba (which would be used as a database backend to hold user accounts, passwords, etc. if you want to use Samba as a Primary Domain Controller). So when you build Samba on a Gentoo Linux System, you “tell” it to build it without LDAP support to make the resultant binaries both smaller in size and possibly a little more robust.

Unfortunately, most Gentoo users don’t take the time to tackle various USE flags, which results in a very unorganized /etc/make.conf file, as well as a system that either has too much “bloat” or doesn’t provide all the features that are possibly available to the user.

(more…)

Beating Sandvine on Linux with iptables

Saturday, June 21st, 2008

Multiple sites reported a while ago that Comcast was using Sandvine to do tcp packet resets to throttle BitTorrent connections of their users. This practice may be a thing of the past as it’s been found a simple rule in the Linux firewall, iptables, can simply just block their reset packets, returning your BitTorrent back to normal speeds and allowing you to once again connect to all your seeds and peer. So, if you are tired of Sandvine (the application used by Comcast to throttle Bit Torrent with fake TCP packet resets) screwing with your BitTorrent and a user of GNU/Linux, then this is for you. I will tell you how to take your bandwidth back.

Also see:

  1. Basics of iptables
  2. Iptables: How to save and restore rules at boot & shutdown
  3. How to Encrypt Bit Torrent Traffic With Ktorrent and Azurues
  4. Import PeerGuardian Blocklists into Ktorrent & Deluge

(more…)

Renaming multiple files with ‘rename’ command

Tuesday, June 10th, 2008


The syntax for the rename command is:

rename [ -v ] [ -n ] [ -f ] perl_expression [ files ]

to rename for example multiple photo files with ‘.JPG’ extension to ‘.jpg’ extension:

rename -v ’s/\.JPG$/\.jpg/’ *.JPG

How To Add a Welcome Message for SSH Users

Friday, June 6th, 2008

Here is a quick tip on how to add a welcome message for your SSH users.

If you want users to see a banner welcome message when connecting to your SSH server, you need to turn on the banner configuration of SSHd and then create a banner file.

(more…)

Pages: 1 2 3 Next