0

I tried installing Teamspeak 3 and got up to the point where I run ts3client_runscript.sh and changed it to run as a program. However, it still opens with Gedit.

Can someone help me please.

Morpheus
  • 11
  • 1

2 Answers2

1

Here is how to run a .sh file.

  1. Ensure the sh file has execution permissions, to do this right click the file and go to properties and ensure Allow executing file as program is checked.

    Allow executing file as program

  2. Right-click on a blank space in the folder that the .sh file is located (not on the sh file itself!). Select the option to Open in Terminal :

    Open in Terminal (You can also just cd into the location of the file like so: cd ~/Desktop )

  3. Type the following command:

     ./sample.sh
    

    Where sample is the name of your file. Be sure to add the ./ at the beginning.

  4. Hit Enter and your .sh file should run!

Fabby
  • 34,341
  • 38
  • 97
  • 191
Trevor Clarke
  • 892
  • 6
  • 18
  • There is no option to open in terminal. Is there another way to do that. – Morpheus Dec 29 '15 at 19:05
  • Yup.. where is your file located – Trevor Clarke Dec 29 '15 at 19:05
  • You can open terminal, browse to the directory, and just run the script with `./ts3client_runscript.sh`. – Caturday Saint Dec 29 '15 at 19:06
  • @Morpheus you can right click the file, click properties, and the path should be there it may look something like : /home/trevor/Desktop copy this, now in the terminal (open it with ctrl+alt+t) type in : cd /home/trevor/Desktop (or whatever the path was) .. now you can run the ./sample.sh command again – Trevor Clarke Dec 29 '15 at 19:08
  • Its on my desktop – Morpheus Dec 29 '15 at 19:09
  • ok then just do cd ~/Desktop then do ./ts3client_runscript.sh or whatever the name of the file is – Trevor Clarke Dec 29 '15 at 19:10
  • hey if this answer helped please press the checkmark to say that this worked and you approve of my answer – Trevor Clarke Dec 29 '15 at 19:12
  • It seems like i have to run those commands everytime to open teamspeak? – Morpheus Dec 29 '15 at 19:18
  • Yes, unless you create a .desktop file, which is a shortcut that can run the .sh file you can follow method here: http://askubuntu.com/a/299073/373012 but replace the information with your information – Trevor Clarke Dec 29 '15 at 19:21
  • @Morpheus: As you've never accepted an answer on this site before: If this answer helped you, don't forget to click the grey **☑** at the left of this text, which means [Yes, this answer is valid](http://askubuntu.com/help/accepted-answer)! **;-)** – Fabby Dec 29 '15 at 23:29
0

You need to follow the following command

1. First make it executable

chmod u+x TeamSpeak3-Client-linux_XXX_XXX.run   


2. Run the Installer

./TeamSpeak3-Client-linux_XXX-XXX.run

2.1 Press Enter to see the licens
2.2 Press down to scroll down to the end of the licens
2.3 Press Q to exit the licens
2.4 Answer Do you accept the license? (yes/no)" with "yes"


Teamspeak is now extracted at the main directory, the .run file has been.

3. Execute Teamspeak with the Terminal with ./ts3client_runscript.sh

4. (Optional) you can make a desktop starter like a desktop shortcut in windows

cd path/to/your/desktop
gedit teamspeak3-client.desktop

And paste the following data.
You may need to change the paths in this file !

[Desktop Entry]
Type=Application
Name=Teamspeak 3 Client
GenericName=Teamspeak
Comment=Speak with friends
Comment[de]=Spreche mit Freunden
Exec=/path/to/teamspeak/ts3client_runscript.sh
Icon=/path/to/teamspeak/pluginsdk/docs/client_html/images/logo.png
Terminal=false
X-MultipleArgs=false
Categories=Network
StartupWMClass=Teamspeak
StartupNotify=true

Id took all info from https://wiki.ubuntuusers.de/TeamSpeak_3