添加 root-setup.sh 脚本用于 WSL 首次初始化
- 自动安装 sudo、创建用户、配置免密 sudo - 写入 /etc/wsl.conf 设置默认用户 - 整合 WSL.md 内容到脚本中,删除原文档 - 更新 README 为两阶段安装流程
This commit is contained in:
@@ -4,11 +4,25 @@
|
||||
|
||||
## 快速开始
|
||||
|
||||
### 1. 初始化用户(以 root 身份,仅 WSL 首次)
|
||||
|
||||
```bash
|
||||
curl -fsSL https://git.furtherverse.com/imbytecat/archlinux-config/raw/branch/main/root-setup.sh | bash -s -- <用户名>
|
||||
```
|
||||
|
||||
然后在 PowerShell 中重启 WSL:
|
||||
|
||||
```powershell
|
||||
wsl --terminate archlinux
|
||||
```
|
||||
|
||||
### 2. 安装配置(以普通用户身份)
|
||||
|
||||
```bash
|
||||
curl -fsSL https://git.furtherverse.com/imbytecat/archlinux-config/raw/branch/main/install.sh | bash
|
||||
```
|
||||
|
||||
安装完成后:
|
||||
### 3. 应用配置
|
||||
|
||||
```bash
|
||||
dcli sync
|
||||
|
||||
Reference in New Issue
Block a user