사용자 도구

사이트 도구


windows:wsl

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
다음 판 양쪽 다음 판
windows:wsl [2018/05/17 23:23]
kwon37xi [참조]
windows:wsl [2019/01/17 14:27]
kwon37xi
줄 8: 줄 8:
  
 ===== 설치 ===== ===== 설치 =====
-  * https://docs.microsoft.com/ko-kr/windows/wsl/install-win10 참조 +  * https://docs.microsoft.com/ko-kr/windows/wsl/install-win10 참조 
 +  * Unicode Locale 지정<code sh> 
 +sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 
 +</code> 
 + 
 +===== Upgrade ===== 
 +  * 16.04 -> 18.04 업그레이드가 가능하다. [[https://superuser.com/questions/1317619/can-i-upgrade-my-existing-ubuntu-installation-in-wsl-from-16-04-to-18-04|windows subsystem for linux - Can I upgrade my existing Ubuntu installation in WSL from 16.04 to 18.04? - Super User]] 
 +  * [[https://blogs.msdn.microsoft.com/commandline/2018/07/09/upgrading-ubuntu/|A Guide to Upgrading your Ubuntu App’s Release – Windows Command Line Tools For Developers]] 
 + 
 +<code sh> 
 +# 기본적으로는 아래 명령만으로 가능. 
 +sudo do-release-upgrade -d 
 + 
 +lsb_release -a # 버전 검사 
 +</code> 
 + 
 +===== 성능 ===== 
 +  * 성능이 매우 떨어진다. 
 +  * [[https://medium.com/@leandrw/speeding-up-wsl-i-o-up-than-5x-fast-saving-a-lot-of-battery-life-cpu-usage-c3537dd03c74|Speeding up WSL I/O up than 5x fast + saving a lot of battery life & CPU usage]] 
 +  * 바이러스 백신 혹은 Windows Defender 의 실시간 감시를 끄고, ''%USERPROFILE%\AppData\Local\Packages'' 폴더에서 '' CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc'' 처럼 생긴 폴더를 제외 처리해주면 약간 빨라진다. 
 +  * 위 외에도 ''Ahnlab Safe Transaction'', ''nProtect'' 등의 강제로 설치되는 보안툴 때문일 수도 있다. 
 +  * 그래도 느린 느낌이라 결국 ''oh-my-bash'' 같은 것은 사용하지 않고 기본 [[:git|git]] Git + Color prompt 를 사용하고 있음. 
 + 
 +===== .bashrc, .bash_profile ===== 
 +  * ''.bash_profile''을 만들것이라면, 무조건 아래 항목이 있어야 ''.bashrc''를 로딩한다. 
 + 
 +<code sh> 
 +if [[ -f ~/.bashrc ]] ; then 
 +        . ~/.bashrc 
 +fi 
 +</code> 
 + 
 +===== Console ===== 
 +  * [[https://github.com/rprichard/wslbridge|wslbridge]] linux bash 콘솔을 Windows 콘솔과 통합해주는 중계자.
   * [[https://conemu.github.io/en/BashOnWindows.html|ConEmu | Bash on Ubuntu on Windows in ConEmu (WSL)]] [[windows:console:conemu|ConEmu Windows Terminal Emulator]] 사용하기   * [[https://conemu.github.io/en/BashOnWindows.html|ConEmu | Bash on Ubuntu on Windows in ConEmu (WSL)]] [[windows:console:conemu|ConEmu Windows Terminal Emulator]] 사용하기
-  * conemu, wslterminal 등에서는 WSL Bash CPU 점유율이 폭증하는 현상이 있으나 cmder 에서는 정상 작동했음.+  * [[https://conemu.github.io/en/BashOnWindows.html|ConEmu | Bash on Ubuntu on Windows in ConEmu (WSL)]] WSL Linux bash의 콘솔 접근방법이 Windows 표준과 달라서 ''wslbridge'' 등의 중계 방식이 필요하다. 
 +  * conemu, wslterminal 등에서는 WSL Bash CPU 점유율이 폭증하는 현상이 있으나 cmder 에서는 정상 작동했음. -> WSL 최신버전 업그레이드하면 conemu 등에서도 문제 없다고 함.
  
 ===== ssh-agent 대체 ===== ===== ssh-agent 대체 =====
-  * [[https://github.com/vuori/weasel-pageant|vuori/weasel-pageant: An ssh-agent compatible helper for interacting with Pageant from processes running on the Windows Subsystem for Linux.]] +  * [[windows:wsl:weasel_pageant|Weasel Pageant WSL Linux ssh-ageant to putty pageant]] 
-  * [[https://medium.com/@rkttu/wsl-ubuntu%EC%97%90%EC%84%9C-putty-pageant-%EC%97%B0%EB%8F%99%ED%95%98%EA%B8%B0-942660a32041|WSL Ubuntu에서 PuTTY Pageant 연동하기 – 남현 – Medium]]+===== Maven/Gradle 등 ===== 
 +  * 아래 하지 말 것. File Lock 문제로 실제로 사용하기 힘듬. 
 + 
 +  * wsl 설치 후 [[java:maven:settings|Maven 설정]] ''settings.xml'' 
 +  * [[:gradle|Gradle]]의 사용자 디렉토리(''GRADLE_USER_HOME'') Windows와 맞춰준다.
  
 ===== 주의 ===== ===== 주의 =====
windows/wsl.txt · 마지막으로 수정됨: 2021/12/31 17:29 저자 kwon37xi