> 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-13-zhang-zhuo-mian-huan-jing/di-13.3-jie-mate.md).

# 13.3 MATE

## MATE 桌面环境概述

MATE 是从 GNOME 2 复刻（fork）发展而来的桌面环境，设计理念保持了 GNOME 2 的传统交互风格。“Mate”亦指巴拉圭冬青（Ilex paraguariensis），由其制成的马黛茶在南美地区广受欢迎。

## 安装 MATE 桌面环境

* 使用 pkg 安装：

```sh
# pkg install mate xorg wqy-fonts xdg-user-dirs
```

* 或使用 Ports 安装：

```sh
# cd /usr/ports/x11/mate/ && make install clean
# cd /usr/ports/x11/xorg/ && make install clean
# cd /usr/ports/x11-fonts/wqy/ && make install clean
# cd /usr/ports/devel/xdg-user-dirs/ && make install clean
```

登录管理器可考虑使用 LightDM。

### 软件包说明

| 包名              | 功能说明             |
| --------------- | ---------------- |
| `mate`          | MATE 桌面环境        |
| `xorg`          | X 窗口系统           |
| `wqy-fonts`     | 文泉驿中文字体          |
| `xdg-user-dirs` | 自动管理主目录子目录（可选安装） |

## 安装后启用服务

设置 D-Bus 服务开机自启：

```sh
# service dbus enable
```

## startx 配置文件

在 **\~/.xinitrc** 文件内添加以下内容，以便使用命令 startx 启动 MATE 桌面会话：

```sh
exec mate-session
```

## 输入法

![FreeBSD 安装 MATE](/files/lLDaDrKFJnPJ1MC08AWI)

IBus 输入法框架经测试可用，参见输入法相关章节完成具体配置。

## 桌面欣赏

![FreeBSD 安装 MATE](/files/uHoXSk3kOzUCAZYZW2Li)

![FreeBSD 安装 MATE](/files/GF7oUBq5wXo7jjUdpHK8)


---

# 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-13-zhang-zhuo-mian-huan-jing/di-13.3-jie-mate.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.
