简体   繁体   中英

Remote Desktop from Windows to Debian on AWS?

I need to set up a Remote Desktop connection from Windows 8 to a Debian instance running on AWS. I've tried modifying the Ubuntu instructions from AWS , replacing the ubuntu-desktop with task-desktop. When I connect sesman tells me

connecting to sesman ip 127.0.0.1 port 3350
sesman connect ok
sending login info to session manager, please wait ...
xrdp_mm_process_login_response: login successful for display ..
started connecting
connecting to 127.0.0.1 5910
error - problem connecting

There's nothing helpful in /var/log/auth.log or /var/log/xrdp-sesman.log.

What am I missing here?

It turns out the place to look was in ~/.xsession-errors, where it was complaining that it couldn't find xfce4-session. After looking at the Debian wiki it looks like the way to start xfce on Debian is to use startxfce4, not xfce4-session.

So the complete solution seems to be:

  1. Start with the template provided by AWS at the AWS website
  2. Refer to the default user for Debian ('admin') instead of the default user for Ubuntu ('ubuntu')
  3. Use some alternative desktop; I am using task-desktop instead of ubuntu-desktop here
  4. Use startxfce4 instead of xfce4-session in .xsession

you should guis with this steps

  1. sudo apt update && apt upgrade
    1. sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config
    2. sudo /etc/init.d/ssh restart
    3. sudo passwd ubuntu
    4. sudo apt install xrdp xfce4 xfce4.goodies tightvncserver
    5. echo xfce4.session> /home/ubuntu/.xsession
    6. sudo cp /home/ubuntu/.xsession /etc/skel
    7. sudo sed -i '0,/-1/s//ask-1'/etc/xrdp/xrdp.ini`
    8. changes coincdencias
    9. sudo sed -i '0,/-1/s//ask-1/' /etc/xrdp/xrdp.ini
    10. sudo service xrdp restart
    11. sudo sed -i '0,/ask-1/s//-1/' /etc/xrdp/xrdp.ini

check example image here and check my post facebook

https://www.facebook.com/photo.php?fbid=10218879958565053&set=a.1751108612582&type=3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM