XScreenSaver is both a large collection of screen savers and the framework for blanking and locking the screen. On the Linux and Unix Systems, XScreenSaver is running with X11 Windows System.

To remove the gnome-screensaver and replace it with xscreensaver, do this:
$ sudo apt-get remove gnome-screensaver
$ sudo apt-get install xscreensaver xscreensaver-gl-extra xscreensaver-data-extra
XscreenSaver also works on MAC OS X, without the X11 Window System.
Create the autostart file:
$ sudo touch /etc/xdg/autostart/screensaver.desktop
Next, paste the following code lines in the /etc/xdg/autostart/screensaver.desktop file:
[Desktop Entry]
Name=Screensaver
Type=Application
Exec=xscreensaver -nosplash
Save and Exit the file. This is all.