Popular Posts

Sunday, June 29, 2008

Compiling over NFS

Ever needed to compile over exported NFS system in Linux. I needed it to compile some programs on my PC using a compiler in a virtual box ;-)

On the NFS server

add the following line to /etc/exports (Debian/Ubuntu systems)

/path/to/exported/directory *(rw,no_subtree_check,insecure,no_root_squash)



On the client machine (the one that will compile)

add the following line to /etc/fstab

10.0.2.2:/path/to/exported/directory /path/to/mnt/point nfs user,rw,exec 0 0


Note: replace 10.0.2.2 with the server IP or hostname

Warning: this setup is TOTALLY INSECURE!!

but who cares ;-)

No comments: