You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

关于为Ubuntu系统配置显眼关机按钮的技术咨询

为Ubuntu系统配置显眼关机按钮的技术咨询

Hey John, great call setting up Ubuntu for your mom—keeping things simple and obvious is key for someone who only needs the basics like email, Skype, and Facebook. Let's get that nice, hard-to-miss shutdown button sorted out for her, using only default Ubuntu tools since you're going with a fresh default install.

背景说明

While I wrote some of the login security for Unix System V and have been using Ubuntu on an old laptop for email and surfing for a few years, my Unix skills have atrophied and knowledge of Ubuntu is limited.
I want to move my 90+ year old mother to Ubuntu due to her limited computer use (email, skype, surfing, facebook) and would like to have a very obvious shutdown button. I'll be installing the latest Ubuntu release using all the defaults.

简单易行的解决方案

Since you're using the default GNOME desktop (the standard for latest Ubuntu), here are two straightforward ways to add an obvious shutdown button:

方法1:桌面大图标(最直观)

This is perfect for your mom—she'll see it as soon as she logs in:

  • Right-click on an empty spot on the desktop, then select New Document > Empty Document
  • Open the blank document and paste this code:
[Desktop Entry]
Type=Application
Name=关机
Comment=一键关闭电脑
Exec=shutdown now
Icon=system-shutdown
Terminal=false
  • Save the file as 关机.desktop (you can use "Shutdown" instead if you prefer English labels)
  • Right-click the new file and choose Allow Launching
  • Now you can drag this icon to the most visible spot on the desktop. To make it even easier to click, right-click the icon > Properties > Appearance and adjust the icon size to something large (like 64x64 or bigger)

方法2:固定到左侧任务栏(Dock)

If you want the button always visible even when windows are open:

  • Create the desktop shortcut using the steps above
  • Click and drag the 关机.desktop icon from the desktop to the left-side dock (the bar with app icons). It'll stay there permanently, so your mom can click it anytime.

额外提示

You don't need any extra software for these steps—everything uses Ubuntu's built-in tools, which keeps things stable and simple for your mom. No need to dig into complex Unix commands beyond what's in the shortcut file.

备注:内容来源于stack exchange,提问作者John C

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.21 08:44:35