From 79086522be4ea908f03a9f50178bda494a24b288 Mon Sep 17 00:00:00 2001 From: Aney Date: Sat, 27 Jun 2020 18:03:52 +0100 Subject: [PATCH] Minor changes --- install.sh | 1 + minecraft_autoserver | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index c543d8a..16be04f 100755 --- a/install.sh +++ b/install.sh @@ -56,3 +56,4 @@ apt install libx11-dev libxft-dev libxinerama-dev sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)" # Change default shell to zsh chsh -s /bin/zsh +echo "export PATH=~/.local/bin:\$PATH" >> .zshrc diff --git a/minecraft_autoserver b/minecraft_autoserver index a2ed1ee..3e8d96c 100755 --- a/minecraft_autoserver +++ b/minecraft_autoserver @@ -3,6 +3,7 @@ # Make minecraft user sudo useradd -d minecraft +# Delete the password sudo passwd -d minecraft # Switch to minecraft user @@ -13,7 +14,7 @@ mkdir minecraft_server cd minecraft_server # Install dependencies -sudo apt install default-jre tmux curl wget +sudo apt install java-openjdk default-jre tmux curl wget # Find and download newest minecraft server.jar wget $(curl https://www.minecraft.net/en-us/download/server/ | grep -oP '(?<=a href=").*(server.jar)')