XWindows is a package, when installed, gives the Linux/Unix the graphics toolkit ability.
But in most practical cases, you are not the ROOT user of the box. So you have to raise a request to infrastructure team for installing the XWindows package. And they will ask you hundreds of questions like:
why you need it?
are you sure you need it?
prove us, that XWindows will solve your problem etc etc...
You want to be very sure that installing XWindows will solve your problem. For this, you may follow these steps:
- CYGWIN is an application, using which you can simulate Linux like facilities in your windows machine. Install CYGWIN in your system from here. While installing, it will give you options regarding which packages you want to install. Make sure the X11 packages are all selected.
- Put your application jar into the remote machine, where your application is supposed to run.
- Open CYGWIN window and run "startxwin.bat". It will start the xserver and open a new window. Or you can directly open XWin Server from the start-menu under Cygwin-x.
- In the new window add the remote machine ip in the access control list. Using the command "xhost
" - In the remote machine set the DISPLAY property as: "export DISPLAY=/local machine ip/
" . By doing this, you are directing the remote machine, to use the display of you local machine for rendering.:0.0 - Now run the application in you remote machine. It should run fine.
Now that you are able to run your application using XWINDOWS, you can confidently go and command Infra team, that this is exactly what you want.
If you face any issues, please post it here, I will try to help you out.
Hope this makes your life easier. Because I had a hard time convincing my Infra team.
No comments:
Post a Comment