5

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?

muru
  • 193,181
  • 53
  • 473
  • 722
eyadof
  • 1,474
  • 1
  • 16
  • 17

3 Answers3

7

nmcli

tumbleweed
  • 7,986
  • 23
  • 36
1

I use wvdial to connect to my 3G modem as below:

  1. install wvdial :

    sudo apt-get install wvdial
    
  2. edit the wvdial.conf 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 ( you can change the name as you 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")

anonymous2
  • 4,268
  • 7
  • 33
  • 61
gunjan parashar
  • 1,347
  • 6
  • 26
  • 44
  • I've been looking after this for two hours. Raspbian working with Huawei 3531 HSPA+ & Freedompop just changing "your apn" for freedompop.foggmobile.com" and editing this file: `#/etc/ppp/peers/wvdial noauth name wvdial # uncomment usepeerdns if you want to use your carriers dns server. # Leave commented if you are using google dns 8.8.8.8/8.8.4.4 or other publicly available dns servers #usepeerdns defaultroute replacedefaultroute` – edumgui Feb 25 '17 at 16:48
0

nmtui

It is a very basic UI for Network Manager. More convenient than "nmcli" IMHO.