LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Adding wvdial to start menu/desktop, running wvdial without shell. (https://www.linuxquestions.org/questions/linux-desktop-74/adding-wvdial-to-start-menu-desktop-running-wvdial-without-shell-745389/)

Mogget 08-05-2009 03:58 PM

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.

Refractor 08-07-2009 02:08 AM

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.


All times are GMT -5. The time now is 12:30 PM.