> For the complete documentation index, see [llms.txt](https://book.bsdcn.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.bsdcn.org/di-12-zhang-wayland-xi-tong/di-12.2-jie-wayland-xian-shi-guan-li-qi.md).

# 12.2 Wayland 显示管理器

## SDDM

SDDM 支持 Wayland 会话，从略，参见其他有关章节。

## Ly

Ly 是 TUI 界面的登录管理器，界面较为简洁。

通过 pkg 安装：

```sh
# pkg install ly
```

通过 Ports 安装：

```sh
# cd /usr/ports/x11/ly/ 
# make install clean
```

使用 `pkg info -D ly` 获取最新的安装说明。

将以下行加入 **/etc/gettytab**，设置 Ly 条目：

```sh
Ly:\
	:lo=/usr/local/bin/ly_wrapper:\
	:al=root:
```

编辑 **/etc/ttys**，将以下行：

```sh
ttyv1	"/usr/libexec/getty Pc"		xterm	onifexists secure
```

修改为

```sh
ttyv1   "/usr/libexec/getty Ly"		xterm   on secure
```

重启即可。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://book.bsdcn.org/di-12-zhang-wayland-xi-tong/di-12.2-jie-wayland-xian-shi-guan-li-qi.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
