Author Topic: Best Way To Transfer Files To The Z Over A Netwok  (Read 87847 times)

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Best Way To Transfer Files To The Z Over A Netwok
« on: February 14, 2007, 08:52:26 am »
I have an Ubuntu box with no monitor that control with VNC with my Zaurus. I would like to be able to easily transfer files from there to my Z in a secure manner. What would be the best way of doing this?

Thanks.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Best Way To Transfer Files To The Z Over A Netwok
« Reply #1 on: February 14, 2007, 09:18:17 am »
The most convenient way is IMHO to use Samba directory sharing.

daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

dsteuer

  • Newbie
  • *
  • Posts: 31
    • View Profile
Best Way To Transfer Files To The Z Over A Netwok
« Reply #2 on: February 14, 2007, 09:26:52 am »
Quote
I have an Ubuntu box with no monitor that control with VNC with my Zaurus. I would like to be able to easily transfer files from there to my Z in a secure manner. What would be the best way of doing this?

Thanks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154046\"][{POST_SNAPBACK}][/a][/div]

My tool of choice is rsync + ssh. Works like a charm and no need to mount.

(Btw: Are there fuse and sshfs for the Z?)

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Best Way To Transfer Files To The Z Over A Netwok
« Reply #3 on: February 14, 2007, 09:33:18 am »
Any good how-tos for ssh & rsync? Or can you provide one?

Thanks!

EDIT: I've tried to set up Samba in the past, and it seems to be difficult (or I was just being stupid), so I'm not really looking at that.

EDIT2: How does using rsync and ssh work?
« Last Edit: February 14, 2007, 09:35:15 am by Capn_Fish »
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

rolf

  • Full Member
  • ***
  • Posts: 105
    • View Profile
    • http://home.arcor.de/leggewie/
Best Way To Transfer Files To The Z Over A Netwok
« Reply #4 on: February 14, 2007, 09:52:33 am »
Quote
(Btw: Are there fuse and sshfs for the Z?)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154053\"][{POST_SNAPBACK}][/a][/div]
yes, I used it just recently on OpenZaurus.  To mount connections on the Z should just work OOTB IIRC.  To mount your Z on another box you need to "enhance" dropbear with the openssh-sftp package.

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3706
    • View Profile
Best Way To Transfer Files To The Z Over A Netwok
« Reply #5 on: February 14, 2007, 09:57:17 am »
"ipkg install rsync"

then on desktop

rsync -r -v -z  /dir/dir/ 192.168.129.201:/dir2/dir2

stick in  a "-n" to not actually do the copy beforehand just to make sure nothing's going to go wrong.

"man rsync"  or "rsync --help" is your friend.
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Da_Blitz

  • Hero Member
  • *****
  • Posts: 1579
    • View Profile
    • http://www.pocketnix.org
Best Way To Transfer Files To The Z Over A Netwok
« Reply #6 on: February 14, 2007, 01:03:27 pm »
whats the diffrence apart from only uploading the changes to using rsync over scp or sftp in this type of enviroment. we are talking about high bandwidth links here so there is really no need to upload changes, a dumb copy would be fine

or am i missing somthing here
Personal Blog
Code
Twitter

Gemini Order: #95 (roughly)
Current Device: Samsung Chromebook Gen 3
Current Arm Devices Count: ~30
Looking to acquire: Cavium Thunder X2 Hardware

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Best Way To Transfer Files To The Z Over A Netwok
« Reply #7 on: February 14, 2007, 01:13:23 pm »
Quote
I have an Ubuntu box with no monitor that control with VNC with my Zaurus. I would like to be able to easily transfer files from there to my Z in a secure manner. What would be the best way of doing this?
Use ssh, and if you use KDE it's as simple as typing:
Code: [Select]
sftp://username@ip.address.of.zaurus/into konqueror to browse your Z filesystem.
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Best Way To Transfer Files To The Z Over A Netwok
« Reply #8 on: February 14, 2007, 02:09:03 pm »
What do I need to set up on Ubuntu? I set up the /etc/rsyncd.conf.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3706
    • View Profile
Best Way To Transfer Files To The Z Over A Netwok
« Reply #9 on: February 14, 2007, 06:30:34 pm »
Quote
What do I need to set up on Ubuntu? I set up the /etc/rsyncd.conf.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154097\"][{POST_SNAPBACK}][/a][/div]


you don't need to set anything up on the PC side... ok, quick tutorial. rsync is a bit like "scp -prd", only it's a lot more intelligent - it can be told to ignore existing files (by checking size and date or using a checksum /slower/)

When invoked, it talks to rsync on the remote host either because the remote host is running rsync as a daemon OR by ssh'ing to it and running it.

So, on the ubuntu side, no need to run rsync as daemon. So long as when you ssh into zaurus rsync is in the path it will work. Or vice versa. Generally rsync is in /bin or /usr/bin and is virtually guaranteed to work.

So, use the "-n" /dryrun/ option just to be sure.

rsync has a HUGE number of options but they are fairly clearly explained.
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Best Way To Transfer Files To The Z Over A Netwok
« Reply #10 on: February 14, 2007, 06:35:20 pm »
personally, i think scp is the easiest and most secure.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3706
    • View Profile
Best Way To Transfer Files To The Z Over A Netwok
« Reply #11 on: February 14, 2007, 06:41:41 pm »
Quote
personally, i think scp is the easiest and most secure.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154143\"][{POST_SNAPBACK}][/a][/div]

er, rsync uses ssh as the default connection channel, so it's as secure as scp but more powerful.

you can use rsync as a daemon. you could also do rsync over plain telnet. both would be unencrypted.

you can also use tar, e.g. use compression to copy a directory from one machine to another using an ssh secure channel

Code: [Select]
cd /mydir; tar cf - . | gzip | ssh otherhost "cd /newdir; gunzip | tar xf -"
the advantages of tar and rsync is they understand symlinks better, tar also preserves ownership and protection but doesn't know not to copy an existing file.


--edit--
oops, I forgot the gunzip on the target, added explanatory comment
« Last Edit: February 14, 2007, 06:43:17 pm by speculatrix »
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Best Way To Transfer Files To The Z Over A Netwok
« Reply #12 on: February 14, 2007, 06:51:35 pm »
To be honest, I don't need power or the ability to preserve symlinks. All I want is the ability to simply copy one file over a LAN from Ubuntu to my Z with minimal set-up time.

Is SCP or RSync easier to set up for this?
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
Best Way To Transfer Files To The Z Over A Netwok
« Reply #13 on: February 14, 2007, 07:02:14 pm »
Quote
To be honest, I don't need power or the ability to preserve symlinks. All I want is the ability to simply copy one file over a LAN from Ubuntu to my Z with minimal set-up time.

Is SCP or RSync easier to set up for this?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=154151\"][{POST_SNAPBACK}][/a][/div]

scp... just
Code: [Select]
scp youfile root@host:/where you want it
example... scp test.txt root@192.168.1.45:/home/root/

or scp test.txt 192.168.1.45:

if you want to just copy that file, you are already an equal user name to the one on the destination, and you want it just to go to the users home dir.

Late
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Best Way To Transfer Files To The Z Over A Netwok
« Reply #14 on: February 14, 2007, 08:40:37 pm »
I've got an ssh connection working as well as scp. I'm now trying to figure out how to block all attempts to ssh into my Ubuntu box except from my Zaurus. All of the documentation I've found seems to be a bit vague, but it seems to indicate that all that is involved is moving some authentication keys around. What exactly do I need to do (starting from getting the connection working)? If it's too much to explain, could you point me to some good documentation?

Thanks!
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo