Skip to main content

Configure remote desktop

I want to remote into the linux server from a windows pc for convenience in working with the server.

I read that Remote Desktop Protocol (RDP) is a good option so I installed Xrdp
sudo apt install xrdp

IP address of server machine:
eno2: 
inet 10.0.0.123/24
inet6 2601:601:1:1100::2396/128

First step is to install Remote Desktop Protocol (RDP) server xrdp on the Ubuntu 20.04 desktop. To do so execute the following command:
$ sudo apt install xrdp
Enable to start after reboot and run the remote desktop sharing server xrdp:
$ sudo systemctl enable --now xrdp
Still on the Ubuntu 20.04 desktop, open a firewall port 3389 for an incoming traffic:
$ sudo ufw allow from any to any port 3389 proto tcp

I successfully remoted into the server from my Windows PC! But it didn't log in properly. :( 

I created a user "saducee" with a unique password for testing. I was thinking it might be easier for a user without admin rights to rdp in. I went through steps to get xrdp configged to accept this user. 
Upon my attempts to rdp in from Windows 10 pc, I got this error:
Connecting to sesman ip 127.0.0.1 port 3350
sesman connect ok
sending login info to session manager, please wait...
login successful for display 10
started connecting
connection problem, giving up
some problem

I searched the web and found this solution:  https://unix.stackexchange.com/a/630124/416459
and perhaps another step or two that voided the need for specifying a port and configuring xrdp to know about the user "saducee". 

Now I just get a blank screen then connection dies after some time with no other message and I'm left looking at the rdp start screen.

Now I'm wondering why it says "ip 127.0.0.1" when my machine is clearly IP 10.0.0.123. Hmmmm. I will look up 
xrdp change ip address config




I susppect this might be due to the fact that this is a sudo user... but not sure. I will try adding a new user and log in with that person.

Comments

Popular posts from this blog

Remote into Linux Server from a Windows PC

I'm currently in the process of installing and configuring the server and I publish to this blog as I go.  I recently inherited a huge server machine from my office. I want to build a custom website and host it on this server but I lack experience with Servers and Linux. Hopefully, I can use documentation and videos to cobble this together. The only hope of success for me is to do this systematically, with documentation of the configuration and installation and build process. User Data login: jlillywhite password: ______________ I forgot the password because it had been so long since I installed the Ubuntu Linux server. Here is what I did to fix that: Reboot the server: If the server is currently running, it's best to start with a clean reboot. You can use the `reboot` command to restart the system. Access the GRUB menu: After the server starts up, you need to access the GRUB menu. Press and hold the Shift key during the boot process to make the GRUB menu appear. If the Shift k

Server Hardware

  I inherited this machine from work. It came with a simple monitor and keyboard and backup power supply (more about that later). I turned the machine on and discovered the following information about the server hardware: RAM Total RAM: 31Gb Available RAM: 30Gb Disk Space Disk space: 82 Gb References Linux commands used: RAM (human readable): free -h Available disk space: df -h /home/jlillywhite (I wanted to make sure it didn't include some "virtual filesystems" that show up when you do "df" by itself.