



Wrapping upīefore going to bed, remember to ensure that the computer and speakers are powered on. For playlist support, currently you will need to downgrade to Spotify v0.9 unless Spotify improve their D-Bus support in the near future. Spotify v1 no longer supports playing playlists/albums via D-Bus, but we have worked around the album issue by providing the URI of a (random) track within a desired album to the Spotify Rise plugin, which enables us to play all songs from an album. Unfortunately, Spotify’s implementation of D-Bus is incomplete and can be buggy, as discussed above. let the Spotify alarm automatically timeout after 15 minutes (i.e.click the Stop button directly in the GUI of the alarm app on the computer.download the Spotify app on your smart phone, connect to your home WiFi, and hit the pause button in the app.When the alarm activates in the morning and starts playing your playlist, there are a number of ways to stop the alarm: Play an album in shuffle mode, assuming you do not keep Spotify in shuffle mode: spotify-rise -ts spotify:track:0I2kwvXCLolYQ4nZQcF6EQ Play an album in shuffle mode, assuming you keep Spotify in shuffle mode: spotify-rise -s spotify:track:0I2kwvXCLolYQ4nZQcF6EQ Play an album/track, starting with specified track URI: spotify-rise spotify:track:0I2kwvXCLolYQ4nZQcF6EQ Sudo install spotify-rise /usr/local/bin/spotify-rise Great! Now to focus on setting up the alarm! Install the alarm scheduler and dependencies: sudo apt-get install alarm-clock-applet wmctrl xautomationĪnd install the Spotify Rise plugin that integrates Spotify with the alarm scheduler: cd ~/Downloads/ If your speakers are connected via a USB soundcard, you may need to configure this according to the Ubuntu USB audio guide. Start the Spotify app, login or create a Spotify account, test that the audio output is working correctly, and then close it. Install Spotify: sudo apt-get install spotify-client Update the list of available packages: sudo apt-get update Let’s go ahead and install Spotify for Linux…Īdd the Spotify repository signing key to be able to verify the download: sudo apt-key adv -keyserver hkp://:80 -recv-keys BBEBDCB318AD50EC6865090613B00F1FD2C19886Īdd the Spotify repository: echo deb stable non-free | sudo tee /etc/apt//spotify.list Note that you will need to leave your computer on overnight so that the alarm can activate. To get started, you will need a Ubuntu Linux computer (with the common amd64 64-bit or i386 32-bit architecture), some speakers (laptop speakers will do), and a Spotify Free or Premium account. Hate your boring alarm clock? Here’s how to wake up to your favourite Spotify songs using your Ubuntu Linux laptop, desktop, or home theatre PC.
