Skip to content

Instantly share code, notes, and snippets.

@dainiuxt
Forked from primaryobjects/readme.md
Created October 3, 2023 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dainiuxt/bc0ce012041c93dff8e007fdcf54eaaf to your computer and use it in GitHub Desktop.
Save dainiuxt/bc0ce012041c93dff8e007fdcf54eaaf to your computer and use it in GitHub Desktop.
How to remote desktop from Linux Mint to Windows 10 with AzureAD Azure AD login

How to remote desktop from Linux Mint to Windows 10 with AzureAD

The following steps detail how to connect over Remote Desktop from Linux Mint or Ubuntu to Windows 10 with an AzureAD username and password login account.

  1. In Windows 10, right-click This PC or My Computer and select Properties.
  2. Click Remote Settings.
  3. Check the option Allow remote connections to this computer.
  4. Uncheck the option Allow connections only from computers running Remote Desktop with Network Level Authentication.
  5. Click OK.
  6. In Linux Mint, running Software Manager and install Remmina.
  7. Open a terminal and install the RDP plug-in with the following command:
    sudo apt install remmina remmina-plugin-rdp
  8. Run Remmina.
  9. Create a new connection using RDP.
  10. Enter your Server, Username (your AzureAD email address: AzureAD\name@company.com), Password, Domain: leave blank.
  11. Select Color depth "True color (32 bpp)".
  12. Click the Advanced tab.
  13. For Security select TLS.
  14. Scroll down and check the option Ignore certificate.
  15. Connect.
  16. In the RDP session, you may see another login screen on the remote computer. Login using your username AzureAD\name@company.com and password.

Notes

Remmina Settings for Linux

The following configuration settings may be used with Remmina in Linux.

Settings

Basic Tab

Name: MYCOMPUTER AzureAD
Server: MYCOMPUTER
Username: AzureAD\username@company.com
Domain:
Resolution: Use initial window size
Colour depth: True colour (32 bpp)
Network connection type: None

Advanced Tab

Quality: Medium
Security protocol: TLS protocol security
Gateway transport type: HTTP
FreeRDP log level: INFO
[x] Ignore certificate

Remote Desktop Settings for Windows 10

In Windows 10, if you continue to see "The logon attempt failed", try the following steps with Remote Desktop to create a new RDP configuration file.

  1. Run Remote Desktop and enter the settings to create a new connection. See here.

  2. Click Save As to save the rdp configuration file.

  3. Open Notepad to edit the file and enter the following lines to the end of the file. See example.

    enablecredsspsupport:i:0
    domain:s:AzureAD
    username:s:AzureAD/your_user_name@company.com
    
  4. In Remote Desktop, click Open to load the rdp file and connect to your computer.

Adjusting the Color Mode

For slow network connections or if experiencing lag, you can adjust the color mode of the connection by editing the rdp configuration file at the following line:

session bpp:i:8

The default setting is session bpp:i:32 for "Highest Quality (32 bit)", while session bpp:i:8 is the lowest setting for "256 Colors". Note, the lowest setting the GUI interface will allow is "High Color (15 bit)". 256 is only available through the configuration file.

Adjusting the Screen Resolution 4K

If your desktop computer resolution is different than the remote desktop resolution and you find issues with the mouse pointer cursor disappearing in RDP, you can set the remote desktop resolution to match your computer. This may especially be the case if you are using a 4K monitor.

desktopwidth:i:3840
desktopheight:i:2160
smart sizing:i:1
screen mode id:i:2
use multimon:i:0
desktopwidth:i:1920
desktopheight:i:1080
winposstr:s:0,3,0,0,800,600
compression:i:1
keyboardhook:i:2
audiocapturemode:i:0
videoplaybackmode:i:1
connection type:i:7
networkautodetect:i:1
bandwidthautodetect:i:1
displayconnectionbar:i:1
username:s:AzureAD\user@domain.com
enableworkspacereconnect:i:0
disable wallpaper:i:0
allow font smoothing:i:0
allow desktop composition:i:0
disable full window drag:i:1
disable menu anims:i:1
disable themes:i:0
disable cursor setting:i:0
bitmapcachepersistenable:i:1
full address:s:PF0XLRLF
audiomode:i:0
redirectprinters:i:1
redirectcomports:i:0
redirectsmartcards:i:1
redirectclipboard:i:1
redirectposdevices:i:0
drivestoredirect:s:
autoreconnection enabled:i:1
authentication level:i:2
prompt for credentials:i:0
negotiate security layer:i:1
remoteapplicationmode:i:0
alternate shell:s:
shell working directory:s:
gatewayhostname:s:
gatewayusagemethod:i:4
gatewaycredentialssource:i:4
gatewayprofileusagemethod:i:0
promptcredentialonce:i:0
gatewaybrokeringtype:i:0
use redirection server name:i:0
rdgiskdcproxy:i:0
kdcproxyname:s:
enablecredsspsupport:i:0
domain:s:AzureAD
username:s:AzureAD/user@domain.com
session bpp:i:8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment