<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:series="https://publishpress.com/"
	>

<channel>
	<title>Windows Archives - 아빠프로그래머의 좌충우돌 개발하기!</title>
	<atom:link href="https://www.daddyprogrammer.org/post/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.daddyprogrammer.org/post/category/windows/</link>
	<description>기저귀 갈면서 코딩해야 프로다!</description>
	<lastBuildDate>Thu, 17 Feb 2022 09:54:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.5</generator>

<image>
	<url>https://www.daddyprogrammer.org/wp-content/uploads/2019/04/cropped-spring-bird-2295431_960_720-300x300.jpg</url>
	<title>Windows Archives - 아빠프로그래머의 좌충우돌 개발하기!</title>
	<link>https://www.daddyprogrammer.org/post/category/windows/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Windows powershell을 mac terminal처럼 예쁘게 꾸며보자(Oh-My-Posh)</title>
		<link>https://www.daddyprogrammer.org/post/14536/windows-powershell-oh-my-posh/</link>
					<comments>https://www.daddyprogrammer.org/post/14536/windows-powershell-oh-my-posh/#comments</comments>
		
		<dc:creator><![CDATA[happydaddy]]></dc:creator>
		<pubDate>Wed, 06 Jan 2021 13:39:37 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[powershell]]></category>
		<category><![CDATA[oh-my-posh]]></category>
		<guid isPermaLink="false">http://3.36.120.4/?p=14536</guid>

					<description><![CDATA[<p>Windows powershell의 모습은 기본으로 사용하면 Mac과 비교했을 때 매우 투박한 UI를 보여줍니다. 이러한 점은 개발의욕을 감소시키는 요인중 하나라고 생각합니다. Oh-My-Posh 설정을 통해 Mac에서 사용하는 터미널(oh my zsh)처럼 예쁘게 변경해 보겠습니다. 우선 Microsoft Store에 접속하여 Windows terminal을 설치합니다. 설치가 완료된 후 Windows terminal을 실행하면 powershell이 실행되고 tab 설정이 가능한 터미널로 변경된 것을 확인할 수 있습니다. 글꼴 [&#8230;]</p>
<p>The post <a href="https://www.daddyprogrammer.org/post/14536/windows-powershell-oh-my-posh/">Windows powershell을 mac terminal처럼 예쁘게 꾸며보자(Oh-My-Posh)</a> appeared first on <a href="https://www.daddyprogrammer.org">아빠프로그래머의 좌충우돌 개발하기!</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Windows powershell의 모습은 기본으로 사용하면 Mac과 비교했을 때 매우 투박한 UI를 보여줍니다. 이러한 점은 개발의욕을 감소시키는 요인중 하나라고 생각합니다. Oh-My-Posh 설정을 통해 Mac에서 사용하는 터미널(oh my zsh)처럼 예쁘게 변경해 보겠습니다.</p>



<figure class="wp-block-image size-large is-resized"><img fetchpriority="high" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-7.png" alt="" class="wp-image-14552" width="840" height="683" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-7.png 1348w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-7-1024x833.png 1024w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-7-768x624.png 768w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-7-150x122.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-7-300x244.png 300w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-7-696x566.png 696w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-7-1068x868.png 1068w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-7-517x420.png 517w" sizes="(max-width: 840px) 100vw, 840px" /></figure>



<p class="wp-block-paragraph">우선 Microsoft Store에 접속하여 Windows terminal을 설치합니다.</p>



<figure class="wp-block-image size-large is-resized"><img decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2021/01/windows-terminal.png" alt="" class="wp-image-14544" width="839" height="509" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2021/01/windows-terminal-150x91.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/windows-terminal-300x181.png 300w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/windows-terminal-696x421.png 696w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/windows-terminal-694x420.png 694w" sizes="(max-width: 839px) 100vw, 839px" /></figure>



<p class="wp-block-paragraph">설치가 완료된 후 Windows terminal을 실행하면 powershell이 실행되고 tab 설정이 가능한 터미널로 변경된 것을 확인할 수 있습니다.</p>



<figure class="wp-block-image size-large is-resized"><img decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-0.png" alt="" class="wp-image-14545" width="840" height="97" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-0.png 1089w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-0-1024x118.png 1024w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-0-768x89.png 768w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-0-150x17.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-0-300x35.png 300w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-0-696x81.png 696w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-0-1068x124.png 1068w" sizes="(max-width: 840px) 100vw, 840px" /></figure>



<h2 class="wp-block-heading">글꼴 설치</h2>



<p class="wp-block-paragraph">Powerline은 프롬프트의 스타일 지정을 위해 문자 모양을 사용합니다.&nbsp;글꼴에 Powerline 문자 모양이 포함되지 않은 경우 프롬프트에서 여러 유니코드 대체 문자 &#8216;▯&#8217;가 표시될 수 있습니다.&nbsp;<a href="https://docs.microsoft.com/ko-kr/windows/terminal/cascadia-code">Cascadia Mono</a>에는 Powerline 문자 모양이 포함되지 않지만 Powerline 문자 모양을 포함하는 Cascadia 코드 PL 또는 Cascadia Mono PL을 설치할 수 있습니다.&nbsp;이러한 글꼴은&nbsp;<a href="https://github.com/microsoft/cascadia-code/releases">Cascadia 코드 GitHub 릴리스 페이지</a>에서 설치할 수 있습니다.</p>



<p class="wp-block-paragraph">위의 GitHub 페이지에서 파일을 다운(<a href="https://github.com/microsoft/cascadia-code/releases/download/v2009.22/CascadiaCode-2009.22.zip">CascadiaCode-2009.22.zip</a>)받고 압축해제하여 폰트를 설치합니다.(ttf 파일 설치)</p>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2021/01/ttf.png" alt="" class="wp-image-14539" width="490" height="189"/></figure>



<h2 class="wp-block-heading">PowerShell을 사용하여 Posh-Git 및 Oh-My-Posh를 설치</h2>



<p class="wp-block-paragraph">Windows terminal을 관리자 모드로 실행하여 진행합니다.</p>



<p class="wp-block-paragraph"><a href="https://github.com/dahlbyk/posh-git">Posh-Git</a>은 Git 명령, 매개 변수, 원격 항목 및 분기 이름에 대한 탭 완성뿐만 아니라 프롬프트에도 Git 상태 정보를 추가합니다.&nbsp;<a href="https://github.com/JanDeDobbeleer/oh-my-posh">Oh-My-Posh</a>는 PowerShell 프롬프트에 대한 테마 기능을 제공합니다. <a href="https://docs.microsoft.com/ko-kr/powershell/module/psreadline/?view=powershell-6">PSReadline</a>을 사용하면 PowerShell의 명령줄 편집 환경을 사용자 지정할 수 있습니다.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="powershell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">PS C:\Users\jayden> Install-Module posh-git -Scope CurrentUser

계속하려면 NuGet 공급자가 필요합니다.
NuGet 기반 리포지토리를 조작하려면 PowerShellGet에 NuGet 공급자 버전 '2.8.5.201' 이상이 필요합니다. 'C:\Program
Files\PackageManagement\ProviderAssemblies' 또는
'C:\Users\jayden\AppData\Local\PackageManagement\ProviderAssemblies'에서 NuGet 공급자를 사용할 수 있어야 합니다. 또한
'Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force'를 실행하여 NuGet 공급자를 설치할 수 있습니다.
지금 PowerShellGet에서 NuGet 공급자를 설치하고 가져오시겠습니까?
[Y] 예(Y)  [N] 아니요(N)  [S] 일시 중단(S)  [?] 도움말 (기본값은 "Y"): y

신뢰할 수 없는 리포지토리
신뢰할 수 없는 리포지토리에서 모듈을 설치하는 중입니다. 이 리포지토리를 신뢰하는 경우 Set-PSRepository cmdlet을
실행하여 InstallationPolicy 값을 변경하십시오. 'PSGallery'에서 모듈을 설치하시겠습니까?
[Y] 예(Y)  [A] 모두 예(A)  [N] 아니요(N)  [L] 모두 아니요(L)  [S] 일시 중단(S)  [?] 도움말 (기본값은 "N"): a
PS C:\Users\jayden> Install-Module oh-my-posh -Scope CurrentUser

신뢰할 수 없는 리포지토리
신뢰할 수 없는 리포지토리에서 모듈을 설치하는 중입니다. 이 리포지토리를 신뢰하는 경우 Set-PSRepository cmdlet을
실행하여 InstallationPolicy 값을 변경하십시오. 'PSGallery'에서 모듈을 설치하시겠습니까?
[Y] 예(Y)  [A] 모두 예(A)  [N] 아니요(N)  [L] 모두 아니요(L)  [S] 일시 중단(S)  [?] 도움말 (기본값은 "N"): a
PS C:\Users\jayden> Install-Module -Name PSReadLine -Scope CurrentUser -Force -SkipPublisherCheck</pre>



<h2 class="wp-block-heading">PowerShell 프롬프트 설정</h2>



<p class="wp-block-paragraph">터미널에서 nodepad $PROFILE을 입력하여 PowerShell 실행 시 설정할 내용을 다음과 같이 작성하고 저장합니다.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox</pre>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-1.png" alt="" class="wp-image-14541" width="930" height="563" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-1.png 930w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-1-768x465.png 768w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-1-150x91.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-1-300x182.png 300w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-1-696x421.png 696w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-1-694x420.png 694w" sizes="auto, (max-width: 930px) 100vw, 930px" /></figure>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-2.png" alt="" class="wp-image-14542" width="940" height="456" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-2.png 940w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-2-768x373.png 768w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-2-150x73.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-2-300x146.png 300w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-2-696x338.png 696w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-2-866x420.png 866w" sizes="auto, (max-width: 940px) 100vw, 940px" /></figure>



<p class="wp-block-paragraph">설정 후 Windows terminal을 재실행 합니다. 아래와 같은 오류가 발생하면 Set-ExecutionPolicy RemoteSigned로 정책을 설정하고 다시 실행합니다.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

새로운 크로스 플랫폼 PowerShell 사용 https://aka.ms/pscore6

PSReadline 모듈을 로드할 수 없습니다. PSReadline 없이 콘솔이 실행되고 있습니다.
. : 이 시스템에서 스크립트를 실행할 수 없으므로 C:\Users\jayden\Documents\WindowsPowerShell\Microsoft.PowerShell_profil
e.ps1 파일을 로드할 수 없습니다. 자세한 내용은 about_Execution_Policies(https://go.microsoft.com/fwlink/?LinkID=135170)
를 참조하십시오.
위치 줄:1 문자:3
+ . 'C:\Users\jayden\Documents\WindowsPowerShell\Microsoft.PowerShell_p ...
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : 보안 오류: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess
PS C:\Windows\system32> Set-ExecutionPolicy RemoteSigned

실행 규칙 변경
실행 정책은 신뢰하지 않는 스크립트로부터 사용자를 보호합니다. 실행 정책을 변경하면 about_Execution_Policies 도움말
항목(https://go.microsoft.com/fwlink/?LinkID=135170)에 설명된 보안 위험에 노출될 수 있습니다. 실행 정책을
변경하시겠습니까?
[Y] 예(Y)  [A] 모두 예(A)  [N] 아니요(N)  [L] 모두 아니요(L)  [S] 일시 중단(S)  [?] 도움말 (기본값은 "N"): a</pre>



<p class="wp-block-paragraph">Windows terminal에 출력되는 powershell의 모습이 변경된 것을 확인할 수 있습니다. 그러나 폰트 문제로 깨져 보이는 부분이 발생합니다.</p>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-0-1.png" alt="" class="wp-image-14546" width="840" height="160"/></figure>



<p class="wp-block-paragraph">상단의 드롭 다운(∨)메뉴 &#8211; 설정을 클릭합니다.</p>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-4.png" alt="" class="wp-image-14547" width="840" height="194"/></figure>



<p class="wp-block-paragraph">settings.json 파일이 열리는데 아래 부분을 찾아 fontFace를 Cascadia Code PL로 변경하고 저장합니다.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="json" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">{
    // Make changes here to the powershell.exe profile.
    "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
    "name": "Windows PowerShell",
    "commandline": "powershell.exe",
    "fontFace": "Cascadia Code PL",
    "hidden": false
},</pre>



<p class="wp-block-paragraph">Windows terminal을 다시 띄우면 아래와 같이 깨지지 않고 출력되는 것을 확인할 수 있습니다.</p>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-5.png" alt="" class="wp-image-14548" width="840" height="169"/></figure>



<p class="wp-block-paragraph">Git Repository를 Clone 받은 디렉터리로 이동하면 다음과 같이 표시됩니다. 이제 Mac Terminal 못지않은 이쁜 터미널을 window에서도 사용할 수 있게 되었습니다.</p>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-6.png" alt="" class="wp-image-14549" width="840" height="466" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-6-150x84.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/powershell-6-696x385.png 696w" sizes="auto, (max-width: 840px) 100vw, 840px" /></figure>



<h2 class="wp-block-heading">WSL Ubuntu에서 Powerline 설정</h2>



<p class="wp-block-paragraph">wsl ubuntu 관련한 내용은 아래 포스팅에서 확인할 수 있습니다.</p>



<figure class="wp-block-embed is-type-wp-embed is-provider-아빠프로그래머의-좌충우돌-개발하기 wp-block-embed-아빠프로그래머의-좌충우돌-개발하기"><div class="wp-block-embed__wrapper">
<blockquote class="wp-embedded-content" data-secret="brnbmoxBu1"><a href="https://www.daddyprogrammer.org/post/1489/windows10-ubuntu-bash-shell/">Windows10 OpenSSH 클라이언트 활성화, 개발자 모드 + Ubuntu Linux 활성화</a></blockquote><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  title="&#8220;Windows10 OpenSSH 클라이언트 활성화, 개발자 모드 + Ubuntu Linux 활성화&#8221; &#8212; 아빠프로그래머의 좌충우돌 개발하기!" src="https://www.daddyprogrammer.org/post/1489/windows10-ubuntu-bash-shell/embed/#?secret=dQ8DwElHyb#?secret=brnbmoxBu1" data-secret="brnbmoxBu1" width="600" height="338" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
</div></figure>



<p class="wp-block-paragraph">만약 windows에서 제공하는 wsl ubuntu를 사용한다면 ubuntu terminal에서도 동일하게 위 내용을 적용할 수 있습니다. ubuntu 기본 터미널의 모습은 다음과 같습니다. </p>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-0.png" alt="" class="wp-image-14553" width="840" height="85"/></figure>



<h2 class="wp-block-heading">Go 및 Powerline-Go 설치</h2>



<p class="wp-block-paragraph">ubuntu를 실행하고 터미널에서 다음과 같이 Go 및 Powerline-Go를 설치합니다.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">$ sudo apt-get update
$ sudo apt install golang-go
// 설치 내용 생략
$ go get -u github.com/justjanne/powerline-go
// 설치 내용 생략</pre>



<h2 class="wp-block-heading">Update .bashrc file</h2>



<p class="wp-block-paragraph">bash가 실행될 때마다 powerline-go를 실행하도록 설정합니다. <code>nano ~/.bashrc</code>&nbsp;또는 선택한 텍스트 편집기를 사용하여&nbsp;<code>~/.bashrc</code>&nbsp;파일을 열고 다음과 같이 작성하고 저장합니다.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="powershell" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">GOPATH=$HOME/go
function _update_ps1() {
    PS1="$($GOPATH/bin/powerline-go -error $?)"
}
if [ "$TERM" != "linux" ] &amp;&amp; [ -f "$GOPATH/bin/powerline-go" ]; then
    PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi</pre>



<p class="wp-block-paragraph">ubuntu 터미널을 다시 띄우면 기본 터미널의 모습과 달라진 것을 볼 수 있습니다. 다만 폰트 때문에 깨져 보이는 부분이 발생합니다.</p>



<figure class="wp-block-image size-large is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-01.png" alt="" class="wp-image-14554" width="840" height="85"/></figure>



<p class="wp-block-paragraph">터미널 속성에 들어가 폰트를 Cascadia Code PL로 변경 합니다.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="453" height="559" src="http://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-02.png" alt="" class="wp-image-14555" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-02.png 453w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-02-150x185.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-02-300x370.png 300w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-02-324x400.png 324w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-02-340x420.png 340w" sizes="auto, (max-width: 453px) 100vw, 453px" /></figure>



<p class="wp-block-paragraph">확인을 누르고 나오면 깨져 보이던 부분이 사라지고 정상적으로 표시되는 것을 확인할 수 있습니다.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1468" height="766" src="http://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-03.png" alt="" class="wp-image-14556" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-03.png 1468w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-03-1024x534.png 1024w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-03-768x401.png 768w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-03-150x78.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-03-300x157.png 300w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-03-696x363.png 696w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-03-1068x557.png 1068w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-03-805x420.png 805w" sizes="auto, (max-width: 1468px) 100vw, 1468px" /></figure>



<p class="wp-block-paragraph">만약 위에서 설정한 windows terminal을 이용한다면 폰트 설정도 필요 없습니다. windows terminal에서 ubuntu로 접속하면 설정해둔 oh-my-posh가 그대로 적용되기 때문입니다.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1115" height="624" src="http://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-04.png" alt="" class="wp-image-14557" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-04.png 1115w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-04-1024x573.png 1024w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-04-768x430.png 768w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-04-150x84.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-04-300x168.png 300w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-04-696x390.png 696w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-04-1068x598.png 1068w, https://www.daddyprogrammer.org/wp-content/uploads/2021/01/ubuntu-04-750x420.png 750w" sizes="auto, (max-width: 1115px) 100vw, 1115px" /></figure>



<p class="wp-block-paragraph">이제부터는 Windows에서 멋지게 변경된 terminal을 사용하여 기분 좋게 개발하면 됩니다!!</p>
<p>The post <a href="https://www.daddyprogrammer.org/post/14536/windows-powershell-oh-my-posh/">Windows powershell을 mac terminal처럼 예쁘게 꾸며보자(Oh-My-Posh)</a> appeared first on <a href="https://www.daddyprogrammer.org">아빠프로그래머의 좌충우돌 개발하기!</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.daddyprogrammer.org/post/14536/windows-powershell-oh-my-posh/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		
		<series:name><![CDATA[Windows 개발환경]]></series:name>
	</item>
		<item>
		<title>Windows10 OpenSSH 클라이언트 활성화, 개발자 모드 + Ubuntu Linux 활성화</title>
		<link>https://www.daddyprogrammer.org/post/1489/windows10-ubuntu-bash-shell/</link>
					<comments>https://www.daddyprogrammer.org/post/1489/windows10-ubuntu-bash-shell/#comments</comments>
		
		<dc:creator><![CDATA[happydaddy]]></dc:creator>
		<pubDate>Wed, 24 Apr 2019 00:16:43 +0000</pubDate>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[DeveloperMode]]></category>
		<category><![CDATA[OpenSSH]]></category>
		<guid isPermaLink="false">http://3.36.120.4/?p=1489</guid>

					<description><![CDATA[<p>Windows10 최신 버전부터 윈도우상에서 ssh명령어를 지원하거나, Ubuntu Linux를 사용할 수 있도록 기능을 제공하기 시작하였습니다. 기존 윈도우 환경에서는 개발자가 리눅스나 Mac 환경처럼 서버 개발을 하기가 어려웠는데 매우 좋은 기능이 생겼다고 보면 됩니다. 지금부터 해당 기능을 활성화하는 방법을 설명합니다. OpenSSH 클라이언트 활성화 메뉴 &#8211; 마우스 오른쪽키 클릭 &#8211; 앱 및 기능 선택적 기능 관리 클릭 기능 추가 [&#8230;]</p>
<p>The post <a href="https://www.daddyprogrammer.org/post/1489/windows10-ubuntu-bash-shell/">Windows10 OpenSSH 클라이언트 활성화, 개발자 모드 + Ubuntu Linux 활성화</a> appeared first on <a href="https://www.daddyprogrammer.org">아빠프로그래머의 좌충우돌 개발하기!</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Windows10 최신 버전부터 윈도우상에서 ssh명령어를 지원하거나, Ubuntu Linux를 사용할 수 있도록 기능을 제공하기 시작하였습니다. 기존 윈도우 환경에서는 개발자가 리눅스나 Mac 환경처럼 서버 개발을 하기가 어려웠는데 매우 좋은 기능이 생겼다고 보면 됩니다. 지금부터 해당 기능을 활성화하는 방법을 설명합니다.</p>



<h2 class="wp-block-heading">OpenSSH 클라이언트 활성화</h2>



<h4 class="wp-block-heading">메뉴 &#8211; 마우스 오른쪽키 클릭 &#8211; 앱 및 기능</h4>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_1.png" alt="" class="wp-image-2622" width="308" height="581" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_1.png 308w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_1-150x283.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_1-300x566.png 300w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_1-223x420.png 223w" sizes="auto, (max-width: 308px) 100vw, 308px" /></figure>



<h4 class="wp-block-heading">선택적 기능 관리 클릭</h4>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_2.png" alt="" class="wp-image-2624" width="843" height="422" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_2.png 843w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_2-768x384.png 768w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_2-150x75.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_2-300x150.png 300w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_2-696x348.png 696w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_2-839x420.png 839w" sizes="auto, (max-width: 843px) 100vw, 843px" /></figure>



<h4 class="wp-block-heading">기능 추가 선택</h4>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_3.png" alt="" class="wp-image-2625" width="491" height="278" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_3.png 491w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_3-150x85.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_3-300x170.png 300w" sizes="auto, (max-width: 491px) 100vw, 491px" /></figure>



<h4 class="wp-block-heading">OpenSSH 클라이언트 설치</h4>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_5.png" alt="" class="wp-image-2626" width="476" height="389" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_5.png 476w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_5-150x123.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_5-300x245.png 300w" sizes="auto, (max-width: 476px) 100vw, 476px" /></figure>



<p class="wp-block-paragraph"> 이제 CMD 창에서 다음과 같이 ssh를 이용할 수 있게 되었습니다.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="atomic" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">$ ssh
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
           [-D [bind_address:]port] [-E log_file] [-e escape_char]
           [-F configfile] [-I pkcs11] [-i identity_file]
           [-J [user@]host[:port]] [-L address] [-l login_name] [-m mac_spec]
           [-O ctl_cmd] [-o option] [-p port] [-Q query_option] [-R address]
           [-S ctl_path] [-W host:port] [-w local_tun[:remote_tun]]
           destination [command]</pre>



<p class="wp-block-paragraph">다음과 같이 ssh와 연관된 명령어는 모두 사용할 수 있게 되었습니다.</p>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_6.png" alt="" class="wp-image-2636" width="260" height="296" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_6.png 260w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ssh_6-150x171.png 150w" sizes="auto, (max-width: 260px) 100vw, 260px" /></figure>



<h2 class="wp-block-heading">개발자 모드 활성화</h2>



<h4 class="wp-block-heading">윈도우 &#8211; 설정</h4>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2019/05/settings.png" alt="" class="wp-image-2583" width="389" height="639" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2019/05/settings.png 389w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/settings-150x246.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/settings-300x493.png 300w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/settings-256x420.png 256w" sizes="auto, (max-width: 389px) 100vw, 389px" /></figure>



<h4 class="wp-block-heading">설정 &#8211; 업데이트 및 보안</h4>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2019/05/window10_settings_1.png" alt="" class="wp-image-2584" width="1000" height="564" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2019/05/window10_settings_1.png 1000w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/window10_settings_1-768x433.png 768w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/window10_settings_1-150x85.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/window10_settings_1-300x169.png 300w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/window10_settings_1-696x393.png 696w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/window10_settings_1-745x420.png 745w" sizes="auto, (max-width: 1000px) 100vw, 1000px" /></figure>



<h4 class="wp-block-heading">개발자용 &#8211; 개발자 모드 체크</h4>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2019/05/setting2.png" alt="" class="wp-image-2586" width="926" height="580" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2019/05/setting2.png 926w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/setting2-768x481.png 768w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/setting2-150x94.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/setting2-300x188.png 300w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/setting2-696x436.png 696w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/setting2-671x420.png 671w" sizes="auto, (max-width: 926px) 100vw, 926px" /></figure>



<h2 class="wp-block-heading">Ubuntu Linux 사용하기</h2>



<h4 class="wp-block-heading"> 제어판 실행</h4>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel.png" alt="" class="wp-image-2605" width="388" height="636" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel.png 388w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel-150x246.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel-300x492.png 300w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel-256x420.png 256w" sizes="auto, (max-width: 388px) 100vw, 388px" /></figure>



<h4 class="wp-block-heading">제어판 &#8211; 프로그램</h4>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel_2.png" alt="" class="wp-image-2606" width="863" height="449" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel_2.png 863w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel_2-768x400.png 768w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel_2-150x78.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel_2-300x156.png 300w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel_2-696x362.png 696w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel_2-807x420.png 807w" sizes="auto, (max-width: 863px) 100vw, 863px" /></figure>



<h4 class="wp-block-heading">프로그램 &#8211; Window 기능 켜기/끄기</h4>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel_3.png" alt="" class="wp-image-2607" width="858" height="289" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel_3.png 858w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel_3-768x259.png 768w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel_3-150x51.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel_3-300x101.png 300w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel_3-696x234.png 696w" sizes="auto, (max-width: 858px) 100vw, 858px" /><figcaption><br></figcaption></figure>



<h4 class="wp-block-heading">Linux용 window 하위 시스템 체크</h4>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel_4.png" alt="" class="wp-image-2608" width="414" height="367" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel_4.png 414w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel_4-150x133.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/controlpannel_4-300x266.png 300w" sizes="auto, (max-width: 414px) 100vw, 414px" /></figure>



<h4 class="wp-block-heading">이제  Microsoft Store 앱을 실행합니다.</h4>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2019/05/store.png" alt="" class="wp-image-2593" width="386" height="630" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2019/05/store.png 386w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/store-150x245.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/store-300x490.png 300w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/store-257x420.png 257w" sizes="auto, (max-width: 386px) 100vw, 386px" /></figure>



<h4 class="wp-block-heading">Ubuntu 앱을 검색하여 설치합니다.</h4>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2019/05/ubuntu.png" alt="" class="wp-image-2596" width="964" height="471" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ubuntu.png 964w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ubuntu-768x375.png 768w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ubuntu-150x73.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ubuntu-300x147.png 300w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ubuntu-696x340.png 696w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ubuntu-860x420.png 860w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ubuntu-533x261.png 533w" sizes="auto, (max-width: 964px) 100vw, 964px" /></figure>



<h4 class="wp-block-heading">설치 완료후 ubuntu 앱을 실행합니다. 또는 cmd창에서 bash라고 입력합니다.</h4>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2019/05/ubuntu_app.png" alt="" class="wp-image-2599" width="386" height="635" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ubuntu_app.png 386w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ubuntu_app-150x247.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ubuntu_app-300x494.png 300w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ubuntu_app-255x420.png 255w" sizes="auto, (max-width: 386px) 100vw, 386px" /></figure>



<p class="wp-block-paragraph">최초 실행시 install을 위해 시간이 소요됩니다. 완료되면 사용자 계정을 등록하는 과정을 거치고 linux shell이 실행됩니다. ubuntu 리눅스 환경과 동일하다고 보면 됩니다.</p>



<figure class="wp-block-image is-resized"><img loading="lazy" decoding="async" src="http://www.daddyprogrammer.org/wp-content/uploads/2019/05/ubuntu7.png" alt="" class="wp-image-2600" width="957" height="503" srcset="https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ubuntu7.png 957w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ubuntu7-768x404.png 768w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ubuntu7-150x79.png 150w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ubuntu7-300x158.png 300w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ubuntu7-696x366.png 696w, https://www.daddyprogrammer.org/wp-content/uploads/2019/05/ubuntu7-799x420.png 799w" sizes="auto, (max-width: 957px) 100vw, 957px" /></figure>



<p class="wp-block-paragraph">ubuntu의 홈 디렉터리는 /home/사용자명 입니다. ubuntu에서 window의 파일시스템은 다음과 같이 접근 가능합니다.</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="atomic" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">$ cd /mnt/c
happydaddy@PC:/mnt/c$ ls
'$Recycle.Bin'   Config.Msi                ProgramData                  Windows        swapfile.sys
BOOTSECT.BAK   'Program Files'            Temp                         jdk-11.0.2+9 Boot           'Program Files (x86)'      Users                        pagefile.sys
happydaddy@kimyonghwa-PC:/mnt/c$ cd /mnt/d
happydaddy@kimyonghwa-PC:/mnt/d$ ls
'$RECYCLE.BIN'   DriversBackup  'System Volume Information'</pre>
<p>The post <a href="https://www.daddyprogrammer.org/post/1489/windows10-ubuntu-bash-shell/">Windows10 OpenSSH 클라이언트 활성화, 개발자 모드 + Ubuntu Linux 활성화</a> appeared first on <a href="https://www.daddyprogrammer.org">아빠프로그래머의 좌충우돌 개발하기!</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.daddyprogrammer.org/post/1489/windows10-ubuntu-bash-shell/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
		
		<series:name><![CDATA[Windows 개발환경]]></series:name>
	</item>
	</channel>
</rss>
