Ubuntu16.04.1 Server 版本配置桌面

配置源

備份原有源

cd /etc/apt/
sudo passwd # 第一次設置你的root密碼
su root
cp sources.list sources.list.old

製作新源

清空,獲得root權限纔行

echo '' > sources.list

nano sources.list

將下列代碼寫入sources.list,最好分兩批。使用VMWare編輯中的粘貼

# deb cdrom:[Ubuntu-Server 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.3)]/ xenial main restricted

deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
##test source
deb http://cn.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
# source code
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
##test source
deb-src http://cn.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
# Canonical cooperative partner
deb http://archive.canonical.com/ubuntu/ xenial partner
# deb http://extras.ubuntu.com/ubuntu/ xenial main

找到一個,參考比較全的網站

更新系統

繼續之前獲得的root權限

apt update

apt upgrade

配置Cinnamon 3

Server版本先安裝比較精簡的 Ubuntu Desktop 套件,精簡版的500多M,大概需要5-10分鐘。

sudo apt-get install --no-install-recommends ubuntu-desktop

然後安裝Cinnamon 3

大概也有500M。

sudo add-apt-repository ppa:embrosyn/cinnamon

sudo apt update

sudo apt install cinnamon

配置成功的效果圖

image

image

當不再使用Cinnamon時,刪除

sudo apt-get install ppa-purge

sudo ppa-purge ppa:embrosyn/cinnamon

[1] Ubuntu Server安裝圖形界面全過程

[2] How to install GUI on Ubuntu 12.04 (Precise) Server

[3] Ubuntu 16.04如何安裝Cinnamon 3.0

[4] 設置Cinnamon主題

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章