From b1def14f0d03f9707de27fb634bcdd5030c093af Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 14 Aug 2023 11:19:06 -0400 Subject: [PATCH] Add Infern009's Factorio Server/install_byobu.sh --- Infern009's Factorio Server/install_byobu.sh | 50 ++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Infern009's Factorio Server/install_byobu.sh diff --git a/Infern009's Factorio Server/install_byobu.sh b/Infern009's Factorio Server/install_byobu.sh new file mode 100644 index 0000000..7b7444a --- /dev/null +++ b/Infern009's Factorio Server/install_byobu.sh @@ -0,0 +1,50 @@ +# Credit to this blog post for this script: +# https://blog.entrostat.com/install-byobu-on-any-linux-distro/ + +BYOBU_VERSION=5.133 + +set -e + +echo "Please make sure you have the following dependencies installed:" +echo " [+] tar" +echo " [+] screen" +echo " [+] tmux" +echo " [+] make" + +which tar +which screen +which tmux +which make + +echo "Downloading byobu version ${BYOBU_VERSION}..." + + + +echo "Setting up a temporary folder..." +UNIQUE_FOLDER=$(date +%s) +cd /tmp +mkdir /tmp/${UNIQUE_FOLDER} +cd /tmp/${UNIQUE_FOLDER} + +echo "Downloading source package..." +wget "https://launchpad.net/byobu/trunk/${BYOBU_VERSION}/+download/byobu_${BYOBU_VERSION}.orig.tar.gz" + +echo "Extracting the source files..." +tar -xvf "byobu_${BYOBU_VERSION}.orig.tar.gz" +BYOBU_FOLDER_NAME=$(ls | grep byobu | grep -v .tar.gz) +cd "byobu-${BYOBU_VERSION}" + +echo "Configuring and building..." +./configure +sudo make install +byobu-select-backend tmux + + +echo "" +echo "" +echo "" +echo "" +echo "You're ready to go! Just type:" +echo "" +echo "" +echo "byobu" \ No newline at end of file