Skip to content

Commit

Permalink
Doc
Browse files Browse the repository at this point in the history
  • Loading branch information
theo-chassaigne committed Sep 16, 2016
1 parent 92d9aa8 commit 83f904d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
9 changes: 8 additions & 1 deletion doc/4-SETUP.rst
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,14 @@ The following options are available :
Run
---

To start the server, just run ``./be-server``, or ``sudo systemctl start be-server.service`` if the server has been daemonized_.
To test the server, the location of KArchive binary is required to run the program correctly::
$ export LD_LIBRARY_PATH=:/usr/local/lib/arm-linux-gnueabihf/
$ ./be-server

Or, if the server has been daemonized_ (you can't give arguments to the command in that case)::
$ sudo systemctl start be-server.service

The following options are available :

Expand Down
1 change: 0 additions & 1 deletion share/99-usbMusique.rules

This file was deleted.

11 changes: 8 additions & 3 deletions share/musique.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
#!/bin/bash

######
# Chercher tous les fichiers .song sur la clef USB
# Les copiers dans /home/ubuntu/songs
# Copy the $extension files from the root folder (/)
# of a USB key to the $destination folder
#
# $1 : USB key's kernel name
######

extension="song"
destination="/home/pi/songs"

#export DISPLAY=":0"
#notify-send "Copying new songs... Please wait."

gpio mode 5 out
gpio write 5 1

cp -n /media/song_usb/*.song /home/ubuntu/songs
cp -n /dev/$1/*.$extension $destination
sync
umount /media/song_usb

Expand Down

0 comments on commit 83f904d

Please sign in to comment.