Maemo PC Connectivity provides some tools to easily share files between maemo device and host PC. That is, you can can mount the file system of maemo device on host PC over a network and interact with it as though it is mounted locally. Also, it is possible to mount a file system of host PC on maemo device. For that, you have to install maemo-pc-connectivity meta package on maemo device and host-pc-connectivity package on host PC (Linux, Windows and Mac OS). Next, it will be described how to use the file sharing tools available on Maemo PC Connectivity. To simplify, it is assumed that you already have a Usb network between maemo device and host PC.
If follows the recommended tools to mount the file system of a maemo device on host PC:
Linux | Windows | Mac OS | |
SSHFS | X | X | |
NFS | X | X | |
SAMBA | X | X | X |
To mount the file system of a host PC on maemo device, it is recommended the following tools:
Linux | Windows | Mac OS | |
SSHFS | X | X | |
NFS | X | X | |
SAMBA | X | X | X |
Note: on host PC, you should type the commands bellow at terminal on Linux and Mac OS and at Cygwin shell on Windows.
Note: SSHFS does not work on Windows host PC.
SSHFS (SSH File System) is a file system client based on the SSH protocol. It allows to mount locally a remote file system via SSH. With SSHFS, you can remotely access maemo device file system from host PC and vice-versa. If you want to mount maemo device file system on your host PC, you can execute the following commands:
$ mkdir ~/maemo $ sshfs user@192.168.2.15:/ ~/maemo -o rw,nonempty user@192.168.2.15's password: <type user password here>
If you did not set the SSH password for ``user'' yet, you can use the ``root'' account. You should setup the password for ``user'' account following the next steps:
$ ssh root@192.168.2.15 root@192.168.2.15's password: <type root password here> Nokia-810:~# passwd user Changing password for user Enter the new password (minimum of 5, maximum of 8 characters) Please use a combination of upper and lower case letters and numbers. New password: <type new user password here> Re-enter new password: <retype user password> Password changed
If you want to mount host PC file system on your maemo device, you can execute the following commands:
$ mkdir ~/hostpc $ sshfs <host_pc_user>@<host_pc_ip>:/ ~/hostpc -o rw,nonempty <host_pc_user>@<host_pc_ip>'s password: <type user password here>
As SSFH is a user file system, you can not use mount directly. For example, you should execute the following command to unmount maemo device file system on host PC:
$ fusermount -u ~/maemo
You can avoid SSH asking password every time by exchanging the SSH keys as described in section 6.1.
You should follow the next steps to share a folder of your maemo device through NFS by using Maemo PC Connectivity:
If you want, you can share a folder of your maemo device manually. The following steps describe how to share a folder (/home/user/MyDocs) of a maemo device over network by giving access to host PC IP address (192.168.2.14):
/home/user/MyDocs 192.168.2.14(rw,no_root_squash,async,no_subtree_check)
/etc/init.d/unfs3 restart
It follows the steps to share a folder of a host PC over network by giving access to maemo device IP address (192.168.2.15):
/home/<host_pc_user> 192.168.2.15(rw,no_root_squash,async,no_subtree_check)
sudo /etc/init.d/unfs3 restart
Once you configured NFS on your maemo device, you can access the shared folders from your host PC over network. Next, it is described how to access the shared folders on host PC:
$ showmount -e <device_ip> Export list for 192.168.2.15: /home/user/MyDocs 192.168.2.14
$ mkdir /tmp/MyDocs $ sudo mount -t nfs <device_ip>:/home/user/MyDocs /tmp/MyDocs
$ sudo umount /tmp/MyDocs
Once you configured NFS on your host PC, you can access the shared folders from your maemo device over network. Next, it is described how to access the shared folders on maemo device:
mkdir ~/hostpc mount -t nfs <host_pc_ip>:/home/<host_pc_user> ~/hostpc
sudo umount ~/hostpc
Samba (Server Message Block) allows file sharing between computers over the network. With Samba, you can remotely access maemo device file system from host PC and vice-versa. Once you shared your file system through Samba, it will be available every time you reconnect to the network.
Note: for while Samba is not working on Fremantle
In order to share a folder of your maemo device, you should follow the next steps:
Also, you can access your host PC shared folder from maemo device:
It follows the steps to share a folder of your Linux host PC:
sudo apt-get install samba
To access a folder shared on your maemo device:
smb://<maemo_device_ip>
It follows the steps to share a folder of your Windows host PC:
To access a folder shared on your maemo device:
\\<maemo_device_ip>
It follows the steps to share a folder of your Mac OS host PC:
To access a folder shared on your maemo device:
smb://<maemo_device_ip>
Walter 2009-12-21