I have some code that only runs on a remote Ubuntu box with a gateway in between. Every time I have make some changes I have to make the change in my local Mac and push it to git and rebuild it on the box to see if it is working. Was wondering if there is a way to configure IntelliJ or Eclipse to modify code directly on the remote box and have it running there with debug etc. so that I minimize on the roundtrip?
The solution may be to mount the remote filesystem in your local machine.
Then run the IDE off the remote file mount in the local system.
That way, the IDE will access all the files as if it is local.
The IDE can connect to the process running in remote machine.
Also the IDE can remote debug the JVM easily.
Here is the how to of mounting the remote file system locally
https://www.digitalocean.com/community/tutorials/how-to-use-sshfs-to-mount-remote-file-systems-over-ssh
Related
I am using vscode ssh remote plugin https://code.visualstudio.com/docs/remote/ssh
to connect to gcp sandbox vm. gcp sandbox vm has an hourly cost if kept turned on.
most of the time I am reading or changing the code and I am not running any command in the VM's terminal. So, if I had the code offline, I would not need to keep the VM running and pay for each second of it.
Is there a way I can do this?
When using VSCode over SSH, you are running a VSCode server on the remote host which is used to read the files.
If you want to be able to open files locally, you will need to download them.
If you already have the files opened, you can disconnect from the VM and keep looking at them.
Another option to consider is mounting whatever file store you're using locally as a FUSE file system. Here is an example for git: https://github.com/presslabs/gitfs
I'm on windows machine and using Eclipse to edit some files on UNIX remote. I use Remote System Explorer to browse files over SSH which works superb (comparing with N++ explorer it's a rocket). Now the UNIX files are under ClearCase versioning and I'd like to have some "right click" options in Eclipse's Remote System Explorer, associated with some unix commands (in my case will be ClearCase commands).
Should I start learning to make a simple plugin for this?
Note: There are some ClearCase readily available plugins but all of them requires ClearCase client to be installed on windows machine (which I did) but our admins doesn't allow the windows clients to access version database for security purposes :)
So now I use putty console (Eclipse console) to check in/out files then edit them with Eclipse. Any chance to do'it once like I explain above?
Thanks in advance,
No plugin possible, because ClearCase commands through an Eclipse plugin would be executed on your local machine, and not in the ssh session.
Those cleartool commands (checkout/checkin) must be executed where the view is started (ie on the unix remote server, where the ssh session is)
I'm running Eclipse Indigo on Windows XP & Cygwin using the Subclipse plugin with our corporation SVN repository.
Overall it works just fine, however whenever I click on a file in the remote SVN repository a half dozen cmd windows open for the various ssh processes Subclipse spawns using Cygwin's ssh executable. This is very annoying since they pop up directly in front of what I'm working on and steal the cursor focus.
Could anyone tell me how I can insure that when these windows are spawned they're minimized so that they don't interfere?
The best way to do this is to use a GUI SSH client like TortoisePlink which comes with TortoiseSVN. I believe the other option would be to start Eclipse from your Cygwin Terminal. I believe the SSH client will then be connected with that Terminal and not spawn any additional windows.
my project source code is in unix, we are using CM synergy source control for code checkin/chech out files. we update the files using vi editor. Pls help in how to set up eclipse in windows system and then connect to the code server and edit the files.
You could install the Remote System Explorer framework, that allows opening files from a remote server, and also gives shell access to the remote server. For anything more specific, I'm not sure whether a free solution exists.
I experienced some problems accessing remote file systems with the Remote System Explorer Plugin, the FTP session was closed unexpectedly. I recommend for linking in your local projects remote sites Aptana Eclipse Plugin.
Is there a better way to setup Eclipse CDT for local editing and remote building?
I am working on a C++ project that uses GNU make in Linux. The code is under CVS on a Linux server.
When I'm in the lab, I use Eclipse CDT on a Linux-x64 PC. The project is built on a Linux-x86 PC. All the computers in the lab (including the CVS server) have NFS mounts.
When I'm at home, I use Eclipse CDT on a Windows 7 PC. The Windows PC connects to the Linux CVS server via SSH tunnel. To edit source, I rsync the C++ project under the Linux Eclipse workspace back to my Windows Eclipse workspace. (I can also do a remote CVS checkout on the Windows PC.) To build from home, I use a custom build command that
SSH's to the Linux-x86 PC,
rsync's the C++ project from my Windows Eclipse workspace to my Linux Eclipse workspace,
and then runs make on the Liunx-x86 PC, specifying the correct path for the Makefile.
In order to go back and forth between lab and home without committing my changes to CVS every time, I use rsync. When I transition from lab to home, I rsync sources to my Windows Eclipse workspace. When I build from home, the sources get rsync'd back to the Linux Eclipse workspace.
Is there a better, less wonky way to do this?
(I'm NOT interested in remote debugging.)
Netbeans has good support for this. I've tried to get it working in Eclipse, but Netbeans was much easier with built in support.
One solution is to use Eclipse RSE (Remote System Explorer). It allows to "mount" a remote subfolder directly into the workspace (via FTP or SSH). CDT has some issues with the virtual file system used by RSE, but it ... well, more or less works.
There's some discussion on that on my question:
Work on a remote project with Eclipse via SSH
I need to do similar things, and I took a look at Synchronized Projects:
http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.ptp.doc.user%2Fhtml%2FlocalVsRemote.html
Synchronized projects support multiple build configurations, so the build can happen either locally or on one or more remote systems. The user can select which system will be used to build the project. A launch configuration can then be created to to run the application on the target machine.
To build on remote machine, follow Working with a Synchronized Project: http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.ptp.doc.user%2Fhtml%2Fsync.html
How about using vnc and remotely logging in, using eclipse ON your unix box in the lab?
The only thing to go across the link is your editing, and vnc is pretty efficient about that.
This post seems quite old. But in case this might help somebody, I'd like to post a solution that works both on Linux and windows machines, which is really easy.
Now there is an Eclipse parallel version and you can just install that and change few lines in your remote machine's bash_profile to load few git functions. I'm even connecting from behind a gateway which is a little tricky. It is easier without. See this link:
http://umayanganie.blogspot.com/2017/05/build-debug-cc-projects-via-remote.html