31 lines
786 B
Bash
31 lines
786 B
Bash
#!/bin/bash
|
|
|
|
cd ~/
|
|
|
|
echo "make new directory"
|
|
mkdir stk
|
|
echo "going into directory"
|
|
cd stk
|
|
echo "downloading game"
|
|
wget https://github.com/supertuxkart/stk-code/releases/download/1.3/SuperTuxKart-1.3-linux-64bit.tar.xz
|
|
echo "download finished"
|
|
|
|
echo "unzip"
|
|
tar xf SuperTuxKart-1.3-linux-64bit.tar.xz
|
|
|
|
echo "enter dir"
|
|
cd SuperTuxKart-1.3-linux-64bit/
|
|
|
|
echo "create config TODO"
|
|
wget https://owncloud.hribhrib.at/index.php/s/nXJ8nhewqfTElsx/download
|
|
|
|
mv download config.xml
|
|
|
|
echo "starting server"
|
|
nohup ./run_game.sh --server-config=/home/onfoss/stk/SuperTuxKart-1.3-linux-64bit/config.xml --lan-server=onFOSS &>/dev/null &
|
|
|
|
#nohup ./run_game.sh --server-config=/home/c/Downloads/stktry/SuperTuxKart-1.3-linux-64bit/config.xml --lan-server=onFOSS &>/dev/null &
|
|
echo "started server"
|
|
|
|
|