[小技巧] ubuntu安装gnome-desktop + xrdp登录
date
Mar 6, 2024
slug
tip-ubuntu-gnome-desktop-xrdp
status
Published
summary
小技巧
tags
tip
type
Post
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F79e99652-d5b9-4f77-b4a7-df11d59c6483%2F07c9f10a-b303-43e4-970d-cd50b7dd728e%2FUntitled.jpeg?table=block&id=969fccba-9b34-4d26-ad86-7a7756e45b3e&cache=v2)
Problem & Summary
# if not enabled yet
sudo apt update
sudo apt install ubuntu-desktop
sudo apt install -y xrdp
sudo systemctl enable xrdp
sudo systemctl status xrdp
sudo passwd any-user-name
sudo adduser any-user-name ssl-cert
sudo adduser xrdp ssl-cert
# if linux mint, add this line otherwise black screen
# echo env -u SESSION_MANAGER -u DBUS_SESSION_BUS_ADDRESS cinnamon-session>~/.xsession
sudo systemctl restart xrdp
# port forward
modem: 34589 ->
ubnt switch: 34589 ->
sh88qh_ubt22qh18vm: 3389
Solution
- vi /etc/X11/xrdp/xorg.conf
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F79e99652-d5b9-4f77-b4a7-df11d59c6483%2Fe63ac76c-3892-4235-8bbc-8c097f07b2d1%2FUntitled.jpeg?table=block&id=c7d266c5-8cb9-4164-845f-bb919d33c263&cache=v2)
Screenshots
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2F79e99652-d5b9-4f77-b4a7-df11d59c6483%2F1747b17c-be72-41c2-a109-ad23283dffe8%2FUntitled.jpeg?table=block&id=8811454d-facf-4439-bfb8-0fa3fd151c2b&cache=v2)