Setting up remote desktop for ubuntu
- #SETTING UP REMOTE DESKTOP FOR UBUNTU HOW TO#
- #SETTING UP REMOTE DESKTOP FOR UBUNTU INSTALL#
- #SETTING UP REMOTE DESKTOP FOR UBUNTU UPDATE#
- #SETTING UP REMOTE DESKTOP FOR UBUNTU UPGRADE#
To allow Remote Desktop traffic to reach your Linux VM, a network security group rule needs to be created that allows TCP on port 3389 to reach your VM. Create a Network Security Group rule for Remote Desktop traffic If so, skip the following step on creating a network security group rule to allow remote desktop traffic. From a security perspective, you may wish to connect to your VM with an SSH tunnel using key-based authentication and then connect to xrdp.
#SETTING UP REMOTE DESKTOP FOR UBUNTU UPDATE#
Specifying a password does not update your SSHD configuration to permit password logins if it currently does not. The following example specifies a password for the user account azureuser: sudo passwd azureuser xrdp cannot accept SSH keys for authentication. If you only use SSH key authentication and do not have a local account password set, specify a password before you use xrdp to log in to your VM. If you created a password for your user account when you created your VM, skip this step. Restart the xrdp service for the changes to take effect as follows: sudo service xrdp restart Configure xrdp to use xfce as your desktop environment as follows: echo xfce4-session >~/.xsession Tell xrdp what desktop environment to use when you start your session.
#SETTING UP REMOTE DESKTOP FOR UBUNTU INSTALL#
Install xrdp on your Ubuntu VM as follows: sudo apt-get -y install xrdp xrdp is an open source Remote Desktop Protocol (RDP) server that is available on most Linux distributions, and works well with xfce.
Now that you have a desktop environment installed, configure a remote desktop service to listen for incoming connections. Install and configure a remote desktop server
Next, install xfce using apt as follows: sudo apt-get update
#SETTING UP REMOTE DESKTOP FOR UBUNTU HOW TO#
Use your own values: ssh you are using Windows and need more information on using SSH, see How to use SSH keys with Windows. The following example connects to the VM named .com with the username of azureuser. Commands for other distributions vary slightly (use yum to install on Red Hat Enterprise Linux and configure appropriate selinux rules, or use zypper to install on SUSE, for example).įirst, SSH to your VM. The following example installs the lightweight xfce4 desktop environment on an Ubuntu 18.04 LTS VM. Depending on your choice of desktop environment, it may consume one to 2 GB of disk space, and take 5 to 10 minutes to install and configure all the required packages. There are various desktop environments in Linux that you can choose. Linux VMs are commonly managed using SSH connections rather than a desktop environment. Most Linux VMs in Azure do not have a desktop environment installed by default. Install a desktop environment on your Linux VM If you need to create a VM, use one of the following methods: This article requires an existing Ubuntu 18.04 LTS VM in Azure. The article was writen and tested using an Ubuntu 18.04 VM. This article details how to install and configure a desktop environment ( xfce) and remote desktop ( xrdp) for your Linux VM running Ubuntu.
When new to Linux, or for quick troubleshooting scenarios, the use of remote desktop may be easier. Linux virtual machines (VMs) in Azure are usually managed from the command line using a secure shell (SSH) connection. Polkit.Applies to: ✔️ Linux VMs ✔️ Flexible scale sets Thanks to Devanswers for sharing this solution. We can solve this by setting up a config for polkit. We ran into an annoying popup issue “Authentication is required to create a color profile” when using Windows Remote Desktop. Sudo iptables -I INPUT 6 -m state -state NEW -p tcp -dport 3389 -j ACCEPT
#SETTING UP REMOTE DESKTOP FOR UBUNTU UPGRADE#
Sudo apt-get update & sudo apt-get upgrade -yĢ) install and enable remote desktop with xrdpģ) Add the port 3389 to the iptables and save 1) Update the server, install taskel then install ubuntu desktop: Here below are all the commands we used in ubuntu during the video.