[英]When SSHing into system, is there a way to launch netbeans from command-line like I do VIM?
VIM seems integrated to the terminal. VIM似乎已集成到终端。 Can I open a remote file from the command-line with netbeans? 我可以使用netbeans从命令行打开远程文件吗? Does it have shell integration? 它有外壳集成吗? Any further explanation on this so I can better conceptually understand it would be very appreciated. 任何对此的进一步解释,以便我可以更好地从概念上理解它,将不胜感激。
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). 使用ssh,您可以建立X-Window应用程序的显示通道,这意味着您可以在一台计算机上运行该应用程序(X-Client),并在另一台计算机(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: 您需要使用-X选项(或-Y,但最好是-X)启动ssh以允许隧道传输,然后像往常一样从命令行运行NetBeans:
netbeans MyFile.java
Few options: 几种选择:
Read about X-forwarding . 了解有关X转发的信息 。 The link points to a very verbose and detailed howto/tutorial. 该链接指向一个非常冗长而详细的howto / tutorial。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.