Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Sorry about the title, I didn't know how to write it - It's kind of confusing.

Ok, I am using my Raspberry Pi (Debian) and I store code on this server in which people have access to. My problem at the moment is, I can open the file using SSH and then compile and run the code on the Pi but this is very slow.

What I want to do: I want it so I can make changes of the file(s) on my computer and this updates with the files on the server and I can then compile the code on my machine AND I do not have to keep pushing the files back onto the file server.

I hope this makes sense. Any ideas?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

In UNIX world more suitable solution is NFS. The control file is usually /etc/exports. Example line /mnt/export *(rw). You can mount share from client mount nfs-server:/mnt/export /mnt/local. For examine shared (also known as "exported") resources on nfs-server use showmount -e nfs-server

share|improve this answer
    
I am using NFS for the "TimeMachine" back-up, so I like the way you suggested. A question - Does this method require me to physically download the files on my laptop? I am using SSD's because I don't want to store anything on my laptop, only on my server. Thank you –  Phorce Jan 13 '13 at 14:21
    
No. The file actually stores on nfs-share. There is no any local disk usage. –  dchirikov Jan 13 '13 at 14:36
    
Thank you :) Can you recommend a tutorial that can explain how to do this fully? This is exactly what I need. –  Phorce Jan 13 '13 at 14:42
    
I guess you should start from wiki and here is the quite authoritative source of nfs-related information. –  dchirikov Jan 13 '13 at 15:10
    
afs is supposedly more robust. –  Faheem Mitha Jan 13 '13 at 22:05
add comment

There are multiple ways to accomplish this. You could setup a Samba server. This would allow multiple computers to see the same files without having to copy them back and forth.

If you have just SSH access you might want to take a look at sshfuse.

make mountpoint

% mkdir blah

mount remote directory through sshfs

% sshfs root@somehost:/root blah

see remote files, locally

% ls blah/
file1
file2
file3

unmount when done

% fusermount -u blah

More info on sshfs is available here.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.