在JetBrains github上发现了一个名为Projector的秘密存储库。多亏了他,我用IntelliJ IDEA编写了一段在Android平板电脑上运行的代码。我告诉你如何重复。
问题
我们都喜欢IntelliJ IDEA,但是它有一个问题-它会消耗计算机资源。也许是地下墓穴被开采了,没人知道。
- , , — . . , Android-. — Arm.
( , , Arm — . , -).
DevOps. DevOps-, — . , , . — , .
C++. Chromium . , . SSD , SSD — .
IDE. -, Threadripper 3990X. , Java.
, IntelliJ IDEA , . , . , , Rider - Java- .NET-, .
—
, TeamViewer, Microsoft Remote Desktop, VNC, . , — Remote Desktop.
? , :
!
, . , , - , .
- . , TeamViewer , . RDP , . — .
? , ?
, Projector!
Huawei MediaPad M5:
, Sony RX100 v5 . :
, ?
, . , . , . .
, Projector GitHub IntelliJ IDEA .
?
, Projector AWT OpenJDK. AWT , . — .
— , Java Swing, !
! ?
, . , . .
, . .
:
- ( )
- IDEA
- PROFIT
Docker.
Docker, , Docker .
"" , — .
: Linux Linux 4 . .
Docker Ubuntu 16.04:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce
sudo usermod -aG docker ${USER}
sudo reboot
. Linux- , .
- ( Amazon ), .
, xvfb ( ) dbus-launch. , . , AWT.
Ubuntu 16.04:
apt install xvfb dbus dbus-x11 gnome-keyring
gnome-keyring . , . Ubuntu, , .
:
Xvfb :99
export DISPLAY=:99
- . , systemd. .
— , , ! , . . -, 1998- . , .
Projector
:
git clone https://github.com/JetBrains/projector-docker.git
cd ./projector-docker
:
./clone-projector-core.sh
./build-container.sh
./run-container.sh
IntelliJ IDEA
() , : http://localhost:8080/projector/.
(, ), : http://hostname:8080/projector/?host=hostname&port=8887.
hostname
IP- . , hostname URL . .
:
- ( , VPN), . 21 .
- Google Chrome , HTTP HTTPS. : http://host:8080/projector/?host=//hostname&port=8887. ,
hostname
(//
). Firefox . , ( ), , .
Android
Google Chrome Android . Fully Kiosk Browser.
, Android, Fullscreen Immersive.
, .. FUlly Kiosk Browser Android- -.
iOS
! . ( ), .
?
, , run-container.sh
:
docker run --rm -p 8080:8080 -p 8887:8887 -it "$containerName" bash -c "nginx && ./run.sh"
, — :
docker run --rm \
--env ORG_JETBRAINS_PROJECTOR_SERVER_HANDSHAKE_TOKEN=mypassword \
-p 8080:8080 -p 8887:8887 -it "$containerName" bash -c "nginx && ./run.sh"
!
./run-container.sh
URL. token .
: https://localhost:8080/projector/?token=mypassword
: https://hostname:8080/projector/?host=//hostname&port=8887&token=mypassword
?
, :
- ;
- ;
- ;
- ;
- ;
- ;
- ;
- ;
, ! .
, MediaPad M5 Kirin 960 — . ( , !) , . .
, - — . , , Remote Desktop.
, . , MediaPad M5, Mali-G71.
IntelliJ IDEA ( IDE JetBrains) .
, IDEA . — , — . Projector . , , Projector.
, IDEA Windows, Android iOS (Electron WebView). , . — .
在GitHub上Godgosaken仓库中的某个地方,发现了一块真正的金山。不幸的是,奇迹没有发生,而且可以肯定的是,这种黄金被龙欺负了。让我们看看谁出来了!