<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>devman.net</title>
    <description></description>
    <link>http://devman.net/</link>
    <atom:link href="http://devman.net/feed.xml" rel="self" type="application/rss+xml"/>
    <pubDate>Sat, 02 Nov 2019 20:48:47 +0000</pubDate>
    <lastBuildDate>Sat, 02 Nov 2019 20:48:47 +0000</lastBuildDate>
    <generator>Jekyll v3.8.5</generator>
    
      <item>
        <title>Git Commands</title>
        <description>&lt;ul id=&quot;markdown-toc&quot;&gt;
  &lt;li&gt;&lt;a href=&quot;#git-commands&quot; id=&quot;markdown-toc-git-commands&quot;&gt;Git Commands&lt;/a&gt;    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;#repository-관련&quot; id=&quot;markdown-toc-repository-관련&quot;&gt;Repository 관련&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#source-파일-이름-변경-및-경로-이동&quot; id=&quot;markdown-toc-source-파일-이름-변경-및-경로-이동&quot;&gt;Source 파일 이름 변경 및 경로 이동&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;git-commands&quot;&gt;Git Commands&lt;/h2&gt;
자주 사용하지 않아서 머릿속에서 잊혀져가는 Git Command들을 정리한다.

&lt;h4 id=&quot;repository-관련&quot;&gt;Repository 관련&lt;/h4&gt;

원격 Repository Url 확인

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;git config &lt;span class=&quot;nt&quot;&gt;--get&lt;/span&gt; remote.origin.url
https://github.com/devman-net/devman-net.git
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;git remote &lt;span class=&quot;nt&quot;&gt;-v&lt;/span&gt;
origin	https://github.com/devman-net/devman-net.git &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;fetch&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
origin	https://github.com/devman-net/devman-net.git &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;push&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

원격 Repository 추가
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;usage: git remote add &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&amp;lt;options&amp;gt;] &amp;lt;name&amp;gt; &amp;lt;url&amp;gt;

&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;git remote add repository-name git-url
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

Repository 이름 변경
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;usage: git remote rename &amp;lt;old&amp;gt; &amp;lt;new&amp;gt;

&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;git remote rename old-name new-name
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h4 id=&quot;source-파일-이름-변경-및-경로-이동&quot;&gt;Source 파일 이름 변경 및 경로 이동&lt;/h4&gt;
개발중에 namespace등의 변경으로 인해 파일의 이름이나 경로가 변경되는 경우가 있다.
이럴 때 IDE에서 무심코 이름을 변경했다가는 아주 피곤한 상태가 된다.
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;git &lt;span class=&quot;nb&quot;&gt;mv&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&amp;lt;options&amp;gt;] &amp;lt;&lt;span class=&quot;nb&quot;&gt;source&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;... &amp;lt;destination&amp;gt;

&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;git &lt;span class=&quot;nb&quot;&gt;mv &lt;/span&gt;old-path/old-name.cs new-path/new-name.cs
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
</description>
        <pubDate>Sun, 03 Nov 2019 00:00:00 +0000</pubDate>
        <link>http://devman.net/2019/11/03/git-commands/</link>
        <guid isPermaLink="true">http://devman.net/2019/11/03/git-commands/</guid>
        
        <category>git</category>
        
        
        <category>Etc</category>
        
      </item>
    
      <item>
        <title>Linux Deploy 기반 개발환경 구축</title>
        <description>&lt;ul id=&quot;markdown-toc&quot;&gt;
  &lt;li&gt;&lt;a href=&quot;#linux-deploy-기반-개발환경-구축하기&quot; id=&quot;markdown-toc-linux-deploy-기반-개발환경-구축하기&quot;&gt;Linux Deploy 기반 개발환경 구축하기&lt;/a&gt;    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;#20181218-현재-버전&quot; id=&quot;markdown-toc-20181218-현재-버전&quot;&gt;2018.12.18 현재 버전&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;linux-deploy-기반-개발환경-구축하기&quot;&gt;Linux Deploy 기반 개발환경 구축하기&lt;/h2&gt;
집에서 놀고 있는 Samsung Galaxy S3에 프로그램 테스트를 위한 개발환경을 구축한다.
&lt;ol&gt;
  &lt;li&gt;Apache 2 웹서버 설치&lt;/li&gt;
  &lt;li&gt;Tomcat 설치&lt;/li&gt;
  &lt;li&gt;Apache와 Tomcat 연동&lt;/li&gt;
  &lt;li&gt;MariaDB 설치&lt;/li&gt;
  &lt;li&gt;Node.js, MongoDB 설치&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;20181218-현재-버전&quot;&gt;2018.12.18 현재 버전&lt;/h3&gt;

&lt;blockquote&gt;
  Samsung Galaxy S3 (SHV-E210S)&lt;br /&gt;
Android 4.4.4 (KitKat)&lt;br /&gt;
Linux Deploy 2.2.1-243&lt;br /&gt;
BusyBox 1.29.3-meefik
&lt;/blockquote&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Welcome to Ubuntu 14.04 LTS &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;GNU/Linux 3.0.31-9579646 armv7l&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;

 &lt;span class=&quot;k&quot;&gt;*&lt;/span&gt; Documentation:  https://help.ubuntu.com/
Ubuntu 14.04 LTS &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;running via Linux Deploy]
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

Apache2 설치
&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;apt-get install apache2&lt;/code&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;root@localhost:~# apt-get &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;apache2
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

Apache2 버전확인
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;root@localhost:~# apache2 &lt;span class=&quot;nt&quot;&gt;-v&lt;/span&gt;
Server version: Apache/2.4.7 &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;Ubuntu&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
Server built:   Apr  3 2014 12:23:45
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

MariaDB 설치
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;apt-get &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;software-properties-common
apt-get &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;mariadb-server

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
</description>
        <pubDate>Tue, 18 Dec 2018 00:00:00 +0000</pubDate>
        <link>http://devman.net/2018/12/18/linux-deploy-was/</link>
        <guid isPermaLink="true">http://devman.net/2018/12/18/linux-deploy-was/</guid>
        
        <category>ubuntu</category>
        
        <category>apache</category>
        
        
        <category>Etc</category>
        
      </item>
    
      <item>
        <title>VMWare Shared Folder 설정 [Ubuntu]</title>
        <description>&lt;ul id=&quot;markdown-toc&quot;&gt;
  &lt;li&gt;&lt;a href=&quot;#vmware-공유-폴더-설정하기&quot; id=&quot;markdown-toc-vmware-공유-폴더-설정하기&quot;&gt;VMware 공유 폴더 설정하기&lt;/a&gt;    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;#vmware-shared-foler-추가&quot; id=&quot;markdown-toc-vmware-shared-foler-추가&quot;&gt;VMWare Shared Foler 추가&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#reinstall-vmware-tools&quot; id=&quot;markdown-toc-reinstall-vmware-tools&quot;&gt;Reinstall VMWare Tools&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#설치완료-확인&quot; id=&quot;markdown-toc-설치완료-확인&quot;&gt;설치완료 확인&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#테스트-환경&quot; id=&quot;markdown-toc-테스트-환경&quot;&gt;테스트 환경&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;vmware-공유-폴더-설정하기&quot;&gt;VMware 공유 폴더 설정하기&lt;/h2&gt;
VMWare를 사용하면서 Host OS와 Guest OS간 폴더의 공유 필요성을 느낄 때가 있다.&lt;br /&gt;
이럴 때 VMWare의 공유 폴더 기능을 사용하면 편하다.

&lt;h3 id=&quot;vmware-shared-foler-추가&quot;&gt;VMWare Shared Foler 추가&lt;/h3&gt;
&lt;blockquote&gt;
  Guest OS에 공유할 폴더를 추가한다.
&lt;/blockquote&gt;

1 VMWare Menu &amp;gt; VM &amp;gt; &lt;code class=&quot;language-plaintext highlight highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;Settings&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;...&lt;/span&gt;&lt;/code&gt; 클릭

&lt;img src=&quot;https://i.imgur.com/ysf4O66.png?1&quot; alt=&quot;&quot; title=&quot;VMWare 설정 메뉴&quot; /&gt;

2 Options Tab &amp;gt; Shared Folders (Guest OS와 공유할 폴더를 추가하거나 제거한다.)

&lt;img src=&quot;https://i.imgur.com/FHe3eOp.png?1&quot; alt=&quot;&quot; title=&quot;VMWare 설정 옵션&quot; /&gt;

&lt;h3 id=&quot;reinstall-vmware-tools&quot;&gt;Reinstall VMWare Tools&lt;/h3&gt;
&lt;blockquote&gt;
  Host의 폴더를 Guest OS에 Mount하기 위해서 VMWare Tool을 재설치 한다.
&lt;/blockquote&gt;

1 VMWare Menu &amp;gt; VM &amp;gt; &lt;code class=&quot;language-plaintext highlight highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;Reinstall&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;VMWare&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;Tools&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;...&lt;/span&gt;&lt;/code&gt; 클릭

&lt;img src=&quot;https://i.imgur.com/1DsIRie.png?1&quot; alt=&quot;&quot; title=&quot;VMWare Tools 재설치&quot; /&gt;

2 DVD 형태로 Mount된 것을 확인할 수 있다.

&lt;img src=&quot;https://i.imgur.com/BgQBNrF.png&quot; alt=&quot;&quot; title=&quot;VMWare Tools 재설치&quot; /&gt;

3 &lt;code class=&quot;language-plaintext highlight highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;VMwareTools&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;10.1.15&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;6627299.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tar&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;gz&lt;/span&gt;&lt;/code&gt; 파일을 적당한 폴더에 압축을 푼다.

&lt;ul&gt;
  &lt;li&gt;Downloads 폴더에 압축을 푼다. &lt;code class=&quot;language-plaintext highlight highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;tar&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;xvvzf&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;VMwareTools&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;10.1.15&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;6627299.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tar&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;gz&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;C&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;~/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Downloads&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;압축이 풀린 경로로 이동 &lt;code class=&quot;language-plaintext highlight highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;cd&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;~/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Downloads&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;vmware&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tools&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;distrib&lt;/span&gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

4 vmware-install.pl 명령을 실행하여 VMWare Tools를 설치한다. &lt;code class=&quot;language-plaintext highlight highlighter-rouge&quot;&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;vmware&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;install&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pl&lt;/span&gt;&lt;/code&gt;

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;user@ubuntu:/media/user/VMware Tools&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;tar&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-xvvzf&lt;/span&gt; VMwareTools-10.1.15-6627299.tar.gz &lt;span class=&quot;nt&quot;&gt;-C&lt;/span&gt; ~/Downloads/
user@ubuntu:/media/user/VMware Tools&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;cd&lt;/span&gt; ~/Downloads/vmware-tools-distrib
user@ubuntu:~/Downloads/vmware-tools-distrib&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;sudo&lt;/span&gt; ./vmware-install.pl
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;설치완료-확인&quot;&gt;설치완료 확인&lt;/h3&gt;
&lt;code class=&quot;language-plaintext highlight highlighter-rouge&quot;&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mnt&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;hgfs&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;/code&gt; 폴더 안에 공유 설정한 폴더가 보이는지 확인한다. 폴더가 확인되지 않는 경우 재부팅을 한다.
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;user@ubuntu:~&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;ls&lt;/span&gt; /mnt/hgfs/
share
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;테스트-환경&quot;&gt;테스트 환경&lt;/h3&gt;
&lt;blockquote&gt;
  VMWare Workstation 14 Pro&lt;br /&gt;
Host OS: Windows 10 x64&lt;br /&gt;
Guest OS: Ubuntu 16.04 LTS
&lt;/blockquote&gt;
</description>
        <pubDate>Wed, 05 Dec 2018 00:00:00 +0000</pubDate>
        <link>http://devman.net/2018/12/05/vmware-shared-folder/</link>
        <guid isPermaLink="true">http://devman.net/2018/12/05/vmware-shared-folder/</guid>
        
        <category>vmware</category>
        
        <category>shared-folder</category>
        
        <category>linux</category>
        
        <category>ubuntu</category>
        
        
        <category>Etc</category>
        
      </item>
    
      <item>
        <title>Linux Deploy - Ubuntu 설치</title>
        <description>&lt;ul id=&quot;markdown-toc&quot;&gt;
  &lt;li&gt;&lt;a href=&quot;#linux-deploy---ubuntu-설치하기&quot; id=&quot;markdown-toc-linux-deploy---ubuntu-설치하기&quot;&gt;Linux Deploy - Ubuntu 설치하기&lt;/a&gt;    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;#20181205-현재-버전&quot; id=&quot;markdown-toc-20181205-현재-버전&quot;&gt;2018.12.05 현재 버전&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#설치-순서&quot; id=&quot;markdown-toc-설치-순서&quot;&gt;설치 순서&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#서비스-시작-1604-실패&quot; id=&quot;markdown-toc-서비스-시작-1604-실패&quot;&gt;서비스 시작 (16.04 실패)&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#ubuntu-1404-ltstrusty-설치&quot; id=&quot;markdown-toc-ubuntu-1404-ltstrusty-설치&quot;&gt;Ubuntu 14.04 LTS(Trusty) 설치&lt;/a&gt;    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;#sshsecure-shell-연결&quot; id=&quot;markdown-toc-sshsecure-shell-연결&quot;&gt;SSH(Secure Shell) 연결&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#permission-denied-우회&quot; id=&quot;markdown-toc-permission-denied-우회&quot;&gt;Permission denied 우회&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#adb-error&quot; id=&quot;markdown-toc-adb-error&quot;&gt;ADB Error&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#참조-사이트&quot; id=&quot;markdown-toc-참조-사이트&quot;&gt;참조 사이트&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#download-link&quot; id=&quot;markdown-toc-download-link&quot;&gt;Download Link&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;linux-deploy---ubuntu-설치하기&quot;&gt;Linux Deploy - Ubuntu 설치하기&lt;/h2&gt;
&lt;h3 id=&quot;20181205-현재-버전&quot;&gt;2018.12.05 현재 버전&lt;/h3&gt;
&lt;blockquote&gt;
  Samsung Galaxy S3 (SHV-E210S)&lt;br /&gt;
Android 4.4.4 (KitKat)&lt;br /&gt;
Linux Deploy 2.2.1-243&lt;br /&gt;
BusyBox 1.29.3-meefik
&lt;/blockquote&gt;

인터넷 상에 Ver 2.x에서 Linux 설치가 되지 않는다는 글들이 있는데 &lt;a href=&quot;https://github.com/meefik/linuxdeploy/wiki&quot; title=&quot;Linux Deploy Wiki&quot;&gt;Linux Deploy Wiki&lt;/a&gt;의 정보를 잘 읽으면 정상적인 설치가 될 것 같다. 물론 단말기와 환경에 따라서 실패할 가능성이 없지는 않다.

&lt;h3 id=&quot;설치-순서&quot;&gt;설치 순서&lt;/h3&gt;
1 단말기를 Rooting한다.&lt;br /&gt;
2 Google Play에서 &lt;code style=&quot;color:white&quot; class=&quot;language-plaintext highlighter-rouge&quot;&gt;Linux Deploy&lt;/code&gt;를 검색하여 단말기에 설치한다.&lt;br /&gt;
3 BusyBox 설치 - Linux Deploy 화면의 링크&lt;code style=&quot;color:red&quot; class=&quot;language-plaintext highlighter-rouge&quot;&gt;이 경로&lt;/code&gt;를 통하여 BusyBox 프로그램을 단말기에 설치한다.

&lt;img src=&quot;https://i.imgur.com/Gf5JzMD.png&quot; alt=&quot;&quot; title=&quot;Linux Deploy '이 경로' 링크 클릭&quot; /&gt;

4 BusyBox 실행 &lt;code style=&quot;color:white&quot; class=&quot;language-plaintext highlighter-rouge&quot;&gt;설치&lt;/code&gt; 버튼 클릭하여 BusyBox를 설치한다.

&lt;img src=&quot;https://i.imgur.com/xxE1Br5.png&quot; alt=&quot;&quot; title=&quot;BusyBox 설치된 화면&quot; /&gt;
&lt;img src=&quot;https://i.imgur.com/xHo62rX.png&quot; alt=&quot;&quot; title=&quot;BusyBox 정보&quot; /&gt;

5 &lt;code style=&quot;color:white&quot; class=&quot;language-plaintext highlighter-rouge&quot;&gt;Linux Deploy&lt;/code&gt; 설정을 변경한다. PATH 경로: &lt;code style=&quot;color:white&quot; class=&quot;language-plaintext highlighter-rouge&quot;&gt;/system/xbin&lt;/code&gt;로 변경, &lt;code style=&quot;color:red&quot; class=&quot;language-plaintext highlighter-rouge&quot;&gt;ENV 업데이이트&lt;/code&gt; 클릭

&lt;img src=&quot;https://i.imgur.com/wumHc7N.png&quot; alt=&quot;&quot; title=&quot;Linux Deploy 메뉴 &amp;gt; 설정&quot; /&gt;
&lt;img src=&quot;https://i.imgur.com/FXKZb9T.png&quot; alt=&quot;&quot; title=&quot;Linux Deploy 설정 &amp;gt; PATH 경로, ENV 업데이트&quot; /&gt;

6 Linux Deploy에서 설치할 리눅스를 선택하고 몇 가지 설정을 변경한다.
&lt;blockquote&gt;
  배포: Ubuntu&lt;br /&gt;
이미지 크기(MB): 2000 &lt;a href=&quot;https://github.com/meefik/linuxdeploy/wiki/%EB%AC%B8%EC%A0%9C%EB%A5%BC-%ED%95%B4%EA%B2%B0%ED%95%98%EB%8A%94-%EB%B0%A9%EB%B2%95&quot; title=&quot;Linux Deploy 문제를 해결하는 방법&quot;&gt;문제해결 링크&lt;/a&gt; (필자는 2048로 설정한 경우 실패했다.)&lt;br /&gt;
지역화, SSH, GUI 활성화
&lt;/blockquote&gt;

&lt;img src=&quot;https://i.imgur.com/SOoKK8S.png&quot; alt=&quot;&quot; title=&quot;Linux Deploy 속성 &amp;gt; 운영체제, 이미지 크기&quot; /&gt;
&lt;img src=&quot;https://i.imgur.com/YXLlN5X.png&quot; alt=&quot;&quot; title=&quot;Linux Deploy 속성 &amp;gt; 파일 시스템, 지역화&quot; /&gt;
&lt;img src=&quot;https://i.imgur.com/Chdzlq1.png&quot; alt=&quot;&quot; title=&quot;Linux Deploy 속성 &amp;gt; SSH, GUI 활성화&quot; /&gt;

7 Ubuntu 설치, (메인화면 우측상단 클릭 &amp;gt; 컨텍스트 메뉴 &amp;gt; 설치)

&lt;img src=&quot;https://i.imgur.com/7564q1c.png&quot; alt=&quot;&quot; title=&quot;Linux Deploy &amp;gt; Ubuntu 설치 확인&quot; /&gt;
&lt;img src=&quot;https://i.imgur.com/qFDs1SO.png&quot; alt=&quot;&quot; title=&quot;Linux Deploy &amp;gt; SU 루트권한 요청 &amp;gt; 허용&quot; /&gt;

8 정상적으로 설치가 된다면 시간이 흐른뒤에 &lt;code style=&quot;color:red&quot; class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;&amp;lt;&amp;lt; deploy&lt;/code&gt;가 출력되면 모든 설치가 끝난 것이다.

&lt;img src=&quot;https://i.imgur.com/kY1u72J.png&quot; alt=&quot;&quot; title=&quot;Linux Deploy &amp;gt; Ubuntu 설치 완료&quot; /&gt;

&lt;h2 id=&quot;서비스-시작-1604-실패&quot;&gt;서비스 시작 (16.04 실패)&lt;/h2&gt;
설치가 잘 됐으니 이제 하단의 &lt;code style=&quot;color:white&quot; class=&quot;language-plaintext highlighter-rouge&quot;&gt;시작&lt;/code&gt;를 클릭하여 Ubuntu를 시작한다.

&lt;div class=&quot;language-console highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gp&quot;&gt;[20:08:03] &amp;gt;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt; start
&lt;span class=&quot;go&quot;&gt;[20:08:04] Checking file system ... skip
[20:08:04] Mounting the container:
[20:08:04] / ... skip
[20:08:04] /proc ... skip
[20:08:04] /sys ... skip
[20:08:04] /dev ... skip
[20:08:04] /dev/shm ... skip
[20:08:04] /dev/pts ... skip
[20:08:04] :: Configuring core/mnt ...
[20:08:04] :: Configuring core/net ...
[20:08:04] :: Starting desktop/dbus ... fail
[20:08:04] :: Starting extra/ssh ... fail
[20:08:04] :: Starting graphics/vnc ... fail
[20:08:04] &amp;lt;&amp;lt;&amp;lt; start
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

dbux, ssh, vnc를 시작하지 못했다.&lt;br /&gt;
자세한 정보를 보기 위해서 &lt;code style=&quot;color:white&quot; class=&quot;language-plaintext highlighter-rouge&quot;&gt;우측상단 &amp;gt; 컨텍스트 메뉴 &amp;gt; 상태&lt;/code&gt;를 클릭한다.

&lt;div class=&quot;language-console highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gp&quot;&gt;[20:11:10] &amp;gt;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt; status
&lt;span class=&quot;go&quot;&gt;[20:11:10] Device: SHV-E210S
[20:11:10] Android: 4.4.4
[20:11:10] Architecture: armv7l
[20:11:10] Kernel: 3.0.31-9579646
[20:11:10] Memory: 50/1786 MB
[20:11:10] Swap: 991/1023 MB
[20:11:10] SELinux: active
[20:11:10] Loop devices: yes
[20:11:10] Support binfmt_misc: yes
[20:11:10] Supported FS: exfat ext2 ext3 ext4 fuseblk msdos vfat
[20:11:10] Installed system: Ubuntu 16.04 LTS
[20:11:10] Status of components:
[20:11:11] :: desktop/dbus ... stopped
[20:11:11] :: extra/ssh ... stopped
[20:11:11] :: graphics/vnc ... stopped
[20:11:11] Mounted parts:
[20:11:11] * /
[20:11:11] * /proc
[20:11:11] * /sys
[20:11:11] * /dev
[20:11:11] * /dev/shm
[20:11:11] * /dev/pts
[20:11:11] Available mount points:
[20:11:11] * /sys/kernel/debug  0.0/0.0 GB (debugfs)
[20:11:11] * /system  0.1/2.0 GB (ext4)
[20:11:11] * /efs  0.0/0.0 GB (ext4)
[20:11:11] * /cache  1.0/1.0 GB (ext4)
[20:11:11] * /preload  0.4/0.6 GB (ext4)
[20:11:11] * /data  10.0/10.8 GB (ext4)
[20:11:11] * /mnt/shell/knox-emulated  10.0/10.8 GB (sdcardfs)
[20:11:11] * /mnt/shell/emulated  10.0/10.8 GB (sdcardfs)
[20:11:11] * /storage/emulated/0  10.0/10.8 GB (sdcardfs)
[20:11:11] * /storage/emulated/0/Android/obb  10.0/10.8 GB (sdcardfs)
[20:11:11] * /storage/emulated/legacy  10.0/10.8 GB (sdcardfs)
[20:11:11] * /storage/emulated/legacy/Android/obb  10.0/10.8 GB (sdcardfs)
[20:11:11] Available partitions:
[20:11:11]  ...no available partitions
[20:11:11] &amp;lt;&amp;lt;&amp;lt; status
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

문제점에 대한 검색 결과 Kernel의 버전이 문제가 되는 것으로 보인다.&lt;br /&gt;
현재 &lt;code style=&quot;color:white&quot; class=&quot;language-plaintext highlighter-rouge&quot;&gt;Ubuntu 16.04 LTS(Xenial)&lt;/code&gt;를 설치했는데,
다시 &lt;code style=&quot;color:white&quot; class=&quot;language-plaintext highlighter-rouge&quot;&gt;Ubuntu 14.04 LTS(Trusty)&lt;/code&gt;를 설치해본다.

&lt;h2 id=&quot;ubuntu-1404-ltstrusty-설치&quot;&gt;Ubuntu 14.04 LTS(Trusty) 설치&lt;/h2&gt;
서비스 시작 로그
&lt;div class=&quot;language-console highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gp&quot;&gt;20:54:09] &amp;gt;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt; start
&lt;span class=&quot;go&quot;&gt;[20:54:09] Checking file system ... skip
[20:54:09] Mounting the container:
[20:54:09] / ... skip
[20:54:09] /proc ... skip
[20:54:09] /sys ... skip
[20:54:09] /dev ... skip
[20:54:09] /dev/shm ... skip
[20:54:09] /dev/pts ... skip
[20:54:10] :: Configuring core/mnt ...
[20:54:10] :: Configuring core/net ...
[20:54:10] :: Starting desktop/dbus ... done
[20:54:10] :: Starting extra/ssh ... skip
[20:54:11] :: Starting graphics/vnc ... done
[20:54:11] &amp;lt;&amp;lt;&amp;lt; start
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

ssh가 skip이다. 자세한 정보를 확인한다.
&lt;code style=&quot;color:white&quot; class=&quot;language-plaintext highlighter-rouge&quot;&gt;우측상단 &amp;gt; 컨텍스트 메뉴 &amp;gt; 상태&lt;/code&gt;를 클릭한다.

&lt;div class=&quot;language-console highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gp&quot;&gt;[20:55:18] &amp;gt;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt; status
&lt;span class=&quot;go&quot;&gt;[20:55:19] Device: SHV-E210S
[20:55:19] Android: 4.4.4
[20:55:19] Architecture: armv7l
[20:55:19] Kernel: 3.0.31-9579646
[20:55:19] Memory: 88/1786 MB
[20:55:19] Swap: 923/1023 MB
[20:55:19] SELinux: active
[20:55:19] Loop devices: yes
[20:55:19] Support binfmt_misc: yes
[20:55:19] Supported FS: exfat ext2 ext3 ext4 fuseblk msdos vfat
[20:55:19] Installed system: Ubuntu 14.04 LTS
[20:55:19] Status of components:
[20:55:19] :: desktop/dbus ... started
[20:55:19] :: extra/ssh ... started
[20:55:19] :: graphics/vnc ... stopped
[20:55:19] Mounted parts:
[20:55:19] * /
[20:55:19] * /proc
[20:55:19] * /sys
[20:55:19] * /dev
[20:55:19] * /dev/shm
[20:55:19] * /dev/pts
[20:55:19] Available mount points:
[20:55:19] * /sys/kernel/debug  0.0/0.0 GB (debugfs)
[20:55:19] * /system  0.1/2.0 GB (ext4)
[20:55:19] * /efs  0.0/0.0 GB (ext4)
[20:55:19] * /cache  1.0/1.0 GB (ext4)
[20:55:19] * /preload  0.4/0.6 GB (ext4)
[20:55:19] * /data  9.5/10.8 GB (ext4)
[20:55:19] * /mnt/shell/knox-emulated  9.5/10.8 GB (sdcardfs)
[20:55:19] * /mnt/shell/emulated  9.5/10.8 GB (sdcardfs)
[20:55:19] * /storage/emulated/0  9.5/10.8 GB (sdcardfs)
[20:55:19] * /storage/emulated/0/Android/obb  9.5/10.8 GB (sdcardfs)
[20:55:19] * /storage/emulated/legacy  9.5/10.8 GB (sdcardfs)
[20:55:19] * /storage/emulated/legacy/Android/obb  9.5/10.8 GB (sdcardfs)
[20:55:19] Available partitions:
[20:55:20]  ...no available partitions
[20:55:20] &amp;lt;&amp;lt;&amp;lt; status
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
ssh가 정상적으로 시작되었음이 확인됐다.

&lt;h3 id=&quot;sshsecure-shell-연결&quot;&gt;SSH(Secure Shell) 연결&lt;/h3&gt;
&lt;a href=&quot;https://www.netsarang.co.kr/download/down_form.html?code=612&quot; title=&quot;Xshell 6 Download - 개인 사용자 무료&quot;&gt;Xshell&lt;/a&gt;을 이용하여 연결했다. (물론 다른 프로그램을 사용해도 …)

&lt;div class=&quot;language-console highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;go&quot;&gt;Connecting to 192.168.0.7:22...
Connection established.
To escape to local shell, press 'Ctrl+Alt+]'.

Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.0.31-9579646 armv7l)

 * Documentation:  https://help.ubuntu.com/

&lt;/span&gt;&lt;span class=&quot;gp&quot;&gt;The programs included with the Ubuntu system are free software;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;go&quot;&gt;the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

Ubuntu 14.04 LTS [running via Linux Deploy]
&lt;/span&gt;&lt;span class=&quot;gp&quot;&gt;devman@localhost:~$&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h4 class=&quot;no_toc&quot; id=&quot;연결은-됐으나&quot;&gt;연결은 됐으나…&lt;/h4&gt;

&lt;div class=&quot;language-console highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gp&quot;&gt;devman@localhost:~$&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt-get update
&lt;span class=&quot;go&quot;&gt;sudo: PERM_ROOT: setresuid(0, -1, -1): Permission denied
&lt;/span&gt;&lt;span class=&quot;gp&quot;&gt;devman@localhost:~$&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
Permission denied 오류가 발생한다.&lt;br /&gt;
관련 Issue : https://github.com/meefik/linuxdeploy/issues/224

&lt;h3 id=&quot;permission-denied-우회&quot;&gt;Permission denied 우회&lt;/h3&gt;

우회 방법 &amp;gt; &lt;code style=&quot;color:white&quot; class=&quot;language-plaintext highlighter-rouge&quot;&gt;root&lt;/code&gt; 계정으로 로그인 하기
&lt;ol&gt;
  &lt;li&gt;root 계정의 비밀번호 설정&lt;/li&gt;
  &lt;li&gt;root 계정으로 ssh 로그인 할 수 있도록 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sshd_config&lt;/code&gt; 수정&lt;/li&gt;
  &lt;li&gt;서비스 재시작&lt;/li&gt;
&lt;/ol&gt;

&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Linux Deploy&lt;/code&gt;로 설치한 Ubuntu에 접근하기 위해서 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ADB(Android Debug Bridge)&lt;/code&gt;를 사용한다.

&lt;ol&gt;
  &lt;li&gt;단말기의 &lt;code style=&quot;color:white&quot; class=&quot;language-plaintext highlighter-rouge&quot;&gt;USB 디버깅 모드&lt;/code&gt; 활성화&lt;/li&gt;
  &lt;li&gt;ADB (Android Debug Bridge) 설치&lt;/li&gt;
&lt;/ol&gt;

ADB Shell 실행 &amp;gt; su

&lt;div class=&quot;language-console highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gp&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;adb shell
&lt;span class=&quot;gp&quot;&gt;shell@c1skt:/ $&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;su
&lt;span class=&quot;gp&quot;&gt;root@c1skt:/ #&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;code class=&quot;language-plaintext highlight highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;sh&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ru&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;meefik&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;linuxdeploy&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;files&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;bin&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;linuxdeploy&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;shell&lt;/span&gt;&lt;/code&gt;
에서 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/files/bin/&lt;/code&gt; 이 경로는 다를 수 있다.

&lt;div class=&quot;language-console highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;gp&quot;&gt;root@c1skt:/ #&lt;/span&gt;&lt;span class=&quot;w&quot;&gt; &lt;/span&gt;sh /data/data/ru.meefik.linuxdeploy/files/bin/linuxdeploy shell
&lt;span class=&quot;go&quot;&gt;Checking file system ... done
Mounting the container:
/ ... done
/proc ... done
/sys ... done
/dev ... done
/dev/shm ... done
/dev/pts ... done
/proc/sys/fs/binfmt_misc ... done
:: Configuring core/mnt ...
:: Configuring core/net ...
Ubuntu 14.04 LTS [running via Linux Deploy]
&lt;/span&gt;&lt;span class=&quot;gp&quot;&gt;root@localhost:/#&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;em style=&quot;color:white&quot;&gt;root&lt;/em&gt; 계정의 비밀번호를 변경한다.

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;root@localhost:/# passwd root
passwd root
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@localhost:/#

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

&lt;em style=&quot;color:white&quot;&gt;sshd_config&lt;/em&gt;를 확인한다.

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;root@localhost:/# &lt;span class=&quot;nb&quot;&gt;cat&lt;/span&gt; /etc/ssh/sshd_config
&lt;span class=&quot;c&quot;&gt;# Package generated configuration file&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# See the sshd_config(5) manpage for details&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# What ports, IPs and protocols we listen for&lt;/span&gt;
Port 22
&lt;span class=&quot;c&quot;&gt;# Use these options to restrict which interfaces/protocols sshd will bind to&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;#ListenAddress ::&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;#ListenAddress 0.0.0.0&lt;/span&gt;
Protocol 2
&lt;span class=&quot;c&quot;&gt;# HostKeys for protocol version 2&lt;/span&gt;
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
&lt;span class=&quot;c&quot;&gt;#Privilege Separation is turned on for security&lt;/span&gt;
UsePrivilegeSeparation &lt;span class=&quot;nb&quot;&gt;yes&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# Lifetime and size of ephemeral version 1 server key&lt;/span&gt;
KeyRegenerationInterval 3600
ServerKeyBits 1024

&lt;span class=&quot;c&quot;&gt;# Logging&lt;/span&gt;
SyslogFacility AUTH
LogLevel INFO

&lt;span class=&quot;c&quot;&gt;# Authentication:&lt;/span&gt;
LoginGraceTime 120
PermitRootLogin &lt;span class=&quot;nb&quot;&gt;yes
&lt;/span&gt;StrictModes &lt;span class=&quot;nb&quot;&gt;yes

&lt;/span&gt;RSAAuthentication &lt;span class=&quot;nb&quot;&gt;yes
&lt;/span&gt;PubkeyAuthentication &lt;span class=&quot;nb&quot;&gt;yes&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;#AuthorizedKeysFile	%h/.ssh/authorized_keys&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# Don't read the user's ~/.rhosts and ~/.shosts files&lt;/span&gt;
IgnoreRhosts &lt;span class=&quot;nb&quot;&gt;yes&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# For this to work you will also need host keys in /etc/ssh_known_hosts&lt;/span&gt;
RhostsRSAAuthentication no
&lt;span class=&quot;c&quot;&gt;# similar for protocol version 2&lt;/span&gt;
HostbasedAuthentication no
&lt;span class=&quot;c&quot;&gt;# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;#IgnoreUserKnownHosts yes&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# To enable empty passwords, change to yes (NOT RECOMMENDED)&lt;/span&gt;
PermitEmptyPasswords no

&lt;span class=&quot;c&quot;&gt;# Change to yes to enable challenge-response passwords (beware issues with&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# some PAM modules and threads)&lt;/span&gt;
ChallengeResponseAuthentication no

&lt;span class=&quot;c&quot;&gt;# Change to no to disable tunnelled clear text passwords&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;#PasswordAuthentication yes&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# Kerberos options&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;#KerberosAuthentication no&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;#KerberosGetAFSToken no&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;#KerberosOrLocalPasswd yes&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;#KerberosTicketCleanup yes&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# GSSAPI options&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;#GSSAPIAuthentication no&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;#GSSAPICleanupCredentials yes&lt;/span&gt;

X11Forwarding &lt;span class=&quot;nb&quot;&gt;yes
&lt;/span&gt;X11DisplayOffset 10
PrintMotd no
PrintLastLog &lt;span class=&quot;nb&quot;&gt;yes
&lt;/span&gt;TCPKeepAlive &lt;span class=&quot;nb&quot;&gt;yes&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;#UseLogin no&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;#MaxStartups 10:30:60&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;#Banner /etc/issue.net&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# Allow client to pass locale environment variables&lt;/span&gt;
AcceptEnv LANG

Subsystem sftp /usr/lib/openssh/sftp-server

&lt;span class=&quot;c&quot;&gt;# Set this to 'yes' to enable PAM authentication, account processing,&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# and session processing. If this is enabled, PAM authentication will&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# be allowed through the ChallengeResponseAuthentication and&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# PasswordAuthentication.  Depending on your PAM configuration,&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# PAM authentication via ChallengeResponseAuthentication may bypass&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# the setting of &quot;PermitRootLogin yes&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# If you just want the PAM account and session checks to run without&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# PAM authentication, then enable this but set PasswordAuthentication&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;# and ChallengeResponseAuthentication to 'no'.&lt;/span&gt;
UsePAM &lt;span class=&quot;nb&quot;&gt;yes&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

확인 결과 이미 &lt;code style=&quot;color:yellow&quot; class=&quot;language-plaintext highlighter-rouge&quot;&gt;PermitRootLogin yes&lt;/code&gt;로 설정되어 있다.&lt;br /&gt;
Version에 따라서 다른 것으로 보이므로 상황에 맞게 대응하면 된다.&lt;br /&gt;
sshd_config를 수정하지 않았으므로 서비스를 재시작하지 않는다. 재시작을 하려면 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;service sshd restart&lt;/code&gt;

&lt;h4 class=&quot;no_toc&quot; id=&quot;root-계정으로-로그인이-가능한가&quot;&gt;root 계정으로 로그인이 가능한가?&lt;/h4&gt;
&lt;div class=&quot;language-console highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;go&quot;&gt;ssh root@192.168.0.7
root@192.168.0.7's password:
Welcome to Ubuntu 14.04 LTS (GNU/Linux 3.0.31-9579646 armv7l)

 * Documentation:  https://help.ubuntu.com/

&lt;/span&gt;&lt;span class=&quot;gp&quot;&gt;The programs included with the Ubuntu system are free software;&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;go&quot;&gt;the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

Ubuntu 14.04 LTS [running via Linux Deploy]
&lt;/span&gt;&lt;span class=&quot;gp&quot;&gt;root@localhost:~#&lt;/span&gt;&lt;span class=&quot;w&quot;&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
정상적으로 로그인이 되며 간단한 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;apt-get update&lt;/code&gt;도 성공했다.&lt;br /&gt;
사용자 계정에 root 권한을 주면 된다는 얘기도 있으나, 아직까지 성공하지 못했다.

&lt;h2 id=&quot;adb-error&quot;&gt;ADB Error&lt;/h2&gt;

&lt;h3 class=&quot;no_toc&quot; id=&quot;error-device-not-found-&quot;&gt;error: device not found &amp;gt;&lt;/h3&gt;
USB 디버깅 모드가 활성화 되었는지 확인한다.

&lt;h3 class=&quot;no_toc&quot; id=&quot;error-device-offline-&quot;&gt;error: device offline &amp;gt;&lt;/h3&gt;
adb kill-server&lt;br /&gt;
adb start-server&lt;br /&gt;
adb devices

&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;adb kill-server

&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;adb start-server
&lt;span class=&quot;k&quot;&gt;*&lt;/span&gt; daemon not running. starting it now on port 5037 &lt;span class=&quot;k&quot;&gt;*&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;*&lt;/span&gt; daemon started successfully &lt;span class=&quot;k&quot;&gt;*&lt;/span&gt;

&lt;span class=&quot;nv&quot;&gt;$ &lt;/span&gt;adb devices
List of devices attached
42f7d71116f7bf29	device
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
그래도 문제가 해결이 안 된다면, 단말기를 재부팅한다.

&lt;h2 id=&quot;참조-사이트&quot;&gt;참조 사이트&lt;/h2&gt;
&lt;blockquote&gt;
  &lt;a href=&quot;https://github.com/meefik/linuxdeploy&quot; title=&quot;Linux Deploy GitHub&quot;&gt;GitHub - Linux Deploy&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://github.com/meefik/linuxdeploy/wiki&quot; title=&quot;Linux Deploy Wiki&quot;&gt;GitHub - Linux Deploy Wiki&lt;/a&gt;
&lt;/blockquote&gt;

&lt;h2 id=&quot;download-link&quot;&gt;Download Link&lt;/h2&gt;
&lt;blockquote&gt;
  &lt;a href=&quot;https://www.netsarang.co.kr/download/down_form.html?code=612&quot; title=&quot;Xshell 6 Download - 개인 사용자 무료&quot;&gt;XShell&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://adbshell.com/upload/adb.zip&quot; title=&quot;ADB Shell&quot;&gt;ADB Shell&lt;/a&gt;&lt;br /&gt;
&lt;em&gt;Linux Deploy 2.x&lt;/em&gt; 에서 설치가 되지 않는 경우…&lt;br /&gt;
&lt;a href=&quot;https://linux-deploy.en.uptodown.com/android&quot; title=&quot;Linux Deploy 1.5.6&quot;&gt;Linux Deploy 1.5.6&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;https://github.com/meefik/busybox/releases/download/1.24.1/busybox.apk&quot; title=&quot;BusyBox 1.24.1&quot;&gt;BusyBox 1.24.1&lt;/a&gt;
&lt;/blockquote&gt;

&lt;!-- **이 사이트 내 링크**  
&gt;[Linux Deploy 1.5.6] [linux-deploy-1-5-6-devman]  
&gt;[BusyBox 1.24.1] [busybox-1-24-1-devman]  
&gt;[ADB Shell] [adb-shell-devman]  
 --&gt;

&lt;!-- [linux-deploy-1-5-6-devman]: ../assets/linux-deploy-ubuntu/linux-deploy-1-5-6.apk &quot;Linux Deploy 1.5.6 (devman.net)&quot;
[busybox-1-24-1-devman]: ../assets/linux-deploy-ubuntu/busybox.apk &quot;BusyBox 1.24.1 (devman.net)&quot;
[adb-shell-devman]: ../assets/linux-deploy-ubuntu/adb.zip &quot;ADB Shell (devman.net)&quot;
 --&gt;
</description>
        <pubDate>Wed, 05 Dec 2018 00:00:00 +0000</pubDate>
        <link>http://devman.net/2018/12/05/linux-deploy/</link>
        <guid isPermaLink="true">http://devman.net/2018/12/05/linux-deploy/</guid>
        
        <category>linux-deploy</category>
        
        <category>busy-box</category>
        
        <category>ubuntu</category>
        
        
        <category>Etc</category>
        
      </item>
    
      <item>
        <title>아두이노(Arduino) IDE 다중 파일 코딩하기</title>
        <description>&lt;ul id=&quot;markdown-toc&quot;&gt;
  &lt;li&gt;&lt;a href=&quot;#아두이노arduino-ide-다중-파일&quot; id=&quot;markdown-toc-아두이노arduino-ide-다중-파일&quot;&gt;아두이노(Arduino) IDE 다중 파일&lt;/a&gt;    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;#다중-파일-예&quot; id=&quot;markdown-toc-다중-파일-예&quot;&gt;다중 파일 예&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#컴파일-결과-error-발생&quot; id=&quot;markdown-toc-컴파일-결과-error-발생&quot;&gt;컴파일 결과 (Error 발생)&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#테스트-환경&quot; id=&quot;markdown-toc-테스트-환경&quot;&gt;테스트 환경&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;아두이노arduino-ide-다중-파일&quot;&gt;아두이노(Arduino) IDE 다중 파일&lt;/h2&gt;

요즘 새로운 장난감 Arduino를 가지고 놀고 있는데 흥미로운 사항이 있어서 글을 남긴다.

&lt;img src=&quot;https://i.imgur.com/ihk7JvY.png&quot; alt=&quot;&quot; title=&quot;Arduino IDE 새 탭&quot; /&gt;

&lt;blockquote&gt;
  Arduino IDE에서 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;새 탭&lt;/code&gt;을 이용, 소스 파일을 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;분할&lt;/code&gt;하여 코딩할 수 있다. 말 그대로 소스 파일들이
분할만 되는 것이다. 그리고 컴파일 시의 병합은 알파벳 순(오름차순)으로 된다.

  따라서 함수 선언부와 구현을 잘 조합한다면, 의미있는 함수들의 집합을 만들어 소스를 관리할 수 있을 것이다.
다만 알파벳 순이라는 제약사항을 잘 핸들링 해야할 것이다.

  &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;전역 변수(Global Variable)&lt;/code&gt;의 경우 알파벳 순으로 볼 때 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;후순위 분할 파일&lt;/code&gt;에 있는 전역 변수를
&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;선순위 분할 파일&lt;/code&gt;에서 호출할 수 없다. 이런 경우, 컴파일 시에 에러가 발생한다.
&lt;/blockquote&gt;

&lt;h3 id=&quot;다중-파일-예&quot;&gt;다중 파일 예&lt;/h3&gt;
files: multiple.ino, sub.ino

&lt;div class=&quot;language-c++ highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;// file: multiple.ino&lt;/span&gt;

&lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;_mainGlobalVariable&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;MainFunction&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
	&lt;span class=&quot;n&quot;&gt;Serial&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;main function&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;setup&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;SubFunction&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;            &lt;span class=&quot;c1&quot;&gt;// sub.ino 파일에 있는 함수 호출&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;_subGlobalVariable&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;   &lt;span class=&quot;c1&quot;&gt;// sub.ino 파일에 있는 전역변수 접근&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;loop&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;c1&quot;&gt;// put your main code here, to run repeatedly:&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-c++ highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;// file: sub.ino&lt;/span&gt;

&lt;span class=&quot;kt&quot;&gt;int&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;_subGlobalVariable&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;SubFunction&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;MainFunction&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;           &lt;span class=&quot;c1&quot;&gt;// multiple.ino에 있는 함수 호출&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;_mainGlobalVariable&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;  &lt;span class=&quot;c1&quot;&gt;// multiple.ino에 있는 전역변수 접근&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;컴파일-결과-error-발생&quot;&gt;컴파일 결과 (Error 발생)&lt;/h3&gt;
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;c:&lt;span class=&quot;se&quot;&gt;\p&lt;/span&gt;rojects&lt;span class=&quot;se&quot;&gt;\m&lt;/span&gt;ultiple&lt;span class=&quot;se&quot;&gt;\m&lt;/span&gt;ultiple.ino: In &lt;span class=&quot;k&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;'void setup()'&lt;/span&gt;:

multiple:22:3: error: &lt;span class=&quot;s1&quot;&gt;'_subGlobalVariable'&lt;/span&gt; was not declared &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;this scope

   _subGlobalVariable &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; 0&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; // sub.ino 파일에 있는 전역변수 접근

   ^

&lt;span class=&quot;nb&quot;&gt;exit &lt;/span&gt;status 1
&lt;span class=&quot;s1&quot;&gt;'_subGlobalVariable'&lt;/span&gt; was not declared &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;this scope
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;blockquote&gt;
  &lt;code class=&quot;language-plaintext highlight highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;multiple&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ino&lt;/span&gt;&lt;/code&gt;에서 &lt;code class=&quot;language-plaintext highlight highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;sub&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ino&lt;/span&gt;&lt;/code&gt;에 있는
&lt;code class=&quot;language-plaintext highlight highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;_subGlobalVariable&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;m&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;&lt;/code&gt;에 접근할 수 없다. (컴파일 오류 발생)
기능은 재미가 있으나 실제로 사용하기는 쉽지 않을 듯 싶다. &lt;em&gt;(선언부를 위한 파일을 사용하면 될 듯…)&lt;/em&gt;

&lt;/blockquote&gt;

&lt;h3 id=&quot;테스트-환경&quot;&gt;테스트 환경&lt;/h3&gt;
&lt;blockquote&gt;
  Arduino IDE 1.8.7
&lt;/blockquote&gt;
</description>
        <pubDate>Mon, 12 Nov 2018 00:00:00 +0000</pubDate>
        <link>http://devman.net/2018/11/12/arduino-ide-multiple-files/</link>
        <guid isPermaLink="true">http://devman.net/2018/11/12/arduino-ide-multiple-files/</guid>
        
        <category>arduino-ide,</category>
        
        <category>multiple-files</category>
        
        
        <category>Arduino</category>
        
      </item>
    
      <item>
        <title>아두이노(Arduino) IDE 컴파일 오류 - Stray 357, 273, 277</title>
        <description>&lt;ul id=&quot;markdown-toc&quot;&gt;
  &lt;li&gt;&lt;a href=&quot;#아두이노arduino-ide-컴파일-오류&quot; id=&quot;markdown-toc-아두이노arduino-ide-컴파일-오류&quot;&gt;아두이노(Arduino) IDE 컴파일 오류&lt;/a&gt;    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;#컴파일-오류-메시지&quot; id=&quot;markdown-toc-컴파일-오류-메시지&quot;&gt;컴파일 오류 메시지&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#소스-파일-인코딩-문제&quot; id=&quot;markdown-toc-소스-파일-인코딩-문제&quot;&gt;소스 파일 인코딩 문제&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#해결방법&quot; id=&quot;markdown-toc-해결방법&quot;&gt;해결방법&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#테스트-환경&quot; id=&quot;markdown-toc-테스트-환경&quot;&gt;테스트 환경&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;아두이노arduino-ide-컴파일-오류&quot;&gt;아두이노(Arduino) IDE 컴파일 오류&lt;/h2&gt;

&lt;h3 id=&quot;컴파일-오류-메시지&quot;&gt;컴파일 오류 메시지&lt;/h3&gt;
&lt;div class=&quot;language-bash highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;error: stray &lt;span class=&quot;s1&quot;&gt;'\357'&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;program
error: stray &lt;span class=&quot;s1&quot;&gt;'\273'&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;program
error: stray &lt;span class=&quot;s1&quot;&gt;'\277'&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;program
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;소스-파일-인코딩-문제&quot;&gt;소스 파일 인코딩 문제&lt;/h3&gt;
Arduino IDE를 사용하여 소스 파일을 생성한다면 문제가 없을 듯 하지만, 외부 에디터를 사용하는 경우
인코딩이 달라 Arduino IDE에서 컴파일 시에 위의 오류가 발생할 수 있다.

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Dev Tool&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Default Encoding&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Error&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Arduino IDE&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Unicode(서명 없는 UTF-8) - 코드 페이지 65001&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Visual Studio C++&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;한국어 - 코드 페이지 949&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Error&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Visual Studio C++&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Unicode(서명 있는 UTF-8) - 코드 페이지 65001&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Error&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;

&lt;code class=&quot;language-plaintext highlight highlighter-rouge&quot;&gt;한국어 - 코드 페이지 949&lt;/code&gt;의 경우는 Arduino IDE가 친절하게 방법을 알려주지만
&lt;code class=&quot;language-plaintext highlight highlighter-rouge&quot;&gt;Unicode&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;서명 있는 UTF-8&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; - 코드 페이지 65001&lt;/code&gt;의 경우는 위의 오류를 출력한다.

&lt;h3 id=&quot;해결방법&quot;&gt;해결방법&lt;/h3&gt;
오류가 발생한 해당 소스 파일의 Encoding을 &lt;code class=&quot;language-plaintext highlight highlighter-rouge&quot;&gt;Unicode&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;서명 없는 UTF-8&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; - 코드 페이지 65001&lt;/code&gt; 변경하면 된다.

&lt;h3 id=&quot;테스트-환경&quot;&gt;테스트 환경&lt;/h3&gt;
&lt;blockquote&gt;
  Arduino IDE 1.8.7
&lt;/blockquote&gt;
</description>
        <pubDate>Mon, 12 Nov 2018 00:00:00 +0000</pubDate>
        <link>http://devman.net/2018/11/12/arduino-ide-error-stray-357/</link>
        <guid isPermaLink="true">http://devman.net/2018/11/12/arduino-ide-error-stray-357/</guid>
        
        <category>arduino-ide,</category>
        
        <category>error-stray-357</category>
        
        
        <category>Arduino</category>
        
      </item>
    
      <item>
        <title>아두이노(Arduino) 클래스 만들기</title>
        <description>&lt;ul id=&quot;markdown-toc&quot;&gt;
  &lt;li&gt;&lt;a href=&quot;#시작하기-앞서서&quot; id=&quot;markdown-toc-시작하기-앞서서&quot;&gt;시작하기 앞서서&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#클래스-및-헤더-파일-만들기-arduino-ide&quot; id=&quot;markdown-toc-클래스-및-헤더-파일-만들기-arduino-ide&quot;&gt;클래스 및 헤더 파일 만들기 (Arduino IDE)&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#클래스-소스-확인&quot; id=&quot;markdown-toc-클래스-소스-확인&quot;&gt;클래스 소스 확인&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#마치며&quot; id=&quot;markdown-toc-마치며&quot;&gt;마치며&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;시작하기-앞서서&quot;&gt;시작하기 앞서서&lt;/h2&gt;
아두이노 클래스 만들기, 또는 사용하기를 검색하면 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;라이브러리&lt;/code&gt;라는 단어가 대부분을 차지한다.
모든 글들을 읽어 본 것은 아니지만, 읽어 본 글들은 실제로 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;라이브러리&lt;/code&gt;화 해서 사용하는 것에
대한 설명이 주를 이뤘다.&lt;br /&gt;
그래서 처음에 아두이노에서 클래스(Class)는 라이브러리를 만드는 경우에만 사용하나? 생각도 했었다.&lt;br /&gt;
결론은 클래스를 바로 적용할 수 있다는 것!

왜 그럴까?

&lt;h2 id=&quot;클래스-및-헤더-파일-만들기-arduino-ide&quot;&gt;클래스 및 헤더 파일 만들기 (Arduino IDE)&lt;/h2&gt;

&lt;img src=&quot;https://i.imgur.com/ihk7JvY.png&quot; alt=&quot;&quot; title=&quot;Arduino 새 탭&quot; /&gt;

화면에 표시된 컨텍스트(Context) 메뉴에서 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;새 탭&lt;/code&gt; 항목을 클릭한다.
&lt;img src=&quot;https://i.imgur.com/O6LadqG.png&quot; alt=&quot;&quot; title=&quot;Arduino 컨텍스트 메뉴 - 새 탭&quot; /&gt;

&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;새로운 파일을 위한 이름&lt;/code&gt; 텍스트 박스에 클래스의 이름과 확장자(소스: cpp, 헤더: h)를 입력하고 확인을 클릭한다.
&lt;img src=&quot;https://i.imgur.com/4rxSywJ.png&quot; alt=&quot;&quot; title=&quot;Arduino 새로운 파일을 위한 이름:&quot; /&gt;

&lt;code class=&quot;language-plaintext highlight highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;NewClass&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cpp&lt;/span&gt; &lt;span class=&quot;err&quot;&gt;탭&lt;/span&gt;&lt;/code&gt;이 추가된 것을 확인할 수 있다.
&lt;img src=&quot;https://i.imgur.com/jEbcgSs.png&quot; alt=&quot;&quot; title=&quot;Arduino NewClass.cpp 탭&quot; /&gt;

&lt;blockquote&gt;
  &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;새로운 파일을 위한 이름&lt;/code&gt;에 확장자를 입력하지 않을 경우 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ino&lt;/code&gt;파일이 생성된다.
&lt;/blockquote&gt;

&lt;h2 id=&quot;클래스-소스-확인&quot;&gt;클래스 소스 확인&lt;/h2&gt;
&lt;blockquote&gt;
  Visual Studio VMicro에서 새 클래스를 생성한 경우이다.
&lt;/blockquote&gt;

&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;NewClass.h&lt;/code&gt;
&lt;div class=&quot;language-cpp highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;// file: NewClass.h&lt;/span&gt;
&lt;span class=&quot;cp&quot;&gt;#ifndef _NEWCLASS_h
#define _NEWCLASS_h
&lt;/span&gt;
&lt;span class=&quot;cp&quot;&gt;#if defined(ARDUINO) &amp;amp;&amp;amp; ARDUINO &amp;gt;= 100
&lt;/span&gt;	&lt;span class=&quot;cp&quot;&gt;#include &quot;arduino.h&quot;
#else
&lt;/span&gt;	&lt;span class=&quot;cp&quot;&gt;#include &quot;WProgram.h&quot;
#endif
&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;NewClass&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
 &lt;span class=&quot;nl&quot;&gt;public:&lt;/span&gt;
	&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;toString&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;};&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;extern&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;NewClass&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;New&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;

&lt;span class=&quot;cp&quot;&gt;#endif
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;NewClass.cpp&lt;/code&gt;
&lt;div class=&quot;language-cpp highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;// file: NewClass.cpp&lt;/span&gt;
&lt;span class=&quot;cp&quot;&gt;#include &quot;NewClass.h&quot;
&lt;/span&gt;
&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;NewClass&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;toString&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
	&lt;span class=&quot;n&quot;&gt;Serial&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;println&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;NewClass::toString&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;NewClass&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;New&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;multiple.ino&lt;/code&gt;
&lt;div class=&quot;language-cpp highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;// file: multiple.ino&lt;/span&gt;
&lt;span class=&quot;cp&quot;&gt;#include &quot;NewClass.h&quot; // 새로 만든 클래스 header 추가
&lt;/span&gt;
&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;setup&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;Serial&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;begin&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;115200&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;NewClass&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;_newcls&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;_newcls&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;toString&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;span class=&quot;kt&quot;&gt;void&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;loop&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;

&lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;마치며&quot;&gt;마치며&lt;/h2&gt;
작은 크기의 프로그램을 개발하는 경우라면 아두이노에서 클래스를 만들어 사용할 일은 없겠지만,
그렇다고 라이브러리로 사용한다는 식으로 알려주는 것은 아니라는 생각이 든다.
&lt;blockquote&gt;
  요즘 재미삼아 이것 저것 해보고 있는데 80C196을 사용했던 시절에 비해서 매우 편해졌다는 생각이 든다.&lt;br /&gt;
가격도 무척 저렴하고… 호환 보드는 더~ 저렴하고… 예전 기억도 새록새록 나고… 아~ 납땜의 추억!!!
&lt;/blockquote&gt;
</description>
        <pubDate>Mon, 12 Nov 2018 00:00:00 +0000</pubDate>
        <link>http://devman.net/2018/11/12/arduino-ide-create-class/</link>
        <guid isPermaLink="true">http://devman.net/2018/11/12/arduino-ide-create-class/</guid>
        
        <category>arduino-ide,</category>
        
        <category>create-class</category>
        
        
        <category>Arduino</category>
        
      </item>
    
      <item>
        <title>Encoding 변경하기</title>
        <description>&lt;ul id=&quot;markdown-toc&quot;&gt;
  &lt;li&gt;&lt;a href=&quot;#visual-studio에서-encoding-변경하기&quot; id=&quot;markdown-toc-visual-studio에서-encoding-변경하기&quot;&gt;Visual Studio에서 Encoding 변경하기&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;visual-studio에서-encoding-변경하기&quot;&gt;Visual Studio에서 Encoding 변경하기&lt;/h2&gt;

개발 작업을 할 때 여러 개의 Editor나 IDE를 사용하여 개발을 진행하는 데 가끔씩 Encoding이
의도와는 다르게 적용되는 경우들이 있다. (파일 탐색기에서 새 텍스트 문서를 만드는 경우 등)
Github에서 소스를 확인할 때 텍스트가 깨져서 나오는 경우 당혹스럽기까지 하다.

&lt;h4 class=&quot;no_toc&quot; id=&quot;실행-방법&quot;&gt;실행 방법&lt;/h4&gt;

&lt;blockquote&gt;
  &lt;ul&gt;
    &lt;li&gt;Encoding을 변경할 파일을 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Visual Studio&lt;/code&gt;에서 열기&lt;/li&gt;
    &lt;li&gt;파일 메뉴에서 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;고급 저장 옵션&lt;/code&gt; 클릭&lt;/li&gt;
    &lt;li&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;고급 저장 옵션&lt;/code&gt; 다이얼로그 박스에서 &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;유니코드(서명 있는 UTF-8) - 코드 페이지 65001&lt;/code&gt;로 변경&lt;/li&gt;
  &lt;/ul&gt;
&lt;/blockquote&gt;

&lt;h5 class=&quot;no_toc&quot; id=&quot;파일-메뉴&quot;&gt;파일 메뉴&lt;/h5&gt;

&lt;img src=&quot;https://i.imgur.com/rjRhrZB.png&quot; alt=&quot;img-file-menu&quot; title=&quot;Menu&quot; /&gt;

&lt;h5 class=&quot;no_toc&quot; id=&quot;고급-저장-옵션&quot;&gt;고급 저장 옵션&lt;/h5&gt;

&lt;img src=&quot;https://i.imgur.com/zJkp2aw.png&quot; alt=&quot;img-file-dialog&quot; title=&quot;Advanced Save Options&quot; /&gt;

&lt;h5 class=&quot;no_toc&quot; id=&quot;인코딩-종류-선택&quot;&gt;인코딩 종류 선택&lt;/h5&gt;

&lt;img src=&quot;https://i.imgur.com/jpvj4d1.png&quot; alt=&quot;img-file-select&quot; title=&quot;Encoding&quot; /&gt;

</description>
        <pubDate>Wed, 31 Oct 2018 00:00:00 +0000</pubDate>
        <link>http://devman.net/2018/10/31/change-encoding/</link>
        <guid isPermaLink="true">http://devman.net/2018/10/31/change-encoding/</guid>
        
        <category>Visualstudio</category>
        
        <category>Encoding</category>
        
        
        <category>Etc</category>
        
      </item>
    
      <item>
        <title>Kramdown Syntax</title>
        <description>&lt;ul id=&quot;markdown-toc&quot;&gt;
  &lt;li&gt;&lt;a href=&quot;#headers&quot; id=&quot;markdown-toc-headers&quot;&gt;Headers&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#blockquotes&quot; id=&quot;markdown-toc-blockquotes&quot;&gt;Blockquotes&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#code-blocks&quot; id=&quot;markdown-toc-code-blocks&quot;&gt;Code Blocks&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#lists&quot; id=&quot;markdown-toc-lists&quot;&gt;Lists&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#tables&quot; id=&quot;markdown-toc-tables&quot;&gt;Tables&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#horizontal-rules&quot; id=&quot;markdown-toc-horizontal-rules&quot;&gt;Horizontal Rules&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#links-and-images&quot; id=&quot;markdown-toc-links-and-images&quot;&gt;Links and Images&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#emphasis&quot; id=&quot;markdown-toc-emphasis&quot;&gt;Emphasis&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#code-spans&quot; id=&quot;markdown-toc-code-spans&quot;&gt;Code Spans&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#footnotes&quot; id=&quot;markdown-toc-footnotes&quot;&gt;Footnotes&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#extensions&quot; id=&quot;markdown-toc-extensions&quot;&gt;Extensions&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;!-- ==================== --&gt;
&lt;h2 id=&quot;headers&quot;&gt;Headers&lt;/h2&gt;

&lt;h4 class=&quot;no_toc&quot; id=&quot;setext-style&quot;&gt;Setext Style&lt;/h4&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;First level header
==================

Second level header
------

Other first level header
=
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h4 class=&quot;no_toc&quot; id=&quot;atx-style&quot;&gt;atx Style&lt;/h4&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;# First level header (h1)

## Second level header (h2)
...
###### Sixth level header (h6)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;!-- ==================== --&gt;
&lt;h2 id=&quot;blockquotes&quot;&gt;Blockquotes&lt;/h2&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&amp;gt; This is the first blockquote.
&amp;gt;     on multiple lines
that may be lazy.
&amp;gt;
&amp;gt; This is the second paragraph.
&amp;gt;
&amp;gt; &amp;gt; This is the second blockquote.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;blockquote&gt;
  This is the first blockquote.
    on multiple lines
that may be lazy.

  This is the second paragraph.

  &lt;blockquote&gt;
    This is the second blockquote.
  &lt;/blockquote&gt;
&lt;/blockquote&gt;

&lt;!-- ==================== --&gt;
&lt;h2 id=&quot;code-blocks&quot;&gt;Code Blocks&lt;/h2&gt;

&lt;h4 class=&quot;no_toc&quot; id=&quot;standard-code-blocks&quot;&gt;Standard Code Blocks&lt;/h4&gt;
A code block can be started by using &lt;em&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;four spaces&lt;/code&gt;&lt;/em&gt; or &lt;em&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;one tab&lt;/code&gt;&lt;/em&gt; and
then the text of the code block.
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;    Here comes some code

    This text belongs to the same code block.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h4 class=&quot;no_toc&quot; id=&quot;fenced-code-blocks&quot;&gt;Fenced Code Blocks&lt;/h4&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;~~~
Here comes some code.
~~~
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h4 class=&quot;no_toc&quot; id=&quot;language-of-code-blocks&quot;&gt;Language of Code Blocks&lt;/h4&gt;
&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;~~~
Console.WriteLine(&quot;How to use the Code Blocks? First method&quot;);
~~~
{: .language-csharp}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-csharp highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;Console&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;WriteLine&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;How to use the Code Blocks? First method&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

or

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;~~~ csharp
Console.WriteLine(&quot;How to use the Code Blocks? Second method&quot;);
~~~
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-csharp highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;Console&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nf&quot;&gt;WriteLine&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;How to use the Code Blocks? Second method&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;!-- ==================== --&gt;
&lt;h2 id=&quot;lists&quot;&gt;Lists&lt;/h2&gt;
A list is started with a list marker (in case of unordered lists one of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;+&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;-&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;*&lt;/code&gt; – you can mix them – and in case of ordered lists a number followed by &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;a period&lt;/code&gt;) followed by &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;one tab&lt;/code&gt; or at least &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;one space&lt;/code&gt;

&lt;h4 class=&quot;no_toc&quot; id=&quot;ordered-lists&quot;&gt;Ordered lists&lt;/h4&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;1. ordered list 1, item 1
    1. nested list item 1 (indent `four spaces` or `one tab`)
2. ordered list 1, item 2
^
1. ordered list 2, item 1
    2. nested list item 1
        3. nested list item 2
            4. nested list item 3
2. ordered list 1, item 2
10. ordered list 1, item 3
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ol&gt;
  &lt;li&gt;ordered list 1, item 1
    &lt;ol&gt;
      &lt;li&gt;nested list item 1 (indent &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;four spaces&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;one tab&lt;/code&gt;)&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;li&gt;ordered list 1, item 2&lt;/li&gt;
&lt;/ol&gt;
&lt;ol&gt;
  &lt;li&gt;ordered list 2, item 1
    &lt;ol&gt;
      &lt;li&gt;nested list item 1
        &lt;ol&gt;
          &lt;li&gt;nested list item 2
            &lt;ol&gt;
              &lt;li&gt;nested list item 3&lt;/li&gt;
            &lt;/ol&gt;
          &lt;/li&gt;
        &lt;/ol&gt;
      &lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;li&gt;ordered list 1, item 2&lt;/li&gt;
  &lt;li&gt;ordered list 1, item 3&lt;/li&gt;
&lt;/ol&gt;

&lt;h4 class=&quot;no_toc&quot; id=&quot;unordered-lists&quot;&gt;Unordered lists&lt;/h4&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;+ unordered list, item 1
    - nested list item 1
        * nested list item 2
            + nested list item 3
* unordered list, item 2
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;unordered list, item 1
    &lt;ul&gt;
      &lt;li&gt;nested list item 1
        &lt;ul&gt;
          &lt;li&gt;nested list item 2
            &lt;ul&gt;
              &lt;li&gt;nested list item 3&lt;/li&gt;
            &lt;/ul&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;unordered list, item 2&lt;/li&gt;
&lt;/ul&gt;

&lt;h4 class=&quot;no_toc&quot; id=&quot;definition-lists&quot;&gt;Definition Lists&lt;/h4&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;definition term
: This definition will just be text because it would normally be a
  paragraph and the there is no preceding blank line.

  &amp;gt; although the definition contains other block-level elements

: This definition *will* be a paragraph since it is preceded by a
  blank line.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;dl&gt;
  &lt;dt&gt;definition term&lt;/dt&gt;
  &lt;dd&gt;This definition will just be text because it would normally be a
paragraph and the there is no preceding blank line.

    &lt;blockquote&gt;
      although the definition contains other block-level elements
    &lt;/blockquote&gt;
  &lt;/dd&gt;
  &lt;dd&gt;
    This definition &lt;em&gt;will&lt;/em&gt; be a paragraph since it is preceded by a
blank line.
  &lt;/dd&gt;
&lt;/dl&gt;

&lt;!-- ==================== --&gt;
&lt;h2 id=&quot;tables&quot;&gt;Tables&lt;/h2&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;|-----------------+------------+-----------------+----------------|
| Default aligned |Left aligned| Center aligned  | Right aligned  |
|-----------------|:-----------|:---------------:|---------------:|
| First body part |Second cell | Third cell      | fourth cell    |
| Second line     |foo         | **strong**      | baz            |
| Third line      |quux        | baz             | bar            |
|-----------------+------------+-----------------+----------------|
| Second body     |            |                 |                |
| 2 line          |            |                 |                |
|=================+============+=================+================|
| Footer row      |            |                 |                |
|-----------------+------------+-----------------+----------------|
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;table&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;Default aligned&lt;/th&gt;
      &lt;th style=&quot;text-align: left&quot;&gt;Left aligned&lt;/th&gt;
      &lt;th style=&quot;text-align: center&quot;&gt;Center aligned&lt;/th&gt;
      &lt;th style=&quot;text-align: right&quot;&gt;Right aligned&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;First body part&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;Second cell&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;Third cell&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;fourth cell&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Second line&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;foo&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;&lt;strong&gt;strong&lt;/strong&gt;&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;baz&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;Third line&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt;quux&lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt;baz&lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;bar&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td&gt;Second body&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt; &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;2 line&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt; &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
  &lt;tfoot&gt;
    &lt;tr&gt;
      &lt;td&gt;Footer row&lt;/td&gt;
      &lt;td style=&quot;text-align: left&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: center&quot;&gt; &lt;/td&gt;
      &lt;td style=&quot;text-align: right&quot;&gt;&lt;a href=&quot;https://kramdown.gettalong.org/syntax.html#tables&quot; title=&quot;kramdown Syntax - tables&quot;&gt;see more&lt;/a&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tfoot&gt;
&lt;/table&gt;

&lt;!-- ==================== --&gt;
&lt;h2 id=&quot;horizontal-rules&quot;&gt;Horizontal Rules&lt;/h2&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;* * *

---

  _  _  _  _

---------------
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;hr /&gt;

&lt;hr /&gt;

&lt;hr /&gt;

&lt;hr /&gt;

&lt;!-- ==================== --&gt;
&lt;h2 id=&quot;links-and-images&quot;&gt;Links and Images&lt;/h2&gt;
Three types of links are supported: automatic links, inline links and reference links.

&lt;h4 class=&quot;no_toc&quot; id=&quot;automatic-links&quot;&gt;Automatic Links&lt;/h4&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Information can be found on the &amp;lt;http://example.com&amp;gt; homepage.\\
You can also mail me: &amp;lt;me.example@example.com&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;blockquote class=&quot;preview&quot;&gt;

  Information can be found on the &lt;a href=&quot;http://example.com&quot;&gt;http://example.com&lt;/a&gt; homepage.&lt;br /&gt;
You can also mail me: &lt;a href=&quot;mailto:me.example@example.com&quot;&gt;me.example@example.com&lt;/a&gt;
&lt;/blockquote&gt;

&lt;h4 class=&quot;no_toc&quot; id=&quot;inline-links&quot;&gt;Inline Links&lt;/h4&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;This is [a link](http://google.com) to a page.
A [link](../test &quot;local URI&quot;) can also have a title.
And [spaces](link with spaces.html)!
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;blockquote class=&quot;preview&quot;&gt;

  This is &lt;a href=&quot;http://rubyforge.org&quot;&gt;a link&lt;/a&gt; to a page.
A &lt;a href=&quot;../test&quot; title=&quot;local URI&quot;&gt;link&lt;/a&gt; can also have a title.
And &lt;a href=&quot;link with spaces.html&quot;&gt;spaces&lt;/a&gt;!
&lt;/blockquote&gt;

&lt;h4 class=&quot;no_toc&quot; id=&quot;reference-links&quot;&gt;Reference Links&lt;/h4&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;This is a [reference style link][linkid] to a page.
And [this][linkid] is also a link. As is [this][] and [THIS].

[linkid]: http://www.example.com/ &quot;Optional Title&quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;blockquote class=&quot;preview&quot;&gt;

  This is a &lt;a href=&quot;http://www.example.com/&quot; title=&quot;Optional Title&quot;&gt;reference style link&lt;/a&gt; to a page.
And &lt;a href=&quot;http://www.example.com/&quot; title=&quot;Optional Title&quot;&gt;this&lt;/a&gt; is also a link. As is [this][] and [THIS].

&lt;/blockquote&gt;

&lt;h4 class=&quot;no_toc&quot; id=&quot;images&quot;&gt;Images&lt;/h4&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Here comes a ![smiley](../images/smiley.png)! And here
![too](../images/other.png 'Title text'). Or ![here].
With empty alt text ![](see.jpg)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;blockquote class=&quot;preview&quot;&gt;

  Here comes a &lt;img src=&quot;/assets/img/noti_fore_smile.png&quot; alt=&quot;smiley&quot; /&gt;! And here
&lt;img src=&quot;/assets/img/noti_fore_chatting.png&quot; alt=&quot;too&quot; title=&quot;Title text&quot; /&gt;. Or ![here].
With empty alt text &lt;img src=&quot;/assets/img/noti_fore_chatting.png&quot; alt=&quot;&quot; /&gt;
&lt;/blockquote&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Here is an inline ![smiley](smiley.png){:height=&quot;56px&quot; width=&quot;33px&quot;}.
And here is a referenced ![smile]

[smile]: smile.png &quot;Title text&quot;
{: height=&quot;56px&quot; width=&quot;33px&quot;}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;blockquote class=&quot;preview&quot;&gt;

  Here is an inline &lt;img src=&quot;/assets/img/noti_fore_smile.png&quot; alt=&quot;smiley&quot; height=&quot;56px&quot; width=&quot;33px&quot; /&gt;.
And here is a referenced &lt;img height=&quot;56px&quot; width=&quot;33px&quot; src=&quot;/assets/img/noti_fore_smile.png&quot; alt=&quot;smile&quot; title=&quot;Title text&quot; /&gt;
&lt;/blockquote&gt;

&lt;!-- ==================== --&gt;
&lt;h2 id=&quot;emphasis&quot;&gt;Emphasis&lt;/h2&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;This is a ***text with light and strong emphasis***.
This **is _emphasized_ as well**.
This *does _not_ work*.
This **does __not__ work either**.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;blockquote class=&quot;preview&quot;&gt;

  This is a &lt;strong&gt;&lt;em&gt;text with light and strong emphasis&lt;/em&gt;&lt;/strong&gt;.&lt;br /&gt;
This &lt;strong&gt;is &lt;em&gt;emphasized&lt;/em&gt; as well&lt;/strong&gt;.&lt;br /&gt;
This &lt;em&gt;does _not_ work&lt;/em&gt;.&lt;br /&gt;
This &lt;strong&gt;does __not__ work either&lt;/strong&gt;.
&lt;/blockquote&gt;

&lt;!-- ==================== --&gt;
&lt;h2 id=&quot;code-spans&quot;&gt;Code Spans&lt;/h2&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Use `&amp;lt;html&amp;gt;` tags for this.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;blockquote class=&quot;preview&quot;&gt;

  Use &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;html&amp;gt;&lt;/code&gt; tags for this.
&lt;/blockquote&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Here is a literal `` ` `` backtick.
And here is ``  `some`  `` text (note the two spaces so that one is left
in the output!).
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;blockquote class=&quot;preview&quot;&gt;

  Here is a literal &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;`&lt;/code&gt; backtick.&lt;br /&gt;
And here is &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt; `some` &lt;/code&gt; text (note the two spaces so that one is left&lt;br /&gt;
in the output!).
&lt;/blockquote&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;This is a ` literal backtick.
As \`are\` these!
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;blockquote class=&quot;preview&quot;&gt;

  This is a ` literal backtick.
As `are` these!
&lt;/blockquote&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;This is a C# code fragment `x = new SmartListBox();`{:.language-csharp}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;blockquote class=&quot;preview&quot;&gt;

  This is a C# code fragment &lt;code class=&quot;language-plaintext highlight highlighter-rouge&quot;&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;new&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;SmartListBox&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;();&lt;/span&gt;&lt;/code&gt;
&lt;/blockquote&gt;

&lt;!-- ==================== --&gt;
&lt;h2 id=&quot;footnotes&quot;&gt;Footnotes&lt;/h2&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;This is some text.[^1]. Other text.[^footnote]

[^1]: Some *crazy* footnote definition.
[^footnote]: this is a footnote definition.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

This is some text.&lt;sup id=&quot;fnref:1&quot;&gt;&lt;a href=&quot;#fn:1&quot; class=&quot;footnote&quot;&gt;1&lt;/a&gt;&lt;/sup&gt;. Other text.&lt;sup id=&quot;fnref:footnote&quot;&gt;&lt;a href=&quot;#fn:footnote&quot; class=&quot;footnote&quot;&gt;2&lt;/a&gt;&lt;/sup&gt;

&lt;!-- ==================== --&gt;
&lt;h2 id=&quot;extensions&quot;&gt;Extensions&lt;/h2&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;{::comment}
This text is completely ignored by kramdown - a comment in the text.
{:/comment}

Do you see {::comment}this text{:/comment}?
{::comment}some other comment{:/}

{::options key=&quot;val&quot; /}
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;blockquote class=&quot;preview&quot;&gt;

  &lt;!-- This text is completely ignored by kramdown - a comment in the text. --&gt;

  Do you see &lt;!-- this text --&gt;?
&lt;!-- some other comment --&gt;

&lt;/blockquote&gt;

&lt;hr /&gt;
&lt;div class=&quot;footnotes&quot;&gt;
  &lt;ol&gt;
    &lt;li id=&quot;fn:1&quot;&gt;
      Some &lt;em&gt;crazy&lt;/em&gt; footnote definition. &lt;a href=&quot;#fnref:1&quot; class=&quot;reversefootnote&quot;&gt;&amp;#8617;&lt;/a&gt;
    &lt;/li&gt;
    &lt;li id=&quot;fn:footnote&quot;&gt;
      this is a footnote definition. &lt;a href=&quot;#fnref:footnote&quot; class=&quot;reversefootnote&quot;&gt;&amp;#8617;&lt;/a&gt;
    &lt;/li&gt;
  &lt;/ol&gt;
&lt;/div&gt;
</description>
        <pubDate>Mon, 29 Oct 2018 00:00:00 +0000</pubDate>
        <link>http://devman.net/2018/10/29/kramdown/</link>
        <guid isPermaLink="true">http://devman.net/2018/10/29/kramdown/</guid>
        
        <category>kramdown</category>
        
        
        <category>Etc</category>
        
      </item>
    
  </channel>
</rss>
