<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Yuji Suehiro</title>
    <description>The latest articles on DEV Community by Yuji Suehiro (@yujisue).</description>
    <link>https://dev.to/yujisue</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F896703%2F2f5ffead-9101-492d-a3e5-bf0ae2e33c06.png</url>
      <title>DEV Community: Yuji Suehiro</title>
      <link>https://dev.to/yujisue</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/yujisue"/>
    <language>en</language>
    <item>
      <title>Vector image conversion</title>
      <dc:creator>Yuji Suehiro</dc:creator>
      <pubDate>Sun, 21 Jul 2024 00:54:47 +0000</pubDate>
      <link>https://dev.to/yujisue/vector-image-conversion-4b26</link>
      <guid>https://dev.to/yujisue/vector-image-conversion-4b26</guid>
      <description>&lt;h2&gt;
  
  
  Introducton
&lt;/h2&gt;

&lt;p&gt;When I am asked to analyze data for collaborative research, I always send result images or graphs in vector formats so that some properties, such as colors and fonts, can be changed later. Charts exported from R are saved in EPS format, and figures output from my own programs are usually saved in SVG format.&lt;br&gt;&lt;br&gt;
However, there are many people who want to create figures using PowerPoint. For these researchers, I know that EPS and SVG are bad choices, and WMF/EMF is the best format to share. R can output graphs in WMF/EMF format, but not all of the programs I use support WMF/EMF output. So sometimes I have to convert the image format. In this case, I always use Inkscape to do the conversion.&lt;br&gt;
Since I was recently asked to teach how to do this, I made a Google Colab notebook to convert vector images and uploaded it &lt;a href="https://github.com/YujiSue/GeneralScripts/blob/main/VectorImageConverter.ipynb" rel="noopener noreferrer"&gt;here&lt;/a&gt; to share the methods. I will briefly introduce the commands used in the notebook. &lt;/p&gt;
&lt;h2&gt;
  
  
  What is Inkscape?
&lt;/h2&gt;

&lt;p&gt;For those who don't know the nice application, here is a brief introduction. &lt;br&gt;
It is a free software that allows us to work on design and illustration with intuitive and easy-to-understand operation, just like Adobe Illustrator. Please see the official &lt;a href="https://inkscape.org" rel="noopener noreferrer"&gt;site&lt;/a&gt; for deteials. &lt;/p&gt;
&lt;h2&gt;
  
  
  How to do the conversion
&lt;/h2&gt;

&lt;p&gt;First, install Inkscape if you do not have it yet. Google Colab is working on Ubuntu-based system, so the "apt" command is described below. Of course, Installation packages for other Linux distributions, MAC OS, or Windows OS are also available from the official site.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt-get &lt;span class="nb"&gt;install&lt;/span&gt; &lt;span class="nt"&gt;-y&lt;/span&gt; inkscape
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then all you need to do is run the Inkscape commands listed below, depending on the format you want to convert to.&lt;br&gt;
Supported source image formats include AI (Adobe Illustrator), EPS, PDF, SVG, etc. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;### To WMF
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Recent Inkscape (&amp;gt; ver. 1.0)&lt;/span&gt;
inkscape &lt;span class="nt"&gt;--export-filename&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&amp;lt;path-to-output&lt;span class="o"&gt;(&lt;/span&gt;.wmf&lt;span class="o"&gt;)&amp;gt;&lt;/span&gt; &amp;lt;path-to-source-image&amp;gt;
&lt;span class="c"&gt;# Old Inkscape&lt;/span&gt;
inkscape &lt;span class="nt"&gt;--without-gui&lt;/span&gt; &lt;span class="nt"&gt;--export-wmf&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&amp;lt;path-to-output&lt;span class="o"&gt;(&lt;/span&gt;.wmf&lt;span class="o"&gt;)&amp;gt;&lt;/span&gt; &amp;lt;path-to-source-image&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;### To EMF
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Recent Inkscape (&amp;gt; ver. 1.0)&lt;/span&gt;
inkscape &lt;span class="nt"&gt;--export-filename&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&amp;lt;path-to-output&lt;span class="o"&gt;(&lt;/span&gt;.emf&lt;span class="o"&gt;)&amp;gt;&lt;/span&gt; &amp;lt;path-to-source-image&amp;gt;
&lt;span class="c"&gt;# Old Inkscape&lt;/span&gt;
inkscape &lt;span class="nt"&gt;--without-gui&lt;/span&gt; &lt;span class="nt"&gt;--export-emf&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&amp;lt;path-to-output&lt;span class="o"&gt;(&lt;/span&gt;.emf&lt;span class="o"&gt;)&amp;gt;&lt;/span&gt; &amp;lt;path-to-source-image&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;### To PDF
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Recent Inkscape (&amp;gt; ver. 1.0)&lt;/span&gt;
inkscape &lt;span class="nt"&gt;--export-filename&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&amp;lt;path-to-output&lt;span class="o"&gt;(&lt;/span&gt;.pdf&lt;span class="o"&gt;)&amp;gt;&lt;/span&gt; &amp;lt;path-to-source-image&amp;gt;
&lt;span class="c"&gt;# Old Inkscape&lt;/span&gt;
inkscape &lt;span class="nt"&gt;--without-gui&lt;/span&gt;  &lt;span class="nt"&gt;--export-pdf&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&amp;lt;path-to-output&lt;span class="o"&gt;(&lt;/span&gt;.pdf&lt;span class="o"&gt;)&amp;gt;&lt;/span&gt; &amp;lt;path-to-source-image&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;### To EPS
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Recent Inkscape (&amp;gt; ver. 1.0)&lt;/span&gt;
inkscape &lt;span class="nt"&gt;--export-text-to-path&lt;/span&gt; &lt;span class="nt"&gt;--export-filename&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&amp;lt;path-to-output&lt;span class="o"&gt;(&lt;/span&gt;.eps&lt;span class="o"&gt;)&amp;gt;&lt;/span&gt; &amp;lt;path-to-source-image&amp;gt;
&lt;span class="c"&gt;# Old Inkscape&lt;/span&gt;
inkscape &lt;span class="nt"&gt;--without-gui&lt;/span&gt; &lt;span class="nt"&gt;--export-ps-level&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;3 &lt;span class="nt"&gt;--export-text-to-path&lt;/span&gt; &lt;span class="nt"&gt;--export-eps&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&amp;lt;path-to-output&lt;span class="o"&gt;(&lt;/span&gt;.eps&lt;span class="o"&gt;)&amp;gt;&lt;/span&gt; &amp;lt;path-to-source-image&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;### To SVG
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Version independent&lt;/span&gt;
inkscape &lt;span class="nt"&gt;--export-plain-svg&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&amp;lt;path-to-output&lt;span class="o"&gt;(&lt;/span&gt;.svg&lt;span class="o"&gt;)&amp;gt;&lt;/span&gt; &amp;lt;path-to-source-image&amp;gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also convert to the raster image format. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;### To PNG
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# To the white background image&lt;/span&gt;
inkscape &lt;span class="nt"&gt;--export-background&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;white &lt;span class="nt"&gt;--export-filename&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&amp;lt;path-to-output&lt;span class="o"&gt;(&lt;/span&gt;.png&lt;span class="o"&gt;)&amp;gt;&lt;/span&gt; &amp;lt;path-to-source-image&amp;gt;
&lt;span class="c"&gt;# To the transparent image&lt;/span&gt;
inkscape &lt;span class="nt"&gt;--export-background-opacity&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;0.0 &lt;span class="nt"&gt;--export-filename&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&amp;lt;path-to-output&lt;span class="o"&gt;(&lt;/span&gt;.png&lt;span class="o"&gt;)&amp;gt;&lt;/span&gt; &amp;lt;path-to-source-image&amp;gt;

&lt;span class="c"&gt;# To convert using old Inkscape, replace the '--export-filename'to'--export-png'.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;As you can see, if you are using the latest version of Inkscape, the command is very simple. You just set the extension of the output file path to the format you want to convert to. When converting to EPS, the text is encoded as a path object to avoid garbling.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;I introduced the methods to convert vector imgae using Inkscape. All the commands are available in my &lt;a href="https://github.com/YujiSue/GeneralScripts/blob/main/VectorImageConverter.ipynb" rel="noopener noreferrer"&gt;Google Colab Notebook&lt;/a&gt;.  &lt;/p&gt;

&lt;h2&gt;
  
  
  Reference
&lt;/h2&gt;

&lt;p&gt;Wiki for Inkscape command options.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;a href="https://wiki.inkscape.org/wiki/Using_the_Command_Line" rel="noopener noreferrer"&gt;https://wiki.inkscape.org/wiki/Using_the_Command_Line&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

</description>
    </item>
    <item>
      <title>First step to getting started in data science</title>
      <dc:creator>Yuji Suehiro</dc:creator>
      <pubDate>Sun, 24 Jul 2022 04:59:50 +0000</pubDate>
      <link>https://dev.to/yujisue/first-step-to-getting-started-in-data-science-7a2</link>
      <guid>https://dev.to/yujisue/first-step-to-getting-started-in-data-science-7a2</guid>
      <description>&lt;p&gt;When you start data science, it can be a laborious task to run the necessary software and build an environment to run the software on a new computer.&lt;/p&gt;

&lt;p&gt;I have written a &lt;a href="https://github.com/YujiSue/GeneralScripts/blob/main/multiple_installer.sh"&gt;script&lt;/a&gt; that can automatically install a collection of basic software commonly used in data science, so I will present it in this document.&lt;br&gt;
The software to be installed is listed below.  &lt;/p&gt;

&lt;p&gt;Since the individual software is well-known, you can find installation instructions for each of them in various books and websites. However, it may be time-consuming to look up installation procedures for each software individually. This script can install them all at once, saving you time and effort.&lt;/p&gt;

&lt;p&gt;* For use of the script, the OS should be Ubuntu 18.04 (64bit) and the NVIDIA GPU should be installed&lt;br&gt;&lt;/p&gt;
&lt;h1&gt;
  
  
  Requirement
&lt;/h1&gt;

&lt;p&gt;This script works in the OS Ubuntu 18.04 and requires NVIDIA GPU.&lt;/p&gt;
&lt;h1&gt;
  
  
  Test Environment
&lt;/h1&gt;

&lt;p&gt;I tested the following systems.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.6 LTS"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The model numbers of NVIDIA GPUs are as follows.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ lspci | grep -i nvidia
03:00.0 VGA compatible controller: NVIDIA Corporation GK110GL [Quadro K5200] (rev a1)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Software list installed by the script
&lt;/h1&gt;

&lt;p&gt;You can install the following apps and libraries*1 to run the apps.  &lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;NVIDIA GPU Driver *2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;git&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Clang&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CMake&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Perl&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GNU Fortran&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CUDA+CuDNN *3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Python3 *4 (+pip)(+modules *5)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenJDK&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Docker(+NVIDIA Docker)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MySQL+SQLite&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Node+npm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;R&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Graphviz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenCV&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FFmpeg&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cURL&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;cifs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;clamAV&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;doxygen&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;mozc *6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OpenSSH(server)+ufw *7&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;*1 Please check lines 54-62 in the script for details.  &lt;/p&gt;

&lt;p&gt;*2 The default driver version is set as 470. If you need, please change the version according to the following description. &lt;/p&gt;

&lt;p&gt;*3 You need to download the CUDA package and CuDNN sources before running the script. Please refer to the following description.  &lt;/p&gt;

&lt;p&gt;*4 python3 in Ubuntu 18.04 will be updated to 3.7.  &lt;/p&gt;

&lt;p&gt;*5 The modules are listed below.  &lt;/p&gt;

&lt;p&gt;*6 For Japanese only. Please ignore or set it as a non-installation app according to the How to customize.  &lt;/p&gt;

&lt;p&gt;*7 After the installation, the SSH server will be automatically started. If not needed, set it as a non-installation app according to the How to customize.  &lt;/p&gt;

&lt;h2&gt;
  
  
  Python modules installed by the script
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;numpy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;pandas&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;matplotlib&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;scikit-learn&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;hmmlearn&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;umap-learn&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;tensorflow&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;torch&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;openpyxl&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;python-docx&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;python-pptx&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;reportlab&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;graphviz&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;selenium&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;beautifulsoup4&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h1&gt;
  
  
  How to use
&lt;/h1&gt;

&lt;h2&gt;
  
  
  1. Download my script
&lt;/h2&gt;

&lt;p&gt;Run the following command to download "multiple_installer.sh" from &lt;a href="https://github.com/YujiSue/GeneralScripts"&gt;my GitHub repository&lt;/a&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ wget https://raw.githubusercontent.com/YujiSue/GeneralScripts/main/multiple_installer.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  1.5 Customization of the script (Optional)
&lt;/h2&gt;

&lt;p&gt;Please edit the "multiple_installer.sh" if you need.&lt;/p&gt;

&lt;h3&gt;
  
  
  - Select apps to install
&lt;/h3&gt;

&lt;p&gt;If you find apps that are not required for your task, please edit the sentence &lt;strong&gt;inst_XXX＝true&lt;/strong&gt; at lines 13-33 in the script. If you change the value from &lt;strong&gt;true&lt;/strong&gt; to &lt;strong&gt;false&lt;/strong&gt;, the associated app will not be installed.&lt;/p&gt;

&lt;h3&gt;
  
  
  - Specify Version
&lt;/h3&gt;

&lt;p&gt;Please change the GPU driver version at line 35 depending on the model of your GPU.&lt;br&gt;&lt;br&gt;
You can also change the versions of CMake and OpenCV to install by editing lines 36 and 37 in the script, respectively.&lt;br&gt;&lt;br&gt;
Default values are v3.22.5 for CMake and v4.5.5 for OpenCV.&lt;/p&gt;
&lt;h3&gt;
  
  
  - Specify directory to download
&lt;/h3&gt;

&lt;p&gt;You can change the directory to store files downloaded during the installation of some apps by editing line 44. The default location is set as "$HOME/Downloads". If you would like to change it, rewrite the directory path after  &lt;strong&gt;TEMPORARY=&lt;/strong&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  2. Download the CUDA package and CuDNN source codes
&lt;/h2&gt;

&lt;p&gt;The versions of CUDA and CuDNN can be installed depending on the GPU model. Please refer to &lt;a href="https://developer.nvidia.com/cuda-gpus#compute"&gt;here&lt;/a&gt; for details.&lt;br&gt;&lt;br&gt;
For this reason, (1) the version of CUDA and CuDNN should be specified in advance, (2) the CUDA package should be downloaded, and (3) the CuDNN source codes should be downloaded.  &lt;/p&gt;

&lt;p&gt;(1) You can specify the versions of CUDA and CuDNN by editing lines 38-39 in the script "multiple_installer.sh".&lt;br&gt;&lt;br&gt;
The default versions are set as CUDA v11.5 and CuDNN v8.3.1.22.  &lt;/p&gt;

&lt;p&gt;(2) The CUDA package for Ubuntu can be downloaded from &lt;a href="https://developer.nvidia.com/cuda-downloads"&gt;NVIDIA site&lt;/a&gt;. Select your OS (Ubuntu18.04 64bit) and download &lt;strong&gt;~.deb&lt;/strong&gt;.&lt;br&gt;&lt;br&gt;
If you use the default setting, you can download the file by the following command.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ wget https://developer.download.nvidia.com/compute/cuda/11.5.1/local_installers/cuda-repo-ubuntu1804-11-5-local_11.5.1-495.29.05-1_amd64.deb
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(3) The CuDNN source codes can be downloaded from &lt;a href="https://developer.nvidia.com/cudnn-download-survey"&gt;NVIDIA developer's site&lt;/a&gt;. Since the NVIDIA developer's account is required for the download, if you do not have your account, create an account for the downloading. Once logged in, download the CuDNN source codes for your version of CUDA.&lt;br&gt;&lt;br&gt;
If you use the default setting, download the following file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cudnn-linux-x86_64-8.3.1.22_cuda11.5-archive.tar.xz
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(4) The downloaded files should be stored in the directory specified on line 44 in the script. The default directory is set as "$HOME/Downloads".&lt;br&gt;&lt;br&gt;
If you changed the directory in the customize section, do not forget to change the save location.&lt;/p&gt;
&lt;h2&gt;
  
  
  3. Run the "multiple_installer.sh"
&lt;/h2&gt;

&lt;p&gt;You can run the script by bash command.&lt;br&gt;&lt;br&gt;
To run the "sudo" command, you need to input your password once.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ bash multiple_installer.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  4. (Optional) Remove downloaded files
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;$ rm multiple_installer.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Reference docs or sites
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;Installation of NVIDIA GPU Driver
&lt;a href="https://note.com/setoyama60jp/n/n600df9f34230"&gt;https://note.com/setoyama60jp/n/n600df9f34230&lt;/a&gt; (Japanese)&lt;/li&gt;
&lt;li&gt;Installation of CUDA
&lt;a href="https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html"&gt;https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Installation of CuDNN
&lt;a href="https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html"&gt;https://docs.nvidia.com/deeplearning/cudnn/install-guide/index.html&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Installation of Clang
&lt;a href="https://apt.llvm.org/"&gt;https://apt.llvm.org/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Installation of CMake
&lt;a href="https://github.com/Kitware/CMake"&gt;https://github.com/Kitware/CMake&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Installation of Docker
&lt;a href="https://docs.docker.com/engine/install/ubuntu/"&gt;https://docs.docker.com/engine/install/ubuntu/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Installation of NVIDIA Docker
&lt;a href="https://docs.nvidia.com/ai-enterprise/deployment-guide/dg-docker.html#installing-docker"&gt;https://docs.nvidia.com/ai-enterprise/deployment-guide/dg-docker.html#installing-docker&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Installation of NodeJS+npm
&lt;a href="https://www.npmjs.com/package/n"&gt;https://www.npmjs.com/package/n&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Installation of R
&lt;a href="https://cran.r-project.org/bin/linux/ubuntu/"&gt;https://cran.r-project.org/bin/linux/ubuntu/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Installation of OpenCV
&lt;a href="https://github.com/jayrambhia/Install-OpenCV"&gt;https://github.com/jayrambhia/Install-OpenCV&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Installation and launching of SSH server
&lt;a href="https://linuxize.com/post/how-to-enable-ssh-on-ubuntu-18-04/"&gt;https://linuxize.com/post/how-to-enable-ssh-on-ubuntu-18-04/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>datascience</category>
      <category>setup</category>
      <category>bash</category>
      <category>ubuntu</category>
    </item>
  </channel>
</rss>
