Hi list,
I've searched the web, but short of
http://wiki.bluez.org/HOWTO/SerialConnections (the wiki is broken
currently btw), I could not find any information how one is supposed
to provide a dial-up means (for a Palm Tungsten) via bluetooth with
bluez 4. The wiki page shows me how to use the dbus services, but
not how to link that with pppd or integrate it properly with
a system.
I can use dund from bluez-compat successfully still, but I know it's
deprecated. How am I expected to do serial-over-bluetooth in the
future?
--
martin | http://madduck.net/ | http://two.sentenc.es/
"i believe that the moment is near when by a procedure
of active paranoiac thought, it will be possible
to systematise confusion and contribute to
the total discrediting of the world of reality."
-- salvador dali
spamtraps: [email protected]
also sprach Luiz Augusto von Dentz <[email protected]> [2009.07.20.1319 +0200]:
> On Mon, Jul 20, 2009 at 2:23 AM, martin f krafft<[email protected]> wrote:
> > It's the wrong way around: I don't want to connect my computer via
> > the phone, I want to give my Palm access to the Net via my computer.
>
> Oh sorry, we don't have a solution for this yet... Usually people use
> pan profile when they need such thing.
I don't think this works with the palm, which needs a serial link
and then can speak network over it. It does not have a TCP/IP stack
connected to bluetooth.
> Before replying please check that both NetworkManager and connman
> can be used without any ui, in fact they are daemons normally
> started during the boot.
Yes, I am aware of that. However, both come with a footprint
I generally associate with desktop systems, e.g. dbus, policykit, or
their designs, which have clearly been made with a GUI in mind.
--
martin | http://madduck.net/ | http://two.sentenc.es/
"the association on this web site and in peter chappell
publications, articles and books, made between remedy and diseases
is used for clarity, but is not the functional reality and does not
imply these resonances treat any disease. they merely vitalise and
inform the self healing system."
-- peter chappell
spamtraps: [email protected]
Hi,
On Mon, Jul 20, 2009 at 2:23 AM, martin f krafft<[email protected]> wrote:
> It's the wrong way around: I don't want to connect my computer via
> the phone, I want to give my Palm access to the Net via my computer.
Oh sorry, we don't have a solution for this yet... Usually people use
pan profile when they need such thing.
> Right, but they are Linux Desktop. dund worked on non-desktops.
>
> It's scary to see this desktop trend. It's like Windows NT 4.0, and
> the Windows-typical need to log in to be able to start a firewall or
> fileserver.
Before replying please check that both NetworkManager and connman can
be used without any ui, in fact they are daemons normally started
during the boot.
--
Luiz Augusto von Dentz
Engenheiro de Computa??o
martin f krafft wrote:
> also sprach Luiz Augusto von Dentz <[email protected]> [2009.07.19.2020 +0200]:
>
>> Have you tried this:
>> https://help.ubuntu.com/community/BluetoothDialup#Configuring%20PPP
>>
>
> It's the wrong way around: I don't want to connect my computer via
> the phone, I want to give my Palm access to the Net via my computer.
>
I use this (Palm T3). It's a bit of a hack, and relies on proxyarp,
which means it doesn't work if your computer is using a second PPP link
itself for networking (or OpenVPN). NAT would be cleaner. It also
(enormous hack) guesses an IP address for the Palm by XORing the
machine's own IP by 0.0.0.64.
#!/bin/sh
: ${rfdevice:=rfcomm0}
iface=`netstat -rn|sed -n -e 's/^0\.0\.0\.0 .*
\([a-z][a-z]*[0-9][0-9]*\)$/\1/p'`
set -- x `ifconfig $iface | sed -n -e 's/^ *inet
addr:\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)\.\([0-9][0-9]*\) .*$/\1
\2/p'`
localIP="${2}.${3}"
bluetoothIP="${2}.$((${3}^64))"
dns=`sed -n -e 's/^nameserver *\([0-9][0-9.]*\)[^0-9]*$/ms-dns \1/p' <
/etc/resolv.conf`
sysctl -w net.ipv4.ip_forward=1
sdptool add --channel=1 SP
rfcomm --encrypt watch "$rfdevice" 1 pppd '{}'
"${localIP}:${bluetoothIP}" local nodetach noauth proxyarp $dns
> Right, but they are Linux Desktop. dund worked on non-desktops.
>
> It's scary to see this desktop trend. It's like Windows NT 4.0, and
> the Windows-typical need to log in to be able to start a firewall or
> fileserver.
>
>
It does seem like an omission.
> It's scary to see this desktop trend. It's like
> Windows NT 4.0, and the Windows-typical need to log
> in to be able to start a firewall or fileserver.
Tell me about it. I keep seeing people (including me)
looking for command-line applications to do things
with BlueZ 4.x and getting responses along the lines
of "it works with [GNOME/KDE application], so just run
that, or look at the source code"... or people simply
get no response at all. What concerns me is it not
apparent there is a presumption that there needs to
be command-line applications to do everything which
can be done in GUIs. Real, supported applications,
not just pointers to a web page somewhere with a forum
posting with a Python script which calls dbus and sort
of does the desired thing, if the API has not changed
too much since the posting... in which case it may
just fail with an obscure error.
also sprach Luiz Augusto von Dentz <[email protected]> [2009.07.19.2020 +0200]:
> Have you tried this:
> https://help.ubuntu.com/community/BluetoothDialup#Configuring%20PPP
It's the wrong way around: I don't want to connect my computer via
the phone, I want to give my Palm access to the Net via my computer.
> > Is there any non-"wizard" and non-GUI support planned? I really
> > appreciated how dund just ran as a daemon.
>
> You can write a shell script wizard if you prefer, it is basically
> a DBus client to talk to bluetoothd. Linux desktop already have
> much better alternatives (NM and connman) to what dund does they
> just need some adaptations, so no we don't consider writing an
> alternative to dund on BlueZ.
Right, but they are Linux Desktop. dund worked on non-desktops.
It's scary to see this desktop trend. It's like Windows NT 4.0, and
the Windows-typical need to log in to be able to start a firewall or
fileserver.
--
martin | http://madduck.net/ | http://two.sentenc.es/
(a)bort, (r)etry, (p)retend this never happened
spamtraps: [email protected]
HI,
On Sun, Jul 19, 2009 at 2:57 PM, martin f krafft<[email protected]> wrote:
> So you are saying that it should not be too hard to write a little
> programme that got the port and which fires off pppd on connect?
Have you tried this:
https://help.ubuntu.com/community/BluetoothDialup#Configuring%20PPP
> Is there any non-"wizard" and non-GUI support planned? I really
> appreciated how dund just ran as a daemon.
You can write a shell script wizard if you prefer, it is basically a
DBus client to talk to bluetoothd. Linux desktop already have much
better alternatives (NM and connman) to what dund does they just need
some adaptations, so no we don't consider writing an alternative to
dund on BlueZ.
--
Luiz Augusto von Dentz
Engenheiro de Computa??o
also sprach Luiz Augusto von Dentz <[email protected]> [2009.07.19.1936 +0200]:
> You can make use of Serial interface by calling
> Serial.Connect(''dun"), this will return you a bonded port to use,
> it is up to you to use pppd or whatever you prefer to connect,
> note that the port will not be stored permanently.
So you are saying that it should not be too hard to write a little
programme that got the port and which fires off pppd on connect?
> There are some plans to integrate it with NetworkManager and
> connman, but there are some parts missing like possible
> integrating it properly with the wizard and store permanently.
Is there any non-"wizard" and non-GUI support planned? I really
appreciated how dund just ran as a daemon.
--
martin | http://madduck.net/ | http://two.sentenc.es/
"the only thing that sustains one through life is the consciousness of
the immense inferiority of everybody else, and this is a feeling that
I have always cultivated."
-- oscar wilde
spamtraps: [email protected]
Hi,
On Sat, Jul 18, 2009 at 2:54 AM, martin f krafft<[email protected]> wrote:
> Hi list,
>
> I've searched the web, but short of
> http://wiki.bluez.org/HOWTO/SerialConnections (the wiki is broken
> currently btw), I could not find any information how one is supposed
> to provide a dial-up means (for a Palm Tungsten) via bluetooth with
> bluez 4. The wiki page shows me how to use the dbus services, but
> not how to link that with pppd or integrate it properly with
> a system.
You can make use of Serial interface by calling
Serial.Connect(''dun"), this will return you a bonded port to use, it
is up to you to use pppd or whatever you prefer to connect, note that
the port will not be stored permanently. There are some plans to
integrate it with NetworkManager and connman, but there are some parts
missing like possible integrating it properly with the wizard and
store permanently.
--
Luiz Augusto von Dentz
Engenheiro de Computa??o