眾所周知vscode有remote ssh遠程開發模式,使用vscode作為遠端language server的前端UI。但是vscode在某些情況下并沒有JetBrain的IDE好用。尅是JetBrain的IDE不支持遠程開發模式。官方就提供了這個projector的項目,用于在云端部署JetBrain的IDE。下面就跟我一起熟悉下如何在遠程端使用JetBrain的IDE吧。
準備
已經安裝好的Fedora/CentOS/RedHat系統。
安裝
安裝python3
如果要安裝projector-installer首先要先安裝python3
sudo dnf install python3 python3-pip python3-devel
注意其中python3-devel是需要用到的。所以即便操作系統里面已經有了python3也要確認python3-devel是否有安裝。
安裝圖形依賴
- libxext6
- libxi6
- libxrender1
- libxtst6
- libfreetype6
在Debian系里面的圖形依賴如上所示,但是RedHat系里面名字會稍微有點不同。安裝命令如下。
sudo dnf install libXtst libXi libXrender libXtst freetype
安裝projector-installer
準備好依賴以后,我們使用pip3開始安裝projector-installer
pip3 install projector-installer
使用
安裝IDE
projector install
輸入如上的命令行就會提示用戶安裝IDE,列表當中都是官方測試好的IDE,當然也可以自己去下載其他JetBrain的IDE然后進行啟動。
運行IDE
projector run xxxx
xxx表示IDE的名字 比如projector run goland
如果有其他問題可以運行
projector --help
獲得更多幫助。
詳細文檔可以參考https://github.com/JetBrains/projector-installer