Last modified on 8 March 2017, at 11:56

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

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