Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was wondering how to make a clickable terminal shortcut for my desktop using the command easytether connect.

I don't want to have to open/close the terminal every time I wish to connect to the Internet through my phone.

I've tried updating my gnome-panel but I can only make a new directory on my desktop.

share|improve this question
    
do you mean create Terminal Shortcut on desktop or embed terminal on desktop? –  penreturn Aug 31 '12 at 18:09
    
Please make it clearer to us what is the problem and what you want. –  hakermania Aug 31 '12 at 18:15
add comment

2 Answers

Right click the desktop and create an empty file (or use gedit) named easytether.desktop. Paste this into this file:

[Desktop Entry]
Name=Easytether
Exec=easytether connect
Terminal=true
Type=Application

and save! You will then need to make the file executable, by editing the properties of the file, or running: chmod +x easytether.desktop.

  • The Name=Easytether line specifies the name of the shortcut that will appear to the user.

  • The Exec=easytether connect line specifies the command to be run, in this case, easytether connect.

  • The Terminal=true line specifies that the command should be run in GNOME Terminal, so that the user can inspect its output.

share|improve this answer
    
it worked thx!! ubuntu 12.10, btw, if you want to drag/drop at cairo-dock, it will fail but the cairo dock launcher has a gui to edit its fields so it is not a big problem :) –  Aquarius Power Apr 30 '13 at 19:49
add comment

The easiest way, that is also useful in other platforms, would be:

  • Right click->Create new document->Empty document
  • Call it howeverYouWant.sh
  • Open it, and edit it writing in each line each line you'd use in the terminal, ergo: "easytether connect"
  • Right click it->Properties->Permissions->Allow executing
  • Double click the file, and choose Run in terminal
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.