播放视频时如何锁定键盘和鼠标

Dav*_*ean 7 video lock-screen kiosk

我想设置我的 Ubuntu 12.04 笔记本电脑,以便在我的计算机无人看管时循环播放视频,同时不允许任何人在没有密码的情况下接管。我认为这可以采用以下两种方式之一,但这两种方式似乎都不必要地困难或笨拙:

  1. 找一个可以用密码锁定键盘和鼠标的视频播放器,或者

  2. 使用带有循环播放视频的屏幕保护程序的普通 ubuntu 锁定。

不幸的是,我很难找到一个简单的方法来做 (1),而且看起来 Ubuntu 甚至没有屏保了,所以 (2) 也很困难。

有关执行此操作的最佳方法的任何建议都会有所帮助。

ate*_*enz 11

试试xtrlock

xtrlock 锁定 X 服务器,直到用户在键盘上输入密码。

   While  xtrlock  is  running, the mouse and keyboard are grabbed and the
   mouse cursor becomes a padlock.  Output displayed by  X  programs,  and
   windows  put  up  by new X clients, continue to be visible, and any new
   output is displayed normally.

   The mouse and keyboard are returned when the user types their password,
   followed  by Enter or Newline.  If an incorrect password is entered the
   bell is sounded.  Pressing Backspace or Delete erases one character  of
   a  password  partially  typed; pressing Escape or Clear clears anything
   that has been entered.

   If too many attempts are made in too short a  time  further  keystrokes
   generate bells and are otherwise ignored until a timeout has expired.

   The  X  server  screen saver continues to operate normally; if it comes
   into operation the display may  be  restored  by  the  usual  means  of
   touching a key (Shift, for example) or the mouse.
Run Code Online (Sandbox Code Playgroud)

安装它使用

sudo apt-get install xtrlock

打开终端运行xtrlock以锁定键盘和鼠标输入。

注意,输入您的活动用户密码以将其解锁并按回车键。