October 8, 2020

How to install GUI (Graphical User Interface) on Termux


Termux is the perfect application for Android users to learn Linux easily. Termux provides a command line interface (CLI) for executing Linux commands and more. However, if you want to use Termux in GUI mode, you need to install other operating systems such as Kali Nethunter, Parrot, and Ubuntu to perform the operation in GUI mode. To overcome this problem, there is a solution that installs the GUI on Termux without installing an additional operating system. Therefore, follow these installation steps -

  • Installation -

1) Open Termux and update packages

        $ apt update && apt upgrade


2) After updating packages, Install following packages

        $ apt install git python3

3) After this, run these command one by one

        $ git clone https://github.com/Deadpool2000/Termux-GUI.git


        $ cd Termux-GUI


        $ pip3 install -r requirements.txt


        $ python3 gui.py


 

4) Installation process will start. It will take 4-5 minutes

5) After successful installation, You need to download VNC Viewer to use GUI. Use below link to download VNC Viewer


        Download VNC ViewerClick Here



  • How to start Termux-GUI

1) First, Run following command on termux

        $ vncserver

2) Enter new password for vnc server

3) You will get IP Address like this –

        $ localhost:1 

Here, ‘1’ is a session number. Don’t forget this session number.


4) After above steps, type following command –

        $ DISPLAY=:1 startxfce4 &



Note that ‘1’ is a session number which I said to remember

 

5) Now open ‘VNC Viewer’ App



6) Add an IP Address. In our case, It is localhost:1 and add some name



7) Click on ‘Connect’


8) Now enter password which you used while vncserver setup (Step 2)


9) Succeed! Now you can use GUI on Termux


  • How to stop GUI

 

Open Termux and enter following command –

        $ vncserver -kill :<session_number>

        e.g. vncserver -kill :1



That’s it! If you have any problem regarding this, comment below!


0 comments:

Post a Comment

If you have any problem regrading this post, leave a comment !