Archive for category Linux

Sickbeard with Integrated Torrent Client

Note: Since this post was written, TvTumbler was born. Going forward, all new development will be in TvTumbler.


Sickbeard Integrated Torrent ClientI’ve included a torrent client in my torrent-friendly fork of Sickbeard. The UI is a little limited at the moment, but it’s been wiping the floor with both Transmission and uTorrent here for the last few days in terms of download speed, so I think it’s ready to be set loose on the world.

To enable it, you’ll first need to install libtorrent rasterbar (version 0.16 or later), and its python bindings.

If you do not have an already-running copy of this fork, just follow the general installation instructions.

Otherwise:

For debian derivatives: (i.e. Ubuntu, mint, etc)
sudo apt-get install python-libtorrent

That could hardly be much simpler now could it?

For OSX:
You’ll need to do a little compiling I’m afraid.

This post includes all the required details.

For Windows: (yes, for once I haven’t forgotten about you!)
Go here, and download the .msi which matches your version of python (probably either py27 or py26).
Pick a recent version – the older ones won’t work with magnet links.

Another OS:?
If your OS doesn’t come with a packaged version of libtorrent rasterbar and its python bindings (and note that most will!), then you’ll probably need to build from source.
svn co https://libtorrent.svn.sourceforge.net/svnroot/libtorrent/trunk/ lt/
cd lt/
./autotool.sh
./configure --enable-python-binding
make
sudo make install
sudo ldconfig

Once you have installed the above, restart Sickbeard, go to Config -> Search Settings -> Torrent Method, and change it to “Integrated”.

Any OS-specific tweaks you wish to share? Please note them in the comments.

Notes:

  • Is libtorrent installed? What version do I have?
    python -c "import libtorrent as lt; print lt.version" will tell you very quickly. You should get a response like 0.16.9.0 – if you get an error, or a version less than 0.16, this is likely to be your issue.
  • All my torrents are stuck at “downloading_metadata”: for dht to work (and hence for metadata to be available), the torrent client needs at least one valid peer to exchange data with, but if all your downloads are trackerless magnets, it won’t have one. Try adding a torrent manually (using either a magnet link with trackers, or a link to a .torrent file). You can delete the added torrent as soon as metadata begins to download. [Note: This issue should be resolved with recent releases]
  • Having other Issues? Check out this post (and read through the comments) to see if someone else has addressed it.
  • Still having Issues? Check out the github issue tracker. Please search the existing issues before creating a new one, and include a debug log in any new issues! (you can censor it beforehand if you feel the need)
  • It looks like ubuntu 12.04 installs libtorrent 0.15.x by default, which is a little too outdated for use here. So, if you are a 12.04 user, you’ll either need to build from source, or find a ppa with a more recent version (please post any suggestions in the comments). Thanks go to Chris for pointing this out.Update (with thanks to Dennis): This repo appears to have all the needed packages.

, , ,

50 Comments

Sickbeard + iPlayer: requirements

Note: Since this post was written, TvTumbler was born. Going forward, all new development will be in TvTumbler.


BBC iPlayer LogoI’ve just merged the iplayer branch of my Sickbeard fork into master, as it’s been working ok for me for the last few days, and I think it’s ready for some others to check it out.

But, be warned: it has prerequisites. In short, these are:

  • Perl: any *nix will have this
  • ffmpeg:
    • On linux, you probably just need to do sudo apt-get install ffmpeg (or whatever the rpm equivalent is).
    • On OSX, take a look at my recent post about how to build ffmpeg.
  • rtmpdump:
    • On linux, again, you can probably just do sudo apt-get install rtmpdump (or the rpm equivalent).
    • On OSX, building this is just too simple:
      git clone git://git.ffmpeg.org/rtmpdump
      cd rtmpdump
      make SYS=darwin
      sudo make install SYS=darwin
  • If you’re on a *nix machine, there’s a strong likelihood that you have all these installed already, so best to check first.

    Windows users: you’re on your own here, sorry. I believe that get_iplayer will run on Windows, but I simply don’t have a copy of the OS installed on which to check it. You’ll probably need to get both ffmpeg and rtmpdump also too I’m afraid. If you do have success with windows (or indeed any other OS), let me know in the comments and I’ll add the instructions here.

    All of this is made possible of course by the work from infradead on the get_iplayer script (latest version included in the sickbeard code, but you can install your own if you prefer).

    Please note: for this to work you must either be *in* the UK, or have some kind of VPN connection to the UK. iPlayer downloads are restricted to UK ip addresses. (of course there are other ways around this, but I’m not going to discuss those here).

,

3 Comments

Air Video addon for XBMC

Air Video logoThis is simple enough really: an addon for XBMC that allows you to browse (and stream) from an Air Video server.

Download Air Video Plugin for XBMC

To install this in XBMC, download the zip file above, save it somewhere you can find it, then

System -> Settings -> Addons -> Install from zip file

and browse for the file you just downloaded
Be sure to configure the “Location” in the preferences before use (this should be the ip address of your air video server).

I can take very little credit for this. Most of the Air Video code comes from Jeremy Debate’s port of JP Hastings-Spital’s ruby library for interacting with Air Video, with some minor modifications here and there to get it to work from within XBMC.

Note that I’ve only tested this on Frodo, the latest development build. I would expect it to work without issue in Eden also however.

UPDATE: Please note that if you open a video by simply selecting/clicking it, it will not be transcoded (xbmc will simply attempt to play the file as-is). Transcoding requires opening the file via the context menu/right-click/’C’-key, and does not appear to work correctly in current versions of XBMC due to lack of support for the stream format. Please read the comments below for further details.
(Thanks for signorRossi for this information).

,

42 Comments

dd-wrt and 802.11d woes

In Argentina it’s quite difficult to buy a wifi router which is configured correctly for use in this country (with the exception of those that come “free” with your cable etc.).  The majority of network equipment that you find here is bought (over the counter) in other countries, and imported through “unofficial” channels.  This presents a problem with wifi routers, which are often configured for another regulatory domain — as generally those who use them don’t bother (or don’t know how) to fix them.

I live in an highly congested wifi zone (a kismet scan run from my laptop yesterday found an incredible 4200 distinct stations!).  A few hundred of these are access points, most have 802.11d enabled, and many of these transmit a country code that is not AR (i.e. Argentina).  Aside from probably being immoral, that’s not such a big deal.  But …

Enter Mac OS X.

Read the rest of this entry »

, , , ,

2 Comments

The Defragmentation Brigade

These people epitomise all that is bad about computer-care.

  • They read a book once, it had ‘Technical’ in the title.
  • They read a website once, it had ‘Tweaks’ in the title.
  • They fix their mom’s computer, installing realms of free anti-spyware software when doing so.
  • They enable the windows firewall on a trusted lan, and install another firewall for good measure.
  • They use the words ‘Anti-Virus’, ‘Anti-Spyware’ and ‘Firewall’ interchangeably.
  • They say things like ‘fix it in the bios’.
  • Their favourite piece of software is called ‘Super Extra Registry Clean Optimizer’ (order of adjectives varies).
  • They know all about ‘l-eye-nux': It’s fast, efficient, wonderful.  Some day they know they’ll try it too.
  • And they honestly believe, despite all evidence to the contrary, that defragmenting a computer hard disk fixes issues.

So, if you ever have a computer problem, and someone gives you some advice containing the word ‘defragment’, consider running away, very fast.  God has a special level of hell reserved for these people, and you don’t want to be near them when he sends them there.

, , ,

No Comments

WebKit on Linux

It doesn’t have all the bells and whistles that the mac or windows versions have, but it’s damn handy for testing safari compatibility without booting another OS.

To install/build it on ubuntu (hardy with the usual bells & whistles), proceed as follows:

First you’ll need some dev packages to build it with:

sudo aptitude install libqt4-dev libxslt-dev gperf bison libsqlite3-dev flex build-essential

Then get the latest source from nightly.webkit.org. Right now that’s r36309, so we have:

wget http://builds.nightly.webkit.org/files/trunk/src/WebKit-r36309.tar.bz2

The builds change almost daily, so check first, don’t just copy the line above.

tar -jxf WebKit-r*.tar.bz2
cd WebKit-r*/
export QTDIR=/usr/share/qt4/ 
WebKitTools/Scripts/build-webkit

This will take 30mins+ on a reasonable machine, so go make tea.

When it’s finished, you can launch it as follows:

WebKitTools/Scripts/run-launcher

And that’s it, we’re done. Simple eh?

Note: it will need QTDIR set for it to run. We exported it when we were building above, but it probably won’t be set when you try to run it next time. The simplest way to work around this is probably to just put the export in your .profile as follows:

echo "export QTDIR=/usr/share/qt4/" >> .profile

,

No Comments

What the f&*k’s up with IM Video on Linux

I mean how difficult can it be?

  • Skype: It’s the best I’ve found so far, but it still sucks dried donkey turds. Aside from minor annoyances like having to run the static build coz the buttons keep disappearing otherwise, random crashes for no apparent reason, dropped calls every time it tries to switch to TCP (helloooooo? TCP for realtime video is a terrible idea!) and generally bombing out for an indefinite period after about 10 minutes of conversation … where was I? … oh yes: Well skype is evil, isn’t it? Proprietary, closed-source, linux-is-an-afterthought and all that. Bah.
  • Pidgin: Well the great god ubuntu gives it his stamp of approval. But, well, did they forget to put in audio/video? Oh wait, a little googling tells me that they don’t actually care about audio/video conferencing. They may implement it, some day. But that day isn’t now.
  • Kopete: Aside from being ugly, and coming with a shedload of kde stuff I don’t want; video is limited to MSN and Yahoo. Hmm … well that’s useful eh? Don’t know (or more correctly, wish to speak to) anyone who uses either.
  • Ekiga: An hour or so tweaking around with an asterisk server to set up video, and twenty minutes convincing the other end of the call (a windows user) that they wish to install Ekiga, led to a 2 minute call with terrible video and no audio, and downed internet connections on both ends for about 20 minutes afterwards (I’m guessing that ekiga was trying to send video info so fast that it just stacked up at both routers, and killed everything else). This one nearly cost me a divorce.
  • Wengo: Signup on their site is broken – no problem I says, I’ll use asterisk again. Turns out their implementation of H263 is non-standard and doesn’t work with asterisk. Great.

Is that it? Are my options exhausted? I think so.

So for now it’s suffer skype, or run windows in a vm.

, , , , , , ,

No Comments

PC, Mac… meet Linux – advertisements from Novell

A series of advertisements from Novell, promoting SUSE.

In all my years working with it, I never knew Linux was a woman – stunned I was.


Read the rest of this entry »

, ,

No Comments

Email to SMS gateway

This is something I’ve implemented several times over the last few years. The principle is simple:

  • You send an email to mobile_number@sms.yourdomain.com with TXT in the subject, and the actual text body in the email body,
  • This goes to your mail server mail.yourdomain.com, and gets forwarded to the user smsuser
  • A procmail recipe in smsuser‘s home dir strips out the mobile number and the body of the message, and, using o2sms, sends a regular sms to mobile_number
  • The output from o2sms is sent back to you via email, so you know it all worked out ok.

It’s all free, and reliable.

This is how I went about setting it up on ubuntu: Read the rest of this entry »

, ,

10 Comments

SIP TCP support in Asterisk

Edit: This post is now quite out of date. There’s a more recent discussion of this at the trixbox forums.

Original Post:
Despite digium‘s screwed up licensing restrictions, and its diabolical coding standards (something which Callweaver will hopefully make a thing of the past, but that’s for another day), SIP over TCP support is now finally available in asterisk (at least for the 1.2 branch).

Brief instructions how to upgrade your 1.2.x installation are given below: Read the rest of this entry »

, ,

6 Comments

rsync over ssh on a non-default port

This has long been plaguing me. I finally worked it out today though. :)

The syntax is quite simple, for port 12345 you would use …

rsync -avPe 'ssh -p  12345' username@remoteserver:/filepath /localfilepath

Very simple when you see how it’s done eh? :P

,

No Comments

RIP Authentication between Cisco IOS & Quagga

For some reason, this wrecks my head every time I have to set it up. It should be simple yes? It looks simple when you see the config below yes?

… well each time I have to set it up, it costs me several hours. I guess it’s some kind of mental block or something.

Anyway, the instructions …
Read the rest of this entry »

No Comments

css.php