Editing Documentation/Maemo PC Connectivity Tutorial/File Sharing
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 61: | Line 61: | ||
=== Using SSHFS mounts === | === Using SSHFS mounts === | ||
- | SSHFS (SSH File System) is a file system client based on the SSH protocol. It allows users to mount locally a remote file system via | + | SSHFS (SSH File System) is a file system client based on the SSH protocol. It allows users to mount locally a remote file system via SSH. With SSHFS, you can remotely access the Maemo device file system from the host PC and vice versa. |
- | { | + | {| |
+ | |- | ||
+ | | [[Image:dialog-information.png]] | ||
+ | | '''Note:''' SSHFS mounts do not work on Windows host PC. | ||
+ | |} | ||
If you want to mount the Maemo device file system to your host PC, you can execute the following commands. | If you want to mount the Maemo device file system to your host PC, you can execute the following commands. | ||
- | + | $ mkdir ~/maemo | |
- | $ mkdir ~/maemo | + | $ sshfs user@192.168.2.15:/ ~/maemo -o rw,nonempty |
- | $ sshfs user@192.168.2.15:/ ~/maemo -o rw,nonempty | + | user@192.168.2.15's password: <type user password here> |
- | user@192.168.2.15's password: | + | |
- | + | ||
If you did not set the SSH password for <span><font face="monospace">user</font></span> yet, you can use the <span><font face="monospace">root</font></span> account. You should set up the password for the <span><font face="monospace">user</font></span> account by following these steps: | If you did not set the SSH password for <span><font face="monospace">user</font></span> yet, you can use the <span><font face="monospace">root</font></span> account. You should set up the password for the <span><font face="monospace">user</font></span> account by following these steps: | ||
- | + | $ ssh root@192.168.2.15 | |
- | $ ssh root@192.168.2.15 | + | root@192.168.2.15's password: <type root password here> |
- | root@192.168.2.15's password: | + | Nokia-810:~# passwd user |
- | Nokia-810:~# passwd user | + | Changing password for user |
- | Changing password for user | + | Enter the new password (minimum of 5, maximum of 8 characters) |
- | Enter the new password (minimum of 5, maximum of 8 characters) | + | Please use a combination of upper and lower case letters and numbers. |
- | Please use a combination of upper and lower case letters and numbers. | + | New password: <type new user password here> |
- | New password: | + | Re-enter new password: <retype user password> |
- | Re-enter new password: | + | Password changed |
- | Password changed | + | |
- | + | ||
If you want to mount the host PC file system to your Maemo device, you can execute the following commands: | If you want to mount the host PC file system to your Maemo device, you can execute the following commands: | ||
Line 112: | Line 112: | ||
* Click on the '''Advanced''' button. | * Click on the '''Advanced''' button. | ||
* Go to the '''Tool Manager''' tab. | * Go to the '''Tool Manager''' tab. | ||
- | * Select the '''NFS''' option. After that, change the options according to your needs, figure [[# | + | * Select the '''NFS''' option. After that, change the options according to your needs, figure [[#fig:pc_connectivity_mpc_maemo_nm_nfs|6.1]]. |
- | * Click on the '''Exported Paths''' button. Then add the folders to be shared, figure [[# | + | * Click on the '''Exported Paths''' button. Then add the folders to be shared, figure [[#fig:pc_connectivity_mpc_maemo_nm_nfs_folders|6.2]]. |
- | * Click on the '''Allowed IPs''' button. Then add the host PC's IP addresses that are allowed to access the shared folders, figure [[# | + | * Click on the '''Allowed IPs''' button. Then add the host PC's IP addresses that are allowed to access the shared folders, figure [[#fig:pc_connectivity_mpc_maemo_nm_nfs_ips|6.3]]. |
- | + | {| summary="PC Connectivity Manager - NFS option" | |
- | + | |+ align="BOTTOM" |'''Figure 6.1:''' PC Connectivity Manager - NFS option | |
- | + | |- | |
+ | | | ||
+ | [[Image:mpc_maemo_nm_nfs.png|Image mpc_maemo_nm_nfs]] | ||
+ | |} | ||
- | + | {| summary="PC Connectivity Manager - Shared folders list" | |
- | + | |+ align="BOTTOM" |'''Figure 6.2:''' PC Connectivity Manager - Shared folders list | |
- | + | |- | |
+ | | | ||
+ | [[Image:mpc_maemo_nm_nfs_folders.png|Image mpc_maemo_nm_nfs_folders]] | ||
+ | |} | ||
- | + | {| summary="PC Connectivity Manager - Allowed IPs list" | |
- | + | |+ align="BOTTOM" |'''Figure 6.3:''' PC Connectivity Manager - Allowed IPs list | |
- | + | |- | |
+ | | | ||
+ | [[Image:mpc_maemo_nm_nfs_ips.png|Image mpc_maemo_nm_nfs_ips]] | ||
+ | |} | ||
If you want, you can share a folder from your Maemo device manually. The following steps describe how to share the folder (<code>/home/user/MyDocs</code>) from a Maemo device over a network by giving access to the host PC IP address (<code>192.168.2.14</code>). | If you want, you can share a folder from your Maemo device manually. The following steps describe how to share the folder (<code>/home/user/MyDocs</code>) from a Maemo device over a network by giving access to the host PC IP address (<code>192.168.2.14</code>). | ||
- | Connect to the Maemo device via <code> | + | Connect to the Maemo device via <code>SSH</code>. Edit the file <code>/etc/exports</code> and add the folder you want to share and set the permissions of your shares (IP addresses). |
/home/user/MyDocs 192.168.2.14(rw,no_root_squash,async,no_subtree_check) | /home/user/MyDocs 192.168.2.14(rw,no_root_squash,async,no_subtree_check) | ||
Line 142: | Line 151: | ||
You must follows these steps to share a folder from a host PC over a network and giving access to it for Maemo device's IP address (<code>192.168.2.15</code>): | You must follows these steps to share a folder from a host PC over a network and giving access to it for Maemo device's IP address (<code>192.168.2.15</code>): | ||
- | { | + | {| |
+ | |- | ||
+ | | [[Image:dialog-information.png]] | ||
+ | | '''Note:''' NFS mounts do not work on Windows host PC. | ||
+ | |} | ||
Edit the file <code>/etc/exports</code> and add the folder you want to share and set the permissions for your shares (IP addresses). | Edit the file <code>/etc/exports</code> and add the folder you want to share and set the permissions for your shares (IP addresses). | ||
Line 194: | Line 207: | ||
Samba allows file sharing between computers over the network. With Samba, you can remotely access the Maemo device file system from the host PC and vice versa. Once you have shared your file system through Samba, it is available every time you reconnect to the network. | Samba allows file sharing between computers over the network. With Samba, you can remotely access the Maemo device file system from the host PC and vice versa. Once you have shared your file system through Samba, it is available every time you reconnect to the network. | ||
- | { | + | {| |
+ | |- | ||
+ | | [[Image:dialog-information.png]] | ||
+ | | '''Note:''' Samba does not work on Maemo Fremantle devices such as N900 but works fine with Maemo Diablo devices such as N800 and N810. | ||
+ | |} | ||
==== Configuring Samba for Maemo device ==== | ==== Configuring Samba for Maemo device ==== | ||
Line 203: | Line 220: | ||
* Click on the '''Advanced''' button. | * Click on the '''Advanced''' button. | ||
* Go to the '''Tool Manager''' tab. | * Go to the '''Tool Manager''' tab. | ||
- | * Select the '''Samba''' option. After that, change the options according to your needs (Workgroup, User and Password), figure [[# | + | * Select the '''Samba''' option. After that, change the options according to your needs (Workgroup, User and Password), figure [[#fig:pc_connectivity_mpc_maemo_nm_samba|6.4]]. |
- | * Click on the '''Exported Paths''' button. Then add the folders to be shared, figure [[# | + | * Click on the '''Exported Paths''' button. Then add the folders to be shared, figure [[#fig:pc_connectivity_mpc_maemo_nm_samba_paths|6.5]]. |
* Click on the '''Apply''' button. | * Click on the '''Apply''' button. | ||
- | + | {| summary="PC Connectivity Manager - Samba options" | |
- | + | |+ align="BOTTOM" |'''Figure 6.4:''' PC Connectivity Manager - Samba options | |
- | + | |- | |
+ | | | ||
+ | [[Image:mpc_maemo_nm_samba.png|Image mpc_maemo_nm_samba]] | ||
+ | |} | ||
- | + | {| summary="PC Connectivity Manager - Samba shared folders" | |
- | + | |+ align="BOTTOM" |'''Figure 6.5:''' PC Connectivity Manager - Samba shared folders | |
- | + | |- | |
+ | | | ||
+ | [[Image:mpc_maemo_nm_samba_paths.png|Image mpc_maemo_nm_samba_paths]] | ||
+ | |} | ||
You can access your host PC shared folders from your Maemo device. | You can access your host PC shared folders from your Maemo device. | ||
* Open the '''Utilities - File Manager''' application. | * Open the '''Utilities - File Manager''' application. | ||
- | * Click on the '''Shared folders''' option, figure [[# | + | * Click on the '''Shared folders''' option, figure [[#fig:pc_connectivity_mpc_maemo_nm_samba_access|6.6]]. |
* Select the desired shared folder. | * Select the desired shared folder. | ||
- | + | {| summary="PC Connectivity Manager - Shared folders dialog" | |
- | + | |+ align="BOTTOM" |'''Figure 6.6:''' PC Connectivity Manager - Shared folders dialog | |
- | + | |- | |
+ | | | ||
+ | [[Image:mpc_maemo_nm_samba_access.png|Image mpc_maemo_nm_samba_access]] | ||
+ | |} | ||
==== Configuring Samba for Linux ==== | ==== Configuring Samba for Linux ==== | ||
Line 231: | Line 257: | ||
* Open the File Manager ('''Nautilus'''). | * Open the File Manager ('''Nautilus'''). | ||
* Right click the folder you want to share, and select '''Sharing options'''. | * Right click the folder you want to share, and select '''Sharing options'''. | ||
- | * Type the '''Share name''' and check the '''Guest access''' option, figure [[# | + | * Type the '''Share name''' and check the '''Guest access''' option, figure [[#fig:pc_connectivity_mpc_linux_ubuntu_samba_share|6.7]]. |
* Click on the '''Create share''' button. | * Click on the '''Create share''' button. | ||
- | + | {| summary="Linux folder sharing" | |
- | + | |+ align="BOTTOM" |'''Figure 6.7:''' Linux folder sharing | |
- | + | |- | |
+ | | | ||
+ | [[Image:mpc_linux_ubuntu_samba_share.png|Image mpc_linux_ubuntu_samba_share]] | ||
+ | |} | ||
If <code>Samba</code> is not installed, Ubuntu requests the installation at this point. Otherwise, you can install <code>Samba</code> manually. | If <code>Samba</code> is not installed, Ubuntu requests the installation at this point. Otherwise, you can install <code>Samba</code> manually. | ||
Line 244: | Line 273: | ||
To access a shared folder from the Maemo device using your Windows host PC. | To access a shared folder from the Maemo device using your Windows host PC. | ||
- | * Open the | + | * Open the File Manager (Nautilus) and type: <code>smb://<maemo_device_ip></code>, figure [[#fig:pc_connectivity_mpc_linux_ubuntu_samba_access|6.8]]. |
* Press '''Enter'''. | * Press '''Enter'''. | ||
- | + | {| summary="Accessing shared folder with Final Manager" | |
- | + | |+ align="BOTTOM" |'''Figure 6.8:''' Accessing shared folder with Final Manager | |
- | + | |- | |
+ | | | ||
+ | [[Image:mpc_linux_ubuntu_samba_access.png|Image mpc_linux_ubuntu_samba_access]] | ||
+ | |} | ||
==== Configuring Samba for Windows ==== | ==== Configuring Samba for Windows ==== | ||
Line 272: | Line 304: | ||
* Go to '''System Preferences''' and click on the '''Sharing''' icon. | * Go to '''System Preferences''' and click on the '''Sharing''' icon. | ||
* Select the '''File Sharing''' service. | * Select the '''File Sharing''' service. | ||
- | * Add a folder you want to share, and then set the permissions for it, figure [[# | + | * Add a folder you want to share, and then set the permissions for it, figure [[#fig:pc_connectivity_mpc_mac_samba_share|6.9]]. |
- | + | {| summary="Mac OS X Sharing dialog" | |
- | + | |+ align="BOTTOM" |'''Figure 6.9:''' Mac OS X Sharing dialog | |
- | + | |- | |
+ | | | ||
+ | [[Image:mpc_mac_samba_share.png|Image mpc_mac_samba_share]] | ||
+ | |} | ||
To access a folder shared from a Maemo device you need to do following on your Mac OS X host PC. | To access a folder shared from a Maemo device you need to do following on your Mac OS X host PC. | ||
Line 282: | Line 317: | ||
* Go to the File Manager application ('''Finder'''). | * Go to the File Manager application ('''Finder'''). | ||
* With the '''Finder''' open, click on the '''Go''' menu and select the '''Connect to Server''' option. | * With the '''Finder''' open, click on the '''Go''' menu and select the '''Connect to Server''' option. | ||
- | * Type your Maemo device IP address as follows: <code>smb://<maemo_device_ip></code>, figure [[# | + | * Type your Maemo device IP address as follows: <code>smb://<maemo_device_ip></code>, figure [[#fig:pc_connectivity_mpc_mac_samba_access|6.10]]. |
* Click on the '''Connect''' button. | * Click on the '''Connect''' button. | ||
- | + | {| summary="Mac OS X connect to server dialog" | |
- | + | |+ align="BOTTOM" |'''Figure 6.10:''' Mac OS X connect to server dialog | |
- | + | |- | |
+ | | | ||
+ | [[Image:mpc_mac_samba_access.png|Image mpc_mac_samba_access]] | ||
+ | |} | ||
== File transfer == | == File transfer == | ||
Line 315: | Line 353: | ||
$ scp root@192.168.2.15:/etc/file.txt file.txt | $ scp root@192.168.2.15:/etc/file.txt file.txt | ||
- | You can use <code>ssh-key-exchange</ | + | You can use <code>ssh-key-exchange</codde> as described in the SSH installation chapter to avoid SSH requiring a password every time. |
=== Using SFTP === | === Using SFTP === | ||
Line 321: | Line 359: | ||
After Maemo PC Connectivity has been installed to the Maemo device, your Maemo device folders can be accessed from a host PC using the SFTP client. If you also installed Host PC Connectivity your host PC already has a GUI-based SFTP client, FileZilla, installed. Therefore to access your Maemo device folders from the host PC through SFTP, simply follow these steps. | After Maemo PC Connectivity has been installed to the Maemo device, your Maemo device folders can be accessed from a host PC using the SFTP client. If you also installed Host PC Connectivity your host PC already has a GUI-based SFTP client, FileZilla, installed. Therefore to access your Maemo device folders from the host PC through SFTP, simply follow these steps. | ||
- | Run the FileZilla client, figure [[# | + | Run the FileZilla client, figure [[#fig:pc_connectivity_mpc_sftp|6.11]]. |
* Linux - Ubuntu: '''Applications - Internet - FileZilla FTP Client'''. | * Linux - Ubuntu: '''Applications - Internet - FileZilla FTP Client'''. | ||
Line 327: | Line 365: | ||
* Mac OS: '''/Applications/FileZilla'''. | * Mac OS: '''/Applications/FileZilla'''. | ||
- | + | {| summary="FileZilla FTP Client" | |
- | + | |+ align="BOTTOM" |'''Figure 6.11:''' FileZilla FTP Client | |
- | + | |- | |
+ | | | ||
+ | [[Image:mpc_sftp.png|Image mpc_sftp]] | ||
+ | |} | ||
* Type the IP address of your Maemo device in the '''Host''' field. | * Type the IP address of your Maemo device in the '''Host''' field. | ||
Line 341: | Line 382: | ||
Rsync is a much more powerful tool than standard SCP, SFTP or disk mounts to back up or synchronise large files (such as music, pictures, maps and movies) between a Maemo device and a host PC. | Rsync is a much more powerful tool than standard SCP, SFTP or disk mounts to back up or synchronise large files (such as music, pictures, maps and movies) between a Maemo device and a host PC. | ||
- | { | + | {| |
+ | |- | ||
+ | | [[Image:dialog-information.png]] | ||
+ | | '''Note:''' Rsync protocol is also used by several backup and file synchronisation services available from the Internet. | ||
+ | |} | ||
[[Category:Documentation]] | [[Category:Documentation]] |
Learn more about Contributing to the wiki.