From:http://www.howtogeek.com/114027/how-to-add-screensavers-to-ubuntu-12.04/

How to Add Screensavers to Ubuntu 12.04

Ubuntu 12.04 doesn’t ship with any screen savers, just a black screen that appears when your system is idle. If you’d rather have screensavers, you can swap gnome-screensaver for XScreenSaver.

Screensavers were actually removed back in Ubuntu 11.10. Ubuntu uses gnome-screensaver and inherited the change from upstream GNOME. The GNOME developers think a black screen that puts your monitor into lower-power mode is optimal.

Installing XScreenSaver

First, fire up a terminal from Ubuntu’s Dash.

Next, run the following command to uninstall gnome-screensaver:

sudo apt-get remove gnome-screensaver

Install XScreenSaver and some additional screensaver packages with the following command:

sudo apt-get install xscreensaver xscreensaver-data-extra xscreensaver-gl-extra

Configuring Your Screensaver

After installation, perform a search in the Dash for Screensaver. Launch the Screensaver utility and use it to configure XScreenSaver and select your screensaver settings.

The Screensaver utility will prompt you to stop the gnome-screensaver process and launch the xscreensaver background process when you start it.

By default, XScreenSaver will choose a random screensaver each time it starts. You can specify the screensavers it chooses from or enable “Only One Screensaver” mode to always use your favorite screensaver.

XScreenSaver doesn’t embrace gnome-screensaver’s minimalism — many XScreenSaver screensavers offer a large amount of options you can tweak by clicking the Settings button.

Adding to Startup

To actually use the screensavers, you’ll want XScreenSaver to start in the background each time you log in. If it doesn’t start, it can’t notice your system is idle and launch screensavers.

Get started by launching the Startup Applications utility from the Dash.

Add a startup program with the following command. The name and comment here can be anything you like.

xscreensaver -nosplash

Replacing Lock Screen

Unity calls gnome-screensaver when you click the Lock Screen option in the system menu or use the Ctrl+Alt+L keyboard shortcut. To lock your screen with XScreenSaver, you can create a custom keyboard shortcut that calls XScreenSaver instead.

First, open the Keyboard utility from the Dash.

Click the Shortcuts tab, select the Custom shortcuts section, and click the + button. Specify the following command for your custom shortcut:

xscreensaver-command -lock

Click the word “disabled” after creating your custom shortcut and key in your desired keyboard shortcut when the words “new accelerator” appear – Ctrl+Alt+L is the default shortcut that locks your computer. If you use the default combination, you’ll be prompted to reassign it away from the default gnome-screensaver shortcut.

Use the keyboard shortcut whenever you want to lock your system. Unfortunately, the Lock Screen option in Unity’s system menu doesn’t work with XScreenSaver.

Reverting Your Changes

Reverting these changes is simple. Just run these commands to uninstall XScreenSaver and reinstall gnome-screensaver:

sudo apt-get remove xscreensaver xscreensaver-data-extra xscreensaver-gl-extra
sudo apt-get install gnome-screensaver

If you reassigned the Ctrl+Alt+L keyboard shortcut, go back into the Keyboard configuration window, delete your custom shortcut, and reassign Ctrl+Alt+L to the Lock screen option under System.


Ubuntu’s developers plan on writing a new screensaver system to replace gnome-screensaver and adding it to Ubuntu by default. In the future, installing XScreenSaver will not be necessary.

[转]Ubuntu 12.04 安装屏保的更多相关文章

  1. ubuntu 12.04 安装Docker 实战

    2016-3-8 从网络服务商那里申请到一台Ubuntu测试服务器,用来测试安装Docker环境. 注:本人初学Docker,对Linux命令也仅是稍稍了解,如有错误,烦请告知. 查看系统相关信息 可 ...

  2. Ubuntu 12.04 安装 Apache2+PHP5+MySQL

    LAMP是Linux web服务器组合套装的缩写,分别是Apache+MySQL+PHP.此教程教大家如何在Ubuntu 12.04 LTS server 上安装Apache2服务器,包括PHP5(m ...

  3. Ubuntu 12.04安装Adobe Reader

    原本从Adobe 官方网站下载了 Adobe Reader, 是个rpm包,先用agt-get 装了rpm(sudo apt-get install rpm), 一安装(rpm -ivh AdobeR ...

  4. Ubuntu 12.04 安装MySQL

    本文地址:http://www.cnblogs.com/yhLinux/p/4012689.html 本文适合新手入门. 本文是对 Ubuntu 12.04 环境下安装 MySQL 的记录,通过这两天 ...

  5. ubuntu 12.04 安装wireshark

    轉載自http://blog.chinaunix.net/uid-27064719-id-3786626.html 在ubuntu 12.04下安装wireshark软件之后,打开wireshark开 ...

  6. ubuntu 12.04 安装 redis

    原文地址:http://ijonas.com/software-development/nosql/412/ 1 Installing Redis 2.6.x on Ubuntu 12.04 and ...

  7. ubuntu 12.04安装TP-LINK TL-WN725N v2

    用了一个上午,折腾完毕,分享如下. 1.先试了ndiswrapper和compat-wireless,各种不给力.后来看这篇博文<Ubuntu12.04下安装TL-WN322G+无线网卡驱动(R ...

  8. 【转】Ubuntu 12.04 安装JDK 8和Eclipse

    原文网址:http://blog.csdn.net/yechaodechuntian/article/details/24853813 Ubuntu 12.04 下安装 JDK8 方法一:(缺点是安装 ...

  9. Ubuntu 12.04 安装wine1.7

    从源码安装wine 我的系统环境:ubuntu 12.04.4 X64 wine版本:wine-1.7.12.tar.bz2 解压:tar -xvf wine-1.7.12.tar.bz2 进入win ...

随机推荐

  1. 重拾C,一天一点点_3

    按位运算 C语言提供了6个位操作运算符,只能作用于整型操作数,即只作用于带符号或无符号的char.short.int.long. &    按位与(AND) !      按位或(OR) ^  ...

  2. tomcat6.0 数据库连接池配置问题

    tomcat6.0 数据库连接池配置问题: 连接池配好后,启动tomat后,输入项目系统的登录名和密码,报 Cannot create JDBC driver of class '' for conn ...

  3. Excel REPT函数使用

    需要制作1K大小的数据 使用Excel REPT函数可以迅速制造 Excel REPT 函数 =REPT(1,1024) 结果直接黏贴进txt文件,注意删除尾空格.

  4. 提高SQL语句的性能

    一.FROM子句中的表 FROM子表的安排或次序对性能有很大的影响,把较小的表放在前面,把较大的表放在后面,可以得到更高的效率. 二.WHERE子句中的次序 一般来自基表的字段放在结合操作的右侧,要被 ...

  5. 16、WPF中的命令

    一.前言 事件的作用是发布.传播一些信息,消息送达接收者,事件的使命就算完成了,至于如何响应事件送来的消息事件并不做规定,每个接收者可以使用自己的行为来响应事件,也就是说事件不具有约束力.命令能够在代 ...

  6. 关于C与C++的struct,union,enum用法差异

    对着代码说话: #include <stdio.h> #include <stdlib.h> struct test { int abc; }; enum _enum {A,B ...

  7. Mysql 创建数据库表(删除,删除,插入)

    MySQL 创建数据表 创建MySQL数据表需要以下信息: 表名 表字段名 定义每个表字段 语法 以下为创建MySQL数据表的SQL通用语法: CREATE TABLE table_name (col ...

  8. Ios拦截手机短信程序

    引用 1.手机要越狱,没有越狱的话,下面的可以不用看了!  2.IOS 要5.0以上,4.xx的同上  首先,声明下!由于公司移动开发的项目中,需要根据手机的内容进行逻辑处理,也就是要实现手机短信拦截 ...

  9. 查看MYSQL数据库中所有用户及拥有权限

    查看MYSQL数据库中所有用户 mysql> SELECT DISTINCT CONCAT('User: ''',user,'''@''',host,''';') AS query FROM m ...

  10. [MVC] - 异步调用后台的常用方法。

    1. 直接调用Action @Html.Action("GetTopArticle", "Home") 2. 通过url, 并用Jquery异步加载. < ...