sudo apt-get update && sudo apt-get install
sudo yum update && sudo yum install redhat-lsb-core
sudo dnf update && sudo dnf install redhat-lsb-core
sudo zypper update && sudo zypper install lsb-core
pacman -Syu lsb-release
Display all LSB information specific to your Linux distribution
lsb_release -a
Download Link: https://sourceforge.net/projects/xming/
choosing "Full" for installation type.
After installation, start the Xming X Server for Windows. You should see an icon with an "X" in the system tray if it started successfully.
- Install the Putty SSH clients on Windows.
- Navigate to Connection => SSH => X11 and check the box labeled "Enable X11 forwarding" as shown in the screenshot below:
- On the remote X server machine, edit the "/etc/ssh/sshd_config" file and make sure that "X11Forwarding" option is set to "Yes" and that the "X11DisplayOffset" is set to an appropriate value (by default, 10).
- Use Putty to connect to the remote machine, and launch the desired GUI application using the command line (e.g. "./install").
If you see the following errors, here are some tips to solve it:
- Update your Linux Standard Based Package
- Remove the following libraries from the MathWorks Installation files, specifically the /bin/glnxa64 directory: libcrypto.so.1.1 libssl.so.1.1
Reference :
- https://www.mathworks.com/matlabcentral/answers/513449-what-unable-to-launch-the-matlabwindow-application-during-installation
- https://www.mathworks.com/matlabcentral/answers/540707-why-does-matlab-fail-to-install-with-a-std-runtime_error-what-unable-to-launch-the-matlabwind
After trying the recommended solution, if you are still encountering Error 1 & Error 2, you might missing some library depencies in your linux machine:
- libx11
- libxcomposite
- libxcursor
- libxdamage
- libxext
- libxfixes
- libxft
- libxi
- libxrandr libxrender
- libxScrnSaver
- libxt
- libxtst
- libxxf86vm
- alsa-lib
- atk
- cairo
- cups-libs
- fontconfig
- GConf2
- gtk2
- gdk-pixbuf2
- gnome-vfs2
- gstreamer1-plugins-base
- gstreamer1
- pango
- libsndfile
- libxcb
- libxslt
eg. to install the particular package : You may google "Install libx11 in ubuntu", it should promoted the installation command for your linyx system