Descobriu um repositório secreto no github do JetBrains chamado Projector. Graças a ele, escrevi um código no IntelliJ IDEA em execução em um tablet Android. Eu digo como repetir.
Problema
Todos nós gostamos do IntelliJ IDEA, mas há um problema: ele consome recursos do computador. Talvez a cripta esteja minada, ninguém sabe.
- , , — . . , 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). , . — .
Em algum lugar do repositório esquecido por Deus no GitHub, uma verdadeira montanha de ouro foi descoberta. Infelizmente, milagres não acontecem e, com certeza, esse ouro é intimidado por dragões. Vamos ver quem sai!