- Shell 100%
| hard-mode-linux.sh | Move the string translation out of hmlBadConfig() into hmlSetLookups() so that TEXTDOMAIN has been set. | |
| LICENSE | Initial commit of a partial draft. | |
| README.md | Wording changes, and display a banner on startup. | |
Hard Mode Linux
A training tool for the school of hard knocks.
In an interactive Bash shell, introduce a random chance of operator mistakes being punished with dire consequences.
Activate it either by placing it in /etc/profile.d/ (system-wide) or
sourcing it from an interactive shell (". hard-mode-linux.sh").
Configuration settings (/etc/hml.conf and/or $HOME/.hml.conf):
- atmosphere = tepid | glum | morose | dismal
-
Gloomier means a greater chance of a mistake being punished.
- difficulty = easy | medium | hard | extreme
-
At medium difficulty, tab completion is turned off. At the hard difficulty level, the PATH variable is unset, and TMOUT is set so your session times out quickly. At extreme difficulty, any non-zero exit status from any command is treated as a mistake.
- penalty = light | medium | heavy | extreme
-
How heavy a penalty is possible. Medium may terminate the current session; heavy may terminate any processes or reboot; extreme will destroy data and may wipe the OS and all disks.
Don't run this on any system you care about.
In reality, this is just a bit silly, and instead of causing harm, displays what it would have run. Cutting and pasting the commands it provides is very much not recommended.