Most recent edit on 2007-01-20 01:40:30 by HarryBo
Additions:
How to Configure your MasterLibrary for Rsync
Deletions:
How to Configure your MasterLibrary for Rsync
Oldest known version of this page was edited on 2007-01-19 10:24:45 by HarryBo []
Page view:
How to Configure your MasterLibrary for Rsync
To use
SlimCar with your
MasterLibrary, you must first configure the
Rsync daemon (server) on it. This is a simple process and shouldn't take more than a few minutes with many Linux distributions.
Most modern UNIX-derived operating systems include the Rsync client as standard, and some include the server part of it as well. If this is not available, you'll need to install the Rsyncd package using your package manager. Please consult the documentation for your specific operating system/distribution for details on how to do this.
Installing from source
If your OS lacks a package manager or you'd prefer to do it yourself, you can install Rsync from source. You can download the source from here:
http://rsync.samba.org/download.html∞
Please read the included README and INSTALL files but on most systems, the installation instructions are as simple as:
wget http://rsync.samba.org/ftp/rsync/rsync-2.6.8.tar.gz
tar -xf rsync-2.6.8.tar.gz
cd rsync-2.6.8
./configure
make
make install
... obviously replacing "2.6.8" with whatever the current version of Rsync is.
Editing rsyncd.conf
When you have the Rsync daemon installed and operating correctly, you'll need to edit it's configuration file to make your music and playlists available to
SlimCar. Make sure your files are in the appropriate places first (see
PathConfig). The section you'll need to add is something like:
[music]
uid = nobody
gid = nobody
comment = Music
path = /mnt/music
read only = yes
list = yes
dont compress = *.mp3 *.flac *.wma
[playlists]
uid = nobody
gid = nobody
comment = Playlists
path = /mnt/playlists
read only = yes
list = yes
The
uid and
gid lines make sure that the Rsync daemon is operating with limited privileges on these files (although both locations are
read only, in any case). The
comment can be whatever you like. The
paths can point to the "real" paths if
/mnt/music and/or
/mnt/playlists are symlinks on your particular system. The
dont compress line instructs Rsync not to waste time compressing files that are already compressed. You can change or remove this line if you'd prefer. The
list line is useful for testing, it lets you list the contents of these directories via Rsync.
Restart rsyncd & Testing
Now you've edited your configuration file, you need to restart the Rsync daemon. The procedure varies from system to system but on Gentoo, you do (as root):
/etc/init.d/rsyncd restart
Consult your distribution's documentation for the particular command to use, or the Rsync documentation if you need to create a custom script or start the daemon manually.
You can then test that it's working correctly by issuing the following Rsync commands:
rsync rsync://localhost/music
rsync rsync://localhost/playlists
In both cases, you should see the directory listings for these files. One common problem here is that you're using some access control (via IP addresses) and "localhost" is not allowed. In this case, try using the IP address of the machine (ie: 192.168.0.5) instead.
CategoryProject