banner



How To Install Gnuplot On Windows 10

(Windows10) Install Linux environs and gnuplot.

Who is the target of this article

-People who only have a Windows x car simply demand a Linux environs. ・ People who have recently started studying servers. ・ University students who are about to start programming classes.

Abstract Build an surround on Windows10 that allows you lot to use Ubuntu terminals and Linux commands ( fustigate, ssh, git, apt, etc.). Then, install gnuplot in Ubuntu then that the output result can exist displayed on Windows 10.

Build a Linux environment on Windows 10.

Install "Ubuntu 18.04 LTS" or "Ubuntu 20.04 LTS" from the Microsoft Store.

18.04 https://www.microsoft.com/shop/productId/9N9TNGVNDL3Q

20.04 https://www.microsoft.com/store/productId/9N6SVWS3RX71 ubuntu

To refer to Windows files, add the `` `/ mnt/``` directory to the beginning as shown beneath.

For instance, when moving to a file on drive C

python

                      $ cd /mnt/C/...                  

You tin access it by doing.

Introduction of X Window System

This fourth dimension, by introducing X Window System, the result of execution on Linux (Ubuntu) (for example, the graph output by gnuplot) can be displayed on Windows. Install x11 on Linux (Ubuntu) and Xming on Windows.

x11 installation

Commencement Ubuntu downloaded earlier and enter the post-obit command.

python

                      #apt update $ sudo apt update $ sudo apt upgrade  #x11 installation $ sudo apt install x11-apps                  

Here, make sure that x11 is installed normally on the Limux side and that the GUI does not exist on the Windows side. At present, when I try to display something with x11, I should get an mistake. Execute the following command.

python

                      $ xeyes &                  

And so

python

                      Fault: Can't open up brandish                  

Is displayed, OK.

Xming installation

Download and install the following files from Xming X Server for Windows. Be sure to reboot later on installation.

-[Xming-vi-nine-0-31-setup.exe] (https://ja.osdn.net/projects/sfnet_xming/downloads/Xming/6.nine.0.31/Xming-half dozen-ix-0-31-setup.exe/)

-[Xming-fonts-7-7-0-x-setup.exe] (https://ja.osdn.net/projects/sfnet_xming/downloads/Xming-fonts/7.7.0.ten/Xming-fonts-7-vii-0-ten-setup.exe/)

Bank check if it is installed

If yous execute the following control and the eye window appears, it is successful.

python

                      $ xeyes &                  

eyes

Note

When yous run xeyes &,

python

                      Error: Tin can't open brandish:                  

Or

python

                      Error: Unable to initialize GTK+, is DISPLAY set properly?                  

You may get an error like this. This time,

python

                      $ export Brandish=:0                  

Or

python

                      $ export Brandish=:0.0                  

And run ``` xeyes &` `` again and it works.

Magic

If you add the above command to ~/.bashrc, you will not take to enter information technology from the side by side time. Below is an case control for editing `~/.bashrc``` with Vi```. You can add `` export DISPLAY =: 0 or `` `export DISPLAY =: 0.0 to ~/.bashrc``` just by executing from above.

First, open `~/.bashrc``` with `Vi```.

python

                      $ half dozen ~/.bashrc                  

Next, enter the following line by line in Vi.

python

                      #Jump to the last line Shift + g  #Insert mode i  #Motion to the cease of line Fn + ->  #new line Enter  #Input of magic consign Display=:0 or consign Display=:0.0  #Get out insert way Esc  #Save and leave Half dozen :wq                  

Finally, reflect the changes in ~/.bashrc.

python

                      $ source ~/.bashrc                  

Install gnuplot

First, create a lock file in Ubuntu.

python

                      $ sudo touch /var/lib/dpkg/lock $ sudo chmod 640 /var/lib/dpkg/lock $ sudo chown root:root /var/lib/dpkg/lock                  

Then update apt. (Not necessary if you did it in ii.)

python

                      $ sudo apt update $ sudo apt upgrade                  

Finally, install `` `gnuplot```.

python

                      $ sudo apt install gnuplot                  

Performance check of gnuplot

Start by typing gnuplot on the concluding. Enter the following control and if the graph of $ y = \ sin (x) $ appears, it is successful.

          gnuplot> ready final x11 gnuplot> plot sin(x)                  

Note

hither

python

                      Mistake: Tin can't open display:                  

Or

python

                      Fault: Unable to initialize GTK+, is Display set up properly?                  

When an error similar this appears, execute `` `export DISPLAY =: 0``` etc., or execute Magic again.

Bonus: Install your favorite editor.

-Vim (included in Ubuntu every bit standard)

・ VScode (https://code.visualstudio.com/) ・ Installation method, etc. https://qiita.com/Shi-nakaya/items/c43fb6c1e638d51bf1c8

・ Cantlet (https://cantlet.io/) ・ Installation method, etc. https://qiita.com/purini-to/items/caca2a0c56e984b2f9d8

Referenced sites, etc.

GUI with Bash on Ubuntu on Windows + Xming

https://qiita.com/makky0620/items/e31edc90f22340d791ff

Error installing gnuplot

four of this (https://forums.ubuntulinux.jp/viewtopic.php?pid=32854)

Source: https://linuxtut.com/en/3a69dddf88985b7d9971/

Posted by: riveracamortautley.blogspot.com

0 Response to "How To Install Gnuplot On Windows 10"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel