Beruflich Dokumente
Kultur Dokumente
$ su -
# wvdialconf
wvdialconf script, builds a configuration file for wvdial. It detects your modem, its maximum baud
rate, and a good initialization string and generates or updates the wvdial configuration file based
on this information.Now if you check the /etc/wvdial.conf file, you will see that wvdialconf has
written the necessary data regarding your modem there. Now you have to open the
/etc/wvdial.conf file and enter the BSNL dial-up access phone number, your username and
password as follows:
; /etc/wvdial.conf file
Phone = 172222
Username = "your login name"
Password = "your password"
exists in the /etc/wvdial.conf file in the [Dialer Defaults] section. If it is not there, then include that
too.
Next you have to modify your /etc/resolv.conf file and enter the primary and secondary DNS
servers of BSNL for name resolution. If you do not do this then, you will be able to login to the
BSNL server, but will not be able to browse the web. My /etc/resolv.conf file is as follows:
Now to connect to the internet, just run wvdial command in the console as follows:
# wvdial
By default only root can run wvdial. To let other users execute wvdial utility, I did the following:
First I created a group called 'modem'.
I Made sure that the group id 503 is not used by any other group; If not then you could use any
other unique number greater than 500.Then I included all users who are allowed to connect to the
internet to this newly created group.
# visudo
From here onwards, those who are in the modem group can execute the following command to
connect to the internet.
$ sudo wvdial
password: ******
[Dialer Defaults]
New PPPD = yes ;Don't forget to include this line
Modem = /dev/modem
Baud = 14000 ;I use the linuxant driver so speed is less
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem