Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i have a 3g Modem and it's my only way to connect to internet .

in the GUI Mode it's easy to connect via Network Manager , But how to connect to internet with this modem in the Text Mode?

Thanks in advance .

share|improve this question
Nice question, I need to know, too. – Tamer Shlash Jan 9 '12 at 18:29
up vote 5 down vote accepted


share|improve this answer
nmcli con up id <id> & or nmcli con up uuid <uuid> & thanks that is . – eyadof Jan 9 '12 at 18:51
This is a weird answer... Mind explaining what the answer is? – James Jan 10 '12 at 17:30
I rather like my one-word answer :), but sure: nmcli a command line client for the Network Manager daemon. – tumbleweed Jan 10 '12 at 21:24

i use wvdial to connect to my 3g modem as below:

  1. install wvdial : sudo apt-get install wvdial
  2. edit the wvdial.comf file by any text editor say gedit by below command:

    sudo gedit /etc/wvdial.conf

  3. copy paste the following lines in wvdial.conf

    [Dialer a]

    Modem Type = Analog Modem

    Phone = *99#

    ISDN = 0

    Baud = 460800

    Username = " "

    Password = " "

    Modem = /dev/ttyUSB0

    Init1 = ATZ

    Init2 = at+cgdcont=1,"ip","your apn"

    Stupid Mode = 1

4 connect using ,( u can change the name as u want by replacing a in above wvdial.conf )

wvdial a

(just add apn according to isp you are using like aircelgprs for aircel, bsnnet for bsnl etc. in wvial.conf file in place of "your apn")

share|improve this answer

Your Answer


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.