I’ve previously made mention of my addiction to Google Play Music… but I was called out recently, and asked about the script I used at the time. I’m sorry to say that I have had some issues with it, and instead, have resorted to using X forwarding. Here’s how I do it.
I create a user account for that other person (note, GMM will only let you upload to 3 accounts using this method. For any more, you’ll need a virtual machine!).
I then create an SSH public/private key with no passphrase.
ssh-keygen -b 2048 -N “” -C “$(whoami)@localhost” -f ~/.ssh/gmm.id_rsa
I write the public key into that new user’s .ssh/authorized_keys, by running:
ssh-copy-id -i ~/.ssh/gmm.id_rsa bloggsf@localhost
I will be prompted for the password of that account.
Finally, I create this script:
This is then added to the startup tasks of my headless-but-running-a-desktop machine.