Results 1 to 4 of 4

Thread: Need help connecting to 3G from the shell, not the GUI

  1. #1
    Join Date
    Jan 2006
    Beans
    41

    Need help connecting to 3G from the shell, not the GUI

    Hi all,

    I live in the sticks, where the only available internet is 3G. I'm using Ubuntu 10.04 on an old Dell laptop, with a Vodacom 3G dongle. It works perfectly. I can connect and disconnect using the Networking GUI thingy in the top right corner of the Gnome desktop.

    However, this laptop actually serves as a router for the house. I am experiencing a big problem.

    The laptop no longer has a screen (part of why it's now a router). My original plan was to VNC into it and connect/disconnect the 3G as needed. But if I boot the laptop without a monitor, X freaks out and won't start. I can SSH into the laptop and attempt to manually run startX, but without a screen attached, it fails. Without the GUI, I can't connect the 3G.

    Right now, I have to connect a monitor to the lappie every time I boot it. If I have to have a big CRT attached to this little laptop, it defeats the object of being a quiet little router that sits on a shelf.

    First prize solution would be if there were a way to connect the 3G from the shell, without having to use the GUI app. Does anyone have any idea how I can launch the 3G connection from the commandline?

  2. #2
    Join Date
    Jul 2005
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Need help connecting to 3G from the shell, not the GUI

    I've used the wvdial utility to do exactly what you are talking about. A couple of Google searches for wvdial should get you up and running in no time. Good luck.
    Rob

  3. #3
    Join Date
    Jan 2006
    Beans
    41

    Re: Need help connecting to 3G from the shell, not the GUI

    Sweet! Thanks for that. It's working like a charm.

    I found this thread particularly helpful:
    http://ubuntuforums.org/archive/index.php/t-633981.html

    EDIT: wait wait wait. Something isn't right.

    This is very bizarre.

    If I SSH into the linux box and sudo wvdial, I get a bunch of errors. I suspected that it was something to do with permissions, so I ran startx, even though it crashed without a monitor attached. But having run X, sudo wvdial now works.

    I can't think why that would be. I'm still pleased because I can launch the 3G without a monitor, but I think it's weird that I have to crash X server first. Any ideas?
    Last edited by TheFr00n; October 5th, 2010 at 10:28 AM. Reason: Weirdness

  4. #4
    Join Date
    Oct 2009
    Location
    A world without windows
    Beans
    Hidden!

    Re: Need help connecting to 3G from the shell, not the GUI

    can you also have a look at (also check out post #26)

    also checkout
    alexfish

    Last edited by alexfish; October 5th, 2010 at 02:06 PM.
    Two tin cans are better than an iphone

    http://www.ehow.co.uk/how_2067160_ma...hone.html?cr=1

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •