Powered By

Powered by Blogger

Kamis, 25 Februari 2010

[How-To] Listen to Pandora And Spotify Outside US / UK In Linux, Using TOR (With Country Specific Exit Nodes)

This is yet another guest post from RKV. We've seen how to get an invitation for free on Spotify UK and now that you have an account, you must log in using a UK proxy every 14 days or your account gets blocked.

To log in to Spotify (and while we're here, also for Pandora, with a different set of Exit Nodes) using an UK proxy, you'll have to configure TOR to use some specific exit nodes. Here is the exact step by step how-to for Linux (Ubuntu).


Step 1: Install Vidalia Bundle [Tor+Privoxy]

Add the tor ppa repo:
echo "deb http://deb.torproject.org/torproject.org experimental-$(lsb_release -sc) main" | sudo tee -a /etc/apt/sources.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 886DDD89

(or add the stable Tor repository - see HERE, although I recommend the experimental repository!)

And install them:
sudo apt-get update && sudo apt-get install tor vidalia privoxy


Step 2: Configure Tor to use US exit nodes
sudo gedit /etc/tor/torrc

Note from Andrew: that didn't work for me for some reason, but editing the ~/.vidalia/torrc file worked, so if the first one doesn't work for you either, try this second file.

And paste this at the bottom of the file:

a) For US exit nodes (Pandora):
ExitNodes desync,whistlersmother,lefkada,bettyboop,croeso,TorLuwakOrg,nixnix,inap1,redpineapple,cronic,sasquatch,slowturtle2,moria1,moria2,torxmission,augrime,err,foundry,peertechdata,sasq,0xL37N1Tor,agrippator,3x0rcyst5p4dd3dc311,52c5eSH5,703server,allium,amendment10,Blackmage,BostonUCompSci
StrictNodes 1
CircuitBuildTimeout 5
NumEntryGuards 6
KeepalivePeriod 60
NewCircuitPeriod 15


b) For UK Exit nodes (Spotify):
ExitNodes 0000000000Marauder,anonion,colinwillsdorkyahoo,gigatux,gerkin,devasdfasdf,Persepolis,ephemer2,000000000000haven,Alice
StrictNodes 1
CircuitBuildTimeout 5
NumEntryGuards 6
KeepalivePeriod 60
NewCircuitPeriod 15


Step 3: Configure Privoxy to use tor
sudo gedit /etc/privoxy/config

Navigate to the bottom of the file, and add the following line:
forward-socks5   /               127.0.0.1:9050 .

Yes, with a space and a dot at the end!



Step 4: Restart the services

Restart the Tor and Privoxy services of the changes to take effect:
sudo /etc/init.d/tor restart
sudo /etc/init.d/privoxy restart


Step 5a: Use Pithos to listen to Pandora (Recommended)

We have covered Pithos, a client for Pandora here (and I just Love It!).

Follow the above link to find instructions to install pithos, after installation, Pithos needs to configured to use tor.


pithos proxy

Open up Pithos (Applications > Sound & Video > Pithos), insert your Pandora login details (if you don’t have one, just register it for free. Follow the step5b and then head on to Pandora.com to register). Then insert the proxy details as “http://127.0.0.1:8118


Step 5b: Use Firefox to listen to Pandora

pandora screenshot


I would suggest installation of FoxyProxy as it automatically will redirect Pandora to use Tor, whereas other sites will use normal connection.


foxyproxy


After installation of the FoxyProxy addon, double click on “FoxyProxy” in the right lower corner. Click “add new proxy”, Under “Manual Proxy Configuration” enter ip address as 127.0.0.1 and port 8118.


foxyproxy pattern

Then go to the “URL Patterns” tab and click “Add New Pattern”. Give pattern name as “Pandora” and URL pattern as “*pandora.com/*” (without quotes). Leave the rest as it is. Click ok, ok and come out. Make sure that Foxyproxy is set to use the “Patterns” profile.

Now just navigate to www.pandora.com and enjoy!

PS: As of writing this tutorial, I was not able to signin using pithos (it worked earlier), but I could, using Firefox. So in case you encounter any problems, use Firefox and try with Pithos later on.


Step 5c: Setting TOR for using Spotify.

spotify proxy


The Spotify application is only available for Windows. But it can run on Linux by using Wine. Complete details to setting everything up can be found on THIS page.

The first thing you need to do is get a Spotify account. To get an invite, see THIS post.

Then you need to set up a proxy for Firefox (using TOR) to create the account. Since you've set up everything like in the above steps, all you have to do is to go to Firefox preferences (Edit > Preferences > Advanced > Network) and enter "127.0.0.1" as the SOCKS IP and "9050" as the port. Then proceed to creating your Spotify account.

To set up Spotify for use with TOR, navigate to Edit > Preferences in Spotify, and under Proxy select "Socks5", enter: "127.0.0.1" (or "localhost", it's the same) as the IP and "9050" as the port. Spotify can also use Pirvoxy meaning you can just set it a http proxy on "localhost" with "8118" port and since you've installed Pirvoxy too, use whichever you want.

For Spotify you only have to log in using TOR with UK exit nodes every 14 days. So basically you can simply use your normal internet connection for listening. But don't forget to log in using TOR with UK exit nodes every 14 days!


This is a guest post written by WebUpd8 reader rkv (thanks!). Credits for the post and screenshots: rkv. Browse all the posts by rkv.

Tidak ada komentar:

Posting Komentar