Difference between revisions of "Morrigan server quick start guide"

From Vague Hope Wiki
Jump to: navigation, search
(Pulse Audio without X11 on Ubuntu)
(Create DB)
 
Line 23: Line 23:
 
== Create DB ==
 
== 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.  At the moment this scan echos a ridiculous amount of stuff to the console - this will be fixed at some point.
+
Create the first database and add a directory to it.  Multiple directories can be added.  The request a scan to update that library.
  
 
<pre>
 
<pre>

Latest revision as of 10:27, 1 January 2012

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