Kali Linux On Android - Micromax Canvas Nitro A310/A311

I'm using kingroot to get root access
installed busybox
then installed linux deploy and vnc viewer
but when I choose kali linux and tap on install then after creating partition it says
Code:
E: The selected extractor cannot be found: ar
<<<install
and it get stuck there, then nothing happens for hours

Related

[Q] Compiled source for android

Hi all
Im using Galaxy Mini (Android 2.3.6) and have installed Ubuntu 9.04 jaunty via Linux Installer. Using(on phone) Ubuntu and cx_Freeze i can compile Python scripts to source code(for armv6l) and install it (on Ubuntu) and it works well but when i move it to Android and run command from Terminal Emulator im getting toast with message root get administrator privileages(a few times) to time when shows superuser force update, phone getting laggy and i must take off battery and turn it on again.
directory tree of source files:
--------------------------------------
usr(dir)
----bin(dir)
--------print(file, run print from /usr/lib/print-0.1/ dir)
----lib(dir)
--------print-0.1(dir)
------------*.so(files)
------------*.zip(archive with freezed Python libs)
------------print(file)
--------------------------------------
and files in /system/xbin/
print file
--------------------------------------
#!/system/bin/sh
su -c "/system/xbin/print.sh"
--------------------------------------
print.sh file
--------------------------------------
#!/system/bin/sh
export print="/usr/bin/print"
print
--------------------------------------
My Questions:
1. Why it not works while files are compiled on armv6l to armv6l processor?
2. Can i somehow make that works?(How? or Why?)
3. Is there a way to make linux gui for android?(Why?)

How to install Remix OS in VirtualBox (or to harddisk)

Advantages of a "real" installation:
- the amount of storage is only limited by the size of your harddisk
- installation files and methods work for both harddisk and virtual machines (VirtualBox or VMWare)
If you prefer an installation without additional tools like Ubuntu or Unetbootin, have a look at "Installing Remix OS to Hard Drive or Virtual Machine without additional tools" (image based documentation).
Thread "Remix OS on Hard Drive or Virtual Machine - Installation and (OTA) Update" is a new and more comprehensive version of this thread including update of existing installations on hard disk or virtual machine. The current versions are 2.0.403 (2016-07-12) "Lillipop" which you can get from Fosshub and 3.0.102 "Marshmallow" which can be downloaded directly from Jide.
Otherwise if you are familiar with Ubuntu and Linux tools the following documentation is still interesting, because it allows you creating of modified boot media, different methods of disk formatting, and setting up virtual machines based on a prepared vmdk file.
Step 1: Create an iso file allowing real installation of the Android system into an ext4 partition
- you have to mount the original Remix OS iso file to your file system (read only):
create an empty directory "remix", open a terminal and execute:
sudo mount -o loop Remix_OS_for_PC_64_B2016030106.iso ~/remix/
or - in case of 32-bit version -: sudo mount -o loop "Remix OS for PC Beta 32-bit.iso" ~/remix/
- create a new copy of all contents of directory remix within a new directory named remixos
- open file isolinux.cfg with superuser rights (in directory isolinux) and replace section "label guestmode" with
label installmode
menu label ^Install Remix OS to hard drive
kernel /kernel
append initrd=/initrd.img root=/dev/ram0 androidboot.hardware=remix_x86_64 androidboot.selinux=permissive quiet INSTALL=1 DEBUG=
(in case of the 32-bit version the 3rd line contains . . . androidboot.hardware=remix_x86 . . . )
- create a new iso file (named remix.iso) using command
genisoimage -r -V "Remix OS 2.0" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o remix.iso ~/remixos/
- use UNetbootin based on new file remix.iso for creating a modified USB device (which will allow real installation to harddisk)
Step 2: Formatting the disk (ext4 and swap partition)
- Harddisk: Use gparted for creation of an ext4 and a swap partition on a new (empty) disk
- VirtualBox:
Create a new virtual machine called "Remix OS": Linux Ubuntu (64-bit or 32-bit), 20GB disk dynamic, bridged network
Start an Ubuntu installation creating an ext4 and a swap partition. Stop installation (by shutting down VirtualBox) after it has asked for the correct time zone.
Step 3: Installation of Remix OS
- Harddisk: Connect the USB device to your computer
- VirtualBox: Connect the remix.iso with VirtualBox IDE controller and restart the virtual machine.
Choose "Install Remix OS to hard drive"
Choose partition sda1 (ext4)
Do not format the disk
Create grub boot loader
Install system directory as read/write
In the next step the installation will be executed creating the linux system directory
Step 4: Setup Remix OS
Run Android-x86 - this will perform the creation of the Android data directory
If you prefer to use a prepared vmdk file your can go on at
- VMWare: http://forum.xda-developers.com/showpost.php?p=65013881&postcount=8
- VirtualBox: http://forum.xda-developers.com/showpost.php?p=65013915&postcount=9
Otherwise: After a few minutes you'll see "Select your language". Select your keyboard layout (e.g. German) first, then select your language.
After clicking "Next" (harddisk: entering your wi-fi data) and "Start" Remix OS will run.
Step 5 (Remix OS beta): Enable Google Play Services - see post http://forum.xda-developers.com/remix/remix-os/google-play-services-actually-remix-t3327735 - Thank you, You_KS
In version 2.0.403 you have to switch on "Enable debug terminal console" (Settings > Experimental features) in advance.
Enter the root terminal (Alt+F1) and type
pm disable com.jide.apppolicy
pm enable com.android.vending
pm enable com.google.android.gms
pm enable com.google.android.gsf
pm enable com.google.android.gsf.login
Leave the root terminal (Alt+F7)
Reboot
Step 6: Open Google Play Store
You will be asked for your Google account and password, you'll have to accept "terms of service", "privacy policy" and "billing information".
Step 7: Rooting Remix OS (installed within a Linux ext4 file system)
see link http://forum.xda-developers.com/showpost.php?p=65218188&postcount=44
I've just tried but running Android-x86 always seems to stop the machine. I did a few changes on the process but nothing really important (I used a web server to download the custom .iso file in my computer from the VM and used it without any USB, and I used an Ubuntu to make the partitions on the disk (about 23GB of storage, 2GB of swap))
I'm using VMWare Workstation 10.0.1 build-1379776
Maybe I just have to wait a bit more while running Android-x86? I took a snapshot before restarting the machine (Grub sure works, but as soon as I run "Install Remix OS to hard drive" it frozes again ("Detecting Android-x86... found at /dev/sda1") showing the same message: " A N D R O I D _ ")
Shadows_killer said:
I've just tried but running Android-x86 always seems to stop the machine. I did a few changes on the process but nothing really important (I used a web server to download the custom .iso file in my computer from the VM and used it without any USB, and I used an Ubuntu to make the partitions on the disk (about 23GB of storage, 2GB of swap))
I'm using VMWare Workstation 10.0.1 build-1379776
Maybe I just have to wait a bit more while running Android-x86? I took a snapshot before restarting the machine (Grub sure works, but as soon as I run "Install Remix OS to hard drive" it frozes again ("Detecting Android-x86... found at /dev/sda1") showing the same message: " A N D R O I D _ ")
Click to expand...
Click to collapse
I cannot help you with VMWare Workstation. Please check whether you can setup Remix OS using VirtualBox.
Can you please just upload a VMDK so that we can download and use it preconfigured?
+1, would be much appreciated.
evbenev said:
Can you please just upload a VMDK so that we can download and use it preconfigured?
Click to expand...
Click to collapse
or for VB
remixtester said:
I cannot help you with VMWare Workstation. Please check whether you can setup Remix OS using VirtualBox.
Click to expand...
Click to collapse
Ok, I'll try it with Virtualbox later today, and I'll keep trying it on VMWare too, I'd like to see Remix OS running on every different VMs I can. Btw, congratulations for the post!
Execute RemixOS.vmdk with VMWare
Download RemixOS64.vmdk.zip - Link (provided by madLyfe - thank you!) https://mega.nz/#!hpBwgAKC!qC7_CIdlriBgtwJsdGPannrshvrYFr0RsOZHSMEILrY which contains "Remix OS.vmdk" (beta version)
The version of the vmdk file is 2.0.102. How to update to version 2.0.202 (and newer versions) is documented in thread "Remix OS on Hard Drive or Virtual Machine - Installation and (OTA) Update".
The update method described in Update for Remix OS 2.0.102 installations will work for VMWare as well.
Open VMWare Workstation
- Start with "Create a New Virtual Machine"
- Custom
- Workstation 12.0 (e.g)
- "I will install the operating system later"
- Guest Operating System: 2. Linux - Version: Ubuntu 64-bit
- Virtual Machine Name: "Remix OS" (e.g.)
- Processors: 1 / 1 / 1
- Memory: 1372 MB (1024 MB should be ok, too)
- Use bridged networking
- I/O Controller Types: "LSI Logic" (Recommended)
- Virtual Disk Type: SATA (SCSI will not work!)
- Use an existing virtual disk - select the path to Remix OS.vmdk
- Convert existing virtual disk to newer format? - Keep existing format
- Finish
Start up the Remix OS operating system
A few minutes later (1 . . . 5 minutes) you should see the screen "Select your language"
Select your keyboard layout and click "Next", "Next", "Start"
Remix OS should run now
Installation of Google Play Store - method: see http://forum.xda-developers.com/remix/remix-os/google-play-services-actually-remix-t3327735
Enter the root terminal (Alt+F1) and type
pm disable com.jide.apppolicy
pm enable com.android.vending
pm enable com.google.android.gms
pm enable com.google.android.gsf
pm enable com.google.android.gsf.login
Leave the root terminal (Alt+F7)
Open Settings - Applications
Scroll down to "Google Play services", click "Manage space", and "Clear all data"
Click "Google Services Framework", and click "Clear data"
Restart Remix OS
Open the browser
Start a Google Search for "google play services"
Click "Google Play Services"
Sign on with your Google account and answer a few questions
Finally you can "Update" the "Google Play Services"
If this update works fine, your Google Play Store will be installed properly.
Execute Remix OS.vmdk with VirtualBox
Download RemixOS64.vmdk.zip - Link (provided by madLyfe - thank you!) https://mega.nz/#!hpBwgAKC!qC7_CIdlriBgtwJsdGPannrshvrYFr0RsOZHSMEILrY which contains "Remix OS.vmdk" (beta version)
If you want to work with a vdi file, please go to the directory where you have saved the vmdk file and convert it with command
vboxmanage clonehd "Remix OS.vmdk" RemixOS.vdi --format VDI
The version of the vmdk file is 2.0.102. How to update to version 2.0.202 (and newer versions) is documented in thread "Remix OS on Hard Drive or Virtual Machine - Installation and (OTA) Update".
Open VirtualBox
- Start with "New"
- Name and Operating System: "Remix OS", "Linux", "Ubuntu (64-bit)"
- Memory: 1372 MB (1024 MB should be ok, too)
- Disk: Use existing virtual disk (enter path to Remix OS.vmdk)
- Display: 3D acceleration
- Network: bridged
Start up the Remix OS operating system
A few minutes later (1 . . . 5 minutes) you should see the screen "Select your language"
Select your keyboard layout and click "Next", "Next", "Start"
Remix OS should run now
Installation of Google Play Store - method: see http://forum.xda-developers.com/remix/remix-os/google-play-services-actually-remix-t3327735
Enter the root terminal (Alt+F1) and type
pm disable com.jide.apppolicy
pm enable com.android.vending
pm enable com.google.android.gms
pm enable com.google.android.gsf
pm enable com.google.android.gsf.login
Leave the root terminal (Alt+F7)
Open Settings - Applications
Scroll down to "Google Play services", click "Manage space", and "Clear all data"
Click "Google Services Framework", and click "Clear data"
Restart Remix OS
Open the browser
Start a Google Search for "google play services"
Click "Google Play Services"
Sign on with your Google account and answer a few questions
Finally you can "Update" the "Google Play Services"
If this update works fine, your Google Play Store will be installed properly.
evbenev said:
Can you please just upload a VMDK so that we can download and use it preconfigured?
Click to expand...
Click to collapse
Opening http://forum.xda-developers.com/showpost.php?p=65013881&postcount=8 you'll find a vmdk file which you can use both for VMWare and VirtualBox. The vmdk file is not personalized. So you can select your preferred keyboard layout.
madLyfe said:
or for VB
Click to expand...
Click to collapse
Opening http://forum.xda-developers.com/showpost.php?p=65013915&postcount=9 you'll find a vmdk file which you can use both for VMWare and VirtualBox. The vmdk file is not personalized. So you can select your preferred keyboard layout.
Shadows_killer said:
I've just tried but running Android-x86 always seems to stop the machine. I did a few changes on the process but nothing really important (I used a web server to download the custom .iso file in my computer from the VM and used it without any USB, and I used an Ubuntu to make the partitions on the disk (about 23GB of storage, 2GB of swap))
I'm using VMWare Workstation 10.0.1 build-1379776
Maybe I just have to wait a bit more while running Android-x86? I took a snapshot before restarting the machine (Grub sure works, but as soon as I run "Install Remix OS to hard drive" it frozes again ("Detecting Android-x86... found at /dev/sda1") showing the same message: " A N D R O I D _ ")
Click to expand...
Click to collapse
Opening http://forum.xda-developers.com/showpost.php?p=65013881&postcount=8 you'll find a vmdk file which you can use both for VMWare and VirtualBox. The vmdk file is not personalized. So you can select your preferred keyboard layout.
Will you be posting modified alterations for efi installs? Great guide.
rebel1699 said:
Will you be posting modified alterations for efi installs? Great guide.
Click to expand...
Click to collapse
No, I am not planning that because I do not own computers with efi boot.
By the way, your dropbox account is blocked due to high traffic.
Nightshadow931 said:
By the way, your dropbox account is blocked due to high traffic.
Click to expand...
Click to collapse
here is a mega link to the file he uploaded. if he provides the hash for it you can see that it hasnt been altered.
https://mega.nz/#!5pYCALwT!HknLNDJWqRJwuBIspa14AjfGEVYJlFpy7aMUudolSsw
Thank you, got it set up in VM Fusion on my MacBook using your vmdk and instructions.
Working fine with a couple of exceptions. Firstly, it's stuck at a small 4:3 res which only zooms when changing the size of the window?
Secondly, some apps ask for a wifi connection despite everything else working with the outside world. Prime example is the Sky+ app which downloads all the schedules and can set recordings across the net with no problem but if you try to access the Sky box on my network it says it has no wifi network found?
Hi guys,
I made a quick video on how to install on VMWare is anyone is interested.
https://www.youtube.com/watch?v=BT4RcwX2ruM
avotechlife said:
Hi guys,
I made a quick video on how to install on VMWare is anyone is interested.
https://www.youtube.com/watch?v=BT4RcwX2ruM
Click to expand...
Click to collapse
That only gets you guest mode which is where we were all getting stuck before remixtester sussed it.
I just need to sort the resolution as all the changes I've been making to menu.lst end up with it back in guest mode again.
I'm a complete linux noob trying my damnedest to create that installation ISO. I keep getting errors when trying to complete the commands though and generally it's telling me that the mount point doesn't exist or the directory is invalid.
I know it's my own ineptitude with Linux that's the problem but can anyone more savvy than myself create and upload this image for me? I'll be glad to host it for everyone else to download as well if anyone wants it.

[TOOL] OSConnect ~ Run Arch and Ubuntu alongside eachother

Hey XDA!
For those of us that use Arch linux, compiling Android projects can be a little more challenging than on Ubuntu due to the fact the Arch is a rolling release distro. To solve this, I made a tool that allows YOU to choose whether you want to run Arch or Ubuntu in the command line without dual booting. This isn't anything new, just a simplified implementation of an existing method.
What it does:
When you open a terminal, you will be prompted with "Would you like to connect to Arch linux or Ubuntu?". You can enter A for Arch or U for Ubuntu. If you choose Arch, you will be put into your stock environment, but your bash prompt will look like
Code:
[[COLOR="red"]user[/COLOR]@[COLOR="cyan"]Arch[/COLOR] ~]:
If you choose Ubuntu, you will be entered into your Ubuntu chroot, and your bash prompt will look like
Code:
[[COLOR="red"]user[/COLOR]@[COLOR="magenta"]Ubuntu[/COLOR] ~]:
DISCLAIMER
Because Arch linux is aimed at enthusiast and experienced linux users, replies about simple or lack-of-experience issues will not be given priority. Use the following with caution.
How to setup an Ubuntu chroot:
1. Install schroot and debootstrap
2. Follow the steps given here https://bbs.archlinux.org/viewtopic.php?id=100039, or run create-chroot.sh in the OSConnect git repo.
How to install OSConnect:
1. Clone https://github.com/frap129/OSConnect
2. Run the given install.sh
3. If you use terminal mostly locally, respond "Local" to the prompt. If you mostly connect via ssh, respond "SSH" to the prompt.
4. If you connect via SSH, connect as root from now on, not your user. OSConnect will switch to your user for you.
Done! Restart to use.
XDA:DevDB Information
OSConnect, Tool/Utility for the Chef Central
Contributors
frap129
Source Code: https://github.com/frap129/OSConnect
Version Information
Status: Stable
Created 2016-05-15
Last Updated 2016-05-15
How it works:
Ubuntu chroot:
This work by downloading the Ubuntu system files to /var/chroot/ubuntu. The schroot tool then executes bash from ubuntu, and tricks the system into believing that /var/chroot/ubuntu is actually the system root directory.
OSConnect:
OSConnect is contained in its own file, .osconnectrc. This file is executed when shell is reached via your .bashrc. The .osconnectrc is a bash script that asks what operating system you would like to use, then either dumps you into normal shell, or starts the Ubuntu chroot. It also modifies the PS1 (bash prompt) to look cleaner and better distinguish between Arch and Ubuntu.
What is the difference between local and ssh?
The only difference between the local and ssh versions is whether or not youre prompted for your password (when chroot is started) because schroot must be run as root. On the local version, you are simply prompted for your password when necessary. On the ssh version, you are expected to connect as root, and therefore will not be prompted for your password.
HALP I CANT LOG IN AS ROOT
If you are having trouble connecting via SSH as root, follow https://askubuntu.com/questions/511833/cant-ssh-in-as-root
Resource wise is this lighter than running ubuntu as a docker image?
HaoZeke said:
Resource wise is this lighter than running ubuntu as a docker image?
Click to expand...
Click to collapse
I'm way to late for this to matter, but yes, its much lighter than running at as a docker image
frap129 said:
I'm way to late for this to matter, but yes, its much lighter than running at as a docker image
Click to expand...
Click to collapse
Better late than never! ? neat stuff ?

How to install Parrot Os Chroot on android

What is Chroot?
A chroot on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children. A program that is run in such a modified environment cannot name (and therefore normally cannot access) files outside the designated directory tree. The term "chroot" may refer to the chroot system call or the chroot wrapper program. The modified environment is called a chroot jail.
Instructions to install Parrot os (CHROOT) on Android.
Requirments:-
4 Gb of free space on phone
Linux deploy app
vnc viewer
Juice ssh
A good internet connection
/LIST]
Method:-
1.Goto https://docs.parrotsec.org/doku.php/mirrors-list and copy the nearest mirror repo link
2.Open Linux Deploy chroot menu
3.Set Distribution to Debian
4.Set Distribution Suite to Stable
5.In Source path paste the repo link which you have copied in step 1
6.Set file system to ext4
7.Set Usename and password of your own
8.enable ssh and vnc protocols if required
9.now go to back and click options in linux deploy
10.click on install and once it is done click on Configure
To access ssh use Juice ssh app which is available in playstore
Steps to use juice ssh:-
1.click on connections
2.click on plus
3.In address type 127.0.0.1
4.in identity click on new
5.In username and password enter the details which you have entered in chroot settings
6.and now click on save and connect
To access GUI use vnc viewer from playstore
Step to use Vnc Viewer
1.click on plus
2.In address use 127.0.0.1:5900
3.Now click on connect
4.Now enter password which you have entered in chroot settings
For video tutorial go to link below
https://youtu.be/GcKHAB2vec4
Hi, is possible to install puppy linux instead?
Marella ram_youtubr said:
What is Chroot?
A chroot on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children. A program that is run in such a modified environment cannot name (and therefore normally cannot access) files outside the designated directory tree. The term "chroot" may refer to the chroot system call or the chroot wrapper program. The modified environment is called a chroot jail.
Instructions to install Parrot os (CHROOT) on Android.
Requirments:-
4 Gb of free space on phone
Linux deploy app
vnc viewer
Juice ssh
A good internet connection
/LIST]
Method:-
1.Goto https://docs.parrotsec.org/doku.php/mirrors-list and copy the nearest mirror repo link
2.Open Linux Deploy chroot menu
3.Set Distribution to Debian
4.Set Distribution Suite to Stable
5.In Source path paste the repo link which you have copied in step 1
6.Set file system to ext4
7.Set Usename and password of your own
8.enable ssh and vnc protocols if required
9.now go to back and click options in linux deploy
10.click on install and once it is done click on Configure
To access ssh use Juice ssh app which is available in playstore
Steps to use juice ssh:-
1.click on connections
2.click on plus
3.In address type 127.0.0.1
4.in identity click on new
5.In username and password enter the details which you have entered in chroot settings
6.and now click on save and connect
To access GUI use vnc viewer from playstore
Step to use Vnc Viewer
1.click on plus
2.In address use 127.0.0.1:5900
3.Now click on connect
4.Now enter password which you have entered in chroot settings
For video tutorial go to link below
https://youtu.be/GcKHAB2vec4
Click to expand...
Click to collapse
Hi, i'm interested to install puppy linux instead, is possible? Please let us me know. Thank you so much

Question Help installing WSL or WSL2

Greetings:
Im a noob trying to learn Linux and I have PhoenixLiteOS installed and installing from cmd wsl --install is not avail.
I want to install Ubuntu. Can someone guide me a certain direction? Do I install WSL from MS Store? then what else?
thanks
Installing Ubuntu With a GUI + WSL2 Upgrade - Windows Subsystem For Linux + Premade Ubuntu Virtual Machines (and more!)
Hello Friends~! I decided to write out a step by step guide to install WSL - Windows Subsystem for Linux, with an Ubuntu Distro, and integrated GUI using Xserver. As well as how to update WSL to WSL2. Open Powershell as Admin, then paste: wsl...
forum.xda-developers.com
Here you go!
Open the Microsoft Store on your Windows machine.
Search for "WSL" or "Windows Subsystem for Linux" in the search bar.
Choose a Linux distribution that you want to install (e.g., Ubuntu, Debian, or Fedora). Click on it to open the distribution's page.
On the distribution's page, click the "Install" button to start the installation process. It might take a few minutes to download and install the Linux distribution.
Once the installation is complete, you can launch the Linux distribution from the Start menu or by searching for the distribution's name. The first launch may take a bit longer as it sets up the necessary files.
Follow the prompts to set up a username and password for your Linux distribution.
Congratulations! You have successfully installed WSL on your Windows machine. You can now use a Linux environment directly within Windows.

Categories

Resources