[SOLVED] Tethering Nokia E71 DUN via bluetooth from Slackware 13.37 64bit
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Tethering Nokia E71 DUN via bluetooth from Slackware 13.37 64bit
As the title says, I'm trying to get a DUN connection through my phone.
I have them paired and trusted, each can see the other, and using the "send file" option in blueman-manager, I can indeed send files, and using the right click option of "browse device" I can indeed browse the device.
If, however I click on the "setup" option, and select either "Connect to serial port" or "Connect to to DUN", it says "Device added successfully, but failed to connect".
Previously in 12.1 I bound rfcomm0 to the local bluetooth device one the correct channel at boot and had a gprs chat script and a file I called with pppd with the modem commands therein. It doesn't seem to be the method of configuration any more.
My guess is that there is no chat script anywhere, so the phone modem doesn't know what to so, but I can't see anywhere to add that.
A bit further on now - gave the scripts x permissions and they now run. Not sure if that's correct since my scripts didn't have those permissions last time, but it's a moot point anyway since it's trying to connect on channel 3 (not channel 4 that rfcomm0 is bound too).
After the failed command. I presume it's now failing as it's trying to connect on the wrong channel. I'll continue to post on my own thread in case it helps anyone.
Channel was a red herring. Problem was the script was wrong - now connects, and can ping out by IP but DNS isn't working.
Check the resolv.conf. pppd is not using /etc/resolv.conf but /etc/ppp?/??? if I remember well. Faced the same issue the last time I was doing the same.
Check the resolv.conf. pppd is not using /etc/resolv.conf but /etc/ppp?/??? if I remember well. Faced the same issue the last time I was doing the same.
Cheers
Yes, that appears to be the issue. /etc/ppp/resolv.conf correctly reflects the new nameservers, presumably the system is still looking at /etc/resolv.conf
Is there an elegant way of ensuring that /etc/ppp/resolv.conf is used? I've seen various solutions like adding pppup and pppdown scripts that copy /etc/ppp/resolv.conf to /etc/resolv.conf but surely there's a more elegant solution; after all if there weren't why would ppp write to /etc/ppp/resolv.conf if that were not the case.
Turns out ip-up and ip-down scripts in /etc/ppp is the correct way. Don't recall having to do it that way before, but hey ho. Any suggestions as to why it's done this way would be grateful any road.
There are some vanilla scripts in /usr/share/doc/ppp-2.4.5/ on this machine - they worked pretty much out of the box for me (just needed to make them executable and amend the first line of the file to #!/bin/sh) and copy across to /etc/ppp. Works fine now.
I'll shall continue to answer my own questions in future in the absence of assistance as I found it helpful to have a written record of what I had done. Hopefully someone may find it useful in future.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.