Ubuntu16.04.1 Server 版本配置桌面
阿新 • • 發佈:2019-01-06
配置源
備份原有源
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
配置成功的效果圖
當不再使用Cinnamon時,刪除
sudo apt-get install ppa-purge
sudo ppa-purge ppa:embrosyn/cinnamon