In Linux, usually we have two major schemes for copy and paste. We can copy by pressing control+c , paste by pressing control+v ( right click and select copy or paste in context menu) in various GTK/KDE application. Another ways of perform copy and paste is highlight the text and hit middle mouse click.
Certain application only support one of them, virtual terminal such as xterm, aterm, rxvt etc uses only highlight for selection and middle click for paste. So sometimes you may having issues copy text from Firefox web browser to your xterm or wise versa.
Therefore, autocutsel comes to help. By running autocutsel, you may compromise both ways of copy and paste. The simple way to run autocutsel is open a terminal, and type the line bellow.
nohup autocutsel &
You now can close your terminal and enjoy your copy and paste. To know what is nohup? check out Donâ€™t terminate even I close the terminal.
Unfortunately, autocutsel is not in Ubuntu repo (I doubt it is in any other distro’s repo too, but I am not too sure too.), you couldn’t apt-get it. Therefore, you need to download the source and compile by yourself. Check out the hints from installing from tarball if you have no idea how to compile.