File Sharing 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 can be done 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 already 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 C/C++ Development Hosts.
- Right-click the server you want to change and select Properties to open the Host Properties dialog box.
- In the Synchronization list, select File System Sharing (no synchronization) and 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.
- Click Build Tools.
- Click Edit next to the Development Host list.
- In the Development Hosts Manager dialog, 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