PDA

View Full Version : How to resolve tightvnc connect in Kali Linux 2018



fun_9990
2018-05-24, 17:42
In Kali Linux (within WSL) I can connect to tightvncserver with below configure:

nano ~/.vnc/xstartup

vncconfig -iconic &
xsetroot -solid grey
unset SESSION MANAGER
exec /etc/X11/xinit/xinitrc
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &

but in Kali Linux in VMware workstation I cannot connect and I get this error message:


did not receive a reply possible causes include a remote appication did not send a reply the message bus Security policy blocked the reply. the reply timeout expired or the Network Connection was broken

unable determine failsafe session name posible causes xfconfd isnot running dbus setup problem: environment variable $XDG_CONFIG_DIRS is set incorrectly or xfce-session is installed incorrectly

How can I resolve this problem exactly?

liklev
2018-06-08, 12:35
hi, i could never overcome remote desktoping with built in vncservers (grey screen with big x) and after stopping vncserver i had to restart kali due to everything i tried to open in my pc desktop was popping up on the remote vncsessions screen only and not on local desktop.
what i found with rolling 2018.1 / 2018.2: the live system (from usb) has 'vino' built-in. what makes in settings/sharing a Screen Sharing entry. (after i installed - not live - i realized 'vino' missing - so i apt installed 'vino' and i got again screen sharing). vino is another vnc server so i can access screen (e.g. on my android phone) by vnc viewers.
in order to switch it on i need to be connected to a network (in my case i made my android phone AccessPoint and i connected to it via wifi). when i made my pc as wifi Hotspot it was not showing up as selectable network for sharing until i entered manually the ipv4 address of the kali Hotspot (network connection editor).
then next problem came some unknown authentication protocol when i attempted to connect. so i had to install dconf-editor and find org,gnome,desktop,remote-access / require-encryption to untick (make false). without dconf-editor from commandline:
gsettings set org.gnome.Vino require-encryption false
gsettings set org.gnome.Vino authentication-methods ['vnc'] (default is none)

finally after you connect to your desktop from remote device it will ask password (should set up during allowing screen sharing), then you should see exactly the same screen on your remote device as on your local desktop. (same session)

if in settings/sharing switch on remote login you can use ssl-clients to control kali with command line / terminal style.

quarinteen
2019-02-14, 19:59
Did you find a solution for this? I had this working at one point, but I had to reload kali and lost my config. I do remember it?s all about that xsessions file. I don?t recall exactly what I did before but if I do I?ll post it here. If you found a fix please post it as well.

quarinteen
2019-03-01, 23:49
Just install team viewer way easier