Skip to content

Commit fc12d88

Browse files
committed
smaller tweaks to DIY client install and run scripts
1 parent d9c1b7f commit fc12d88

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

sepia-client-installation/rpi/install_sepia_client.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ echo "=========================================="
9595
# Openbox with Chromium
9696
echo "Installing app environment ..."
9797
echo "$(log_date) - Installing app environment (X-Server, Xvfb, Openbox, Chromium, etc.) ..." >> "$LOG"
98-
sudo apt-get install -y --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox xvfb xterm xinput
98+
sudo apt-get install -y --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox xvfb xterm xinput xdg-utils
9999
# NOTE: 'chromium' can be an alternative if 'chromium-browser' has issues but currently 'chromium' has graphic glitches :-/
100100
sudo apt-get install -y --no-install-recommends chromium-browser chromium-codecs-ffmpeg-extra
101101
echo "$(log_date) - If you're having trouble with the current version of Chromium try: 'bash install_chromium_92_from_archive.sh'" >> "$LOG"

sepia-client-installation/rpi/sepia-client/run.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
#!/bin/bash
22
set -e
33
SCRIPT_PATH="$(realpath "$BASH_SOURCE")"
4+
# usage: 'bash run.sh' or with 1-2 arguments (respect order!): 'bash run.sh [source_name] [debug]'
45
LOG="$(dirname "$SCRIPT_PATH")""/log-run.out"
5-
LOG_CLIENT="/dev/null"
6-
#LOG_CLIENT="$(dirname "$SCRIPT_PATH")""/log-client.out"
6+
if [ -n "$2" ] && [ "$2" = "debug" ]; then
7+
# add additional log for chrome
8+
LOG_CLIENT="$(dirname "$SCRIPT_PATH")""/log-client.out"
9+
echo "Last run attempt: $(date +'%Y_%m_%d_%H:%M:%S') - via: run.sh" > "$LOG_CLIENT"
10+
else
11+
LOG_CLIENT="/dev/null"
12+
fi
713
echo "Last run attempt: $(date +'%Y_%m_%d_%H:%M:%S') - via: run.sh" > "$LOG"
814

915
# Client mode
-2.09 KB
Binary file not shown.

0 commit comments

Comments
 (0)