github地址
https://github.com/JetBrains/projector-docker (停止开发)
https://github.com/JetBrains/projector-installer (停止开发)
https://www.jetbrains.com/remote-development/gateway/ (新项目)
docker pull python:3.8.16-slim
docker run -it -d -p 9999:9999 --name projname python:3.8.16-slim
docker exec -it projname bash
#更换软件源
sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list
sed -i 's|security.debian.org/debian-security|mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list
apt update -y
安装插件库
apt-get install -y less libxext6 libxrender1 libxtst6 libfreetype6 libxi6 \
curl git
python -m pip install --upgrade pip -i https://pypi.douban.com/simple
安装projector
pip install projector-installer -i https://pypi.douban.com/simple
#查看可以安装的IDE列表
projector install #选择yes查看可用的ide
projector install PyCharm_Community
#配置
projector config edit Pycharm
#N
#port=9999
#...host=y
#[localhost]=0.0.0.0
#N
#N
#N
#0
#启动
projector run Pycharm
projector install Phpstorm
#配置
projector config edit Phpstorm
#N
#port=9999
#...host=y
#[localhost]=0.0.0.0
#N
#N
#N
#0
#启动
projector run Phpstorm
http://localhost:9999/