PDA

View Full Version : VNC not working



TrixTM
2020-04-18, 16:14
I need help with the vnc.
root@kali:/# vncserver :1 -geometry 1920x1080 && echo "Closing terminal in 5 secs" && sleep 5 && exit
New 'localhost:1 (root)' desktop at :1 on machine localhost
Starting applications specified in /root/.vnc/Xvnc-session
Log file is /root/.vnc/localhost:1.log

Use xtigervncviewer -SecurityTypes VncAuth -passwd /root/.vnc/passwd :1 to connect to the VNC server.


vncserver: Failed command '/root/.vnc/Xvnc-session': 256!
=================== tail -15 /root/.vnc/localhost:1.log ===================
Sat Apr 18 16:00:33 2020
vncext: VNC extension running! vncext: Listening for VNC connections on local interface(s), port 5901
vncext: created VNC server for screen 0
/system/bin/sh: <stdin>[1]: /etc/X11/Xsession: can't execute: Permission denied
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Internal error: Could not resolve keysym XF86FullScreen
Errors from xkbcomp are not fatal to the X server

Sat Apr 18 16:00:34 2020
ComparingUpdateTracker: 0 pixels in / 0 pixels out
ComparingUpdateTracker: (1:nan ratio)
X connection to :1 broken (explicit kill or server shutdown).
Killing Xtigervnc process ID 29066... which seems to be deadlocked. Using SIGKILL!

================================================== =========================

Starting applications specified in /root/.vnc/Xvnc-session has failed.
Maybe try something simple first, e.g.,
tigervncserver -xstartup /usr/bin/xterm
root@kali:/#

rootboy01
2020-04-18, 16:36
chmod +x /etc/X11/Xsession

then try again.
if not works, then install nethunter 2019.4c, terminal and Kex ( new vnc app ) latest v from fdroid nethunter store

TrixTM
2020-04-18, 18:05
I tried the latest version of kali nethunter, and the server started but then it stopped. Then i tried 2019.4c and the server is not even starting.

re4son
2020-04-19, 01:05
Which nethunter image did you use?

TrixTM
2020-04-19, 07:47
Hello re4son!
I think this one.
https://androidfilehost.com/?fid=24665539028713534
I flashed this and it bricked my phone. Then i flashed the original image eith odin but the files didn't erase and i still had all my files. Then, i extracred that zip and took the chroot and used it in kalinethunter. And it's working perfectly except the vnc.

TrixTM
2020-04-19, 08:01
The server from the NetHunter app is not working and i can't download an official version. I tried this: https://build.nethunter.com/kalifs/kalifs-latest/
and it didn't work. Then i renamed the archive to the original name of a chroot and it still didn't work.

rootboy01
2020-04-19, 10:59
Build a new NetHunter installer from: https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-project/-/tree/master/ here.

clone this project, then enter nethunter-installer directory and

https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-project/-/tree/master/nethunter-installer#preparing-the-environment

apply what it saying.

re4son
2020-04-20, 00:01
The server from the NetHunter app is not working and i can't download an official version. I tried this: https://build.nethunter.com/kalifs/kalifs-latest/
and it didn't work. Then i renamed the archive to the original name of a chroot and it still didn't work.

Bad idea to use these images. The build server is an unmaintained playground for developers and these images are from the pre-kex days.
Better to stick to the official images from our download page:

https://www.offensive-security.com/kali-linux-nethunter-download/

If you'd like to install NetHunter on a device not listed then pick the NetHunter light image for your architecture.

Silver03
2020-08-07, 12:45
Have downloaded the generic arm64 build for chroot, yet whenever I upgrade and try to use tightvncserver, it simply reboots my device. Not sure whether it has anything to do with the magusk module...