15 March 2005

Connecting P900 to My Linux Workstation

Posted under: at 17:56

I need to see how my web pages looks on my P900’s Opera after a few changes. But it is unconvenient to send files back and forth to my web server, and then test it using GPRS connection. Even so considering I’m using that GPRS connection to do my uploads :). Yes, I have tested it on my desktop Opera using small screen rendering, but that’s not the real thing.

The following is what I did. Note, this is NOT a guide how to connect to the Internet using p900 as a modem which is probably what you want. This is a guide how to connect a P900 to a desktop computer using Bluetooth under Linux, so that I would be able to open web pages available in the desktop computer’s web server.

This guide is also applicable to the P800 and P910.

Note that I’m assuming that you have been able to make Bluetooth connection in both direction, i.e. try sending pictures to both direction. If you haven’t managed to get Bluetooth working, don’t bother continuing.

  1. Install Bind DNS server. On my Gentoo Linux, it is as simple as emerge bind.
  2. Edit /etc/bind/named.conf. Add the following:

      zone "mrouter" {
          type master;
          notify no;
          file "mrouter";
  3. In /etc/bind/named.conf, make sure the DNS server is available on all interfaces:

      listen-on { any; };
  4. Create a file /var/bind/mrouter containing:

      $TTL 86400
      @ IN SOA ns.mrouter root.mrouter (
         86400 )
             NS ns.mrouter.
       ns A
       wsockhost A
  5. Start the DNS server /etc/init.d/named restart. Verify that you had done the DNS part correctly by issuing the command dig wsockhost.mrouter @ It should return the line wsockhost.mrouter. 86400 IN A If not, go back and try again.

  6. Create file /etc/ppp/peers/p900 containing:

  7. Create a serial port profile on RFComm channel 1: sdptool add --channel=1 SP

  8. Start a PPP server on RFComm channel 1: dund --listen --channel 1 --msdun call p900

  9. Find out the P900 address and its serial port channel by issuing sdptool browse

  10. Bind the P900 serial port channel ‘rfcomm bind 2 [address] [channel]`.

  11. Start the connection by poking the P900 serial port and restarting BIND after the interface are brought up echo > /dev/rfcomm2 ; sleep 5 ; /etc/init.d/named restart.

You can put the step 7, 8 and 10 to your init scripts. But be careful with step #8, make sure your Bluetooth configuration is not discoverable or don’t put step #8 in your init scripts at all.

15 Responses

Trackback: Use this URI to trackback this entry. Use your web browser's function to copy it to your blog posting.

Comment RSS: You can track conversation in this page by using this page's Comments RSS (XML)

Gravatar: You can have a picture next to each of your comments by getting a Gravatar.

Leave a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Warning: Comments carrying links to questionable sites will be removed!