Skip to content
Advertisement

XTerm on windows

I have Swing Java application manifesting an error on linux, which I need to fix. The main problem is getting linux environment, and I’m unwilling to install one because I have a remote linux box already. Now, the GUI part, how would I run xterm on windows? I made several shots in the dark: installed XMing, and then got totally confused what to do next. RealVNC is equally challenging. Do I run VNC server in service or user mode, or do I start the third option: VNC viewer? If you haven’t noticed, I’m totally confused what is the server and what is client — I was told that X_window community got it totally wrong, and what everybody else in computer field calls client is server?

So, why can’t I just run “xterm remoteLinuxHost” just the way I do “telnet remoteLinuxHost”? Why there is a zillion steps to do such trivial thing? Would appreciate if anybody would guide me through this pain.

Edit: Running vncserver command on linux box made the setup. Now VNC viewer connects and displays XTerm. Many thanks!

Advertisement

Answer

I’m a little unclear on what you’re trying to do, but if you just need to get a shell open, the easiest thing to do would be to install PuTTY and use it to telnet or ssh into the VM.

If you want to run a (gui) Java application on the Linux VM, it seems to me that the easiest thing to do would be to install the X11 environment in the VM and run the application in the VM console. That way, the application and the GUI are all on the Linux system and you don’t have to muck around with remote X sessions.

In any case, getting a working X11 environment in Windows is likely to be a lot more hassle than doing it in Linux. It’s certainly not a trivial thing, anyway.

Edit: In response to your edited question, you shouldn’t need to use a VNC viewer or anything like that either. If you’re using VirtualBox or VMWare, you can open a console window that essentially functions as the “monitor” on your VM.

Another edit: In response to your comments/edits. I’ve used the TightVNC viewer for Windows to access a Linux box at work from home, and it worked fine. Performance can be a bit jerky depending on available bandwidth.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement