type
status
date
slug
summary
tags
category
icon
password
WSL
安装
安装wsl,需要重启
重启后,查看可用的最新发行版
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2F7cab977c-07d5-412b-9e00-2584d5b09c50%2FUntitled.png?table=block&id=15518c3a-e43d-41b9-9857-1b45341c13c7&t=15518c3a-e43d-41b9-9857-1b45341c13c7&width=1089&cache=v2)
安装最新发行版(可能需要配置网络环境,从cl复制即可)
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2F6df43948-2da3-404d-b428-8ebee283eff2%2FUntitled.png?table=block&id=3a9644be-2075-46cb-ac5e-41b8490e061c&t=3a9644be-2075-46cb-ac5e-41b8490e061c&width=1255&cache=v2)
位置迁移
导出、迁移、设置默认登陆用户
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2F6ecbfe21-cfa9-4f40-a9eb-20c8b186d06c%2FUntitled.png?table=block&id=7b81fbce-4ab6-4f25-a795-a057c9e9d803&t=7b81fbce-4ab6-4f25-a795-a057c9e9d803&width=1001&cache=v2)
提示
To run a command as administrator (user "root"), use "sudo <command>”
在使用sudo或执行 touch ~/.sudo_as_admin_successful
后消失换源
GUI
现已默认支持
镜像网络
WSL2设置镜像网络模式 | Ryan Shangbridge网络模式 + ipv6/zerotier 实现remote ssh
wsl现已支持本地ip
已知的问题!!!
在打开WSL后切换网络(WIFI热点、接入点等)无法通过DHCP重新获得IP,需要关闭WSL后重新启动
easyconnect + docker
docker && nvidia-docker
安装docker desktop (使用WSL2后端)参考WSL 上的 Docker 容器入门 | Microsoft Learn
安装nvidia-container-toolkit Installing the NVIDIA Container Toolkit — NVIDIA Container Toolkit 1.14.3 documentation
容器无法从命令行重启,无关紧要
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2Fdac48055-f513-4952-a1b9-65aa79796a87%2FUntitled.png?table=block&id=2e5d733f-357b-4940-91db-5545a63b427c&t=2e5d733f-357b-4940-91db-5545a63b427c&width=797&cache=v2)
生成daemon后打开,复制到desktop中的的配置
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2F8aa5a979-0843-4ce9-998b-73d24970574d%2FUntitled.png?table=block&id=c141b29e-a34e-42a4-a107-03523409d49a&t=c141b29e-a34e-42a4-a107-03523409d49a&width=1055&cache=v2)
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2F1641346e-384f-4474-9652-6beaf5ef369d%2FUntitled.png?table=block&id=3ca61593-f695-472e-9c48-309da112a6b2&t=3ca61593-f695-472e-9c48-309da112a6b2&width=924&cache=v2)
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2Fb79aa906-058f-4b09-a8e8-c989c49cdd93%2FUntitled.png?table=block&id=ed564ad9-ed06-4045-bfc5-20b6c03c9cda&t=ed564ad9-ed06-4045-bfc5-20b6c03c9cda&width=1223&cache=v2)
refer
AI生成错误信息
vscode
安装remote插件,可更方便的连接ssh或wsl
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2F9400ea05-ca75-4459-9c0a-5e4b852f9fa2%2FUntitled.png?table=block&id=2ffcea8d-aa8f-4619-a06e-50273f497b7c&t=2ffcea8d-aa8f-4619-a06e-50273f497b7c&width=1542&cache=v2)
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2F7c84ee64-7cbd-4fbe-9d76-cc1d5faab1e1%2FUntitled.png?table=block&id=4ef2c8f5-ad16-4c6b-909a-6989b5eeb174&t=4ef2c8f5-ad16-4c6b-909a-6989b5eeb174&width=1273&cache=v2)
细项配置
自动保存
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2Fa7057b6d-657e-4529-8be5-1c7e6abdab82%2FUntitled.png?table=block&id=5e9af1fe-fe7b-4de8-af28-6003e7e32460&t=5e9af1fe-fe7b-4de8-af28-6003e7e32460&width=1201&cache=v2)
终端留存行数
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2F85aa3f5c-256f-4062-87dc-45fde06ae0b0%2FUntitled.png?table=block&id=838eade9-f9be-4a70-8ec6-f8a6ee3c4cef&t=838eade9-f9be-4a70-8ec6-f8a6ee3c4cef&width=1205&cache=v2)
shell - zsh or fish?
autojump
autojump
wting • Updated 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](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2F2b7432b2-d5e3-4c4c-8d18-826974d49888%2FUntitled.png?table=block&id=7abbc7c5-48ec-4f17-b42d-b0e1f409498d&t=7abbc7c5-48ec-4f17-b42d-b0e1f409498d&width=974&cache=v2)
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2F3e53feb3-6a1c-4352-996d-6681ed684bef%2FUntitled.png?table=block&id=4f6cc759-129c-431e-a8ac-056511865eb8&t=4f6cc759-129c-431e-a8ac-056511865eb8&width=756&cache=v2)
git://github.com/ clone一直出错,最后使用下面方法暂时解决
Vim
CUDA
Conda
安装的时候不要使用sudo,否则会安装至root路径
locate
gpt academic
这里我使用docker部署,有以下注意点
使用第三方api转发接口时,需要在docker yml中添加环境,否则会被默认设置覆盖(3.6版本)
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe11fbe68-040d-41a6-8b37-0405a354bcd8%2Fd3296bee-f36e-4ed4-abd8-e801d31a040d%2FUntitled.png?table=block&id=983115a3-d95b-4f7a-ba3e-2316c7331b15&t=983115a3-d95b-4f7a-ba3e-2316c7331b15&width=1684&cache=v2)
- Author:NotionNext
- URL:https://tangly1024.com/article/WSL%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83restart
- Copyright:All articles in this blog, except for special statements, adopt BY-NC-SA agreement. Please indicate the source!
Relate Posts