当前位置: 首页>>技术教程>>正文


如何完全删除Unity,并将其替换为Cinnamon?

, , ,

问题描述

我在Ubuntu 13.04上安装了Cinnamon 1.8,现在我想完全删除Unity及其相关的所有内容,但我想保留程序,LightDM和Software Center。

我应该删除哪些包裹?

最佳解决思路

我决定动手,在Ubuntu 13.04中查找与Unity相关的所有文件。我将分享我切换到Cinnamon并完全删除Unity的经验。

我对您的系统损坏或数据丢失概不负责。建议备份。

首先,您需要添加Cinnamon PPA并安装它。

sudo add-apt-repository ppa:gwendal-lebihan-dev/cinnamon-stable
sudo apt-get update
sudo apt-get install cinnamon nemo

安装Cinnamon后,注销或重新引导系统,然后登录Cinnamon。您可以现在对其进行自定义,或者稍后再由您决定。

现在,您需要将Nemo设置为默认文件管理器。

xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search
gsettings set org.gnome.desktop.background show-desktop-icons false
gsettings set org.nemo.desktop show-desktop-icons true

然后,运行以下命令,如果Nemo打开,则表示所有配置均正确。

xdg-open $HOME

现在,让我们摆脱Unity。

我在Synaptic的帮助下仔细搜索了与Unity相关的所有文件,并将它们全部收集到一个命令行中。下一个命令将完全删除Unity及其相关的所有内容,但将保留LightDM,Software Center和Ubuntu随附的所有程序。

sudo apt-get autoremove --purge unity unity-common unity-services unity-lens-\* unity-scope-\* unity-webapps-\* gnome-control-center-unity hud libunity-core-6\* libunity-misc4 libunity-webapps\* appmenu-gtk appmenu-gtk3 appmenu-qt\* overlay-scrollbar\* activity-log-manager-control-center firefox-globalmenu thunderbird-globalmenu libufe-xidgetter0 xul-ext-unity xul-ext-webaccounts webaccounts-extension-common xul-ext-websites-integration gnome-control-center gnome-session

请注意,系统中将保留一些库,它们是必需的,删除它们会破坏您的程序,甚至可能破坏系统。这些库应保留:

gir1.2-unity-5.0 libunity-common libunity-protocol-private0 libunity9 unity-asset-pool unity-greeter

有一个名为“消息菜单和Unity Launcher集成”的Thunderbird扩展,需要从其文件夹中删除。

sudo rm /usr/lib/thunderbird-addons/extensions/messagingmenu@mozilla.com.xpi

Cinnamon使用Muffin作为窗口管理器,因此您可以安全地删除Compiz。

sudo apt-get autoremove --purge compiz compiz-gnome compiz-plugins-default libcompizconfig0

如果安装了Nemo,则也可以删除Nautilus。

sudo apt-get autoremove --purge nautilus nautilus-sendto nautilus-sendto-empathy nautilus-share

(可选)您可以删除Zeitgeist,它被许多用户认为是侵入性的,这还将释放一些内存并减少对硬盘的访问。

zeitgeist-daemon --quit
sudo apt-get autoremove --purge activity-log-manager-common python-zeitgeist rhythmbox-plugin-zeitgeist zeitgeist zeitgeist-core zeitgeist-datahub

您还可以在主目录中删除与Unity,Compiz,Nautilus和Zeitgeist相关的配置文件。它们位于以下路径中:

~/.local/share/unity-webapps      
~/.compiz      
~/.config/compiz-1      
~/.config/nautilus      
~/.local/share/nautilus      
~/.local/share/zeitgeist     

另一个不错的技巧是安装Bleachbit,以从系统中删除临时文件。

sudo apt-get install bleachbit

就是这样,现在重新启动系统以清除内存并确保一切正常。如果一切顺利,您现在就可以运行一个干净优雅的系统!

使用Cinnamon,我的系统变得更加流畅,尤其是在游戏上,并且内存消耗减少了118MB。

团结:579MB vs肉桂:461MB

希望这可以帮助。

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/7596.html,未经允许,请勿转载。