1. 安装npm
1.1 从github克隆nvm安装脚本项目到本地
curl https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh
1.2 赋予安装脚本执行权限并执行安装
chmod +x ./install.sh
./install.sh
1.3 刷新环境
source ~/.bashrc
1.4 安装Node.js 20.x
nvm install 20
2. 安装Codex CLI
2.1 使用npm进行安装
npm install -g @openai/codex
-g 参数 全局安装
3.安装Linux GUI
3.1 编译环境部署
sudo apt install python3 p7zip-full curl unzip make g++ build-essential
3.2 克隆项目
git clone https://github.com/ilysenko/codex-desktop-linux.git
cd codex-desktop-linux
💻项目介绍
“ChatGPT” 客户端(原:codex)并没有部署Linux发行版,
此项目的用处在于从互联网上下载最新的ChatGPT dmg安装包(Mac OS)然后适当增加Linux补丁,
然后使用gcc 重新编译成deb包进行安装
3.3 根据下列表格选择你的Linux发行版进行编译 这里我使用的是Ubuntu
注意!!! 在执行这条命令前请确保你当前的网络环境可以链接至Github
make bootstrap-native
在编译完成后就可以在Application里找到ChatGPT客户端了