Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to connect to the internet using a Huawei K3772 using a netctl profile. The mode of the device changed using usb_modeshwitch and the lsub command returns me this:
Code:
Bus 002 Device 012: ID 12d1:14cf Huawei Technologies Co., Ltd. K3772
That's my profile config
Code:
Description='Example PPP mobile connection'
Interface=ttyUSB0
Connection=mobile_ppp
# Use default route provided by the peer (default: true)
#DefaultRoute=true
# Use DNS provided by the peer (default: true)
#UsePeerDNS=true
# The user and password are not always required
#User='example@yourprovider.com'
#Password='very secret'
# The access point name you are connecting to
#AccessPointName=apn
AccessPointName=internet
# If your device has a PIN code, set it here. Defaults to 'None'
#Pin=None
Pin=5102
# Mode can be one of 3Gpref, 3Gonly, GPRSpref, GPRSonly, None
# These only work for Huawei USB modems; all other devices should use None
Mode=3Gpref
Clearly the chat script sends an invalid parameter or character and this is causing problems. I'm not familiar with netctl so I'm not sure if this is hard-coded (eg within mobile_ppp) or can be adjusted via a config file somewhere. It might be that a bug report is required.
In the interim, you could try using 'wvdial' instead. I've used this successfully in the past to activate various 3G mobile broadband devices. Use 'wvdialconfig' to get an initial config file generated (/etc/wvdial.conf) then edit it with the appropriate settings for your device and service provider.
I have already read these but i insist to use netctl because the sim card I'm using is from my mobile and i don't want to disable the pin. Netctl gives you the opportunity to set your pin in its configuration. wvdial as i understood doesn't support pin number.
I have already read these but i insist to use netctl because the sim card I'm using is from my mobile and i don't want to disable the pin. Netctl gives you the opportunity to set your pin in its configuration. wvdial as i understood doesn't support pin number.
Actually, in general wvdial supports any feature accessible via the standard Hays command set, including PIN. For exampe...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.