PhDLeToanThang / hol

Hand on labs include documents, topology, guide to self practices for cloud computing science environment laboratory
MIT License
1 stars 0 forks source link

xRDP đã được cài trong POD nhưng không start service do #2

Closed PhDLeToanThang closed 7 months ago

PhDLeToanThang commented 7 months ago

image

image

image

PhDLeToanThang commented 7 months ago

Tham khảo: https://askubuntu.com/questions/1245020/xrdp-on-ubuntu-20-04

  1. Remove previously installed xrdp: sudo systemctl disable xrdp sudo systemctl stop xrdp sudo apt purge xrdp sudo apt purge xserver-xorg-core sudo apt purge xserver-xorg-input-all sudo apt purge xorgxrdp sudo apt autoremove -y

  2. Re-install xrdp & required packages: sudo apt install xrdp -y sudo apt install xserver-xorg-core -y sudo apt install xserver-xorg-input-all -y sudo apt install xorgxrdp -y

    You also need to grant access to the /etc/ssl/private/ssl-cert-snakeoil.key file for xrdp user. #It is available to members of the ssl-cert group by default.

    sudo adduser xrdp ssl-cert # add xrdp into ssl-cert group sudo systemctl start xrdp # start xrdp service systemctl is-active xrdp # check xrdp state

active

sudo systemctl enable xrdp # start xrdp on system start

  1. Firewall configuration:
    sudo ufw allow 3389

    (dải ipv4 cho guacamole Server tới con VM cần điều khiển)

    sudo ufw allow from 192.168.100.0/24 to any port 3389

  2. Reboot system:
    sudo reboot

PhDLeToanThang commented 7 months ago

Tham khảo: https://askubuntu.com/questions/1245020/xrdp-on-ubuntu-20-04

  1. Remove previously installed xrdp: sudo systemctl disable xrdp sudo systemctl stop xrdp sudo apt purge xrdp sudo apt purge xserver-xorg-core sudo apt purge xserver-xorg-input-all sudo apt purge xorgxrdp sudo apt autoremove -y

  2. Re-install xrdp & required packages: sudo apt install xrdp -y sudo apt install xserver-xorg-core -y sudo apt install xserver-xorg-input-all -y sudo apt install xorgxrdp -y

    You also need to grant access to the /etc/ssl/private/ssl-cert-snakeoil.key file for xrdp user. #It is available to members of the ssl-cert group by default.

    sudo adduser xrdp ssl-cert # add xrdp into ssl-cert group sudo systemctl start xrdp # start xrdp service systemctl is-active xrdp # check xrdp state

active

sudo systemctl enable xrdp # start xrdp on system start

  1. Firewall configuration:
    sudo ufw allow 3389

    (dải ipv4 cho guacamole Server tới con VM cần điều khiển)

    sudo ufw allow from 192.168.100.0/24 to any port 3389

  2. Reboot system: (không cần thiết)

    sudo reboot

PhDLeToanThang commented 7 months ago

image

(có thêm chọn Disable authentication và Ignore Server certificate)