Install 200 Screensavers on Ubuntu Linux: Full Guide
In this article
Yes, you can install a large collection of screensavers on Ubuntu Linux, and it’s straightforward. The easiest way to get 200+ screensavers is to install the xscreensaver package, which includes over 200 built-in displays (hacks). This guide shows you how to install it, set it up, and troubleshoot common issues. You’ll need a working Ubuntu system with an internet connection and sudo access (administrator privileges).
What You'll Need
- Ubuntu Linux (20.04 or newer; steps are similar for other versions)
- An internet connection
- Sudo privileges (you’ll be asked for your password)
- A desktop environment (GNOME, KDE, XFCE, etc.) – the steps work on most, but some settings menus differ slightly
Step-by-Step
- Open a terminal. Press Ctrl+Alt+T on your keyboard, or search for “Terminal” in your app menu.
- Update your package list. Run
sudo apt updateand enter your password when prompted. This ensures you get the latest available versions. - Install xscreensaver. Run
sudo apt install xscreensaver. This installs the main screensaver program and all its built-in hacks (the screensavers themselves). The package is about 200+ hacks, so you’re done in one step. - Install extra screensaver packages (optional but recommended). To get even more variety, install
xscreensaver-glandxscreensaver-gl-extra(these add 3D and OpenGL-based screensavers). Run:sudo apt install xscreensaver-gl xscreensaver-gl-extra. This adds more than 50 additional hacks, bringing the total well over 200. - Launch xscreensaver. After installation, run
xscreensaverin the terminal. This starts the daemon in the background. You won’t see a window, but it’s running. - Open the settings dialog. Run
xscreensaver-demoin the terminal. A window will open showing a list of all available screensavers (hacks). You’ll see a scrollable list on the left, with a preview on the right. - Select which screensavers to use. In the xscreensaver-demo window, click on a screensaver name to preview it. To enable multiple screensavers, check the “Enable” box for each one you like. By default, all are enabled, but you can uncheck those you don’t want.
- Set the activation time. In the same window, look for the “Blank After” and “Lock After” fields (in the “Display Modes” tab or the “Advanced” tab). Set the time (in minutes) after which the screensaver should start. For example, set “Blank After” to 5 minutes.
- Apply and close. Click “Apply” then “OK” to save your settings. The screensaver will now activate after the set idle time.
- Make xscreensaver start automatically (optional). To have the screensaver start when you log in, add it to your startup applications. In GNOME, open “Startup Applications” (search for it), click “Add”, and enter
xscreensaveras the command. In KDE, use “Autostart” in System Settings.
Common Mistakes
- Not starting the daemon. If you only install xscreensaver but never run
xscreensaver(the daemon), the screensaver won’t activate. Always start it first. - Using the default GNOME screensaver. Ubuntu’s default desktop (GNOME) has its own screensaver (or blank screen) that may conflict with xscreensaver. You need to disable the default one to avoid double activation. In GNOME, go to Settings > Privacy > Screen Lock and set the “Blank Screen Delay” to “Never”. Then xscreensaver will take over.
- Forgetting to install the GL packages. If you skip step 4, you’ll have fewer than 200 screensavers. The base xscreensaver package alone has around 200, but the GL extras add many more.
- Running xscreensaver-demo as root. Don’t use
sudowith xscreensaver-demo; run it as your normal user. Otherwise, settings may be saved to the wrong location.
Tips
- Preview before enabling. Use the “Preview” button in xscreensaver-demo to see each screensaver full-screen before deciding to keep it.
- Randomize. In the xscreensaver-demo settings, you can choose “Random” as the mode, so it cycles through all enabled hacks randomly.
- Control via command line. You can start the screensaver immediately with
xscreensaver-command -activate, or stop it withxscreensaver-command -deactivate. - Use a screensaver theme. Some hacks have configuration options (like colors or speed) accessible via the “Settings” button in the demo window.
- Lock screen. To lock your screen when the screensaver activates, check the “Lock Screen After” option in xscreensaver-demo. This requires setting a password in your system settings.
Troubleshooting
If the screensaver doesn’t activate or appears blank, try the following in order:
- Check if xscreensaver is running. Run
ps aux | grep xscreensaverin the terminal. If you don’t see a process, start it withxscreensaver. - Restart the daemon. Run
killall xscreensaverthenxscreensaverto restart it cleanly. - Disable the default GNOME screensaver. As mentioned, go to Settings > Privacy > Screen Lock and set “Blank Screen Delay” to “Never”. Also, if you’re using GNOME, you may need to disable the “Screen Lock” entirely (set “Automatic Screen Lock” to off).
- Check your power settings. In Settings > Power, ensure “Blank Screen” is set to “Never” or a longer time than your xscreensaver setting. If the system blanks the screen before xscreensaver starts, it may interfere.
- Run xscreensaver-demo and click “Restart Daemon”. This button is in the “Advanced” tab of the demo window. It reloads the configuration.
- Reinstall if corrupted. If nothing works, run
sudo apt install --reinstall xscreensaver xscreensaver-gl xscreensaver-gl-extrato reinstall the packages.
Frequently Asked Questions
How many screensavers does xscreensaver include?
The base xscreensaver package includes about 200 different “hacks” (screensavers). Adding xscreensaver-gl and xscreensaver-gl-extra brings the total to over 250.
Can I use xscreensaver with GNOME on Ubuntu?
Yes, but you must disable GNOME’s built-in screen blanking (Settings > Privacy > Screen Lock) to avoid conflicts. xscreensaver will then take over.
How do I make xscreensaver start automatically?
Add xscreensaver to your startup applications. In GNOME, open “Startup Applications”, click “Add”, and enter the command. In KDE, use System Settings > Autostart.
Can I use a single screensaver instead of all?
Yes. In xscreensaver-demo, uncheck all but the one you want, or set the mode to “One” and select it from the list.
Does xscreensaver work on Wayland?
Xscreensaver works best on X11 (the traditional display server). On Wayland (default in newer Ubuntu), some features may not work, and you may need to switch to Xorg at the login screen (click the gear icon and choose “Ubuntu on Xorg”).
How do I uninstall xscreensaver?
Run sudo apt remove xscreensaver xscreensaver-gl xscreensaver-gl-extra. This removes the packages but leaves your configuration files; use sudo apt purge to remove those too.