Show pageOld revisionsBacklinksExport to PDFBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== WSL ====== > Windows Subsystem for Linux ===== Prerequisite ===== ===== Install ====== - Lunux용 WSL 하위 시스템 사용 설정, Powershell 관리자 권한으로 명령 실행 후 재부팅 <sxh powershell> dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart </sxh> - Virtual Machine 기능 사용, Powershell 관리자 권한으로 명령 실행 후 재부팅<sxh powershell> dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart </sxh> - WSL2를 기본 버전으로 설정 <sxh powershell> wsl --set-default-version 2 </sxh> - MS Store에서 Ubuntu 다운로드 설치 - 배포버전 확인 <sxh powershell> wsl --list --verbose </sxh> - wsl2 shutdown <sxh powershell> wsl --shutdown </sxh> - 한글 폰트 설치 <sxh bash> $ sudo apt update && sudo apt upgrade -y $ sudo apt-get install fonts-nanum fonts-nanum-coding fonts-nanum-extra </sxh> - 시스템 한글 설정 <sxh bash> # locale 확인 $ locale $ sudo dpkg-reconfigure loales </sxh> - 한글 입력기 <sxh bash> sudo apt install fcitx fcitx-hangul fonts-noto-cjk dbus-x11 im-config #choose fcitx </sxh> ===== Running GUI App on WSL ===== ==== Prepare ==== <sxh powershell> Administrator> wsl --install Administrator> wsl --update Administrator> wsl --shutdown </sxh> ==== Gedit ==== <sxh bash> sudo apt install gedit -y </sxh> ''gedit ~/.bashrc'' ==== GIMP ==== <sxh bash> sudo apt install gimp -y </sxh> ''gimp'' ==== Nautilus ==== <sxh bash> sudo apt install nautilus -y </sxh> ''nautilus'' ==== VLC ==== <sxh bash> sudo apt install vlc -y </sxh> ''vlc'' ==== X11 ==== <sxh bash> sudo apt install x22-apps -y </sxh> ''xcalc'', ''xclock'', ''xeyes'' ==== Google Chrome ==== <sxh bash> cd /tmp sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo dpkg -i google-chrome-stable_current_amd64.deb sudo apt install --fix-broken -y sudo dpkg -i google-chrome-stable_current_amd64.deb </sxh> ''google-chrome'' ==== VS Code ==== - download .deb file at visual studio code official site - <sxh bash> sudo apt install ./filename </sxh> ''code'' ===== Uninstall WSL ===== * <sxh powershell> Administrator> wslconfig /l Administrator> wslconfig /u <name> </sxh> ===== python settings ===== * pip 설치<sxh bash> $ sudo apt update & sudo apt upgrade -y $ sudo apt install python3-pip $ sudo apt install python3-venv </sxh> * 가상환경 생성<sxh bash> $ python3 -m venv .venv </sxh> * 가상환경 활성화<sxh bash> $ source .venv/bin/activate 또는 $ . .venv/bin/activate </sxh> * 가상환경 비활성화<sxh bash> $ deactivate </sxh> ===== References ===== * [[https://blog.wslhub.com/windows-10%EC%97%90-%ED%95%9C%EA%B5%AD%EC%96%B4-%EC%9E%85%EC%B6%9C%EB%A0%A5%EC%9D%B4-%EA%B0%80%EB%8A%A5%ED%95%9C-%EB%A6%AC%EB%88%85%EC%8A%A4-%EB%8D%B0%EC%8A%A4%ED%81%AC%ED%86%B1-%EC%84%A4%EC%B9%98%ED%95%98%EA%B8%B0-77208fb019db|Windows 10에 한국어 입출력이 가능한 리눅스 데스크톱 설치하기]] * [[https://learn.microsoft.com/ko-kr/windows/wsl/tutorials/gui-apps|Linux용 Windows 하위 시스템 Linux GUI 앱 실행]] * [[https://julialang.kr/?p=3181|[WSL2,한글,Ubuntu] Windows WSL2 설치]] * [[https://digiconfactory.tistory.com/entry/WSL2-%EC%9A%B0%EB%B6%84%ED%88%AC-%EB%A6%AC%EB%88%85%EC%8A%A4-%ED%95%9C%EA%B8%80-%EC%9E%85%EB%A0%A5%EA%B8%B0|WSL 잡설 / WSL2 우분투 리눅스 한글 입력기 설치 - 윈도우11]] * [[https://velog.io/@mythos/Windows-WSL2-%EA%B0%9C%EB%B0%9C-%ED%99%98%EA%B2%BD-%EC%84%A4%EC%A0%95|[Windows] WSL2 개발 환경 설정]] * [[https://mulder21c.github.io/2021/01/28/setting-up-wsl-2-dev-env-and-zsh-on-windws-10/|개발환경 WSL2 + zsh로 갈아타기]] * [[https://blog.fotogrammer.com/python-%EA%B0%9C%EB%B0%9C-%ED%99%98%EA%B2%BD-%EA%B5%AC%EC%B6%95%EA%B8%B0-on-wsl2/|Python 개발 환경 구축기 on WSL2]] public/computer/wsl.txt Last modified: 2022/12/29 16:17by alex