rofl cake
Well-Known Member
- May 25, 2015
- 204
- 451
- 108
Wasn't sure on placement for this discussion, so instead of placing it under tutorials I've placed it here. If mod/admin feels like this thread can be moved please do so. (^_^)
Please add on more if you have other ideas that would make your TS3 process run more efficiently.
Good area to read before you start:
This works on my server running
After you have ran your ts3 setup script and fallowed the directions on:
Their are a few things I would recommend doing to make your ts3 as efficient as possible:
1.IPTABLES:
2.Cron Job:
3.Optional but useful, TS3 Auto Startup Script:
1a.
2a. Insert Script: (example of my script)
3a.
4a. Defined the script as a startup :
The next time you reboot the TeamSpeak 3 Server is now started automatically.
TS3 Auto-Start Script Command List:
Please add on more if you have other ideas that would make your TS3 process run more efficiently.
Good area to read before you start:
Code:
https://www.r4p3.net/threads/scripts-for-ts3-server.24/
Code:
Ubuntu 14.04 Server (64 bits)
After you have ran your ts3 setup script and fallowed the directions on:
Code:
https://www.r4p3.net/threads/teamspeak-server-crack-3-0-11-3.6
1.IPTABLES:
Code:
Port forward by setting up iptables:
port 9987 (UDP) /virtual voice server
port 10011 (TCP) /ServerQuery is listening
port 30033 (TCP) /file transfers
2.Cron Job:
Code:
Setup your cron job & make sure its set up correctly:
example of my cron job;(running every 5min)
crontab -e
*/5 * * * * su - ts3server -c '/home/teamspeak3-server_linux-amd64/ts3server_startscript.sh start' > /dev/null 2>&1
3.Optional but useful, TS3 Auto Startup Script:
Code:
Teamspeak 3 Auto Script
Original source: http://www.sysadminslife.com/linux/teamspeak-3-server-autostart-skript-debian-ubuntu-linux/
Code:
nano /etc/init.d/teamspeak3
Code:
#!/bin/sh
### BEGIN INIT INFO
# Provides: teamspeak3
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Teamspeak 3 Server
### END INIT INFO
# INIT Script by www.SysADMINsLife.com
######################################
# Customize values for your needs: "User"; "DIR"
USER="ts3"
DIR="/home/ts3/teamspeak3-server_linux-amd64/"
###### Teamspeak 3 server start/stop script ######
case "$1" in
start)
su $USER -c "${DIR}/ts3server_startscript.sh start"
;;
stop)
su $USER -c "${DIR}/ts3server_startscript.sh stop"
;;
restart)
su $USER -c "${DIR}/ts3server_startscript.sh restart"
;;
status)
su $USER -c "${DIR}/ts3server_startscript.sh status"
;;
*)
echo "Usage: {start|stop|restart|status}" >&2
exit 1
;;
esac
exit 0
Code:
chmod 755 /etc/init.d/teamspeak3
Code:
update-rc.d teamspeak3 defaults
TS3 Auto-Start Script Command List:
Code:
Start TeamSpeak Server:
/etc/init.d/teamspeak3 start
Stop Teamspeak Server:
/etc/init.d/teamspeak3 stop
Restart Teamspeak Server:
/etc/init.d/teamspeak3 restart
Status of Teamspeak Server:
/etc/init.d/teamspeak3 status
Last edited: