On a local (raspberry 3-4) or remote (ubuntu LTS) server perform the following installation steps
sudo apt-get update
# Python
sudo apt-get install python3 python3-pip git syslog
sudo python3 -m pip install --upgrade pip
Clone o2m master repository from its source and go in it
git clone [[email protected]](<mailto:[email protected]>):object2music/o2m
cd o2m
To be noted that several ports/access will have to be opened on the server :
# Mopidy
wget -q -O - <https://apt.mopidy.com/mopidy.gpg> | sudo apt-key add -
sudo wget -q -O /etc/apt/sources.list.d/mopidy.list <https://apt.mopidy.com/buster.list>
sudo apt update
sudo apt-get install mopidy
#python-spotify libspotify-dev
s
#Mopidy spotify extension
#sudo python3 -m pip install <https://github.com/mopidy/mopidy-spotify/archive/master.zip>
# Mopidy running as a service
sudo systemctl enable mopidy
sudo adduser mopidy video
echo "mopidy ALL=NOPASSWD: /usr/local/lib/python3.9/dist-packages/mopidy_iris/system.sh" | sudo tee -a /etc/sudoers
# Finalise modpidy configuration
sudo cp samples/mopidy.conf /etc/mopidy/mopidy.conf
sudo chmod 777 /etc/mopidy/mopidy.conf
sudo vi /etc/mopidy/mopidy.conf #and configure as needed
sudo mopidyctl local scan #if needed
If concerns or evolution with standards mopidy installation just follow the updated installation process from official website https://docs.mopidy.com/en/latest/installation/index.html
Concerning configuration file mopidy.conf, you have to fill the following parts (a premium spotify account is needed) :