The News‎ > ‎

Correct Kali repos and VirtualBox bidirectional clipboard

posted Apr 25, 2019, 9:42 PM by Leigh Williams
nano /etc/apt/sources.list
deb kali-rolling main contrib non-free
# For source package access, uncomment the following line
deb-src kali-rolling main contrib non-free

Then do:
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install -y virtualbox-guest-x11

Then do:
Original post:
In virtualbox make sure your clipboard is set up bidirectional. Reboot everything. Reboot the world to be safe.

Add this to bashrc:
In your bashrc file (~/.bashrc) add this:
# Enable VirtualBox Clipboard 
VBoxClient --clipboard

Restart clipboard when it gets wonky
If the clpboard stops working, do this:
ps -ef | grep VBoxClient | grep clip kill -9 [the PIDs] VBoxClient --clipboard