Skip to content

Sychnronising Phonieboxes in a local network

Alvin Schiller edited this page Dec 24, 2023 · 5 revisions

Introduction

Splitti wrote a (german) blog post about synchronising Phonieboxes in a local network. You can find the blog post here.

This feature is integrated since version 2.5 via PR https://github.com/MiczFlor/RPi-Jukebox-RFID/pull/1978. It was inspired by Splitti's post and also is this manual, although the implementation is a little different (e.g. no synchronisation of the 'playlists' folder)

To synchronise one to many Phonieboxes from a host in the local network (like a NAS, Main Phoniebox, etc) the component "synchronisation/sync-shared" can be used. Please check sync-shared README for installation and configuration.

Accessing the host from the Phoniebox

Mounted Share

Add a mounted folder to access files on the host.

Replace SHARENAME, IP_OR_FQDN_OF_HOST, FILESYSTEM_PATH_ON_HOST, USER and PASSWORD

sudo mkdir /mnt/<SHARENAME>
sudo nano /etc/fstab
//<IP_OR_FQDN_OF_HOST>/<FILESYSTEM_PATH_ON_HOST> /mnt/<SHARENAME> cifs username=<USER>,password=<PASSWORD>,iocharset=utf8,uid=pi,gid=pi,file_mode=0770,dir_mode=0770,vers=3.1.1,nofail,noauto,x-systemd.automount

Make sure the files on the host are accessable for USER!

SSH (key-based authentication)

Create a ssh keypair (confirm prompts if not other settings wanted)

ssh-keygen -t rsa

Copy the file '~/.ssh/id_rsa.pub' to the host and connect to it via ssh as USER. Navigate to the file location and add the key

cat id_rsa.pub >>~/.ssh/authorized_keys
chmod 0600 ~/.ssh/authorized_keys

Now try to connect from the Phoniebox to the host as USER without password (:PORT only needed if not 22)

ssh <USER>@<IP_OR_FQDN>:<PORT>

Make sure the files on the host are accessable for USER!

Home

πŸ”₯ Version 3

Version 3 Pages

Nothing yet

🎢 Version 2

Version 2 Pages

Installation

Specials

RFID Reader

Sound card configurations

Hardware Buttons

Displays (LED, LCD, Matrix, etc.)

Hacks

Bluetooth

AirPlay

MPD tricks

For Developers

Clone this wiki locally