![]() ![]() |
Feb 14 2007, 05:52 AM
Post
#1
|
|
![]() Group: Members Posts: 2,350 Joined: 30-July 06 Member No.: 10,575 |
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. |
|
|
|
Feb 14 2007, 06:18 AM
Post
#2
|
|
![]() Group: Members Posts: 1,002 Joined: 28-April 05 From: Germany Member No.: 7,027 |
The most convenient way is IMHO to use Samba directory sharing.
daniel |
|
|
|
Feb 14 2007, 06:26 AM
Post
#3
|
|
|
Group: Members Posts: 31 Joined: 27-December 06 Member No.: 13,475 |
QUOTE(Capn_Fish @ Feb 14 2007, 03:52 PM) 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. 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?) |
|
|
|
Feb 14 2007, 06:33 AM
Post
#4
|
|
![]() Group: Members Posts: 2,350 Joined: 30-July 06 Member No.: 10,575 |
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? This post has been edited by Capn_Fish: Feb 14 2007, 06:35 AM |
|
|
|
Feb 14 2007, 06:52 AM
Post
#5
|
|
|
Group: Members Posts: 108 Joined: 5-October 04 Member No.: 4,884 |
|
|
|
|
Feb 14 2007, 06:57 AM
Post
#6
|
|
![]() Group: Admin Posts: 3,281 Joined: 29-July 04 From: Cambridge, England Member No.: 4,149 |
"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. |
|
|
|
Feb 14 2007, 10:03 AM
Post
#7
|
|
![]() Group: Members Posts: 1,565 Joined: 7-April 05 From: Sydney, Australia Member No.: 6,806 |
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 |
|
|
|
Feb 14 2007, 10:13 AM
Post
#8
|
|
|
Group: Members Posts: 742 Joined: 15-October 05 From: Gulag, Siberia Member No.: 8,322 |
QUOTE(Capn_Fish @ Feb 14 2007, 01:52 PM) 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 sftp://username@ip.address.of.zaurus/ into konqueror to browse your Z filesystem. |
|
|
|
Feb 14 2007, 11:09 AM
Post
#9
|
|
![]() Group: Members Posts: 2,350 Joined: 30-July 06 Member No.: 10,575 |
What do I need to set up on Ubuntu? I set up the /etc/rsyncd.conf.
|
|
|
|
Feb 14 2007, 03:30 PM
Post
#10
|
|
![]() Group: Admin Posts: 3,281 Joined: 29-July 04 From: Cambridge, England Member No.: 4,149 |
QUOTE(Capn_Fish @ Feb 14 2007, 08:09 PM) 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. |
|
|
|
Feb 14 2007, 03:35 PM
Post
#11
|
|
![]() Group: Members Posts: 2,808 Joined: 21-March 05 From: Sydney, Australia Member No.: 6,686 |
personally, i think scp is the easiest and most secure.
|
|
|
|
Feb 14 2007, 03:41 PM
Post
#12
|
|
![]() Group: Admin Posts: 3,281 Joined: 29-July 04 From: Cambridge, England Member No.: 4,149 |
QUOTE(Meanie @ Feb 15 2007, 12:35 AM) 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 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 |
|
|
|
Feb 14 2007, 03:51 PM
Post
#13
|
|
![]() Group: Members Posts: 2,350 Joined: 30-July 06 Member No.: 10,575 |
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? |
|
|
|
Feb 14 2007, 04:02 PM
Post
#14
|
|
![]() Group: Admin Posts: 1,209 Joined: 20-January 06 From: York, Pennsylvania Member No.: 8,961 |
QUOTE(Capn_Fish @ Feb 14 2007, 06:51 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? scp... just CODE 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 |
|
|
|
Feb 14 2007, 05:40 PM
Post
#15
|
|
![]() Group: Members Posts: 2,350 Joined: 30-July 06 Member No.: 10,575 |
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! |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th June 2013 - 07:29 AM |