Skip to content

Commit

Permalink
[pi] Add new scripts to enable easily running under VNC and minimal p…
Browse files Browse the repository at this point in the history
…latform plugins
  • Loading branch information
jcelerier committed Jan 20, 2024
1 parent 25704f8 commit 4f77982
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cmake/Deployment/Linux/Raspberry/ossia-score-cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash -eux

# This script will run ossia score as a CLI only version.
# Most features will not be available but it will be more efficient.

DIR=$(realpath "${BASH_SOURCE[0]}")
DIR=$(dirname "$DIR")

export MESA_GLES_VERSION_OVERRIDE=3.2
export MESA_GLSL_VERSION_OVERRIDE=320
export LD_LIBRARY_PATH="$DIR/lib"
export QT_QPA_PLATFORM=minimal

"$DIR/bin/ossia-score" --no-gui --no-restore $@
8 changes: 8 additions & 0 deletions cmake/Deployment/Linux/Raspberry/ossia-score-eglfs
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
#!/bin/bash -eux

# This script will run ossia score directly on DRM & EGLFS,
# without using X11, Wayland or anything like this.
# This is the most efficient way to playback scores that use the GPU on a Pi
# as the entirety of the GPU is dedicated to the graphics rendering of score.
# Note that the Qt EGLFS back-end is fairly configurable: if multiple screens
# or special resolution is required, check out the documentation here:
# https://doc.qt.io/qt-6/embedded-linux.html
# in particular "Custom configuration" near the end
DIR=$(realpath "${BASH_SOURCE[0]}")
DIR=$(dirname "$DIR")

Expand Down
15 changes: 15 additions & 0 deletions cmake/Deployment/Linux/Raspberry/ossia-score-vnc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash -eux

# This script will expose an internal VNC server on port 5900,
# allowing remote desktops to connect and edit scores easily through
# any VNC client, e.g. Remmina on Linux.

DIR=$(realpath "${BASH_SOURCE[0]}")
DIR=$(dirname "$DIR")

export MESA_GLES_VERSION_OVERRIDE=3.2
export MESA_GLSL_VERSION_OVERRIDE=320
export LD_LIBRARY_PATH="$DIR/lib"
export QT_QPA_PLATFORM="vnc:size=1280x720"

"$DIR/bin/ossia-score" $@
1 change: 1 addition & 0 deletions cmake/Deployment/Linux/Raspberry/ossia-score-x11
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash -eux

# Default script to use to launch ossia on a graphical session under a Pi
DIR=$(realpath "${BASH_SOURCE[0]}")
DIR=$(dirname "$DIR")

Expand Down

0 comments on commit 4f77982

Please sign in to comment.