wlock is a simple console locker, which is basically built on the work of vlock. wlock can only lock the current terminal console, but it can show a fancy ui appearance (designed by myself) once locked. I pretty love it although you may think it is a meaningless work.
Once wlock is installed, you can type wlock
in the command line and press Enter to lock your console. If you want to unlock it, you need to press Enter and input the password for current user or root. The whole work flow of wlock is shown in the gif above.
Pre-built binary file can be found here, which is built on gcc (version 9.4.0) and make (version 4.2.1). And it serves for linux platform (maybe MacOS?).
After downloading, you should do some things extra to make wlock work:
$ sudo chown root ./wlock
$ sudo chgrp root ./wlock
$ sudo chmod 4711 ./wlock
$ sudo mv ./wlock /usr/sbin
You can simply remove wlock by sudo rm /usr/sbin/wlock
.
- gcc
- make
- Linux-PAM
Follow these steps:
$ git clone https://github.com//mengbys/wlock.git
$ cd wlock
$ make
$ sudo make install
Just change directory into wlock and:
$ sudo make uninstall
$ make clean
GPL-2.0