This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:ubuntu:teamspeak3 [2019/12/05 15:06] – lunetikk | linux:ubuntu:teamspeak3 [2022/08/04 10:07] (current) – [failed to register local accounting service: File exists] lunetikk | ||
---|---|---|---|
Line 17: | Line 17: | ||
< | < | ||
cd /teamspeak | cd /teamspeak | ||
- | wget URL | + | wget <URL> |
</ | </ | ||
Unpack | Unpack | ||
< | < | ||
- | tar -xjf PACKAGE | + | tar -xjf <PACKAGE> |
</ | </ | ||
Change the owner of the files to your user | Change the owner of the files to your user | ||
- | < | + | < |
===== Configuration ===== | ===== Configuration ===== | ||
Line 40: | Line 40: | ||
You can also create a white- and blacklist to prevent users from joining | You can also create a white- and blacklist to prevent users from joining | ||
+ | < | ||
+ | vi query_ip_whitelist.txt | ||
+ | #example | ||
+ | 127.0.0.1 | ||
+ | ::1 | ||
+ | 192.168.0.0/ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | vi query_ip_blacklist.txt | ||
+ | |||
+ | #example | ||
+ | 127.0.0.1 | ||
+ | ::1 | ||
+ | 192.168.0.0/ | ||
+ | </ | ||
===== Finalize the Setup ===== | ===== Finalize the Setup ===== | ||
+ | Change to your non-root user, accept the license and start the server for the first time | ||
+ | < | ||
+ | su teamspeak -s / | ||
+ | touch .ts3server_license_accepted | ||
+ | ./ | ||
+ | </ | ||
+ | Keep the window open and login to your server with the client | ||
+ | |||
+ | The login details are shown in your CLI, also the " | ||
+ | |||
+ | If you were logged in, stop the server via strg + c | ||
+ | |||
+ | ===== Create Service ===== | ||
+ | |||
+ | Create a new unit "/ | ||
+ | < | ||
+ | [Unit] | ||
+ | Description=TeamSpeak3 Server | ||
+ | Wants=network-online.target | ||
+ | After=syslog.target network.target | ||
+ | |||
+ | [Service] | ||
+ | WorkingDirectory=/ | ||
+ | User=teamspeak | ||
+ | Type=forking | ||
+ | ExecStart=/ | ||
+ | ExecStop=/ | ||
+ | ExecReload=/ | ||
+ | PIDFile=/ | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | </ | ||
+ | |||
+ | Incase you already had this file and/or changed anything, run " | ||
+ | |||
+ | Add the service to autostart | ||
+ | < | ||
+ | systemctl enable teamspeak | ||
+ | </ | ||
+ | |||
+ | You can now start/ | ||
+ | < | ||
+ | systemctl start teamspeak | ||
+ | systemctl stop teamspeak | ||
+ | systemctl restart teamspeak | ||
+ | systemctl status teamspeak | ||
+ | </ | ||
+ | |||
+ | [[https:// | ||
===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
Line 60: | Line 126: | ||
__Fix:__ \\ | __Fix:__ \\ | ||
Check for a cryptic file in /dev/shm/\\ | Check for a cryptic file in /dev/shm/\\ | ||
- | < | + | < |
total 39228 | total 39228 | ||
drwxrwxrwt | drwxrwxrwt | ||
Line 70: | Line 136: | ||
If you start teamspeak now, the file will be created with the correct user\\ | If you start teamspeak now, the file will be created with the correct user\\ | ||
- | < | + | < |
+ | total 39228 | ||
drwxrwxrwt | drwxrwxrwt | ||
drwxr-xr-x 17 root root 3640 Nov 13 06:47 .. | drwxr-xr-x 17 root root 3640 Nov 13 06:47 .. | ||
Line 77: | Line 144: | ||
[[https:// | [[https:// | ||
+ | |||
+ | ==== Failed loading default license file ==== | ||
+ | |||
+ | The server doesnt start and the log shows the following error \\ | ||
+ | < | ||
+ | |CRITICAL|Accounting | ||
+ | </ | ||
+ | |||
+ | __Reason:__ \\ | ||
+ | Your license expired\\ | ||
+ | |||
+ | __Fix:__ \\ | ||
+ | Update your Teamspeakserver to renew the license\\ | ||
+ | |||
+ | Get the server package downloadlink from either the website or directly from the fileserver | ||
+ | < | ||
+ | https:// | ||
+ | https:// | ||
+ | |||
+ | Change to your directory and download the package | ||
+ | < | ||
+ | cd /teamspeak | ||
+ | wget <URL> | ||
+ | </ | ||
+ | |||
+ | Backup your old folder in case something is broken after overwriting | ||
+ | < | ||
+ | cp -a teamspeak3-server_linux_amd64 teamspeak3-server_linux_amd64_bak_20211124 | ||
+ | </ | ||
+ | |||
+ | Unpack (overwrite the existing folder) | ||
+ | < | ||
+ | tar -xvf < | ||
+ | </ | ||
+ | |||
+ | and start as usual | ||
+ | < | ||
+ | systemctl start teamspeak | ||
+ | </ | ||
+ | |||
+ | [[https:// |