使用包管理器安装
根据你的操作系统选择合适的安装方法:
-
Mac (Homebrew)
- 打开终端,输入以下命令:
brew install leaf
- 输入密码,完成安装后,Leaf即可通过命令栏启动。
- 打开终端,输入以下命令:
-
Ubuntu
- 添加Gnome的仓库:
sudo add-apt-repository ppa:gnome/ubuntu sudo apt update
- 安装Leaf和依赖项:
sudo apt install leaf-edge
- 启动服务并加上自动启动:
sudo systemctl start leaf.service sudo systemctl enable leaf.service
- 添加Gnome的仓库:
-
Fedora
- 安装EPEL和Remix:
sudo dnf install https://repo.mgnome.org/epel-release.rpm https://repo.mgnome.org/remix-release.rpm
- 安装Leaf:
sudo dnf install leaf
- 启动服务并加上自动启动:
sudo systemctl start leaf.service sudo systemctl enable leaf.service
- 安装EPEL和Remix:
确保依赖项和服务
- Mac (Homebrew)
- 安装必要的依赖:
brew install libappledir brew link --install leaf
- 安装必要的依赖:
启动Leaf
在终端中输入以下命令启动Leaf:
leaf
配置和使用(可选)
根据需求设置启动参数和环境配置,
leaf -b 4223
或者修改默认配置文件:
mkdir ~/.config/leaf touch ~/.config/leaf/default
安装完成后, Leaf 应该能够正常运行,确保你已按照上述步骤正确配置环境。









