Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
1
answers
90
views
How to start TeamSpeak3 Client | Centos 7
Im running a `centos-release-7-8.2003.0.el7.centos.x86_64` with a `GNOME 3.28.2` I installed `TeamSpeak3-Client-linux_amd64-3.5.2.run` but when I try to start it I get the following error: ./ts3client_linux_amd64: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by ./libc++abi.so.1) So app...
Im running a
centos-release-7-8.2003.0.el7.centos.x86_64
with a GNOME 3.28.2
I installed TeamSpeak3-Client-linux_amd64-3.5.2.run
but when I try to start it I get the following error:
./ts3client_linux_amd64: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by ./libc++abi.so.1)
So apparently GLIBC_2.18
is missing and Centos 7 only comes with GLIBC_2.17
**Is there some kind of workaround?**
*I tried building GLIBC_2.18 but it was not working properly and also very dangerous I was told.*
Georodin
(159 rep)
Jun 2, 2020, 11:06 PM
• Last activity: Jun 13, 2020, 09:06 AM
8
votes
2
answers
12506
views
systemd service does not start (permission denied)
So today I decided to move my ts3 server from my old windows box to a new centos8 server. Everything works fine but now I am trying to create a systemd service file so the server can start automatically on boot. I can run everything nicely when I try to start things as the service user, but I cannot...
So today I decided to move my ts3 server from my old windows box to a new centos8 server. Everything works fine but now I am trying to create a systemd service file so the server can start automatically on boot. I can run everything nicely when I try to start things as the service user, but I cannot start it as root (using systemctl). A little more info:
The user I want things to run with
[root@lnxsrv01 opt]# id teamspeak
uid=1000(teamspeak) gid=1000(teamspeak) groups=1000(teamspeak)
My folder structure (notice permissions and exec flags)
[root@lnxsrv01 teamspeak]# ll
total 16380
drwxr-xr-x. 9 teamspeak teamspeak 4096 Nov 2 17:28 .
drwxr-xr-x. 3 root root 23 Nov 2 16:11 ..
-rw-------. 1 teamspeak teamspeak 629 Nov 2 17:30 .bash_history
-rw-rw-rw-. 1 teamspeak teamspeak 66724 Jul 2 11:21 CHANGELOG
drwxr-xr-x. 3 teamspeak teamspeak 192 Jun 17 18:27 doc
drwx------. 4 teamspeak teamspeak 45 Nov 2 16:59 files
-rwxr-xr-x. 1 teamspeak teamspeak 947368 Jul 2 15:24 libts3db_mariadb.so
-rwxr-xr-x. 1 teamspeak teamspeak 2174344 Jul 2 15:24 libts3db_sqlite3.so
-rwxr-xr-x. 1 teamspeak teamspeak 1096144 Jul 2 15:24 libts3_ssh.so
-rw-r--r--. 1 teamspeak teamspeak 68141 Jun 17 18:27 LICENSE
drwx------. 2 teamspeak teamspeak 270 Nov 2 17:10 logs
-rw-rw-rw-. 1 teamspeak teamspeak 0 Nov 2 16:59 query_ip_blacklist.txt
-rw-rw-rw-. 1 teamspeak teamspeak 14 Nov 2 16:59 query_ip_whitelist.txt
drwxr-xr-x. 2 teamspeak teamspeak 29 Jul 2 15:24 redist
drwxrwxrwx. 2 teamspeak teamspeak 8192 Jun 24 11:28 serverquerydocs
drwxrwxrwx. 5 teamspeak teamspeak 8192 Jun 17 18:26 sql
-rw-rw-rw-. 1 teamspeak teamspeak 3243 Nov 2 16:59 ssh_host_rsa_key
-rwxr-xr-x. 1 teamspeak teamspeak 12033888 Jul 2 15:24 ts3server
-rw-rw-r--. 1 teamspeak teamspeak 0 Nov 2 16:59 .ts3server_license_accepted
-rwxrwxrwx. 1 teamspeak teamspeak 117 Jun 17 18:26 ts3server_minimal_runscript.sh
-rw-rw-r--. 1 teamspeak teamspeak 6 Nov 2 17:10 ts3server.pid
-rw-r--r--. 1 teamspeak teamspeak 282624 Nov 2 16:58 ts3server.sqlitedb
-rw-r--r--. 1 teamspeak teamspeak 32768 Nov 2 17:22 ts3server.sqlitedb-shm
-rw-r--r--. 1 teamspeak teamspeak 6320 Nov 2 17:21 ts3server.sqlitedb-wal
-rwxrwxrwx. 1 teamspeak teamspeak 2654 Jun 18 11:51 ts3server_startscript.sh
drwxr-xr-x. 2 teamspeak teamspeak 85 Jul 2 15:24 tsdns
[root@lnxsrv01 teamspeak]# pwd
/opt/teamspeak
My systemd service file
[root@lnxsrv01 teamspeak]# cat /lib/systemd/system/teamspeak3.service
[Unit]
Description=TeamSpeak Server Service
After=network.target
[Service]
Type=forking
WorkingDirectory=/opt/teamspeak/
ExecStart=/opt/teamspeak/ts3server_startscript.sh start
ExecStop=/opt/teamspeak/ts3server_startscript.sh stop
User=teamspeak
Group=teamspeak
PIDFile=/opt/teamspeak/ts3server.pid
Restart=always
RestartSec=9
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=teamspeak3
[Install]
WantedBy=multi-user.target
Relevant syslog entries
Nov 2 17:26:36 lnxsrv01 systemd: teamspeak3.service: Failed to execute command: Permission denied
Nov 2 17:26:36 lnxsrv01 systemd: teamspeak3.service: Failed at step EXEC spawning /opt/teamspeak/ts3server_startscript.sh: Permission denied
Nov 2 17:26:36 lnxsrv01 systemd: teamspeak3.service: Control process exited, code=exited status=203
Nov 2 17:26:36 lnxsrv01 systemd: teamspeak3.service: Failed with result 'exit-code'.
Nov 2 17:26:36 lnxsrv01 systemd: Failed to start TeamSpeak Server Service.
Nov 2 17:26:43 lnxsrv01 systemd: Stopped TeamSpeak Server Service.
When I su to the 'teamspeak' user and run the startscript from there, everything works fine. But I can't seem to get things working with systemd.
Any ideas what I am missing here?
Darkrain93
(151 rep)
Nov 2, 2019, 04:43 PM
• Last activity: May 21, 2020, 09:23 PM
1
votes
1
answers
587
views
How do I make custom .desktop files behave correctly in the Gnome 3 sidebar?
I've installed TeamSpeak 3 to `$HOME/Applications` and I've created a custom desktop file: [Desktop Entry] Name=TeamSpeak 3 Comment=VOIP Client Path=/home/tomas/Applications/TeamSpeak3-Client-linux_amd64 Exec=bash ts3client_runscript.sh Icon=/home/tomas/Pictures/icons/teamspeak-3-icon.png Terminal=f...
I've installed TeamSpeak 3 to
However, when I click the icon to launch TeamSpeak, the launched application spawns a new icon rather than being bound to the icon I pressed:
Why does this happen? What mechanism does Gnome 3 use to decide which running applications are bound to which sidebar icons? Is there anything I can do to make this work?
My first guess was that it's because the actual application isn't launched directly, but through a bash script. I tried adding
$HOME/Applications
and I've created a custom desktop file:
[Desktop Entry]
Name=TeamSpeak 3
Comment=VOIP Client
Path=/home/tomas/Applications/TeamSpeak3-Client-linux_amd64
Exec=bash ts3client_runscript.sh
Icon=/home/tomas/Pictures/icons/teamspeak-3-icon.png
Terminal=false
Type=Application
This shows up perfectly in Gnome 3 and I can pin the application to my sidebar:


exec
to the runscript to make the application be the direct child of the launcher, but it didn't make a difference.
Hubro
(1095 rep)
Oct 3, 2018, 06:09 PM
• Last activity: May 3, 2019, 09:10 AM
1
votes
1
answers
319
views
Recommendations of a linux distro for setting up a server?
I have this old Asus eee PC that is currently running Linux Mint. I would like to turn this into a server computer to run a teamspeak server and also a simple website. Are there any linux distros that are optimized for this?
I have this old Asus eee PC that is currently running Linux Mint. I would like to turn this into a server computer to run a teamspeak server and also a simple website. Are there any linux distros that are optimized for this?
evogelsa
(13 rep)
Oct 27, 2015, 11:19 PM
• Last activity: Dec 15, 2018, 04:43 PM
5
votes
2
answers
4197
views
Systemd Service stops on its user exit - debian 9 stretch
So I'm sitting on a problem I faced while setting up my teamspeak server (properly!). The Teamspeak Server and it's config is totally fine. My Problem started when I wanted it to start on system-startup. Now for how to create a autostart script etc. I have already done it, and it has worked in the p...
So I'm sitting on a problem I faced while setting up my teamspeak server (properly!). The Teamspeak Server and it's config is totally fine. My Problem started when I wanted it to start on system-startup.
Now for how to create a autostart script etc. I have already done it, and it has worked in the past. But this time I want to do it with a systemd service only, since there already is a startscript provided by teamspeak.
So now after giving some context let's get to the problem:
With the service configuration (see below), which I am using right now, the teamspeak server starts perfectly on system-startup. But when I login with user "teamspeak" do some stuff and then type exit, the teamspeak server is shutting down and restarted right after that.
[Unit]
Description=TeamSpeak 3 Server
[Service]
ExecStart=/teamspeak/ts3server_startscript.sh start
ExecStop=/teamspeak/ts3server_startscript.sh stop
PIDFile=/teamspeak/ts3server.pid
Restart=always
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=teamspeak_server
User=teamspeak
Group=teamspeak
Type=Forking
[Install]
WantedBy=multi-user.target
So the restart comes from "Restart=always" and I am hundred percent sure, that the teamspeak-shutdown comes from the service. I already tried "RemainAfterExit=true" but the only thing that did, is not making the teamspeak server restart after the user-logout (since it let's it think the service is still active, but the processes where all closed. At least that is how I understand the service is working and why it is stopping my teamspeak server.
So in short: How do I prevent the service from calling the ExecStop Command when the teamspeak user exits his session (in my case putty, ssh-connection)
Here is a good summary of all systemd.service options: click me
I, even though it plays against what I wrote above, also wrote a script that wraps the ts3server_minimal_startscript.sh into a screen session. The script worked perfectly fine when used manually, but I still had exactly the same problem using it via the service. As I said, I would prefer a non-screen version since the ts3server_startscript.sh already creates a own process for the ts-server.
EDIT:
I forgot to say, that I created the service at /etc/systemd/system/teamspeak.service.
As of a request, here is the systemctl status answer before I exit teamspeak user:
● teamspeak.service - TeamSpeak 3 Server
Loaded: loaded (/etc/systemd/system/teamspeak.service; enabled; vendor
preset
: enabled)
Active: active (running) since Sat 2018-04-14 17:35:08 CEST; 23h a
go
Process: 3344 ExecStop=/teamspeak/ts3server_startscript.sh stop
(code=exited,
status=0/SUCCESS)
Main PID: 3361 (ts3server)
Tasks: 17 (limit: 4915)
CGroup: /system.slice/teamspeak.service
└─3361 ./ts3server
Apr 14 17:35:08 srv83030 systemd[1] : Started TeamSpeak 3 Server.
Apr 14 17:35:08 srv83030 teamspeak_server: Starting the TeamSpeak 3
server
1ms after I exited teamspeak user:
● teamspeak.service - TeamSpeak 3 Server
Loaded: loaded (/etc/systemd/system/teamspeak.service; enabled; vendor
preset
: enabled)
Active: active (running) since Sun 2018-04-15 16:55:11 CEST; 1ms a
go
Process: 5372 ExecStop=/teamspeak/ts3server_startscript.sh stop
(code=exited,
status=0/SUCCESS)
Main PID: 5388 (ts3server_start)
Tasks: 0 (limit: 4915)
CGroup: /system.slice/teamspeak.service
└─5388 /bin/sh /teamspeak/ts3server_startscript.sh start
Apr 15 16:55:11 srv83030 systemd[1] : Started TeamSpeak 3 Server.
2s after I exited Teamspeak user:
● teamspeak.service - TeamSpeak 3 Server
Loaded: loaded (/etc/systemd/system/teamspeak.service; enabled; vendor
preset
: enabled)
Active: active (running) since Sun 2018-04-15 16:55:11 CEST; 2s ag
o
Process: 5372 ExecStop=/teamspeak/ts3server_startscript.sh stop
(code=exited,
status=0/SUCCESS)
Main PID: 5392 (ts3server)
Tasks: 16 (limit: 4915)
CGroup: /system.slice/teamspeak.service
└─5392 ./ts3server
Apr 15 16:55:11 srv83030 systemd[1] : Started TeamSpeak 3 Server.
Apr 15 16:55:11 srv83030 teamspeak_server: Starting the TeamSpeak 3
server
And one more just after I logged back in with teamspeak user:
● teamspeak.service - TeamSpeak 3 Server
Loaded: loaded (/etc/systemd/system/teamspeak.service; enabled; vendor
preset: enabled)
Active: active (running) since Sun 2018-04-15 16:55:11 CEST; 3min 43s ago
Process: 5372 ExecStop=/teamspeak/ts3server_startscript.sh stop
(code=exited, status=0/SUCCESS)
Main PID: 5392 (ts3server)
Tasks: 16 (limit: 4915)
CGroup: /system.slice/teamspeak.service
└─5392 ./ts3server
Apr 15 16:55:11 srv83030 systemd[1] : Started TeamSpeak 3 Server.
Apr 15 16:55:11 srv83030 teamspeak_server: Starting the TeamSpeak 3
server
EDIT2: Perhaps it is also useful to know, that the home directory of teamspeak user is at /teamspeak . So exactly there where also the startscript is.
Apahdos
(51 rep)
Apr 13, 2018, 11:51 PM
• Last activity: Nov 16, 2018, 01:01 AM
0
votes
0
answers
323
views
service exits after ssh disconnect
The service works perfectely if I am not logged in, but if I connect with ssh and then disconnect the service gets terminated. The service belongs to the user to whom I ssh. This is my current ts3.service file: [Unit] Description=TeamSpeak3Server [Service] User=user1 Group=staff Type=forking Working...
The service works perfectely if I am not logged in, but if I connect with ssh and then disconnect the service gets terminated. The service belongs to the user to whom I ssh. This is my current ts3.service file:
[Unit]
Description=TeamSpeak3Server
[Service]
User=user1
Group=staff
Type=forking
WorkingDirectory=/usr/local/bin/teamspeak3-server_linux_amd64
ExecStart=/usr/local/bin/teamspeak3-server_linux_amd64/ts3server_startscript.sh start
ExecStop=/usr/local/bin/teamspeak3-server_linux_amd64/ts3server_startscript.sh stop
PIDFile=/usr/local/bin/teamspeak3-server_linux_amd64/ts3server.pid
RestartSec=5
Restart=always
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
I have already tried changeing ExecStart to
ExecStart=/usr/bin/nohup /usr/local/bin/teamspeak3-server_linux_amd64/ts3server_startscript.sh start
Other services like openvpn survive the ssh logout.
After reconnection the status of the systemd process reads:
active (exited)
while the normal status is
active (running)
Could the cause of the problem be that the script which I execute calls another script which gets killed if the shell sends sighup meassages?
Thank you for your answers.
**Edit:**
the important part of ts3server_startscript.sh are as follows:
COMMANDLINE_PARAMETERS="${2}"
D1=$(readlink -f "$0")
BINARYPATH="$(dirname "${D1}")"
cd "${BINARYPATH}"
LIBRARYPATH="$(pwd)"
BINARYNAME="ts3server"
if [ -e "$BINARYNAME" ]; then
if[ -x "$BINARYNAME" ]; then
export LD_LIBRARY_PATH="${LIBRARYPATH}:${LD_LIBARY_PATH}"
"./${BINARYNAME}" ${COMMANDLINE_PARAMETERS} > /dev/null &
PID=$!
ps -p ${PID} > /dev/null 2>&1
if [ "$?" -ne "0" ]; then
echo "..."
else
echo $PID > ts3server.pid
fi
So if I interpret that correctely the server is started in the console by
"./${BINARYNAME}" ${COMMANDLINE_PARAMETERS} > /dev/null &
Beny Benz
(21 rep)
Jun 14, 2018, 01:39 PM
• Last activity: Jun 14, 2018, 05:16 PM
3
votes
2
answers
2731
views
TeamSpeak mutes other applications
As soon as I start TeamSpeak other applications (e.g. FireFox, VLC Player, ...) gets muted. Additionally, these applications get muted again (after I un-muted them manually) from time to time while TeamSpeak is running. I know that I had the same problem with older versions of Mumble. I remember som...
As soon as I start TeamSpeak other applications (e.g. FireFox, VLC Player, ...) gets muted. Additionally, these applications get muted again (after I un-muted them manually) from time to time while TeamSpeak is running.
I know that I had the same problem with older versions of Mumble. I remember some Mumble-dev stating that Mumble once was registered as "phone application", thus the PulseAudio or so mutes other applications while "phone applications" are running.
Newer versions of Mumble do not have this issue, because they are running as "Games" or something like that.
However, like always, the TeamSpeak devs are not helping at all. Hence, I thought maybe I can force PulseAudio to stop this stupid auto-muting.
Does somebody know if PulseAudio can be configured to stop auto-muting applications when "phone applications" are running? Or generally turning off any auto-mute functionality? I want to *always* control volume/mute myself.
daniel451
(1107 rep)
Oct 7, 2016, 02:41 PM
• Last activity: Nov 30, 2017, 12:58 PM
1
votes
1
answers
567
views
Run two scripts with init.d
I have a start script for TeamSpeak3 server in `/etc/init.d` that is run at the boot time. #! /bin/sh ### BEGIN INIT INFO # Provides: ts3 # Required-Start: $network mysql # Required-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: TeamSpeak3 Server Daemon # Descript...
I have a start script for TeamSpeak3 server in
/etc/init.d
that is run at the boot time.
#! /bin/sh ### BEGIN INIT INFO # Provides: ts3 # Required-Start: $network mysql # Required-Stop: $network # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: TeamSpeak3 Server Daemon # Description: Starts/Stops/Restarts the TeamSpeak Server Daemon ### END INIT INFO set -e PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DESC="TeamSpeak3 Server" NAME=teamspeak3-server USER=teamspeak3 DIR=/opt/teamspeak3-server OPTIONS=inifile=ts3server.ini DAEMON=$DIR/ts3server_startscript.sh #PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME # Gracefully exit if the package has been removed. test -x $DAEMON || exit 0 sleep 2 sudo -u $USER $DAEMON $1 $OPTIONSAnd I need this to happen: 1. Run a script
./MyScript
that exits immediately and is located in TS3 directory
2. Wait some time
3. Run the actual daemon that will stay running
I am not really good with Unix scripting, I just need to run a server with this. I might also mention that I am running latest Ubuntu.
Thanks for help, krejcar25
Amélie Krejčí
(113 rep)
Nov 29, 2016, 09:59 PM
• Last activity: Nov 30, 2016, 07:01 AM
0
votes
1
answers
1180
views
How to setup playing system audio into teamspeak
I have Fedora distro (21) running in a VirtualBox VM I want to be able to take the system's output audio and feed it into the teamspeak input (capture) The reason for this is for a game I play I want to use website soundboards to inject 'game sounds' into teamspeak. Having the ambient sounds connect...
I have Fedora distro (21) running in a VirtualBox VM
I want to be able to take the system's output audio and feed it into the teamspeak input (capture)
The reason for this is for a game I play I want to use website soundboards to inject 'game sounds' into teamspeak.
Having the ambient sounds connected as a separate user allows others to control volume etc.
The VM has the audio host device set to: Null audio driver. Because I don't want the sound played on my host machine where I will also be using teamspeak.
I tried add snd_aloop - but didn't know what I was doing with it and setting the teamspeak capture to the loopback seemed to do nothing
Any help appreciated
Adrian Cornish
(2754 rep)
Jan 22, 2016, 12:16 AM
• Last activity: Jan 22, 2016, 12:50 AM
0
votes
1
answers
588
views
Gameserver with weak hardware - Which Linux Distribution?
Which Linux Distribution should I use for a server with really weak hardware? My acer X1700 has the following specs: - 500GB HDD - 1GB RAM - Intel Quad-Core 2 Q8200 It will a tiny homeserver to play minecraft and use teamspeak.
Which Linux Distribution should I use for a server with really weak hardware?
My acer X1700 has the following specs:
- 500GB HDD
- 1GB RAM
- Intel Quad-Core 2 Q8200
It will a tiny homeserver to play minecraft and use teamspeak.
Tomblarom
(2237 rep)
Apr 3, 2015, 06:15 PM
• Last activity: Apr 3, 2015, 07:19 PM
1
votes
2
answers
5161
views
How to start teamspeak server on reboot as specific user
Linux version on the server is Centos 7.0. Teamspeak server runs with this command: ./opt/teamspeak3-server_linux-x86/ts3server_startscript.sh start My server doesn't have 100% uptime. Therefore, I want the server program to start automatically using a non root user.
Linux version on the server is Centos 7.0.
Teamspeak server runs with this command:
./opt/teamspeak3-server_linux-x86/ts3server_startscript.sh start
My server doesn't have 100% uptime. Therefore, I want the server program to start automatically using a non root user.
gavss
(31 rep)
Oct 8, 2014, 05:45 PM
• Last activity: Dec 15, 2014, 11:04 PM
1
votes
0
answers
1324
views
How to set up MouseButton4 on TeamSpeak
Is there a way to set up Button4/5 to push-to-talk in TeamSpeak? For Example: In Firefox I can undoing and forwarding but TeamSpeak doesn't recognize clicks. I'm using Arch Linux and my mouse is SteelSeries Rival. EDIT: [malloc@arch ~]$ xinput ⎡ Virtual core pointer id=2 [master pointer (3)] ⎜ ↳ Vir...
Is there a way to set up Button4/5 to push-to-talk in TeamSpeak?
For Example: In Firefox I can undoing and forwarding but
TeamSpeak doesn't recognize clicks.
I'm using Arch Linux and my mouse is SteelSeries Rival.
EDIT:
[malloc@arch ~]$ xinput
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ SteelSeries Rival Gaming Mouse id=11 [slave pointer (2)]
⎜ ↳ SteelSeries Rival Gaming Mouse id=13 [slave pointer (2)]
⎜ ↳ AlpsPS/2 ALPS DualPoint TouchPad id=15 [slave pointer (2)]
⎜ ↳ DualPoint Stick id=16 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ Sleep Button id=9 [slave keyboard (3)]
↳ Laptop_Integrated_Webcam_HD id=10 [slave keyboard (3)]
↳ SteelSeries Rival Gaming Mouse id=12 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=14 [slave keyboard (3)]
↳ Dell WMI hotkeys id=17 [slave keyboard (3)]
[malloc@arch ~]$ xinput get-button-map 11
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
[malloc@arch ~]$ xinput get-button-map 13
1 2 3 4 5 6 7
CodeNinja
(111 rep)
Sep 9, 2014, 04:49 PM
• Last activity: Dec 15, 2014, 11:04 PM
Showing page 1 of 12 total questions