GoWiki
Index
Sections
Search
Login
wiki
Kali Linux VNC
# Kali Linux VNC ## GNOME Disable Security: `gsettings set org.gnome.Vino require-encryption false` Bind to localhost: `gsettings set org.gnome.Vino network-interface lo` Set **only** password in `Settings->Sharing->Screen Sharing` and exit window Start Screen-Sharing in current session: `/usr/lib/vino/vino-server` SSH Tunnel: `ssh -L 5902:127.0.0.1:5900 root@kali` ## XFCE ``` apt install -y autocutsel cat <<EOF> /root/vnc.sh #!/bin/sh env -u SESSION_MANAGER -u DBUS_SESSION_BUS_ADDRESS vncserver -geometry 1600x900 -depth 24 EOF chmod 755 /root/vnc.sh mkdir -m 700 /root/.vnc cat <<'EOF'> /root/.vnc/xstartup #!/bin/sh xrdb $HOME/.Xresources xsetroot -solid grey export XKL_XMODMAP_DISABLE=1 autocutsel -fork /etc/X11/Xsession EOF chmod 755 /root/.vnc/xstartup ``` Start vnc: `/root/vnc.sh`