<p><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">1. 윈도우에 WSL 설치 (version 2)</span></p>
<p><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">2. 윈도우&nbsp; powershell (관리자모드)</span></p>
<p><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">&nbsp; &nbsp;&gt;wsl --update</span></p>
<p><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">3. 윈도우에 ubuntu 설치 (Microsoft Store)</span></p>
<p><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">4. 우분투 설치 후 실행</span></p>
<p><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">&nbsp; &nbsp;-기본적인 설정 완료하기 (vim, ncftp ...)</span></p>
<p><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">&nbsp; &nbsp;-아두이노 파일 및 libraries 다운로드</span></p>
<p><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">** 24.2.12 추가</span></p>
<p><font face="맑은 고딕, malgun gothic"><span style="font-size: 14px;">1) wsl2에 우분투 설치후, 에러발생 ---&gt; 첨부파일중 wsl_update_x64.msi 설치</span></font></p>
<p><font face="맑은 고딕, malgun gothic"><span style="font-size: 14px;">2) PowerShell "관리자권한" 실행후,</span></font></p>
<p><font face="맑은 고딕, malgun gothic"><span style="font-size: 14px;">&nbsp; &nbsp; dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart</span></font></p>
<p><font face="맑은 고딕, malgun gothic"><span style="font-size: 14px;">&nbsp; &nbsp; [참조]&nbsp;</span></font><span style="font-size: 14px; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;;">https://changun516.tistory.com/215</span></p>
<p><span style="font-size: 14px; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;;">3) 인텔 그래픽 재설치&nbsp;</span></p>
<p><font face="맑은 고딕, malgun gothic"><span style="font-size: 14px;">&nbsp; &nbsp;https://www.lesstif.com/software-architect/windows-11-wslg-windows-subsystem-for-linux-gui-129007984.html</span></font></p>
<p><font face="맑은 고딕, malgun gothic"><span style="font-size: 14px;">&nbsp; &nbsp;[참조]&nbsp;</span></font><span style="font-size: 14px; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;;">https://www.lesstif.com/software-architect/windows-11-wslg-windows-subsystem-for-linux-gui-129007984.html</span></p>
<p><span style="font-size: 14px; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;;">4) python3 serial 설치</span><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">&nbsp; &nbsp;</span></p>
<p><span style="color: var(--black-600); font-family: var(--ff-mono); font-size: var(--_pr-code-fs); font-style: inherit; font-variant-ligatures: inherit; font-variant-caps: inherit; font-weight: inherit; white-space: inherit;">&nbsp; &nbsp; &nbsp;sudo apt-get install python3-serial -y</span></p>
<p><span style="font-size: 14px;">5) WSL2에서 아두이노 IDE실행시 메뉴 GUI가 너무 작을 경우,</span><br /></p>
<p><span style="font-size: 14px;">&nbsp; &nbsp; &nbsp;.bashrc 에서 맨아래에 추가</span></p>
<p>&nbsp;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp;export DISPLAY=:0.0</p>
<p>&nbsp;</p>
<p>&nbsp; &nbsp; &nbsp; &nbsp;export GDK_SCALE=2</p>
<p><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">--------------------------------------------------------------------------------------------------------------------------------------------</span></p>
<p><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">5. 아두이노 실행시 의존성 라이브러리 설치</span></p>
<p><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">&nbsp; &nbsp;**라이브러리 확인 사이트 :&nbsp;</span><span style="box-sizing: border-box; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;"><a href="https://packages.ubuntu.com/search?searchon=contents&amp;keywords=libatk-1.0.so.0&amp;mode=exactfilename&amp;suite=noble&amp;arch=any" target="_blank">https://packages.ubuntu.com/</a>&nbsp; &nbsp;</span></p>
<p><span style="box-sizing: border-box; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">&nbsp; &nbsp;python3 설치&nbsp;</span><span style="box-sizing: border-box; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">--&gt; su</span><span style="color: #555555; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">do apt install python-is-python3</span><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">&nbsp;</span></p>
<p style="box-sizing: border-box; padding: 0px; word-break: break-all; background-color: #ffffff;"><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">&nbsp;</span></p>
<p><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">6. 윈도우에 usbipd SW설치&nbsp; &nbsp;&nbsp;</span></p>
<p><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">&nbsp; &nbsp;&gt;Site :&nbsp;</span><a href="https://github.com/dorssel/usbipd-win" target="_blank"><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">https://github.com/dorssel/usbipd-win</span></a></p>
<p><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">&nbsp; &nbsp;&gt;Download :&nbsp;</span><a href="https://github.com/dorssel/usbipd-win/releases/tag/v2.4.1" target="_blank"><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">https://github.com/dorssel/usbipd-win/releases/tag/v2.4.1</span></a></p>
<p><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">&nbsp;</span></p>
<p><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">7. 우분투에서 usbipd 설정</span></p>
<p><span style="color: #313131; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">&nbsp; &nbsp;&gt;</span><span style="background-color: rgba(255, 255, 255, 0.1); white-space: pre-wrap; color: #313131; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">sudo apt install linux-tools-virtual hwdata</span></p>
<span style="white-space: pre-wrap; background-color: rgba(255, 255, 255, 0.1); color: #313131; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">   &gt;sudo update-alternatives --install /usr/local/bin/usbip usbip `ls /usr/lib/linux-tools/*/usbip | tail -n1` 20</span>
<p><span style="white-space: pre-wrap; background-color: rgba(255, 255, 255, 0.1); color: #313131; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">&nbsp;</span></p>
<p><span style="white-space: pre-wrap; background-color: rgba(255, 255, 255, 0.1); color: #313131; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">8. 윈도우에서 usbipd wsl list 로 FTDI장치 확인 </span></p>
<p><span style="white-space: pre-wrap; background-color: rgba(255, 255, 255, 0.1); color: #313131; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">    *먼저 WSL Ubuntu 시작 후 동작해야함</span></p>
<p><span style="white-space: pre-wrap; background-color: rgba(255, 255, 255, 0.1); color: #313131; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">    ex) 9-4 .... USB Serial Converter 라면</span></p>
<p><span style="white-space: pre-wrap; background-color: rgba(255, 255, 255, 0.1); color: #313131; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">    &gt;usbipd wsl attach -b 9-4 --auto-attach</span></p>
<p><span style="white-space: pre-wrap; background-color: rgba(255, 255, 255, 0.1); color: #313131; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">    *해제시에는 </span></p>
<p><span style="white-space: pre-wrap; background-color: rgba(255, 255, 255, 0.1); color: #313131; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">    &gt;usbipd wsl detach -b 9-4</span><span style="background-color: rgba(255, 255, 255, 0.1); color: #313131; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px; white-space: pre-wrap;"></span></p>
<p><span style="white-space: pre-wrap; background-color: rgba(255, 255, 255, 0.1); color: #313131; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">&nbsp;</span></p>
<p><span style="white-space: pre-wrap; background-color: rgba(255, 255, 255, 0.1); color: #313131; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">9. 우분투에서 lsusb로 장치확인</span></p>
<p><span style="white-space: pre-wrap; background-color: rgba(255, 255, 255, 0.1); color: #313131; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">    그리고 장치 사용할 수 있도록 소유권 변경</span></p>
<p><span style="white-space: pre-wrap; background-color: rgba(255, 255, 255, 0.1); color: #313131; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">    &gt;sudo chown {username} /dev/ttyUSB0 </span></p>
<p><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">&nbsp; &nbsp;or</span></p>
<p><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">&nbsp; &nbsp;&gt;</span><span style="background-color: #ffffff; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">sudo chmod 666 /dev/ttyUSB0</span></p>
<p><span style="background-color: #ffffff; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">&nbsp;</span></p>
<p><span style="background-color: #ffffff;"><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">&nbsp; &nbsp;외장 usb메모리 마운트 방법</span><br /><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">&nbsp; &nbsp;</span></span><a href="https://learn.microsoft.com/ko-kr/archive/blogs/wsl/file-system-improvements-to-the-windows-subsystem-for-linux" target="_blank"><span style="font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">https://learn.microsoft.com/ko-kr/archive/blogs/wsl/file-system-improvements-to-the-windows-subsystem-for-linux</span></a><span style="background-color: #ffffff; font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 14px;">&nbsp; &nbsp;</span></p>
<p style="box-sizing: inherit; outline-color: inherit; margin-top: 1rem; padding: 0px; overflow-wrap: break-word; color: #e6e6e6; font-family: &quot;Segoe UI&quot;, SegoeUI, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #171717;">
   <code style="box-sizing: inherit; outline-color: inherit; font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.6px; direction: ltr; background-color: var(--theme-inline-code); overflow-wrap: break-word; border-radius: 3px; padding: 0.1em 0.2em;">$ sudo mkdir /mnt/d</code>
   </p>
<p style="box-sizing: inherit; outline-color: inherit; margin-top: 1rem; padding: 0px; overflow-wrap: break-word; color: #e6e6e6; font-family: &quot;Segoe UI&quot;, SegoeUI, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; background-color: #171717;">
   <code style="box-sizing: inherit; outline-color: inherit; font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace; font-size: 13.6px; direction: ltr; background-color: var(--theme-inline-code); overflow-wrap: break-word; border-radius: 3px; padding: 0.1em 0.2em;">$ sudo mount -t drvfs D: /mnt/d</code>
   </p>
<p>&nbsp;</p>
<p>&nbsp; &nbsp;상기사항을 .bashrc에 설정</p>
<p>alias mount_d='sudo mount -t drvfs D: /mnt/d'</p>
<p>alias usb0='sudo chmod 666 /dev/ttyUSB0'</p>
<p>&nbsp;</p>
<p><span style="font-size: 14px;">10. 아두이노 폰트설정</span></p>
<p><span style="font-size: 14px;">&nbsp; &nbsp; &nbsp;다음 링크를 참조하여 WSL Ubuntu 폰트설정&nbsp; </span><a href="http://pinedance.github.io/blog/2021/02/08/WSL-fonts" target="_blank"><span style="font-size: 14px;">http://pinedance.github.io/blog/2021/02/08/WSL-fonts</span></a></p>
<p style="margin-top: 20px; line-height: 1.9em; overflow-wrap: break-word;"><span style="font-size: 14px;">아래와 같이 WSL에서 font 설정을 추가해 주면 windows에서 이미 제공하고 있는 font를 WSL에서도 사용할 수 있다.</span><br />
   <code class=" highlighter-rouge language-plaintext" style="font-family: consolas, monaco, &quot;andale mono&quot;, &quot;ubuntu mono&quot;, monospace; color: #cccccc; background: rgb(45, 45, 45); padding: 0.1em; word-spacing: normal; word-break: normal; overflow-wrap: normal; line-height: 1.5; tab-size: 4; hyphens: none; border-radius: 0.3em;"><span style="font-size: 14px;">/etc/fonts/local.conf</span></code>
   <span style="font-family: &quot;fira sans&quot;, sans-serif;"><span style="font-size: 14px;">
   &nbsp;파일(이미 있다면 추가, 없다면 생성)에 아래와 같이 추가한다.</span><br /></span><span style="background-color: #2d2d2d; color: #cccccc; font-family: consolas, monaco, &quot;andale mono&quot;, &quot;ubuntu mono&quot;, monospace; word-spacing: normal;"></span></p>
<p style="margin-top: 20px; line-height: 1.9em; overflow-wrap: break-word;"><font face="fira sans, sans-serif"><span style="font-size: 11px;">&lt;?xml version="1.0"?&gt;<br /></span></font><span style="font-size: 11px; font-family: &quot;fira sans&quot;, sans-serif;">&lt;!DOCTYPE fontconfig SYSTEM "fonts.dtd"&gt;<br /></span><span style="font-size: 11px; font-family: &quot;fira sans&quot;, sans-serif;">&lt;fontconfig&gt;<br /></span><span style="font-size: 11px; font-family: &quot;fira sans&quot;, sans-serif;">&nbsp; &nbsp; &lt;dir&gt;/mnt/c/Windows/Fonts&lt;/dir&gt;<br /></span><span style="font-size: 11px; font-family: &quot;fira sans&quot;, sans-serif;">&lt;/fontconfig&gt;</span></p>
<div class="language-xml highlighter-rouge" style="font-family: &quot;fira sans&quot;, sans-serif;">
   <div class="highlight line-numbers">
      <div class="code-toolbar" style="position: relative;">
         <pre class="highlight line-numbers language-xml" style="font-family: consolas, monaco, &quot;andale mono&quot;, &quot;ubuntu mono&quot;, monospace; margin-top: 0.5em; margin-bottom: 0.5em; line-height: 1.5; overflow: auto; background: rgb(45, 45, 45); border: 1px solid rgb(221, 221, 221); padding: 1em 1em 1em 2.8em; color: #cccccc; word-spacing: normal; word-break: normal; overflow-wrap: normal; tab-size: 4; hyphens: none; position: relative; counter-reset: linenumber 0; border-radius: 0.4em;">
            <code class=" language-xml" style="font-family: consolas, monaco, &quot;andale mono&quot;, &quot;ubuntu mono&quot;, monospace; background: none; padding: 0px; white-space: inherit; word-spacing: normal; word-break: normal; overflow-wrap: normal; line-height: 1.5; tab-size: 4; hyphens: none; position: relative;"><span class="token prolog" style="color: #999999; font-size: 11px;">&lt;?xml version="1.0"?&gt;</span><span class="token doctype" style="color: #999999; font-size: 11px;">&lt;!DOCTYPE fontconfig SYSTEM "fonts.dtd"&gt;</span><span class="token tag" style="color: #e2777a;"><span class="token punctuation" style="color: #cccccc; font-size: 11px;">&lt;</span><span style="font-size: 11px;">fontconfig</span><span class="token punctuation" style="color: #cccccc; font-size: 11px;">&gt;</span></span><span class="token tag" style="color: #e2777a;"><span class="token punctuation" style="color: #cccccc; font-size: 11px;">&lt;</span><span style="font-size: 11px;">dir</span><span class="token punctuation" style="color: #cccccc; font-size: 11px;">&gt;</span></span><span style="font-size: 11px;">/mnt/c/Windows/Fonts</span><span class="token tag" style="color: #e2777a;"><span class="token punctuation" style="color: #cccccc; font-size: 11px;">&lt;/</span><span style="font-size: 11px;">dir</span><span class="token punctuation" style="color: #cccccc; font-size: 11px;">&gt;</span></span><span class="token tag" style="color: #e2777a;"><span class="token punctuation" style="color: #cccccc; font-size: 11px;">&lt;/</span><span style="font-size: 11px;">fontconfig</span><span class="token punctuation" style="color: #cccccc; font-size: 11px;">&gt;</span></span><span aria-hidden="true" class="line-numbers-rows" style="position: absolute; pointer-events: none; top: 0px; left: -3.8em; width: 3em; letter-spacing: -1px; border-right: 1px solid rgb(153, 153, 153); user-select: none;"><span style="pointer-events: none; display: block; counter-increment: linenumber 1;"></span><span style="pointer-events: none; display: block; counter-increment: linenumber 1;"></span><span style="pointer-events: none; display: block; counter-increment: linenumber 1;"></span><span style="pointer-events: none; display: block; counter-increment: linenumber 1;"></span><span style="pointer-events: none; display: block; counter-increment: linenumber 1;"></span></span></code>
            </pre>
         <div class="toolbar" style="position: absolute; top: 0.3em; right: 0.2em; transition: opacity 0.3s ease-in-out 0s; opacity: 0;">
            <div class="toolbar-item" style="display: inline-block;"><button style="background: rgba(224, 224, 224, 0.2); border-width: 0px; border-style: initial; border-color: initial; color: #bbbbbb; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; font-family: inherit; overflow: visible; padding: 0px 0.5em; user-select: none; box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 0px 0px; border-radius: 0.5em;"><span style="font-size: 11px;">Copy</span></button></div>
            </div>
         </div>
      </div>
   </div>
<p>
   <code class=" highlighter-rouge language-plaintext" style="font-family: consolas, monaco, &quot;andale mono&quot;, &quot;ubuntu mono&quot;, monospace; color: #cccccc; background: rgb(45, 45, 45); padding: 0.1em; word-spacing: normal; word-break: normal; overflow-wrap: normal; line-height: 1.5; tab-size: 4; hyphens: none; border-radius: 0.3em;"><span style="font-size: 14px;">/mnt/c/Windows/Fonts</span></code>
   <span style="font-family: &quot;fira sans&quot;, sans-serif; font-size: 14px;">는 windows filesystem에서 font를 저장하고 있는 폴더 위치</span></p>
<p><span style="background-color: #2d2d2d; color: #cccccc; font-family: consolas, monaco, &quot;andale mono&quot;, &quot;ubuntu mono&quot;, monospace; font-size: 14px;">fc-cache -r -v<br /></span><font color="#cccccc" face="consolas, monaco, andale mono, ubuntu mono, monospace"><span style="font-size: 14px; background-color: #2d2d2d;">fc-list</span></font></p>
<p>&nbsp;</p>
<p><span style="font-size: 14px;">&nbsp;</span></p>
<p><span style="font-size: 14px;">&nbsp; &nbsp;&gt;C:\Users\bk940\AppData\Local\Arduino15\preferences.txt ---&gt; .arduino15/에 복사&nbsp;</span></p>