暂存

本文最后更新于 2026年3月18日 晚上

升级windows 专业版

  1. 断网输入密钥:XWHF9-NJ9MR-7KKR3-PRWGG-WXCKG 或者BCQNW-3VWYB-4V7QD-M6R2B-7MH26
  2. 管理员权限打开powershell,输入irm https://get.activated.win | iex

下载URL

下载QSPICE地址: https://getqspice.com/InstallQSPICE.exe

powershell

1
2
3
4
5
6
#  获取bin hex
Format-Hex -Path .\firmware.bin | Select-Object -First 5
# 获取文件md5
Get-FileHash -Path .\openocd_build.tar.gz -Algorithm MD5
# 获取文件hash
Get-FileHash .\emacs.d.tar.bz2 | Format-List

安全策略

​​临时绕过(推荐用于测试)​​
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope Process

临时运行一次脚本,关闭窗口即恢复,最安全。

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

​​为系统修改(需谨慎)​​
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine

1
2
3
4
5
6
7
8
9
# diskpart使用说明

list disk
select disk 1
clean
create partition primary
format fs=fat32 quick
assign
exit

vscode 插件

Linux相关

1
2
3
4
5
6
7
8
9
10
11
12
sudo cp ./*.ttf  /usr/share/fonts/chinese/
fc-cache -fv


# ssh set
apt-get update
apt-get install -y openssh-server
ssh-keygen -A
sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin no/' /etc/ssh/sshd_config
sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config
service ssh restart
echo "SSH installation and configuration complete."

常用下载链接:

name url
git https://mirrors.tuna.tsinghua.edu.cn/github-release/git-for-windows/git/LatestRelease/
riscv xpack https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/
riscv toolchain https://github.com/riscv-collab/riscv-gnu-toolchain/

暂存
https://blog.zimablue.fun/2026/03/18/暂存/
作者
zimablue1996
发布于
2026年3月18日
许可协议