How do I run eclipse remotely using Cygwin? - eclipse

I'm running on Windows 7 and I want to be able to access the remote linux server at my school to run eclipse and do my programming assignments.
I installed cygwin, and ssh into the server, but whenever I run the "eclipse" command, it says "Eclipse: Cannot open display".
Is there any additional software I need to do, or commands I need to run in order to display the gui from my windows 7 computer?
aside from just running eclipse on my own computer, I want to do it remotely.
thank you

You need to:
Run an X server on your Windows machine; there's an xorg-server package in cygwin, use that (or the independent Xming).
Configure your ssh client to forward X11 traffic to the X server on your windows machine.
Here's a more detailed tutorial on doing this.

Related

Visual Studio Code remote access to a WSL2:ubuntu on my desktop from my macbook

've looked around and can't seem to find the answer to this - probably because the feature is pretty new.
I tried the remote WSL:ubuntu connection on my windows desktop machine to connect to my WSL2 Ubuntu running on the same machine. This is pretty much perfect as it allows access to my Nvidia GPU under linux
Is there anyway I can do the same trick from my macbook? I can connect to the windows side of the desktop using the new remote tunnel feature but I'm drawing a blank on how to do for the WSL buried in that machine. It looks like it's just using the same remote connection feature so I'm thinking it should be possible but WSL2 network is not exposed the same way you can with a VM or other machine.
The desktop has way more everything than my macbook including a nvidia GPU I want to use for some machine learning.
I can do it from the desktop itself - but it's nice to be able to use that machine from my macbook at certain times of day.
I have recently started using VSCode so I'm on the learning curve with it - it may well be that it's not possible using the new remote tunnels - or requires some messing with adding a new hyper-v bridged adapter to the WSL installation. I'm hoping against hope there's an easy solve that I've somehow missed.
I tried setting up the remote tunnel as per https://code.visualstudio.com/blogs/2022/12/07/remote-even-better but it seems to setup a server to access windows not the WSL2 service.
Thanks for any help!
I had a similar problem and found this github issue. While the developers are looking into including this feature, you currently will need to install the VSCode CLI directly in WSL. You can find the downloads here
Notes
I would recommend the x64 CLI download in the Linux section. It will download a tar.gz file which will have a file named code in it when extracted.
The tunnel will launch from wherever you place that code file, so I put mine in the ~/ (home) directory.
You can then open a tunnel using the command ./code tunnel from that location. You can replace the . with the path to the code file to open the tunnel while in a different directory, i.e. ~/code.
You can still launch a tunnel from Windows with code tunnel. (note that this command does not have ./)

How To Get Windows Run Time Environment with Code Server

Clearly, you can run Code Server on a Linux host, or with WSL on a Windows host. Either will provide a Linux run-time environment for your code. I have 2 projects with 3rd party Windows binary dependencies which will not run on Linux. So, is there a way to get a Windows run-time using Code Server?

Running eclipse with remote Git checkout repository

On my windows laptop, I use putty to ssh on the remote server where I have git checkout a C project. I would like to use eclipse(CDT) for program development on my laptop but compilation and program execution is only possible on the remote server. Can I map the repository checked out on remote server into eclipse on my laptop so that I can avoid working with two copies of the checked out project.
This seems not possible unless you are using an Eclipse installed on the remote machine... and use it on your Windows laptop.
See "Remote Eclipse over X11".
Since you are on Windows, you would use an X11 emulator like vcxsrv.
That would avoid the sshfs setup.
The other approach would be to replicate your remote machine environment in a VM (VirtualBox) or a Docker image/container in order to be able to compile locally (and then push the modified sources to your remote machine with Git)

Build and debug a project on a remote server via SSH with Eclipse

Unfortunately, I do not find a solution for my problem in this similiar question.
I have a server with special hardware and a special (GNU-compatible) toolchain. I can only access this server via SSH.
Now I try to set up a development system with Eclipse. Is it possible to set-up a configuration to be able to build and debug via SSH as if the program would run on my local computer? And if yes, could you tell me a little bit about it? ;-)
Provided your server is a Linux machine running a X server, you may want to look around SSH -X.
Install Eclipse on your server
Install an X11 environment on your client (e.g. for Windows: XMing)
Connect to SSH with the -X option (e.g. for Windows, there is a checkbox on Putty)
Launch Eclipse from the ssh connection.

Launching applications on remote windows xp from ubuntu 10.04 machine

I have ubuntu 10.04 installed on my machine. I want to execute commands on remote windows xp machine ( I have username and password of admin account of remote machine ) so as to launch application like Internet Explorer, Notepad or some bat script. Is there any command line utility to do this via ubuntu? I tried rdesktop, winexe, ssh, telnet but they are not much of use. Can you please suggest some other way?
If you are able to install software on the Windows machine, you can use a Virtual Network Computing software (UltraVNC and RealVNC are good).
This will let you connect and interact as if you were in front of the machine.