Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Updating apt-get package
- sudo apt-get update
- # installing libc6-dev package
- # this might require deleting the previous version of the package
- sudo apt-get -y install libc6-dev
- # DO ONLY IF the command above doesn't work and then retry the command above
- apt-get remove binutils
- # installing tight server-a (if it asks for any permissions, agree)
- sudo apt install tightvncserver
- # after installation modify the file - you might need to change the word 'kali' if someone changed the user or the user is root
- nano /home/kali/.vnc/xstartup
- # delete everything from the file above and paste what's below - we won't have an image without it
- # when copying, it's best to use the mouse and after deleting everything right click and paste
- # save using ctrl + x and, press Y key and Enter
- #!/bin/sh
- unset SESSION_MANAGER
- unset DBUS_SESSION_BUS_ADDRESS
- startxfce4 &
- [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
- [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
- xsetroot -solid grey &
- vncconfig -iconic &
- # changing access permissions to the file and allow running it (this wave is a tilde - right under escape key)
- chmod +x ~/.vnc/xstartup
- # launching (during first launch it will ask for a password which you will have to REMEMBER)
- vncserver
- # finishing server operation
- vncserver -kill :1
Add Comment
Please, Sign In to add comment