This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:ubuntu:teamspeak3 [2019/12/05 12:26] – created lunetikk | linux:ubuntu:teamspeak3 [2022/08/04 10:07] (current) – [failed to register local accounting service: File exists] lunetikk | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ===== Installation ===== | ===== Installation ===== | ||
| - | < | + | Create a directory |
| + | < | ||
| + | |||
| + | and a non-root user | ||
| + | < | ||
| + | |||
| + | 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 / | ||
| + | wget < | ||
| + | </ | ||
| + | |||
| + | Unpack | ||
| + | < | ||
| + | tar -xjf < | ||
| + | </ | ||
| + | |||
| + | Change the owner of the files to your user | ||
| + | < | ||
| ===== Configuration ===== | ===== Configuration ===== | ||
| - | ==== Add a ftp user ==== | + | If you feel the need to change ports or add a proxy, you can create an .ini file and edit it |
| + | |||
| + | Change to your non-root | ||
| + | < | ||
| + | su teamspeak -s /bin/sh | ||
| + | ./ts3server createinifile=1 | ||
| + | </ | ||
| - | Add a user for ftp (or use an existing one and skip this step) | + | You can also create |
| < | < | ||
| + | vi query_ip_whitelist.txt | ||
| + | |||
| + | #example | ||
| + | 127.0.0.1 | ||
| + | ::1 | ||
| + | 192.168.0.0/ | ||
| </ | </ | ||
| - | Add the created (or existing) user the " | + | < |
| - | Create the following file: | + | vi query_ip_blacklist.txt |
| - | <code - vsftpd.users>< | + | #example |
| + | 127.0.0.1 | ||
| + | ::1 | ||
| + | 192.168.0.0/ | ||
| + | </ | ||
| - | ==== Configure vsftpd | + | ===== Finalize the Setup ===== |
| - | Configure | + | Change to your non-root user, accept |
| + | < | ||
| + | su teamspeak -s /bin/sh | ||
| + | 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 "/etc/systemd/ | ||
| + | < | ||
| + | [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 | ||
| + | </ | ||
| - | <code bash vsftpd.conf> | + | [[https:// |
| - | </code> | + | |
| ===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
| Line 39: | Line 125: | ||
| __Fix:__ \\ | __Fix:__ \\ | ||
| - | Check for a cryptic | + | Check for a cryptic |
| - | < | + | < |
| total 39228 | total 39228 | ||
| drwxrwxrwt | drwxrwxrwt | ||
| Line 50: | 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 57: | 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:// | ||