<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>WhoyaS2's Home :P</title>
    <link>https://whoyas2.tistory.com/</link>
    <description>사랑과 평화 !!!</description>
    <language>ko</language>
    <pubDate>Tue, 9 Jun 2026 04:53:59 +0900</pubDate>
    <generator>TISTORY</generator>
    <ttl>100</ttl>
    <managingEditor>후야</managingEditor>
    <image>
      <title>WhoyaS2's Home :P</title>
      <url>https://t1.daumcdn.net/cfile/tistory/16190B40502514E205</url>
      <link>https://whoyas2.tistory.com</link>
    </image>
    <item>
      <title>[OMV] 라즈베리파이(Raspberry Pi)에 OMV(OpenMediaVault)로 서버 구축하기 - 3편 : SD Card Resize</title>
      <link>https://whoyas2.tistory.com/36</link>
      <description>&lt;blockquote&gt;&lt;p&gt;
  Raspberry Pi + OMV&lt;br /&gt;
  SD Card Resize
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;&lt;p&gt;나는 분명히 라즈베리파이에 32GB SD카드를 삽입했다.&lt;br /&gt;
그런데, 4GB 밖에 인식을 못하고 있었다. :angry:&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 531px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/9937873A5B7C455B39&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F9937873A5B7C455B39&quot; width=&quot;531&quot; height=&quot;289&quot; filename=&quot;20170813_162640_1.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;code&gt;/dev/root&lt;/code&gt;의 파일 크기가 &lt;code&gt;3.6G&lt;/code&gt;로 적혀 있는 것을 볼 수 있다.&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;파티션 확인&lt;/h3&gt;
&lt;hr&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash  line-numbers&quot;&gt;fdisk -c /dev/mmcblk0
&lt;/code&gt;&lt;/pre&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 569px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/993073455B7C455B0E&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F993073455B7C455B0E&quot; width=&quot;569&quot; height=&quot;293&quot; filename=&quot;20170813_162640_2.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;현재 파티션을 보니 3개로 확인이 된다.&lt;br /&gt;
Type에 따라 구분해보면, 1번은 신경쓰지 않아도 되는 것을 알 수 있다.&lt;br /&gt;
2번과 3번만 합치도록 한다.&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;파티션 삭제/생성&lt;/h3&gt;
&lt;hr&gt;
&lt;p&gt;포맷이 아니니 데이터가 날아가지는 않는다.&lt;br /&gt;
먼저 2번과 3번을 삭제한다.&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 492px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/9932964F5B7C455B2A&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F9932964F5B7C455B2A&quot; width=&quot;492&quot; height=&quot;142&quot; filename=&quot;20170813_162640_3.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;그 다음 2, 3번을 삭제했으니 2번 위치에 2번과 3번을 합한 크기만큼 생성하도록 한다.&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 696px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/998F7A385B7C455B32&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F998F7A385B7C455B32&quot; width=&quot;696&quot; height=&quot;353&quot; filename=&quot;20170813_162640_4.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;저장하고 재부팅&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 690px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/996A344A5B7C455B28&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F996A344A5B7C455B28&quot; width=&quot;690&quot; height=&quot;141&quot; filename=&quot;20170813_162640_5.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;확인&lt;/h3&gt;
&lt;hr&gt;
&lt;p&gt;이제 &lt;code&gt;/dev/root&lt;/code&gt;에 30G로 잘 잡히는 것을 확인할 수 있다.&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 585px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/9986DF475B7C455B36&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F9986DF475B7C455B36&quot; width=&quot;585&quot; height=&quot;424&quot; filename=&quot;20170813_162640_6.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <category>OMV</category>
      <category>Raspberry Pi</category>
      <category>sdcard resize</category>
      <author>후야</author>
      <guid isPermaLink="true">https://whoyas2.tistory.com/36</guid>
      <comments>https://whoyas2.tistory.com/36#entry36comment</comments>
      <pubDate>Sun, 13 Aug 2017 16:32:41 +0900</pubDate>
    </item>
    <item>
      <title>[OMV] 라즈베리파이(Raspberry Pi)에 OMV(OpenMediaVault)로 서버 구축하기 - 2편 : HTTPS 설정</title>
      <link>https://whoyas2.tistory.com/35</link>
      <description>&lt;div id=&quot;ez-toc-container&quot; class=&quot;ez-toc-wrap-right counter-hierarchy counter-decimal ez-toc-transparent&quot;&gt;
&lt;div class=&quot;ez-toc-title-container&quot;&gt;
&lt;p class=&quot;ez-toc-title&quot;&gt;Table of Contents&lt;/p&gt;
&lt;span class=&quot;ez-toc-title-toggle&quot;&gt;&lt;a class=&quot;ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle&quot;&gt;&lt;i class=&quot;ez-toc-glyphicon ez-toc-icon-toggle&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;nav&gt;&lt;ul class=&quot;ez-toc-list&quot;&gt;&lt;li&gt;&lt;a href=&quot;#Plugin&quot; title=&quot;Plugin 설치&quot;&gt;Plugin 설치&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;#LetsEncrypt&quot; title=&quot;LetsEncrypt 설정&quot;&gt;LetsEncrypt 설정&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;#i&quot; title=&quot;인증서 확인&quot;&gt;인증서 확인&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;#i-2&quot; title=&quot;웹 설정&quot;&gt;웹 설정&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/nav&gt;&lt;/div&gt;

&lt;blockquote&gt;&lt;p&gt;
  Raspberry Pi 3 + OMV&lt;br /&gt;
  + &lt;strong&gt;LetsEncrypt&lt;/strong&gt;
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;&lt;span class=&quot;ez-toc-section&quot; id=&quot;Plugin&quot;&gt;Plugin 설치&lt;/span&gt;&lt;/h3&gt;
&lt;hr&gt;
&lt;p&gt;Plugin 중에서 openmediavault-letsencrypt 를 설치한다.&lt;br /&gt;
letsencrypt를 자동으로 발급받고, 관리할 수 있게 해주는 플러그인이다.&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 820px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99B42F335990002B2E&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99B42F335990002B2E&quot; width=&quot;820&quot; height=&quot;370&quot; filename=&quot;20170813_155948_1.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;&lt;span class=&quot;ez-toc-section&quot; id=&quot;LetsEncrypt&quot;&gt;LetsEncrypt 설정&lt;/span&gt;&lt;/h3&gt;
&lt;hr&gt;
&lt;p&gt;설치가 잘 되었다면, LetseEncrypt에서 설정을 한다.&lt;br /&gt;
&lt;code&gt;Domain&lt;/code&gt;에는 웹 서버의 도메인 네임을 적는다.&lt;br /&gt;
&lt;code&gt;전자우편&lt;/code&gt;은 …음… 알아서 잘 적는다.&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;※ 옵션은 2개를 동시에 켜지 않도록 한다.&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;※ 잘 동작한다면 &lt;code&gt;Schedule Refresh&lt;/code&gt;만 켜놓으면 된다.&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 820px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99D59F335990002B19&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99D59F335990002B19&quot; width=&quot;820&quot; height=&quot;477&quot; filename=&quot;20170813_155948_2.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h3&gt;&lt;span class=&quot;ez-toc-section&quot; id=&quot;i&quot;&gt;인증서 확인&lt;/span&gt;&lt;/h3&gt;
&lt;hr&gt;
&lt;p&gt;인증서가 잘 발급되었는지 확인한다.&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 742px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99D2D0335990002B38&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99D2D0335990002B38&quot; width=&quot;742&quot; height=&quot;459&quot; filename=&quot;20170813_155948_3.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;&lt;span class=&quot;ez-toc-section&quot; id=&quot;i-2&quot;&gt;웹 설정&lt;/span&gt;&lt;/h3&gt;
&lt;hr&gt;
&lt;p&gt;웹 설정을 진행한다.&lt;br /&gt;
인증에서 인증서는 LetsEncrypt에서 발급받은 인증서를 선택하면 된다.&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 820px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99F759335990002B18&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99F759335990002B18&quot; width=&quot;820&quot; height=&quot;560&quot; filename=&quot;20170813_155948_4.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;</description>
      <category>OS/Linux</category>
      <category>https</category>
      <category>letsencrypt</category>
      <category>OMV</category>
      <category>Raspberry Pi</category>
      <author>후야</author>
      <guid isPermaLink="true">https://whoyas2.tistory.com/35</guid>
      <comments>https://whoyas2.tistory.com/35#entry35comment</comments>
      <pubDate>Sun, 13 Aug 2017 16:17:40 +0900</pubDate>
    </item>
    <item>
      <title>[OMV] 라즈베리파이(Raspberry Pi)에 OMV(OpenMediaVault)로 서버 구축하기 - 1편 : 설치</title>
      <link>https://whoyas2.tistory.com/34</link>
      <description>&lt;div id=&quot;ez-toc-container&quot; class=&quot;ez-toc-wrap-right counter-hierarchy counter-decimal ez-toc-transparent&quot;&gt;
&lt;div class=&quot;ez-toc-title-container&quot;&gt;
&lt;p class=&quot;ez-toc-title&quot;&gt;Table of Contents&lt;/p&gt;
&lt;span class=&quot;ez-toc-title-toggle&quot;&gt;&lt;a class=&quot;ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle&quot;&gt;&lt;i class=&quot;ez-toc-glyphicon ez-toc-icon-toggle&quot;&gt;&lt;/i&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;nav&gt;&lt;ul class=&quot;ez-toc-list&quot;&gt;&lt;li&gt;&lt;a href=&quot;#Download_OMV_Win32DiskImager&quot; title=&quot;Download OMV &amp;amp; Win32DiskImager&quot;&gt;Download OMV &amp;amp; Win32DiskImager&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;#Install_OMV&quot; title=&quot;Install OMV&quot;&gt;Install OMV&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;#Booting_OMV&quot; title=&quot;Booting OMV&quot;&gt;Booting OMV&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href=&quot;#Change_Password&quot; title=&quot;Change Password&quot;&gt;Change Password&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/nav&gt;&lt;/div&gt;

&lt;blockquote&gt;&lt;p&gt;
  Raspberry Pi 3 + OMV
&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;&lt;span class=&quot;ez-toc-section&quot; id=&quot;Download_OMV_Win32DiskImager&quot;&gt;Download OMV &amp;amp; Win32DiskImager&lt;/span&gt;&lt;/h3&gt;
&lt;hr&gt;
&lt;h4&gt;OMV Image 파일 다운로드&lt;/h4&gt;
&lt;p&gt;&lt;a href=&quot;https://sourceforge.net/projects/openmediavault/files/Raspberry%20Pi%20images/&quot; target=&quot;_blank&quot; class=&quot;thisismyurl_external external-links-new-window&quot;&gt;다운로드 링크&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 635px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/995C1333598FDCE710&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F995C1333598FDCE710&quot; width=&quot;635&quot; height=&quot;459&quot; filename=&quot;20170813_140001_1.png&quot; filemime=&quot;image/png&quot; style=&quot;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;
&lt;h4&gt;Win32DiskImager 다운로드&lt;/h4&gt;
&lt;p&gt;&lt;a href=&quot;https://sourceforge.net/projects/win32diskimager/files/Archive/&quot; target=&quot;_blank&quot; class=&quot;thisismyurl_external external-links-new-window&quot;&gt;다운로드 링크&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 642px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/9929CC33598FDCE738&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F9929CC33598FDCE738&quot; width=&quot;642&quot; height=&quot;800&quot; filename=&quot;20170813_140001_2.png&quot; filemime=&quot;image/png&quot; style=&quot;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;&lt;span class=&quot;ez-toc-section&quot; id=&quot;Install_OMV&quot;&gt;Install OMV&lt;/span&gt;&lt;/h3&gt;
&lt;hr&gt;
&lt;h4&gt;SD Card와 컴퓨터 연결&lt;/h4&gt;
&lt;h4&gt;OMV Image 압축 해제&lt;/h4&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 285px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99D28E33598FDD4D37&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99D28E33598FDD4D37&quot; width=&quot;285&quot; height=&quot;44&quot; filename=&quot;20170813_140001_4.png&quot; filemime=&quot;image/png&quot; style=&quot;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;
&lt;h4&gt;SD Card에 OMV Image 쓰기&lt;/h4&gt;
&lt;p&gt;Image 파일 잘 선택하고, 디바이스 확인한 뒤 &lt;code&gt;Write&lt;/code&gt; 버튼을 누른다.&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 482px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/99DE8233598FDCE70F&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F99DE8233598FDCE70F&quot; width=&quot;482&quot; height=&quot;335&quot; filename=&quot;20170813_140001_5.png&quot; filemime=&quot;image/png&quot; style=&quot;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;&lt;span class=&quot;ez-toc-section&quot; id=&quot;Booting_OMV&quot;&gt;Booting OMV&lt;/span&gt;&lt;/h3&gt;
&lt;hr&gt;
&lt;h4&gt;라즈베리파이3에 SD Card 삽입&lt;/h4&gt;
&lt;h4&gt;라즈베리파이3 전원 연결&lt;/h4&gt;
&lt;p&gt;그러면 자동 부팅된다.&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;
&lt;h3&gt;&lt;span class=&quot;ez-toc-section&quot; id=&quot;Change_Password&quot;&gt;Change Password&lt;/span&gt;&lt;/h3&gt;
&lt;hr&gt;
&lt;h4&gt;SSH 연결&lt;/h4&gt;
&lt;h4&gt;SSH 비밀번호 변경&lt;/h4&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash  line-numbers&quot;&gt;passwd
&lt;/code&gt;&lt;/pre&gt;
&lt;h4&gt;Web 비밀번호 변경&lt;/h4&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash  line-numbers&quot;&gt;omv-firstaid
&lt;/code&gt;&lt;/pre&gt;
&lt;p style=&quot;text-align: left; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 553px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/9914C033598FDCE732&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F9914C033598FDCE732&quot; width=&quot;553&quot; height=&quot;283&quot; filename=&quot;20170813_140001_6.png&quot; filemime=&quot;image/png&quot; style=&quot;&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;
&amp;nbsp;&lt;/p&gt;</description>
      <category>OS/Linux</category>
      <category>OMV</category>
      <category>openmediavault</category>
      <category>Raspberry Pi</category>
      <category>라즈베리파이</category>
      <category>서버구축</category>
      <author>후야</author>
      <guid isPermaLink="true">https://whoyas2.tistory.com/34</guid>
      <comments>https://whoyas2.tistory.com/34#entry34comment</comments>
      <pubDate>Thu, 10 Aug 2017 20:39:34 +0900</pubDate>
    </item>
    <item>
      <title>[Security] 워너크라이(WannaCry) 랜섬웨어 예방</title>
      <link>https://whoyas2.tistory.com/33</link>
      <description>&lt;p&gt;&lt;b&gt;Windows 10 Home (64bit)&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;SMB 취약점을 이용하는&amp;nbsp;WannaCry 라고 불리는 랜섬웨어가&amp;nbsp;극성인듯하다.&lt;/p&gt;&lt;p&gt;이에 대하여&amp;nbsp;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;MicroSoft&lt;/span&gt;&lt;/b&gt;에서&amp;nbsp;&lt;b&gt;취약점 패치(&lt;a href=&quot;https://technet.microsoft.com/en-us/library/security/ms17-010.aspx&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;MS17-010&lt;/span&gt;&lt;/a&gt;)&lt;/b&gt;도 올라오고,&lt;/p&gt;&lt;p&gt;우리나라 민간부문 보안 담당(?)인&amp;nbsp;&lt;b&gt;&lt;span style=&quot;font-size: 14pt;&quot;&gt;KISA 보호나라&amp;amp;KrCERT&lt;/span&gt;&lt;/b&gt; 에서도&lt;/p&gt;&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;&lt;b&gt;&lt;a href=&quot;http://www.krcert.or.kr/data/secNoticeView.do?bulletin_writing_sequence=25723&quot; target=&quot;_blank&quot; class=&quot;tx-link&quot;&gt;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;SMB 취약점을 악용한 랜섬웨어 방지 대국민 행동 요령&lt;/span&gt;&lt;/a&gt;&lt;/b&gt;&lt;/span&gt;을 제공한다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;나같이 딱히 SMB 를 이용하지 않는다면 이참에 아예 꺼버리는게 좋겠다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt;&quot;&gt;1. SMB 끄기&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;1-&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;1) &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;[Windows + Q]&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt; 키를 이용하여 &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;제어판&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;을 검색하여 띄우자&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;1-2) 그리고 &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;프로그램 및 기능&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;으로 이동하자&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 820px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/224C6942591846110F&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F224C6942591846110F&quot; width=&quot;820&quot; height=&quot;562&quot; filename=&quot;20170514_205627_12.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;1-3) &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Windows 기능 켜기/끄기&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;를 선택하자&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 470px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/24426638591846111A&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F24426638591846111A&quot; width=&quot;470&quot; height=&quot;186&quot; filename=&quot;20170514_205627_10.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;1-4) &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;SMB 1.0/CIFS 파일 공유 지원&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;을 끄자&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;b&gt;&lt;b&gt;&lt;/b&gt;&lt;/b&gt;&lt;b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt;&quot;&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 415px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2631173B5918461136&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2631173B5918461136&quot; width=&quot;415&quot; height=&quot;368&quot; filename=&quot;20170514_205627_9.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt;&quot;&gt;2. 방화벽 설정&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;2-&lt;/span&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;1)&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;[Windows + Q]&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&amp;nbsp;키를 이용하여&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;제어판&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;을 검색하여 띄우자&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;2-2) 그리고&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;Windows 방화벽&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;으로 이동하자&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 820px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2636BF505918461127&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2636BF505918461127&quot; width=&quot;820&quot; height=&quot;562&quot; filename=&quot;20170514_205627_11.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;2-3)&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;고급 설정&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;을 선택하자&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 507px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/246E633A5918461132&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F246E633A5918461132&quot; width=&quot;507&quot; height=&quot;299&quot; filename=&quot;20170514_205627_8.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;2-4)&amp;nbsp;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;인바운드 규칙&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;에서 &lt;b&gt;새 규칙&lt;/b&gt;을 만들자&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 820px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/25167B485918461131&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F25167B485918461131&quot; width=&quot;820&quot; height=&quot;259&quot; filename=&quot;20170514_205627_7.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;2-5) 아래와 같이 규칙을 지정하자&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 795px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/2453573C591846102B&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F2453573C591846102B&quot; width=&quot;795&quot; height=&quot;109&quot; filename=&quot;20170514_205627_1.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 820px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/251D3F50591846101B&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F251D3F50591846101B&quot; width=&quot;820&quot; height=&quot;460&quot; filename=&quot;20170514_205627_6.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 820px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/21418334591846101E&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F21418334591846101E&quot; width=&quot;820&quot; height=&quot;460&quot; filename=&quot;20170514_205627_5.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 820px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/235643405918461022&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F235643405918461022&quot; width=&quot;820&quot; height=&quot;460&quot; filename=&quot;20170514_205627_4.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 820px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/243BFD48591846102D&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F243BFD48591846102D&quot; width=&quot;820&quot; height=&quot;460&quot; filename=&quot;20170514_205627_3.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p style=&quot;text-align: center; clear: none; float: none;&quot;&gt;&lt;span class=&quot;imageblock&quot; style=&quot;display: inline-block; width: 820px;  height: auto; max-width: 100%;&quot;&gt;&lt;img src=&quot;https://t1.daumcdn.net/cfile/tistory/233B7A41591846103F&quot; srcset=&quot;https://img1.daumcdn.net/thumb/R1280x0/?scode=mtistory2&amp;fname=https%3A%2F%2Ft1.daumcdn.net%2Fcfile%2Ftistory%2F233B7A41591846103F&quot; width=&quot;820&quot; height=&quot;460&quot; filename=&quot;20170514_205627_2.png&quot; filemime=&quot;image/png&quot;/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>OS/Windows</category>
      <category>MS17-010</category>
      <category>Ransomware</category>
      <category>SMB</category>
      <category>waanacry</category>
      <author>후야</author>
      <guid isPermaLink="true">https://whoyas2.tistory.com/33</guid>
      <comments>https://whoyas2.tistory.com/33#entry33comment</comments>
      <pubDate>Sun, 14 May 2017 21:06:37 +0900</pubDate>
    </item>
    <item>
      <title>[Ubuntu] Module Programming</title>
      <link>https://whoyas2.tistory.com/32</link>
      <description>&lt;p&gt;&lt;b&gt;Ubuntu 16.04.02 (64bit)&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt;&quot;&gt;1. Makefile&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Makefile 은 아래와 같이 작성 가능&lt;/div&gt;&lt;div&gt;&lt;p&gt;
&lt;/p&gt;&lt;pre class=&quot;brush:c&quot;&gt;ifneq ($(KERNELRELEASE),)
	obj-m := hello.o
else
	KERNELDIR ?= /lib/modules/$(shell uname -r)/build
	PWD := $(shell pwd)
default:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
	rm *.o *.mod.c *.symvers *.order
endif

clean:
	rm *.ko *.o *.mod.c *.symvers *.order
&lt;/pre&gt;&lt;p&gt;
&lt;b&gt;&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;b&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/div&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt;&quot;&gt;2. Test Module Code&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div&gt;code 작성&lt;/div&gt;
&lt;pre class=&quot;brush:c&quot;&gt;#include &amp;lt;linux/init.h&amp;gt;
#include &amp;lt;linux/module.h&amp;gt;
MODULE_LICENSE(&quot;Dual BSD/GPL&quot;);

static int who_init_module(void) {
	//printk(&quot;&amp;lt;1&amp;gt; Hello, world\n&quot;);
	printk(KERN_ALERT &quot;Hello, world\n&quot;);
	return 0;
}

static void who_exit_module(void) {
	//printk(&quot;&amp;lt;1&amp;gt; Goodbye, world\n&quot;);
	printk(KERN_ALERT &quot;Goodbye, world\n&quot;);
}

module_init(who_init_module);
module_exit(who_exit_module);
&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;b&gt;&lt;span style=&quot;font-size: 18pt;&quot;&gt;3. Test&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;pre class=&quot;brush:bash&quot;&gt;make

sudo insmod hello.ko
lsmod | grep hello
dmesg | tail

sudo rmmod hello.ko
lsmod | grep hello
dmesg | tail
&lt;/pre&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>OS/Linux</category>
      <category>Module Programming</category>
      <category>모듈 프로그래밍</category>
      <author>후야</author>
      <guid isPermaLink="true">https://whoyas2.tistory.com/32</guid>
      <comments>https://whoyas2.tistory.com/32#entry32comment</comments>
      <pubDate>Tue, 9 May 2017 23:27:32 +0900</pubDate>
    </item>
  </channel>
</rss>