type
status
date
slug
summary
tags
category
icon
password

WSL

安装

安装wsl,需要重启
重启后,查看可用的最新发行版
notion image
安装最新发行版(可能需要配置网络环境,从cl复制即可)
notion image

位置迁移

导出、迁移、设置默认登陆用户
notion image
提示 To run a command as administrator (user "root"), use "sudo <command>” 在使用sudo或执行 touch ~/.sudo_as_admin_successful 后消失

换源

GUI

现已默认支持

镜像网络

WSL2设置镜像网络模式 | Ryan Shang

bridge网络模式 + ipv6/zerotier 实现remote ssh

wsl现已支持本地ip
💡
已知的问题!!! 在打开WSL后切换网络(WIFI热点、接入点等)无法通过DHCP重新获得IP,需要关闭WSL后重新启动

easyconnect + docker

 

docker && nvidia-docker

安装docker desktop (使用WSL2后端)参考WSL 上的 Docker 容器入门 | Microsoft Learn
容器无法从命令行重启,无关紧要
notion image
生成daemon后打开,复制到desktop中的的配置
notion image
notion image
notion image

refer

 
AI生成错误信息

vscode

安装remote插件,可更方便的连接ssh或wsl
notion image
notion image

细项配置

自动保存
notion image
终端留存行数
notion image
 
 

shell - zsh or fish?

autojump

autojump
wtingUpdated Apr 29, 2024

zsh-autosuggestions

zsh-syntax-highlighting

 
 
为什么说 zsh 是 shell 中的极品? - 吴毅凡的回答 - 知乎 https://www.zhihu.com/question/21418449/answer/95753913
为什么说 zsh 是 shell 中的极品? - DavidZ的回答 - 知乎 https://www.zhihu.com/question/21418449/answer/2292448029

clash over wsl

zshrc 中添加proxy内容
启用allow LAN
notion image
notion image
 
git://github.com/ clone一直出错,最后使用下面方法暂时解决
 
 

Vim

CUDA

 
 

Conda

安装的时候不要使用sudo,否则会安装至root路径
 

locate

 

gpt academic

这里我使用docker部署,有以下注意点
使用第三方api转发接口时,需要在docker yml中添加环境,否则会被默认设置覆盖(3.6版本)
notion image
Introducing Triton: Open-Source GPUProgramming for Neural Networks安装zotero失败,应用程序无法正常启动(0xc000007b)
Loading...