為了要在CentOS 7 寫php程式,開始要了解 CentOS 7 桌面環境。
檔案名稱:CentOS7Gnome.sh
檔案內容:
#!/bin/bash
yum -y groups install "GNOME Desktop" "Graphical Administration Tools"
systemctl set-default graphical.target
reboot
如何使用
$sudo chmod 777 CentOS7Gnome.sh
$sudo sh CentOS7Gnome.sh
檔案名稱:CentOS7Xfce.sh
檔案內容:
#!/bin/bash
yum install epel-release -y
yum groupinstall "Xfce" -y
systemctl set-default graphical.target
reboot
如何使用
$sudo chmod 777 CentOS7Xfce.sh
$sudo sh CentOS7Xfce.sh
檔案名稱:CentOS7GnomeXrdp.sh
檔案內容:
#!/bin/bash
yum -y groups install "GNOME Desktop" "Graphical Administration Tools"
systemctl set-default graphical.target
rpm -Uvh http://download.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install xrdp tigervnc-server -y
systemctl enable xrdp.service
reboot
如何使用
$sudo chmod 777 CentOS7GnomeXrdp.sh
$sudo sh CentOS7GnomeXrdp.sh
檔案名稱:CentOS7XfceXrdp.sh
檔案內容:
#!/bin/bash
#!/bin/bash
yum install epel-release -y
yum groupinstall "Xfce" -y
systemctl set-default graphical.target
rpm -Uvh http://download.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install xrdp tigervnc-server -y
systemctl enable xrdp.service
reboot
如何使用
$sudo chmod 777 CentOS7XfceXrdp.sh
$sudo sh CentOS7XfceXrdp.sh
資料來源:
1.Centos 7 安裝GNOME桌面環境
1.Centos 7 安裝GNOME桌面環境
沒有留言:
張貼留言