Deploying the Desktop App¶
Squirrel ships as a Linux desktop app, packaged as an RPM. This page is for whoever installs and launches it at a facility. For the settings it reads, see the Configuration Reference. To serve Squirrel as a web page instead, see Deploying the Web App.
Getting the RPM¶
RPMs are attached to the repository's GitHub releases:
| Release | What it is |
|---|---|
v<version> |
A published release |
dev-<commit> |
A pre-release built from each commit merged to main; never changes |
dev-latest |
A pre-release that always points at the newest dev-<commit> build |
Each holds one file, squirrel-<version>-1.x86_64.rpm.
Host Requirements¶
- Linux on x86_64
- glibc 2.34 or newer
- WebKitGTK 4.0 (
webkit2gtk3on RHEL and Rocky Linux 9) - Network access to the Canopy server, for both HTTP and WebSocket connections
Installing¶
Install the RPM with your package manager, or, without root access, extract it into a directory:
mkdir -p /path/to/squirrel && cd /path/to/squirrel
rpm2cpio /path/to/squirrel-<version>-1.x86_64.rpm | cpio -idm
The app is usr/bin/squirrel in the extracted tree. Its bundled config.json and documentation are in usr/lib/squirrel/.
Launching¶
Point Squirrel at your site's configuration with SQUIRREL_CONFIG, and start it:
Keep the site config outside the extracted tree, so it survives upgrades. See Site config location.
To skip the instance picker, pass the instance to connect to:
Launch Environment¶
On some hosts, the environment inherited from other tools stops Squirrel from starting, or from receiving live data. If so, launch it with a cleaned-up environment:
env -u LD_LIBRARY_PATH -u LD_PRELOAD \
-u http_proxy -u https_proxy -u all_proxy -u no_proxy \
-u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u NO_PROXY \
WEBKIT_DISABLE_COMPOSITING_MODE=1 \
APPDIR=/path/to/squirrel \
SQUIRREL_CONFIG=/path/to/config.json \
/path/to/squirrel/usr/bin/squirrel
| Setting | Why |
|---|---|
Unset LD_LIBRARY_PATH, LD_PRELOAD |
Environments such as EPICS tool setups can put old system libraries first on the path. An old libexpat, for example, stops the app from starting with undefined symbol: XML_SetHashSalt. |
| Unset the proxy variables | If the site's HTTP proxy can't reach the Canopy server, live data fails and Squirrel shows LIVE DATA DISCONNECTED. no_proxy alone isn't enough: WebKit still sends the live-data WebSocket through http_proxy, so every proxy variable must be removed. |
WEBKIT_DISABLE_COMPOSITING_MODE=1 |
Avoids GL/GLX errors when the app is displayed over ssh -X. |
APPDIR |
Lets Squirrel find its bundled config and documentation when it isn't installed under /usr. Set it to the directory the RPM was extracted into. |
Upgrading¶
Install or extract the new RPM in place of the old one. Per-user settings, such as saved API keys, are kept in each user's home directory, and a site config named by SQUIRREL_CONFIG is outside the app, so neither is affected.