mirror of
http://junepve.top:3000/chicrobot/termux.git
synced 2026-10-29 22:51:29 +08:00
更新 READEME.md
添加tmoe安装ubuntu,添加安装ollama运行大模型、gitea版本管理
This commit is contained in:
1 parent
b0c476775c
commit
a94d7a6490
1 file changed
+49
+49
@@ -1,3 +1,14 @@
|
|||||||
|
## 一、在容器中安装桌面环境
|
||||||
|
### 1、安装termux
|
||||||
|
termux换源
|
||||||
|
```
|
||||||
|
termux-change-repo
|
||||||
|
```
|
||||||
|
### 2、tmoe脚本
|
||||||
|
```
|
||||||
|
bash -c "$(curl -L l.tmoe.me)"
|
||||||
|
```
|
||||||
|
## 二、在termux中安装桌面环境
|
||||||
### 1、安装termux
|
### 1、安装termux
|
||||||
termux换源
|
termux换源
|
||||||
```
|
```
|
||||||
@@ -86,3 +97,41 @@ pd login debian --shared-tmp
|
|||||||
export DISPLAY=:1
|
export DISPLAY=:1
|
||||||
neofetch
|
neofetch
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 三、安装软件
|
||||||
|
### 1、安装大模型
|
||||||
|
|
||||||
|
国内访问ollama官网很慢,而安装文件又很大,导致脚本中下载安装文件的命令执行很慢,甚至超时。而解决办法其实很简单,就是把脚本中的安装包地址替换为国内访问比较快的地址。而这个国内访问比较快的地址就是Github加速器。
|
||||||
|
```
|
||||||
|
export OLLAMA_MIRROR="https://ghproxy.cn/https://github.com/ollama/ollama/releases/latest/download"
|
||||||
|
curl -fsSL https://ollama.com/install.sh | sed "s|https://ollama.com/download|$OLLAMA_MIRROR|g" | sh
|
||||||
|
```
|
||||||
|
运行模型
|
||||||
|
```
|
||||||
|
ollama run smollm2:135m
|
||||||
|
```
|
||||||
|
### 2、安装gitea
|
||||||
|
安装依赖
|
||||||
|
```
|
||||||
|
apt install sqlite3 git
|
||||||
|
```
|
||||||
|
创建用户
|
||||||
|
```
|
||||||
|
sudo adduser --system --group --disabled-password --shell /bin/bash --home /home/git --gecos 'Git Version Control' git
|
||||||
|
```
|
||||||
|
下载二进制文件
|
||||||
|
```
|
||||||
|
VERSION=1.18.0
|
||||||
|
sudo wget -O /tmp/gitea https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64
|
||||||
|
sudo mv /tmp/gitea /usr/local/bin
|
||||||
|
sudo chmod +x /usr/local/bin/gitea
|
||||||
|
```
|
||||||
|
创建必要目录
|
||||||
|
```
|
||||||
|
sudo mkdir -p /var/lib/gitea/{custom,data,indexers,public,log}
|
||||||
|
sudo chown git: /var/lib/gitea/{data,indexers,log}
|
||||||
|
sudo chmod 750 /var/lib/gitea/{data,indexers,log}
|
||||||
|
sudo mkdir /etc/gitea
|
||||||
|
sudo chown root:git /etc/gitea
|
||||||
|
sudo chmod 770 /etc/gitea
|
||||||
|
```
|
||||||
Reference in new issue
Block a user