我们在使用系统过程中会发现,如果我们中途离开位置一会(即不操作电脑一段
时间
),回来后我们就会发现屏幕已经变黑,即系统被自动
锁屏
了。这就是
Ubuntu
系统的定时
锁屏
功能。
对于那些对系统安全有一定要求的朋友来说,这个功能
# /etc/pam.d/common-auth - authentication settings common to all services
# This file is included from other service-specific PAM config files,
# and should contain a list of the authentication modules that define
# the c
2:
设置
自动
锁屏
快捷键:
快捷键
设置
一般在setting-->devices--->keyboard中
设置
,其中,有些已经有的可以直接修改,没有的可以添加,例如,
锁屏
的相关快捷键
设置
,我这里已经修改:
同时,我新增了ctrl+alt+a为截屏并保存在粘贴板上的快捷
设置
:
cat /etc/profile | grep TMOUT -n //查看超时
时间
sudo sed -i 's@TMOUT=0@TMOUT=0@' /etc/profile //用sed命令修改超时
时间
;0为不超时
cat /etc/profile | grep TMOUT -n //再次查看修改后的TMOUT参数(但我这里不会显示)
source /etc/profile //让修改立即生效。(不需重启系统)
1.针对所有用户
sudo vim /etc/profile //编