Sharing Files With Remote Development Hosts
See Also
When you use a remote development host, the local and remote hosts both need
to access the project files. This access can be accomplished through file sharing or securely copying
the files. Before the IDE can use file sharing between the
local and remote systems, the shared filesystem or folder must be set up and
accessible to both systems. Typically a filesystem is shared using NFS or Samba.
If file sharing is not possible, use Smart Secure Copy to copy
the files to the server using Secure Shell (SSH) protocol. The files will be copied to a
.netbeans/remote subdirectory located in your home user directory on
the remote host.
To set up the remote host to use existing network file sharing:
- In the Services window, expand the C/C++ Development Hosts node.
- Right-click the server you want to change and choose Properties.
- In the Host Properties dialog box, select File System Sharing from
the Synchronization drop-down list
- Click OK.
When you use the File System Sharing option for making project files available for
local and remote development hosts, you might need to provide path mapping information to help the
IDE use the shared file system.
To set the path mapping for a remote host that uses file sharing:
- Select Tools > Options, and click the C/C++ category.
- Select the Build Tools tab.
- Click Edit next to the Development Host list.
- In the Development Hosts Manager dialog box, select the remote host that you have set up to use File Sharing.
- Click Path Mapper...
- Double-click the text entry line under Local Path, and type the full path to the
shared directory as seen from the local machine. For example, if you are storing your
project in a /export/home/user/NetBeansProjects directory on myserver, you might access
that directory as /Volumes/NET/myserver/export/home/user/NetBeansProjects on a Mac client.
You can click the button next to the path field to use a file browser to navigate to the directory if you prefer.
- Double-click the text entry line under Remote Path and type the full path to the
shared directory as seen from the remote host. If you use /export/home/user/NetBeansProjects
from the remote server, enter that path as the Remote Path.
- Click OK in the Edit Path's Map dialog, and click OK in the Development Host Manager dialog.
Legal Notices