Add Infern009's Factorio Server/install_byobu.sh
This commit is contained in:
parent
cf7134a654
commit
b1def14f0d
1 changed files with 50 additions and 0 deletions
50
Infern009's Factorio Server/install_byobu.sh
Normal file
50
Infern009's Factorio Server/install_byobu.sh
Normal file
|
@ -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"
|
Loading…
Reference in a new issue