Last active
March 17, 2019 09:30
-
-
Save insanity54/22ee3b20cb7c5b9dedc44cff5e8a2341 to your computer and use it in GitHub Desktop.
Automatically programmably unattended install of Teamspeak3 on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Depends on expect | |
# install with sudo apt-get -y install expect | |
wget https://files.teamspeak-services.com/releases/client/3.2.3/TeamSpeak3-Client-linux_amd64-3.2.3.run | |
chmod +x ./TeamSpeak3-Client-linux_amd64-3.2.3.run | |
expect <<- DONE | |
spawn ~/Downloads/TeamSpeak3-Client-linux_amd64-3.2.3.run | |
expect "RETURN" | |
send "\r" | |
expect ":" | |
send "q" | |
expect "accept" | |
send "y\r" | |
expect eof | |
DONE | |
cp -r ~/Downloads/TeamSpeak3-Client-linux_amd64 ~/teamspeak | |
cat <<EOF >~/teamspeak/teamspeak.desktop | |
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Name=Teamspeak 3 | |
GenericName=Teamspeak | |
Comment=Chat with your team using VoIP | |
Keywords=Teamspeak;ts;ts3;team;speak;voip;voice; | |
Exec=${HOME}/teamspeak/ts3client_runscript.sh | |
Icon=teamspeak | |
Terminal=false | |
Categories=Graphics;2DGraphics;RasterGraphics;GTK; | |
EOF | |
sudo cp ~/teamspeak/teamspeak.desktop /usr/share/applications/ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment