WSLãç»å ´ãã¦ãã大å¤ä¾¿å©ã«å©ç¨ãã¦ãã¾ãã 以åã¯VMwareãVirtualBoxã¨ãã£ãä»®æ³ãã·ã³ããã¼ã«ã«PCã¸å ¥ããããã¦ãã¾ããããç§ã®å ´åãããã¦ãã¯WSLã§è¶³ããæãã«ãªã£ã¦ãã¾ãã ç§ã®å ´åãç°å¢ã使ã£ã¦ãããã¡ã«ãã¯ã©ãã·ã¥ããããããã±ã¼ã¸ãããããã¾ããã¦è¨å®ãããããªã£ã¦å°ã£ããªã©ããã°ãã°ç°å¢ãæ»ããããã¨ãããã¾ãã ä»®æ³ãã·ã³ãå©ç¨ãã¦ããæã¯ãã®ã¤ã¡ã¼ã¸ã®ã¹ãããã·ã§ãããåå¾ãããã¨ã§ä¸¸ãã¨ããã¯ã¢ãããã¦ãã¾ããã WSL2ã§ãããã¯ã¢ãããããã¨ãå¯è½ã§ããæé ãã¡ã¢ãã¦ããã¾ãã ç°å¢ 2023å¹´1ææç¹ã®å 容ã«ãªãã¾ããWSLã¯çµæ§é²åãã¦ããå°è±¡ã§ãã®ã§ãè¨äºãå¤ããªã£ãéã¯æ³¨æã§ãã ï¼å°å ¥æé ãªã©åæã«æ¯ã¹ãã¨ããªã楽ã«ãªãã¾ããï¼ OSã¯Windows11 Proã§ããPowerShellããæä½ãã¾ãã PS > wsl --vers
ã¡ã¢ãªãã³ã ã·ã¹ãã ãã©ãã« MicrosoftWinDbg ããã«ã¼ã¹ã¯ãªã¼ã³ã®ã¡ã¢ãªãã³ãããåå ã解æããæ¹æ³ã Windows 使ç¨æã«èµ·ãããã«ã¼ã¹ã¯ãªã¼ã³ã§ãããä½æ çºçããã®ãï¼ã©ãããã°ããã®ãï¼ã¨æãããæ¹ã大åã ã¨æãã¾ããããã§ä»åã¯ãã«ã¼ã¹ã¯ãªã¼ã³çºçæã解æãã¼ã«ã«ããåå 究æã®ããããã«ã¤ãã¦ã®ã話ã«ãªãã¾ãã ãã³ããã¡ã¤ã«ã®å 容ã確èªããããã®ãã¼ã«WinDbgã¯Windows SDKãã¨ããMicrosoft社ããé å¸ããã¦ãã¾ãã®ã§ãã¡ãããã¦ã³ãã¼ãããã¤ã³ã¹ãã¼ã«ãã¾ãã ãã¦ã³ãã¼ãå¾ãwinsdksetup.exe ãå®è¡ãããæåã«ã¤ã³ã¹ãã¼ã«å ´æãåãããã®ã§ã åé¡ãªããã°ããã©ã«ãè¨å®ã®ã¾ã¾ã§[Next]ãã¯ãªãã¯ã 次ã¯ãã©ã¤ãã·ã¼è¨å®ã¨ãã¦ãã¤ã¯ãã½ããã«å¿åæ å ±ãéããã®ç¢ºèªãå«ãªã[No]ãé¸ãã§[Next]ãã¯ãªãã¯ã ã¤ã³ã¹
WSL2ã§ã¯ãã¤ã³ã¹ãã¼ã«ããUbuntuãä»®æ³ãã·ã³ã¨ãã¦ç¨¼åãããã¹ãã¨ã¯å¥ã®IPã¢ãã¬ã¹ãæãã¾ãããã®ããããã¹ã(Windows)ããWSL2(Ubuntu)ã§åãã½ããã¦ã§ã¢ãã¤ã¤ãéãWSL2ã®IPã¢ãã¬ã¹ãæå®ããå¿ è¦ãããå ´åãããã¾ãã ã§ã¯ãWSL2ã®IPã¢ãã¬ã¹ã¯ã©ã®ããã«ç¢ºèªããã°ããã§ãããã? ãªãã以ä¸è¨äºã®ããã«.wslconfigãè¨å®ãã¦ããã¨ãWSL2ä¸ã§ç¨¼åããã½ããã¦ã§ã¢ã«localhostã§ã¢ã¯ã»ã¹ã§ããããã«ãªãã®ã§ãããå°ãªãã¨ãèªåã®ç°å¢ã§ã¯ã.wslconfigããªãããã¾ãåããªãã£ããããã¹ãå´ã®ã½ããã¦ã§ã¢ãlocalhostããã¾ã解決ã§ããªãã£ããããå ´åãããã¾ããæ¬è¨äºã¯ããããã±ã¼ã¹ã§å½¹ã«ç«ã¤æ³å®ã§ãã ããWSL 2ãæ大ã®èª²é¡ã§ãã£ãâlocalhostâåé¡ã解決 ï½ãWindows 10ãBuild 18945ã
WSL2ã¯åå解決ãWindowsãã¹ãã«ãé¡ããã¦ããã®ã§ãããããåãã¾ãããã¨ãã話ã ã¤ã¼ãµãããã¢ããã¿ã¼ vEthernet (WSL) ã®IPv4ã¢ãã¬ã¹ãã¨ãã limitation /etc/resolv.conf㧠nameserver 8.8.8.8ã¨ããè¨å®ãã¦ãã¨ä½¿ããªã (ãããåå 㧠DISPLAY ç°å¢å¤æ°ã« 8.8.8.8:0 ãè¨å®ãã¦ãã¾ãæå ã®emacsã®æç»ãGoogleã«ãé¡ããã¦ãã¾ãã¾ãã) 2. ipconfig.exe ãå©ã ipconfig.exe | sed -e 's/\r//' | grep 'IPv4 Address' | head -n 1 | cut -d ':' -f 2 | awk '{print $1}' Windows IP æ§æ ã¤ã¼ãµããã ã¢ããã¿ã¼ ã¤ã¼ãµããã: æ¥ç¶åºæã® DNS ãµãã£ãã¯ã¹ . .
February 25, 2024 VSCode + WSL makes Windows awesome for web development Iâm kinda shocked. Windows actually got good for web developers. Between VSCode, WSL, and Intelâs latest desktop chips, Iâve been living with a PC for over a week that runs my programming tests faster than an M3 Max, ships with an excellent window manager out-the-box, and generally feels like a completely viable alternative t
KB5034441ã0x80070643ã¨ã©ã¼ã§ã¤ã³ã¹ãã¼ã«ã§ããªãã»å¤±æããã¨ã®ä¸å ·åå ±åãå¤æ°åºã¦ãã¾ãã Windows10ãWindows Server 2022ã«ã¯ãæ»æè ãã¿ã¼ã²ããã®PCã«ç©ççã«ã¢ã¯ã»ã¹ã§ããå ´åãWindowså復ç°å¢ (WinRE)ãæªç¨ãã¦BitLockerããã¤ãã¹ããæå·åãããã¼ã¿ã«ã¢ã¯ã»ã¹ã§ããã¨ããèå¼±æ§(CVE-2024-20666)ãããã¾ããKB5034441ã¯ãã®èå¼±æ§ãä¿®æ£ããWindows10ç¨ã®ã»ãã¥ãªãã£æ´æ°ããã°ã©ã ã(Windows Server 2022ç¨ã¯KB5034439) ãããããã®æ´æ°ããã°ã©ã ãã¤ã³ã¹ãã¼ã«ã»é©ç¨ããããã«ã¯å復ãã¼ãã£ã·ã§ã³ã«ããç¨åº¦ã®ç©ºã容éãå¿ è¦ã¨ããã¦ããã空ã容éã足ããªãå ´åã«ã¯ã以ä¸ã®ããããã®ã¨ã©ã¼ã¡ãã»ã¼ã¸ã表示ããã¾ãã Windows Recovery Environme
WSL2ã使ããããã«ãªã£ãã®ã§ãWindows ã§ã Docker ã使ã£ã¦ã¿ããã¨ã«ãã¾ãããDocker Desktop ãã¤ã³ã¹ãã¼ã«ããã¨ãç¡æ¡ä»¶ã§ Cãã©ã¤ãä¸ã«ä»®æ³ç°å¢ãä½ããã¾ããããCãã©ã¤ãã®ç©ºã容éãå°ãªããªã£ãã®ã§ãDockerç°å¢ãDãã©ã¤ãã«ç§»åããã¨ãã話ã 試ããç°å¢ Windows10 Pro 2004 OSãã«ã 19041.329 Docker Desktop community 2.3.0.3 WSL2(Windows Subsystem for Linux) Docker Desktop ã®è¨å®ã§ã¯ WSL2 Integration ãæå¹ã«ãã¦ãã¾ããWSLã®ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã¯ Ubuntu 20.04 ã使ã£ã¦ããã®ã§ãããã¨ã®ã¤ã³ãã°ã¬ã¼ã·ã§ã³ãæå¹ã«ãã¦ããã¾ãã æ¹æ³ Docker Desktop ã使ã£ã¦ãã WSL ä¸ã®ãã£ã¹ã
WSL 2.0.0以éã§è©¦é¨çã«æä¾ããã¦ãããããã¯ã¼ã¯ãã©ã¼ã¢ã¼ãã¯é常ã«é åçã§ããã¾ã 試é¨çã¨ãããã¨ã§ããã¤ã課é¡ãããã®ãäºå®ã§ããããã§ã¯Dockerã§ã®èª²é¡ã¨åé¿çã交ãã¤ã¤ãã©ã¼ã¢ã¼ãã®æ·±æ·µãè¦ãã¦ã¿ããã¨æãã¾ãã [2023.12.6]Docker Desktopã§ã®ãã¼ãéè¤ã¯ 4.26.0 ã§å¯¾å¿ã¨ãªã£ãããã§ãã Added support for WSL mirrored mode networking (requires WSL v2.0.4 and up). ãªãªã¼ã¹ãã¼ããã [2023.10.25] ãã©ã¼ã¢ã¼ãã¯ããããã¤ãã®æ°æ©è½ã¯Windows11 22H2é常çã«æ©è½éæ¾ããã¾ãããææ°ã®WindowsUpdateé©ç¨ã®ä¸ãã¹ãã¢çWSLãã¢ãããã¼ããããã¨ã«ãã以ä¸ã®ãªãã·ã§ã³ã.wslconfigã§ä½¿ããããã«ãªãã¾ãã Dockerã¤ã
$ sudo apt-get update Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease Ign:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease Ign:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
wsl2ã®ãã¹ãåã£ã¦å¤ãããããã§ããï¼ ã¨ããæ¥ã å¾è¼©ã¡ãããwsl2ä¸ã§ä½æ¥ããã¨ãã«ããã¹ãåã«èªåã®ãã·ã³åã表示ãããã®å«ã ãªï½ã å¾è¼©ã¡ãããwsl2ã®ãã¹ãåã£ã¦å¤ããããªãã®ããªï½ã å¾è¼©ã¡ãããã»ãã»ããè¯ãé»ãç»é¢ã®ãã£ããã£ã¨ãæ®ããã¨å¤ããããªãã§ããï½ã ãããï¼ç¬ãè¨ããªï¼ ãããï¼ã¾ãé»ãç»é¢ã£ã¦è¨ã£ã¦ãã...ï¼ å¾è¼©ã¡ãããLinuxã®ãã¹ãåå¤æ´ã³ãã³ãã ã¨ä¸æããããªãã£ããï½ã å¾è¼©ã¡ãããå¤æ´æ¹æ³ç¥ã£ã¦ã人ããªãããªï½((ï¾ï¾ï¾ï¾ã ããããåãã£ãããæãããã£ï¼ï¼ï¼ã ã¨ãããã¨ã§ãwsl2ã®ãã¹ãåå¤æ´æé ã説æãããã¨ã«ãªã£ãã wsl2ã®ãã¹ãåå¤æ´æ¹æ³ ããããå¾è¼©ã¡ããã®è¨ãéããwslã§ã¯ä¸è¨ã®ãããªè¡¨ç¤ºã«ãªããã ãããããã·ã³åã®ã¨ããããä»»æã®ãã¹ãåã«å¤æ´ãããå ´åãã ãããã/etc/wsl.confã«è¨è¼ããã®ãæ
2022å¹´12æ14æ¥ã«WindowsUpdateã«é ä¿¡ãããWindows10 ãã¼ã¸ã§ã³22H2 / 21H2 / 21H1ç¨ã»ãã¥ãªãã£æ´æ°ããã°ã©ã KB5021233ãã¤ã³ã¹ãã¼ã«ãã¦ããã0xc000021aã®ãã«ã¼ã¹ã¯ãªã¼ã³ã¨ã©ã¼(BSoD)ãçºçããPCãèµ·åããªããªã£ãã¨ã®ä¸å ·åå ±åãè¤æ°ä»¶åºã¦ãã¾ãã æ´æ°å±¥æ´ â ãã·ã¹ãã ã®å¾©å ãã ãã§ç´ããå ´åã¨ç´ããªãå ´åãããã®ã§ã対å¦æ¹æ³ã»åé¿ç 2ããå çã ï¼»2022/12/16ï¼½ â¡ Microsoftãä¸å ·åãèªããæ¨ãå çã ï¼»2022/12/18ï¼½ ï¼»Newï¼½Microsoftãä¸å ·åãèªãã ï¼»2022/12/18ï¼½ ï¼»Newï¼½Microsoftãæ¬ä¸å ·åãèªãã¾ãããæ¬ä¸å ·åã«ã¤ãã¦ãã¾ãã¯ä»¥ä¸ã®è¨äºãã覧ãã ããã MicrosoftãKB5021233ã®ä¸å ·åãèªããã0xc000021aãã«ã¼ã¹ã¯ãªã¼ã³ã«
Windows 㧠Linux ã®æ©è½ãæ軽ã«æ±ããã¨ã®ã§ããWSL (Windows Subsystem for Linux)ï¼ ãWSLãã¨ãWSL2ãã®2ã¤ãããã®ã¯ãåãã®æ¹ãå¤ãã¨æãã¾ããï¼å®ã¯ä»ã«ãããã¼ã¸ã§ã³ãããããã¨ããåç¥ã§ããããï¼ é ã«è§£èª¬ãã¦ããã¾ãï¼ â :ãWSL1ãã¨ãWSL2ã WSLã«ã¯ï¼å¤§ããªä»çµã¿ã®éããã2ã¤ã®ã¿ã¤ããããã¾ãï¼ WSL1ï¼WSLï¼ãå ã«éçºããã¦ããï¼å¾çºã§ WSL2 ãã§ãã¾ããï¼ ãã®ç¨®é¡ã®ãã¼ã¸ã§ã³ã¯ï¼ãã®2ã¤ã®ã¿ã§ãï¼ï¼WSL1.1ã¨ãï¼WSL2.1ã¨ãã¯ããã¾ãããï¼ ç¾å¨ã®WSLã®ãã¼ã¸ã§ã³ã確èªããã«ã¯ï¼Powershellä¸ã§ä»¥ä¸ã³ãã³ããå®è¡ãã¾ãï¼ ï¼ã³ãã³ãã«å¤±æããå ´åã¯ï¼Windowsã®ãã¼ã¸ã§ã³ãå¤ãï¼WSL2ãå©ç¨ã§ããªãå¯è½æ§ãããã¾ãï¼
ãã°ãã§ãã ãµã¨AWS謹製ã®Cloudscapeã使ã£ããµã¤ããä½ã£ã¦ã¿ãããªãããã®ããã«ã¾ãã¯Reactã¨Next.jsãå¦ãã§ã¿ããã¨ã«ãã¾ããã ç§ã¯æ®æ®µWindowsç°å¢ãå©ç¨ãã¦ããWSL2ä¸ã§Next.jsãå®è¡ããããã®ç°å¢ãä½ã£ã¦ã¿ãã®ã§ãããããã ãã§ãå°å³ã«ããã£ãã®ã§ãã®è¨äºã§å ±æãããã¨æãã¾ãã æ¤è¨¼ç°å¢ æ¬è¨äºã®å 容ã¯ç§ã®æ®æ®µã®éçºæ©(Windows 10 Pro)ã®WSL2ç°å¢(Ubuntu 20.04)ã§è©¦ãã¦ãã¾ãã Ubuntu 22.04ã§ãªãã¦20.04ãªã®ã¯22.04ç°å¢ãæ®æ®µã®æ¥åã§ä½¿ã£ã¦ããããé¿ããã®ãçç±ã§ããæ¬è¨äºã®å 容ã§OSä¾åã®é¨åã¯ç¡ãã¨æãã¾ãã ãã¹ãå´ç°å¢ 64 bitç Windows 10 Professional 21H1 Visual Studio Code 1.72.2ãã¤ã³ã¹ãã¼ã«æ¸ã¿ WSLç°å¢ Ubuntu
Windows10 ã®PCã«ããã±ã¼ã¸ç®¡çã·ã¹ãã Yarn ãã¤ã³ã¹ãã¼ã«ãã¦ç¢ºèªããã¾ã§ã®æé ãåå¿é²ã¨ãã¦ã¾ã¨ãã¾ãããåèã«ãã¦é ããã°å¹¸ãã§ãã åææ¡ä»¶ï¼åä½ç°å¢ï¼ yarnã®ã¤ã³ã¹ãã¼ã« ã¤ã³ã¹ãã¼ã«å®äºã®ç¢ºèª ãªããmodenãã¼ã¸ã§ã³ ã¨classicãã¼ã¸ã§ã³ãããã¾ãããä»åã¯classicãã¼ã¸ã§ã³ ã¤ã³ã¹ãã¼ã«ã§ãã åææ¡ä»¶ï¼åä½ç°å¢ï¼ å ¬å¼ãã¼ã¸ã« Windows ç¨ã«ç¨æããã¦ããã®ã¯æ¬¡ã®ï¼ã¤ã npm çµç±ã§ã¤ã³ã¹ãã¼ã«ãã ã¤ã³ã¹ãã¼ã©ããã¦ã³ãã¼ããã Chocolatey çµç±ã§ã¤ã³ã¹ãã¼ã«ãã Scoop çµç±ã§ã¤ã³ã¹ãã¼ã«ãã Node.js ã«ããã¦ãã npmçµç±ã§ã¤ã³ã¹ãã¼ã«ãããã¨ãæ¨å¥¨ã¨ã®ãã¨ã§ããããã¾ããããªãã£ãã®ã§ï¼è©³ç´°ã¯çç¥ï¼ãä»åã¯ãã¨ãããããã¤ã³ã¹ãã¼ã©ããã¦ã³ãã¼ãããããé¸æãã¾ããã ãã®ããã®åææ¡ä»¶ã¯æ¬¡ã®éãã§
Dockerã§MySQL 8.0.xãåãããã¨ããã以ä¸ã®ã¨ã©ã¼ãåºã¦ãã³ã³ãããèµ·åãã¾ããã§ããã [ERROR] [MY-010295] [Server] Could not set file permission for ca.pem [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it. [ERROR] [MY-010119] [Server] Aborting MySQLã®ãã¼ã¸ã§ã³ã5.7ãã5.7.16ã«å¤æ´ããã¿ãããªã®ãè¦æãã¾ãããã 8ç³»ã§åããããã®ã§ãããã§ã¯è§£æ±ºã«ãªã£ã¦ãã¾ããã§ããã ãªã®ã§ãWSLä¸ã®ã/etc/wsl.conf
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}