WSL导入导出

默认情况WSL会安装在C盘,可以将其迁移到其他盘,这里使用WSL提供的导入和导出命令。 关闭所有的WSL,查询要导出的名称: wsl --shutdown wsl -l -v NAME STATE VERSION Ubuntu-22.04 Stopped 2 将要导出的WSL保存到D盘: wsl --export Ubuntu-22.04 D:\Ubuntu-22.04.tar 注销原有的WSL: wsl --unregister Ubuntu-22.04 在D盘安装WSL: wsl --import Ubuntu-22.04 D:\WSL\Ubuntu-22.04 D:\Ubuntu-22.04.tar

August 13, 2024 · 1 min · 28 words · Chuck

Build Emacs From Source

Windows 11 features built-in support for running Linux GUI applications. Emacs 29 has became a real GTK application, gone with the blurry fonts problem. Firstly, install essential packages in WSL2 Ubuntu 24.04. Native compilation support is enabled by default with Emacs 30, install libgccjit0 and libgccjit-xx-dev to build this feature. apt-get update apt-get install build-essential libgtk-3-dev libgnutls28-dev libtiff5-dev libgif-dev libjpeg-dev libpng-dev libxpm-dev libncurses-dev texinfo sqlite3 libsqlite3-dev libjansson4 libjansson-dev autoconf apt-get install libgccjit0 libgccjit-13-dev And in Emacs 29, tree-sitter support is built-in. Now build tree-sitter from source code, tree-sitter library will be installed into /usr/local/lib. ...

March 8, 2024 · 1 min · 186 words · Chuck