標籤

bat (54) 作品 (41) python (24) shell (17) windows (11) 虛擬機 (11) php (10) CPP (6) KMS (6) 程式設計 (6) docker (5) xoops (5) 使用教學 (5) 公文 (4) Apache2 (3) Excel (3) juniper (3) 資料庫 (3) 轉檔 (3) mysql (2) 免動手 (2) 資料結構 (2) 軟體廣播 (2) 電腦維修 (2) Android Studio (1) Apple IPAD管理 (1) Arduino (1) CSS (1) LAMP (1) NAS (1) Ubuntu (1) VHD (1) Windows Server (1) 原因 (1) 程式應用 (1) 程式積木 (1) 編輯器 (1) 雲端硬碟 (1)

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




沒有留言:

張貼留言

Ubuntu 22.04 建立PHP 7.3 的網頁伺服器LAMP 相關備忘

        最近,要將網頁Xoops 移機到虛擬機。需要將虛擬機內的LAMP環境弄成原先LAMP環境。經查詢,發現原先LAMP環境如下: 所以,開始要進行相關的措施: 一、系統更新: sudo apt-get update sudo apt-get upgrade 二、安裝a...