An open API service indexing awesome lists of open source software.

https://github.com/mnogu/omikuji_kernel_module

An Omikuji (fortune-telling lot) Linux kernel module in Rust
https://github.com/mnogu/omikuji_kernel_module

kernel-module linux linux-kernel-module omikuji rust

Last synced: 4 months ago
JSON representation

An Omikuji (fortune-telling lot) Linux kernel module in Rust

Awesome Lists containing this project

README

          

# omikuji_kernel_module

An Omikuji (fortune-telling lot) Linux kernel module in Rust

Ubuntu 23.10

```
$ sudo apt install rustc-1.68 rust-1.68-src rustfmt-1.68 bindgen-0.56 \
llvm clang build-essential linux-lib-rust-$(uname -r)
```

```
$ git clone https://github.com/mnogu/omikuji_kernel_module.git
$ cd omikuji_kernel_module
$ make
```

```
$ sudo update-secureboot-policy --new-key
$ sudo make install
```

```
$ sudo modprobe fortune
$ journalctl -k -n 1
Mar 07 12:34:56 foo-server kernel: fortune: 大吉 (Great blessing)
```

```
$ sudo modprobe -r fortune
$ sudo modprobe fortune
$ journalctl -k -n 1
```

## Reference

* https://gihyo.jp/admin/serial/01/ubuntu-recipe/0793 (Japanese)
* https://en.wikipedia.org/wiki/O-mikuji