Replies: 2 comments 8 replies
-
There's some weird stuff going on in that install script.
This is why I wanted to build companion myself, but it seems to be actively made impossible. Linked documentation doesn't exist, or is behind a login-wall. What instructions can be found don't work at all as described. I think we'll have to go without companion on our server. |
Beta Was this translation helpful? Give feedback.
-
I've got companion running on our server:
I haven't added the udev rule yet, since I'll be connecting satellites, and the server itself won't have a stream deck attached. The main reason why I wanted companion on the server was that I want to:
@Julusian Thanks a lot for the help! Systemd Service file:
Note: This requires that you one-time run: sudo mkdir -p /etc/companion
sudo chown companion /etc/companion Installation is done in the companion folder using a script that runs: #!/bin/bash
set -e
INSTALL_PREFIX="${INSTALL_PREFIX:-/opt}"
git pull
nvm install 18
nvm use 18
corepack enable
# Note: </dev/null closes stdin to prevent corepack prompts
yarn install </dev/null
yarn update </dev/null
yarn lindist </dev/null
# Install
sudo mkdir -p "${INSTALL_PREFIX}/companion"
sudo cp -r electron-output/linux-unpacked/* "${INSTALL_PREFIX}/companion/"
sudo service companion restart
echo "Bitfocus companion installed!" |
Beta Was this translation helpful? Give feedback.
-
I'm about to install companion on a Debian server, and I'm kind of surprised by this line in the install script:
The
--gecos
option is old, deprecated, and no longer documented. The man page only has a small mention in the documentation of the--comment
flag. It says--comment
used to be--gecos
which will be removed after Debian Bookworm (the current version). Most importantly it certainly does not – and as far as I know never did – create a system user. The option used should be--system
, which does create a system user.Note: I created this as a discussion, because it is not an issue per se. There's probably still at least a year before
--gecos
stops working on fresh Debian installs, and apparently companion works fine with a normal user account, even though it seems kind of dirty from a system administration perspective.Beta Was this translation helpful? Give feedback.
All reactions