Skip to content

Instantly share code, notes, and snippets.

@insanity54
Last active March 17, 2019 09:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save insanity54/22ee3b20cb7c5b9dedc44cff5e8a2341 to your computer and use it in GitHub Desktop.
Save insanity54/22ee3b20cb7c5b9dedc44cff5e8a2341 to your computer and use it in GitHub Desktop.
Automatically programmably unattended install of Teamspeak3 on Linux
#!/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