/lazy_ts

deploy or destroy a full functional teamspeak 3 server within seconds. receive login information via mail (sendmail)

Primary LanguageShellMIT LicenseMIT

lazy_ts


A simple script to deploy a TeamSpeak 3 Server on your machine. At least I dislike to copy stuff from the shell, but you need the Server Query Login, or the Admin Token, so all this information, include your server public IP will be stored in a txt file (ts3_login.txt). Still to lazy to check the dir? Or maybe you just want to set up the server for some of your friends and not really mind, what they are going to do with it? You also could automatically send the login information to your/their email.

If you don't need this server to be up the whole time, and just want to set up for testing, or maybe for some event, you can also use this script to destroy/delete the server include all files.

Usage

You can either clone the completely repo, or just download the scripts you need.

git clone https://github.com/xiaoveiti/lazy_ts.git 
cd lazy_ts
chmod +x lazy_ts 
./lazy_ts

Optional Configure

You can define several variables at the beginning of the script, but be sure to also adjust the correspondingly tar command, if you change the file.tar.bz2.

ts_user="teamspeak"  
ts_dir="/opt/teamspeak"  

ts_download="https://files.teamspeak-services.com/releases/server/3.12.0/teamspeak3-server_linux_amd64-3.12.0.tar.bz2"

serverip=$(serverip=$(hostname -I | cut -d' ' -f1))
ts_mail="false" # by default no mail will be send

Script Options

./lazy_ts <option>

  -e  --email     specify email to receive login
  -k  --kill      delete server include all files
  -s  --screen    show terminal output
  -x  --debug     debug (dev-debug.log)
  -h  --help      show this help

Examples:

Specify email :

 ./lazy_ts -m<mail@domain.tld>
 ./lazy_ts --mail<mail@domain.tld>

Manage Teamspeak 3 Server

ts3 <start|stop|restart|status>

Author

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • feel free to copy and adjust the scripts for your need
  • feel free to improve the scripts - maybe you could also notice me - haha
  • feel free to contact me, if you have any question