Access Campcaster Library via any Audio Player over SSH
  • Vote Up0Vote Down Micz FlorMicz Flor
    Posts: 184Administrator
    Hi, I started a Howto and would appreciate input. All the best, micz

    This document explains how you can access the audio files from the Campcaster Media Library via any audio player. You can use any player for this, the files will be sorted based only on the metadata in the files. Important: do not let the player re-arrange the media library. This Howto was tested on Ubuntu 9.10.

    Relevant pages:

    Preparing the media server
    Make sure open-ssh and ssh is installed on the server with the media library.
    sudo apt-get install openssh-client
    sudo apt-get install openssh-server

    Preparing your studio machine
    Your studio machine needs to be connected to the media library. To connect to the media library over ssh, make sure that SSHFS is installed.
    sudo apt-get install sshfs

    Add yourself to the fuse group. $USER here is the user logged into the studio machine:
    sudo gpasswd -a $USER fuse
    $ password for $USER:
    $ Adding user $USER to group fuse

    Now prepare a folder in the home directory. This will be the folder in which the media library will then be hosted.
    mkdir ~/radio_library

    Now you need to run the SSHFS command to mount the remote directory. Now $USER refers to an account on the media library which has at least read access to the files in the library. is the IP address of your media library server. The local mount point is ~/radio_library
    IMPORTANT: in order to avoid accidental changes to the media library from the studio machine, use sshfs with a user who has no write access to folders and files.
    sshfs -o idmap=user $ ~/radio_library

    To unmount this connection, type:
    fusermount -u ~/radio_library

    If the folder is in use by the player, the unmount should be unsuccessful and return a message like this:
    $ fusermount -u ~/radio_library
    umount: /home/micz/radio_library: device is busy.
            (In some cases useful info about processes that use
             the device is found by lsof(8) or fuser(1))

    ... but don't count on it

    Now all you need to do is add this folder to your player (Rhythmbox, Amarok, etc.) and make sure that the player does NOT change file names and folder structures.