To install XScreensaver open Synaptic Package Manager and type xscreensaver in the search field. Mark xscreensaver, xscreensaver-gl-extra and xscreensaver-data-extra for installation and click on the Apply button.
or
$sudo apt-get install xscreensaver