When I am using nethunter kex gui after sometime it comes connection faild how can I solve this problem
Try changing the port to 5902… also check if vncserver is started in termux .. then vnc start in nethunter
Its not working in the time of using nethunter kex for GUI then after sometime it comes an error or connection faild and termux also closed automatically and kills the session how can I slove these problems
First type these commands in termux:
‘nethunter kex &’
That will show the port that you have to connect.
And open kex and set that port you have previously seen.
And then connect.
If you are rooted ( not using Termmux), just go to /data/local/Kalinh/root/ then delete the folder called «./vnc». After that you will be able to use nethunter KEX after setting password from terminal by typing: vncserver.
Finally I found the solution of this crazy problem… because I am rooted, I used root explorer App to navigate to this folder /data/local/kali/root/, then I removed the folder called “.vnc”, and here we go … after all, we can create our vnc server only from kali terminal by typing vncserver 😍😍😍 enjoy!
But the device is not rooted is it possible to overcome with that problem
First type these commands in termux:
‘nethunter kex &’
That will show the port that you have to connect.
And open kex and set that port you have previously seen.
And then connect.
But its not working
But the device is not rooted is it possible to overcome with that problem
If you are not rooted (work with Termux), just follow:
1- long press the termux app and go Press «Force stop»
2- open termux app
3- again make new password for nethunter kex just type «nethunter kex passwd»
4- after you set the password type «nethunter kex &»
- it will reset and give you a new port for nethunter kex app
5- go to nethunter kex app and set the port and put the password
It works perfectly fine
But the device is not rooted is it possible to overcome with that problem
If you are not rooted (work with Termux), just follow:
1- long press the termux app and go Press «Force stop»
2- open termux app
3- again make new password for nethunter kex just type «nethunter kex passwd»
4- after you set the password type «nethunter kex &»
- it will reset and give you a new port for nethunter kex app
5- go to nethunter kex app and set the port and put the password
It works perfectly fine
No bro its not working after some time its showing connection failed and there is acknowledged bottom then I am coming to nethuntetkex home screen
Then I am again tried to connect its shows some ECONNREFUSED (connection refused)
Try to solve this problem
hey can you fix fail to download and need to download it manually
Let me know these work ?
It’s properly working on kali linux rootless on android.
https://github.com/aioont/kex
If your error still exist,then try these
cd ~/.vnc/
rm -rf *.log *.pid
cd /
rm -rf /tmp/.X* /tmp/.xfsm* /tmp/.l2s* /tmp/.ICE-unix
vncserver -kill :*
vncserver -depth 24 -geometry 1920x1080 :1
//Removing log pid files in ~/.vnc directory
//Removing some files and directories under /tmp
Why do I always use the «nethunter» command but it doesn’t work
nethunter: command not found
Why do I always use the «nethunter» command but it doesn’t work
• To start Kali NetHunter command line interface
• The command nethunter can be abbreviated to nh.
• nethunter kex &
start Kali NetHunter Desktop Experience user sessions
nethunter: command not found
Check a file nethunter exist on folder /data/data/com.termux/files/usr/bin
If it is not there follow these step :
https://github.com/aioont/kex
1: Just download nethunter
wget https://raw.githubusercontent.com/aioont/kex/main/nethunter.sh
2: Setup permission
chmod +x nethunter.sh
3: Rename and move files to required location
mv nethunter.sh nethunter && mv nethunter /data/data/com.termux/files/usr/bin
Hope it helps…
When I am using nethunter kex gui after sometime it comes connection faild how can I solve this problem
Even mine is also saying the same thing.after it works for about a minute.same errors repeats itself.»error connection «
What can I do to overcome this continously showing error.termux show me signal completed signal 9,from knowhere then awaits for me to press enter for it to close.the kex app will then show the error code no connection.tried all the tutorials online.but the error code keeps showing.in no root nethunter
I think this issue still exists and its not solved.Please provide screenshot may be anybody can help you ?
I don’t know the solution but try this steps :
#168 (comment)
#168 (comment)
Turn off power saving option, optimization for termux and nethunter kex app ( vnc). Allow background activity (temporarily,switch back to normal if it doesn’t work).
Please share Android version also.
I have also facing issue with connection automatically closed during minimize or switching between apps.
Check whether connection keep going ?
After running nethunter kex start connect to kex(vnc)
and do not minimize or switch apps.Stay inside the vnc apps.
Still the connection closed automatically ?
I don’t know what next to do .
#168 (comment)
I think you followed this and error still exist.The reason is that Android OS kill termux because of PhantomProcessRecord.killLocked().
Please refer to this :
https://m.youtube.com/watch?v=jSHpmvfNUUA
termux/termux-app#2366
RandomCoderOrg/ubuntu-on-android#110
Android OS kills the process causing to termination.
I am not a expert at this but try the first YouTube video solution.
I think lower Android version can run termux without problem.
I’m using Android 11 , facing connection failed when I switch or minimize apps.
Ask questions in more active discussion page and someone can help you to fix this problem.
Update :
I checked kali nethunter rootless on Android Version 9 today and it works perfectly.Closed termux (without exiting) there is no problem with connection.
Has anyone found a solution to this? I still can’t get it to work on my rootless galaxy note 10+
@salama888 It worked 59 seconds, then logged back out
I faced the same problem of kex not working when i installed a vnc server and tried to reach linux through vnc.. I tried every possible way to run kex but it didn’t work, so at the end I deleted termux, installed it again and did the entire installation process and now it is working.
I guess, kex not responding or error in kex depends upon the nature of mistake done by us, knowingly or unknowingly. The best option according to me is to just reinstall and run the entire installation process again but if it still doesn’t work, then I guess, using termux, you will have to delete all the installations of ‘wget’ and all other softwares installed initially, from the core and again try to install it fresh.
Please do tell me if this works. Thanks.
I faced the same problem of kex not working when i installed a vnc server and tried to reach linux through vnc.. I tried every possible way to run kex but it didn’t work, so at the end I deleted termux, installed it again and did the entire installation process and now it is working.
I guess, kex not responding or error in kex depends upon the nature of mistake done by us, knowingly or unknowingly. The best option according to me is to just reinstall and run the entire installation process again but if it still doesn’t work, then I guess, using termux, you will have to delete all the installations of ‘wget’ and all other softwares installed initially, from the core and again try to install it fresh.
Please do tell me if this works. Thanks.
aioont/kex#3
https://github.com/aioont/kex
Hope it help someone
They shows
Command not found
They shows
Command not found
Please provide more details
What error you are getting or screenshot will be more helpful
If you are getting nethunter command not found then refer to :
#168 (comment)
If you are facing error associated with kex and nethunter follow
https://github.com/aioont/kex
I’m using Kali Nethunter, and I need help to fix this.
I’ve been using the command nethunter -r kex &
and I’m getting this error:
vncserver: No matching VNC server running for this user!
vncserver: No matching VNC server running for this user!
Error starting the KeX server.
Please try "nethunter kex kill" or restart your termux session and try again.
This happened after I gave the command apt upgrade
.
How can I fix this?
To answer the follow-up questions (in comments):
- Yes, I tried
nethunter kex kill
. - No, I did not get any yes/no prompts like «Do you want to continue? [Y/n]».
asked Apr 11, 2021 at 1:15
4
if u still haven’t find how to solve this please do following steps
- Delete .vnc folder under /root derectory
- now delete all the files inside of tmp folder including hidden…note: don’t delete tmp folder
- Now make new server using command :- vncserver -depth 24 -geometry 1920×1080
- provide new password and run vnc viewer on new port
answered May 17, 2021 at 17:59
Hey guy’s I had encountered the same problem but fortunately I have quick solution to fix it.
Follow the steps
-
long press the termux app and go Press «Force stop»
-
open termux app
-
again make new password for nethunter kex just type «nethunter kex passwd»
-
after you set the password type «nethunter kex &»
-
it will reset and give you a new port for nethunter kex app
-
go to nethunter kex app and set the port and put the password
-
It works perfectly fine
-
please give feedback .thanks
Archemar
30.6k18 gold badges69 silver badges104 bronze badges
answered Apr 15, 2021 at 3:52
4
Open
Issue created Sep 02, 2021 by piratica seeker@royanboy2003
nethunter GUI kex command issue
Device: Redmi Note 9 pro max
(MIUI 12.5 beta)Android 11
Downloaded from website (links): https://www.kali.org/docs/nethunter/nethunter-rootless/
I installed it through termux
Issue:
First time i used nethunter and there was no problem but when i needed to upgrade nethunter
~$ sudo apt update && sudo apt full-upgrade -y
it stopped at 57% stating some error then i tried —fix-install
it upgrade but
there was some issue in using kex command as this👇
~ $ nh kex &
[1] 12866
~ $ vncserver: No matching VNC server running for this user!
vncserver: No matching VNC server running for this user!
Error starting the KeX server.
Please try «nethunter kex kill» or restart your termux session and try again.
[1]+ Done nh kex
~ $ nh -r kex &
[1] 12937
~ $ ┏━(Message from Kali developers)
┃
┃ This is a minimal installation of Kali Linux, you likely
┃ want to install supplementary tools. Learn how:
┃ ⇒ https://www.kali.org/docs/troubleshooting/common-minimum-setup/
┃
┗━(Run: “touch ~/.hushlogin” to hide this message) ~ $ vncserver: No matching VNC server running for this user!
vncserver: No matching VNC server running for this user!
[1]+ Stopped nh -r kex
and then i uninstalled it and reinstall it but the samw error occured while using
$ nh kex & or nh -r kex &
nh kex &
[1] 12866
~ $ vncserver: No matching VNC server running for this user!
vncserver: No matching VNC server running for this user!
Error starting the KeX server.
Please try «nethunter kex kill» or restart your termux session and try again.
[1]+ Done nh kex
~ $ nh -r kex &
[1] 12937
~ $ ┏━(Message from Kali developers)
┃
┃ This is a minimal installation of Kali Linux, you likely
┃ want to install supplementary tools. Learn how:
┃ ⇒ https://www.kali.org/docs/troubleshooting/common-minimum-setup/
┃
┗━(Run: “touch ~/.hushlogin” to hide this message) ~ $ vncserver: No matching VNC server running for this user!
vncserver: No matching VNC server running for this user!
[1]+ Stopped nh -r kex
Please help!!!
Expected behavior:
It should run session of kex and provide id to use in kexvnc
###Screenshot
Edited Sep 02, 2021 by piratica seeker