Datasheet

“main” (Installation and Administration) 2004/6/25 13:29 page 353 #379
i
i
i
i
i
i
i
i
16
Linux on Mobile Devices
On H2:
ip addr add 192.168.1.4/24 dev bnep0
ip link set bnep0 up
Now H1 can be accessed from H2 under the IP 192.168.1.3. Use the
command ssh 192.168.1.4 to access H2 from H1 (provided H2 runs
an sshd, which is activated by default in SUSE LINUX). The command
ssh 192.168.1.4 can also be run as a normal user.
File Transfer from a Mobile Phone to the Host
The second example shows how to transfer a photograph created with a
mobile phone with a built-in digital camera to a computer (without incur-
ring additional costs for the transmission of a multimedia message). Al-
though the menu structure may differ on various mobile phones, the pro-
cedure is usually quite similar. Refer to the manual of your phone, if neces-
sary. This example describes the transfer of a photograph from a Sony Er-
icsson mobile phone to a laptop. The service Obex-Push must be available
on the computer and the computer must grant the mobile phone access. In
the first step, the service is made available on the laptop. This is done by
means of the opd daemon from the package bluez-utils. Start the dae-
mon with the following command:
opd --mode OBEX --channel 10 --daemonize --path /tmp --sdp
Two important parameters are used: --sdp registers the service with the
sdpd and --path /tmp instructs the program where to save the received
data — in this case to /tmp/. You can also specify any other directory to
which you have write access.
Now the mobile phone must “get to know” the computer. To do this, open
the ‘Connect’ menu on the phone and select ‘Bluetooth’. If necessary, click
‘Turn On’ before selecting ‘My devices’. Select ‘New device’ and let your
phone search for the laptop. If a device is detected, its name appears in the
display. Select the device associated with the laptop. If you encounter a PIN
query, enter the PIN specified in /etc/bluetooth/pin. Now your phone
knows the laptop and is able to exchange data with the laptop. Exit the cur-
rent menu and go to the image menu. Select the image to transfer and press
‘More’. In the next menu, press ‘Send’ to select a transmission mode. Select
‘Via Bluetooth’. The laptop should be listed as a target device. Select the
laptop to start the transmission. The image is then saved to the directory
specified with the opd command. In the same way, transfer audio tracks to
the laptop.
353SUSE LINUX Enterprise Server