rdp to Linux GUI from windows via rdp - Updated


jimbo45

Well-known member
Pro User
VIP
Local time
12:49 PM
Posts
4,038
Location
Hafnarfjörður IS
OS
Windows XP,7,10,11 Linux Arch Linux
Hi folks
for those using Linux VM's (or Hosts) and you want to rdp to the GUI from WITHIN a Windows machine --whether a windows VM or real machine there's some little minor things you need to do.

You need as well as install on the Linux machine -- not the Windows system - nothing extra needed on Windows - the xrdp package and also install the SSL certificate sudo adduser xrdp ssl-cert. You don't need to use any vnc server -- xorg and X11 works just fine -- I haven't tried wayland yet -- in the past that gave all sorts of problems. Might have a play with it later.

I prefer testing with Debian as it's usually rock solid and not open to so many risks as if you test 100% bleeding edge new stuff. Once that works then I play around with other things !!!!

The other restriction if you use a desktop like KDE you can only have one GUI session open so you need the user to be logged off at least on the GUI session. (doesn't apply to cli logons via ssh etc of course). - Once a session is started you can disconnect the RDP session and re-connect any time later as that user even if still logged on.

I don't suggest you enable remote root logins -- so one way around is to create another user you only use for remote sessions.
Otherwise "Seemples".

E,g on debian bookworm (rel 12) with a kde session from a remote Windows 11 VM. (W11 Pro DEV release).

Screenshot_20230622_102015.png

now playing spider solitaire :

Screenshot_20230622_103010.png

have fun !!!!

cheers
jimbo
 
Last edited:

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7
Nice. I'm all out of likes for the day, but this is helpful, I'm building a Mocaccino OS VM, this should work in there for me to rdp directly into the vm from teh Windows host machine.

Thanks!
 

My Computers

System One System Two

  • OS
    Windows 11 23H2 Current build
    Computer type
    PC/Desktop
    Manufacturer/Model
    HomeBrew
    CPU
    AMD Ryzen 9 3950X
    Motherboard
    MSI MEG X570 GODLIKE
    Memory
    4 * 32 GB - Corsair Vengeance 3600 MHz
    Graphics Card(s)
    EVGA GeForce RTX 3080 Ti XC3 ULTRA GAMING (12G-P5-3955-KR)
    Sound Card
    Realtek® ALC1220 Codec
    Monitor(s) Displays
    2x Eve Spectrum ES07D03 4K Gaming Monitor (Matte) | Eve Spectrum ES07DC9 4K Gaming Monitor (Glossy)
    Screen Resolution
    3x 3840 x 2160
    Hard Drives
    3x Samsung 980 Pro NVMe PCIe 4 M.2 2 TB SSD (MZ-V8P2T0B/AM) } 3x Sabrent Rocket NVMe 4.0 1 TB SSD (USB)
    PSU
    PC Power & Cooling’s Silencer Series 1050 Watt, 80 Plus Platinum
    Case
    Fractal Design Define 7 XL Dark ATX Full Tower Case
    Cooling
    NZXT KRAKEN Z73 73.11 CFM Liquid CPU Cooler (3x 120 mm push top) + Air 3x 140mm case fans (pull front) + 1x 120 mm (push back) and 1 x 120 mm (pull bottom)
    Keyboard
    SteelSeries Apex Pro Wired Gaming Keyboard
    Mouse
    Logitech MX Master 3S | MX Master 3 for Business
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
    Browser
    Nightly (default) + Firefox (stable), Chrome, Edge
    Antivirus
    Defender + MB 5 Beta
  • Operating System
    ChromeOS Flex Dev Channel (current)
    Computer type
    Laptop
    Manufacturer/Model
    Dell Latitude E5470
    CPU
    Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
    Motherboard
    Dell
    Memory
    16 GB
    Graphics card(s)
    Intel(R) HD Graphics 520
    Sound Card
    Intel(R) HD Graphics 520 + RealTek Audio
    Monitor(s) Displays
    Dell laptop display 15"
    Screen Resolution
    1920 * 1080
    Hard Drives
    Toshiba 128GB M.2 22300 drive
    INTEL Cherryville 520 Series SSDSC2CW180A 180 GB SATA III SSD
    PSU
    Dell
    Case
    Dell
    Cooling
    Dell
    Mouse
    Logitech MX Master 3S (shared w. Sys 1) | Dell TouchPad
    Keyboard
    Dell
    Internet Speed
    AT&T LightSpeed Gigabit Duplex Ftth
Nice. I'm all out of likes for the day, but this is helpful, I'm building a Mocaccino OS VM, this should work in there for me to rdp directly into the vm from teh Windows host machine.

Thanks!

Thanks

It's always nice to get feedback from other people on the Forum -- whether good or bad. So many these days just don't respond even when solutions to their problems have been solved.

I suppose for a lot of us "Older folk" brought up in the days of the old BBS's and quite severe sysops --Netiquette is a thing of the past. !!!

I know this is a Windows Forum but many do use Linux either as a host and as a VM so I don't feel guilty at posting stuff I've found a problem for other users and fixed and hope that it helps them.

I've had a lot of good stuff from many here too.

BTW building minimal Linux systems is not as easy as it seems -- I.ve looked at mocaccino -- if you aren't an experienced Linux user you might do better installing a minimal Arch Linux system first to get the hang of CLI based installs etc. Do though always install nano (far better than vim as an editor) and a network manager

Nothing worse than to find your newly installed system can't upload or update anything because you haven't installed a network manager and you can't install it because there's no network to install from !!! -- "Been there -- done it --bought the T-shirt -- etc".

Do though avoid SNAP, Flatpak, Docker etc -- that's why I hate ubuntu -- nearly every solution involves using SNAP. Docker might be OK but avoid the rest of those things like the plague.

And for the other way around : FROM Linux TO Windows via xfreerdp

Screenshot_20230622_171953.png


I'd suggest while testing avoid the /f switch as this will get into full screen and getting out of full screen doesn't always work properly. !!
No need again for ANYTHING on Windows to be installed or any vnc server etc on Linux.

Added -- you don't even need ANY GUI / Windowed desktop e.g GNOME, KDE, etc on the Linux box to do this - just ensure an X11 / Xorg service is running -- usually all by default and then just start the command as shown from the command line !! . The X11 / Xorg server will initiate the Windows GUI !!!


Cheers
jimbo
 
Last edited:

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7
Thanks! finding this quite useful
Dont forget though if using a GUI on the Linux system you want to connect TO from Windows the GUI user needs to be logged out from the LINUX system and logged into FROM Windows as a user can only have ONE "X-Server" (GUI) session active -- You can have multiple logons on the CLI sessions of course so not an issue there -- but if using CLI on LINUX FROM Windows just logon to the Linux system via SSH. (Install openssh server on Windows -- via add optional feature) and start the service (openssh server) and ensure on Linux an SSH daemon is running.

Cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7

Latest Support Threads

Back
Top Bottom