Debian GNU/Linux (sid) with the SonyEricsson P900 |
First of all, to avoid misunderstandings, this page is not about how to install GNU/Linux on the P900 but about how to interact with the P900 from GNU/Linux the easiest possible way!
|
deb http://debian.usefulinc.com/gnome ./ deb-src http://debian.usefulinc.com/gnome ./Then do an apt-get update and install the gnome-bluetooth package. Now you've got a gnome-bluetooth-manager for configuring the Bluetooth devices, a gnome-obex-server for receiving beamed files and a gnome-obex-send for sending files to the phone. It's as easy as that. No further configuration is required.
rfcomm11 { bind yes; device <bdaddr>; channel 11; comment "P900 p3nfs connection"; }Where <bdaddr> is the Bluetooth device address of your P900. Then you can start up nfsclient on your phone, put it into Bluetooth mode and enter the following on the GNU/Linux box:
$ p3nfsd -UIQ -tty /dev/rfcomm11 -dir <mountpoint>I suggest you put this line in a small script and place it with a convenient name into your ~/bin/. I called it blue-nfs. Oh, if you want to start p3nfsd as non-root user, don't forget to set the s-bit of /usr/bin/p3nfsd as Debian ships it without the s-bit set:
# chmod +s /usr/bin/p3nfsd
rfcomm1 { bind yes; device <bdaddr>; channel 1; comment "P900 Serial Port connection"; }Where <bdaddr> is again the Bluetooth device address of your P900. As the P900 calls back with PPP, you need to enable dund and a PPP options file. To enable dund, edit the file /etc/default/bluez-utils to contain the following two lines:
DUND_ENABLED=1 DUND_OPTIONS="--listen --channel 3 call p900-incoming"Place a file p900-incoming with the following content into directory /etc/ppp/peers/ so that dund can start up pppd with those options:
noauth crtscts lock proxyarp passive ipcp-accept-local ipcp-accept-remote ms-dns <dns_server> <server>:<client>Where <dns_server> is the IP of the name server, <server> is the IP of the GNU/Linux PC and <client> is the IP the P900 should get assigned. The name server must be able to resolve the host name wsockhost.mrouter. Therefore I have set up BIND (package bind9) in order to resolve wsockhost.mrouter to the IP of my server as well. You can grab my db.mrouter zone file and take a look. 192.168.0.5 is the IP of my server running all this stuff.
ip_forward=yesto your /etc/network/options or activate it manually by doing:
# echo 1 > /proc/sys/net/ipv4/ip_forward
$ sdptool add --channel=3 SP $ cat /dev/rfcomm1I suggest you put those two lines in a small script and place it with a convenient name into your ~/bin/. I called it blue-ppp.
Bernd Westermann - Nokia 3650 - Linux PC
Alfonso Martone - Sony Ericsson P900 & Linux index
Bugra Uytun - SonyEricsson P900
Kevin Boone - Using Linux with the Sony-Ericsson P800
Serbian translation by Marisav Jevremovic
Click here to go back to the index page.