Thursday, April 25, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 9785  / 2 Years ago, thu, may 5, 2022, 9:27:46

I run Ubuntu 12.04 on an old iMac G3. Since the GUI is too resource heavy I have disabled the display manager (lightdm) and am currently running the computer in console mode. How do I establish a mobile broadband connection from the command line?



When I connect the modem it shows up as ttyUSB0 in the Network Manager device list:



$ nmcli dev
DEVICE TYPE STATE
ttyUSB0 gsm disconnected
eth0 802-3-ethernet unavailable


I have also copied a working connection configuration file from another computer to
/etc/NetworkManager/system-connections/Com Hem Default 1. Still, when I try to connect I get an "unknown connection" error:



$ nmcli con up id "Com Hem Default 1"
Error: Unknown connection: Com Hem Default 1.


Any clues?


More From » network-manager

 Answers
4

wvdial is the tool you need. Install it with sudo apt-get install wvdial if needed. You can configure the connection by editing /etc/wvdial.conf:



[Dialer Defaults]
Phone = <dial-out number here>
Username =
Password =
New PPPD = yes


Their man-pages will be really helpful I think. man wvdial and man wvdial.conf for details.


[#37360] Thursday, May 5, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
oraoming

Total Points: 354
Total Questions: 105
Total Answers: 124

Location: Iraq
Member since Sat, Apr 3, 2021
3 Years ago
oraoming questions
Fri, Aug 20, 21, 10:08, 3 Years ago
Mon, May 24, 21, 21:56, 3 Years ago
Mon, Dec 12, 22, 23:21, 1 Year ago
Mon, Sep 12, 22, 11:38, 2 Years ago
;