SOHO : Small Office Home Office
Freeware - Opensource software tips, tricks, tweaks & fixes for managing, securing, improving the performance of SOHO Desktop, Laptop, Networks

Sunday, March 14, 2010

how to use rtorrent like a pro


Howto: Use rtorrent like a pro

I’m a huge rtorrent fan. I can’t imagine why anyone would use anything else, unless there’s something funky the big-name programs can do, that rtorrent just doesn’t handle yet.
This time, instead of introducing you to rtorrent nice and easy, like I did with cplay, I’m going to give you a brief tour, and then I’ll show you something very cool you can do with it. rtorrent is an amazing, complex, powerful program that is at the same time sleek, clean, comprehensive and ultralight — and I’m giving you just one small idea of its potential.
But first, let’s scratch the surface. Like a lot of console-driven programs, the startup screen for rtorrent is … rather dry.
That’s all you get. Exciting, isn’t it? :roll:
To add a torrent, press return and navigate to the torrent file. In this example, I’m using one of my favorite Revolution Void albums, “Increase the Dosage,” from Jamendo. I can’t guarantee you’ll like it, but it’s a free and legal download and it makes for a good example.
You can use tab completion to make your way to it. Double-tab shows a list of available path options that match the path you’ve already started. Your path starts in your home directory (unless you started it in a lower directory than that), so you don’t have to give it the full root path if you don’t want to. Press enter when you’ve found the one you want, and rtorrent will add it to the list.
Note that it’s still labeled as “INACTIVE.” rtorrent won’t start downloading until you tell it to. Use the arrow up and down keys to highlight the torrent (it will be marked with a bar of asterisks) and press CTRL+S.
Now we’re moving. The torrent is marked as active, the tracker will be contacted, and provided there are adequate seeds, downloading will start.
That’s about it, in a nutshell. There are some customary points that you’d expect from a torrent client. Press the right arrow while a torrent is highlighted, to see a detailed breakdown of the information available.
To get back to the main list, use the left arrow. Bandwidth throttling might be important to you too. If you’re used to capping your bandwidth (I choke my upload speeds to keep my wireless router from having a nervous breakdown), try using the a-s-d, A-S-D, z-x-c and Z-X-C keys to trim the speed to your liking.
If you take a few moments to experiment, you’ll find that pressing the numbers 1-6 gives you a revised view, with different filters applied. That can be useful if you’ve got 10 or 12 torrents running at a time, and you want a clear list of finished torrents, or stopped torrents. And most important, you can quit the program with CTRL+Q.
This is where you can stop if you just wanted the short tour. The next part is for people who really want to put rtorrent to work, and don’t mind getting their hands dirty. :twisted:
When you started rtorrent for the very first time, you probably saw a warning message that told you there wasn’t a .rtorrent.rc file to follow. That configuration file is what morphs rtorrent from a mild-mannered, law-abiding console gimmick into an unholy torrent-wrangling banshee.
In Ubuntu, the sample rtorrent configuration file is hiding at/usr/share/doc/rtorrent/examples/rtorrent.rc. Copy one for your own perusal, and give it the proper hidden file prefix.
cp /usr/share/doc/rtorrent/examples/rtorrent.rc ~/.rtorrent.rc
Now open that file in your favorite text editor. Take a minute or two to peruse the guts. (I’ve copied one to the Ubuntu-nl pastebin for reference, or if you’re reading this at work on your $3,000 DRM-crippled Vista rig. :P )
You should get an idea of what the file can do; setting max uploads and downloads, default throttling and IP masking are all options. But take a closer look at some of these settings.
# Watch a directory for new torrents, and stop those that have been
# deleted.
#schedule = watch_directory,5,5,load_start=./watch/*.torrent
#schedule = untied_directory,5,5,stop_untied=
What’s that mean, you say? Well, it means rtorrent can watch a directory and add torrents to its list automatically, and stop torrents if the corresponding file disappears. Now look at this:
# Stop torrents when reaching upload ratio in percent,
# when also reaching total upload in bytes, or when
# reaching final upload ratio in percent.
# example: stop at ratio 2.0 with at least 200 MB uploaded, or else ratio 20.0
#schedule = ratio,60,60,stop_on_ratio=200,200M,2000
You can also allow seeding to a specific ratio, a specific total uploaded or both. So if you get tired of carrying the weight of the Internets on your shoulders, you can limit your sharing on any number of criteria.
That’s nothing new, you might say. Azureus does all that, plus it has a feature-rich GUI, is proof of the viability of Java applications and has a cool blue frog as a mascot.
Well, please allow me to retort … with a case study: Imagine you’ve got two machines: Your $3,000 dual-core, dual SATA-drive, LED-bespeckled laptop straight from Dell, with an array of glossy sheen snap covers, eight USB ports, a gigabit connection and a built-in 802.11a-wireless card.
Your other machine is the lowly 166Mhz Pentium laptop. The one with 64Mb of PC66 and a 3Gb hard drive. The one you got from work in 1997 and never took back, even when you left them for another company during the dot-com boom. Burnt-out pixels, loose hinges and one scratchy speaker. The one with the Stone Temple Pilots sticker peeling off the lid. You know what I’m talking about.:mrgreen:
Set up your main rig with a shared network folder (NFS would be perfect for this) on a static IP address. Set up your lowly Pentium machine with a hard line to your router, maybe with a PCMCIA LAN card — something that at least gives you decent access speeds.
Now mount that shared folder directly into your slave’s home directory, maybe under ./watch. Set up the configuration file. Trigger rtorrent on bootup, and tell it to watch that folder.
Now you surf away in the comfort of your shiny dual-core desktop-replacement laptop, and when you find a torrent you like, save it into the local networked folder — perhaps even sending it to that folder automatically, through Firefox’s file extension preferences.
When you save it, rtorrent snaps it up and adds it to its list. It starts downloading it automatically, saving the file locally or perhaps on an external drive. You can set it to follow a certain bandwidth schedule so it doesn’t overwhelm the network, or you could hold all the torrents until the middle of the night, and do all your downloading during the wee hours.
It continues to download until it’s finished, then seeds for as long as you allow it. If it reaches the seeding ratio you set, it stops. If it reaches the upload limit, it stops. And best of all, if you delete the control torrent file out of your local download directory, it halts all the activity on that torrent and subtracts it from the list. Download the torrent, and it starts immediately. Change your mind and delete it, and rtorrent cuts it loose. Clean and neat, all handled automatically and without the least amount of effort on your part. It’s almost like a torrent daemon.
(In my experience, rtorrent never deletes the product files it has already created. So if you start downloading and change your mind an hour later, rtorrent might take the torrent out of the list, but the target files are still available. Conceivably, you could change your mind again and re-download the torrent file, and rtorrent would pick up the already downloaded fraction and get back to work on it. But I’m not 100 percent sure on that because I don’t recall ever doing it, so don’t hold me to that. :) )
I’ll be honest and say I haven’t used Azureus in more than a year, and so it’s possible that you could create the same arrangement with Azureus. But can Azureus run on your leftover Pentium Pro laptop?
rtorrent is highlighted in that htop window. CPU usage is 0.0 percent of my 550Mhz and the memory profile around 2 percent of my 192Mb, and that’s while it seeds the album I started downloading when I started writing this. Add a few more torrents and of course the profile will go up, but the benefit of running without Java, without the X interface and without two dozen Gnome dependencies should be blatantly obvious. I’m willing to bet your old Pentium could do it.
Spacewise, rtorrent is going to cost you 314Kb for the download and 860Kb to install. libtorrent9 is necessary, so that’s another 284Kb to download and 788Kb on your drive, so you’re looking at less than 600Kb of bandwidth and maybe 1.6Mb installed. Again, I’ve written letters to Mom that took up more space than that.
I hope this is convincing enough to get you to try rtorrent, and maybe even use it on a regular basis. I really believe it’s a better option than most of the prevailing torrent clients, even if it is console-based. If you want to delve even deeper into this amazing little program, take a spin past the rtorrent wiki, which is one of the best-composed and best-written I’ve seen in a long time. The project is very active, and it has the look of it.
Continue Reading...

submit site to google webmasters

Once you have verified your site with Google Webmaster tools, Google Sites will auto-generate a sitemap xml file. Your sitemap will be generated at:



  • http://sites.google.com/a/(your domain)/(site name)/system/feeds/sitemap for Google Apps.

  • http://sites.google.com/site/(site name)/system/feeds/sitemap for sites under sites.google.com/site


  • Once these Sitemaps have been created, you can submit them to Google using Webmaster Tools.


    Verify a Google Site with a Web Address Mapping

    1. Sign in to the Google Webmaster Tools (this can be any Google Account, and does not have to be the one you use for your site);
    2. Use the Add Site button and type the URL of the site you want to add - www.tidydns.net for example - in the Enter the URL of a site you'd like to manage box and use the Continue button;
    3. Make sure the Verification method drop-down box is set to Meta tag and copy the meta tag given;
    4. Open a new browser tab or window, and paste in the Google Webmaster Tools verification box on the General tab of the Manage Site page of your site (e.g. http://sites.google.com/a/(domain name eg:tidydns.net)/(site name eg:www)/system/app/pages/admin/settings - but use your domain and site), and use the Save Changes button;
    5. Return to the Google Webmaster Tools and use the Verify button and you should have verified your site.

    Submit a Sitemap of a Google Site with a Web Address Mapping

    1. Sign in to the Google Webmaster Tools (if you haven't done so already);
    2. Choose the site you want to upload a sitemap for and use the Submit a sitemap link under the Sitemaps column follow the Add link for the site you wish to add the sitemap for;
    3. Use the Submit a Sitemap button and n the box next to your site URL enter system/feeds/sitemap and then use theSubmit Sitemap (on the right) to add it to the list of sitemaps.
    4. Come back later (hours or days) to see the pages the Google Webmaster Tools has found from the sitemap.
    Continue Reading...

    Get email notification when people fill the Google Docs Form


    Web forms in Google Docs are a great choice for creating forms like "Contact Me" or even for conducting polls and surveys since the software is free and puts no limit on the number of people who can participate.
    The other good part is that all replies are directly saved in an online spreadsheet so it becomes all the more easy to analyze data.
    Now if you like to know ASAP when people fill and submit your Google Docs form, here’s a simple workaround.
    Create a new form (if you haven’t done that already) in Google Docs and close the window. Now open the corresponding spreadsheet in Google Docs and choose Share –> Set Notification Rules.
    Select the "A user submits a form" option and how frequently you would like to get notified. If it’s a "Contact Me" form, the "email right away" may be a good choice but for polls, you may use the daily digest feature.
    google-email-forms
    Continue Reading...

    Adding favicon to google sites

    Creating Favicons

    Favicons can be created based on any image, but not all images will look good as a favicon. There are a variety of tools available for creating these images, including the following free online services. From my experience, all of these services work equally well, though some have more features and capabilities than others:

    • http://tools.dynamicdrive.com/favicon/ 
    • http://www.favicon.cc/
    • http://www.faviconblog.com/favicongenerator1/script/index.php 


    Adding a Custom Favicon

    The following steps are all that is required to take advantage of this new capability:

    • Navigate to the Attachment management section of your site 
    • (More Actions > Manage Site > Attachments) 
    • Click Upload 
    • Click Browse and select your favicon.ico file 
    • Your favicon file must be named "favicon.ico" The apple-touch-icon.png file is not currently compatible as a favicon for Google Sites. 
    • Choose the option to Upload attachment to / (top-level) 
    • Click Upload
    Continue Reading...

    Monday, March 8, 2010

    Disable WGA notification

    1. Lauch Windows Task Manager.
    2. End wgatray.exe process in Task Manager.
    3. Restart Windows XP in Safe Mode.
    4. Delete WgaTray.exe from c:\Windows\System32.
    5. Delete WgaTray.exe from c:\Windows\System32\dllcache.
    6. Lauch RegEdit. through window run
    7. Browse to the following location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify
    8. Delete the folder ‘WgaLogon’ and all its contents
    9. Reboot Windows XP
    Continue Reading...

    Sunday, March 7, 2010

    Access vbox shared folders on Virtual machines


    1. start up virtual box then start up xp 
    2. go to the top panel click Devices-->Install Guest Editions Download and install Guest Editions 
    3. Set up your shared folders in virtual box. Example share folder home/Crimthinc
    4. start up windows go to Start--> Run enter cmd and press enter once in the dos console deal type net use t: \\vboxsvr\Crimethinc(only put in the last folders name on the end of the command for example if you selected a folder under home/Crimthinc/music the command would be net use t: \\vboxsvr\music)
    5. OR Open Run dialog and type \\vboxsvr
    Continue Reading...

    Friday, March 5, 2010

    How to change canonical hostname?


    Change Host Name
    This applies to Fedora/Red Hat systems.
    The host name is set during boot in the file /etc/rc.sysinit. In what follows, .yourdomain refers to a domain you own. If you don't own a domain, use .localdomain instead. Also the word yourhost refers to the host name you want to use.

    Edit /etc/sysconfig/network. This file is sourced by the script in /etc/rc.sysinit.
    Set the variable HOSTNAME to your host name.
    Example:
    HOSTNAME=yourhost.yourdomain
    See /usr/share/doc/initscripts-*/sysconfig.txt
    Edit /etc/hosts.
    The format of this file is:

    Edit the line begining with 127.0.0.1; add the long and short versions of your host name to the end.
    Example:
    127.0.0.1 localhost.localdomain localhost yourhost.yourdomain yourhost
    See man 5 hosts
    Reboot.
    Continue Reading...