<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>igotoo</title>
    <description>IT 관련 기술 공부/기록용 블로그
</description>
    <link>http://blg.igotoo.pw/</link>
    <atom:link href="http://blg.igotoo.pw/feed.xml" rel="self" type="application/rss+xml" />
    <pubDate>Mon, 30 Mar 2026 17:49:46 +0000</pubDate>
    <lastBuildDate>Mon, 30 Mar 2026 17:49:46 +0000</lastBuildDate>
    <generator>Jekyll v3.10.0</generator>
    
      <item>
        <title>Windows에서 WSL2/Vagrant/VBox로 Ansible 실습</title>
        <description>&lt;h2 id=&quot;개요&quot;&gt;개요&lt;/h2&gt;

&lt;p&gt;WSL2에 Vagrant를 설치하여 호스트에 설치된 virtualbox을 활용하여  VM 생성/구성/관리 가능&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;윈도우에는 ansible control 서버를 설치 할 수 없어 ansible provisioner를 사용할 수 없음&lt;/li&gt;
  &lt;li&gt;vagrant에서 ansible/ansible_local 지원
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://www.vagrantup.com/docs/provisioning/ansible&quot;&gt;ansible&lt;/a&gt;, where Ansible is executed on the &lt;strong&gt;Vagrant host&lt;/strong&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://www.vagrantup.com/docs/provisioning/ansible_local&quot;&gt;ansible_local&lt;/a&gt;, where Ansible is executed on the &lt;strong&gt;Vagrant guest&lt;/strong&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;ansible provioner는 호스트에  asnible 설치, ansible_local는 guest에 ansible 설치 따라서 window host에서는 ansible_local 사용&lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;참고&lt;/p&gt;

    &lt;p&gt;&lt;a href=&quot;https://github.com/geerlingguy/ansible-for-devops/issues/291#issuecomment-815253528&quot;&gt;주요 참고 : Appendix A - Vagrant with VirtualBox within WSL2 to run ansible-for-devops VMs #291&lt;/a&gt;&lt;/p&gt;

    &lt;table&gt;
      &lt;tbody&gt;
        &lt;tr&gt;
          &lt;td&gt;[Common Ansible Options - Provisioning&lt;/td&gt;
          &lt;td&gt;Vagrant by HashiCorp](https://www.vagrantup.com/docs/provisioning/ansible_common)&lt;/td&gt;
        &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;

    &lt;table&gt;
      &lt;tbody&gt;
        &lt;tr&gt;
          &lt;td&gt;[Ansible - Short Introduction&lt;/td&gt;
          &lt;td&gt;Vagrant by HashiCorp](https://www.vagrantup.com/docs/provisioning/ansible_intro)&lt;/td&gt;
        &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;사전-설치&quot;&gt;사전 설치&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;호스트 vagrant(windows 10)와 WSL2 vagrant 버전 통일&lt;/p&gt;

    &lt;blockquote&gt;
      &lt;p&gt;NOTE: When Vagrant is installed on the Windows system the version installed within the Linux distribution must match.’&lt;/p&gt;
    &lt;/blockquote&gt;

    &lt;ul&gt;
      &lt;li&gt;에러 메세지&lt;/li&gt;
    &lt;/ul&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;  The provider &lt;span class=&quot;s1&quot;&gt;&apos;virtualbox&apos;&lt;/span&gt; that was requested to back the machine &lt;span class=&quot;s1&quot;&gt;&apos;default&apos;&lt;/span&gt; is reporting that it isn&lt;span class=&quot;s1&quot;&gt;&apos;t usable on this system. The reason is shown below:
    			
  VirtualBox is complaining that the kernel module is not loaded. Please
  run `VBoxManage --version` or open the VirtualBox GUI to see the error
  message which should contain instructions on how to fix this error.
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;ul&gt;
      &lt;li&gt;WSL2 vagrant 삭제후 재 설치&lt;/li&gt;
    &lt;/ul&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;o&quot;&gt;&amp;gt;&lt;/span&gt; wget https://releases.hashicorp.com/vagrant/2.2.16/vagrant_2.2.16_linux_amd64.zip
  &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; unzip vagrant_2.2.16_linux_amd64.zip
  &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;sudo mv&lt;/span&gt; ./vagrant /usr/local/bin/vagrant
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;basdtar 설치
    &lt;ul&gt;
      &lt;li&gt;vagrant가 아카이브 파일 읽고/쓰기 위해 필요, 미 설치로 다음 에러 발생&lt;/li&gt;
    &lt;/ul&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;  INFO interface: error: The executable &lt;span class=&quot;s1&quot;&gt;&apos;bsdtar&apos;&lt;/span&gt; Vagrant is trying to run was not
  found &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;the PATH variable. This is an error. Please verify
  this software is installed and on the path.
  The executable &lt;span class=&quot;s1&quot;&gt;&apos;bsdtar&apos;&lt;/span&gt; Vagrant is trying to run was not
  found &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;the PATH variable. This is an error. Please verify
  this software is installed and on the path.
  INFO interface: Machine: error-exit &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;Vagrant::Errors::CommandUnavailable&quot;&lt;/span&gt;, &lt;span class=&quot;s2&quot;&gt;&quot;The executable &apos;bsdtar&apos; Vagrant is trying to run was not&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\n&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;found in the PATH variable. This is an error. Please verify&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\n&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;this software is installed and on the path.&quot;&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;ul&gt;
      &lt;li&gt;설치&lt;/li&gt;
    &lt;/ul&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;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;libarchive-tools
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;ssh 오류 해결
    &lt;ul&gt;
      &lt;li&gt;ssh 오류 해결 plugin 설치:  vagrant plugin install virtualbox_WSL2&lt;/li&gt;
    &lt;/ul&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;  ...
  default: Warning: Connection refused. Retrying...
  default: Warning: Connection refused. Retrying...
  default: Warning: Connection refused. Retrying...
  Timed out &lt;span class=&quot;k&quot;&gt;while &lt;/span&gt;waiting &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;the machine to boot. This means that
  Vagrant was unable to communicate with the guest machine within
  the configured &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;config.vm.boot_timeout&quot;&lt;/span&gt; value&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;time &lt;/span&gt;period.If you look above, you should be able to see the error&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;s&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; that
  Vagrant had when attempting to connect to the machine. These errors
  are usually good hints as to what may be wrong.If you&lt;span class=&quot;s1&quot;&gt;&apos;re using a custom box, make sure that networking is properly
  working and you&apos;&lt;/span&gt;re able to connect to the machine. It is a common
  problem that networking isn&lt;span class=&quot;s1&quot;&gt;&apos;t setup properly in these boxes.
  Verify that authentication configurations are also setup properly,
  as well.If the box appears to be booting properly, you may want to increase
  the timeout (&quot;config.vm.boot_timeout&quot;) value.
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;p&gt;&lt;a href=&quot;https://github.com/hashicorp/vagrant/issues/11716&quot;&gt;Private network not getting set up running under WSL2 (same Vagrantfile fine under Windows Vagrant) · Issue #11716 · hashicorp/vagrant&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;wsl.conf 생성 : /etc/wsl.conf
    &lt;ul&gt;
      &lt;li&gt;private key 권한 변경 시 리눅스 파일 시스템 권한 설정 기능 필요&lt;/li&gt;
      &lt;li&gt;
        &lt;p&gt;wsl.conf의 역할 : WSL 실행시 자동 구성 수행&lt;/p&gt;

        &lt;blockquote&gt;
          &lt;p&gt;Automatically configure functionality in WSL that will be applied every time you launch the subsystem using &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;wsl.conf&lt;/code&gt;. This includes automount options and network configuration.&lt;/p&gt;
        &lt;/blockquote&gt;

        &lt;blockquote&gt;
          &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;wsl.conf&lt;/code&gt; is located in each Linux distribution in &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/etc/wsl.conf&lt;/code&gt;.&lt;/p&gt;
        &lt;/blockquote&gt;
      &lt;/li&gt;
      &lt;li&gt;
        &lt;p&gt;automout  / metata&lt;/p&gt;

        &lt;blockquote&gt;
          &lt;p&gt;metadata	Whether metadata is added to Windows files to support Linux system permissions&lt;/p&gt;
        &lt;/blockquote&gt;
      &lt;/li&gt;
      &lt;li&gt;설정 내용&lt;/li&gt;
    &lt;/ul&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;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;cat&lt;/span&gt; /etc/wsl.conf
  &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;automount]
  options &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;metadata&quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;환경 변수 설정&lt;/p&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;c&quot;&gt;# for ansible + vagrant&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;VAGRANT_WSL_ENABLE_WINDOWS_ACCESS&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;1&quot;&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;PATH&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;$PATH&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;:/mnt/d/virtualbox&quot;&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;VAGRANT_WSL_WINDOWS_ACCESS_USER_HOME_PATHPATH&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;/mnt/d/Ansible-Handson/&quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;p&gt;&lt;a href=&quot;https://docs.microsoft.com/en-us/windows/wsl/wsl-config#set-wsl-launch-settings&quot;&gt;Manage Linux Distributions&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;저자 github clone
    &lt;ul&gt;
      &lt;li&gt;명령어 : git clone &lt;a href=&quot;mailto:git@github.com&quot;&gt;git@github.com&lt;/a&gt;:geerlingguy/ansible-for-devops.git&lt;/li&gt;
      &lt;li&gt;위치 :  /mnt/d/Ansible-Handson/ans-for-devops&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;vm-생성&quot;&gt;vm 생성&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;vagrantfile&lt;/li&gt;
&lt;/ul&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;# -*- mode: ruby -*-
# vi: set ft=ruby :

VAGRANTFILE_API_VERSION = &quot;2&quot;

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.box = &quot;geerlingguy/ubuntu2004&quot;
  config.vm.network :private_network, ip: &quot;192.168.88.8&quot;
  config.vm.hostname = &quot;drupal.test&quot;
  config.ssh.insert_key = false

  config.vm.provider :virtualbox do |v|
    v.memory = 2048
  end
  
  #config.vm.synced_folder &apos;.&apos;, &apos;/vagrant&apos;, disabled: true
  config.vm.synced_folder &apos;.&apos;, &apos;/vagrant&apos;

  # Ansible provisioning.
  config.vm.provision &quot;ansible_local&quot; do |ansible|
    ansible.playbook = &quot;provisioning/playbook.yml&quot;
  end
end
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h3 id=&quot;configvmprovision-ansible_local&quot;&gt;config.vm.provision “ansible_local”&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;config.vm.provision = ansible로 할경우 호스트 즉 windows10에 ansible을 설치 하라는 에러가 발생함. Windows10에서는 ansible을 설치 할 수 없으므로 ansible_local로 provision 해야 함&lt;/li&gt;
&lt;/ul&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;The Ansible software could not be found! Please verify
that Ansible is correctly installed on your host system.

If you haven&lt;span class=&quot;s1&quot;&gt;&apos;t installed Ansible yet, please install Ansible
on your host system. Vagrant can&apos;&lt;/span&gt;t &lt;span class=&quot;k&quot;&gt;do &lt;/span&gt;this &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;you &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;a safe and
automated way.
Please check https://docs.ansible.com &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;more information.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;synced-folder--configvmsynced_folder--vagrant&quot;&gt;synced folder : config.vm.synced_folder ‘.’, ‘/vagrant’&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;ansible_local provision을 할 경우 playbook이 호스와 게스트 공유폴더를 통해 공유 되어야 함&lt;/li&gt;
  &lt;li&gt;예전 Episode에서슨 synced folder bug로 disable 권고 → bug 해결 : &lt;a href=&quot;https://github.com/hashicorp/vagrant/pull/12056&quot;&gt;https://github.com/hashicorp/vagrant/pull/12056&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;drupal-설치&quot;&gt;Drupal 설치&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;ansible_local provision을 통해 Drupal 설치&lt;/li&gt;
  &lt;li&gt;playbook.yml 등 설치 참고 : https://github.com/geerlingguy/ansible-for-devops/tree/master/drupal&lt;/li&gt;
  &lt;li&gt;설치 결과&lt;/li&gt;
&lt;/ul&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;o&quot;&gt;&amp;gt;&lt;/span&gt; vagrant provision
&lt;span class=&quot;o&quot;&gt;==&amp;gt;&lt;/span&gt; default: Running provisioner: ansible_local...
    default: Installing Ansible...
    default: Running ansible-playbook...

PLAY &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;all] &lt;span class=&quot;k&quot;&gt;*********************************************************************&lt;/span&gt;

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Gathering Facts] &lt;span class=&quot;k&quot;&gt;*********************************************************&lt;/span&gt;
ok: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Update apt cache &lt;span class=&quot;k&quot;&gt;if &lt;/span&gt;needed.] &lt;span class=&quot;k&quot;&gt;*********************************************&lt;/span&gt;
ok: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Get software &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;apt repository management.] &lt;span class=&quot;k&quot;&gt;*****************************&lt;/span&gt;
changed: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Add ondrej repository &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;later versions of PHP.] &lt;span class=&quot;k&quot;&gt;************************&lt;/span&gt;
changed: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Install Apache, MySQL, PHP, and other dependencies.] &lt;span class=&quot;k&quot;&gt;*********************&lt;/span&gt;
changed: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Disable the firewall &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;since this is &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;local &lt;/span&gt;dev only&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;.] &lt;span class=&quot;k&quot;&gt;****************&lt;/span&gt;
changed: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Start Apache, MySQL, and PHP.] &lt;span class=&quot;k&quot;&gt;*******************************************&lt;/span&gt;
ok: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default] &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;item&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;apache2&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
ok: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default] &lt;span class=&quot;o&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;item&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;mysql&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Enable Apache rewrite module &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;required &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;Drupal&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;.] &lt;span class=&quot;k&quot;&gt;*********************&lt;/span&gt;
changed: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Add Apache virtualhost &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;Drupal.] &lt;span class=&quot;k&quot;&gt;**************************************&lt;/span&gt;
changed: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Enable the Drupal site.] &lt;span class=&quot;k&quot;&gt;*************************************************&lt;/span&gt;
changed: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Disable the default site.] &lt;span class=&quot;k&quot;&gt;***********************************************&lt;/span&gt;
changed: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Adjust OpCache memory setting.] &lt;span class=&quot;k&quot;&gt;******************************************&lt;/span&gt;
changed: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Create a MySQL database &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;Drupal.] &lt;span class=&quot;k&quot;&gt;*************************************&lt;/span&gt;
changed: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Create a MySQL user &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;Drupal.] &lt;span class=&quot;k&quot;&gt;*****************************************&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;WARNING]: Module did not &lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;no_log &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;update_password
changed: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Create a MySQL user &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;Drupal.] &lt;span class=&quot;k&quot;&gt;*****************************************&lt;/span&gt;
changed: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Download Composer installer.] &lt;span class=&quot;k&quot;&gt;********************************************&lt;/span&gt;
changed: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Run Composer installer.] &lt;span class=&quot;k&quot;&gt;*************************************************&lt;/span&gt;
changed: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Move Composer into globally-accessible location.] &lt;span class=&quot;k&quot;&gt;************************&lt;/span&gt;
changed: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Ensure Drupal directory exists.] &lt;span class=&quot;k&quot;&gt;*****************************************&lt;/span&gt;
changed: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Check &lt;span class=&quot;k&quot;&gt;if &lt;/span&gt;Drupal project already exists.] &lt;span class=&quot;k&quot;&gt;*********************************&lt;/span&gt;
ok: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Create Drupal project.] &lt;span class=&quot;k&quot;&gt;**************************************************&lt;/span&gt;
changed: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Add drush to the Drupal site with Composer.] &lt;span class=&quot;k&quot;&gt;*****************************&lt;/span&gt;
changed: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

TASK &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;Install Drupal.] &lt;span class=&quot;k&quot;&gt;*********************************************************&lt;/span&gt;
changed: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

RUNNING HANDLER &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;restart apache] &lt;span class=&quot;k&quot;&gt;***********************************************&lt;/span&gt;
changed: &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;default]

PLAY RECAP &lt;span class=&quot;k&quot;&gt;*********************************************************************&lt;/span&gt;
default                    : &lt;span class=&quot;nv&quot;&gt;ok&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;24   &lt;span class=&quot;nv&quot;&gt;changed&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;20   &lt;span class=&quot;nv&quot;&gt;unreachable&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;0    &lt;span class=&quot;nv&quot;&gt;failed&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;0    &lt;span class=&quot;nv&quot;&gt;skipped&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;0    &lt;span class=&quot;nv&quot;&gt;rescued&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;0    &lt;span class=&quot;nv&quot;&gt;ignored&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;0

&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; ssh vagrant@172.17.47.225 &lt;span class=&quot;nt&quot;&gt;-p&lt;/span&gt; 2222
vagrant@172.17.47.225&lt;span class=&quot;s1&quot;&gt;&apos;s password:
Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-42-generic x86_64)
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;사이트 접속 : http://&lt;a href=&quot;http://192.168.88.8/&quot;&gt;http://192.168.88.8/&lt;/a&gt;
    &lt;ul&gt;
      &lt;li&gt;vm 생성시 지정했던 IP 192.168.88.8로 웹브라우저를 통해 접속 가능&lt;/li&gt;
      &lt;li&gt;private ntework 즉 virtual host-only network로 호스트 - 게스트 vm간 통신 가능&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;img src=&quot;/assets/images/drupal.png&quot; alt=&quot;이미지&quot; /&gt;&lt;/p&gt;
</description>
        <pubDate>Sat, 05 Jun 2021 00:00:35 +0000</pubDate>
        <link>http://blg.igotoo.pw/wsl2,/vagrant,/virtualbox/2021/06/05/vagrant_with_VirtualBox_within_WSL2.html</link>
        <guid isPermaLink="true">http://blg.igotoo.pw/wsl2,/vagrant,/virtualbox/2021/06/05/vagrant_with_VirtualBox_within_WSL2.html</guid>
        
        
        <category>WSL2,</category>
        
        <category>Vagrant,</category>
        
        <category>VirtualBox</category>
        
      </item>
    
      <item>
        <title>WSL2에서 Host IP 자동으로 구하기</title>
        <description>&lt;h2 id=&quot;개요&quot;&gt;개요&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;WSL2 VM(guset)에서 Host(WIndows10) 웹서비스, SSH 접속을 하기 위해서 Host IP가 필요&lt;/li&gt;
  &lt;li&gt;노트북을 회사와 집에서 사용하고 있어 매번 Host IP를 확인하기 번거로워 shell script로 자동으로 구하는 방법 필요&lt;/li&gt;
  &lt;li&gt;nameserver IP 또는 windows 명령어 ipconfig.exe를 활용 ip를 구하고 환경변수로 저장하고 호스트 서비스 접속이 필요할때 해당 환경 변수를 사용&lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;아래 방법은 guest vm이 Linux 일경우만 가능함&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;nameserver-ip&quot;&gt;nameserver IP&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;Linux에서  WSL 시작 될 때 설정 하는DNS 서버 설정 파일의 nameserver IP을 활용&lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Window에서 어뎁터 설정(제어판\네트워크 및 인터넷\네트워크 연결)에서 보면 vEthernet (WSL) 표시 되는 어뎁터의 IP&lt;/p&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;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;cat&lt;/span&gt; /etc/resolv.conf
  &lt;span class=&quot;c&quot;&gt;# This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf:&lt;/span&gt;
  &lt;span class=&quot;c&quot;&gt;# [network]&lt;/span&gt;
  &lt;span class=&quot;c&quot;&gt;# generateResolvConf = false&lt;/span&gt;
  nameserver 192.168.61.129
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;WSL guest vm은 기본적으로 동적으로 IP 할당 받아 NAT를 통해 외부와 통신함&lt;/p&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;o&quot;&gt;&amp;gt;&lt;/span&gt; ip addr |grep eth0
  5: eth0: &amp;lt;BROADCAST,MULTICAST,UP,LOWER_UP&amp;gt; mtu 1500 qdisc mq state UP group default qlen 1000
      inet 192.168.61.130/28 brd 192.168.61.143 scope global eth0
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;/etc/resolv.conf의 nameserver 뒤의 IP를 가져와 $HOSTIP로 저장&lt;/p&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;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;HOSTIP&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;cat&lt;/span&gt; /etc/resolv.conf | &lt;span class=&quot;nb&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-oP&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;(?&amp;lt;=nameserver ).+&apos;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$HOSTIP&lt;/span&gt;
  192.168.61.129

  &lt;span class=&quot;c&quot;&gt;#perl 정규표현식이 어렵다면&lt;/span&gt;
  &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;tail&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-1&lt;/span&gt; /etc/resolv.conf | &lt;span class=&quot;nb&quot;&gt;cut&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-d&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos; &apos;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-f2&lt;/span&gt;
  192.168.61.129
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;blockquote&gt;
      &lt;ul&gt;
        &lt;li&gt;P, –perl-regexp
Interpret PATTERNS as Perl-compatible regular expressions&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/blockquote&gt;

    &lt;blockquote&gt;
      &lt;ul&gt;
        &lt;li&gt;o, –only-matching
Print only the matched (non-empty) parts of a matching line, with each such part on a separate output line.&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/blockquote&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;ipconfigexe&quot;&gt;ipconfig.exe&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;WSL에서 windows 명령어를 사용할 수 있으므로 Linux grep 명령어로 WSL IP 획득&lt;/p&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;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;HOSTIP&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;/mnt/c/Windows/System32/ipconfig.exe | &lt;span class=&quot;nb&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-A&lt;/span&gt; 10 WSL | &lt;span class=&quot;nb&quot;&gt;grep &lt;/span&gt;IPv4 | &lt;span class=&quot;nb&quot;&gt;awk&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;{print $14; exit;}&apos;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;
  ~
  &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;nv&quot;&gt;$HOSTIP&lt;/span&gt;
  192.168.61.129
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;blockquote&gt;
      &lt;p&gt;-A NUM, –after-context=NUM
  Print NUM lines of trailing context after matching lines.&lt;/p&gt;
    &lt;/blockquote&gt;

    &lt;blockquote&gt;
      &lt;p&gt;-B NUM, –before-context=NUM
            Print NUM lines of leading context before matching lines. 
  -C NUM, -NUM, –context=NUM
            Print  NUM  lines of output context.&lt;/p&gt;
    &lt;/blockquote&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;zshrc또는-bashrc&quot;&gt;.zshrc(또는 .bashrc)&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;로그인 시에 자동으로 실행 되도록 .zshrc(또는 .bashrc)에 추가&lt;/p&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;nb&quot;&gt;export &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;HOSTIP&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;cat&lt;/span&gt; /etc/resolv.conf | &lt;span class=&quot;nb&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-oP&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;(?&amp;lt;=nameserver ).+&apos;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;

  &lt;span class=&quot;nb&quot;&gt;alias &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;gokdrvstg01&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;ssh vagrant@$HOSTIP -p 60001&apos;&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;alias &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;gokdrvstg02&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;ssh vagrant@$HOSTIP -p 60002&apos;&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;alias &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;gokdrvstg03&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;ssh vagrant@$HOSTIP -p 60003&apos;&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;alias &lt;/span&gt;&lt;span class=&quot;nv&quot;&gt;gokdrvstg04&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&apos;ssh vagrant@$HOSTIP -p 60004&apos;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;참고&quot;&gt;참고&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://docs.microsoft.com/en-us/windows/wsl/compare-versions#accessing-windows-networking-apps-from-linux-host-ip&quot;&gt;Comparing WSL 1 and WSL 2&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.sysnet.pe.kr/2/0/12347&quot;&gt;WSL 2의 네트워크 통신 방법&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Wed, 26 May 2021 15:14:10 +0000</pubDate>
        <link>http://blg.igotoo.pw/wsl2,/ssh,/nameserver/2021/05/26/get_host_IP_onWSL2.html</link>
        <guid isPermaLink="true">http://blg.igotoo.pw/wsl2,/ssh,/nameserver/2021/05/26/get_host_IP_onWSL2.html</guid>
        
        
        <category>wsl2,</category>
        
        <category>ssh,</category>
        
        <category>nameserver</category>
        
      </item>
    
      <item>
        <title>GitHub 블로그 재 정비</title>
        <description>&lt;h2 id=&quot;시작&quot;&gt;시작&lt;/h2&gt;

&lt;p&gt;오랫만에 오픈소스를 활용한 프로젝트에 참여하게 되어 윈도우 터미널을 재사용하게 되면서 참고한  ‘서비큐라 기술 블로그’ 의 내용도 좋고 선호하는 디자인이라. 4년전에 몇달 쓰다가 그만둔 github 블로그를 정비하여 기술 전용 블로그로 만들기로 함(얼마나 갈지? …)&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;영감을 준 블로그 글 : &lt;a href=&quot;https://subicura.com/2016/12/31/remember-2016.html&quot;&gt;2016년 블로그 회고 (subicura.com)&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;mediator  : &lt;a href=&quot;https://github.com/dirkfabisch/mediator&quot;&gt;dirkfabisch/mediator: a medium inspired jekyll theme (github.com)&lt;/a&gt;&lt;/p&gt;

    &lt;blockquote&gt;
      &lt;p&gt;A medium inspired Jekyll blog theme. The basic idea came from the Ghost theme &lt;a href=&quot;http://www.svenread.com/readium-ghost-theme/&quot;&gt;Readium 2.0&lt;/a&gt;. I use mediator on my own blog &lt;a href=&quot;http://blog.base68.com/&quot;&gt;The Base&lt;/a&gt;.&lt;/p&gt;
    &lt;/blockquote&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;mediator 설치 환경 (windows, osx에서도 가능)&lt;/p&gt;

    &lt;ul&gt;
      &lt;li&gt;
        &lt;p&gt;wsl2  - ubuntu in Windows 10&lt;/p&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;o&quot;&gt;&amp;gt;&lt;/span&gt; lsb_release &lt;span class=&quot;nt&quot;&gt;-a&lt;/span&gt;
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.2 LTS
Release:        20.04
Codename:       focal
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;        &lt;/div&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;github-blog-생성테마변경-요약&quot;&gt;github blog 생성(테마변경) 요약&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;생성(테마 변경) 절차&lt;/p&gt;

    &lt;ol&gt;
      &lt;li&gt;mediator github fork&lt;/li&gt;
      &lt;li&gt;로컬(PC) 디렉토리에 clone&lt;/li&gt;
      &lt;li&gt;필요 gem파일 설치&lt;/li&gt;
      &lt;li&gt;jekyll 서버 실행 정상 설치 여부 점검&lt;/li&gt;
      &lt;li&gt;블로그 포스트 작성&lt;/li&gt;
      &lt;li&gt;git add &amp;gt; commit &amp;gt; push&lt;/li&gt;
      &lt;li&gt;custom domain 설정 (추후 추가)&lt;/li&gt;
    &lt;/ol&gt;

    &lt;blockquote&gt;
      &lt;ul&gt;
        &lt;li&gt;&lt;a href=&quot;https://github.com/dirkfabisch/mediator&quot;&gt;Fork this repository&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;Clone it: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git clone https://github.com/YOUR-USER/mediator&lt;/code&gt;&lt;/li&gt;
        &lt;li&gt;Install the requried gems (&lt;a href=&quot;https://github.com/github/pages-gem&quot;&gt;GitHub Pages&lt;/a&gt;, &lt;a href=&quot;https://github.com/thoughtbot/bourbon&quot;&gt;Bourbon&lt;/a&gt; and &lt;a href=&quot;https://github.com/jekyll/jekyll&quot;&gt;Jekyll&lt;/a&gt;, &lt;a href=&quot;https://github.com/jekyll/jemoji&quot;&gt;Jemoji&lt;/a&gt;): &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bundle install&lt;/code&gt;&lt;/li&gt;
        &lt;li&gt;Run the jekyll server: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;bundle exec jekyll serve&lt;/code&gt;&lt;/li&gt;
      &lt;/ul&gt;

      &lt;p&gt;You should have a server up and running locally at &lt;a href=&quot;http://localhost:4000/&quot;&gt;http://localhost:4000&lt;/a&gt;&lt;/p&gt;
    &lt;/blockquote&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;사전 준비 필요 사항 : github 가입, wsl , ubuntu 등 리눅스 배포판, git 설치&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;기존 블로그 igotoo.github.com -&amp;gt; igotoo.github.io으로 테마와 함께변경&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;fork&quot;&gt;Fork&lt;/h2&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/dirkfabisch/mediator&quot;&gt;dirkfabisch/mediator: a medium inspired jekyll theme (github.com)&lt;/a&gt; 에서 우측상단 포크 버튼 클릭&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/assets/images/image-20210519191904785.png&quot; alt=&quot;image-20210519191904785&quot; /&gt;&lt;/p&gt;

&lt;h3 id=&quot;fork-란&quot;&gt;fork 란?&lt;/h3&gt;

&lt;p&gt;남의 것을 복제해서 내것으로 만든다. 원본과 복제된 것이 연결되어 남이 업데이트 하면  내것도 업데이트 된다.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;fork는 다른 사람의 Github repository에서 내가 어떤 부분을 수정하거나 추가 기능을 넣고 싶을 때 해당 respository를 내 Github repository로 그대로 복제하는 기능이다. fork한 저장소는 원본(다른 사람의 github repository)와 연결되어 있다. 여기서 연결 되어 있다는 의미는 original repository에 어떤 변화가 생기면(새로운 commit) 이는 그대로 forked된 repository로 반영할 수 있다. 이 때 fetch나 rebase의 과정이 필요하다.&lt;/p&gt;

  &lt;p&gt;&lt;img src=&quot;/assets/images/gitfork.png&quot; alt=&quot;img&quot; /&gt;&lt;/p&gt;

  &lt;p&gt;&lt;a href=&quot;https://youtu.be/D2j0zebizdw&quot;&gt;Forking a Repository - How to Use Git and GitHub&lt;/a&gt; 내용을 참고했습니다.&lt;/p&gt;

  &lt;p&gt;출처 : &lt;a href=&quot;https://velog.io/@imacoolgirlyo/Git-fork와-clone-의-차이점-5sjuhwfzgp&quot;&gt;Git fork와 clone 의 차이점 (velog.io)&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2 id=&quot;블로그-디렉토리-생성-및--git-clone&quot;&gt;블로그 디렉토리 생성 및  git clone&lt;/h2&gt;

&lt;ul&gt;
  &lt;li&gt;git clone https://github.com/igotoo/mediator&lt;/li&gt;
&lt;/ul&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;/mnt/d/
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;mkdir &lt;/span&gt;Blog
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;cd &lt;/span&gt;Blog
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; git clone https://github.com/igotoo/mediator
Cloning into &lt;span class=&quot;s1&quot;&gt;&apos;mediator&apos;&lt;/span&gt;...
remote: Enumerating objects: 494, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
remote: Total 494 &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;delta 0&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, reused 0 &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;delta 0&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, pack-reused 494
Receiving objects: 100% &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;494/494&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, 16.48 MiB | 11.59 MiB/s, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
Resolving deltas: 100% &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;167/167&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
Updating files: 100% &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;114/114&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;필요-gems-설치&quot;&gt;필요 gems 설치&lt;/h2&gt;

&lt;h3 id=&quot;ruby-설치&quot;&gt;ruby 설치&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;sudo apt-get install ruby-full&lt;/li&gt;
&lt;/ul&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;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt-get &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;ruby-full
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;sudo&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt; password &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;igotoo:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  ...
Preparing to unpack .../3-ri_1%3a2.7+1_all.deb ...
 ...
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; ruby &lt;span class=&quot;nt&quot;&gt;-v&lt;/span&gt;
ruby 2.7.0p0 &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;2019-12-25 revision 647ee6f091&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;x86_64-linux-gnu]
/mnt/d/Blog/mediator
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;gem-update&quot;&gt;gem update&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;root 권한으로 업데이트 필요 : sudo gem update bundler&lt;/li&gt;
&lt;/ul&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;/mnt/d/Blog/mediator master 
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; gem update bundler
Updating installed gems
Updating bundler
Fetching bundler-2.2.17.gem
ERROR:  While executing gem ... &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;Gem::FilePermissionError&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
    You don&lt;span class=&quot;s1&quot;&gt;&apos;t have write permissions for the /var/lib/gems/2.7.0 directory.
&amp;gt; sudo gem update bundler
Updating installed gems
Updating bundler
Fetching bundler-2.2.17.gem
Successfully installed bundler-2.2.17
Parsing documentation for bundler-2.2.17
Installing ri documentation for bundler-2.2.17
Installing darkfish documentation for bundler-2.2.17
Done installing documentation for bundler after 3 seconds
Parsing documentation for bundler-2.2.17
Done installing documentation for bundler after 1 seconds
Gems updated: bundler
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;gemfile-설치&quot;&gt;gemfile 설치&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;설치할 라이브러리 (gemfile)
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://github.com/github/pages-gem&quot;&gt;GitHub Pages&lt;/a&gt; : A simple Ruby Gem to bootstrap dependencies for setting up and maintaining a local Jekyll environment in sync with GitHub Pages.&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://github.com/thoughtbot/bourbon&quot;&gt;Bourbon&lt;/a&gt; :   library of &lt;a href=&quot;http://sass-lang.com/&quot;&gt;Sass&lt;/a&gt; mixins and functions that are designed to make you a more efficient style sheet author.&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://github.com/jekyll/jekyll&quot;&gt;Jekyll&lt;/a&gt; : Jekyll is a simple, blog-aware, static site generator perfect for personal, project, or organization sites.&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://github.com/jekyll/jemoji&quot;&gt;Jemoji&lt;/a&gt; : GitHub-flavored Emoji plugin for Jekyll&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&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;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;cat &lt;/span&gt;Gemfile
&lt;span class=&quot;nb&quot;&gt;source&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;https://rubygems.org&apos;&lt;/span&gt;

&lt;span class=&quot;c&quot;&gt;# &apos;github-pages&apos; includes &apos;jekyll&apos; gem&lt;/span&gt;
gem &lt;span class=&quot;s1&quot;&gt;&apos;github-pages&apos;&lt;/span&gt;
gem &lt;span class=&quot;s1&quot;&gt;&apos;bourbon&apos;&lt;/span&gt;
gem &lt;span class=&quot;s1&quot;&gt;&apos;jemoji&apos;&lt;/span&gt;%
/mnt/d/Blog/mediator master                                                                                                      19:56:51
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;build-essential 설치 (기 설치시 Skip) : sudo apt-get install build-essential&lt;/p&gt;

    &lt;ul&gt;
      &lt;li&gt;
        &lt;p&gt;참고 : &lt;a href=&quot;https://stackoverflow.com/questions/33201630/install-gem-gives-failed-to-build-gem-native-extension&quot;&gt;ruby - Install gem gives “Failed to build gem native extension.” - Stack Overflow&lt;/a&gt;&lt;/p&gt;
      &lt;/li&gt;
      &lt;li&gt;
        &lt;p&gt;build-essential&lt;/p&gt;

        &lt;blockquote&gt;
          &lt;p&gt;&lt;strong&gt;build-essential&lt;/strong&gt; 은 소스코드 빌드 시 필요한 기본적인 패키지들을 다운로드 합니다.&lt;/p&gt;

          &lt;p&gt;설치 후에는 gcc, g++, make, perl 등과 각종 라이브러리들이 설치됩니다.&lt;/p&gt;

          &lt;p&gt;출처 : &lt;a href=&quot;http://linux-command.org/ko/build-essential.html&quot;&gt;build-essential (linux-command.org)&lt;/a&gt;&lt;/p&gt;
        &lt;/blockquote&gt;
      &lt;/li&gt;
    &lt;/ul&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;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;apt-get &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;build-essential
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;sudo&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;]&lt;/span&gt; password &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;igotoo:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
:
  
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;ul&gt;
      &lt;li&gt;build tool이 설치되지 않았을 경우 아래와 같은 에러 발생 할 수 있음&lt;/li&gt;
    &lt;/ul&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;Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
  
An error occurred &lt;span class=&quot;k&quot;&gt;while &lt;/span&gt;installing commonmarker &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;0.17.13&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, and Bundler cannot &lt;span class=&quot;k&quot;&gt;continue&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
Make sure that &lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt;gem &lt;span class=&quot;nb&quot;&gt;install &lt;/span&gt;commonmarker &lt;span class=&quot;nt&quot;&gt;-v&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;0.17.13&apos;&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;--source&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;https://rubygems.org/&apos;&lt;/span&gt;&lt;span class=&quot;sb&quot;&gt;`&lt;/span&gt; succeeds before bundling.
  
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;설치 : bundle install&lt;/p&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;o&quot;&gt;&amp;gt;&lt;/span&gt; bundle &lt;span class=&quot;nb&quot;&gt;install
&lt;/span&gt;Fetching gem metadata from https://rubygems.org/...........
Resolving dependencies....
Using concurrent-ruby 1.1.8
Using minitest 5.14.4
Using thread_safe 0.3.6
Using zeitwerk 2.4.2
Using public_suffix 4.0.6
Following files may not be writable, so &lt;span class=&quot;nb&quot;&gt;sudo &lt;/span&gt;is needed:
  /usr/local/bin
  /var/lib/gems/2.7.0
  /var/lib/gems/2.7.0/build_info
  /var/lib/gems/2.7.0/cache
  /var/lib/gems/2.7.0/doc
  /var/lib/gems/2.7.0/extensions
  /var/lib/gems/2.7.0/gems
  /var/lib/gems/2.7.0/specifications
Using execjs 2.8.1
Using colorator 1.1.0
Using thor 1.1.0
Using bundler 2.2.17
Using faraday-excon 1.1.0
Using faraday-net_http 1.0.1
Using faraday-net_http_persistent 1.1.0
Using forwardable-extended 2.6.0
Using ruby2_keywords 0.0.4
Using gemoji 3.0.1
Using rb-fsevent 0.11.0
Using rexml 3.2.5
Using liquid 4.0.3
Using rouge 3.26.0
Using safe_yaml 1.0.5
Using multipart-post 2.1.1
Using jekyll-paginate 1.1.0
Using rubyzip 2.3.0
Using jekyll-swiss 1.0.0
Using mercenary 0.3.6
Using i18n 0.9.5
Using unicode-display_width 1.7.0
Fetching http_parser.rb 0.6.0
Fetching eventmachine 1.2.7
Using tzinfo 1.2.9
Using bourbon 7.0.0
Using kramdown 2.3.1
Using pathutil 0.16.2
Using faraday 1.4.1
Using ruby-enum 0.9.0
Using terminal-table 1.8.0
Using activesupport 6.0.3.7
Using kramdown-parser-gfm 1.1.0
Using coffee-script-source 1.11.1
Using addressable 2.7.0
Using coffee-script 2.4.1
Using sawyer 0.8.2
Using jekyll-coffeescript 1.1.1
Using octokit 4.21.0
Fetching ffi 1.15.0
Using jekyll-gist 1.5.0
Fetching unf_ext 0.0.7.7
Fetching commonmarker 0.17.13
Fetching racc 1.5.2
  
  
Your user account isn&lt;span class=&quot;s1&quot;&gt;&apos;t allowed to install to the system RubyGems.
  You can cancel this installation and run:
  
      bundle config set --local path &apos;&lt;/span&gt;vendor/bundle&lt;span class=&quot;s1&quot;&gt;&apos;
      bundle install
  
  to install the gems into ./vendor/bundle/, or you can enter your password
  and install the bundled gems to RubyGems using sudo.
  
  Password:
Installing http_parser.rb 0.6.0 with native extensions
Installing commonmarker 0.17.13 with native extensions
Installing eventmachine 1.2.7 with native extensions
Installing unf_ext 0.0.7.7 with native extensions
Installing racc 1.5.2 with native extensions
Installing ffi 1.15.0 with native extensions
Using unf 0.1.4
Fetching simpleidn 0.2.1
Installing simpleidn 0.2.1
Fetching ethon 0.14.0
Fetching rb-inotify 0.10.1
Fetching nokogiri 1.11.4 (x86_64-linux)
Fetching dnsruby 1.61.5
Fetching em-websocket 0.5.2
Installing rb-inotify 0.10.1
Installing ethon 0.14.0
Installing em-websocket 0.5.2
Installing dnsruby 1.61.5
Fetching sass-listen 4.0.0
Fetching listen 3.5.1
Fetching typhoeus 1.4.0
Installing sass-listen 4.0.0
Installing listen 3.5.1
Installing typhoeus 1.4.0
Fetching sass 3.7.4
Fetching jekyll-watch 2.2.1
Installing nokogiri 1.11.4 (x86_64-linux)
Fetching github-pages-health-check 1.17.0
Installing jekyll-watch 2.2.1
Installing sass 3.7.4
Installing github-pages-health-check 1.17.0
Fetching jekyll-sass-converter 1.5.2
Fetching html-pipeline 2.14.0
Installing jekyll-sass-converter 1.5.2
Fetching jekyll 3.9.0
Installing html-pipeline 2.14.0
Installing jekyll 3.9.0
Fetching jekyll-feed 0.15.1
Fetching jekyll-mentions 1.6.0
Fetching jekyll-default-layout 0.1.4
Fetching jekyll-github-metadata 2.13.0
Fetching jekyll-optional-front-matter 0.3.2
Fetching jekyll-readme-index 0.3.0
Fetching jekyll-commonmark 1.3.1
Fetching jekyll-avatar 0.7.0
Installing jekyll-feed 0.15.1
Installing jekyll-commonmark 1.3.1
Installing jekyll-optional-front-matter 0.3.2
Installing jekyll-readme-index 0.3.0
Installing jekyll-default-layout 0.1.4
Installing jekyll-github-metadata 2.13.0
Installing jekyll-mentions 1.6.0
Installing jekyll-avatar 0.7.0
Fetching jekyll-redirect-from 0.16.0
Fetching jekyll-relative-links 0.6.1
Fetching jekyll-remote-theme 0.4.3
Fetching jekyll-seo-tag 2.7.1
Fetching jekyll-sitemap 1.4.0
Fetching jekyll-titles-from-headings 0.5.3
Fetching jemoji 0.12.0
Installing jekyll-redirect-from 0.16.0
Installing jekyll-relative-links 0.6.1
Installing jekyll-remote-theme 0.4.3
Fetching jekyll-commonmark-ghpages 0.1.6
Installing jekyll-seo-tag 2.7.1
Installing jekyll-titles-from-headings 0.5.3
Installing jemoji 0.12.0
Installing jekyll-sitemap 1.4.0
Installing jekyll-commonmark-ghpages 0.1.6
Fetching jekyll-theme-dinky 0.1.1
Fetching jekyll-theme-merlot 0.1.1
Fetching jekyll-theme-hacker 0.1.2
Fetching jekyll-theme-architect 0.1.1
Fetching jekyll-theme-cayman 0.1.1
Fetching jekyll-theme-leap-day 0.1.1
Fetching jekyll-theme-midnight 0.1.1
Fetching jekyll-theme-minimal 0.1.1
Installing jekyll-theme-dinky 0.1.1
Installing jekyll-theme-cayman 0.1.1
Installing jekyll-theme-hacker 0.1.2
Installing jekyll-theme-architect 0.1.1
Installing jekyll-theme-merlot 0.1.1
Fetching jekyll-theme-modernist 0.1.1
Installing jekyll-theme-minimal 0.1.1
Fetching jekyll-theme-primer 0.5.4
Fetching jekyll-theme-slate 0.1.1
Fetching jekyll-theme-tactile 0.1.1
Installing jekyll-theme-midnight 0.1.1
Installing jekyll-theme-leap-day 0.1.1
Installing jekyll-theme-modernist 0.1.1
Installing jekyll-theme-slate 0.1.1
Installing jekyll-theme-primer 0.5.4
Installing jekyll-theme-tactile 0.1.1
Fetching jekyll-theme-time-machine 0.1.1
Fetching minima 2.5.1
Installing jekyll-theme-time-machine 0.1.1
Installing minima 2.5.1
Fetching github-pages 214
Installing github-pages 214
Bundle complete! 3 Gemfile dependencies, 96 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Post-install message from dnsruby:
Installing dnsruby...
  For issues and source code: https://github.com/alexdalitz/dnsruby
  For general discussion (please tell us how you use dnsruby): https://groups.google.com/forum/#!forum/dnsruby
Post-install message from sass:
  
Ruby Sass has reached end-of-life and should no longer be used.
  
* If you use Sass as a command-line tool, we recommend using Dart Sass, the new
  primary implementation: https://sass-lang.com/install
  
* If you use Sass as a plug-in for a Ruby web framework, we recommend using the
  sassc gem: https://github.com/sass/sassc-ruby#readme
  
* For more details, please refer to the Sass blog:
  https://sass-lang.com/blog/posts/7828841
  
Post-install message from html-pipeline:
-------------------------------------------------
Thank you for installing html-pipeline!
You must bundle Filter gem dependencies.
See html-pipeline README.md for more details.
https://github.com/jch/html-pipeline#dependencies
-------------------------------------------------
/mnt/d/Blog/mediator master ?1                                                                                               46s 21:24:38
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;jekyll-server-실행&quot;&gt;jekyll server 실행&lt;/h2&gt;

&lt;h3 id=&quot;bundle-exec-jekyll-server&quot;&gt;bundle exec jekyll server&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;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; bundle &lt;span class=&quot;nb&quot;&gt;exec &lt;/span&gt;jekyll serve
Configuration file: /mnt/d/Blog/mediator/_config.yml
       Deprecation: The &lt;span class=&quot;s1&quot;&gt;&apos;gems&apos;&lt;/span&gt; configuration option has been renamed to &lt;span class=&quot;s1&quot;&gt;&apos;plugins&apos;&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt; Please update your config file accordingly.
            Source: /mnt/d/Blog/mediator
       Destination: /mnt/d/Blog/mediator/_site
 Incremental build: disabled. Enable with &lt;span class=&quot;nt&quot;&gt;--incremental&lt;/span&gt;
      Generating...
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 23&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character &lt;span class=&quot;c&quot;&gt;# in &quot;&quot; in /_layouts/post.html&lt;/span&gt;
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 23&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character &lt;span class=&quot;c&quot;&gt;# in &quot;&quot; in /_layouts/post.html&lt;/span&gt;
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 23&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character / &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; /_layouts/post.html
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 23&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character / &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; /_layouts/post.html
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 39&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character &lt;span class=&quot;c&quot;&gt;# in &quot;&quot; in /_layouts/post.html&lt;/span&gt;
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 39&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character &lt;span class=&quot;c&quot;&gt;# in &quot;&quot; in /_layouts/post.html&lt;/span&gt;
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 39&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character / &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; /_layouts/post.html
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 39&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character / &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; /_layouts/post.html
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 77&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character / &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; /_layouts/post.html
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 84&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character @ &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; /_layouts/post.html
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 23&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character &lt;span class=&quot;c&quot;&gt;# in &quot;&quot; in /_layouts/post.html&lt;/span&gt;
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 23&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character &lt;span class=&quot;c&quot;&gt;# in &quot;&quot; in /_layouts/post.html&lt;/span&gt;
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 23&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character / &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; /_layouts/post.html
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 23&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character / &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; /_layouts/post.html
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 39&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character &lt;span class=&quot;c&quot;&gt;# in &quot;&quot; in /_layouts/post.html&lt;/span&gt;
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 39&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character &lt;span class=&quot;c&quot;&gt;# in &quot;&quot; in /_layouts/post.html&lt;/span&gt;
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 39&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character / &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; /_layouts/post.html
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 39&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character / &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; /_layouts/post.html
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 77&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character / &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; /_layouts/post.html
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 84&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character @ &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; /_layouts/post.html
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 44&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character &lt;span class=&quot;c&quot;&gt;# in &quot;&quot; in index.html&lt;/span&gt;
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 44&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character &lt;span class=&quot;c&quot;&gt;# in &quot;&quot; in index.html&lt;/span&gt;
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 44&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character / &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;index.html
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 44&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character / &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;index.html
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 66&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character &lt;span class=&quot;c&quot;&gt;# in &quot;&quot; in index.html&lt;/span&gt;
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 66&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character &lt;span class=&quot;c&quot;&gt;# in &quot;&quot; in index.html&lt;/span&gt;
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 66&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character / &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;index.html
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 66&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character / &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;index.html
    Liquid Warning: Liquid syntax error &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;line 88&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;: Unexpected character &lt;span class=&quot;o&quot;&gt;!&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;index.html
                    &lt;span class=&quot;k&quot;&gt;done in &lt;/span&gt;4.994 seconds.
/var/lib/gems/2.7.0/gems/pathutil-0.16.2/lib/pathutil.rb:502: warning: Using the last argument as keyword parameters is deprecated
                    Auto-regeneration may not work on some Windows versions.
                    Please see: https://github.com/Microsoft/BashOnWindows/issues/216
                    If it does not work, please upgrade Bash on Windows or run Jekyll with &lt;span class=&quot;nt&quot;&gt;--no-watch&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
 Auto-regeneration: enabled &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;/mnt/d/Blog/mediator&apos;&lt;/span&gt;
    Server address: http://127.0.0.1:4000/
  Server running... press ctrl-c to stop.

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

&lt;p&gt;&lt;img src=&quot;/assets/images/image-20210519215454781.png&quot; alt=&quot;image-20210519215454781&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;블로그-게시하기&quot;&gt;블로그 게시하기&lt;/h2&gt;

&lt;p&gt;기존에 jeykll로 만든 블로그가 있어서 삭제후 다시 만들기로 함&lt;/p&gt;

&lt;p&gt;참고 : &lt;a href=&quot;https://velog.io/@zawook/Github-블로그-만들기-1&quot;&gt;Github 블로그 만들기 (1)&lt;/a&gt;, &lt;a href=&quot;https://velog.io/@zawook/Github-블로그-만들기-2&quot;&gt;Github 블로그 만들기 (2) (velog.io)&lt;/a&gt;&lt;/p&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;o&quot;&gt;&amp;gt;&lt;/span&gt; git init
Reinitialized existing Git repository &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; /mnt/d/Blog/mediator/.git/
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;ls&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-al&lt;/span&gt;
total 36
drwxrwxrwx 1 igotoo igotoo  512 May 19 21:49 &lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
drwxrwxrwx 1 igotoo igotoo  512 May 19 22:35 ..
drwxrwxrwx 1 igotoo igotoo  512 May 19 23:39 .git
&lt;span class=&quot;nt&quot;&gt;-rwxrwxrwx&lt;/span&gt; 1 igotoo igotoo   27 May 19 19:40 .gitignore
drwxrwxrwx 1 igotoo igotoo  512 May 19 21:49 .sass-cache
&lt;span class=&quot;nt&quot;&gt;-rwxrwxrwx&lt;/span&gt; 1 igotoo igotoo  116 May 19 19:40 Gemfile
&lt;span class=&quot;nt&quot;&gt;-rwxrwxrwx&lt;/span&gt; 1 igotoo igotoo 7483 May 19 21:24 Gemfile.lock
&lt;span class=&quot;nt&quot;&gt;-rwxrwxrwx&lt;/span&gt; 1 igotoo igotoo 1119 May 19 19:40 LICENCE
&lt;span class=&quot;nt&quot;&gt;-rwxrwxrwx&lt;/span&gt; 1 igotoo igotoo 3131 May 19 19:40 README.md
&lt;span class=&quot;nt&quot;&gt;-rwxrwxrwx&lt;/span&gt; 1 igotoo igotoo 1568 May 19 22:02 _config.yml
drwxrwxrwx 1 igotoo igotoo  512 May 19 19:40 _includes
drwxrwxrwx 1 igotoo igotoo  512 May 19 19:40 _layouts
drwxrwxrwx 1 igotoo igotoo  512 May 19 22:42 _posts
drwxrwxrwx 1 igotoo igotoo  512 May 19 19:40 _sass
drwxrwxrwx 1 igotoo igotoo  512 May 19 23:19 _site
&lt;span class=&quot;nt&quot;&gt;-rwxrwxrwx&lt;/span&gt; 1 igotoo igotoo  761 May 19 19:40 about.md
drwxrwxrwx 1 igotoo igotoo  512 May 19 19:40 assets
drwxrwxrwx 1 igotoo igotoo  512 May 19 19:40 css
&lt;span class=&quot;nt&quot;&gt;-rwxrwxrwx&lt;/span&gt; 1 igotoo igotoo 1150 May 19 19:40 favicon.ico
&lt;span class=&quot;nt&quot;&gt;-rwxrwxrwx&lt;/span&gt; 1 igotoo igotoo 1292 May 19 19:40 feed.xml
&lt;span class=&quot;nt&quot;&gt;-rwxrwxrwx&lt;/span&gt; 1 igotoo igotoo 4065 May 19 19:40 index.html

&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; git commit &lt;span class=&quot;nt&quot;&gt;-m&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;first commit&quot;&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;***&lt;/span&gt; Please tell me &lt;span class=&quot;nb&quot;&gt;who &lt;/span&gt;you are.

Run

  git config &lt;span class=&quot;nt&quot;&gt;--global&lt;/span&gt; user.email &lt;span class=&quot;s2&quot;&gt;&quot;you@example.com&quot;&lt;/span&gt;
  git config &lt;span class=&quot;nt&quot;&gt;--global&lt;/span&gt; user.name &lt;span class=&quot;s2&quot;&gt;&quot;Your Name&quot;&lt;/span&gt;

to &lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;your account&lt;span class=&quot;s1&quot;&gt;&apos;s default identity.
Omit --global to set the identity only in this repository.

fatal: empty ident name (for &amp;lt;igotoo@jb-won001.samsungsds-ad.net&amp;gt;) not allowed
&amp;gt; git config --global user.email &quot;igotoo@gmail.com&quot;
&amp;gt; git config --global user.name &quot;igotoo&quot;
&amp;gt; git commit -m &quot;first commit&quot;
On branch master
Your branch is up to date with &apos;&lt;/span&gt;origin/master&lt;span class=&quot;s1&quot;&gt;&apos;.

Changes not staged for commit:
  (use &quot;git add/rm &amp;lt;file&amp;gt;...&quot; to update what will be committed)
  (use &quot;git restore &amp;lt;file&amp;gt;...&quot; to discard changes in working directory)
        modified:   _config.yml
        deleted:    _posts/2014-08-29-welcome-to-jekyll.markdown
        modified:   assets/images/author.jpg

Untracked files:
  (use &quot;git add &amp;lt;file&amp;gt;...&quot; to include in what will be committed)
        Gemfile.lock
        _posts/2017-03-19-sublimetext-setting.md
        _posts/2017-03-24-ST3-Markdown-install.md
        _posts/2017-03-26-RasberryPi-Rasbrian-intall.md
        _posts/2017-03-28-Vagrant1.md
        _posts/2017-04-14-AtomEditor1.md
        _posts/2017-04-15-MakigTorrentbot-1.md
        _posts/2017-04-15-githubblooging-1.md

no changes added to commit (use &quot;git add&quot; and/or &quot;git commit -a&quot;)
&amp;gt; git branch -M main
&amp;gt; git remote add origin https://github.com/igotoo/igotoo.github.io.git
fatal: remote origin already exists.
&amp;gt; git remote remove origin
&amp;gt; git remote add origin https://github.com/igotoo/igotoo.github.io.git
&amp;gt; git push -u origin main
Username for &apos;&lt;/span&gt;https://github.com&lt;span class=&quot;s1&quot;&gt;&apos;: igotoo@gmail.com
Password for &apos;&lt;/span&gt;https://igotoo@gmail.com@github.com&lt;span class=&quot;s1&quot;&gt;&apos;:
Enumerating objects: 494, done.
Counting objects: 100% (494/494), done.
Delta compression using up to 8 threads
Compressing objects: 100% (321/321), done.
Writing objects: 100% (494/494), 16.48 MiB | 5.16 MiB/s, done.
Total 494 (delta 167), reused 494 (delta 167)
remote: Resolving deltas: 100% (167/167), done.
To https://github.com/igotoo/igotoo.github.io.git
 * [new branch]      main -&amp;gt; main
Branch &apos;&lt;/span&gt;main&lt;span class=&quot;s1&quot;&gt;&apos; set up to track remote branch &apos;&lt;/span&gt;main&lt;span class=&quot;s1&quot;&gt;&apos; from &apos;&lt;/span&gt;origin&lt;span class=&quot;s1&quot;&gt;&apos;.
/mnt/d/Blog/mediator main !3 ?8                                                                                              32s 23:46:12
&amp;gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;클론 이후 변경된 페이지 반영 안되어  post add 후 다시 시도&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Changes not staged for commit:
  (use “git add/rm &lt;file&gt;...&quot; to update what will be committed)&lt;/file&gt;&lt;/p&gt;
&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;&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; git add _posts/&lt;span class=&quot;k&quot;&gt;*&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; git commit &lt;span class=&quot;nt&quot;&gt;-m&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;second commit&quot;&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;main 1c1f115] second commit
 7 files changed, 665 insertions&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;+&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
 create mode 100644 _posts/2017-03-19-sublimetext-setting.md
 create mode 100644 _posts/2017-03-24-ST3-Markdown-install.md
 create mode 100644 _posts/2017-03-26-RasberryPi-Rasbrian-intall.md
 create mode 100644 _posts/2017-03-28-Vagrant1.md
 create mode 100644 _posts/2017-04-14-AtomEditor1.md
 create mode 100644 _posts/2017-04-15-MakigTorrentbot-1.md
 create mode 100644 _posts/2017-04-15-githubblooging-1.md
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; git push &lt;span class=&quot;nt&quot;&gt;-u&lt;/span&gt; origin main
Username &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;https://github.com&apos;&lt;/span&gt;: igotoo@gmail.com
Password &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;https://igotoo@gmail.com@github.com&apos;&lt;/span&gt;:
Enumerating objects: 12, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
Counting objects: 100% &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;12/12&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
Delta compression using up to 8 threads
Compressing objects: 100% &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;10/10&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
Writing objects: 100% &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;10/10&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, 17.34 KiB | 443.00 KiB/s, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
Total 10 &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;delta 1&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, reused 0 &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;delta 0&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
remote: Resolving deltas: 100% &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;1/1&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, completed with 1 &lt;span class=&quot;nb&quot;&gt;local &lt;/span&gt;object.
To https://github.com/igotoo/igotoo.github.io.git
   9a916a5..1c1f115  main -&amp;gt; main
Branch &lt;span class=&quot;s1&quot;&gt;&apos;main&apos;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;up to track remote branch &lt;span class=&quot;s1&quot;&gt;&apos;main&apos;&lt;/span&gt; from &lt;span class=&quot;s1&quot;&gt;&apos;origin&apos;&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
/mnt/d/Blog/mediator main &lt;span class=&quot;o&quot;&gt;!&lt;/span&gt;3 ?1                                                                                              16s 23:51:58
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;구블로그에서 옮겨온 post 들은 github에 올라 갔으나 …  블로그 예전거 그대로 임 이를 어찌 변경하나…&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;예전 블로그&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;img src=&quot;/assets/images/image-20210520000148451.png&quot; alt=&quot;image-20210520000148451&quot; /&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;예전 블로그 삭제후 404 Not Found Error 발생
    &lt;ul&gt;
      &lt;li&gt;
        &lt;p&gt;원인 : 페이지 소스가 None으로 되어 있었음&lt;/p&gt;

        &lt;p&gt;&lt;img src=&quot;/assets/images/image-20210520002914315.png&quot; alt=&quot;image-20210520002914315&quot; /&gt;&lt;/p&gt;
      &lt;/li&gt;
      &lt;li&gt;
        &lt;p&gt;None 을 Main으로 변경 후 정상적으로 보임&lt;/p&gt;

        &lt;p&gt;&lt;img src=&quot;/assets/images/image-20210520003005822.png&quot; alt=&quot;image-20210520003005822&quot; /&gt;&lt;/p&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;custom-domain-설정&quot;&gt;Custom domain 설정&lt;/h2&gt;

&lt;p&gt;​	참고 : &lt;a href=&quot;https://blog.chulgil.me/how-to-make-blog-using-github-3/&quot;&gt;블로그 만들기 GitHub 심화 3편 - 커스텀 도메인 (chulgil.me)&lt;/a&gt;, &lt;a href=&quot;https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site&quot;&gt;Configuring a custom domain for your GitHub Pages site - GitHub Docs&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;github에서 custom domain를 설정할 수 있는 2가지 (subdomain, apex domain) 중 간단하고 github에서 추천하는 subdomain 방법중 custom subdomain을 적용&lt;/p&gt;

    &lt;table&gt;
      &lt;thead&gt;
        &lt;tr&gt;
          &lt;th style=&quot;text-align: left&quot;&gt;Supported custom domain type&lt;/th&gt;
          &lt;th style=&quot;text-align: left&quot;&gt;Example&lt;/th&gt;
        &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
        &lt;tr&gt;
          &lt;td style=&quot;text-align: left&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;www&lt;/code&gt; subdomain&lt;/td&gt;
          &lt;td style=&quot;text-align: left&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;www.example.com&lt;/code&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
          &lt;td style=&quot;text-align: left&quot;&gt;Custom subdomain&lt;/td&gt;
          &lt;td style=&quot;text-align: left&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;blog.example.com&lt;/code&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
          &lt;td style=&quot;text-align: left&quot;&gt;Apex domain&lt;/td&gt;
          &lt;td style=&quot;text-align: left&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;example.com&lt;/code&gt;&lt;/td&gt;
        &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;

    &lt;blockquote&gt;
      &lt;p&gt;We recommend always using a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;www&lt;/code&gt; subdomain, even if you also use an apex domain. When you create a new site with an apex domain, we automatically attempt to secure the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;www&lt;/code&gt; subdomain for use when serving your site’s content. If you configure a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;www&lt;/code&gt; subdomain, we automatically attempt to secure the associated apex domain.&lt;/p&gt;

      &lt;h3 id=&quot;using-a-subdomain-for-your-github-pages-site&quot;&gt;&lt;a href=&quot;https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages#using-a-subdomain-for-your-github-pages-site&quot;&gt;Using a subdomain for your GitHub Pages site&lt;/a&gt;&lt;/h3&gt;

      &lt;p&gt;A subdomain is the part of a URL before the root domain. You can configure your subdomain as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;www&lt;/code&gt; or as a distinct section of your site, like &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;blog.example.com&lt;/code&gt;.&lt;/p&gt;

      &lt;p&gt;Subdomains are configured with a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;CNAME&lt;/code&gt; record through your DNS provider.&lt;/p&gt;

      &lt;h4 id=&quot;www-subdomains&quot;&gt;&lt;a href=&quot;https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages#www-subdomains&quot;&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;www&lt;/code&gt; subdomains&lt;/a&gt;&lt;/h4&gt;

      &lt;p&gt;A &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;www&lt;/code&gt; subdomain is the most commonly used type of subdomain. For example, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;www.example.com&lt;/code&gt; includes a &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;www&lt;/code&gt; subdomain.&lt;/p&gt;

      &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;www&lt;/code&gt; subdomains are the most stable type of custom domain because &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;www&lt;/code&gt; subdomains are not affected by changes to the IP addresses of GitHub’s servers.&lt;/p&gt;

      &lt;h4 id=&quot;custom-subdomains&quot;&gt;&lt;a href=&quot;https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages#custom-subdomains&quot;&gt;Custom subdomains&lt;/a&gt;&lt;/h4&gt;

      &lt;p&gt;A custom subdomain is a type of subdomain that doesn’t use the standard &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;www&lt;/code&gt; variant. Custom subdomains are mostly used when you want two distinct sections of your site. For example, you can create a site called &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;blog.example.com&lt;/code&gt; and customize that section independently from &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;www.example.com&lt;/code&gt;.&lt;/p&gt;

      &lt;h3 id=&quot;using-an-apex-domain-for-your-github-pages-site&quot;&gt;&lt;a href=&quot;https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/about-custom-domains-and-github-pages#using-an-apex-domain-for-your-github-pages-site&quot;&gt;Using an apex domain for your GitHub Pages site&lt;/a&gt;&lt;/h3&gt;

      &lt;p&gt;An apex domain is a custom domain that does not contain a subdomain, such as &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;example.com&lt;/code&gt;. Apex domains are also known as base, bare, naked, root apex, or zone apex domains.&lt;/p&gt;

      &lt;p&gt;An apex domain is configured with an &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;A&lt;/code&gt;, &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ALIAS&lt;/code&gt;, or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ANAME&lt;/code&gt; record through your DNS provider.&lt;/p&gt;
    &lt;/blockquote&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;구글 도메인에서 cname 설정&lt;/p&gt;

    &lt;ul&gt;
      &lt;li&gt;blg.igoto.pw 가 igotoo.github.io로 리다이렉트 할 수 있도록 도메인 별명 즉 cname을 설정&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;img src=&quot;/assets/images/image-20210522220538951.png&quot; alt=&quot;image-20210522220538951&quot; /&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Github pages  Custom domain 설정&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;img src=&quot;/assets/images/image-20210522220312683.png&quot; alt=&quot;image-20210522220312683&quot; /&gt;&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;DNS 정보 확인&lt;/li&gt;
&lt;/ul&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;o&quot;&gt;&amp;gt;&lt;/span&gt; dig blg.igotoo.pw +nostats +nocomments +nocmd
&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;blg.igotoo.pw.                 IN      A
blg.igotoo.pw.          0       IN      CNAME   igotoo.github.io.
igotoo.github.io.       0       IN      A       185.199.110.153
igotoo.github.io.       0       IN      A       185.199.108.153
igotoo.github.io.       0       IN      A       185.199.111.153
igotoo.github.io.       0       IN      A       185.199.109.153
dns1.p05.nsone.net.     0       IN      A       198.51.44.5
dns2.p05.nsone.net.     0       IN      A       198.51.45.5
dns3.p05.nsone.net.     0       IN      A       198.51.44.69
dns4.p05.nsone.net.     0       IN      A       198.51.45.69
ns-393.awsdns-49.com.   0       IN      A       205.251.193.137
ns-692.awsdns-22.net.   0       IN      A       205.251.194.180
ns-1339.awsdns-39.org.  0       IN      A       205.251.197.59
ns-1622.awsdns-10.co.uk. 0      IN      A       205.251.198.86
dns1.p05.nsone.net.     0       IN      AAAA    2620:4d:4000:6259:7:5:0:1
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;git pull&lt;/p&gt;

    &lt;blockquote&gt;
      &lt;p&gt;If you use a static site generator to build your site locally and push the generated files to GitHub, pull the commit that added the &lt;em&gt;CNAME&lt;/em&gt; file to your local repository.&lt;/p&gt;
    &lt;/blockquote&gt;

    &lt;ul&gt;
      &lt;li&gt;
        &lt;p&gt;custom domain 생성시 github에서 자동으로 CNAME 파일을 생성하고 commit을 하므로 로컬 PC에 변경 사항을 적용하기 위해 필요&lt;/p&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;o&quot;&gt;&amp;gt;&lt;/span&gt; git pull
remote: Enumerating objects: 8, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
remote: Counting objects: 100% &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;8/8&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
remote: Compressing objects: 100% &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;5/5&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
remote: Total 7 &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;delta 2&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, reused 0 &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;delta 0&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, pack-reused 0
Unpacking objects: 100% &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;7/7&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, 644 bytes | 7.00 KiB/s, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
From https://github.com/igotoo/igotoo.github.io
   1dd236d..3e6334a  main       -&amp;gt; origin/main
Updating 1dd236d..3e6334a
Fast-forward
 CNAME | 1 +
 1 file changed, 1 insertion&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;+&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
 create mode 100644 CNAME
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;        &lt;/div&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

</description>
        <pubDate>Wed, 19 May 2021 15:14:10 +0000</pubDate>
        <link>http://blg.igotoo.pw/jekyll,/github/2021/05/19/renewal_githubblog_with_mediator.html</link>
        <guid isPermaLink="true">http://blg.igotoo.pw/jekyll,/github/2021/05/19/renewal_githubblog_with_mediator.html</guid>
        
        
        <category>jekyll,</category>
        
        <category>github</category>
        
      </item>
    
      <item>
        <title>github 접속을 https에서 ssh 접속으로 변경하기</title>
        <description>&lt;h2 id=&quot;key-생성&quot;&gt;Key 생성&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;개인키(private key)와 공인키(public key) 생성&lt;/li&gt;
  &lt;li&gt;ssh-keygen -t ed25519 -C “github 로그인 메일 아이디”
    &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;o&quot;&gt;&amp;gt;&lt;/span&gt; ssh-keygen &lt;span class=&quot;nt&quot;&gt;-t&lt;/span&gt; ed25519 &lt;span class=&quot;nt&quot;&gt;-C&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;igotoo@gmail.com&quot;&lt;/span&gt;
Generating public/private ed25519 key pair.
Enter file &lt;span class=&quot;k&quot;&gt;in &lt;/span&gt;which to save the key &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;/home/igotoo/.ssh/id_ed25519&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;:
Enter passphrase &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;empty &lt;span class=&quot;k&quot;&gt;for &lt;/span&gt;no passphrase&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;:
Enter same passphrase again:
Your identification has been saved &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; /home/igotoo/.ssh/id_ed25519
Your public key has been saved &lt;span class=&quot;k&quot;&gt;in&lt;/span&gt; /home/igotoo/.ssh/id_ed25519.pub
The key fingerprint is:
SHA256:c62zCE0hCHtsdfsdfgSvvXsb91edsfskYnLOuhh/GcNc igotoo@gmail.com
The key&lt;span class=&quot;s1&quot;&gt;&apos;s randomart image is:
+--[ED25519 256]--+
|  . . .. o.o..   |
|   * o. . o .    |
|  + +..o.  .     |
|   +  +.....  .  |
|  .  .  S+.... E |
|       o o=oo.. o|
|      . ..+++=..o|
|       . oo*. *..|
drwxr-xr-x 14 igotoo igotoo 4096 May 23 19:08 ..
-rw-r--r--  1 igotoo igotoo  141 May 23 18:01 config
-r--------  1 igotoo igotoo 1675 May 23 17:30 gblg3_id_rsa
-rw-------  1 igotoo igotoo  411 May 23 19:08 id_ed25519
-rw-r--r--  1 igotoo igotoo   98 May 23 19:08 id_ed25519.pub
-r--------  1 igotoo igotoo 3354 May 21 18:34 id_rsa.bak
-r--------  1 igotoo igotoo 1679 May 21 18:35 kdrvstg_id_rsa
-rw-r--r--  1 igotoo igotoo 3108 May 23 17:28 known_hosts
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;개인-key-ssh-agent-에-등록&quot;&gt;개인 key ssh-agent 에 등록&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;ssh-agent
    &lt;ul&gt;
      &lt;li&gt;공개키 인증을 위한 개인키를 보관하는 프로그램으로 다른 서버를 로그인시 인증에 사용된다.&lt;/li&gt;
      &lt;li&gt;공개키는 접속하려는 서버에 저장되어 있어야 한다.(이경우 github 서버)&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;등록하는 이유
    &lt;ul&gt;
      &lt;li&gt;github 접속시 git 프로그램이 ssh-agent에 등록되어 있는 개인키 정보를 이용하여  자동 ssh 인증처리로 id/passwd 입력 불필요&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;등록방법
    &lt;ul&gt;
      &lt;li&gt;ssh-agent 백그라운드 실행 : eval “$(ssh-agent -s)”&lt;/li&gt;
      &lt;li&gt;ssh-add로 개인키 등록 : ssh-add ~/.ssh/개인키파일명
        &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;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;eval&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;ssh-agent &lt;span class=&quot;nt&quot;&gt;-s&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
Agent pid 611
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; ssh-add ~/.ssh/id_ed25519
Identity added: /home/igotoo/.ssh/id_ed25519 &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;igotoo@gmail.com&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;        &lt;/div&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;ssh-agent를 eval로 실행 시키는 이유
    &lt;ul&gt;
      &lt;li&gt;eval는 명령
        &lt;blockquote&gt;
          &lt;p&gt;&lt;a href=&quot;https://mug896.github.io/bash-shell/exp_and_sub/command_substitution.html&quot;&gt;명령 치환&lt;/a&gt; 결과로 shell 에서 실행 가능한 명령문이 나온다면 그 명령은 기본적으로 실행이 가능합니다. 하지만 명령문이 조금 복잡해져서 파이프나 redirections, quotes 등이 사용된다면 이제는 그 명령문은 실행할 수 없게 됩니다. 왜냐하면 명령문에서 사용되는 shell 키워드, 메타문자들, quotes 등은 &lt;a href=&quot;https://mug896.github.io/bash-shell/expansions_and_substitutions.html&quot;&gt;확장과 치환&lt;/a&gt; 이전에 해석이 완료되기 때문입니다. 따라서 이와 같은 경우에도 실행이 가능하게 해주는 명령이 eval 명령입니다. eval 은 인수로 주어지는 스트링을 한번 evaluation 한 후에 결과를 다시 명령문으로 실행합니다.&lt;/p&gt;

          &lt;table&gt;
            &lt;tbody&gt;
              &lt;tr&gt;
                &lt;td&gt;출처 : [eval&lt;/td&gt;
                &lt;td&gt;Introduction (mug896.github.io)](https://mug896.github.io/bash-shell/eval.html)&lt;/td&gt;
              &lt;/tr&gt;
            &lt;/tbody&gt;
          &lt;/table&gt;
        &lt;/blockquote&gt;
      &lt;/li&gt;
      &lt;li&gt;다음과 같이 ssh-agent를 실행하는 경우 환경변수를 셋팅하고 백그라운드로 실행되어야 하는데 eval를 사용하는 경우 명령문에서 먼저 해석이 되어 환경 변수가 셋팅 되지 않는다.
        &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;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;env&lt;/span&gt; | &lt;span class=&quot;nb&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-i&lt;/span&gt; SSH
&lt;span class=&quot;nv&quot;&gt;SSH_AUTH_SOCK&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;SSH_AGENT_PID&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; ssh-agent &lt;span class=&quot;nt&quot;&gt;-s&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;SSH_AUTH_SOCK&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;/tmp/ssh-4sIsqE1flEg0/agent.1456&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;SSH_AUTH_SOCK&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;SSH_AGENT_PID&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;1457&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;export &lt;/span&gt;SSH_AGENT_PID&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;nb&quot;&gt;echo &lt;/span&gt;Agent pid 1457&lt;span class=&quot;p&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;env&lt;/span&gt; | &lt;span class=&quot;nb&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-i&lt;/span&gt; SSH
&lt;span class=&quot;nv&quot;&gt;SSH_AUTH_SOCK&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;
&lt;span class=&quot;nv&quot;&gt;SSH_AGENT_PID&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;eval&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;$(&lt;/span&gt;ssh-agent &lt;span class=&quot;nt&quot;&gt;-s&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&quot;&lt;/span&gt;
Agent pid 1469
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;env&lt;/span&gt; | &lt;span class=&quot;nb&quot;&gt;grep&lt;/span&gt; &lt;span class=&quot;nt&quot;&gt;-i&lt;/span&gt; SSH
&lt;span class=&quot;nv&quot;&gt;SSH_AUTH_SOCK&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;/tmp/ssh-5vZqJr5zfN7B/agent.1468
&lt;span class=&quot;nv&quot;&gt;SSH_AGENT_PID&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;1469
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;        &lt;/div&gt;
        &lt;h2 id=&quot;github-등록&quot;&gt;github 등록&lt;/h2&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;개인 페이지 설정에서 공개키 (id_ed25519.pub)을 복사 붙여넣기로 등록&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;img src=&quot;/assets/images/ximage-20210523193547902.png&quot; alt=&quot;image-20210523193547902&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;remote-origin-github-서버-변경&quot;&gt;remote origin (github 서버) 변경&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;https://github.com/igotoo/igotoo.github.io.git 에서 git@github.com:사용자id/사용자 레파지토리 명으로 변경
    &lt;ul&gt;
      &lt;li&gt;기존 remote origin 삭제&lt;/li&gt;
      &lt;li&gt;ssh 접속 정보로 remote orgin 등록&lt;/li&gt;
      &lt;li&gt;remote origin main 을 upstream으로 설정&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&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;o&quot;&gt;&amp;gt;&lt;/span&gt; git push
Username &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;https://github.com&apos;&lt;/span&gt;: igotoo@gmail.com
Password &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;https://igotoo@gmail.com@github.com&apos;&lt;/span&gt;:
remote: Invalid username or password.
fatal: Authentication failed &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;s1&quot;&gt;&apos;https://github.com/igotoo/igotoo.github.io.git/&apos;&lt;/span&gt;

&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; git remote remove origin
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; git remote add origin git@github.com:igotoo/igotoo.github.io.git

&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; git push
fatal: The current branch main has no upstream branch.
To push the current branch and &lt;span class=&quot;nb&quot;&gt;set &lt;/span&gt;the remote as upstream, use

    git push &lt;span class=&quot;nt&quot;&gt;--set-upstream&lt;/span&gt; origin main

&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; git push &lt;span class=&quot;nt&quot;&gt;--set-upstream&lt;/span&gt; origin main
The authenticity of host &lt;span class=&quot;s1&quot;&gt;&apos;github.com (15.164.81.167)&apos;&lt;/span&gt; can&lt;span class=&quot;s1&quot;&gt;&apos;t be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added &apos;&lt;/span&gt;github.com,15.164.81.167&lt;span class=&quot;s1&quot;&gt;&apos; (RSA) to the list of known hosts.
Enumerating objects: 17, done.
Counting objects: 100% (17/17), done.
Delta compression using up to 8 threads
Compressing objects: 100% (14/14), done.
Writing objects: 100% (14/14), 3.24 MiB | 2.01 MiB/s, done.
Total 14 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To github.com:igotoo/igotoo.github.io.git
   feb878a..83dabb5  main -&amp;gt; main
Branch &apos;&lt;/span&gt;main&lt;span class=&quot;s1&quot;&gt;&apos; set up to track remote branch &apos;&lt;/span&gt;main&lt;span class=&quot;s1&quot;&gt;&apos; from &apos;&lt;/span&gt;origin&lt;span class=&quot;s1&quot;&gt;&apos;.

&amp;gt; git push
Warning: Permanently added the RSA host key for IP address &apos;&lt;/span&gt;52.78.231.108&lt;span class=&quot;s1&quot;&gt;&apos; to the list of known hosts.
Everything up-to-date
/mnt/d/Blog/mediator main
&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;ul&gt;
  &lt;li&gt;ssh-agent  및 ~/.ssh/config 파일 역할 검증&lt;/li&gt;
&lt;/ul&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;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;github login test2&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt; test.txt
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; git add test.txt
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; git commit &lt;span class=&quot;nt&quot;&gt;-m&lt;/span&gt; &lt;span class=&quot;s2&quot;&gt;&quot;github login test2 /w ssh&quot;&lt;/span&gt;
&lt;span class=&quot;o&quot;&gt;[&lt;/span&gt;main 346a1d4] github login test2 /w ssh
 1 file changed, 1 insertion&lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;+&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
 
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; ps &lt;span class=&quot;nt&quot;&gt;-ef&lt;/span&gt;|grep ssh-agent
igotoo     886   271  0 19:21 pts/2    00:00:00 man ssh-agent

&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;cat&lt;/span&gt; ~/.ssh/config
&lt;span class=&quot;c&quot;&gt;#Host github.com&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;#       User git&lt;/span&gt;
&lt;span class=&quot;c&quot;&gt;#       IdentityFile ~/.ssh/id_ed25519&lt;/span&gt;
Host gblg3.igotoo.pw
        User igotoo
        Port 22014
        IdentityFile ~/.ssh/gblg3_id_rsa
&lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; git push
Enumerating objects: 5, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
Counting objects: 100% &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;5/5&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
Delta compression using up to 8 threads
Compressing objects: 100% &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;2/2&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
Writing objects: 100% &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;3/3&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, 280 bytes | 17.00 KiB/s, &lt;span class=&quot;k&quot;&gt;done&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;.&lt;/span&gt;
Total 3 &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;delta 1&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, reused 0 &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;delta 0&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;
remote: Resolving deltas: 100% &lt;span class=&quot;o&quot;&gt;(&lt;/span&gt;1/1&lt;span class=&quot;o&quot;&gt;)&lt;/span&gt;, completed with 1 &lt;span class=&quot;nb&quot;&gt;local &lt;/span&gt;object.
To github.com:igotoo/igotoo.github.io.git
   f1dce52..346a1d4  main -&amp;gt; main
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;ul&gt;
  &lt;li&gt;ssh-agent 실행 필요 여부  :  실행 필요없음, git push/pull 등 github 접속이 필요할 경우 ssh-agent 자동 실행하는 것을 추정됨&lt;/li&gt;
  &lt;li&gt;~/.ssh/config 사용 여부  : 설정파일이 없어도 ssh-agent에 github에 접속 정보 즉 개인키를 등록해 놓았으므로 별도 설정은 불필요&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id=&quot;wrap-up&quot;&gt;WRAP UP&lt;/h2&gt;
&lt;ul&gt;
  &lt;li&gt;github 접속을 https에서 ssh접속으로 변경하여 매번 ip/pwd 입력 불필요&lt;/li&gt;
  &lt;li&gt;개인키를 등록한 ssh-agent가 실행시 설정하는 환경변수를(pid, sock) 이용 다른 서버 접속시 자동으로 공개키 인증&lt;/li&gt;
  &lt;li&gt;다른 방법으로는 사용자 ssh 설정파일 (~/.ssh/config)에 호스트명(예 : giithub.com) , 개인키 파일 정보(id_ed25519)와 사용자 이름 정보를 등록하여 자동 인증 가능&lt;/li&gt;
  &lt;li&gt;참고 :
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh&quot;&gt;Connecting to GitHub with SSH - GitHub Docs&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://mygumi.tistory.com/96&quot;&gt;Github 다수 계정을 위한 SSH key 설정 :: 마이구미 :: 마이구미의 HelloWorld (tistory.com)&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://devlog.jwgo.kr/2018/08/17/how-to-use-multi-github-accounts-with-a-machine/&quot;&gt;한 대의 맥에서 여러 개의 깃허브(github) 계정 사용하는 방법 · Tonic (jwgo.kr)&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://opentutorials.org/module/432/3742&quot;&gt;SSH Key - 비밀번호 없이 로그인 - 원격제어 (opentutorials.org)&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

</description>
        <pubDate>Wed, 19 May 2021 15:14:10 +0000</pubDate>
        <link>http://blg.igotoo.pw/rsa,/github,/ssh,/ssh-agent/2021/05/19/conect-gihub-with-ssh.html</link>
        <guid isPermaLink="true">http://blg.igotoo.pw/rsa,/github,/ssh,/ssh-agent/2021/05/19/conect-gihub-with-ssh.html</guid>
        
        
        <category>rsa,</category>
        
        <category>github,</category>
        
        <category>ssh,</category>
        
        <category>ssh-agent</category>
        
      </item>
    
      <item>
        <title>텔레그램 봇으로 토렌트 자동 다운로드</title>
        <description>&lt;h3 id=&quot;프롤로그&quot;&gt;프롤로그&lt;/h3&gt;
&lt;p&gt;라즈베리파이를 어디에 쓸데가 없을까 고민하다가 봇에 대하 잡담중에 우연히 떠오른 아이디어(?) 웹크롤링, 토렌트 서버 등을 이용해서 토렌트를 찾아서 자동으로 다운로드해주는 봇을 만들어보자로 시작.
그러나 이런거 있을까 하고 구글링(&lt;a href=&quot;https://www.google.co.kr/search?q=토렌트+봇&amp;amp;gws_rd=cr&amp;amp;ei=EKrxWN7_H8On8QWEhpiYDA&quot;&gt;토렌트 봇으로 구글링&lt;/a&gt;) 하면 웬만한건 다있다는 말을 새삼 깨달음. telegram Bot API를 이용 토렌트를 자동으로 다운받은 여러 프로그램들을 이미 존재하고 github에도 공개되어 있었음. 그것도 2016년에 유행
그래도 해보면 재미있을거 같아 시작.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;[참고 사이트]&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;가장 기본이 된 연결고리 사이트 &lt;a href=&quot;https://redreamer.wordpress.com/2016/01/03/telebot을-이용한-원격-토렌트-다운로드-시스템/&quot;&gt;Telebot을 이용한 원격 토렌트 다운로드 시스템&lt;/a&gt; - redreamer님 감사합니다.&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://github.com/seungjuchoi/telegram-control-torrent&quot;&gt;telebot을 이용한 원격 토렌트 다운로드 시스템-github&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;telegram torrent bot 프레임웍 github &lt;a href=&quot;https://github.com/nickoala/telepot#telepot---python-framework-for-telegram-bot-api&quot;&gt;telepot - Python framework for Telegram Bot API&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;꼼꼼히 너무 잘 설명되어 있어 몇번씩 읽은 &lt;a href=&quot;https://www.howtogeek.com/142044/how-to-turn-a-raspberry-pi-into-an-always-on-bittorrent-box/&quot;&gt;How to Turn a Raspberry Pi into an Always-On BitTorrent Box&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://core.telegram.org/bots&quot;&gt;Bots: An introduction for developers&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;redreamer님 블로그 &lt;a href=&quot;https://redreamer.wordpress.com/2016/01/03/telebot을-이용한-원격-토렌트-다운로드-시스템/&quot;&gt;Telebot을 이용한 원격 토렌트 다운로드 시스템&lt;/a&gt;와 HTG의 &lt;a href=&quot;https://www.howtogeek.com/142044/how-to-turn-a-raspberry-pi-into-an-always-on-bittorrent-box/&quot;&gt;How to Turn a Raspberry Pi into an Always-On BitTorrent Box&lt;/a&gt;을 기반으로 정리함. 작업하면서 동시에 정리하는 게 제일 좋을거 같은데 동시에는 마음이 급해서인지 어려움이 많다. 개요파악 - 관련 지식 습득 - 계획(시나리오) - 작업 - test - 정리 가장 좋은 절차라고 생각하나 늘 이상과 현실은 다름.&lt;/p&gt;

&lt;h3 id=&quot;1-라즈베리파이-토렌트-환경-구성&quot;&gt;1. 라즈베리파이 토렌트 환경 구성&lt;/h3&gt;
&lt;h4 id=&quot;라즈베리-설치-및-구성&quot;&gt;라즈베리 설치 및 구성&lt;/h4&gt;
&lt;ul&gt;
  &lt;li&gt;기존에 설치하여 활용중인 라즈베리 파이가 있으므로 기본 구성 및 ssh 설정, 한글화 설정 등은 생략&lt;/li&gt;
  &lt;li&gt;본 블로그 &lt;a href=&quot;https://igotoo.github.io/rasberry/pi/2017/03/26/RasberryPi-Rasbrian-intall.html&quot;&gt;라즈베리언 재설치&lt;/a&gt; 참고&lt;/li&gt;
  &lt;li&gt;HTG(&lt;a href=&quot;https://www.howtogeek.com/&quot;&gt;How-To Geek&lt;/a&gt;) 참고
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://www.howtogeek.com/138281/the-htg-guide-to-getting-started-with-raspberry-pi/&quot;&gt;Everything You Need to Know About Getting Started with the Raspberry Pi&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://www.howtogeek.com/141157/how-to-configure-your-raspberry-pi-for-remote-shell-desktop-and-file-transfer/&quot;&gt;How to Configure Your Raspberry Pi for Remote Shell, Desktop, and File Transfer&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://www.howtogeek.com/139433/how-to-turn-a-raspberry-pi-into-a-low-power-network-storage-device/&quot;&gt;How to Turn a Raspberry Pi into a Low-Power Network Storage Device&lt;/a&gt;
        &lt;h4 id=&quot;노는-포터블-외장하드-활용-라즈베리파이-nas-만들기&quot;&gt;노는 포터블 외장하드 활용 라즈베리파이 NAS 만들기&lt;/h4&gt;
        &lt;h5 id=&quot;작업요약&quot;&gt;작업요약&lt;/h5&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;준비물 : 포터블 외장하드(약전원-USB 전원으로도 작동하는), 외장하드용 USB라인, 라즈베리파이 2&lt;/li&gt;
  &lt;li&gt;환경 :&lt;/li&gt;
  &lt;li&gt;구형 노트북에 사용했었던 포터블 외장하드(Hitachi 120G) 사용&lt;/li&gt;
  &lt;li&gt;라즈베리파이에 연결하자 마자 인식되었다 잠시 후 집에있는 아이맥, PC, 라즈베리 파이 모드 인식인 안됨&lt;/li&gt;
  &lt;li&gt;포터블 외장하드 케이스 마저 오래되어 전원부족으로 문제 생각하고 외장하드에 전원연결 재시도 했으나 인식 안됨&lt;/li&gt;
  &lt;li&gt;외장하드케이스에서 분리 재조립 후 아이맥에서 인식된 이후 라즈베리파이에도 인식됨&lt;/li&gt;
  &lt;li&gt;라즈베리파이에서 3개의 파티션 날리고(fsck) 리눅파일(ext2?)로 통으로 포멧&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.howtogeek.com/139433/how-to-turn-a-raspberry-pi-into-a-low-power-network-storage-device/&quot;&gt;How to Turn a Raspberry Pi into a Low-Power Network Storage Device&lt;/a&gt; 읽고 다시 NTFS로 포멧 및 마운트하고 samba 설치 완료&lt;/li&gt;
  &lt;li&gt;이 작업중에 알게 된 사실 &lt;strong&gt;라즈베리파이 화면에 번개표시&lt;/strong&gt;가 항상 떠있길래 원래 그런줄 알았는데, &lt;strong&gt;전원이 부족하다는 표시&lt;/strong&gt;였음 WiFi AP USB 단자로 전원을 공급했었는데 외장하드 미인식으로 아답터로 전원 공급으로 전환 후 번개 표시 사라지고 속도도 개선됨&lt;/li&gt;
&lt;/ul&gt;

&lt;h5 id=&quot;외장하드-포멧-및-마운트&quot;&gt;외장하드 포멧 및 마운트&lt;/h5&gt;
&lt;ul&gt;
  &lt;li&gt;작업 순서 : ntfs-3g 설치 -&amp;gt; 파티션 삭제 -&amp;gt; 포멧 -&amp;gt; 마운트 -&amp;gt; 부팅시 자동 마운트 설정&lt;/li&gt;
  &lt;li&gt;pc 접근 및 응급조치 용이를 위해 M$ Windows 파일 포멧으로 외장하드 구성, 리눅스에서 Windows 파포멧 인식을 위해 ntfs-3g 설치
&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sudo apt-get install ntfs-3g&lt;/code&gt;&lt;/li&gt;
  &lt;li&gt;외장하드 디스크 마운트
    &lt;ul&gt;
      &lt;li&gt;정보확인 : sudo fdisk -l (보통 /dev/sda로 인식됨)&lt;/li&gt;
      &lt;li&gt;파티션 신규 통합 생성 : sudo fsck /dev/sda (m - p - n - 1 - w, &lt;a href=&quot;https://solha.kr/xe/index.php?document_srl=2266&amp;amp;mid=board_AVQK63&quot;&gt;참고 - 우분투에서 하드디스크 파티션 및 EXT4로 포맷하기&lt;/a&gt;)&lt;/li&gt;
      &lt;li&gt;포멧 : mkfs -t ntfs -v /dev/sda1&lt;/li&gt;
      &lt;li&gt;마운트 디렉토리 생성 : sudo mkdir /media/usbhdd1&lt;/li&gt;
      &lt;li&gt;마운트 : sudo mount /dev/sda1 /media/usbhdd1/&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&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;pi@boriliketree:~ $ sudo fdisk -l

##### SSD 8 G - OS
Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1        8192   137215   129024   63M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      137216 15523839 15386624  7.3G 83 Linux

Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x40b96660

### 포터볼 외장하드 120G

Device     Boot Start       End   Sectors   Size Id Type
/dev/sda1        2048 234441647 234439600 111.8G 83 Linux

pi@boriliketree:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       7.1G  5.0G  1.9G  73% /
devtmpfs        459M     0  459M   0% /dev
tmpfs           463M     0  463M   0% /dev/shm
tmpfs           463M   48M  416M  11% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           463M     0  463M   0% /sys/fs/cgroup
/dev/mmcblk0p1   63M   21M   42M  33% /boot
/dev/sda1       112G   69M  112G   1% /media/usbhdd1
tmpfs            93M     0   93M   0% /run/user/1000
tmpfs            93M     0   93M   0% /run/user/0
pi@boriliketree:~ $ cat /etc/fstab
proc            /proc           proc    defaults          0       0
/dev/mmcblk0p1  /boot           vfat    defaults          0       2
/dev/mmcblk0p2  /               ext4    defaults,noatime  0       1
/dev/sda1 	 /media/usbhdd1         ntfs    defaults,noatime  0       0
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
    &lt;h5 id=&quot;samba-설치-및-설정&quot;&gt;samba 설치 및 설정&lt;/h5&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;$ sudo vi /etc/samba/smb.confsudo apt-get install samba samba-common-bin&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;samb 설정
    &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;$ sudo vi /etc/samba/smb.conf
[Finetree]
comment = Share Folder
path = /media/usbhdd1/shares
valid users = @users
force group = users
create mask = 0600
directory mask = 0771
read only = no
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;samba 전용 사용자 생성(보안상이유?) : 시스템 사용자 생성 후 samba 사용자로 등록&lt;/li&gt;
&lt;/ul&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;시스템 유저 생성
$ sudo useradd finetree -m -G users
$ sudo passwd finetree

samba 사용자 등록
$ sudo smbpasswd -a backups
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;2-telepot-이용-torrent-bot-만들기&quot;&gt;2. telepot 이용 torrent bot 만들기&lt;/h3&gt;

&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Telegram Bot 구성
&lt;a href=&quot;http://www.instructables.com/id/Set-up-Telegram-Bot-on-Raspberry-Pi/&quot;&gt;참고 - Set Up Telegram Bot on Raspberry Pi&lt;/a&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;deluge 설치 및 설정
    &lt;ul&gt;
      &lt;li&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;#Start Deluge on boot:
sudo -u pi /usr/bin/python /usr/bin/deluged
sudo -u pi /usr/bin/python /usr/bin/deluge-web
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;        &lt;/div&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;telegram-control-torrent 설치 및 설정
    &lt;ul&gt;
      &lt;li&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;#Start telegram_torrent on boot -2017.04.16
sudo -u pi /home/pi/telegram-control-torrent/telegram_torrent.py 2&amp;amp;&amp;gt;&amp;gt; /home/pi/telegram-control-torrent/telegram-control.log
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;        &lt;/div&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;3-테스트마무리&quot;&gt;3. 테스트/마무리&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;다운로드 후 Plex에서 라이브러리 업데이트 안되는 현상 발생 -&amp;gt; 해결 : 수동 업데이트 설정
    &lt;blockquote&gt;
      &lt;p&gt;The top option, “Update my library automatically”, is the ideal one. Nearly every Plex user should check it. The only time automated library updates aren’t a viable solution is for Plex users with their media stored on a different computer from the Plex Media Server program (since the automatic detection of folders doesn’t typically work for folders on a network share).
&lt;a href=&quot;https://www.howtogeek.com/254357/how-to-update-your-plex-media-library-manually-and-automatically/&quot;&gt;참고 - How to Update Your Plex Media Library, Manually and Automatically&lt;/a&gt;&lt;/p&gt;
    &lt;/blockquote&gt;
  &lt;/li&gt;
  &lt;li&gt;개선 필요사항
    &lt;ul&gt;
      &lt;li&gt;영화에 대한 트레일러, 출연진, 포스트 등 (사용자가 원할 경우)정보 제공 필요&lt;/li&gt;
      &lt;li&gt;다른 토렌트 사이트 사용자 선택 가능 기능(?) - 그냥 막 적는구나&lt;/li&gt;
      &lt;li&gt;한글화&lt;/li&gt;
      &lt;li&gt;사용자 오입력에 대한 예외처리&lt;/li&gt;
      &lt;li&gt;자막도 동시에 찾아서 다운로할 수 있게 .. -&amp;gt; 자막파일 다운로드 할 수 있음 문제는 자막파일이 토렌트 파일에 들어 있지 않을 경우 어디에 다른 디렉토리에 두고 나중에 옮겨주어야 한다….&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Sat, 15 Apr 2017 06:48:35 +0000</pubDate>
        <link>http://blg.igotoo.pw/telepot,/torrent/2017/04/15/MakigTorrentbot-1.html</link>
        <guid isPermaLink="true">http://blg.igotoo.pw/telepot,/torrent/2017/04/15/MakigTorrentbot-1.html</guid>
        
        
        <category>telepot,</category>
        
        <category>torrent</category>
        
      </item>
    
      <item>
        <title>Atom 에디터 설치 및 세팅 (markdown package 위주)</title>
        <description>&lt;h3 id=&quot;개요&quot;&gt;개요&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;http://flight-manual.atom.io/&quot;&gt;Atom flight-manual&lt;/a&gt; 및 구글링 바탕 작성 - 2017.04.14&lt;/p&gt;

&lt;h4 id=&quot;atom-editor를-선택한-이유&quot;&gt;Atom Editor를 선택한 이유&lt;/h4&gt;
&lt;p&gt;github blogging를 위해 Markdown Editor 필요. sublime text3을 사용하다가 다음 블로거의 멘트가 결정적이었음&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;아톰은 여러 운영체제에서 사용할 수 있는 서브라임 텍스트(Sublime Text)와 맥 OS에서 주로 사용되는 텍스트메이트(TextMate)의 핵심 기능을 가져왔다. 두 텍스트 편집기가 가지고 있는 유용성, 편리성에 이맥(Emacs)과 VIM이 가지고 있는 극단적인 확장성을 더했다. 따라서 사용해 보면 서브라임 텍스트를 쓰는 것과 분위기상 차이가 나지 않는다. 잘 정리된 서브라임 텍스트같은 느낌이다.&lt;br /&gt;
… 중략 …
무엇 보다도 마크다운(Markdown)으로 글 쓰는 사람에게 아톰 보다 나은 선택은 없는 것 같았다.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href=&quot;http://offree.net/entry/Atom-A-Hackable-Text-Editor-for-The-21st-Century&quot;&gt;출처 - 장난(?)으로 시작한 여정, 없어서는 안될 Atom 편집기!&lt;/a&gt;&lt;/p&gt;

&lt;h3 id=&quot;atom-editor-설치&quot;&gt;Atom Editor 설치&lt;/h3&gt;
&lt;p&gt;Atom Site(http://atom.io) 에서 Atom 설치 파일 다운로드 및 설치&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;Atom is available with a Windows installer that can be downloaded from https://atom.io or from Atom Releases named AtomSetup.exe.
This setup program will install Atom, add the atom and apm commands to your PATH, create shortcuts on the desktop and in the start menu, add an “Open with Atom” context menu in the Explorer and make Atom available for association with files using “Open with…”.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href=&quot;http://flight-manual.atom.io/getting-started/sections/installing-atom/#installing-atom-on-windows&quot;&gt;출처 - Atom Flight : Installing Atom on Windows&lt;/a&gt;&lt;/p&gt;

&lt;h3 id=&quot;markdown-패키지-설치-및-설정&quot;&gt;Markdown 패키지 설치 및 설정&lt;/h3&gt;
&lt;h4 id=&quot;프록시-환경에서-패키지-설치&quot;&gt;프록시 환경에서 패키지 설치&lt;/h4&gt;

&lt;ul&gt;
  &lt;li&gt;프록시 환경에서 패키지 설치시 에러발생 :  it shows an error “unable to verify the first certificate&lt;/li&gt;
  &lt;li&gt;Atom Strict-ssl 설정 false 설정 및 프록시 서버 셋팅 필요
    &lt;h5 id=&quot;strict-ssl-fale--프록시-서버-세팅&quot;&gt;strict-ssl fale / 프록시 서버 세팅&lt;/h5&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;C:\Users\S&amp;gt;apm config set strict-ssl false
C:\Users\S&amp;gt;apm config set https-proxy http://proxyserver:포트
C:\Users\S&amp;gt;apm config set http-proxy http://proxyserver:포트
C:\Users\S&amp;gt;apm config get https-proxy
http://proxyserver:포트
C:\Users\S&amp;gt;apm config get http-proxy
http://proxyserver:포트
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
    &lt;p&gt;&lt;a href=&quot;https://github.com/Microsoft/vscode/issues/155&quot;&gt;참고1 - How to install plugins behind a proxy with a self-signed certificate?&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://flight-manual.atom.io/getting-started/sections/installing-atom/#behind-a-firewall&quot;&gt;참고2 - Atom Flight : Proxy and Firewall Settings Manual&lt;/a&gt;&lt;/p&gt;
    &lt;h4 id=&quot;markdown-preview-enhanced-설치&quot;&gt;markdown-preview-enhanced 설치&lt;/h4&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h4 id=&quot;language-markdown-설치&quot;&gt;language-markdown 설치&lt;/h4&gt;
&lt;ul&gt;
  &lt;li&gt;Package 설명
    &lt;blockquote&gt;
      &lt;p&gt;Adds grammar support for Markdown (including Github flavored, AtomDoc, Markdown Extra, CriticMark, YAML/TOML front-matter, and R Markdown), and smart context-aware behavior to lists, and keyboard shortcuts for inline emphasis.
#markdown #commonmark #gfm #github flavored #markdown extra&lt;/p&gt;
    &lt;/blockquote&gt;
  &lt;/li&gt;
  &lt;li&gt;설치
    &lt;blockquote&gt;
      &lt;p&gt;&lt;strong&gt;Installation&lt;/strong&gt;&lt;/p&gt;
      &lt;ol&gt;
        &lt;li&gt;Install language-markdown
          &lt;ul&gt;
            &lt;li&gt;via either your terminal: apm install language-markdown&lt;/li&gt;
            &lt;li&gt;the Atom GUI: Atom &amp;gt; Settings &amp;gt; Install &amp;gt; Search for language-markdown.&lt;/li&gt;
          &lt;/ul&gt;
        &lt;/li&gt;
        &lt;li&gt;Select language-markdown as your Markdown grammar. Open a Markdown file and
          &lt;ul&gt;
            &lt;li&gt;press ctrl+shift+L and choose “Markdown” choose “Markdown” from the grammar &amp;gt;selection interface in the bottom right-hand corner of the window&lt;/li&gt;
          &lt;/ul&gt;
        &lt;/li&gt;
      &lt;/ol&gt;

      &lt;p&gt;To avoid conflicts this package tries to disable the core package language-gfm. If you run into any issue, make sure you’ve selected the correct grammar.&lt;/p&gt;
    &lt;/blockquote&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href=&quot;https://atom.io/packages/language-markdown&quot;&gt;출처 - language-markdown&lt;/a&gt;&lt;/p&gt;

&lt;h4 id=&quot;monokai-extended-theme-설치&quot;&gt;Monokai Extended Theme 설치&lt;/h4&gt;
&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;Installation&lt;/strong&gt;&lt;/p&gt;

  &lt;p&gt;You can open the Atom settings (cmd-,), select Themes and search for &amp;gt;monokai-extended or install via the command line with apm:
&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;apm install monokai-extended&lt;/code&gt;
Once installed, activate the theme by opening the Atom settings (cmd-,) and &amp;gt;going to Themes -&amp;gt; Syntax Theme or via cmd-shift-p and Settings View - Change &amp;gt;Themes.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href=&quot;https://atom.io/themes/monokai-extended&quot;&gt;출처 - Monokai Extended Theme&lt;/a&gt;&lt;/p&gt;

&lt;h4 id=&quot;패키지-동기화-도구--sync-settings&quot;&gt;패키지 동기화 도구 : sync-settings&lt;/h4&gt;

&lt;ol&gt;
  &lt;li&gt;github Personal access tokens 생성&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;2.&lt;/p&gt;
</description>
        <pubDate>Fri, 14 Apr 2017 10:48:35 +0000</pubDate>
        <link>http://blg.igotoo.pw/atom,/markdown/2017/04/14/AtomEditor1.html</link>
        <guid isPermaLink="true">http://blg.igotoo.pw/atom,/markdown/2017/04/14/AtomEditor1.html</guid>
        
        
        <category>Atom,</category>
        
        <category>Markdown</category>
        
      </item>
    
      <item>
        <title>Docker를 설치 하면서 알게 된 Vagrant</title>
        <description>&lt;h1 id=&quot;docker를-설치-하면서-알게-된-vagrant&quot;&gt;Docker를 설치 하면서 알게 된 Vagrant&lt;/h1&gt;

&lt;h3 id=&quot;vagrant-명령어-탐색-경로&quot;&gt;vagrant 명령어 탐색 경로&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;자신의  디렉토리 -&amp;gt; 조상 디렉토리&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;LOOKUP PATH&lt;/strong&gt;&lt;/p&gt;

  &lt;p&gt;When you run any vagrant command, Vagrant climbs up the directory tree looking for the first Vagrantfile it can find, starting first in the current directory. So if you run vagrant in /home/mitchellh/projects/foo, it will search the following paths in order for a Vagrantfile, until it finds one:&lt;/p&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;       /home/mitchellh/projects/foo/Vagrantfile
       /home/mitchellh/projects/Vagrantfile
       /home/mitchellh/Vagrantfile
       /home/Vagrantfile
       /Vagrantfile
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;  &lt;/div&gt;
  &lt;p&gt;This feature lets you run vagrant from any directory in your project.&lt;/p&gt;

  &lt;p&gt;You can change the starting directory where Vagrant looks for a Vagrantfile by setting the VAGRANT_CWD environmental variable to some other path.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href=&quot;https://www.vagrantup.com/docs/vagrantfile/&quot;&gt;참조 사이트 1&lt;/a&gt;&lt;/p&gt;

&lt;h3 id=&quot;ssh-키-쌍private-public&quot;&gt;SSH 키 쌍(private-public)&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;VAGRANT_HOME 밑에 insecure-private-key와 VM의  vagrant 유저 /home/vagrant/.ssh/authorized_keys&lt;/li&gt;
  &lt;li&gt;Episod
    &lt;ul&gt;
      &lt;li&gt;gfstest2 VM의 vagrantfile 변경으로 master vm 생성(변경된 vagrant 파일에 config.vm.define “master” do &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;|master|&lt;/code&gt; 정의 기존 default VM)&lt;/li&gt;
      &lt;li&gt;기존 VM(default)과 deassosiated 됨 —&amp;gt;  virtual box VM uuid(C:\Users\SDS\VirtualBox VMs\gfstest2\gfstest2.vbox)와  vagrant 의 id(D:\vagrant\two.vagrant\machines\master\virtualbox\id)를 일치시겨 vagrantfile과 기존 default VM assosiate&lt;/li&gt;
      &lt;li&gt;VM 생성 삭제 와중에 private  key인 insecure-private-key  새로 생성으로 SSH 키 쌍 불일치 발생&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;SSH 접근 시 insecure key 쌍 보다는 별도의 키를 생성/사용 해야 보다 안전(예: AWS, EFSS 등 )&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;“vagrant” User&lt;/strong&gt;&lt;br /&gt;
By default, Vagrant expects a “vagrant” user to SSH into the machine as. This user should be setup with the insecure keypair that Vagrant uses as a default to attempt to SSH. Also, even though Vagrant uses key-based authentication by default, it is a general convention to set the password for the “vagrant” user to “vagrant”. This lets people login as that user manually if they need to.&lt;/p&gt;

  &lt;p&gt;To configure SSH access with the insecure keypair, place the public key into the ~/.ssh/authorized_keys file for the “vagrant” user. Note that OpenSSH is very picky about file permissions. Therefore, make sure that ~/.ssh has 0700 permissions and the authorized keys file has 0600 permissions.&lt;/p&gt;

  &lt;p&gt;When Vagrant boots a box and detects the insecure keypair, it will automatically replace it with a randomly generated keypair for additional security while the box is running.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;strong&gt;Insecure Keypair&lt;/strong&gt;&lt;/p&gt;

  &lt;p&gt;These keys are the “insecure” public/private keypair we offer to base box creators for use in their base boxes so that vagrant installations can automatically SSH into the boxes.&lt;/p&gt;

  &lt;p&gt;If you’re working with a team or company or with a custom box and you want more secure SSH, you should create your own keypair and configure the private key in the Vagrantfile with config.ssh.private_key_path&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href=&quot;https://www.vagrantup.com/docs/boxes/base.html&quot;&gt;참조 사이트 2&lt;/a&gt;&lt;/p&gt;

&lt;h3 id=&quot;vagrantfile-내용-실행&quot;&gt;vagrantfile 내용 실행&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;VM 이미지 : 최초 vagrant up 사용시 생성,  로컬 box에 이미지가 없는 경우 자동 다운로드 하며 이후 생성된 이미지 사용&lt;/li&gt;
  &lt;li&gt;vagrant up 실행 시마다 vagrantfile 의 셋팅(hostname, ip, cpu, port forwar 등) 내용과 shell script  수행 함&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;lessons--learned&quot;&gt;Lessons &amp;amp; Learned&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;아무리 급해도 바늘 허리 꿰어 못 쓴다. → 사용 전 충분한 선행 학습 필요. 기초 Documentaion 학습&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href=&quot;https://www.vagrantup.com/docs/index.html&quot;&gt;Vagrant Documentation &lt;/a&gt;&lt;/p&gt;
</description>
        <pubDate>Tue, 28 Mar 2017 06:48:35 +0000</pubDate>
        <link>http://blg.igotoo.pw/vagrant/2017/03/28/Vagrant1.html</link>
        <guid isPermaLink="true">http://blg.igotoo.pw/vagrant/2017/03/28/Vagrant1.html</guid>
        
        
        <category>vagrant</category>
        
      </item>
    
      <item>
        <title>라즈베리언 재설치</title>
        <description>&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;Why
 Open Plex  용으로  사용하던  라즈베리 파이 2  B 를  TV 앱 (LG)  프로그램으로
 PLEX를 사용 가능 하게 됨으로 써  효용가치  급격히 떨어짐&lt;/p&gt;

    &lt;p&gt;※ 미디어 서버와 클라이언트로 주로 XBMC를 써오다가  XBMC 비해 연동 클라이언트 가  많고,
      상대적으로  안정적인 PLEX  Media Server 를  PC와 iMac 에 운용 중
      (향후 라즈베리 파이 3 로  PLEX  Media Server 이관 예정)
      라즈베리 파이는 원래   라즈베리용  XBMC  클라이언트인  Open ELEC 용으로 구매.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;What
   Rasbian  설치  및  환경 설정 (한글 설정, realVNC 설치 등 )&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;1-rasbian-설치---raspbian-jessie-with-pixel&quot;&gt;1. Rasbian 설치  : Raspbian Jessie with PIXEL&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;Command line  install  방법으로 설치&lt;/li&gt;
  &lt;li&gt;diskutil list  : Identify the disk (not partition) of your SD card e.g. disk4, not disk4s1.&lt;/li&gt;
  &lt;li&gt;Unmount your SD card by using the disk identifier, to prepare it for copying data:
diskutil unmountDisk /dev/disk&amp;lt;disk# from diskutil&amp;gt;&lt;/li&gt;
  &lt;li&gt;Copy the data to your SD card:
 sudo dd bs=1m if=image.img of=/dev/rdisk&amp;lt;disk# from diskutil&amp;gt;&lt;/li&gt;
  &lt;li&gt;설치 정보&lt;br /&gt;
Raspbian Jessie with PIXEL
Image with PIXEL desktop based on Debian Jessie
Version: March 2017
Release date: 2017-03-02
Kernel version: 4.4&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;※ graphical interface (반반 방법 ) 으로 설치하려다가  dd 명령시 rdisk 를 disk3로 오기 (문서는 상관 없다고 하여 일단 무시 진행 )  -&amp;gt; 부팅되지 않음 -&amp;gt; SSD card 읽히지 않음 -&amp;gt; 삭제 후 재 포멧  -&amp;gt; command line 방법으로 재 설치&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.raspberrypi.org/documentation/installation/installing-images/mac.md&quot;&gt;참고 - INSTALLING OPERATING SYSTEM IMAGES ON MAC OS&lt;/a&gt;&lt;/p&gt;

&lt;h3 id=&quot;2-초기-설정&quot;&gt;2. 초기 설정&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;패스워드 변경&lt;/li&gt;
  &lt;li&gt;Time Zone 셋팅&lt;/li&gt;
  &lt;li&gt;locale 변경  :  en -&amp;gt; euc-kr  (putty, Mac terminal 에서  한글 깨짐 ) -&amp;gt; ko-utf-8&lt;/li&gt;
  &lt;li&gt;고정 IP 셋팅
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;http://readwrite.com/2014/04/09/raspberry-pi-projects-ssh-remote-desktop-static-ip-tutorial/&quot;&gt;참고 - Static IP For Your Pi On The Home Network&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;http://www.hardcopyworld.com/gnuboard5/bbs/board.php?bo_table=lecture_rpi&amp;amp;wr_id=1&quot;&gt;참고 - 라즈베리파이 기본 설정 (OS 부터 필수 패키지 설치까지)&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;3-셋팅-중-해상도-변경으로-부팅-안됨&quot;&gt;3. 셋팅 중 해상도 변경으로 부팅 안됨&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;1280*1024 해상도로 변경후  부팅되지 않음&lt;/li&gt;
  &lt;li&gt;SSDCard 분리 Mac에서 config.txt를  열어서 safe mode  #제거 후 재부팅  성공&lt;/li&gt;
  &lt;li&gt;안전모드로 진입 후 해상 도 default  mode로 셋팅 후  안전모드 코멘트(#)처리 하고 재부팅 성공&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;4-realvnc-설치&quot;&gt;4. realVNC 설치&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;XRDP를 설치 하려 고  했으나 …..&lt;/p&gt;

    &lt;blockquote&gt;
      &lt;p&gt;“라즈베리 파이를 PC에서 원격제어하기 위해서 XRDP 를 시도해 보았습니다.
 이번에 새로나온 라즈비안 PIXEL 버젼에는 이미 RealVNC라는 프로그램이 깔려있기 때문에 XRDP와 충돌한다고 합니다.”  &lt;a href=&quot;http://m.blog.naver.com/cubloc/220829612566&quot;&gt;출처 - 라즈베리파이 VNC 실행&lt;/a&gt;&lt;/p&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;RealVNC have ported their VNC server and viewer applications to Pi, and they are now integrated with the system. To enable the server, select the option on the Interfaces tab in Raspberry Pi Configuration; you’ll see the VNC menu appear on the taskbar, and you can then log in to your Pi and control it remotely from a VNC viewer.

The RealVNC viewer is also included – you can find it from the Internet section of the Applications menu – and it allows you to control other RealVNC clients, including other Pis. Have a look here on RealVNC’s site for more information.  
 
Please note that if you already use xrdp to remotely access your Pi, this conflicts with the RealVNC server, so you shouldn’t install both at once.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;      &lt;/div&gt;

      &lt;p&gt;&lt;a href=&quot;https://www.raspberrypi.org/blog/introducing-pixel/&quot;&gt;출처 - INTRODUCING PIXEL&lt;/a&gt;&lt;/p&gt;

    &lt;/blockquote&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;PC/iMac realVNC viewer 설치 및 한글 설정(uim 설치 )&lt;/p&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;http://webnautes.tistory.com/549&quot;&gt;참고 - Raspberry PI 3를 VNC로 접속하여 원격 제어 (x11vnc)&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Sun, 26 Mar 2017 06:48:35 +0000</pubDate>
        <link>http://blg.igotoo.pw/rasberry/pi/2017/03/26/RasberryPi-Rasbrian-intall.html</link>
        <guid isPermaLink="true">http://blg.igotoo.pw/rasberry/pi/2017/03/26/RasberryPi-Rasbrian-intall.html</guid>
        
        
        <category>Rasberry</category>
        
        <category>Pi</category>
        
      </item>
    
      <item>
        <title>ST3에  Markdown  기능 설치</title>
        <description>&lt;p&gt;참고사이트 :  https://nolboo.kim/blog/2014/04/15/how-to-use-markdown/&lt;/p&gt;

&lt;h3 id=&quot;markdownediting-설치&quot;&gt;MarkdownEditing 설치&lt;/h3&gt;

&lt;h3 id=&quot;omnimarkuppreviewer-설치-및-오류-해결&quot;&gt;OmniMarkupPreviewer 설치 및 오류 해결&lt;/h3&gt;
&lt;p&gt;참고사이트 :  https://www.bountysource.com/issues/28732692-404-error-on-preview-buffer_id-29-is-not-valid-closed-or-unsupported-file-format&lt;/p&gt;

&lt;p&gt;“Error: 404 Not Found
Sorry, the requested URL ‘http://127.0.0.1:51004/view/29’ caused an error:&lt;/p&gt;

&lt;p&gt;‘buffer_id(29) is not valid (closed or unsupported file format)’&lt;/p&gt;

&lt;p&gt;—&amp;gt; 해결  : 어떻게 해결 되었는지 모르겠음 ㅋ&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;Quick Fix 1: Remove Strikethrough Extension&lt;br /&gt;
Sublime Text &amp;gt; Preferences &amp;gt; Package Settings &amp;gt; OmniMarkupPreviewer &amp;gt; Settings - User
paste the following to remove the strikeout package. &lt;br /&gt;
   {
    “renderer_options-MarkdownRenderer”: {
           “extensions”: [“tables”, “fenced_code”, “codehilite”]
     }
 }&lt;br /&gt;
Quick Fix 2: Fix the Strikethrough Extension (if you need it)&lt;br /&gt;
Find the python-markdown sublime package.
On the Mac: subl “/Users/&lt;username&gt;/Library/Application Support/Sublime Text 3/Packages/OmniMarkupPreviewer/OmniMarkupLib/Renderers/libs/mdx_strikeout.py&quot;
Replace the makeExtension() method with the following:
def makeExtension(*args, **kwargs):
    return StrikeoutExtension(*args, **kwargs)
Save, quit and reload Sublime Text.&lt;/username&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;할일&quot;&gt;할일&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;웹페이지에서 내용 일부를 붙이기를 할때 출처 URL이 자동으로 붙은 기능이 있는 거 같은데 어찌 하는 지 모르겠다….&lt;/li&gt;
  &lt;li&gt;Markdown 문법 배우기&lt;/li&gt;
  &lt;li&gt;블로그 만들기 github vs Wordpress&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Fri, 24 Mar 2017 06:48:35 +0000</pubDate>
        <link>http://blg.igotoo.pw/rasberry/pi/2017/03/24/ST3-Markdown-install.html</link>
        <guid isPermaLink="true">http://blg.igotoo.pw/rasberry/pi/2017/03/24/ST3-Markdown-install.html</guid>
        
        
        <category>Rasberry</category>
        
        <category>Pi</category>
        
      </item>
    
      <item>
        <title>맥기반 jekyll로 github blogging - 01</title>
        <description>&lt;h3 id=&quot;프롤로그&quot;&gt;프롤로그&lt;/h3&gt;
&lt;p&gt;github blogging를 기존에 jeykll fork로 시도했다가 바로 중단한 것을 Markdown 매력과 날로 쇠약해지는 기억의 보조장치를 만들고자 nolboo님의 블로그 &lt;a href=&quot;https://nolboo.kim/blog/2013/10/15/free-blog-with-github-jekyll/&quot;&gt;지킬로 깃허브에 무료 블로그 만들기&lt;/a&gt;을 기반으로 다시 시작함.
제발 부디 지속하기를 바라며 전달될 확률이 거의 없지만 블로그에 좋은 자료를 만들어 공유해 주신 nolboo님께 감사드린다. (2017.03.30)&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;&lt;a href=&quot;http://jekyllrb.com&quot;&gt;Jekyll&lt;/a&gt;은 여러(특히 마크다운) 형태의 텍스트와 테마를 소스로 하여 정적 HTML 웹사이트를 제너레이트하는 툴이다.  Ruby 스크립트로 만들어져 있으나, 블로그를 만드는 데에는 루비를 전혀 몰라도 된다. 워드프레스를 사용하여 블로그를 만드는 노력이면 워드프레스보다 훨씬 더 빠르고 보안에도 뛰어난 블로그를 깃허브에 무료로 만들 수 있고, 별도의 페이지를 만들기도 쉽다. 또한, HTML과 CSS에 대한 약간의 지식만 있으면 페이지는 물론 각 포스트마다 다른 레이아웃을 줄 수도 있다.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id=&quot;1-설치&quot;&gt;1. 설치&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;RubyGems으로 로컬에 Jekyll 및 Bundler gems 설치
    &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;  iMac:~ igotoo$ ruby -v
  ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
  iMac:~ igotoo$ gem install jekyll
  Fetching: public_suffix-2.0.5.gem (100%)
  ERROR:  While executing gem ... (Gem::FilePermissionError)
      You don&apos;t have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
  iMac:~ igotoo$ sudo gem install jekyll
  Password:
  Fetching: public_suffix-2.0.5.gem (100%)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
    &lt;p&gt;&lt;a href=&quot;http://jekyllrb.com/docs/quickstart/&quot;&gt;참고 - Quick-start guide&lt;/a&gt;&lt;/p&gt;
    &lt;h3 id=&quot;2-github-계정-주소-페이지로-블로그-생성하기&quot;&gt;2. github 계정 주소 페이지로 블로그 생성하기&lt;/h3&gt;
  &lt;/li&gt;
  &lt;li&gt;계정주소 ? : http://igotoo.github.io
    &lt;h4 id=&quot;1-로컬-jekyll-블로그-생성&quot;&gt;1) 로컬 jekyll 블로그 생성&lt;/h4&gt;
  &lt;/li&gt;
  &lt;li&gt;깃허브사용자명.github.com 디렉토리를 만들어 기본 디렉토리와 화일을 생성&lt;/li&gt;
  &lt;li&gt;jeykll new 깃허브사용자명.github.com
    &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;iMac:~ igotoo$ jekyll new igoto.github.com
      Dependency Error: Yikes! It looks like you don&apos;t have bundler or one of its dependencies installed. In order to use Jekyll as currently configured, you&apos;ll need to install this gem. The full error message from Ruby is: &apos;cannot load such file -- bundler&apos; If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
    jekyll 3.4.3 | Error:  bundler
    iMac:~ igotoo$ jekyll new igoto.github.com
              Conflict: /Users/igotoo/igoto.github.com exists and is not empty.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;strong&gt;Dependency Error:&lt;/strong&gt; 발생 &lt;br /&gt;
해결&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;1) ruby 재설치 및 환경 구성&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;macOS 시스템 ruby 사용하지 않기 (v 2.0.0)
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://robots.thoughtbot.com/psa-do-not-use-system-ruby&quot;&gt;이유 :The root problem is not with using a pre-installed Ruby per se, but with not using a Ruby version manager.&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;homebrew 이용 ruby 버전 관리자 rbenv 설치
    &lt;ul&gt;
      &lt;li&gt;homebrew(the missing package manager for macOS install) 설치 &lt;a href=&quot;https://brew.sh&quot;&gt;HomeBrew&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;rbenv로 ruby 2.3.3  설치&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;http://stackoverflow.com/questions/10940736/rbenv-not-changing-ruby-version&quot;&gt;rbenv not changing ruby version&lt;/a&gt;
    &lt;ul&gt;
      &lt;li&gt;system ruby가 아닌 rbenv로 설치한 ruby를 사용하도록 변경&lt;/li&gt;
      &lt;li&gt;ruby는 스크립트로 실행환경에 대한 redirector&lt;/li&gt;
    &lt;/ul&gt;

    &lt;blockquote&gt;
      &lt;p&gt;First step is to find out which ruby is being called: &lt;br /&gt;
     which ruby&lt;br /&gt;
Your system says: &lt;br /&gt;
  /usr/bin/ruby&lt;br /&gt;
This is NOT the shim used by rbenv, which (on MacOS) should look like:
  /Users/&lt;username&gt;/.rbenv/shims/ruby
Use this to make sure your *MacOS will obey you:  
      eval &quot;$(rbenv init -)&quot;
Then add the line to your profile so it runs each time you open a new terminal window:
       ~/.bash_profile  
eval &quot;$(rbenv init -)&quot;  
```
            iMac:shims igotoo$ rbenv init -
            export PATH=&quot;/Users/igotoo/.rbenv/shims:${PATH}&quot;
            export RBENV_SHELL=bash
            source &apos;/usr/local/Cellar/rbenv/1.1.0/libexec/../completions/rbenv.bash&apos;
            command rbenv rehash 2&amp;gt;/dev/null
            rbenv() {
              local command
              command=&quot;$1&quot;
              if [ &quot;$#&quot; -gt 0 ]; then
                shift
              fi&lt;/username&gt;&lt;/p&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;          case &quot;$command&quot; in
          rehash|shell)
            eval &quot;$(rbenv &quot;sh-$command&quot; &quot;$@&quot;)&quot;;;
          *)
            command rbenv &quot;$command&quot; &quot;$@&quot;;;
          esac
        }

 [eval 참조](https://mug896.github.io/bash-shell/eval.html)    

        Mac:~ igotoo$ cat /Users/igotoo/.rbenv/shims/ruby
        #!/usr/bin/env bash
        set -e
        [ -n &quot;$RBENV_DEBUG&quot; ] &amp;amp;&amp;amp; set -x

        program=&quot;${0##*/}&quot;
        if [ &quot;$program&quot; = &quot;ruby&quot; ]; then
          for arg; do
            case &quot;$arg&quot; in
            -e* | -- ) break ;;
            */* )
              if [ -f &quot;$arg&quot; ]; then
                export RBENV_DIR=&quot;${arg%/*}&quot;
                break
              fi
              ;;
            esac
          done
        fi

        export RBENV_ROOT=&quot;/Users/igotoo/.rbenv&quot;
        exec &quot;/usr/local/Cellar/rbenv/1.1.0/libexec/rbenv&quot; exec &quot;$program&quot; &quot;$@&quot; ``` 2) rails 설치     ```
  iMac:~ igotoo$ rbenv global 2.3.3
  iMac:~ igotoo$ rbenv local 2.3.3
  iMac:~ igotoo$ rbenv rehash
  iMac:~ igotoo$ rails -v
      Rails 5.0.2           ```   &amp;gt; rehash 옵션은 새로운 환경을 재설정하는 옵션으로 새로 루비를 설치하거나 루비 젬을 설치한 다음 반드시 실행해야 한다.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href=&quot;https://rorlab.gitbooks.io/railsguidebook/content/contents/rails/mac_install.html&quot;&gt;참조 : 맥 OSX 개발머신에 설치하기&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3) jekyll 재설치&lt;/p&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;        iMac:~ igotoo$ jekyll new igotoo.github.com
            Running bundle install in /Users/igotoo/igotoo.github.com...
            :
            New jekyll site installed in /Users/igotoo/igotoo.github.com.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;4) &lt;a href=&quot;http://localhost:4000&quot;&gt;로컬&lt;/a&gt;에 웹서버 기동하여 블로그 확인하기&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;지킬은 웹서버를 내장하고 있어 아파치나 NgineX와 같은 별도의 웹서버를 띄우지 않고도 사이트를 확인할 수 있다. –watch는 사이트를 변경하는 대로 백그라운드에서 &amp;gt;제너레이트하여 브라우저에서 변경사항을 바로 확인할 수 있는 옵션이다.&lt;/p&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;    Mac:igotoo.github.com igotoo$ jekyll serve --watch
    Configuration file: /Users/igotoo/igotoo.github.com/_config.yml
    Configuration file: /Users/igotoo/igotoo.github.com/_config.yml
                Source: /Users/igotoo/igotoo.github.com
           Destination: /Users/igotoo/igotoo.github.com/_site
     Incremental build: disabled. Enable with --incremental
          Generating...
                        done in 0.477 seconds.
     Auto-regeneration: enabled for &apos;/Users/igotoo/igotoo.github.com&apos;
    Configuration file: /Users/igotoo/igotoo.github.com/_config.yml
        Server address: http://127.0.0.1:4000/
      Server running... press ctrl-c to stop.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h3 id=&quot;2-github에-온라인-저장소-생성-기생성으로-생략&quot;&gt;2) github에 온라인 저장소 생성 (기생성으로 생략)&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;구글링 등을 통해 github 회원가입, jekyll fork로 저장소(igotoo.github.com) 및 jekyll blog 기설치&lt;/li&gt;
  &lt;li&gt;config.yml 파일 수정, 테마 변경등 만 하고 작업 중지&lt;/li&gt;
  &lt;li&gt;참고&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;3-github-블로그httpigotoogithubio-생성하기&quot;&gt;3) github 블로그(http://igotoo.github.io) 생성하기&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;기존 작업으로(jekyll fork) 기본적으로 생성된  jekyll 블로그를 없애고 새로 생성&lt;/li&gt;
  &lt;li&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;  git init
  git remote add origin 저장소URL
  git add .
  git commit -m &quot;Initialize blog&quot;
  git push origin master
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;“저장소URL” 의미를 정확히 파악하지 못해 계속 에러 발생
    &lt;ul&gt;
      &lt;li&gt;저장소 이름(igotoo.github.com)으로 시도
        &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;git init
411  git remote add orign igotoo.github.com
412  git add .
413  git commit -m &quot;Initialize blog&quot;
414  git push origin master
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;        &lt;/div&gt;
        &lt;p&gt;&lt;strong&gt;—&amp;gt; 에러 발생&lt;/strong&gt;&lt;/p&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;430  git init
431  git remote add origin http://igotoo.github.com
432  git remote remove  origin http://igotoo.github.com
433  git remote remove  origin
434  git push origin master
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;        &lt;/div&gt;
        &lt;p&gt;&lt;strong&gt;—&amp;gt; 에러 발생&lt;/strong&gt;&lt;/p&gt;
      &lt;/li&gt;
      &lt;li&gt;블로그 URL(igotoo.github.io)로 시도
        &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;435  git init
436  git remote remove  origin
437  git remote add origin igotoo.github.io
438  git add .
439  git commit -m &quot;Initialize blog&quot;
440  git push origin master
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;        &lt;/div&gt;
        &lt;p&gt;&lt;strong&gt;—&amp;gt; 에러 발생&lt;/strong&gt;&lt;/p&gt;
      &lt;/li&gt;
      &lt;li&gt;github url(http://github.com/igotoo) 시도
        &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;447  git init
448  git remote add origin http://github.com/igotoo
449  git remote remove origin
450  git remote add origin http://github.com/igotoo
451  git add .
452  git commit -m &quot;Initialize blog&quot;
453  git push origin master
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;        &lt;/div&gt;
        &lt;p&gt;&lt;strong&gt;—&amp;gt; 에러 발생&lt;/strong&gt;&lt;/p&gt;
      &lt;/li&gt;
      &lt;li&gt;저장소 url(https://github.com/igotoo/igotoo.github.com.git) 시도
        &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;463  git init
465  git remote remove origin
466  git remote add origin https://github.com/igotoo/igotoo.github.com.git
467  git add .
468  git commit -m &quot;Initialize blog&quot;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;        &lt;/div&gt;
        &lt;p&gt;&lt;strong&gt;–&amp;gt; 성공&lt;/strong&gt;&lt;/p&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;정리&lt;/li&gt;
  &lt;li&gt;블로그 URL : https://igotoo.github.io&lt;/li&gt;
  &lt;li&gt;저장소 이름 : igotoo.github.com&lt;/li&gt;
  &lt;li&gt;저장소 URL : https://github.com/igotoo/igotoo.github.com.git (&lt;a href=&quot;https://help.github.com/articles/which-remote-url-should-i-use/&quot;&gt;참고 - Which remote URL should I use?&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&quot;3-프로젝트-주소-페이지&quot;&gt;3. 프로젝트 주소 페이지&lt;/h3&gt;
&lt;ul&gt;
  &lt;li&gt;프로젝트 주소 페이지 ?&lt;/li&gt;
  &lt;li&gt;계정주소로 생성해서 생략
    &lt;h3 id=&quot;4-필수-엔진-설치&quot;&gt;4. 필수 엔진 설치&lt;/h3&gt;
  &lt;/li&gt;
  &lt;li&gt;마크다운 프로세싱 엔진, 문법 하일라이터 설치 &amp;lt;- 왜 설치하는 거지&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;1) 마크다운 프로세싱 엔진 설치
   GitHub에서는 2016년 5월 1일부터 kramdown 하나만 지원&lt;/p&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;   iMac:~ igotoo$ gem install kramdown
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;2) Pygments(Pygments는 파이썬 기반 문법 하일라이터이며, 코드를 이쁘게 보여준다) 설치 -&amp;gt; Rouge로 통합되어 Rouge 설치
    &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;
    iMac:~ igotoo$ sudo easy_install Rouge
   &lt;/code&gt;&lt;/p&gt;
&lt;h3 id=&quot;5-블로그-포스팅&quot;&gt;5. 블로그 포스팅&lt;/h3&gt;

&lt;h3 id=&quot;에필로그&quot;&gt;에필로그&lt;/h3&gt;
</description>
        <pubDate>Mon, 20 Mar 2017 06:48:35 +0000</pubDate>
        <link>http://blg.igotoo.pw/jekyll,/github/2017/03/20/githubblooging-1.html</link>
        <guid isPermaLink="true">http://blg.igotoo.pw/jekyll,/github/2017/03/20/githubblooging-1.html</guid>
        
        
        <category>jekyll,</category>
        
        <category>github</category>
        
      </item>
    
  </channel>
</rss>
