Morrigan server quick start guide

From Vague Hope Wiki
Revision as of 10:27, 1 January 2012 by Haku (Talk | contribs) (Create DB)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Install

  • Uncompress the download in a directory of your choice, such as ~/opt/.
$ cd ~/opt/
$ unzip morrigan-server-a7-20110115_0037-linux.gtk.x86.zip

Start

  • Start screen.
  • cd into install directory (this bit is important - will fix this defect at some point).
  • Execute 'morriganserver'.
  • The HTTP interface will listen on port 8080 (at the moment this is not configurable).
$ screen
$ cd ~/opt/morrigan-server
$ ./morriganserver

Create DB

Create the first database and add a directory to it. Multiple directories can be added. The request a scan to update that library.

osgi> mn media create mymusic
osgi> mn media add /home/me/media/music mymusic
osgi> mn media scan mymusic

Play

Use the Android client. Or alternatively:

osgi> mn play mymusic

For more commands:

osgi> help

Pulse Audio without X11 on Ubuntu

Change the way Pulse Audio starts.

sudo vi /etc/default/pulseaudio

Add user to access group:

sudo usermod -a -G pulse-access haku

Remember: log out and in again.

Also useful to know: Pulse logs to '/var/log/syslog'.

Pulse can be tested with:

gst-launch filesrc location="/home/haku/file.mp3" ! decodebin ! pulsesink