[LINUX] Use Xming to launch an Ubuntu GUI application on Windows.

Introduction

When launching a GUI application on Linux from Windows Simply executing the start command or batch from Tera-term will not start it.

Linux and Unix-like operating systems use the "X Window System" as their window system. "X Window System" is a client-server system, and "X protocol" is used for communication between systems. It is adopted.

In other words, if you want to display a Linux GUI application on Windows, use the "X protocol" on the Windows side. You need to set up a server that can communicate.

This time, I installed the free X server "Xming" for Windows on Windows and installed it on Ubuntu. Try starting "IntelliJ IDEA".

Xming installation

  1. Download setup Install Xming from the official website.  https://ja.osdn.net/projects/sfnet_xming/
  1. Start setup 2-1. Click "Next" without making any changes on the first screen. Setup2.png

2-2. Click "Next" on the next screen without making any changes. Setup3.png

2-3. You can select whether to create a folder in the start menu, but this time, click "Next" to make it the default. Setup4.png

2-4. You will be asked "Do you want to add another task?", So press "Next" with the default "XLaunch" set. Setup5.png

2-5. Execute "Install" Setup6.png

2-6. If the installation is successful, the following screen will be displayed. Click "Finish". Setup7.png

Set the transfer of X client application with Tera-term.

In Tera-term "Settings"-> "SSH port forwarding", set the check to "Display remote X application on local X server" and click "OK". tera-term1.png

Set the client IP address to hosts.0.

Since there is a config file "X0.hosts" in the installed Xming folder, Set the IP address on the Linux side here.

Start Xming.

Start "Xming.exe". Now you are ready. After that, when you start the application on Linux, it will be linked to Xming on Windows.

Reference: Start IntelliJ IDEA and display it on Windows.

As a reference, start "IntelliJ IDEA" on the Linux side and display the application on the Windows side. Confirm.

#Start IntelliJ IDEA
./idea.sh

The application is displayed on Windows. sampleoutput.png

in conclusion

By setting XLaunch, you can make detailed settings such as screen size. I will write about that in another article. maybe.

Recommended Posts

Use Xming to launch an Ubuntu GUI application on Windows.
How to use Dataiku on Windows
Print PDF in Python on Windows: Use an external application
How to use Google Assistant on Windows 10
[Windows] Memo to use Keras on GPU [Tensorflow-GPU]
Use pyvenv on Windows
Use Ansible on Windows
Use QuTiP on Windows
Preparing to use Ansible on an existing Linux server
I want to use OpenJDK 11 on Ubuntu Linux 18.04 LTS / 18.10
Run Jupyter on Ubuntu on Windows
Use matplotlib on Ubuntu 12 & Python
How to use VS Code in venv environment on windows
Introducing Kaggle's Docker Image on Windows to build an environment
Display GUI messages on Ubuntu
Use Python on Windows (PyCharm)
Remove ubuntu installed on Windows 10 machine
Python 3.6 on Windows ... and to Xamarin.
Notes on how to use pywinauto
How to install pycrypto on Windows
How to deploy django-compressor on Windows
Notes on how to use featuretools
Use Tensorflow 2.1.0 with Anaconda on Windows 10!
Run XGBoost on Bash on Ubuntu on Windows
Notes on how to use doctest
How to install Go on Ubuntu
How to install music 21 on windows
If you want to use NumPy, Pandas, Matplotlib, IPython, SciPy on Windows
Add words to MeCab's user dictionary on Ubuntu for use in Python
[Kivy] How to install Kivy on Windows [Python]
How to use mecab, neologd-ipadic on colab
RTKLIB 2.4.3 CLI version GUI version installed on Ubuntu 18.04
How to use OpenVPN with Ubuntu 18.04.3 LTS
How to use Cmder with PyCharm (Windows)
[Note] Procedures for installing Ubuntu on Windows 10
Memorandum on how to use gremlin python
Use Ghost.py as an alternative to PhantomJS
How to install richzhang / colorization on Windows 10
Install python on xserver to use pip
How to install php7.4 on Linux (Ubuntu)
Launch Flask application with Docker on Heroku
Building an environment for "Tello_Video" on Windows
[I'm an IT beginner] I tried my best to implement Linux on Windows
What to do if an SSL connection error (ssl.SSLError: [SSL: DH_KEY_TOO_SMALL]) occurs on Ubuntu 20.04