install xclip:
sudo apt-get install xclip
terminal command to clear the clipboard:
echo -n | xclip -selection clipboard