gyro永不抽风！ - RDP
type: channel
link: https://gallery.gyrojeff.top/index.php/tag/RDP/
items: macOS实现RDP服务器

macOS实现RDP服务器
type: item
date: 2021-04-06T17:50:00+00:00
description: 这个是在官方repo下的非官方wiki: https://github.com/neutrinolabs/xrdp/wiki/Building-on-OSX-(not-official) 下面为这当前的版本（本人参与贡献）： Disclaimer xrdp on macOS is not officially supported by the xrdp team so far, but we welcome your contributions and volunteers. This document is brought by contributors. Feel free to edit this document but we xrdp team are not involved xrdp on macOS. To whom want to use xrdp on macOS, SHARE YOUR KNOWLEDGE WITH EACH OTHER. Building xrdp on OSX Work in progress. Since Mac OS 10.10, the OpenSSL headers are not included with the Xcode command line tools. The libraries are available, but they are obsolete (0.9.8). Linking xrdp against those old libraries will fail. You'll need OpenSSL from MacPorts or Homebrew. Prerequisites Install Xcode command line tools: xcode-select --install Install Homebrew: http://brew.sh/ Install OpenSSL from Homebrew: brew install openssl Install Automake + Autoconf: brew install automake Instal Libtool: brew install libtool Install pkgconfig: brew install pkgconfig Install nasm: brew install nasm (needed by librfxcodec) Install XQuartz: https://www.xquartz.org/ Build xrdp Get the release tarball xrdp-0.9.1.tar.gz and unpack it. ./bootstrap ./configure PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig make sudo make install Build xorgxrdp Get the release tarball xorgrdp-0.2.0.tar.gz and unpack it. ./bootstrap ./configure PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig #on Big Sur I had to use following command: ./configure PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig:/usr/local/lib/pkgconfig make sudo make install Ok, whats next? The remaining work is to be able to start X with the xrdpxorg module. This is the actual stopper. service is in ... ❯ which xrdp /usr/local/sbin/xrdp a launchDaemon will be responsible to start the service (not needed for the moment) can run sudo /usr/local/sbin/xrdp and connect via client.. but produces black screen why? (Perhaps no window manager?) Common Troubleshooting Notes Unknown Type Error Error: Compiling xrdp …