Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Google Music on VortexBox

  1. #1
    Senior Member divreg's Avatar
    Join Date
    May 2011
    Location
    Washington
    Posts
    407

    Google Music on VortexBox

    This guide has been moved to the VortexBox wiki. See

    1. How to enable X11 Forwarding on your VortexBox
    2. How to install and use Google Play Music Manager

    I have had success using google music to upload all of my songs to my google account. The service is free, and you can integrate purchased music from the android app store with your home collection, and keep up to 20,000 songs their. The service uploads your FLAC files and converts them on the fly to high bit rate mp3's.

    Once your songs are uploaded, you can listen to them from anywhere on your android device or web browser.

    The program you need to use to do this is called "google-musicmanager". It's a GUI program, so you need to install some tools on your VortexBox to get everything to work. You don't need a full desktop on your vortexbox to complete this.

    Basically, I followed this post: running google music beta headless linux, and had to learn about x11-forwarding: Gentoo Wiki: X-Forwarding

    DISCLAIMER: I have not tried this from either a Windows or Mac client, so if somebody wants to try this on those clients and has anything else to add, feel free to comment or edit the wiki. There also may be additional libraries to install that I could have missed. If so, comment.
    Last edited by divreg; 05-09-2012 at 03:56 PM. Reason: Moved details to wiki.

  2. #2
    Senior Member waltonb's Avatar
    Join Date
    Sep 2011
    Posts
    150

    Google Music on VortexBox

    Nice! Thanks for posting this. I use X11 all the time to manage stuff on my headless vortex box from my linux laptop. (dvdae-gui for ripping dvd audio, easytag mp3/flac tagger, linux handbrake, etc.etc.)

    For either MacOS or Windows, you'll need to run an X11 server on your laptop. It comes with MacOS X (I think it's an optional install tho). For windows you can get a free X11 server (and plenty of other unix tools) from cygwin.org.

    I haven't checked out googlemusic yet, thanks for the pointer.

    -bruce.

  3. #3
    Junior Member
    Join Date
    Jan 2012
    Posts
    4

    Google Music on VortexBox

    Sounds great (although well out of my depth!)

    When Google Music finally makes it to the UK I may well call on your expert knowledge

  4. #4
    Thanks for the wiki on how to install google music. Being a linux newbie, I'm have some issues getting it to run as a daemon process. Has anyone written a script yet for this?

    Thanks again for your help.

  5. #5
    Senior Member divreg's Avatar
    Join Date
    May 2011
    Location
    Washington
    Posts
    407
    I have it running as a daemon right now! In the first link I provided, that guy made a small script to run google-music manager as a daemon process.

    1. Choose a directory to put your script. E.g.:

    Code:
    mkdir +p /opt/google
    2. Create and edit a bash file and implement the daemon. One method:

    Code:
    cd /opt/google
    nano googlemusicmanager.sh
    and enter

    Code:
    #!/bin/bash
    export DISPLAY=:2
    Xvfb :2 -screen 0 1024x768x16 &
    google-musicmanager -p mypassword &
    x11vnc -display :2 -bg -nopw -listen localhost -xkb
    where "mypassword" is either a) your google password or b) if you have 2-step verification, an application specific password (a 16-letter randomly generated string specific to your app).

    3. Write it CTRL+o, and exit CTRL+x.

    4. Next, make the script executable

    Code:
    chmod +x googlemusicmanager.sh
    5. Run it:

    Code:
    ./googlemusicmanager.sh
    If you ssh'd in with the "-X" option, the GUI will show up on your client. This isn't what you want for a daemon. But if you ssh as you normally would (ssh google@192.168.1.105, in my case), the daemon will run in the background.

    I hope this works for you!

    Nobody has given feedback about getting everything up and running from the wiki/original post, did that also work for you?

    Edit: This post has been edited to reflect using nano instead of vim so as to comply with standard VortexBox instructions.
    Last edited by divreg; 01-31-2012 at 10:53 PM. Reason: for Ron's editor suggestions

  6. #6
    Administrator Ron Olsen's Avatar
    Join Date
    Dec 2009
    Location
    Boulder CO USA
    Posts
    4,963
    Thanks for this info and for the wiki page. One suggestion: edit the above post and the wiki article to use nano as the text editor instead of vi. nano is a modeless editor, and is much easier to use for those unfamiliar with vi, which has a command mode and an insert mode.

    Your instructions for vi are not entirely correct; you first have to get into insert mode by typing "i" before entering text.

  7. #7
    Aha! I've been sshing in with the -X option. That is my problem. When I was executing the ./googlemusic.sh (that is what I named my daemon) I kept getting a fatal server error. Your setup worked great for me. Thanks again so much for your help and the wiki!

  8. #8
    Senior Member Macross's Avatar
    Join Date
    Nov 2011
    Location
    Lake Forest, CA
    Posts
    668
    Now all I want is a google music plugin for LMS. :P

  9. #9
    Senior Member divreg's Avatar
    Join Date
    May 2011
    Location
    Washington
    Posts
    407
    Glad it worked for you happygirl! It's nice being on campus and having all my VB music on my G-nexus at my finger tips with lightning fast delivery.

  10. #10
    I've *almost* got this working 100%. If I do ssh -X google@vortexbox then I get the GUI from Google Music Manager and everything uploads just fine. If I log out of that ssh session, it stops. If I run the executable daemon script, I see MusicManager running in 'top', but it doesn't look like anything is uploading. As soon as I go back to ssh -X google@vortexbox and run google-musicmanager, it instantly starts uploading again.

    The script is exactly what you have above and the password is correct. Any idea what I might have done wrong?

Similar Threads

  1. Replies: 26
    Last Post: 10-01-2011, 05:54 AM
  2. Exporting music from VortexBox device
    By mass_biker in forum Help
    Replies: 0
    Last Post: 11-23-2010, 05:37 AM
  3. Vortexbox and classical music.
    By deco-doctor in forum General
    Replies: 2
    Last Post: 09-11-2010, 11:06 AM
  4. Vortexbox Music Player
    By andyd37 in forum Help
    Replies: 0
    Last Post: 01-10-2010, 03:13 AM
  5. Importing music library to VortexBox
    By jlm699 in forum General
    Replies: 3
    Last Post: 01-05-2009, 06:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •