[JAVA] Create an environment for Tomcat and Postgres on a Chromebook without using developer mode

Required apps

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.

Things that might be useful to have

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.

Installation procedure

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

Create an environment for Tomcat and Postgres on a Chromebook without using developer mode
Create a development environment for Ruby 3.0.0 and Rails 6.1.0 on Ubuntu 20.04.1 LTS
Let's install Docker on Windows 10 and create a verification environment for CentOS 8!
Create a Java development environment using jenv on Mac
Place "Create a to-do list using Rails API mode and React Hooks" on docker
Create a tomcat project using Eclipse
Create a Docker Image for redoc-cli and register it on Docker Hub
Link Apache and Tomcat in a blink of an eye on CentOS 8
How to build a Ruby on Rails environment using Docker (for Docker beginners)
[Docker] How to create a virtual environment for Rails and Nuxt.js apps
Create a web environment quickly using Docker
Create an ARM-cpu environment with qemu on mac and run java [Result → Failure]
Create an animation in which characters emerge for a moment using molecular dynamics
Create a Privoxy + Tor environment instantly using Docker
[Windows] [IntelliJ] [Java] [Tomcat] Create a Tomcat9 environment with IntelliJ
Building a Ruby environment for classes on Mac
Build a Laravel environment on an AWS instance
Create a docker environment for Oracle 11g XE
[For beginners] Until building a Web application development environment using Java on Mac OS
Create a portfolio app using Java and Spring Boot
I built an Ubuntu environment on Windows 10 using WSL2.
Let's create a gcloud development environment on a centos8 container
[2021] Build a Docker + Vagrant environment for using React / TypeScript
A memorandum for creating an extended logger using org.slf4j.Logger
Environment construction for OSS-DB Silver # 2_Preparation 1-Create a user account to operate PostgreSQL on CentOS7
How to create an environment that uses Docker (WSL2) and Vagrant (VirtualBox) together on Windows