Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add install instructions. #222

Closed
simolev opened this issue Jan 4, 2019 · 2 comments
Closed

Add install instructions. #222

simolev opened this issue Jan 4, 2019 · 2 comments

Comments

@simolev
Copy link

simolev commented Jan 4, 2019

Please add some simple install instructions so beginners are not put off because they don't know what to do. On Ubuntu I had to:

  • Download the .deb file corresponding to the Ubuntu version (Artful, Bionic, Cosmic, ...) from the releases page.
  • run sudo dpkg -i <file.deb> to install musikcube.
  • run sudo apt-get -f install to install all needed dependencies.
  • run /usr/bin/musikcubed to start the server daemon.
  • run /usr/bin/musikcube to start the program interactively.
  • select the directory containing the music files and press <spacebar>.

To create a service:
sudo touch /etc/systemd/system/musikcube.service
sudo systemctl edit --full musikcube.service

Service definition (replace <user> with your username):

[Install]
WantedBy=network-online.target

[Unit]
Description=MusikCube Audio Streaming Server
Before=multi-user.target
Before=graphical.target
Before=shutdown.target
After=local-fs.target
After=remote-fs.target
After=network-online.target
After=nss-lookup.target
Wants=network-online.target
Conflicts=shutdown.target

[Service]
Type=forking
User=<user>
ExecStart=/usr/bin/musikcubed --start
ExecStop=/usr/bin/musikcubed --stop

Auto start the service on system startup:
systemctl enable musikcube

@clangen
Copy link
Owner

clangen commented Jan 10, 2019

This is great! Thank you for taking the time to show ho to make a systemd service definition. I'll make sure to add these instructions before the next release, which will probably drop within the next couple weeks!

@clangen
Copy link
Owner

clangen commented Jan 13, 2019

First crack at the installation guide: https://github.com/clangen/musikcube/wiki/installing

@clangen clangen closed this as completed Jan 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants