mirror of
https://github.com/RGBCube/crash
synced 2025-07-27 00:17:44 +00:00
Add Installation without Nix section
This commit is contained in:
parent
6741fe87ce
commit
14b390a1c5
1 changed files with 19 additions and 0 deletions
19
README.md
19
README.md
|
@ -69,6 +69,25 @@ shell like so, in a NixOS module:
|
|||
}
|
||||
```
|
||||
|
||||
## Installation without Nix
|
||||
|
||||
First, you have to compile the program (requires Zig 0.12.0):
|
||||
|
||||
```shell
|
||||
zig build --release=safe -Dcpu=baseline -Dfallback_shell=/bin/<yourshell>
|
||||
```
|
||||
|
||||
After that, the binary should be in `zig-out/bin/crash`. You can copy it to
|
||||
`/bin` like so:
|
||||
|
||||
```shell
|
||||
cp zig-out/bin/crash /bin/
|
||||
```
|
||||
|
||||
After that, you will need to edit PAM settings to set the `SHELLS` environment
|
||||
variable early on in the boot process. Consult your distros documentation on
|
||||
how to do this, as it may vary.
|
||||
|
||||
## Tips & Tricks
|
||||
|
||||
You can control the default shell / program that will get launched
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue