We work in IntelliJ IDEA on weak hardware

Discovered a secret repository on the JetBrains github called Projector. Thanks to him, I wrote a piece of code in IntelliJ IDEA running on an Android tablet. I tell you how to repeat it.





Problem



We all love IntelliJ IDEA, but there is a problem with it - it eats up computer resources. Maybe the crypt is mined, no one knows.



- , , — . . , 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 . .



Ubuntu 16.04 . — .



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 . .



:





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). , . — .



Somewhere in the godforsaken repository on GitHub, a real mountain of gold was discovered. Unfortunately, miracles do not happen, and for sure, this gold is bullied by dragons. Let's see who comes out!




All Articles