LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 08-05-2009, 03:58 PM   #1
Mogget
Member
 
Registered: Dec 2008
Location: Norway
Distribution: Debian
Posts: 43

Rep: Reputation: 15
Adding wvdial to start menu/desktop, running wvdial without shell.


Hello.

Problem: I have to open a shell and write wvdial, then keep the shell up to be able to surf the internet. (This is more an annnoyance than a problem)

Question: I wish to add a line in my Gnome start menu or an icon on the desktop that runs wvdial so i don't have to start a shell and have that shell up while surfing. Also if possible i wish to put an icon or something in lower right corner so i can terminate wvdial when i'm done. Is this possible?

I'm using Backtrack 4 which is Ubuntu 8.04/8.10. Everything is working as it should except for the tiny annoyance from having to open a shell and keep it open to surf the internet.

I have tried using wicd and networkmanager but none of them can handle all three nics/mobiles that i regularly connect to it so i have opted for wicd and wvdial.

Any sugestions on how to solve this annoyance is greatly accepted. Thank you upfront for the help.
 
Old 08-07-2009, 02:08 AM   #2
Refractor
Member
 
Registered: Oct 2008
Location: Rousse, Bulgaria
Distribution: Slackware
Posts: 89

Rep: Reputation: 22
Hi, have you tried starting wvdial from the run dialog of your window manager (alt+f2 in fluxbox/gnome/kde/xfce etc,etc..) ?
You could write a kdialog/zenity driven shellscript (check the manuals on those two if you have them ofc.)
other than that you could try this:
Code:
#!/bin/bash
# wvdial start/stop script
if $1='start'; then
exec wvdial
fi

if $1='stop'; then
killall -HUP wvdial
fi
save it as wvdial.sh, give it executable permissions (chmod +x wvdial.sh) and then just ./wvdial start, then wvdial stop. You are not supposed to keep the terminal going if this works.

Note that I am not familiar with wvdial or backtrack, I just want to help. Dunno if I have syntax errors, I'm on a windows box right now and can't check the shellscript, but you could try it, i suppose it won't hurt
Hope this helps/gives you a hint on how to do this.

Last edited by Refractor; 08-07-2009 at 02:10 AM.
 
  


Reply


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
Get mozilla to start wvdial short101 Programming 5 01-26-2005 10:24 PM
wvdial help Johnsernickle Linux - Networking 1 10-07-2002 04:25 AM
wvdial help Johnsernickle Linux - Newbie 2 10-05-2002 10:49 AM
wvdial pir2 Linux - Networking 2 06-20-2002 07:41 PM
wvdial fonglun Linux - General 1 07-31-2001 03:59 AM


All times are GMT -5. The time now is 01:18 PM.

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