如何完全删除Unity,并用Cinnamon替换它?

我在Ubuntu 13.04上安装了Cinnamon 1.8,现在我想完全删除Unity及其相关的一切,但我想保留程序,LightDM和软件中心。

我应该删除哪些包裹?

我决定弄脏我的手,并在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,软件中心和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 

有一个名为“Messaging Menu and Unity Launcher integration”的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。

Unity:579MB vs Cinnamon:461MB

希望这可以帮助。