Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Hardware Troubleshooting in Linux => Other Devices => Topic started by: christopher_1 on April 15, 2005, 04:42:25 PM
-
Hi,
I am using a TataIndicom LG LDP 340 E phone, I want to connect to the net in Linux, but I am unsuccessful, I use red hat Linux version 2.4.20-6, I tried some of the methods given in the web. The following are the results I got from those steps:
Method1:
I ran the following commands from root.
# !/bin/bash
echo "user internet password internet" > $HOME/.ppprc
pppd /dev/ttyS0 115200 debug usepeerdns defaultroute noauth connect '/usr/sbin/chat -v "" at+crm=1 OK "atdt#777" CONNECT' mtu 264
It gets connected, I can infer that from my phone display because the timer starts and I get T 9.6 R 9.6, but when I try to browse I get the following message” www.yahoo.com could not be found. Please check the name and try again.”
I can get disconnected with this script.
# !/bin/bash
killall -9 pppd
Method 2:
I created a file with the name wvdial.conf in etc directory. The following are the contents of the file:
[Modem0]
Modem=/dev/ttyS0
Baud=115200
SetVolume=0
Dial Command = ATDT
init1=ATZ
init2=AT+CRM=1
FlowControl= Hardware (CRTSCTS)
[Dialer reliance]
Username= internet
Password= internet
Phone=#777
Stupid Mode= 1
Inherits = Modem0
After creating this file I ran wvdial from the root and this is what I got.
[root@localhost root]# wvdial tata
--> WvDial: Internet dialer version 1.53
--> Warning: section [Dialer tata] does not exist in wvdial.conf.
--> Cannot open /dev/modem: No such file or directory
--> Cannot open /dev/modem: No such file or directory
--> Cannot open /dev/modem: No such file or directory
Please help me to fix this problem, I am able to connect to the net in all windows versions like 98,2000,XP etc .
Regards,
Christopher.
-
Hi
This is not a big issue, I have connected with this ph previously many times..
I know what u r missing...
Okk after Connected to internet .. Check ur ip-address..., If it gets ip-address automatically it means that u r connected...
& plzz make entry in /etc/resolv.conf file of ur DNS servers manually.......
as In this Connection there is a problem that it cant make entry in /etc/resolv.cnf file...
& if u dont know ur DNS addresses then go to windows & check the DNS addresses there, as when u conncted to windowz using this phone.. it takes DNS addresses automatically but in Linux it cant....
So after saw ur DNS addresses entries in Windowz make it in Linux
in /etc/resolv.conf file(THIS IS THE STEP U MISSED I THINK)
After that ur Internet will work....
Enjoy
Gaurav
(
-
Hi,
Thanks for your timely help, yes the problem was with DNS server,i got the settings from windows and now it is working fine.
Regards,
Christopher.
-
hi,
I am having a problem with the Tata walky phone conecting to the net.
I'm using the second approach (WvDial). Most of the time it does not dial. but even when it does dial i get the following error
"pppd returned with an exit code of 10".
I checked the man pages for this exit code and it means that "pppd was unable to find another server that acceptd IP protocol".
Weird ?
Any ideas what next ?
Please let me have my eyes (internet) back !!!
Cheers,
Abhinav
-
Dear Abhinav,
Please try the following procedure:
1. create a script file called upnet.sh (used for connecting)with the following contents
# ! /bin/bash
echo "user internet password internet" > $HOME/.ppprc
pppd /dev/ttyS0 115200 debug usepeerdns defaultroute noauth connect '/usr/sbin/chat -v "" at+crm=1 OK "atdt#777" CONNECT' mtu 264
2. create another script file called downnet.sh(used for disconnecting) with the following contents
# !/bin/bash
killall -9 pppd
3. now you have to specify the dns server name in the file called resolv.conf which you have to create in the /etc directory.
if you dont know the dns server name you can follow this:
if you have windows OS, connect to the net , open a commond prompt and type ipconfig /all it gives ur primary DNS and secondary DNS note it down.
In the linux platform open the resolv.conf file and type
nameserver=the primary DNS no u got in windows
nameserver=the secondary DNS no u got in windows
NOW U CAN RUN upnet.sh TO CONNECT TO THE NET.
Regards,
Christopher.
-
Hi,
I am using a TataIndicom LG LDP 340 E phone, I want to connect to the net in Linux, but I am unsuccessful, I use fedora core 4, I tried some of the methods given in the web. The following are the results I got from those steps:
Method1:
I ran the following commands from root.
# !/bin/bash
echo "user internet password internet" > $HOME/.ppprc
pppd /dev/ttyS0 115200 debug usepeerdns defaultroute noauth connect '/usr/sbin/chat -v "" at+crm=1 OK "atdt#777" CONNECT' mtu 264
It gets connected, I can infer that from my phone display because the timer starts and I get T 9.6 R 9.6, but when I try to browse I get the following message” www.yahoo.com could not be found. Please check the name and try again.”
I can get disconnected with this script.
# !/bin/bash
killall -9 pppd
Method 2:
I created a file with the name wvdial.conf in etc directory. The following are the contents of the file:
[Modem0]
Modem=/dev/ttyS0
Baud=115200
SetVolume=0
Dial Command = ATDT
init1=ATZ
init2=AT+CRM=1
FlowControl= Hardware (CRTSCTS)
[Dialer reliance]
Username= internet
Password= internet
Phone=#777
Stupid Mode= 1
Inherits = Modem0
After creating this file I ran wvdial from the root and this is what I got.
[root@localhost root]# wvdial tata
--> WvDial: Internet dialer version 1.53
--> Warning: section [Dialer tata] does not exist in wvdial.conf.
--> Cannot open /dev/modem: No such file or directory
--> Cannot open /dev/modem: No such file or directory
--> Cannot open /dev/modem: No such file or directory
Please help me to fix this problem, I am able to connect to the net in all windows versions like 98,2000,XP etc .
Regards,
Christopher.
-
Hi rahul
I have already given solution in my above post...
OK i will tell u again:
After Connected to internet .. Check ur ip-address..., If it gets ip-address automatically it means that u r connected...
& plzz make entry in /etc/resolv.conf file of ur DNS servers manually.......
as In this Connection there is a problem that it cant make entry in /etc/resolv.conf file...
& if u dont know ur DNS addresses then go to windows & check the DNS addresses there, as when u conncted to windowz using this phone.. it takes DNS addresses automatically but in Linux it cant....
So after saw ur DNS addresses entries in Windowz make it in Linux
in /etc/resolv.conf file(THIS IS THE STEP U MISSED I THINK)
After that ur Internet will work....
Enjoy
Gaurav
-
If your Tata Wlaky LG LST 350E (if I remember the model correctly) is connected to a USB port then the device is /dev/ttyACMx where x is a number (zero onwards) to which the phone is connected. (Try all if you are not sure!) I personally use the rconnect-0.5 script to connect my phone on Fedora Core 4. I you want to use that search for it over the internet and download it.
PS:Don't forget to edit the file /etc/resolv.conf as described in the above posts.
-
my modem is trying to connect but fails plese help.
[root@localhost ~]# wvdial TATA
--> WvDial: Internet dialer version 1.54.0
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
ATQ0
OK
--> Re-Sending: ATZ
ATZ
OK
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
ATQ0
OK
--> Re-Sending: ATZ
ATZ
OK
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0
ATQ0
OK
--> Re-Sending: ATZ
ATZ
OK
[root@localhost ~]#
-
Have you set up right baud rate in the phone ?
BTW, see this if that doesn't works..
---> internet on my linux FC5 reliance lg350 USB (http://www.linuxsolved.com/forums/index.php?topic=2084.0)
-
two things I have set in phone are cable type and modem speed
-
You try using rconnect script , may be that can help you straight !
-
in my win2k it is working
-
I have rconnect-cmdline-1.0. but I dont understand how to install it even after reading the readme
any help
-
You have to all from commands.
Read it again and carefully, you will get the idea.
-
Where will I run sh. install. sh ?
Is it at terminal or at run command at start menu?
I tried at both place no result, I also tried to run the install srcipt , no luck.
I will ty again what is your openion?
sherif
-
goto terminal and then navigate to to the directory where install.sh is located, run it from there itself.
-
those who are not able to download this may contact me
sherifmayika@gmail.com
-
hi all,
first thanks for giving adivices on connecting to internet.
now i am able to connect internet using r coonect and kppp but no access to any web sites
I have frirewalls off
please help
sherif
-
open /etc/resolv.conf and add lines
nameserver xxx.xxx.xxx.xxx
nameserver yyy.yyy.yyy.yyy
Here xxx.xxx.xxx.xxx and yyy.yyy.yyy.yyy means name server of your ISP, you can find it while you are connected in windows , if its windows XP then you find them by typing following at command prompt in XP.
ipconfig /all
It will also list available DNS server for your ppp0 !
-
Thanks ricky
it solved. i had to correct DNS entries
-
even after trying all the methods in this forum im not able to use internet on linux thro tataindicom lsp 340e.. plz help me..
It gets connected, I can infer that from my phone display because the timer starts and I get T 9.6 R 9.6, but when I try to browse I get the following message” www.yahoo.com could not be found. Please check the name and try again.”
i hav edited /etc/resolv.conf but still i recieve the above message.
regards,
satish
-
You post output of following here when you are connected :
ipconfig ppp0
Also plz make sure you have properly followed :
Connecting CDMA phone in linux for internet (http://www.linuxsolved.com/forums/ftopic612.html)
Kindly, tally again your configuration.
Regards!