meefik / linuxdeploy

Install and run GNU/Linux on Android
https://meefik.github.io/linuxdeploy
GNU General Public License v3.0
5.26k stars 680 forks source link

If you have issues, read this post. [OUTDATED] #183

Open firestorm041 opened 9 years ago

firestorm041 commented 9 years ago

Seems like this comment is now outdated. Deleting it, so that you wouldn't get confused.

pranavirabatti commented 8 years ago

Can someone plz help me to install Kali Linux.! I want the exact steps to install kali linux on my android phone.

ElStonedo commented 8 years ago

As for the SElinux issue... it is Security Enhanced Linux. Samsung felt that they needed to use that in tandem with Knox. As far as I know or at least with the Verizon S4 that I did it on you pretty much can't put SElinux into passive mode.

Once you have kali operational you aren't going to have certian controls over some functions. Now, you can install a custom kernal. Basically you are running Kali with the phone or tablets stock kernal. This restricts you. For instance I was not able to put my wireless card on the phone into monitor mode... Once I get around to getting a new phone I am no longer worried about breaking this one.

Now Marcusgowp, this post and thread really should be all you need to tell you how to install. Simple fact is you are going to have to be able to trouble shoot your issues. I personally like to format my whole SD card and then manually create the partitions needed to install Kali on it. That helps to remove some variable. But again I doubt you will get the functionality you are looking for without a custom kernal installed.

On Friday, September 16, 2016, marcusgowp notifications@github.com wrote:

Can someone plz help me to install Kali Linux.! I want the exact steps to install kali linux on my android phone.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/meefik/linuxdeploy/issues/183#issuecomment-247744500, or mute the thread https://github.com/notifications/unsubscribe-auth/AQk_R6MJpVVek5TBn6qpC2mTsSNx_S_cks5qq1KmgaJpZM4DQ7Fk .

ElStonedo commented 8 years ago

Honestly, I just use the command prompt with a few choice programs. It is fun to flash around Kali user interface to people but honestly was more of a pain to use than gettinga good full functionality virtual keyboard and the command line. Hell, most of what you will be doing is in the terminal anyways...

On Saturday, September 17, 2016, Jacob Kuykendall jacobkuykendall@gmail.com wrote:

As for the SElinux issue... it is Security Enhanced Linux. Samsung felt that they needed to use that in tandem with Knox. As far as I know or at least with the Verizon S4 that I did it on you pretty much can't put SElinux into passive mode.

Once you have kali operational you aren't going to have certian controls over some functions. Now, you can install a custom kernal. Basically you are running Kali with the phone or tablets stock kernal. This restricts you. For instance I was not able to put my wireless card on the phone into monitor mode... Once I get around to getting a new phone I am no longer worried about breaking this one.

Now Marcusgowp, this post and thread really should be all you need to tell you how to install. Simple fact is you are going to have to be able to trouble shoot your issues. I personally like to format my whole SD card and then manually create the partitions needed to install Kali on it. That helps to remove some variable. But again I doubt you will get the functionality you are looking for without a custom kernal installed.

On Friday, September 16, 2016, marcusgowp <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Can someone plz help me to install Kali Linux.! I want the exact steps to install kali linux on my android phone.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/meefik/linuxdeploy/issues/183#issuecomment-247744500, or mute the thread https://github.com/notifications/unsubscribe-auth/AQk_R6MJpVVek5TBn6qpC2mTsSNx_S_cks5qq1KmgaJpZM4DQ7Fk .

sasplayers commented 8 years ago

I must admit this is not a project for a novice, I'm no expert and definitely not a novice and I've found it difficult to install anything but the basic kali 2.0 on both my kit-kat and lollipop android's, The HTC was the easiest to do as I presume linux depoly was originally done using it.

My advice is to just keep trying, and use google to look at various situations up. e.g TightVNC fonts not been found. If anything you'll learn some useful commands. At some point I'm sure this will work without any problems in the future.

BTW good job @meefik

emmansuplado commented 8 years ago

/data/data/ru.meefik.linuxdeploy/linux/bin/linuxdeploy shell code says not found

Please help me with a fix

JanetnW commented 8 years ago

I also cant access the linux deploy shell and vnc wont run on linux deploy 2.0. The error i get after starting vnc services on real vnc is "the port on which the computer is listening to for a connection could not be contacted" Any help will really be appreciated

Darth-plagueis commented 8 years ago

I am having somewhat different issue. I am able to install Kali Linux through Linux deploy on my 12 GB partition,however I can't access it through terminal or vnc or x11.

On vnc with 2.0.0 beta 2 , it says "mesg:ttyname failed, invalid argument"

With 2.0.0-215 version it sometimes says that ,sometimes doesn't but results are the same

On play store 2.0.0 version,install fails ,as it refuse to download some 7 or 8 packages , and installs of previous veraion (beta and release, both github version ) don't give any error,but results are 1 of the following -

1.gray screen with x cursor or 2.a square with x cursor or 3.recycle bin and 1 other icon in that square

And yes,I agree with another user who said it ; lxde is the only environment in which Linux deploy works without any graphical glitch.its not that lxde install didn't have any problems just that it magically sorted out on itself pretty sooner.

But gnome and mate never worked ,mate desktop worked magically once on 1.5.6 version(that too without touching any .vnc , xtartup files ) but so far not anymore, on any version of mate desktop

Denilfrancis commented 7 years ago

i have an issue.. Plz help me that, when i connect through vnc viewer that replies the error with the port on which the computer is listening for a connection could not be contacted

Denilfrancis commented 7 years ago

Anyone plz help me...if anyone can, sent me mail through omanafrancis85@gmail.com

ifebonboi commented 7 years ago

I av Kali Linux install bt keep getting blank screen wen I connect it with my vnc. Need help plz

cubsDen commented 7 years ago

Seems like toggling superuser rights of linux deploy fixes all problems. But thats just before starting the whole process and never after that. Oh and by the way I tried partition type of installation with file path pointing to second partition with ext2 type. and if there is even a bit of packages left out 99 percent times it wont work out. Its not successful yet but, thanks for the help!!! Also there's no way of installing through previous versions of linux deploy since its source mirror path leads to distros which are no longer available.

my error is - starting extra/ssh ... fail in both linux deploy as well as any emulator

cubsDen commented 7 years ago

Success finally ....as I said previously if all the packages are downloaded and installed then there are no errors..right now installing kali-linux-full version!! Between vnc viewer also works after pressing start button in linux deploy. Thanks for the HELP!!!

MRPATHAN commented 7 years ago

Help me! While installation it says can't download (specific name of package). I tried more then 10 times but every time it shows this dialogue box, W: Couldn't download package libfastjson4 (ver 0.99.4-1 arch armhf). Every time the package changes.

g4njawizard commented 7 years ago

hey @cubsDen , did you change any other settings?

i made the same settings as you, but my ext2 partition on my sdcard seems to be already mounted by android. did u need to unmount it? how did u do that?

i could puke so hard ... why the hell can others install kali on their ext2 formatted partition without any issues? one of both arguments always fux up my deployment. "mke2fsfile to large ..." cant install full linux because of not enough diskspace (even starting installation with argument "-y" doesnt fix) others even can use Partition as installation type. I get an error, that the img_mount=1...

the whole documentation and explanation is so terrible, because everywhere it works another way

gentlestev commented 7 years ago

Has anyone been able to solve

  1. Blank desktop with x-cusor on vnc connection?
  2. Enter botton not working during apt-get update && upgrade when mysql bluescreen asks for options
  3. Connecting sucessfuly with latest deploy app. Any help will benefit all i blieve
gentlestev commented 7 years ago

Also if you have sucessfully installed and run kali both inside terminal amd vnc help eveyone plz

gentlestev commented 7 years ago

Hello guys after my complains above things worked out just because i put 'root' as my username in deploy's config setting. So now kali works to good extent.

Note: you dont need ext2 sdcard filesystem. Just convert your sdcard to NTFS as to acomodate kali full image from sourceforge.

Steps i took and my kali is working to a good extent

  1. Download paragon ntfs app from googleplay. It wil mount your ntfs sdcard, am using 16gig sdcard
  2. Download terminal emulator too
  3. Download linux deploy 1.5.6 version search google from apk4fun, remember 2.0version did not work for me
  4. Download kalifullext2 image from sourceforge about 1.6gig zip and 5.8gig after extraction and place it in your ntfs sdcard.

NOTE: After formatting your sdcard to ntfs file system your android will say memory card damaged don't worry or click it. Just lunch your paragon app i asked you to download. It will mount the sdcard automatically, then goto setting and make paragon mount your sdcard automatically at reboot.

  1. Note your sdcard location where you copied your kali image
  2. download vnc viewer
  3. Lunch your deploy, configure it the same way you did before. Make sure ur installation location matches the same place you placed your kali image.
  4. The only different thing i did was to change my user name to 'root' instead of android.
  5. You can leave the password to 'changeme'
  6. On the section about chosing what package to install. Mark all.
  7. I guess i dont need to tell you guys to enable vnc as ur viewer and LXDE as your desktop. Then click configure not install. 'Install' will spoil things for you. Leave it to configure things for u. When u see <<deploy ignore every error and click start when install runs complete u'll see <<start. You need good internet connections.
  8. After sucessful start goto vnc app and confiure with host as 'localhost' or '127.0.0.1' or the ip that appears at the top of your deploy interface. For me localhost didnt work but 127.0.0.1 worked.
  9. Sign in with your password. Thats all. No much question am not a genius but fan
cubsDen commented 7 years ago

@g4njawizard it doesn't needs to be mounted and ofcourse it won't be installed in first partition cause size would be 1gb only. If you are going for partition installation type method you also need to change path to second partition i.e. ext2 one. If you have done partition correctly then path to second partition would be similar like /dev/block/mmcblk1p2

cubsDen commented 7 years ago

Also one trick is to restart phone every time you create partition coz linux deploy don't seem to detect partition so easily just after creating partition

g4njawizard commented 7 years ago

@gentlestev your step is very confusing

what for other changes did u make? did u change the filesystem?

i receive the following error:

mount -o ... /data/media/0/paragon/kalilinux.full.ext2.v2.img /data/local/linux mount: mounting /dev/loop1/ on /data/local/linux: I/O error

forgot to mention: i also checked older versions of busy box. still the same issue...

I guess i dont need to tell you guys to enable vnc as ur viewer and LXDE as your desktop. Then click configure not install. 'Install' will spoil things for you. Leave it to configure things for u. When u see <<deploy ignore every error and click start when install runs complete u'll see <<start. You need good internet connections.

When i configure, it ends up with <<< configure. pressing install, fails because it cant mount the partition. (it has been mounted over paragon) do you can access the file? i cant even browse to that directory on the ntfs card. On reboot i see that paragon says it has been successfully mounted.

@cubsDen ive changed and checked the paths and formats very often without success... and yes the path is always correct. i am no crack, but i know linux and i know what kind of path to take, so i wonder why it wont install it...

g4njawizard commented 7 years ago

@cubsDen

link2sd is out of date and doesnt support 6.0.1 thats why i had to do an workaround over apps2sd. there is a video on youtube. after every reboot link2sd tells me, that the partition have been mounted after system has started. i have to fast restart my tablet over link2sd to make it mount the partition again.

linuxdeploy recognizes the available mount points. when i click status -> avail. mountpoints: /dev/block/mmcblk1p2 <- thats my sd card

set path in config

fail.

selrjfmghvm commented 7 years ago

@emmansuplado

You might want to try: /data/data/ru.meefik.linuxdeploy/bin/linuxdeploy shell instead of: /data/data/ru.meefik.linuxdeploy/linux/bin/linuxdeploy shell

cubsDen commented 7 years ago

@g4njawizard sorry i don't understand your problem correctly. But as for my procedure when i made partition and restarted, the mounted partition was only of size 1GB which i can still use it for my android media purpose and the other partition is never visible in android but in linux deploy I could set the path for it and it worked!

Skyezon commented 7 years ago

This is a very good documentation just follow it anyway when u guys get a grey screen and x cursor on the middle just wait about 5-10 sec it is just starting up the gui the other option u can use is x11/xserver it's available on playstore.

Skyezon commented 7 years ago

Btw im using kali rolling not sana/2.0

vitandrea2 commented 7 years ago

Hello to all ... i try step by step the tutorial.. when i try with terminal to install it start to install BUT on terminal arrived on configuring mysql with OK and i cant proceed to installation... how i can proceed? Where i wrong? I try with kali linux top10 and kali linux.... i try with gentlesteve fix... attempt any solutions tnx to all

imkool47 commented 7 years ago

Hey This Method Is work on my Samsung Galaxy Grand Neo GT-i9060 I'm try many time but doesn't work Please tell me

On 2 Jan 2017 18:43, "vitandrea2" notifications@github.com wrote:

Hello to all ... i try step by step the tutorial.. when i try with terminal to install it start to install BUT on terminal arrived on configuring mysql with OK and i cant proceed to installation... how i can proceed? Where i wrong? I try with kali linux top10 and kali linux.... i try with gentlesteve fix... attempt any solutions tnx to all

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/meefik/linuxdeploy/issues/183#issuecomment-269969373, or mute the thread https://github.com/notifications/unsubscribe-auth/AWOdurD8Inj5f5lkKQtxYsQCeRTDUyQYks5rOPR2gaJpZM4DQ7Fk .

Skyezon commented 7 years ago

Anyone have problem when configuring installation just download hackers keyboard from playstore use the tab button and press enter that should fix your problem

vitandrea2 commented 7 years ago

Thanks... In ready to restart from 0 :)

vitandrea2 commented 7 years ago

Tab buttun of keyboard hackers not work... I cant procede with configuration ...

Skyezon commented 7 years ago

->| button highlights the "ok" then enter

vitandrea2 commented 7 years ago

Hello to all... i have this fix

Download lastest version of linux deploy 2.0.0

Go on download and configure with kali linux, kali-rolling NO VNC but X11 ...

Download xserver xsdl from playstore...

When linux deploy finish install, click configure and after START

open terminal android emulator... digit

su

/data/data/ru.meefik.linuxdeploy/linuxdeploy shell

Now digit this command line for start x11 always from terminal android (after you have open xserver and arrived on blue screen)

env DISPLAY=:0 startlxde

Go on xserver program et voila... kali linux start...

Now go on terminal android and tipe

passwd

Press ONE LETTER AND CONFIRM WITH IDENTICAL LETTER

Now return on kali linux xserver Open terminal and digit

su

Insert the one letter of the android terminal Digit

passwd

And create your official pass for root Now digit (froot root privilegies)

sudo apt-get install kali-linux-full (or other packages)

now work fine the hackers keyboard on kali terminal for tab button on package configuration

vitandrea2 commented 7 years ago

Ps for open keyboard on xserver press BACK button on android devices

vitandrea2 commented 7 years ago

In others... u can install Piggy helper from aptoide and download kalitop10 from repository of kali linux... after from emu terminal install xfce4 for server it... open xsdl and from terminal digit

DISPLAY=:0 startxfce4

It tell u that is already running ... but when u return on xsdl all work fine....

Ps... i try backport and kernel patched for hack without otg cable... and use ur ieee 80211 for monitor mode... actually kali work only with mac 80211

kobospiros commented 7 years ago

im unable to install postgresql,, stucks at creating a new cluster 15943232_10212121107525853_758297930_o

gentlestev commented 7 years ago

I cant get zenity and postrgresql to install

This is the error massage

root@localhost:~# apt-get install zenity Reading package lists... Done Building dependency tree
Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: libfontconfig1 : Breaks: xpdf (<= 3.03-11) but 3.03-10 is to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

gentlestev commented 7 years ago

The above is error from zenity Bellow if for postgresql root@localhost:~# apt-get install postgresql Reading package lists... Done Building dependency tree
Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: libdbus-1-3 : Breaks: dbus (< 1.9.16-1~) but 1.6.8-1+deb7u1 is to be installed libfontconfig1 : Breaks: xpdf (<= 3.03-11) but 3.03-10 is to be installed E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.

Even when i want to start the one inside kali it says root@localhost:~# service postgresql start [....] Starting PostgreSQL 9.1 database server: main[....] The PostgreSQL server failed to start. Please check the log output: 2017-01-08 11:01:02 WAT FATAL: could not create shared memory segment: Function not implemented 2017-01-08 11:01:02 WAT DETAIL: Failed system call was shmget(key=5432001, size=30679040, 03600).[FAI failed! failed! root@localhost:~#

oussevil commented 7 years ago

Plz help i dowloaded all version of kali Linux when i configuré thé deploy Linux i have

deploy <<< deploy Plz help

g4njawizard commented 7 years ago

Hey @vitandrea2, thx for the tutorial. But i get an error trying to connect to the GUI. gtk-warning **: cannot open display: :0 Message: main.vala:102: Session is LXDE Message: Main.vala:103: DE is LXDE

Any idea what this means?

Darth-plagueis commented 7 years ago

attachmen1t php attachment php

Feast your eyes.

swain21 commented 7 years ago

Can I change my linux deploy ip address into a static ip address.

swain21 commented 7 years ago

Can I change my linux deploy ip address into a static ip address ?

doom4e commented 7 years ago

2 1 I had success with installing kali and everything, but i have trouble with mounting the ext2, ext3, ext4 or any ext partition. Help pls this thing drives me insane 1 week.

doom4e commented 7 years ago

3 also this happens when i try to mount it manually. Like it doesn't exist

elmunibo commented 7 years ago

Hi doom4e, don't mount to partition. Try mount to folder on Android like /data/media/0 for internal storage or /storage/sdcard1 for external storage You will find the same exact folder on linux

Rikit98 commented 7 years ago

Please help when i try to download kali linux, base system installation fails. Every thing else installation. It system w:couldnt download the base system(.......)

g4njawizard commented 7 years ago

yesterday i finally achieved the impossible on my galaxy tab s2.

some months ago i asked if anybody has an idea, why i couldnt connect to x11.

"gtk-warning **: cannot open display: :0.. blaa blaa"

i asked myself why nobody else experience that problem. maybe someone else could do if he would try it the same way as @vitandrea2 did in his step.

i still have no idea what he means by (froot root privilegies) pretty confusing tutorial, but it works! seems like my client had issues installing some dependencies (LXDE) and missing rights to connect to x11 for those who face the same problem as me.

  1. install kali-rolling NO VNC, but X11 activated, as GUI choose "other". (if you want kali-full-install change image size in settings to 4000mb - XXXXmb. or it will later cry that there isnt enough space
  2. after installation -> configure -> start
  3. open android terminal & xserver xdsl
  4. ` # su

    ./data/data/ru.meefik.linuxdeploy/bin/linuxdeploy shell`

  5. test this -> # env display=:0 startlxde if you should receive an error ".. unknown startlxde .. " ur good and go to step 6. if you dont, you just installed with GUI and should begin at step 1.
  6. leave xserver open and check if u got bluescreen.
  7. get back to linuxdeploy, change settings to GUI = LXDE
  8. configure (it will load all needed packages and all dependencies, install them and set the rights)
  9. start container, go to android terminal and type # env display=:0 startlxde if you still receive an error, like maybe "gtk-warning cant open display: " you should try it again. it didnt work for me at first time. maybe you try it again by closing xserver while reconfiguring.. if you dont receive an error, just a blank new line, go to xserver and there it should be!
  10. follow steps from @vitandrea2 at "passwd"

i found this solution by try and error. maybe this step could help others in a different way... try and error fellas!

jbjaveed commented 7 years ago

plz help, im getting this error."retrying failed download of http://http.kali.org/dists/kali-rolling/main/binary-armhf/packages.gz" edit: nevermind found the solution. i chose kalilinux_arm repository(downloaded piggy helper from blackmart)

Imsamdas commented 7 years ago

i have downloaded an kali linux image file (ext4)of 5.8 gb but when i deploy it with linux deploy it says available space is 300mb out of 5.8mb why it doesnot take my internal storage space.help me pls.....

Minabsapi commented 7 years ago

Dear Fritsbie, This guide looks full of sense, however I can't test it. I'm stuck on the first step. Explanations: I have root access and I installed "Loop device check" app to see if I can carry it. What this app said: screenshot_2017-06-21-15-55-11 1

What Linux Deploy says: screenshot_2017-06-21-15-55-22 1

...Problem?

(Update: My device is a rooted and Xposed Samsung Galxy Core Prime SM-G361F, with stock OTG Rom -same rom than the original but pre-rooted- Meefik Busybox is installed. I have device spoofer but Linux Deploy isn't in the list of spoofed app. )