To enable console screen locking in tmux
terminal multiplexer,
the vlock
command must be configured to be used as a locking
mechanism.
Add the following line to /etc/tmux.conf
:
set -g lock-command vlock
.
The console can now be locked with the following key combination:
ctrl+b :lock-session