Lock screen when logged in gnome env as root
来源:互联网 发布:为什么要改通信端口 编辑:程序博客网 时间:2024/06/15 16:14
gnome桌面环境下,root用户不能锁屏,官方的解释是出于各种安全性的考虑。
我知道对于Linux主义者,直接用root作为第一身份登录系统是必须被千刀万剐的,可惜我不是完美主义者,我是方便主义者。
OK,无论如何,我现在非常需要在root下有一个锁屏的方法——为了应付公司的安全检查。
Google+Baidu了一番,没有发现有什么配置gnome即可达成的办法。
只有安装xlock命令了。把它记载到这篇博客里,以免日后忘记。
xlock的官网:http://www.tux.org/~bagleyd/xlockmore.html
下载最新的源码,我此时下载的是xlockmore-5.34.tar.bz2
解压之后,常规三部曲:
./configure && make && make install
configure的过程可能发现各种包各种库不存在,相对应地安装它们,这里不做细述。
我再make的时候,报错找不到-lXinerama,很奇怪,因为如果缺少链接库,configure的时候就该报告。
下来调查一看,只有libXinerama.so.1和libXinerama.so.1.0.0,我晕,手动建立一个符号链接了事。
运行时,只需要在终端敲入命令即可
# xlock
屏幕立即进入屏保,当按下任意键或者移动鼠标时,出现输入密码的提示。gnome环境下root账号锁屏成功。- Lock screen when logged in gnome env as root
- Got error: 1449: The user specified as a definer ('root'@'%') does not exist when using LOCK TAB
- mysqldump报错'The user specified as a definer ('root'@'%') does not exist when using LOCK TABLES'
- Android OnSensorChanged() not working when screen lock is on
- Lock Screen Rotation in iOS 8 旋转
- When to work as root & When to Work as a System User
- Java EE 6: How to implement “Stay Logged In” when user login in to the web application
- fix screen scrolling in ubuntu xterm when used with GNU screen
- Login as Root in Ubuntu 12.04
- How to login as Root In ubuntu
- On a new installed FreeBSD server, when you try to SSH to the server as root, you will end up in the
- Error 1044 in MySQL: Access denied when using LOCK TABLES
- you need to have ldconfig in your PATH env when enabling luajit
- Help Needed in compilation when TARGET_BUILD_VARIANT is set as "user".
- Nerver use NSNumber as keys in Dictionary when Serialize
- password file must be owned by root when running as root解决方法
- 备份mysql数据库提示marked as crashed and should be repaired when doing LOCK TABLES
- is marked as crashed and should be repaired when using LOCK TABLES
- 激情与梦想:学习如何做好一个技术经理?
- 每天读一遍,不久你就会变!
- POJ2151 Check the difficulty of problems 概率+DP
- 【转】使用Hibernate需要导入的一些jar包
- A query with lob's requires oci8 mode but oci7 mode is used plsql developer
- Lock screen when logged in gnome env as root
- poj 2192 Zipper DP
- C/C++基础之解答C/C++常见误区
- C++堆和栈详细介绍[转]
- C++必须明白的基础20条
- C++程序员必需的修养
- HWInfoWrapper.exe
- C/C++语言void及void指针深层探索
- linux学习笔记(七)linux下杀死tomcat进程,关闭tomcat