# IronFish 铁鱼激励测试节点 win11 WSL 搭建 **Published by:** [ConnorRepeat](https://paragraph.com/@connorrepeat/) **Published on:** 2023-01-31 **URL:** https://paragraph.com/@connorrepeat/ironfish-win11-wsl ## Content IronFish 激励性测试网正在进行,可参考:https://testnet.ironfish.network/about ,记录一篇在 win11 WSL 环境搭建的教程。 目前中文信息里主流推荐的是 nodes.guru 提供的一键脚本,但我在实践中发现 WSL 直接使用多少有些问题,所以这篇选择手动搭建(当然也可以写成脚本) https://nodes.guru/ironfish/setup-guide/en 打开开始菜单,搜索 PowerShell,右键选择以管理员身份打开 使用如下命令检查可用的发行版本 wsl --list --online 选择安装 Ubuntu-22.04 wsl --install Ubuntu-22.04 稍等会弹出 Ubuntu 22.04 安装窗口,并提示输入用户名和密码,按提示输入完成创建即可,至此 WSL 虚拟机基本环境准备就绪。 接下来切换默认用户到 root 用户 sudo -i 插一句,在 Ubuntu 窗口标题栏,空白处右键,选择属性,可以勾选复制粘贴快捷键,可以方便复制命令: 再插一句,本地 PC 有科学上网条件的,可以在 WSL 中设置代理,加速后续软件包下载。我以 Clash 为例,打开允许局域网,检查端口号,并确定本机的局域网 IP,例如: 那么就可以在 Ubuntu 中输入以下命令,使用代理网络: export http_proxy="http://192.168.31.175:7890" export https_proxy="http://192.168.31.175:7890" 继续处理 Ubuntu 环境,第一步是更新软件源: apt update && apt upgrade -y 等待下载安装完成以后继续,安装编译环境套件 : apt install -y build-essential 接下来安装 nodejs,ironfish 目前要求 18+ 版本,如下命令进行安装: curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - 按照提示的建议,安装 yarn,随后正式安装 nodejs,最后检查下 node 版本确认无误 apt update && apt install yarn -y apt install -y nodejs node --version npm --version 安装 rust,为编译做准备(rust 安装脚本会要求输入选项,输入1并回车进行安装) curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh source $HOME/.cargo/env 环境准备到此结束,接下来 clone ironfish 的仓库到本地 git clone https://github.com/iron-fish/ironfish 更新安装 yarn npm install -global yarn --force 进入 ironfish 目录,并安装项目依赖 cd ironfish/ yarn install 最后进入 ironfish-cli/bin 目录就可以看到完成的 ironfish 可执行程序 cd ./ironfish-cli/bin ./ironfish help 至此 win11 WSL 上已经可以成功运行 ironfish 节点,剩余测试网部分,可以参照官方文档进行了 https://ironfish.network/docs/onboarding/miner-iron-fish ## Publication Information - [ConnorRepeat](https://paragraph.com/@connorrepeat/): Publication homepage - [All Posts](https://paragraph.com/@connorrepeat/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@connorrepeat): Subscribe to updates