Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-19-2010, 11:10 AM   #1
Registered: Apr 2006
Posts: 62

Rep: Reputation: 15
enable broadband 3G connection from desktop icon

I am able to configure a working 3G connection but I do not want it to be enabled at startup. I want it "on-demand" and I need that it is easy for non-skilled persons, that is double-clicking a desktop icon.
So I think I have to call a script or something else but I do not know the command.
Old 10-19-2010, 12:23 PM   #2
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian + kde 4 / 5
Posts: 6,837

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
Here's a simple bash script that will toggle between two commands. It saves the current state in a hidden file in your home directory, and checks it each time to see what should be done. If the hidden file doesn't exist or doesn't contain the correct information, it defaults to running the "off" command.

[[ -r $HOME/.netonoff ]] && . $HOME/.netonoff

case ${status:-on} in

     off) [insert "ON" command here]

     *)  [insert "OFF" command here]


echo "status=$status" > $HOME/.netonoff

exit 0
You'll need to add the commands you want to use in the appropriate places.

Just save this to a text file, chmod it to make it executable, then create a shortcut to launch it. Assuming no complications, that should do it.
Old 10-19-2010, 01:24 PM   #3
Registered: Apr 2006
Posts: 62

Original Poster
Rep: Reputation: 15
thank you for the trick but it is not useful now. I need a command to start a 3G connection that is already configured, say "broadband1", in ubuntu lucyd linx.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I enable wireless connection outside of GNOME Desktop? bgoodr Linux - Wireless Networking 2 01-02-2011 12:05 AM
GNOME SlackBuild - Broadband icon moved and renamed ? slacker_et Slackware 1 12-31-2009 06:53 PM
Enable Remote Desktop Connection in Squid anu_here Linux - Networking 1 03-24-2009 08:34 AM
script to move desktop icon to desktop/escritorio, how to know language? permalac Linux - Newbie 3 01-10-2009 09:49 AM
Desktop icons dosnt have ToolTips (apear when mouse hover above desktop icon) Acidx Linux - General 1 12-03-2006 08:48 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration