开发者

When SSHing into system, is there a way to launch netbeans from command-line like I do VIM?

开发者 https://www.devze.com 2022-12-17 06:09 出处:网络
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 underst

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 understan开发者_运维百科d it would be very appreciated.


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


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消