Hax4us / Nethunter-In-Termux

This is a script by which you can install Kali nethunter (Kali Linux) in your termux application without rooted phone
GNU General Public License v3.0
2.4k stars 331 forks source link

termux keep kill my session & therefor kali linux is terminated on kex app #270

Open mPwned opened 2 years ago

mPwned commented 2 years ago

hey guys, i manage to install kali on my non-root Samsung s21 ultra with termux, when i start my localhost server with nh kex & cmd it gets kill after maximum 1 min

ill add my temux info image

so after one min it gets "process completed (signal 9) - press enter" the session is killed via 'NetHunter KeX' app,

image

anyone know how to fix this issue? tnx in advance to anyone who helps! =]

aioont commented 2 years ago

I have this issue too.But it occur only when I minimize my nethunter app.

Start with vncserver -depth 24 -geometry 1920x1080 :1 command . Also disable power saver option and allow background activity for both Termux and Nethunter (vnc) app

I don't know exact reason for cause but it probably due to background process killed or due to nohup - which manages background process of nethunter.

If nothing works just follow this : https://github.com/aioont/kex

May be for lower version of Android this problem doesn't exist . If it is there please raise a issue.

Szxcc commented 2 years ago

Android 12 quietly introduced a change that kills background app processes if their forked child processes use too much CPU and that a max of 32 such processes started by an app is allowed.

aioont commented 2 years ago

IMG_20220814_093036.jpg

Using Android 11 but when I minimize Termux or Nethunter Kex app connection automatically terminated.When i check kex status process id changed to "stale".

Nethunter Kex app shows a popup connection failed.

Currently using a modified version nethunter and kex programs to overcome "No matching vnc server running for this user"

Allowed both apps to run in background and power saving mode off but still get connection closed.

Without minimising the app I was able to keep vnc connection.