AlpineLinux 3.8: Install byobu for terminal multiplexer

This article will describe installing byobu.

1 Install byobu

Install byobu.

$ sudo apk add byobu

2 Avoid the problem which cannot attach after detach.

When attaching byobu after detaching byobu, the following error will be occured.

$ byobu
/usr/bin/byobu-select-session: exec: line 24:
/usr/lib/byobu/include/select-session.py: not found

This is because BYOBU_PYTHON is empty (python does not have snack module and byobu cannot set BYOBU_PYTHON).

This article will set python3 to BYOBU_PYTHON.

$ sudo sed -i /usr/bin/byobu-select-session \
       -e 's;${BYOBU_PYTHON};python3;g'