====== WSL 2 ====== * [[https://docs.microsoft.com/ko-kr/windows/wsl/wsl2-index|WSL 2 | Microsoft Docs]] * [[https://docs.microsoft.com/ko-kr/windows/wsl/install-win10|install wsl 2 win 10]] * [[https://docs.microsoft.com/en-us/windows/wsl/release-notes|Release Notes for WSL | Microsoft Docs]] * [[windows:windows_terminal|Windows Terminal]] * [[windows:development_environment|Windows 개발 환경 구축]] * [[https://wslhub.com/wsl-firststep/firststep/install/|커맨드라인으로 WSL 2 설치하기 - WSL 시작하기]] * [[devops:multipass|Ubuntu Multipass]] ===== 물리 ext4 디스크 마운트 ===== * 물리 ext4 파티션 마운팅 가능. 이는 곳 윈도우 탐색기에서 리눅스 파티션을 탐색할수 있게 된다는 의미. * [[https://docs.microsoft.com/ko-kr/windows/wsl/wsl2-mount-disk|WSL 2에서 linux 디스크 탑재 시작 (미리 보기) | Microsoft Docs]] * [[https://devblogs.microsoft.com/commandline/access-linux-filesystems-in-windows-and-wsl-2/|Access Linux filesystems in Windows and WSL 2 | Windows Command Line]] * [[https://www.omgubuntu.co.uk/2020/09/wsl-2-access-ext4-from-windows-10?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+d0od+%28OMG%21+Ubuntu%21%29|WSL 2 is Getting Even Tighter Windows/Linux Integration - OMG! Ubuntu!]] ===== Memory 누수? ===== Tip of the Week: WSL2 using too much memory? run `echo 1 > /proc/sys/vm/drop_caches` as root to reclaim your memory! echo 1 > /proc/sys/vm/drop_caches ===== 각종 설정 /etc/wsl.conf ===== * [[https://kibua20.tistory.com/63|WSL 2.0 Global configuration (.wslconfig) 을 통한 성능 향상]] * [[https://webdir.tistory.com/544|WEBDIR :: 관리 및 구성 - WSL]] * [[https://docs.microsoft.com/ko-kr/windows/wsl/wsl-config|Linux 배포 관리 | Microsoft Docs]] ==== wsl.conf booting 시 시작 명령 지정 ==== [boot] command= ==== VPN 상에서 작동 안하는 문제 ==== * VPN 연결시에 wsl 이 제대로 작동안한다. * https://docs.microsoft.com/ko-kr/windows/wsl/troubleshooting 에서 ''Bash가 VPN에 연결되면 네트워크 연결이 끊어짐'' 항목 * [[https://gist.github.com/machuu/7663aa653828d81efbc2aaad6e3b1431|Workaround for WSL2 network broken on VPN]] : 유력한 해결책. ''resolv.conf'' 고정기법 * [[https://github.com/AmmarRahman/wsl-vpn|AmmarRahman/wsl-vpn]] * [[https://github.com/microsoft/WSL/issues/4246|[WSL2] Checkpoint VPN breaks network connectivity · Issue #4246 · microsoft/WSL]] * [[https://github.com/sakai135/wsl-vpnkit|sakai135/wsl-vpnkit: Provide network connectivity to the WSL 2 VM while connected to VPNs on the Windows host]] * [[https://gist.github.com/machuu/7663aa653828d81efbc2aaad6e3b1431|Workaround for WSL2 network broken on VPN · GitHub]] * [[https://jamespotz.github.io/blog/how-to-fix-wsl2-and-cisco-vpn|How to fix WSL2 and Cisco Anyconnect VPN internet issue | ⚡ James Robert Rooke Portfolio]] * [[https://www.youtube.com/watch?v=yR2NsssY7z8&ab_channel=HowToFixItStudio|(1) How to fix WSL2 networking with VPN connection - YouTube]] ==== systemd ==== * 2023년 이후 최신 Ubuntu 는 systemd 가 기본으로 켜진다. * [[https://github.com/nullpo-head/wsl-distrod|nullpo-head/wsl-distrod: Distrod is a meta-distro for WSL 2 which installs Ubuntu, Arch, Debian, Gentoo, etc. with systemd in a minute for you. Distrod also has built-in auto-start feature on Windows startup and port forwarding ability.]] * [[https://ubuntu.com/blog/ubuntu-wsl-enable-systemd|Systemd support lands in WSL – unleash the full power of Ubuntu today | Ubuntu]] * [[https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/|Systemd support is now available in WSL! - Windows Command Line]] ===== 참조 ===== * [[https://itnext.io/how-to-have-a-clean-dev-environment-like-wsl-2-using-multipass-on-linux-mac-or-windows-6828a78b87d7|How to have a clean dev environment like WSL 2 using Multipass on Linux, Mac or Windows | by Saeed Zarinfam | ITNEXT]] * [[https://itnext.io/using-wsl-2-to-develop-java-application-on-windows-8aac1123c59b|Using WSL 2 to develop Java application on Windows | by Saeed Zarinfam | Sep, 2020 | ITNEXT]] * https://discourse.ubuntu.com/t/announcing-ubuntu-on-windows-community-preview/19789 * [[https://www.sitepoint.com/wsl2/|WSL2: Developer's Guide to Windows Subsystem for Linux 2 - SitePoint]] * [[https://blog.wslhub.com/%EC%9C%A0%EB%A3%8C%EB%A1%9C-%EC%A0%84%ED%99%98%EB%90%98%EB%8A%94-%EB%8F%84%EC%BB%A4-%EB%8D%B0%EC%8A%A4%ED%81%AC%ED%86%B1-%EB%8C%80%EC%95%88-%EC%B0%BE%EA%B8%B0-%EC%9C%88%EB%8F%84%EC%9A%B0-%EC%82%AC%EC%9A%A9%EC%9E%90-74f1a261eb32|유료화 정책 단행이 예정된 Windows용 도커 데스크톱을 대체할 수 있는 방법을 알아봅니다. | WSLHUB]] * [[https://netmarble.engineering/journey-to-wsl2-and-trouble-shooting/|가볍게 쓰려했던 WSL2가 무겁게 다가온 순간 - 넷마블 기술 블로그]] * [[https://netmarble.engineering/wsl2-static-ip-scheduler-settings/|WSL2 활용도를 높여주는 고정 IP 설정 - 넷마블 기술 블로그]] * [[https://netmarble.engineering/docker-on-wsl2-without-docker-desktop/|도커 데스크톱 없이 구축하는 WSL2와 도커 개발 환경 - 넷마블 기술 블로그]] * [[https://netmarble.engineering/wsl-status-changed-to-stopped-after-closing-terminal/|잠깐 20초만 한눈을 팔면, 멈춰 서는 WSL - 넷마블 기술 블로그]] * [[https://velog.io/@composite/WSL-sudo-%EC%82%AC%EC%9A%A9-%EC%8B%9C-Windows-Hello-%EC%82%AC%EC%9A%A9%ED%95%98%EA%B8%B0|WSL sudo 사용 시 Windows Hello 사용하기]]