From 0c9bb21c94189fed11a45dc91716dddb6aa62da1 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 14 Sep 2014 20:44:42 +0100 Subject: [PATCH] Script to mount music on external USB stick --- beaglebone.txt | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/beaglebone.txt b/beaglebone.txt index de590cd0..bc87b88c 100644 --- a/beaglebone.txt +++ b/beaglebone.txt @@ -7182,11 +7182,28 @@ The easiest way to add your music is to obtain a large capacity USB stick, copy So with the USB stick plugged in and logged into the BBB as root via ssh: #+BEGIN_SRC: bash -mount /dev/sda1 /var/music -chown -R subsonic:subsonic /var/music +editor /usr/bin/attach-music #+END_SRC +Add the following: + +#+BEGIN_SRC: bash +#!/bin/bash +mount /dev/sda1 /var/music +chown -R root:root /var/music +chown -R subsonic:subsonic /var/music/* +#+END_SRC + +Save and exit + +#+BEGIN_SRC: bash +chmod +x /usr/bin/attach-music +#+END_SRC + +Then just typing "attach-music" on the command line will mount the USB drive. + Then within a browser go to your Subsonic domain name, log in as the administrator, select *settings*, then *Media folders* then *Scan media folders now*. Depending upon how much music you have this could take a while, so don't be too impatient. WHen It's complete you can log out and log back in as a user. + *** Android App Within [[https://f-droid.org/][F-Droid]] search for *Dsub* and install it.