Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jorsn/blackknight
A terminal screen locker.
https://github.com/jorsn/blackknight
haskell pam screen-locker tmux
Last synced: 1 day ago
JSON representation
A terminal screen locker.
- Host: GitHub
- URL: https://github.com/jorsn/blackknight
- Owner: jorsn
- License: bsd-3-clause
- Created: 2014-04-19T16:49:24.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-25T19:27:15.000Z (almost 10 years ago)
- Last Synced: 2023-08-01T00:10:26.401Z (over 1 year ago)
- Topics: haskell, pam, screen-locker, tmux
- Language: Haskell
- Size: 184 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
blackknight
============**blackknight** is a screen locker for text terminals using [PAM] for password checking.
It locks single terminals and can be used as lock-command for [TMux].[PAM]: https://en.wikipedia.org/wiki/Pluggable_Authentication_Modules
[TMux]: https://en.wikipedia.org/wiki/TmuxInvocation
------------To run **blackknight** after installing it simply type
```
$ blackknight
```Possible cmdline options are:
| Option | Description
| -------------------------- | ---------------------
| `-h`/`--help`
| Display a help message.
| `-nc`/`--noclear`
| Do not clear the screen before locking.
| `-nm`/`--nomsg`
| Do not display a message.
| `` | Display the given message instead of the default one.**Warning: `blackknight` clears the screen *and the scrollback buffer* when locking.
Only the schreen *without the scrollback buffer* is restored when unlocking.**Usage as TMux lock-command
---------------------------Place the following line in `/etc/tmux.conf` or `~/.tmux.conf`:
```
set-option -g lock-command 'blackknight'
```Build/Installation
---------------------Since **blackknight** uses [cabal] you only have to type
```
$ cabal install
```to install or
```
$ cabal build
```to build without installation.
_To be able to run **blackknight** you have to install it as root (`sudo cabal install --global`)
or copy `pam.d/blackknight` to `/etc/pam.d/` with permissions set to `0644`._[cabal]: http://www.haskell.org/cabal
Copyright
-----------Copyright (c) 2014 Johannes Rosenberger
This code is released under a BSD Style License.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.For more details please read the '[LICENSE]' file.
[LICENSE]: https://github.com/jorsn/blackknight/blob/master/LICENSE