日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
ubuntudashtodock

Ubuntu 14.04在Dash加載關(guān)機(jī)/重啟選項(xiàng)的方法

創(chuàng)新互聯(lián)專注于企業(yè)全網(wǎng)整合營銷推廣、網(wǎng)站重做改版、溫州網(wǎng)站定制設(shè)計(jì)、自適應(yīng)品牌網(wǎng)站建設(shè)、H5頁面制作、成都做商城網(wǎng)站、集團(tuán)公司官網(wǎng)建設(shè)、外貿(mào)網(wǎng)站建設(shè)、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁設(shè)計(jì)等建站業(yè)務(wù),價(jià)格優(yōu)惠性價(jià)比高,為溫州等各大城市提供網(wǎng)站開發(fā)制作服務(wù)。

Ubuntu 14.04是一個流行的Linux發(fā)行版,它提供了許多強(qiáng)大的功能和工具,其中之一就是Dash,它是一個快速搜索和啟動應(yīng)用程序的工具,有時候我們可能會發(fā)現(xiàn)在Dash中無法找到關(guān)機(jī)或重啟選項(xiàng),在本文中,我們將介紹如何在Ubuntu 14.04的Dash中加載關(guān)機(jī)/重啟選項(xiàng)。

方法一:使用命令行

我們可以使用命令行來執(zhí)行關(guān)機(jī)或重啟操作,在終端中輸入以下命令:

關(guān)機(jī):sudo shutdown -h now

重啟:sudo shutdown -r now

這些命令需要管理員權(quán)限,因此我們需要使用sudo命令。-h參數(shù)表示關(guān)機(jī),-r參數(shù)表示重啟。now表示立即執(zhí)行操作。

方法二:創(chuàng)建快捷方式

另一種方法是創(chuàng)建一個快捷方式來執(zhí)行關(guān)機(jī)或重啟操作,打開終端并輸入以下命令:

gedit ~/.local/share/applications/reboot.desktop

這將打開一個文本編輯器,其中包含一個名為reboot.desktop的文件,在該文件中,添加以下內(nèi)容:

[Desktop Entry]
Type=Application
Exec=sudo reboot
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Reboot
Comment=Reboot the system
Icon=system-reboot

保存并關(guān)閉文件,在終端中輸入以下命令來創(chuàng)建關(guān)機(jī)快捷方式:

gedit ~/.local/share/applications/shutdown.desktop

在該文件中,添加以下內(nèi)容:

[Desktop Entry]
Type=Application
Exec=sudo shutdown -h now
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Shutdown
Comment=Shutdown the system
Icon=system-shutdown

保存并關(guān)閉文件,現(xiàn)在,您可以在Dash中找到關(guān)機(jī)和重啟的快捷方式,點(diǎn)擊它們即可執(zhí)行相應(yīng)的操作。

方法三:使用圖形界面工具

如果您更喜歡使用圖形界面工具來執(zhí)行關(guān)機(jī)或重啟操作,可以使用systemctl命令,打開終端并輸入以下命令:

sudo apt-get install gnome-session-manager system-config-printer gnome-tweak-tool gnome-power-manager gnome-settings-daemon gnome-control-center powernap --no-install-recommends --assume-yes

這將安裝一些必要的軟件包,重新啟動計(jì)算機(jī),現(xiàn)在,您應(yīng)該能夠在Dash中找到關(guān)機(jī)和重啟的選項(xiàng),點(diǎn)擊它們即可執(zhí)行相應(yīng)的操作。

方法四:編輯啟動應(yīng)用程序列表

您還可以通過編輯啟動應(yīng)用程序列表來添加關(guān)機(jī)和重啟的選項(xiàng),打開終端并輸入以下命令:

gedit ~/.config/autostart/shutdown.desktop & gedit ~/.config/autostart/reboot.desktop

這將打開兩個文本編輯器,分別用于編輯關(guān)機(jī)和重啟的啟動應(yīng)用程序列表,在這些文件中,添加以下內(nèi)容:

[Desktop Entry]
Type=Application
Exec=sudo shutdown -h now & sudo reboot &  Command to execute when the user logs in. (Replace this with your command) Name=Shutdown & Comment=Shutdown the system & Icon=system-shutdown &  This line is optional, but it helps to identify the application in the Dash menu. X-GNOME-Autostart-enabled=true & X-GNOME-Autostart-Delay=10 &  The delay before the application starts, in seconds. You can adjust this value as needed. X-GNOME-Autostart-User=your_username &  Your username, if different from your current user.  End of file.  [Desktop Entry] Type=Application Exec=sudo reboot & Name=Reboot & Comment=Reboot the system & Icon=system-reboot &  This line is optional, but it helps to identify the application in the Dash menu. X-GNOME-Autostart-enabled=true & X-GNOME-Autostart-Delay=10 &  The delay before the application starts, in seconds. You can adjust this value as needed. X-GNOME-Autostart-User=your_username &  Your username, if different from your current user.  End of file.  Save and close both files.現(xiàn)在,當(dāng)您登錄時,系統(tǒng)將自動執(zhí)行您在啟動應(yīng)用程序列表中指定的關(guān)機(jī)或重啟命令,您可以根據(jù)需要自定義這些命令。

當(dāng)前名稱:ubuntudashtodock
網(wǎng)頁路徑:http://www.dlmjj.cn/article/dppcceh.html