linux安装hermes

Linux或Termux安装Hermes

常规操作步骤

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# 安装
curl -fsSL https://res1.hermesagent.org.cn/install.sh | bash

# 运行并进行完整配置
hermes setup
# 或
https_proxy=192.168.x.x:10808 hermes setup

# 如果要更换模型
hermes model

termux配置ubuntu容器

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
# 使用 proot-distro 安装 Ubuntu
pkg update
pkg install proot-distro

# 安装 Ubuntu
proot-distro install ubuntu

# ubuntu挂载termux家目录
echo 'alias ubl="proot-distro login ubuntu --bind /data/data/com.termux/files/home:/termux"' >> ~/.bashrc
source ~/.bashrc

# 执行 ubl 登录ubuntu系统
ubl

# 如果需要解决中文乱码问题
echo 'export LANG=C.UTF-8' >> ~/.profile
echo 'export LC_ALL=C.UTF-8' >> ~/.profile
source ~/.profile