Running pymediaserver can be done in one of several modes:
- Loading new MP3 content by specifying a directory path
- Loading MP3 content from an Amarok database
- Loading previously saved MP3 content with no command-line arguments
- Graphical mode (which can be used in conjunction with the two above)
for editing playlists
Command Line Only Mode
Specifying a Media Directory
will scan the directory /path/to/mp3s looking for MP3s and directories
containing MP3s to present to the MP101.
Using the Amarok Database
will attempt to connect to a MySQL database of 'dbname' with the userid
and password given and read it as an Amarok database of media content.
Obviously, the MySQL server must be configured and running properly,
the database must exist, and the userid/password combination must allow
access to the database.
For the security sensitive, the commandline options are displayed in a
process listing or /proc directory, keep that in mind if you are
concerned about using a sensitive password.
can be used to load an Amarok sqlite-based database.
Reload Existing Saved Content
With no arguments,
will load a previously saved content set. If there was no previously saved
content the server will exit.
Specifying --graphical=1 with any of the above options
(but only one) will bring up the graphical playlist editor.
--network-interface - If the system happens to be using a network interface
other than eth0, specify it here. Currently I don't
know of an elegant way to obtain the IP address of
the machine that is portable.
For example, if your machine is connected via a
wireless LAN you might use:
--log-level - For those curious to see what PyMediaServer is doing,
setting to the DEBUG level will print out the XML
UPnP messages exchanged between the MP101 and the server
--log-file - Sends log messages to the filename given, logging defaults
to standard output
--help - Prints out a help message