Hello everyone, we all know that some 4G modems are generally able to directly connect the internet without doing the initial configuration as in the Windows and Ubuntu operating systems.
However, on the Raspbian operating system (Raspberry OS), it takes several initial steps for the modem to work and connect to the internet. don't worry about that, so in this tutorial I will share tutorials to all of you about how to get an internet connection on raspberries with a 4G modem using wvdial packages.
STEP 1 : First, the hardware that you need to prepare is the Raspberry Pi device including the OS (it's up to you to use Raspberry 3 or 4) and a 4G modem (make sure that the modem has a stick mode), in this case I use a 4G Huawei E3372 dongle stick modem.
STEP 2 : The second step that needs to be done is to install a number of additional packages such as usb-modeswitch, wvidal and ppp. The package should be installed using a terminal on the Raspbian operating system. The following is the package installation tutorial:
sudo apt-get update
sudo apt install ppp usb-modeswitch wvdial
STEP 3 : Third, connect the modem dongle stick to the Raspberry Pi and verify that the modem is connected to the Raspberry Pi device. you can do that by opening a terminal and writing the command lsusb.
STEP 4 : This is your time to configure the modem, you can definitely do it by creating the "wvdial.conf" file in the / etc directory and then modifying the contents of the "wvdial.conf" file as follows:
wvdialconf /wvdial.conf
Continue to modify the contents of the file, here I use the command sudo gedit to open and modify the contents of the file., the command sudo cat should also be used.
sudo gedit /etc/wvdial.conf
STEP 5 : Almost done, you need to do additional configuration. You should change the default route used.
sudo gedit /etc/ppp/peers/wvdial
See you next time guys ^_^
Tidak ada komentar:
Posting Komentar