Skip to content

Commit cc0f09e

Browse files
committed
finalize env
1 parent 1b2c4c2 commit cc0f09e

File tree

10 files changed

+35
-187
lines changed

10 files changed

+35
-187
lines changed

docs/env/helloworld.md

Whitespace-only changes.

docs/env/index.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
对于 Windows / macOS (arm64, Apple Silicon) 用户,我们推荐你使用 VMware 配置虚拟机,配合 VSCode / IDEA IntelliJ 的 SSH 远程开发。
88

9-
此外,我们还提供了以下方案。但是,我们并不为这些情况提供排错与技术支持。
9+
此外,我们还提供了以下方案,这些方案不需要安装虚拟机,更加轻量级。但是,我们并不为这些情况提供排错与技术支持。
1010

1111
1. 使用 Windows WSL
1212

@@ -24,9 +24,17 @@
2424

2525
在安装完 VMware 后,你有两个选择:
2626

27-
1. 你可以导入我们已经配置好的虚拟环境。参考 [导入 OVF](setup/wm-import.md)
27+
1. 你可以导入我们已经配置好的虚拟环境。OVF 文件已上传至下载站中,解压后将 .ovf 文件拖至 VMware 中即可。macOS Apple Silicon 用户请选择 arm64 版本
2828

29-
2. 你可以选择从零安装 Linux 虚拟机,请安装 Debian stable,并参照 [手动环境配置](setup/manually-setup.md) 完成后续步骤。
29+
!!!note
30+
预配置的 VMware 镜像中,root密码为 123456,普通用户 cs323 的密码为 123456。
31+
32+
2. 你可以选择从零安装 Linux 虚拟机,请安装 Debian 13(安装镜像可从南科大镜像站上下载 https://mirrors.sustech.edu.cn/)。并安装以下软件包:
33+
34+
```sh
35+
$ sudo apt update
36+
$ sudo apt install openjdk-21-jdk llvm-19 clang-19 git make gzip flex bison
37+
```
3038

3139
### Windows WSL2 配置
3240

@@ -38,4 +46,4 @@
3846

3947
## 配置开发工具
4048

41-
最后,你需要配置 VSCode 开发工具并验证环境可用。参考 [配置开发工具](tools.md)
49+
我们建议你配置好 VSCode / IDEA IntelliJ 的 SSH 开发或 WSL 开发。

docs/env/old/macos.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

docs/env/old/windows.md

Lines changed: 0 additions & 87 deletions
This file was deleted.

docs/env/setup/macos-native.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## macOS
2+
3+
### 安装 Homebrew
4+
5+
参考 [homebrew](https://brew.sh/)
6+
7+
### 安装依赖
8+
9+
TODO:

docs/env/setup/manually-setup.md

Lines changed: 0 additions & 63 deletions
This file was deleted.

docs/env/setup/vm-import.md

Whitespace-only changes.

docs/env/setup/wsl.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,19 @@
22

33
**我们不对 WSL 环境下遇到的问题提供帮助。** 如果你遇到了一些问题,请考虑自行解决或切换为 VMware 虚拟环境。
44

5-
Windows WSL 可能会不适用于在 Linux 环境下刷写 VisionFive2 板子,我们可能会在后续实验提供文档支持
5+
推荐环境为 WSL2 + Debian 13 (trixie)。如果你已经有一份 Ubuntu 的 WSL,理论上直接用 Ubuntu 的不会有任何问题
66

7-
请使用 Ubuntu 24.04 或 Debian stable。
7+
指定安装 Debian:
88

9-
然后,请参考 [手动环境设置](../setup.md) 设置 gcc 工具链和 QEMU 模拟器。
9+
```shell
10+
wsl --install Debian
11+
```
12+
13+
如何安装 WSL2 请参考 [微软教程](https://learn.microsoft.com/en-us/windows/wsl/install),我们也向你推荐 WSL 的 [官方配置手册](https://learn.microsoft.com/en-us/windows/wsl/setup/environment)
14+
15+
然后,使用包管理器 apt 安装依赖:
16+
17+
```sh
18+
$ sudo apt update
19+
$ sudo apt install openjdk-21-jdk llvm-19 clang-19 git make gzip flex bison
20+
```

docs/env/tools.md

Whitespace-only changes.

mkdocs.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,8 @@ nav:
3131
- 环境配置:
3232
- 主页: env/index.md
3333
- Linux VM 搭建:
34-
- 导入 OVF: env/setup/vm-import.md
3534
- Windows WSL: env/setup/wsl.md
3635
- macOS 原生环境: env/setup/macos-native.md
37-
- 手动环境配置: env/setup/manually-setup.md
38-
- VSCode 远程配置: env/tools.md
39-
- 验证环境: env/helloworld.md
4036
# - Antlr:
4137
# - 简介: antlr/index.md
4238
# - 安装Antlr: antlr/install.md

0 commit comments

Comments
 (0)