UserLAnd It is an application for running Linux on Android. This time I used it to run Java and Tomcat.
You can choose Ubuntu, Debian, Kali, or Arch as the distribution. I chose Ubuntu, which seems to have a lot of information on the net.
With this app, you can connect with SSH or VNC and operate Linux. When I made a VNC connection on my Chromebook (acer C740), the default app didn't show the screen. I wanted to use a desktop environment browser to download files, so I first connected with SSH and installed the desktop environment.
In addition, Firefox, the default browser, did not work (the screen did not draw properly and remained blank), so I had to take the extra effort of installing Chromium ...
Termux This is also a Linux terminal emulator like UserLAnd. I haven't investigated how it works, but I can use Linux commands. This time I used it to run Postgres.
I was able to install Postgres with UserLAnd, but I failed to allocate memory and could not start it. As an alternative, I ran Postgres on Termux. The connection from Tomcat to Postgres was fine with localhost: 5432, so no special work was required.
As an aside, mysql only worked with UserLAnd, so if you want to create an environment for Tomcat and mysql, you don't need Termux.
VNC Viwer for Google Chrome When connecting to VNC with UserLAnd, the Chromebook keyboard was recognized as an alphabetic keyboard in the default application, and it was difficult to enter symbols. When I connected with VNC Viwer, I was able to input according to the printed keys, so I used this app when inputting commands.
UserLAnd Java (openjdk8)
sudo apt-get install openjdk-8-jdk
Tomcat Download tar.gz from Official Site and pass it to CATALINA_HOME / bin When Tomcat starts up, startup.sh is executed manually.
Termux Postgres
apt-get install postgresql
I didn't really think about setting up auto-start, so I wrote a start command in .bashrc.
Recommended Posts