在ubuntu-server安装和卸载桌面

ubuntu-server安装桌面后,与ubuntu-desktop大小已经接近。因此,安装桌面,或卸载桌面,就成了不同硬件资源的选项。尤其在树莓派这样的小型设备上更需要灵活。

1 在ubuntu-server安装桌面

安装桌面方法很多,这里推荐较为简单,且不易出错的方法

sudo apt-get update

sudo apt-get upgrade -y

sudo apt-get install tasksel -y

sudo tasksel

出现一个表格,用上下键移动,用空格选中 ubuntu desktop 项目,用tab键选中“OK”键后,装入桌面。

2如何 卸载ubuntu-server桌面

调出终端
Ctrl+Alt+F1~F6,抑或进入恢复模式
(只能在无图形化界面下进行图形卸载操作)

卸载掉gnome-shell主程序
$sudo apt-get remove gnome-shell

卸载掉gnome
$sudo apt-get remove gnome

卸载不需要的依赖关系
$sudo apt-get autoremove

彻底卸载删除gnome的相关配置文件
$sudo apt-get purge gnome

清理安装gnome时候留下的缓存程序软件包
$sudo apt-get autoclean

$sudo apt-get clean

相关文章

ubuntu退出redis的示例:指定配置文件方式启动源码redis:roo...
ubuntu中mysql改密码忘了的解决方法:1.在终端中切换到root权...
ubuntu安装mysql失败的解决方法原因:可能是原有的MySQL还有...
使用centos和ubuntu建站的区别有以下几点1.CentOS是Linux发行...
ubuntu图形界面和字符界面切换的方法:可以通过快捷键CTRL+A...
ubuntu中重启mysql失败的解决方法1.首先,在ubuntu命令行中,...