> 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.5-jie-cinnamon.md).

# 13.5 Cinnamon

Cinnamon 是 Linux Mint 项目的核心组件，沿用传统桌面交互风格，同时融入创新特性与原有用户体验。其桌面布局类似于 GNOME 2，底层技术源自 GNOME Shell。Cinnamon 注重用户熟悉感，提供易于使用且舒适的桌面体验。

## 安装 Cinnamon 桌面环境

* 使用 pkg 安装：

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

* 或使用 Ports 安装：

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

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

### 软件包说明

| 包名              | 功能说明                                 |
| --------------- | ------------------------------------ |
| `xorg`          | X 窗口系统                               |
| `cinnamon`      | 从 GNOME Shell 分支而来的桌面环境，布局类似 GNOME 2 |
| `wqy-fonts`     | 文泉驿中文字体                              |
| `xdg-user-dirs` | 管理用户目录，如“桌面”、“下载”等                   |

## 配置 startx

编辑 **\~/.xinitrc** 文件，添加：

```sh
exec cinnamon-session
```

可通过 startx 命令启动 Cinnamon 桌面。

## 挂载 proc 文件系统

编辑 **/etc/fstab** 文件，添加：

```ini
proc /proc procfs rw 0 0
```

以读写模式将 `procfs` 文件系统挂载到 **/proc**。

## 服务管理

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

```sh
# service dbus enable
```

## 桌面欣赏

![cinnamon on FreeBSD](/files/vsAN39J1G0I8RVujxsM7)

![cinnamon on FreeBSD](/files/n9uJ6lI5hGkaoOFVolZA)

注意：默认壁纸为黑色，这是正常现象。

![cinnamon on FreeBSD](/files/bBXCWBdueqBI3jiLv73t)

自定义壁纸。

## 附录：Cinnamon：肉桂、桂皮、桂枝、烟桂概念辨析

Cinnamon 指肉桂（锡兰肉桂/斯里兰卡肉桂），与日常烹饪用的桂皮不同（二者虽均为肉桂树的树皮，但所属树种不同），是一种常用于制作冰红茶或西式糕点、咖啡的香料。

锡兰肉桂主要产地是斯里兰卡，具有柑橘香甜的复合气味。桂皮（烟桂为去掉青皮的优质桂皮）主要产地是中国南方及越南，气味呈辛辣刺激的中药味。

《中国药典·一部·药材和饮片》（2025 年版）对肉桂的定义为：“本品为樟科植物肉桂 Cinnamomum cassia Presl 的干燥树皮。多于秋季剥取，阴干。”此处所指并非锡兰肉桂，而是桂皮。肉桂树的细嫩幼枝则为桂枝。锡兰肉桂实为“樟科植物锡兰肉桂 Cinnamomum zeylanicum Bl. 的树皮。”在植物分类中，锡兰肉桂和桂皮同属肉桂组（Cinnamomum sect. Cinnamomum）。

锡兰肉桂一般磨成粉出售，价格通常是桂皮的数倍至数百倍不等。


---

# 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.5-jie-cinnamon.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.
