Cellular modem configuration via Linux command line (for non-GUI OS)

From fit-PC wiki
Revision as of 11:56, 8 March 2017 by Denis (Talk | contribs)

(change visibility) (diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Cellular modem configuration from command line in non-GUI Linux distributions Terminal only):

# Install wvdial tool:

## NOTE: On different Linux Distributions installation command may be different
$ sudo apt install wvdial

# Configuration file /etc/wvdial.conf should look like this:
$ cat /etc/wvdial.conf

[Dialer Defaults]
Init1 = ATZ
Init2 = AT+CGDCONT=1,"IP","net.hotm"
Baud = 115200
Modem = /dev/ttyACM3
Phone = *99#
Password = dummy
Username = dummy

## NOTE: replace "net.hotm" with your operator name

# Run wvdial dialer
$ sudo wvdial &

# Thats all, press [Enter] to get to the command line again and test your connection:
$ ping google.com