# 8.1.2.7. 其他設定

設定 web\_setting\_tool

1\. 將檔案從 ROBOTIS-OP3-Tools 文件夾複製到 Web 服務器文件夾：github

```
 $ cd ~/catkin_ws/src/ROBOTIS-OP3-Tools/op3_web_setting_tool
 $ sudo cp -r ./html /var/www
```

2\. 從 Web 瀏覽器中檢查預設頁面

* <http://10.42.0.1>

<div align="left"><img src="https://3058168660-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LkXc5k_SFaP9gK2gsU8%2F-LmrW1pSqOByKnITOwB9%2F-LmrX75t19NmI5YbSy7j%2Fop3_web_setting_01.png?alt=media&#x26;token=20614deb-8969-42c4-9952-1bfa6352727e" alt=""></div>

3\. [如何使用 web setting tool](http://emanual.robotis.com/docs/en/platform/op3/tutorials/#how-to-use-web-setting-tool)

設定 Shutdown Sound 關機聲音

1\. 新增 /etc/init.d/shutdown-snd 檔

* 使用文字編輯器來新增

```
 $ sudo xed /etc/init.d/shutdown-snd
```

2\. 將以下訊息附加到檔案中並保存。

```
 #! /bin/sh
 /usr/bin/madplay "/usr/share/sounds/byebye.mp3"
```

3\. 向檔案添加執行權限。

```
 $ sudo chmod +x /etc/init.d/shutdown-snd
```

4\. 將關機的 mp3 檔複製到 /usr/share/sounds/ 文件夾。

5\. 為關機聲音新增一個服務。

* 新增 /etc/systemd/system/shutdown\_sound.service 檔
  * 使用文字編輯器來新增檔案

```
$ sudo xed /etc/systemd/system/shutdown_sound.service
```

* 將以下訊息附加到文件並保存。

```
 [Unit]
 Description=shutdown sound
 After=network.target

 [Service]
 Type=oneshot
 ExecStart=/bin/true
 ExecStop=/etc/init.d/shutdown-snd
 RemainAfterExit=yes

 [Install]
 WantedBy=multi-user.target
```

* 註冊服務並執行

```
 $ systemctl daemon-reload
 $ systemctl enable /etc/systemd/system/shutdown_sound.service --now
```

設定用於關機的 Power 按鈕

* 轉到Start Button -> Settings -> Power Manager.
* 轉到 General -> Buttons -> 當按住電源按鈕時，更改選項為 “Shutdown”
