Hello friends, welcome to today's article, in this tutorial I'm gonna show you how to install Android Studio on Android, sounds impossible right 😅 well in this tutorial, we're going to make the impossible possible, before proceeding with this tutorial, it is important to let you know that we're going to be installing android studio on android using Kali Linux.
if you don't know how to install Kali Linux on Android then you must read the previous articles I published on how to install Kali Linux And it's Desktop to be able to catch up with this one, you can read them below:
Now that you already have Kali Linux or Ubuntu OS fully setup on your mobile Device, then let's proceed to Android studio installation.
What is android Studio?
Android Studiois the official integrated development environment for Google's Android operating system, built on JetBrains' IntelliJ IDEA software and designed specifically for Android development. It is available for download on Windows, macOS and Linux based operating systems.
Open your Ubuntu terminal and update it, you can keep your repository up to date by using the commandsudo apt update
Android studio requires java to function, so it is adviced to install java before moving on with the installation, to install java you can use the commandsudo apt install default-jdk
Step two: launch vnc server
Launch your vncserver and connect to Kali Linux using the vnc viewer Application, and after that, we can proceed with installing android studio.
Step three: Download Android-studio Linux tarball
Now to install Android-studio you can launch your Firefox-esr browser on Kali Linux and search for android studio using the search bar or you can directly download the tarball using the link below and selecting linux in the download option, Read and Accept the terms and conditions Applied and proceed with your download ;
Step four: extract & configure the Android-studio tarball
After your download is complete, the next step of course is to configure the tarball and set it up for installation, to do that launch your terminal and navigate to download folder, to do that use the command:
cd Downloads
If you type thelscommand you should find the Android-studio tarball there, the next thing we're going to do is to move the tarball to the /opt directory, you can do that with the command:
mv android-studio-2021.2.1.16-linux.tar.gz /opt
After moving the tar file to the /opt directory you're going to navigate to the directory with the command:cd /opt
Now to extract the file you can simply use the command:
tar -xf android-studio-2021.2.1.16-linux.tar.gz
After the extraction has been completed successfully, then you can go ahead and delete the original tarball file with the command
rm android-studio-2021.2.1.16-linux.tar.gz
Android studio extraction
NOTE: the description above is due to the latest version of Android-studio there is as at the time of writing this article
Step five: create a shortcut command for Android-studio
After Android-studio tarball has been successfully extracted, the next thing we're going to do is create a shortcut command for android studio so that we can easily access the studio application from any part of the terminal by using a simple command, so let's navigate to the android studio bin from the /opt directory by using the commandcd android-studio/bin
In the bin directory we're going to create an Android-studio shortcut by using the command:
now we give storage access to the newly created shortcut by using the command :
chmod +x /bin/android-studio
Final step: Launch Android-studio
After you're done with all of the processes above, you can launch android studio from any directory in your terminal by using the command:android-studio
And that is it, your studio should open within seconds, download and update all necessary packages in the studio application and you can now enjoy your full Android-studio From the comfort of your Android phone😊.
Android-studio chipmunk
Code, just like you do on your PC and I wish you the best of luck champ, and if you're totally new to coding you can start by learning from some YouTube creators or take a course, you can as well subscribe to my YouTube channel as I will be taking topics focused on these aspects soon.
Kali Linux is a Debian-derived Linux distribution designed for digital forensics and penetration testing. It is maintained and funded by Offensive Security
The next thing we're going to do is install kali linux, to do that type or copy and paste the command:
proot-distro install kali
After this, you can now successfully login to your Kali Linux with the command:
proot-distro login kali
By default, after installation, Kali Linux on android rootless phone doesn't support upgrade, and that is because of postgresql as it blocks the upgrade command from working on Kali, to fix this all we have to do is delete the postgresql file, we can delete the postgresql file with this command
rm -rf /var/lib/dpkg/info/postgresql* && dpkg --configure -a
This should fix the error and you can continue with using your Kali as usual
Now, you can update and upgrade kali repository with the command
apt update && apt upgrade
And now you can proceed to using Kali Linux as usual.
Login to your terminal with the command proot-distro login kali as shown in the previous article, then upgrade your terminal with the command
sudo apt full-upgrade
After that, the next thing we're going to do is install udisks2, you can install udisks2 with the command
sudo apt install udisks2
Now we remove the default udisks2 file and configure a new one, you can do that with the commands below.
Removing
sudo rm /var/lib/dpkg/info/udisks2.postinst
configuration
echo "" >> /var/lib/dpkg/info/udisks2.postinst
Now you configure the dpkg file and hold udisks2, you can do that with the commands below.
Configuring dpkg
sudo dpkg --configure -a
Holding udisks2
apt-mark hold udisks2
Now we install xfce
After finishing up with all of the procedures above, then Xfce Desktop is now safe for installation, to install xfce you can use the command:
sudo apt install xfce4 xfce4-whiskermenu-plugin
The command above is going to install xfce, after that we're going to install other utilities like dbus launcher, qterminal, Firefox e.t.c you can simply use the command below to install all utilities at once:
NOTE: geometry size depends on the resolution of your phone
And you can always kill vncserver with the command vncserver -kill :1 (always remember to close vncserver before exiting termux)
That is going to be all for this tutorial, if you have any questions to ask me regarding this article, you can let me know in the comments section below, hope to hear from you soon. Stay safe
Hi there, this whole in a nutshell is guide to install and setup ArchLinux on your android without root and with KDE Plasma. Some small fixes and that's it.
Arch Linux is a Linux distribution created for computers with x86-64 processors. Arch Linux adheres to the KISS principle (Keep It Simple, Stupid). The project attempts to have minimal distribution-specific changes, and therefore minimal breakage with updates, and be pragmatic over ideological design choices and focus on customizability rather than user-friendliness
Alright, Lets just get this straight, these are just somedotfiles&scripts, which will help you to setup a graphical environment intermux. I've tried to make itas easy as possibleto setup a beautifullinux desktop on your android devicewith termux, So follow the steps and you'll end up making it look like this -
Openbox WM
Another Style
Lets start from the beginning...
What is termux?
Termux is an Android terminal emulator and Linux environment app that works directly with no rooting or setup required. A minimal base system is installed automatically - additional packages are available using the PKG/APT package manager. More Here...
How To install termux?
You can install termux form google play store or from f-droid.
Warning : I'm assuming that you're doing this on a fresh termux install. If not, I'll suggest you to do so. However the setup.sh script backup every file it replace, It's still recommended that you manually backup your files in order to avoid conflicts.
Change to cloned directory and run setup.sh with --install option
cd termux-desktop
chmod +x setup.sh
./setup.sh --install
If script setup.sh fails during package installation (due to network issues), you can re-execute it again.
During installation, you'll be asked to set up password for VNC -
[*] Setting up VNC Server...
You will require a password to access your desktops.
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
Note that passwords are not visible when you are typing them and minimum password length is 6 characters. Remember the password you typed as it'll be required to connect via vnc client.
If everything is okay, you will see this message -
New 'localhost:1 ()' desktop is localhost:1
Creating default startup script /data/data/com.termux/files/home/.vnc/xstartup
Creating default config /data/data/com.termux/files/home/.vnc/config
Starting applications specified in /data/data/com.termux/files/home/.vnc/xstartup
Log file is /data/data/com.termux/files/home/.vnc/localhost:1.log
[*] Server Is Running...
TigerVNC server sessions:
X DISPLAY # PROCESS ID
:1 XXXXX
It means that X (vnc) server is available on display 'localhost:1'.
That's it. Termux Desktop is installed successfully. Restart Termux and enter startdesktop command to start vncserver and connect via VNC Client.
startdesktop
[*] Starting VNC Server...
New 'localhost:1 ()' desktop is localhost:1
Starting applications specified in /data/data/com.termux/files/home/.vnc/xstartup
Log file is /data/data/com.termux/files/home/.vnc/localhost:1.log
Uninstallation
If you ever want to uninstall Termux Desktop, just run setup.sh with --uninstall option. Just keep the setup.sh script and delete the cloned repository to save space. I'll create a separate uninstaller script later. The command below will remove all the packages and delete all the config files it installed, including the changes you've made. So, Be careful there...
./setup.sh --uninstall
VNC Client
Now you need a VNC client app to connect to server. I'm using this Android VNC client: VNC Viewer. You can use TigerVNC if you're trying to connect to server by a computer (Windows or Linux).
Determine port number on which VNC server listens. It can be calculated like this: 5900 + {display number}. So for display 'localhost:1' the port will be 5901.
Now open the VNC Viewer application and create a new connection with the following information (assuming that port is 5901) -
Address:
127.0.0.1:5901
Name:
Termux
Now launch it. You will be prompted for password that you entered during installation. After entering password, you'll be headed directly to this desktop -
First Impression
Let's take a look at following installed programs you'll get here -
File Manager
Text Editor/IDE
Terminal Emulator
Web Browser
Openbox Menu
Many CLI based Programs
vim & htop
ranger & calcurse
mutt & elinks
mpd & ncmpcpp
Rofi Application launcher and Applets -
App Launcher
Music Player
Battery Status
Exit Menu
Network Info
Styles
There are total Eight different styles/themes available in this setup. To change style, Right click on desktop > Preferences > Change Style and select the one you want to apply.
Default
Beach
Forest
Grid
Manhattan
Slime
Spark
Wave
Applications of Termux Desktop
Well, These are some ideas or things you can do with termux desktop. From Learning coding to Penetration testing, Chatting over IRC to Browsing web and Downloading file, Playing classic retro games to run Windows from 90s.
Learn and practice you coding skill without having a laptop
Python
Bash
Chatting, Web Browsing and Downloading files
Hexchat & Pidgin
Netsurf & Uget
Browsing Wiki
Penetration testing and Learn cyber security stuff
I'm not doing anything illegal or sponsoring any kind of Hacking and Cracking. Termux is a powerful tool, use it with responsibilities.
Metasploit - Sherlock - Socialfish - Zphisher - Sqlmap
Play classic retro games or Run Microsoft Windows from 90s with Dosbox
Turbo C++, Windows 1 and Windows 3
Duke and Blue Brothers
Mario and Pacman
Prince of Persia (both)
Wolfenstein and Turrican2
SuperKarts and Spiderman
You'll probably get the idea of possible things you can do with Termux and how Termux Desktop makes it more easy.
Keybindings
Here's some shortcut keys you want to use to speed up your work. For more, Right click on desktop > Keybinds
Keys
Action
-----
Keys
Action
W-1
Go To Desktop 1
S-W-1
Send To Desktop 1
W-2
Go To Desktop 2
S-W-2
Send To Desktop 2
W-3
Go To Desktop 3
S-W-3
Send To Desktop 3
W-4
Go To Desktop 4
S-W-4
Send To Desktop 4
W-5
Go To Desktop 5
S-W-5
Send To Desktop 5
W-S-Left
Send To Prev Desktop
W-S-Right
Send To Next Desktop
A-Tab
Next Window (Current Workspace)
W-Tab
Next Window (All Workspaces)
W-h
Move to TopLeft
W-j
Move to BottomLeft
W-k
Move to TopRight
W-l
Move to BottomRight
W-Left
Move To Left Edge
W-Right
Move To Right Edge
W-Up
Maximized
W-Down
Unmaximized
W-q/c
Close Windows
A-r/m
Toggle Resize/Move
W-Space
Openbox Menu
W-p/A-F1
App Launcher
W-d
Toggle Desktop
W-v
Set Tasks
W-f
File Manager
W-e
Text Editor
W-t/return
Terminal
W-w
Web Browser
W-x
Exit Menu
W-m
Music Menu
W-b
Battery Menu
W-n
Network Menu
C-A-v
Vim
C-A-r
Ranger
C-A-h
Htop
C-A-n
Nano
Additional Tools
You can install additional tools for termux, to make it visually look good.
Oh my zsh, Setup zsh with oh-my-zsh framework. (Already Added in this setup)