Monday, April 30, 2012

RTorrent and necessarily settings

RTorrent is text-based ( console ) torrent client, whose author's goal is a focus on high performance and good code. RTorrent uses small amount of memory and, it claims to be able to seed at 3 times the speed of the official Bittorrent client.

Lets try rtorrent.
  • Install rtorrent.
  • Edit your config file rtorrent.rc. It is enough, if it contains this lines:
rtorrent.rc example:
directory = ~/Downloads
session = ~/rtorrent/rtorrent.session
schedule = watch_directory,5,5,load_start=~/rtorrent/*.torrent
port_range = 45000-45100
  • Create 3 directories like you named them in rtorrent.rc file. For example:
creating directory names:
mkdir ~/Downloads
mkdir -p ~/rtorrent/rtorrent.session
  • Don't forget to open or forward ports in firewall or router.
  • Now put some torrents to ~/rtorrent/ directory and start the program like that:
starting rtorrent:
$ rtorrent -n -o import=rtorrent.rc


Highlighting code syntax on blogger

You can highlight syntax with Syntaxhighlighter. Steps you will need to folow can be found here.

When highlighter setup is finished you can highlight code that way:
<pre class="javascript" name="code">

alert("hello world!");   

</pre>

Python 2.7 " Hello world " example


#!/usr/bin/python2.7

TEST="hello world"
print TEST