I want to use Ubuntu's desktop environment on Android for the time being (Termux version-Japanese input in desktop environment)

Introduction

I want to use the Ubuntu desktop environment on Android for the time being (Termux version) It is a continuation of. Describes the settings for Japanese input in Ubuntu's LXDE and XFCE desktop environments. I'm using fcitx-anthy because fcitx-mozc just couldn't work (it should be on, but I can't type Japanese ...).

Installation

First, install Japanese fonts and Anthy (a tool for inputting Japanese from the keyboard). dbus-x11 makes up for the lack of input tools. After launching Ubuntu's LXDE or XFCE desktop environment, execute the following command in a shell such as LXTerminal.


apt install -y fonts-noto
apt install -y fcitx-anthy
apt install -y dbus-x11

Setting

Next, make the settings in the input tool settings dialog. Open the dialog with the following command.


fcitx-configtool

If the dialog does not open, execute the following command and then launch the dialog again.


fcitx-autostart

After displaying the input tool dialog, follow the steps below to set up Anthy.

  1. Select the Input Method tab
  2. Press the + button
  3. Uncheck the Only Show Current Language checkbox
  4. Enter Anthy in the input field below the checkbox
  5. Anthy will appear in the box above, select it and press the OK button
  6. Select Anthy so that Anthy is in the second position from the top, and then move it with the ↑ and ↓ buttons to the right of the + button.
  7. Then select the Global Config tab
  8. Set a button to switch between Japanese and English with the Trigger Input Method (*)
  9. Press x at the top right of the dialog to close the dialog

Next, write the environment variables and the start command of fcitx in the configuration file. Execute the following command to edit the configuration file.


vim ~/.bashrc

Place the following in a suitable location in the .bashrc file. I listed at the bottom.


export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx

fcitx > /dev/null 2>&1

Finally, quit Termux and XSDL and restart them. There are two lines of Termux in the notification area of Android, so tap the upper one. The word Exit will appear at the bottom left, so tap Exit to exit Termux. Follow the steps for each Android launcher to exit XSDL. If you start the desktop environment with Termux + XSDL again, you will be able to input Japanese with Anthy.

In my environment, I couldn't input Japanese with Anthy without restarting Termux. I couldn't load .bashrc with the souce command, so there may be something I have to do at startup.

Reference site

[Building Japanese input for Linux (Crostini) on Chromebook with Anthy] (https://qiita.com/shin1kt/items/8d6be8e16e309db9cd79)

[Use VS Code on Chromebook C101PA. (Using Crostini)] (https://www.taneyats.com/entry/vscode-on-c101pa#%E3%83%95%E3%82%A9%E3%83%B3%E3%83%88%E3%82%92%E8%BF%BD%E5%8A%A0)

[What to do if fcitx fails to connect to fcitx correctly] (https://kunst1080.hatenablog.com/entry/2017/11/25/215016)

Try installing Visual Studio Code on Chrombook C101PA

Recommended Posts

I want to use Ubuntu's desktop environment on Android for the time being (Termux version-Japanese input in desktop environment)
I want to use the Ubuntu desktop environment on Android for the time being (Termux version)
I want to use Ubuntu's desktop environment on Android for the time being (UserLAnd version)
I want to use Python in the environment of pyenv + pipenv on Windows 10
For the time being using FastAPI, I want to display how to use API like that on swagger
I want to move selenium for the time being [for mac]
I want to create a Dockerfile for the time being.
I want to use the R dataset in python
I tried running PIFuHD on Windows for the time being
LINEbot development, I want to check the operation in the local environment
I made a function to check if the webhook is received in Lambda for the time being
I want to use Linux on mac
I want to develop Android apps on Android
I want to use the Django Debug Toolbar in my Ajax application
For the first time in Numpy, I will update it from time to time
[Hi Py (Part 1)] I want to make something for the time being, so first set a goal.
How to use MkDocs for the first time
Use logger with Python for the time being
Try adding an external module to pepper. For the time being, in requests.
Run yolov4 "for the time being" on windows
I want to use the activation function Mish
I want to display the progress in Python!
[Writing] I want to display the variables used in the program on the server side in real time on the browser and update them.
I will try to summarize the links that seem to be useful for the time being
I just want to find the 95% confidence interval for the difference in population ratios in Python
I don't know what HEIC is. But for the time being, let's use PNG!
I want to create a lunch database [EP1] Django study for the first time
I want to create a lunch database [EP1-4] Django study for the first time
I tried Python on Mac for the first time.
I want to use self in Backpropagation (tf.custom_gradient) (tensorflow)
Flow memo to move LOCUST for the time being
Molecular dynamics simulation to try for the time being
I want to develop an Android application on Android (debugging)
I tried python on heroku for the first time
I want to write in Python! (3) Utilize the mock
I will install Arch Linux for the time being.
Next to Excel, for the time being, jupyter notebook
I want to use OpenJDK 11 on Ubuntu Linux 18.04 LTS / 18.10
I want to restart CentOS 8 on time every day.
[For beginners] I want to explain the number of learning times in an easy-to-understand manner.
[For those who want to use TPU] I tried using the Tensorflow Object Detection API 2
I want to absorb the difference between the for statement on the Python + numpy matrix and the Julia for statement
I don't tweet, but I want to use tweepy: just display the search results on the console
[TensorFlow] I want to master the indexing for Ragged Tensor
I want to use the latest gcc without sudo privileges! !!
How to use VS Code in venv environment on windows
I want to use only the normalization process of SudachiPy
[Python] I want to use the -h option with argparse
I want to use a virtual environment with jupyter notebook!
I didn't know how to use the [python] for statement
I want to make the Dictionary type in the List unique
[Introduction to Reinforcement Learning] Reinforcement learning to try moving for the time being
I want to align the significant figures in the Numpy array
I want to make input () a nice complement in python
I didn't want to write the AWS key in the program
I want to get the name of the function / method being executed
I want to record the execution time and keep a log.
I tried to describe the traffic in real time with WebSocket
I want to use shortcut translation like DeepL app on Linux
Java programmer tried to touch Go language (for the time being)
[Linux] I want to know the date when the user logged in