Last active
May 8, 2016 00:11
-
-
Save brand-it/9cee55c52711262b72fc to your computer and use it in GitHub Desktop.
Install Steam and starbound
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash --login | |
read -p "Enter Username: " username | |
read -s -p "Enter Password: " password | |
sudo apt-get update | |
sudo apt-get install lib32gcc1 | |
sudo apt-get install libpng12-0 | |
adduser steam | |
mkdir /home/steam/steamcmd | |
cd /home/steam/steamcmd | |
wget http://media.steampowered.com/installer/steamcmd_linux.tar.gz | |
tar zxvf steamcmd_linux.tar.gz | |
chmod +x /home/steam/steamcmd/steamcmd.sh | |
# install for steam | |
/home/steam/steamcmd/steamcmd.sh +login $username $password +force_install_dir /home/steam/starbound +app_update 211820 +quit | |
cd /home/steam | |
wget -O update_starbound.sh https://gist.githubusercontent.com/newdark/75573f2bb2d8fe87a3a1/raw/cabe7f5b8f879820c598f3add9199aaca2d251eb/update_starbound.sh | |
chmod +x /home/steam/update_starbound.sh | |
wget -O launch_starbound_server.sh https://gist.githubusercontent.com/newdark/f315843b9f2f1237a32b/raw/a699e1a71de1661c08eaf8c3e6bbc2635e932ecd/launch_starbound_server.sh | |
chmod +x /home/steam/launch_starbound_server.sh | |
sudo chown -R steam:steam /home/steam/* | |
echo -e "\033[0;32mStarbound and Steam have been installed successfully. run /home/steam/steamcmd/starbound/linux64/starbound_server to start server\033[0m" | |
echo -e "\033[0;32mSwiching user to steam from here you can run ~/launch_starbound_server.sh\033[0m" | |
sudo su - steam |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment