[Completed] How to run Linux on android - XDA Assist

Hello,There is some ways where you can Linux system on android ,
1.you have to download 'complete Linux installer' ,Terminal Emulator for android' and last one which is ' android vnc'.
2.Open Complete Linux installer ,It'll install boot scripts which are needed . Off course you need rooted android phone for this.
3.You will see Linux distros which are available for your device e.g. Debian,Ubuntu, Kali Linux etc.
4.Then click on any one and it will show to download these distrisos and further procedures.
Thank You Reeding..download all things from playstor

sanket73 said:
Hello,There is some ways where you can Linux system on android ,
1.you have to download 'complete Linux installer' ,Terminal Emulator for android' and last one which is ' android vnc'.
2.Open Complete Linux installer ,It'll install boot scripts which are needed . Off course you need rooted android phone for this.
3.You will see Linux distros which are available for your device e.g. Debian,Ubuntu, Kali Linux etc.
4.Then click on any one and it will show to download these distrisos and further procedures.
Thank You Reeding..download all things from playstor
Click to expand...
Click to collapse
Hello,
This forum is for newbies finding their way around XDA Developers, it isn't a development section.
Please post here Android Software Development Forum, the users looking for the same could use your help.
Thread closed !
-Vatsal

Related

[tut]complete guide on installing linux on android [dual boot]

So , Hello everyone,
It will not remove or harm Android, it will just run Linux on top of android
This tutorial will guide you through installing Linux on mmx a116 with android side by side..
What is this all about?/Why put this on my device?
This projects aim is to bring a range of linux distros to your android device through a method known as 'chroot', see it has running a linux distro within a virtual machine on your phone (Although its not! its using native ARM ports and the Android kernel) . You can access this virtual machine and run it on your phone without causing any damage to your device, or having to overwrite anything. Why might you want this? well my apps are designed to make the install and set up process as easy as possible while still giving you some flexibility. Once you have the distro up and running then you can pretty much run and install any linux software you like (so long as there is a arm port or it is not architecturally dependent).
Wait this uses VNC why shouldn't I just VNC to a computer?
VNC is used to access the GUI as at the moment I have not yet implemented a native way of viewing the GUI. But the Linux distro itself is running within the phone and can be controlled via the terminal app so if your a seasoned Linux user you may never even want to use the GUI
What is Chroot?/How does this work?
"A chroot on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children" - http://en.wikipedia.org/wiki/Chroot
This method of running linux distros with android has been around for some time. I have worked on my scripts to make the process more user friendly and give you far more options from the word go.
The scripts start by mounting the linux image file within the android file system and then mounts the sdcard and if you have it internal memory within the linux file system.
Chroot is then used to change the root directory to that of the mounted linux and a bash shell is then opened to allow you to control linux this is kind of like 'booting' the OS.
The likes of VNC and SSH are then set up when linux is 'booted' to allow you to connect to the GUI if you require it.
Note: This requires a lot of free space on sd cards(any)..atleast 2 GB ..
INSTRUCTIONS:
1-Go to play store and download 'Complete Linux Installer' and install it ..
2-if you have a custom or other kernel , you have to check wether it supports loop or not.So better be on Stock Kernel.
3- Now there are 2 ways to install and run distros(eg-linux,backtrack).One is easier but requires an internet connection on the phone.other is a bit difficult but can be done from PC also .
method 1 ( internet on smartphone )
Go to complete Linux Installer and select install guides and select the distro you want it will download and guide you further.(in the unzipping step , i recommend using a PC for it as its too slow on the phone.)
Method 2 ( using a PC )
Download the version and size of your preferable ubuntu from here -
http://sourceforge.net/projects/linuxonandroid/files/Ubuntu/
After that, download androidVNC and terminal emulator from play store
now extract ubuntu.zip and place it in a folder called ubuntu on root of your SD card.Now you are ready to boot too ubuntu. select the launch menu from complete linux installer.
you will be redirected to terminal emulator . press n if you are asked to check boot.img from md5 as it gets stuck there. set screen size to 1280x720 after few seconds you will see a message [email protected] . this means you are succesful.
go to android vnc type in port option 5900 and password and username as ubuntu an color settings as 24 bit..
congratulations! you have booted to Ubuntu!:highfive:
Hmmmm.
That's not dual boot.:sly:
It runs Linux in VM.
Thanks!
-Dracula
And i don't see why anyone would want to do this, it's just killing your phone by overloading it with a Desktop OS in a VM!
Also perhaps providing credit to the person that did all the hard work might be a good idea .......
Oh and its not a VM guys, it uses chroot which means native ARM linux running with the Android kernel, within Android.

Compile Kernel on S4

Good Morning! I come here earnestly ask the help of an advanced user on Linux and Android. I understand enough of Android , but I'm following a tutorial on XDA that teaches compile my Galaxy S4 kernel so that I can use external USB wireless cards on my smartphone . The problem is that I do not recognize most of the commands in (Terminal) Linux , I'm always stuck in some steps that can be up to beasts , but as I am a layman when it comes to Linux , I just me losing all . Finally , I will provide the tutorial below, any opinion or suggestion will be of great help ! So far only able to download and install the ADB fastboot , but had to search and use another command , since this had not worked in my Kali.
Link of guide: http://forum.xda-developers.com/showthread.php?t=2338179

kali linux on android

i recently installed kali linux on my android device (LG G2 Android: 5.0.2) using complete linux installer, but whenever i wanna connect with VNC Viewer it asks me for password. Where do i find/change/see the password? Please help me out
While installing Kali it must have asked you to create a new root password.. If not open terminal in Kali and type "passwd" without the quotation
Hope this helps
Sent from the beige bra section at Target.
sunneysideup said:
i recently installed kali linux on my android device (LG G2 Android: 5.0.2) using complete linux installer, but whenever i wanna connect with VNC Viewer it asks me for password. Where do i find/change/see the password? Please help me out
Click to expand...
Click to collapse
It explains that in the instructions to install Complete Linux Installer
The password should be "android", or at least it was when I tried using Complete Linux Installer.
You may want to try the Linux Deploy app to do this instead.
I DO NOT PROVIDE HELP IN PM, KEEP IT IN THE THREADS WHERE EVERYONE CAN SHARE

Does someone know how to flash Xperia phones on Linux?

I really think Windows 10 sucks, I've been having serious problems installing the drivers for the XZ P, and I was reading newflasher tool was designed for multiplatform including Linux but haven't found any information explaining how to install and use newflasher on Linux, can someone please help me with this information and if possible it will include the flasher tool for the Xperia XZ (F8331), thank you.
Hello bro
The Newflasher was provided precompile binary on its thread,just download it and decompress, use it like before.
If u wanna use Flashtool, u need to install Oracle JRE or OpenJDK as your like, then download Linux version by the link below
For XperiaFirm, u need to install the MONO environment by ur PackageManager first. Please refer to its thread.
I hope this can help you.
links:
Newflasher: https://forum.xda-developers.com/crossdevice-dev/sony/progress-newflasher-xperia-command-line-t3619426
Flashtool http://www.flashtool.net/downloads_linux.php
Xperifirm https://forum.xda-developers.com/crossdevice-dev/sony/pc-xperifirm-xperia-firmware-downloader-t2834142/
Precompiled binary didn't for me on Mint 19.3, so I had compile myself from source.
Window 10 indeed sucks, I switched to linux like 2 years ago and never looked back.
I recommend looking forward for basic terminal command and how to compile apps from source. It's not that difficult as it sounds.
For example check newflasher github, it provides building instructions
https://github.com/newflasher/newflasher/blob/master/readme.md
Easy version: download zip from github, unpack it.
Open terminal in that folder and type
make newflasher.x64 (if I guessed your architecture)
You will get a new binary "newflasher.x64"
Then you will need to drop it in folder with unpacked firmware and run "./newflasher.x64", if you get an error, try with sudo.
If you are lucky, you won't need compilation

Question Unlock boot loader and Kali Nethunter

So I want to put Kali Nethunter on my SM-S127DL
I tried following a tutorial but failed to achieve boot loader unlock...
So I want to install Kali Nethunter for the tools but I also want to get away from having to be logged into Google, Samsung or Apple.
Has anyone unlocked the loader and installed Kali Nethunter? Can someone point me into the right direction?
I also have the SM-S127DL it seems to be a more locked down version of the A12 so I too am looking for assistance with getting a clean rom on this.
There is not OEM unlock setting under dev mode settings.
Krj1982 said:
So I want to put Kali Nethunter on my SM-S127DL
I tried following a tutorial but failed to achieve boot loader unlock...
So I want to install Kali Nethunter for the tools but I also want to get away from having to be logged into Google, Samsung or Apple.
Has anyone unlocked the loader and installed Kali Nethunter? Can someone point me into the right direction?
Click to expand...
Click to collapse
bruh.. .. .. .. -_-
If you cant unlock a bootloader using a tutorial theres no chance on earth youre going to be able to use kali linux or any of the "tools" it has in it , which require learning each of them to use also. Its not just click a button and become master hacker... it took me roughly 3 years to get a full understanding of the stuff and i barely even know how to use the tools , thats just installing and building custom kernels unlocking bootloaders etc ..
nor is installing kali going to stop you from being logged into google samsung or apple .. nethunter is just an app.. your entire phone will stay the same , youll just have a nethunter app now thats all , with the exception of hacking wifi , you can do everything else that kali can just by downloading termux from fdroid and andronix from the google play store. they are both free and andronix allows you to install kali in any android phone wqithout unlocking the bootloader or rooting it with one click. just install the Kali Xfce version and then in the command line (if it doesnt say root then you need to type commands with the word sudo before them) but anyway assuming it says [email protected]: type "apt update && apt upgrade -y && apt install kali-linux-default kali-themes kali-menu" without the quotes and that will give you a full kali setup ..when thats done just type "vncserver -start" and then use the vnc viewer app to connect to "localhost:1" and presto you have a full visual desktop now

Categories

Resources