CentOS deploys XRDP and VNC to achieve remote access

Problem Description

During the Oracle deployment process, we can implement deployment in the following two ways:

  1. Graphical installation => Complete the installation process step by step through the graphical interface according to the guide;
  2. Silent installation => The silent installation process is realized through the pre-configured response file;

The former is more popular and suitable for bronze, gold, and diamond players, while the latter belongs to the automated deployment of king masters. The former requires the installation of graphical related components on the server before remote access. There are many ways, I prefer to use XRDP and VNC to achieve remote access. In this way, graphical management and related operations can be easily realized through windows remote desktop, and Windows does not need to deploy additional tools such as xmanager.

problem solved

  • CentOS YUM source update
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

yum clean all
yum makecache
  • CentOS graphical interface
yum -y groupinstall "X Window System"
yum upgrade -y
yum update grub2-common grub2-pc-modules
yum groupinstall "GNOME Desktop"
  • XRDP service deployment
yum -y install epel-release
yum -y install xrdp

# XRDP配置
vi /etc/xrdp/xrdp.ini

# XRDP启动与开机启动
systemctl start xrdp
systemctl enable xrdp
  • tigervnc-server service deployment
yum -y install tigervnc-server

# VNC配置
vi /etc/sysconfig/vncservers
VNCSERVERS="2:root"
VNCSERVERARGS[2]="-geometry 1024x768"

# VNC密码设置
vncpasswd root

Precautions

  • The following error occurred during fwupdate-efi deployment:
file /boot/efi/EFI/centos from install of fwupdate-efi-12-5.el7.centos.x86_64 conflicts with file from package grub2-common-1:2.02-0.65.el7.centos.2.noarch

solution:

升级新版本的grub2-common
yum upgrade -y
yum update grub2-common grub2-pc-modules
卸载旧版本的grub2-common
rpm -e grub2-common-2.02-0.65.el7.centos.2.noarch grub2-pc-modules-1:2.02-0.65.el7.centos.2.noarch
最后再执行fwupdate-efi即可

Guess you like

Origin blog.csdn.net/weixin_38623994/article/details/106239063