This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
linux:ubuntu:teamspeak3 [2019/12/05 12:26] – created lunetikk | linux:ubuntu:teamspeak3 [2022/08/04 10:06] – 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 |
- | Add a user for ftp (or use an existing one and skip this step) | + | Change to your non-root |
+ | < | ||
+ | su teamspeak -s /bin/sh | ||
+ | ./ts3server createinifile=1 | ||
+ | </ | ||
+ | |||
+ | 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/ | ||
</ | </ | ||
- | 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 "/ | ||
+ | <code> | ||
+ | [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 | ||
+ | </code> | ||
+ | |||
+ | 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 39: | Line 125: | ||
__Fix:__ \\ | __Fix:__ \\ | ||
- | Check for a cryptic | + | Check for a cryptic |
- | < | + | < |
total 39228 | total 39228 | ||
drwxrwxrwt | drwxrwxrwt | ||
Line 57: | Line 143: | ||
[[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:// |