Can't get Remote desktop to work in Debian 12

New to Debian (Or Linux in general)? Ask your questions here!
Post Reply
Message
Author
blairitme
Posts: 2
Joined: 2025-02-13 02:19

Can't get Remote desktop to work in Debian 12

#1 Post by blairitme »

I can use Remote Desktop on my Win 11 machine to connect to my other Win 11 machine. But if I try to connect to my newly installed Debian 12 machine, it says I cant connect.

1) Debian machine has remote Desktop and remote login turned on. It can connect to the internet.
2) Firewall not installed.
3) After failure, I googled and decided I have to install xrdp.
4) Xrdp failed to start "port 3389 already in use".

I'd be grateful for any suggestions; I've spent a week googling, experimenting and even reinstalled twice.
/blair

EDIT: Well, I gave up and installed Fedora, and remote desktop worked.
Last edited by blairitme on 2025-02-13 13:47, edited 1 time in total.

User avatar
ann_droid
Posts: 33
Joined: 2025-01-17 14:47
Has thanked: 7 times
Been thanked: 5 times

Re: Can't get Remote desktop to work in Debian 12

#2 Post by ann_droid »

Hi

Note the name or IP address of your Windows 11 PC

Perhaps this ....
sudo apt install freerdp2-x11 freerdp2-wayland
Open a terminal on your Debian 12 system

Then...

Code: Select all

xfreerdp /v:<Windows_11_IP_or_hostname> /u:<username> /p:<password>
Kind Regards


Ann_Droid

blairitme
Posts: 2
Joined: 2025-02-13 02:19

Re: Can't get Remote desktop to work in Debian 12

#3 Post by blairitme »

Thanks Ann:
At 4am this morning I gave up and new/installed Fedora Desktop 41 and it worked instantly. I think my problem was the computer couldn't found by it's name, perhaps I needed a local dns.
/b

User avatar
RedGreen925
Posts: 267
Joined: 2024-05-16 02:56
Has thanked: 5 times
Been thanked: 44 times

Re: Can't get Remote desktop to work in Debian 12

#4 Post by RedGreen925 »

blairitme wrote: 2025-02-13 13:44 Thanks Ann:
At 4am this morning I gave up and new/installed Fedora Desktop 41 and it worked instantly. I think my problem was the computer couldn't found by it's name, perhaps I needed a local dns.
/b
Editing your /etc/hosts file will do no need for a DNS server. I have all my machines name so I can use host names for them instead of the IP.

Code: Select all

root@9600k:~# cat /etc/hosts
127.0.0.1	localhost
127.0.1.1	9600k

# Added to stop the fscking BS of it not finding them when using that avahi-daemon junk
192.168.0.1	asus.local
#192.168.0.100   macpro.local moved to Haswell machine
192.168.0.101   9600k.local
192.168.0.102   lenovo_lan.local
192.168.0.103   macpro.local
#192.168.0.103   haswell.local
snip...

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


Post Reply