git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1 粗体:表示新术语、重要单词或屏幕上显示的单词。例如,菜单或对话框中的单词会以这样的方式出现在文本中。这是一个例子:“当您在处理复杂查询时,游乐场可以是一个有帮助的环境,底部的命令行部分甚至提供了您可以复...
一、解决方法 sudo rm /etc/resolv.conf sudo bash -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf' sudo bash -c 'echo "[network]" > /etc/wsl.conf' sudo bash -c 'echo "generateResolvConf = false" >> /etc/wsl.conf' 二、界面截图 三、windows主机配置...
git clone https://github.com/DamionGans/ubuntu-wsl2-systemd-script.git cd ubuntu-wsl2-systemd-script/ bash ubuntu-wsl2-systemd-script.sh # Enter your password and wait until the script has finished 这里要注意,在bash脚本之前,要在你clone的目录下打开enter-systemd-namespace,并更改一下下图的这个...
gnome桌面是基于 systemd,而WSL不支持systemd,所以需要先安装systemd,这里用到github上的库,操作也很简单。 # 安装 git clone <https://github.com/DamionGans/ubuntu-wsl2-systemd-script.git> cd ubuntu-wsl2-systemd-script/ bash ubuntu-wsl2-systemd-script.sh # 测试,重启linux后执行,若无报错则成功 syste...
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k 开发环境配置 安装/升级 Git 最新发行版本 默认是安装的 2.17.1 版本,不支持 git switch 命令。 查看当前的 Git 版本: 代码语言:javascript 代码运行次数:0 运行 AI代码解释 git --version 添加PPA 软件源...
基本参考了How to use the Microsoft Linux kernel v6 on WSL2 | Microsoft Learn这篇文章的内容。可以选择不用v6只用官方github上默认的。具体步骤也是一样的。 1. 构建 打开wsl终端运行发行版如ubuntu 选择github上的Microsoft Linux kernel库 gitclonehttps://github.com/microsoft/WSL2-Linux-Kernel.git --dep...
在Windows环境下,通过git clonehttps://github.com/microsoft/WSL2-Linux-Kernel.git可以下载源码,但是会报错,因为某些路径在Windows文件系统中是无效的。因此,尝试在WSL环境下下载,但是由于网络问题需要使用代理。可以使用如下命令下载并检查内核版本: # 下载源码git clone https://ghproxy.com/https://github.com/...
git clone https://aur.archlinux.org/yay.git cd yay makepkg-sri--noconfirm cd..rm-rf yay Yay是pacman的一个wrapper。除了pacman的功能外,可以额外搜索安装arch社区维护的AUR包。AUR包非常丰富,基本上包含了所有常用的包的最新版。 makepkg命令用来编译安装yay。-s相当于安装缺失依赖,-r成功编译后删除不需...
git clone https:///NVIDIA/cuda-samples.git 1. cd ~/CUDA_Sample/cuda-samples/Samples/1_Utilities/deviceQuery 1. make 1. /usr/local/cuda/bin/nvcc -ccbin g++ -I../../../Common -m64 --threads 0 --std=c++11 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_...