Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- ## tModLoader deploy script
- ## Ports: tcp 7777
- ## Expects: nothing
- set -x
- TMODLOADERVER=0.11.8.5
- TERRARIA_VERSION=1353
- cat > ~/.tmux.conf << 'EOF'
- set -g history-limit 50000
- set -g default-terminal "screen-256color"
- set-option -g default-shell "/bin/bash"
- set -g base-index 1
- setw -g pane-base-index 1
- EOF
- dd if=/dev/zero of=/swapfile bs=1024 count=1048576
- chmod 600 /swapfile
- mkswap /swapfile
- swapon /swapfile
- swapon --show
- cd
- mkdir btop
- cd btop
- wget https://github.com/aristocratos/btop/releases/download/v1.1.4/btop-x86_64-linux-musl.tbz
- tar -xf btop-x86_64-linux-musl.tbz
- ./install.sh
- ./setuid.sh
- apt update
- apt install -y unzip gnupg ca-certificates
- apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
- mkdir -p /etc/apt/sources.list.d/
- touch /etc/apt/sources.list.d/mono-official-stable.list
- echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | tee /etc/apt/sources.list.d/mono-official-stable.list
- apt update
- apt install -y mono-devel
- cd
- mkdir terra
- cd terra
- wget "https://web.archive.org/web/20190630145553if_/http://terraria.org/server/terraria-server-${TERRARIA_VERSION}.zip"
- unzip "terraria-server-${TERRARIA_VERSION}.zip"
- rm "terraria-server-${TERRARIA_VERSION}.zip"
- cp --verbose -a "${TERRARIA_VERSION}/Linux/." .
- rm -r "${TERRARIA_VERSION}"
- wget "https://github.com/tModLoader/tModLoader/releases/download/v$TMODLOADERVER/tModLoader.Linux.v$TMODLOADERVER.tar.gz"
- tar -xf "tModLoader.Linux.v$TMODLOADERVER.tar.gz"
- rm "tModLoader.Linux.v$TMODLOADERVER.tar.gz"
- chmod u+x tModLoaderServer*
Add Comment
Please, Sign In to add comment