Setting up a Raspberry Pi 4 to run the museum-label display component.
Assuming normal Raspberry Pi OS image.
Set Country
Country: United States
Language: American English
Timezone: Chicago?
Default pi user password: PASSWORD
Attach network connection and update
Restart
Set actual timezone:
- Open Pi menu->Preferences->Raspberry Pi Configuration
- Select Localisation tab and press Set Timezone...
- Choose Area: Europe, Location: Berlin
sudo apt install vim
Clone this repository to ~/
:
cd ~/
git clone https://git.zkm.de/Hertz-Lab/Research/intelligent-museum/museum-label.git
Prepare script dependencies:
cd museum-label
make display
See Setup section in tfluna/README.md
.
Run GUI script in lxterminal via XDG desktop entry:
mkdir -p ~/.config/autostart
touch ~/.config/autostart/museumlabel.desktop
add the following to ~/.config/autostart/museumlabel.desktop
which runs thedisplay.sh
script after the user logs into LXDE:
[Desktop Entry]
Type=Application
Version=1.0
Name=IntelligentTextLabel
Exec=/usr/bin/lxterminal -e /home/pi/museum-label/display.sh
Categories=Utilities
Additional flags to display.sh can be added to the Exec
line such as /display.sh --host
. If the flags or configuration are relatively long, these can be put inside a wrapper script:
- Create a run script to call
display.sh
such as~/rundisplay
:
touch ~/Desktop/rundisplay
chmod +x ~/Desktop/rundisplay
- Add the following to
~/Desktop/rundisplay
and calldisplay.sh
with the required flags:
#! /bin/sh
~/museum-label/display.sh --host localhost ...
- Edit
~/.config/autostart/museumlabel.desktop
and set theExec
line to call the run script:
Exec=/usr/bin/lxterminal -e /home/pi/Desktop/rundisplay
Enable the VNC server on the RPI for remote management:
https://www.jimbobbennett.io/screen-sharing-a-raspberry-pi-from-a-mac/