2021年2月21日 星期日

用shell 快速安裝CentOS 7 桌面環境、遠端桌面環境

為了要在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




沒有留言:

張貼留言

資科教室更新案ACER 4690G主機,使用網路衛士還原系統。突發故障,無法進入Windows 11,該如何處理?

一、狀況描述:開機後,會直接進入BIOS。一直無法進入Windows 11 的畫面。 處理方式:檢查BIOS設定 1.進入BIOS,按下F1 2.檢查 Security -> Secure Boot-> Disable 與 Chassis Opened Warning...