Monthly Archives: June 2007

fnotify Revisited – irssi has a message for you

I’ve debated this for some time. How long should it be to be notified of an instant message (IM), or private message (PM), or someone saying your name in internet relay chat (IRC)? I’ve still not answered this question, but I’ve got at least a tool that will help you when irssi receives a message directly to you.

This tool was first described to me here. And I blogged about it in this previous post. The general idea is to set up an irssi script that will write out data to a file. That file, in turn was read by the tail command over ssh and a notification window would appear anytime a new message was sent directly to you.

That capability hasn’t changed. Instead, I’m trying to improve how that is done. In the old way, a persistent ssh connection was needed to tail the file on the remote machine running irssi. This caused headaches and problems; some were easy to deal with, others much harder. I think for the most part, I’ve addressed these issues.

What does the new script do you ask? Well, the perl part from the original hasn’t changed, the other script have changed, however. Its been divided up into two scripts in fact. The original script irssi-script.sh now obtains the flat file written by the irssi perl plugin using a cron job that runs every minute. The new file fnotify.sh will run every 10 seconds and check to see if the flat file has been downloaded. Once it detects a new file, it will display the contents of that file as messages using the notify-send tool.

All of the scripts are available as a tarball from http://www.herlo.org/misc/fnotify.tar.bz2. Please feel free to check it out as its set up for anonymous checkout.

I’ve provided a README and an INSTALL file which should help you get the script set up for you. Please send an email to clints At UToS . OrG or comment here on the blog with any questions and I’ll happily try to help.

Back to my original question. How long should it take? Will you let me know?  Currently, this script can take as long as 1 minute 10 seconds to send notification of a message.  Is this too long?

Thank you,

Herlo

APlus.net – Don’t buy your domain from them!

I generally don’t recommend or (as in this case) tell people to avoid a particular vendor. Generally, my comments are kept to tutorials and simple to complex configurations, or stories about my failures so that others might learn from me.In this case, I pretty much want to rip APlus.net a new one!

So here’s the story.

A year ago, I wanted to register utos.org as a domain which is currently used for Utah Open Source and its non-profit website. Anyway, I couldn’t find my current registrar Total Online Solutions interweb address anywhere and I needed to register this site. I’d just had the epiphany about how to help Open Source grow in Utah.

Problem was, I needed to register it now, so I hastily went down the list of possible registrars and didn’t want to go with the big guys, GoDaddy.com or NetworkSolutions, etc. After perusing the list for a short time, I came upon APlus.net. I’d heard of them before, and had thought that they might be a good fit, and of course, the price was right. So I signed up for the account and registered my domain, along with an alternate I ended up not using.

This is where my trouble began…

One week or so after I registered the site all was well. The dns was resolving and everything was working well. It could have been faster, but I wasn’t in the biggest of hurries to be honest. APlus.net did a fine job letting me delegate my domain. A few days later, I received a phone call:

“Hello”, I said.
“Hello, Mr. Savage?”, in broken English, “I am calling from APlus.net”.
“Yes?”
“Well Mr. Savage, I am calling to check with you on your new domain purchases and want to make sure everything is to your satisfaction”
“Yes”, I said, a bit annoyed, “its fine”.

At this point I obviously wondered why I’d answered the phone, but since I thought they might give me a free year of registration or something, I stayed on the line.

“That’s great to hear Mr. Savage, is there anything we here at APlus.net can do for you?”
“No, I’m fine. Things are working well”
“Thank you Mr. Savage, have a nice day then”
“Goodbye”

I thought it odd, who’s ever heard of a salesman calling about a domain registration? I mean, how hard is it to delegate your domain and familiarize yourself with their tools. Everything was pretty straightforward. I brushed it off as no big deal, thinking that was just part of their service.

Two weeks later, I received a similar phone call. I won’t repeat it to you. I kindly thanked them and asked how many calls I was going to get. The man didn’t know.

A month went by before the next call came. Like I said, who calls to see if you are satisfied with your domain? I mean really? I was annoyed and asked the gentleman to have his office make sure not to call me again unless there was an emergency. He said he would and indeed, I’ve not received another call since.

But this is not why I am recommending you avoid APlus.net

My real problems started May 15, 2007. The day after I got the notice to renew my domain.

read more »

rtorrent – The Options

A little over a week and a half ago, I wrote an introduction to rtorrent that covered the basic functionality of rtorrent. This tutorial should have made it easier for those of you out there to use my favorite torrent client.

Because I love rtorrent so much, I thought I’d share a simple way to configure this awesome tool. I’ll also take the time to share a few of the command line options I use from time to time and why I value them as well.

Take a minute to look through the rtorrent man page. Along with some of the interactive keystrokes and functions pointed out in the previous post, you’ll find that there are many options that can actually be passed directly on the command line. Many times its much easier to use a configuration file; in this case, its called .rtorrent.rc and it should be found in your home directory.

In this tutorial, I’ll cover the options one by one that are regularly used. Then, I’ll cover some simply cool advanced configurations that will help you manage your torrent downloads.


As you might recall, I run rtorrent within screen. This affords me the ability to access it at will and pretty much run it 24/7. Because of this, I have specific upload and download speed requirements. This is where rtorrent really shines!All of the options covered below must be set after the -o option. The next options I am going to cover are the ones that control the speed of both the upload and the download. These should be pretty self-explanatory:upload_rate=50 — Set the maximum upload rate at 50Kb/s. All active torrents will be cumulatively constrained to this limit.
download_rate=250 — Set the maximum upload rate at 250Kb/s. All active torrents will be cumulatively constrained to this limit.What does this mean for you? Well, if you have 10 torrents uploading to other peers and 5 torrents downloading, the maximum for upload will be 50Kb/s overall and 250Kb/s overall for those downloads. Executing these two options on the command line is easy:$ rtorrent -o upload_rate=50,download_rate=250rtorrent begins and at the bottom, you should see something similar to this:

[Throttle 50/250 KB] [Rate 49.9/ 31.4 KB] [Port: 19814]

Now, this is nice, throttling downloads and uploads overall, but there’s more.

How about setting the directory where all of the downloads will be stored? What about setting port ranges to use? And what about verifying the hash is valid of a partially downloaded file? These are all great things to have, so lets set them in our next rtorrent call:

$ rtorrent -o directory=/data/torrents/current,upload_rate=50,download_rate=250,check_hash=yes,port_range=19340-19400

Now isn’t that great!? Try saving a couple of files with this and see what you get.

Cheers,

Herlo

Fedora 7 Disk Labels and more

I’ve been curious lately as to how I could print labels for my Fedora 7 DVDs.  Because I am officially a Fedora Ambassador for Utah, I would like to give out nice looking DVDs with labels on them.  Well, I found a very nice lady who’s put up eps versions of such labels and I plan to take them and print a few for myself and for those I give the DVDs/CDs.  Here’s the link:

http://www.isity.net/blog/?p=60

Enjoy these labels and send me pictures of your DVD happiness.

Cheers,

Herlo