views:

55

answers:

3

VIM seems integrated to the terminal. Can I open a remote file from the command-line with netbeans? Does it have shell integration? Any further explanation on this so I can better conceptually understand it would be very appreciated.

+2  A: 

Yes, you can, providing certain conditions are met!

Using ssh, you can tunnel the display of X-Window applications, meaning you can run the application (the X-Client) on one machine, and have it display on another (the X-Server).

You'll need to launch ssh with the -X option (or -Y, but preferably -X) to allow tunnelling, and then run NetBeans from the commandline as usual:

netbeans MyFile.java
Jeremy Smyth
+1  A: 

Read about X-forwarding. The link points to a very verbose and detailed howto/tutorial.

Kornel Kisielewicz
+2  A: 

Few options:

  1. Using ssh -X to forward X. Then you can start netbeans remotely.
  2. Use sshfs so you mount the remote filesystem locally over ssh. You can use then local copy of netbeans to work on remote files.
  3. Using rsync to have a local copy
  4. The best one - use version control
Sunny