Kppp — dialer for the kde desktop
The most convenient in operation, but also the most capricious in setting of all «callers». Shows speed and traffic volume.
There are a lot of manuals on the Internet, so I won’t go into detail. I will only say that persistence will definitely lead to success. You have to find out why the program does not work, check the permissions of all the associated files and success will come. All settings are the same as I have listed in the wvdialconf file. Sometimes it takes a few days to configure the crrr. But more often thankfully it starts working in 10 minutes.
Auto jack
For the network to come up automatically at system startup, you must enable the appropriate unit:
systemctl enable ppp@megafon.service
For users of linux mint (ubuntu and the like)
The usb_modeswitch program is currently (see the date at the beginning of this article) under development for this platform. But there is a modem_modeswitch program in the Linux Mint repository. How you install it depends on your distribution.
Once you have installed this program, you must run the following command in the console with root rights or with sudo:
# /lib/udev/modem-modeswitch —vendor 0x12d1 -product 0x1446 —type option-zerocd
After that three devices should appear in the /dev directory: ttyUSB0-ttyUSB2:
# ls /dev | grep ttyUSB
ttyUSB0 ttyUSB1 ttyUSB2
Now start minicom as described in the previous section. All further steps are the same for all distributions.
Completion of the program
Linux: Close minicom by pressing «Ctrl A» and «Q» in sequence.Windows: Simply close the program window.Remove the modem and insert it back in.
Information about modem modes
For the system to recognize the modem correctly, you must switch the modem mode, leaving only two ports enabled: PCUI and
modem. In this case, you will no longer be able to use the other built-in functions of the modem, such as a card reader. Before
to perform the following operations, it is recommended to copy the modem software to your computer, it may be useful when working with the modem on the
Windows operating system.
Note: You must disable the PIN code check on the SIM card.
Setting up the modem connection with the Internet
There are two basic ways to set up a modem connection: by writing Point-to-Point-Protocol scripts or by using proxy programs. Writing scripts is a science, so let’s stick with the second method.
Among the dialers, wvdial stands out, an old and good «dialer» suitable for all distributions. For the KDE desktop, you can use KRRR and Chestnut Dialer; for GNOME, you can use Gnome-ppp. Let’s look at the main dialers.
Network configuration
- Create the file /etc/ppp/options-mobile with the following content:
/dev/ttyUSB0 921600 defaultroute usepeerdns crtscts lock noauth local persist modem nopcomp novjccomp nobsdcomp nodeflate noaccomp ipcp-accept-local ipcp-accept-remote noipdefault
- Create the file /etc/ppp/peers/megafon and write the following in it:
file /etc/ppp/options-mobile connect "/usr/sbin/chat -v -t15 -f /etc/ppp/chatscripts/megafon.chat"
- Create a folder /etc/ppp/chatscripts, and in it the file megafon.chat. Write in it:
ABORT 'NO CARRIER' REPORT CONNECT TIMEOUT 6 '' 'AT' 'OK' 'AT CGDCONT=1,"IP","internet"' 'OK' 'ATD*99*1#' TIMEOUT 30 CONNECT
Done, now you can connect to the Internet using the following command:
судо пон мегафон
And disconnect, introducing:
sudo poff megafon
Switching modem mode
- Once you are connected to the modem, try entering the following command, ignoring incoming messages:
ATE
- If all is well, disable incoming messages with the following command:
AT ^CURC=0
- Finally switch the modem mode:
AT^SETPORT="FF;10,12"
Method two: modem fine-tuning in the linux environment
For Linux fanatics who think «Windows is mastday» and for those who want to take their time tinkering with their favorite system, the Web offers many solutions to this problem. After all, in Linux any task can be solved in many ways. The method described below is good because it does not involve searching for and installing rare and new programs.
The essence of it is still the same: send the command AT^U2DIAG=0 to the modem, disabling all devices except the modem. To do this, we will use the minicom program. This program is very old and is available in the repositories of almost every distribution. So install it as soon as possible and you will need it anyway.
But in order to send any command to the modem you need at least to see the modem in your system. For this purpose your kernel must have serial port emulation support enabled (usbserial or usb-serial). This can be checked with the command:
# lsmod | grep usb | sort
ff_memless 9864 1 usbhid
hid 67072 1 usbhid
usbcore 150896 8 libusual,option,usbserial,usbhid,usbhid,uvcvideo,ehci_hcd,uhci_hcd
usbhid 52096 0
usbserial 38632 1 optionNote the last line of output. I have the usbserial module connected. If you don't, you need to plug it in. How to do this depends on your distribution. This article can't hold instructions on how to do it. You wanted to tinker with your favorite system, didn't you?
What you do next depends on the type of distribution you have.







