Skip to content

Instantly share code, notes, and snippets.

@lorello
Last active February 26, 2023 16:34
Show Gist options
  • Select an option

  • Save lorello/95fdca60b2a3c055881e990cbfdeac93 to your computer and use it in GitHub Desktop.

Select an option

Save lorello/95fdca60b2a3c055881e990cbfdeac93 to your computer and use it in GitHub Desktop.
Byobu unattended setup
if ! which byobu >/dev/null; then
echo "Byobu not installed, skip configuration"
exit 1
fi
[[ ! -f /var/lock/.byobu-shell-fixed ]] && \
echo "fixes byobu problem with UMASK, now byobu-shell is a login shell" && \
sed -i -e 's/exec "$SHELL"/exec "$SHELL" --login/' /usr/bin/byobu-shell && \
touch /var/lock/.byobu-shell-fixed
echo "Launcher install"
/usr/bin/byobu-launcher-install
echo "Selected screen backend"
which screen >/dev/null && /usr/bin/byobu-select-backend screen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment