Linux Music Server Controlled by an Android Device pandora internet radio login

Linux Music Server Controlled by an Android Device

by azeam1 in linux
Download
2 Steps
Favorite  I Made it! Collection

Introduction: Linux Music Server Controlled by an Android Device

Goal:< hrqcpxjt. pandora charms 2013/strong>

A Linux computer that acts as a music server for files like MP3 and FLAC. It will also play Pandora radio and everything can be controlled by an Android device so there's no need to connect the computer to a monitor.

Needed:

Linux computer (personally I'm using a Raspberry Pi, http://www.raspberrypi.org/ for 35$)
A device running Android, like a phone or tablet
A local network where the Android device and Linux computer are connected
An external sound system or speakers connected to the computer
A couple of minutes to set everything up

Linux:

There are many different Linux distros out there and this guide will explain how to set it up on Debian based distros (such as Ubuntu, Linux Mint, Raspbian etc.). It's of course possible to set up on any distro but depending on what package manager the distro uses, the commands will be different. The guide will assume that you have already installed Linux on your computer.

Step 1: MP3, FLAC Etc. (MPD)

MP3, FLAC etc. (MPD):

For music files like MP3 and FLAC we will use MPD, http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki. This is a daemon that can be controlled remotely by a number of different clients. It's included in most major Debian based distro's repositories so all you need to do to install it is open a terminal (shell) on the linux computer and write:

sudo apt-get update && sudo apt-get install mpd

After it has installed we tell it where to look for our music files by editing the configuration file:

sudo nano /etc/mpd.conf

Scroll down to the line "music_directory" and change the path within the parentheses after this line to the path where your music files are, for example:

music_directory         "/home/user/Music"

Then scroll down to the line that says

bind_to_address         "localhost"

And change it to the ip or host of the computer on the local network, if you don't know what your ip is you can open a new terminal and write:

ifconfig

Look for the line that says "inet addr" followed by something similar to "192.168.0.2". Those are the numbers that you should add instead of "localhost" in the config file:

bind_to_address         "192.168.0.2"

Normally this is everything you need to do to get MPD working and the sound output defaults to the default ALSA sound card. If you are using a different sound framework or want to change the sound card you will have to change the "Audio Output" section of the config file yourself (there are too many combinations possible to list them all here), there are examples included in the config file and more information can be found at http://mpd.wikia.com/wiki/Configuration.

After you have edited the config file, close it by pressing "ctrl + x" and choose "y" to save the file. Then restart MPD by writing:

sudo /etc/init.d/mpd restart

Controlling MPD (MPDroid):

To control MPD we will use an Android app called MPDroid. You can search for it on Google Play or use this link:  https://play.google.com/store/apps/details?id=com.namelessdev.mpdroid

Install it as normal on your Android device and start it up. Go to the settings dialog and select "WLAN based connection". Choose the network that you are connected to and select "Host". Here you enter the ip address of the Linux computer (same as we entered in the config file above).

Go back to the main settings dialog and tap "Update". After a while the music should show up in the file list.

Step 2: Pandora Radio (pianobar)

Pandora, for those not familiar with it, is an internet radio where you can choose genres or create stations based on a song or artist and it will play similar music. It is a US only service but with these instructions you can play Pandora from anywhere in the world. 

Pianobar, see http://6xq.net/projects/pianobar/, is an unofficial flash-free Pandora command based client. It is easy to set up with a proxy and also removes the ads from Pandora (to support Pandora you can register for a Pandora One account, it will give you higher quality audio, see http://raspberrypiserver.no-ip.org/pianobar_pandora_remote_control.html for setup instructions for Pandora One).

Make an account on http://www.pandora.com. If you are not in the US you will need to connect through a proxy during the registration process, there's an extension for Chrome and Firefox called media hint (https://mediahint.com/), which will make the process easy. Just install it and browse to Pandora. You will also have to enter a US zip code (any zip code will work...). 

Install pianobar on the Linux computer - open up a terminal (shell) and write:

sudo apt-get install pianobar

Then set up a config file for pianobar:

nano ~/.config/pianobar/config

My config file looks like this, the login details (e-mail and password, to Pandora) are necessary, as well as the full path to the event command file (change the username "user" in bold to suit your system):

tls_fingerprint = 2D0AFDAFA16F4B5C0A43F3CB1D4752F9535507C0
user = myemail@mail.com
password = mypassword
event_command = /home/user/.config/pianobar/eventcommand.sh


If you are outside the US you need to connect through a proxy server, see https://hidemyass.com/proxy-list/search-225511 or http://spys.ru/free-proxy-list/US/ for a list of free proxies, and add this line to the config file (change the numbers to a working proxy server):

control_proxy = http://165.225.xxx.xxx:80

Then just run the following command to download the eventcommand file, make it executable and make the fifo:

cd ~/.config/pianobar && wget http://raspberrypiserver.no-ip.org/eventcommand.sh && chmod +x eventcommand.sh && mkfifo ctl

You can test the setup by running the command "pianobar".

Pianobar Remote

To control pianobar from our Android device we will use an app called Pianobar (Pandora) Remote. Search on Google Play or use this link: https://play.google.com/store/apps/details?id=com.pianobar.remote or http://raspberrypiserver.no-ip.org/pianobar_pandora_remote_control.html for an off-market apk file.

To connect to pianobar we will need SSH set up on the Linux computer. This is already installed and set up on most distros, if not you can install it by entering the following command in a terminal:

sudo apt-get install openssh-server 

Start the app and enter the login details to the Linux server, the host/ip is the same as we used in step 1 and the username/password are the same as you use to login on your Linux computer. Tap "Login" and select the station list (bottom left) to get started.

Comments

SujithK7 (author)Reply2016-03-15

How many players are available, If configured this way? Will this set up support airplay?

About This Instructable

49,422views

40favorites

License:

azeam1Follow3
More by azeam1:
Add instructable to:
Contest Group

pandora internet radio login

pandora sølv charms
jogo de pandora
Pandora Braclet
найти пандору
pandora guld

P

Please subscribe to download HI-resolution digital version


View this advert Download HD version Add to playlist
Download and Hi-res viewing features are available to subscribers only. Why else subscribe?

Credits & Description:

Category: Media Media: Online Brand: Pandora URL: https://www.pandora.com/ Executive Creative Director: Julie Scelzo Head of Design: Tony Calzaretta Producer: Vera Kacurova Production Company: Gentleman Scholar Creative Directors: William Campbell, Will Johnson Executive Producer: Jo Arghiris Head of Production: Rachel Kaminek Art Director: Mike Tavarez Senior Producer: Kirsten Noll Designers: Hana Yean, Gautam Dutta Animators: Matt Andrews, Pablo Robleto Editor: James Dierx Flame Artist: Federico Saccone Final Mix Company: One Union Recording Studios Geo: United States Published: October 2016 Pandora has unveiled a new brand to celebrate the launch of Pandora Plus, enhance your experience and help bring your music to life. They also engaged the artists at Gentleman Scholar to produce this debut spot. In the words of creative directors William Campbell and Will Johnson, "First thing after speaking with the team at Pandora about this project, we checked to ensure we weren't dreaming. Then, trusting our instincts on how to perfectly craft the personality of the spots, we leapt forward in bringing them to life. Our goal was to visualize how the feeling of music looked. Turn it up!"

The TV Commercial Ad titled P was done by Gentleman Scholar advertising agency for brand: Pandora Radio in United States. It was released in the Oct 2016.
Brand name: Pandora Radio
Agency: Gentleman Scholar
Country: United States
Category: TV Channels/Radio Stations and Programmes
Released: October 2016

Latest Pandora Radio Ads & Commercials


  • Pandora Radio: Sounds Like You
  • Pandora Radio: Thumb Moments
  • Pandora Radio: Radio Promotion for the Digital Age
  • Pandora Radio: Pandora #ThumbMoments with Lindsey Sterling
  • Pandora Radio: Underground Stations
  • Pandora Radio: Now Playing You - Accident
  • Pandora Radio: Now Playing You - Office
  • Pandora Radio: PANDORA POSTER SERIES, Imagine.
  • Pandora Radio: PANDORA POSTER SERIES. Spread The Love.
  • Pandora Radio: PANDORA POSTER SERIES, Don't Stop `Til You Get Enough

Latest TV & Cinema Submissions

  • IKEA: Night-time Noise IKEA: Night-time Noise
    TV & Cinema
    Advertiser: IKEA International Group
    Brand: IKEA
    By: Buzzman Paris
    In: France
  • Sky Tv: For the love of sport Sky Tv: For the love of sport
    TV & Cinema
    Advertiser: Sky plc
    Brand: Sky Tv
    Product: Sky Sports
    By: Grey United Milan
    In: Italy
  • Callaway Golf: Scarface Callaway Golf: Scarface
    TV & Cinema
    Advertiser: Callaway Golf Company
    Brand: Callaway Golf
    By: VICE MEDIA Brooklyn
    In: United Kingdom
  • Callaway Golf: Arian Foster Callaway Golf: Arian Foster
    TV & Cinema
    Advertiser: Callaway Golf Company
    Brand: Callaway Golf
    By: VICE MEDIA Brooklyn
    In: United Kingdom
  • The Danish Rheumatism Association: Keep an eye out for invisible pains The Danish Rheumatism Association: Keep an eye out for invisible pains
    TV & Cinema
    Brand: The Danish Rheumatism Association
    By: Primetime
    In: Denmark
  • Absolut: Rita Ora Absolut: Rita Ora
    TV & Cinema
    Advertiser: Pernod Ricard
    Brand: Absolut
    By: Decon
    In: United States
  • Amazon.com: Amazon [teaser] Amazon.com: Amazon [teaser]
    TV & Cinema
    Advertiser: Amazon.com, Inc.
    Brand: Amazon.com
    By: Barkley
    In: United States
  • Bmo Harris Bank: Fear the Deer Bmo Harris Bank: Fear the Deer
    TV & Cinema
    Advertiser: BMO Financial Group
    Brand: Bmo Harris Bank
    By: FCB Toronto
    In: Canada
  • Amazon.com: Wind chime Amazon.com: Wind chime
    TV & Cinema
    Advertiser: Amazon.com, Inc.
    Brand: Amazon.com
    By: Barkley
    In: United States
  • Amazon.com: Horse Backpack Amazon.com: Horse Backpack
    TV & Cinema
    Advertiser: Amazon.com, Inc.
    Brand: Amazon.com
    By: Barkley
    In: United States
  • BWS: Here's To You BWS: Here's To You
    TV & Cinema
    Brand: BWS
    By: M&C Saatchi Sydney
    In: Australia
  • Callaway Golf: Arian Foster Vs. Scarface Callaway Golf: Arian Foster Vs. Scarface
    TV & Cinema
    Advertiser: Callaway Golf Company
    Brand: Callaway Golf
    By: VICE MEDIA Brooklyn
    In: United Kingdom
  • Philips: Mother’s Day Philips: Mother’s Day
    TV & Cinema
    Advertiser: Koninklijke Philips Electronics N.V.
    Brand: Philips
    By: Wunderman Buenos Aires
    In: Argentina
  • Amazon.com: Train conductor Amazon.com: Train conductor
    TV & Cinema
    Advertiser: Amazon.com, Inc.
    Brand: Amazon.com
    By: Barkley
    In: United States
  • Bmo Harris Bank: Field Trip Bmo Harris Bank: Field Trip
    TV & Cinema
    Advertiser: BMO Financial Group
    Brand: Bmo Harris Bank
    By: FCB Toronto
    In: Canada
  • Lidl: Our Saint-Emilion Grand Cru wine Lidl: Our Saint-Emilion Grand Cru wine
    TV & Cinema
    Advertiser: Lidl Stiftung & Co. KG
    Brand: Lidl
    By: TBWA\ London
    In: United Kingdom
  • Bmo Harris Bank: Car Troubles Bmo Harris Bank: Car Troubles
    TV & Cinema
    Advertiser: BMO Financial Group
    Brand: Bmo Harris Bank
    By: FCB Toronto
    In: Canada
  • Volkswagen: Rain Volkswagen: Rain
    TV & Cinema
    Advertiser: Volkswagen Group
    Brand: Volkswagen
    By: Deutsch Los Angeles
    In: United States
  • Animals Matter To Me (AMTM): #TurnOnTheWoofer Animals Matter To Me (AMTM): #TurnOnTheWoofer
    TV & Cinema, Design & Branding
    Brand: Animals Matter To Me (AMTM)
    By: Tonic Worldwide Mumbai
    In: India
  • TMX Group: The Future is Yours to See TMX Group: The Future is Yours to See
    TV & Cinema
    Brand: TMX Group
    By: The Garden
    In: United States
  • Adidas: EQT line - Jay Daniel Adidas: EQT line - Jay Daniel
    TV & Cinema
    Advertiser: Adidas AG
    Brand: Adidas
    Product: Adidas Originals
    By: Johannes Leonardo
    In: United States
  • Adidas: EQT line - Danny Brown Adidas: EQT line - Danny Brown
    TV & Cinema
    Advertiser: Adidas AG
    Brand: Adidas
    Product: Adidas Originals
    By: Johannes Leonardo
    In: United States
  • Adidas: EQT line - Angel Haze Adidas: EQT line - Angel Haze
    TV & Cinema
    Advertiser: Adidas AG
    Brand: Adidas
    Product: Adidas Originals
    By: Johannes Leonardo
    In: United States
  • Adidas: EQT line [Full Film] Adidas: EQT line [Full Film]
    TV & Cinema
    Advertiser: Adidas AG
    Brand: Adidas
    Product: Adidas Originals
    By: Johannes Leonardo
    In: United States
  • Adidas: EQT line - Tiff Massey Adidas: EQT line - Tiff Massey
    TV & Cinema
    Advertiser: Adidas AG
    Brand: Adidas
    Product: Adidas Originals
    By: Johannes Leonardo
    In: United States
  • Chanel: Code Coco Chanel: Code Coco
    TV & Cinema
    Advertiser: Chanel S.A.
    Brand: Chanel
    By: Cube Collective
    In: United Kingdom
  • Neko Jusu: Because Neko Jusu Neko Jusu: Because Neko Jusu
    TV & Cinema
    Brand: Neko Jusu
    By: Khanna Reidinga
    In: Netherlands
  • 3M: Keep It Flowing 3M: Keep It Flowing
    TV & Cinema
    Advertiser: 3M Company
    Brand: 3M
    Product: 3M Science. Applied to Life.
    By: Bam
    In: Canada
  • OK Tire: More Than Tires OK Tire: More Than Tires
    TV & Cinema
    Brand: OK Tire
    By: Partners Film Company
    In: Canada
  • Carlton: The 46ers Carlton: The 46ers
    TV & Cinema
    Advertiser: Carlton & United Breweries
    Brand: Carlton
    By: Clemenger BBDO Melbourne
    In: Australia




loading pin closeup