|
131 | 131 | <li class="toctree-l2"><a class="reference internal" href="#how-to-adjust-the-phpini-file">How to adjust the php.ini file?</a> |
132 | 132 | </li> |
133 | 133 | <li class="toctree-l2"><a class="reference internal" href="#automatic-picture-syncing-to-usb-stick">Automatic picture syncing to USB stick</a> |
| 134 | + <ul> |
| 135 | + <li class="toctree-l3"><a class="reference internal" href="#operating-system-setup-linux">Operating system setup (Linux)</a> |
| 136 | + </li> |
| 137 | + <li class="toctree-l3"><a class="reference internal" href="#admin-configuration">Admin configuration</a> |
| 138 | + </li> |
| 139 | + <li class="toctree-l3"><a class="reference internal" href="#remote-buzzer-move-to-usb">Remote buzzer "Move to USB"</a> |
| 140 | + </li> |
| 141 | + <li class="toctree-l3"><a class="reference internal" href="#debugging">Debugging</a> |
| 142 | + </li> |
| 143 | + </ul> |
134 | 144 | </li> |
135 | 145 | <li class="toctree-l2"><a class="reference internal" href="#raspberry-touchpanel-dsi-simultaneously-with-hdmi">Raspberry Touchpanel DSI simultaneously with HDMI</a> |
136 | 146 | </li> |
@@ -451,20 +461,26 @@ <h2 id="how-to-adjust-the-phpini-file">How to adjust the <code>php.ini</code> fi |
451 | 461 | <p>Take a look for "Loaded Configuration File" to get the path of your php.ini, you need <em>sudo</em> rights to edit the file.</p> |
452 | 462 | <hr /> |
453 | 463 | <h2 id="automatic-picture-syncing-to-usb-stick">Automatic picture syncing to USB stick</h2> |
454 | | -<p>This feature will automatically and in regular intervals copy (sync) new pictures to a plugged-in USB stick</p> |
455 | | -<p>Use the <a href="https://photoboothproject.github.io/install/setup_wizard">Photobooth Setup Wizard</a> to get the operating system setup in place.</p> |
| 464 | +<p>This feature copies (syncs) new pictures to a plugged-in USB stick on a schedule using <code>rsync</code> on Linux.</p> |
| 465 | +<h3 id="operating-system-setup-linux">Operating system setup (Linux)</h3> |
| 466 | +<p>The web server user (<code>www-data</code>) must be allowed to mount and unmount the stick. Options:</p> |
456 | 467 | <ul> |
457 | | -<li> |
458 | | -<ol> |
459 | | -<li>Permissions -> USB Sync policy</li> |
460 | | -</ol> |
461 | | -</li> |
| 468 | +<li><a href="https://photoboothproject.github.io/install/setup_wizard">Photobooth Setup Wizard</a> -> <strong>Permissions</strong> -> <strong>USB Sync policy</strong> installs Polkit rules for <code>udisksctl</code> and passwordless sudo for <code>mount</code> / <code>umount</code> (and <code>mkdir</code> under <code>/media</code>) via <code>/etc/sudoers.d/021_www-data-usb-sync</code>. Polkit and sudoers are applied as independently as possible: if one step fails, the other may still succeed. The same menu entry applies during a fresh install (general permissions) and can be run again after system updates to re-apply the rules.</li> |
| 469 | +</ul> |
| 470 | +<p>Prefer a <strong>FAT32 or exFAT</strong> volume whose <strong>volume label</strong> matches the identifier you set in the admin panel.</p> |
| 471 | +<h3 id="admin-configuration">Admin configuration</h3> |
| 472 | +<p>Enable sync, interval, and target in the admin panel (Synctodrive / USB sync settings).</p> |
| 473 | +<p>A USB drive can be matched by:</p> |
| 474 | +<ul> |
| 475 | +<li>Volume label (e.g. <code>photobooth</code>) -- best for one dedicated stick</li> |
| 476 | +<li>Block device (e.g. <code>/dev/sda1</code>)</li> |
| 477 | +<li>Short subsystem name (e.g. <code>sda</code>)</li> |
462 | 478 | </ul> |
463 | | -<p>The target USB device is selected through the admin panel.</p> |
464 | | -<p>A USB drive / stick can be identified either by the USB stick label (e.g. <code>photobooth</code>), the operating system specific USB device name (e.g. <code>/dev/sda1</code>) or the USB device system subsystem name (e.g. <code>sda</code>). The preferred method would be the USB stick label (for use of a single USB stick) or the very specific USB device name, for different USB stick use. The default config will look for a drive with the label photobooth. The script only supports one single USB stick connected at a time</p> |
465 | | -<p>Pictures will be synced to the USB stick matched by the pattern, as long as it is mounted (aka USB stick is plugged in)</p> |
466 | | -<p>Debugging: Check the server logs for errors at the Debug panel: <a href="http://localhost/admin/debugpanel">http://localhost/admin/debugpanel</a> ( |
467 | | -or <a href="http://localhost/photobooth/admin/debugpanel">http://localhost/photobooth/admin/debugpanel</a>).</p> |
| 479 | +<p>Use only <strong>one</strong> connected USB stick at a time. Sync runs while the matching volume is mounted.</p> |
| 480 | +<h3 id="remote-buzzer-move-to-usb">Remote buzzer "Move to USB"</h3> |
| 481 | +<p>The <strong><code>move2usb</code></strong> action uses the <strong>same</strong> USB target and rsync layout as automatic sync and needs the <strong>same</strong> Linux permissions. After a successful run the server checks for <strong><code>copy.chk</code> on the root of the USB volume</strong> (not under a <code>data</code> folder). See <a href="remote-button/">Remote Buttons</a>.</p> |
| 482 | +<h3 id="debugging">Debugging</h3> |
| 483 | +<p>Check server logs in the admin Debug panel: <a href="http://localhost/admin/debugpanel">http://localhost/admin/debugpanel</a> (or <a href="http://localhost/photobooth/admin/debugpanel">http://localhost/photobooth/admin/debugpanel</a>).</p> |
468 | 484 | <hr /> |
469 | 485 | <h2 id="raspberry-touchpanel-dsi-simultaneously-with-hdmi">Raspberry Touchpanel DSI simultaneously with HDMI</h2> |
470 | 486 | <p>When using a touchscreen on DSI and an HDMI screen simultaneously, the touch input is offset. This is because both monitors are recognized as one screen.</p> |
|
0 commit comments