How to install xrdp on a Linux redhat 8.2 VM running in Azure

2022-12-02T04:20:03.063+00:00

I have created a Redhat VM in Azure for the first time. Now, I want to install a GUI and XRDP on this VM but when I am trying to run the following commands

sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install xfce4
sudo apt install xfce4-session

It is throwing error that apt-get command not found.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,115 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Prrudram-MSFT 26,686 Reputation points
    2022-12-02T05:09:23.633+00:00

    Hello @Sharma, Amit (DI SW GS&CS AP IN GSS MOM) ,

    Thank you for reaching out to the Microsoft Q&A platform. Happy to answer your question.

    It means that apt package manager is not installed or available on the machine. You need to install it first inorder to use it. Adding a reference for your help here
    Azure XRDP : https://learn.microsoft.com/en-us/azure/virtual-machines/linux/use-remote-desktop?tabs=azure-cli

    Hope this helps!
    Please "Accept as Answer" and Upvote if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.