Linux serverNETWORK ADMINISTRATIONS

Enable desktop experience & RDP for CentOS 7 VM in GCP

Reference: https://blogs.msdn.microsoft.com/microsoft_azure_guide/2015/01/05/how-to-enable-desktop-experience-and-enable-rdp-for-a-centos-7-vm-on-microsoft-azure/

Script
———–
#!/bin/sh

#Install EPEL and nux Desktop repository rpms
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm

#Install GNOME desktop to get the graphical user interface
yum -y groupinstall “GNOME Desktop” “Graphical Administration Tools”

#command to change the reboot from CLI to GUI
ln -sf /lib/systemd/system/runlevel5.target /etc/systemd/system/default.target

#Install the xrdp
yum -y install xrdp tigervnc-server

#start the xrdp service
systemctl start xrdp.service

#enable the xrdp service
systemctl enable xrdp.service

source

centos 7

Leave a Reply

Your email address will not be published. Required fields are marked *