Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support 3G/4G USB modem #10

Open
jonnor opened this issue Sep 28, 2018 · 1 comment
Open

Support 3G/4G USB modem #10

jonnor opened this issue Sep 28, 2018 · 1 comment

Comments

@jonnor
Copy link
Owner

jonnor commented Sep 28, 2018

I had success on our testing device following this procedure. Would be nice to get in as an option in Ansible. Tested with a MyCall SIM (APN options and call differ a bit between providers).

apt-get install modemmanager network-manager

jonnor@dlock-2:~ $ sudo nmcli c add con-name "3G" type gsm ifname "*" apn "internet"
jonnor@dlock-2:~ $ sudo nmcli c mod 3G connection.autoconnect yes
jonnor@dlock-2:~ $ sudo nmcli c mod 3G gsm.pin "1234"
jonnor@dlock-2:~ $ sudo nmcli c up 3G

jonnor@dlock-2:~ $ sudo cat /etc/NetworkManager/system-connections/3G

[connection]
id=3G
uuid=73c872e7-b1ba-4d76-b3a0-2d7c58d0ee7e
type=gsm
permissions=

[gsm]
apn=internet
number=*99#
pin=1234

[ipv4]
dns-search=
method=auto

[ipv6]
addr-gen-mode=stable-privacy
dns-search=
method=auto
@jonnor
Copy link
Owner Author

jonnor commented Oct 3, 2018

I tried just copying in the file on a new file system, did not work. Needed to add the connection using nmcli, and set it to autoconnect, then could edit it in place.

jonnor added a commit that referenced this issue Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant