-
Notifications
You must be signed in to change notification settings - Fork 13
Installation
This page is intended to help you get started using Partify. If you have any problems or questions, please don't hesitate to email me at fred.hatfull@gmail.com or to join #partify on irc.freenode.net. Maybe sometime I will get a mailing list set up...
Installation of Partify and Mopidy is relatively easy, and I have automated the process via a shell script. This script is currently targeted toward Ubuntu systems and is only tested against Ubuntu 11.04 (but should work in theory with any recent Ubuntu version). For installation on other operating systems, see The Hard(er) Way.
To install Partify on Ubuntu, simply run the following command from a terminal:
wget http://partify.us/static/scripts/install_ubuntu.sh ; chmod +x ./install_ubuntu.sh ; sudo ./install_ubuntu.sh
The script will download and install Mopidy, the music player that does the heavy lifting of streaming music from Spotify; download and install the tools needed to install Partify; prompt you for your Spotify Premium account details; set up Mopidy and Partify to run when Ubuntu starts up; and starts Mopidy and Partify.
After you have run the installation script you should proceed to the Configuration page.
For technical individuals, a few notes about this script:
-
Much to your anticipated chagrin, the Spotify username and password provided by this script are eventually stored in plaintext. This is a limitation of Mopidy, as it needs to read the username and password out of an internal configuration file that this script sets up for you. A fortunate mitigation of this issue is that the authentication credentials are stored in /root, a directory that is by default read-protected from users that are not root and don't have sudo. While this is no substitute for a properly protected password, I cannot work around this limitation right now. In the near future this will probably be fixed by the Mopidy maintainers.
-
This script sets up Mopidy and Partify to be running as root. This is not ideal but was the fastest way to get an easy distribution solution working, and is a tradeoff that was made under the assumption that the vast majority of installations would be on local networks. That said, Partify is not hardened in terms of security and by default serves from the built-in server included with Flask. If your system is public-facing, make sure to disallow non-local connections on the port Partify is running on (by default 5000) and set up the server to use the Tornado server (see Configuration). If you choose to allow connections from non-local hosts to Partify, do so at your own risk!
-
Along the same lines, Partify installs all of its dependencies as system packages, not in a virtualenv. This is done to simplify installation. This is frowned upon by many Pythonistas, but if you are one of those people then you probably won't obejct to doing things the hard way any way.
- Do this too.