View source for File transfer
From Openmoko
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page:
Template used on this page:
Return to File transfer.
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page:
Template used on this page:
Return to File transfer.
The Openmoko hardware and software offer several ways to transfer files to and from the system.
Examples assume that you use the IP addresses described in our USB Networking setup guide.
copy a file from Openmoko smartphone to to PC type this on your PC:
scp root@192.168.0.202:/full/path/to/filename .
from phone's /home/root you can use shorter format:
scp root@192.168.0.202:filename .
to copy file to the SD card in phone type this on your PC:
scp filename root@192.168.0.202:/media/card/
to recursively copy a directory to the phone, use -r:
scp -r somedirectory root@192.168.0.202:
client ('tftp')
server?
client (on Neo: 'mount -t nfs ...' or edit /etc/fstab and '/etc/init.d/mountnfs.sh start')
server?
client (on Neo: 'wget',web browser)
It is possible to write data to micro SD on a desktop machine with the suitable writer and then have it accessible from inside the Openmoko after the card is inserted into that device. To get this working, the micro SD must be formatted in some filesystem that both Openmoko and host understand (ext2, for instance).
The problem with this approach is that micro SD is difficult to access in the Neo. Both battery and even SIM card must be removed to reach it.
SFTP can be an excellent way to transfer files as it is supported by many possible clients on the desktop machine. After USB network is set up, it is possible to try to open sftp connection by entering sftp://192.168.0.202 or sftp://{username}:{password}@192.168.0.202 into the address bar of the browser that supports sftp.
You can also use the sftp console client under Linux or something like psftp.exe, the sftp client that goes with PuTTY for Windows.
FTP is currently considered insecure. There is no any reason to use FTP, SFTP should be used instead.
The Freerunner can be configured to appear as a USB mass storage device to the desktop. see Using the Neo as a Mass storage device.