Rust 语言编写的登录界面服务器。包含一个最小网页服务器和内置的登录页面
|
|
hai 1 ano | |
|---|---|---|
| doc | hai 1 ano | |
| src | hai 1 ano | |
| .gitignore | hai 1 ano | |
| CONTRIBUTING.md | hai 1 ano | |
| Cargo.lock | hai 1 ano | |
| Cargo.toml | hai 1 ano | |
| LICENSE.md | hai 1 ano | |
| README.md | hai 1 ano |
Rust 语言编写的登录界面服务器。包含一个最小网页服务器和内置的登录页面。
本项目是 pageos 项目的一个子项目。
核心思想:
以下是除帮助参数外可用参数:
pageos-greet \
--port 12801 \
--page /path/to/login.html \
--launch-command "cage -s -- firefox --kiosk --no-remote http://127.0.0.1:12801" \
--session-command "pageos-core -p 12800 --command \"cage -s -- firefox --kiosk --no-remote http://127.0.0.1:12800\""
当配置 /etc/greetd/greetd.toml 时,添加了设置临时 Home 的命令以防止 firefox 无法正常启动。
[default_session]
command = "bash -c 'mkdir -p /tmp/pageos-greet; export HOME=/tmp/pageos-greet; pageos-greet --command \"cage -s -- firefox --kiosk --no-remote http://127.0.0.1:12801\" --session-command \"pageos-core -p 12800 --command \\"cage -s -- firefox --kiosk --no-remote http://127.0.0.1:12800\\"\"'"
greetd;pageos-greet 中;