I think this issue should be reopened as I ran into the same issue on mac High Sierra 10.13.3. Trying installation using clang. Trying installation using clang. This comment has been minimized.
Sorry if it's wrong place to share that. Introduction Next guide will describe how to compile xrdp on your mac. Why I need it because it's much more easy to manage mac computer from windows computer. You don't need to search vnc client you can simply use windows built-in rdp client. (and as for me during connection with VNC client to mac default VNC server aka ARD I have hanging of login screen very often, using XRDP possibility to see hanged vnc login screen reduced, why? I don't know.) If you want just install it you can download Installer OSxXRDP.zip and simply install it.
Installation will be done automatically (below i will describe how installer works). But if you paranoiac and afraid of some code injections please follow by steps and compile it by yourself Caution: I'm really big mac hater (it's not related to Big'MC ) I don't like OS x and I'm pretty sure that OS x it's bad, old and outdated copy of Linux (it's mine IMHO so just keep in mind when you are reading that) Preparation I wouldn't describe how install x Code or command line tools you can find it over Internet or ask apple how to do that.
First step simply create folder for our project Let's do that in the root of user folder. Code: $ wget '-O /xrdp/deps/tree-1.6.0.dmg.zipIf you still want to use safari follow by this link and download each file: Extract each installer and install every sure you need root privileges for that. If it doesn't work (then sorry sometimes it's happened) or again if you are paranoiac you can skip this steps and go to the 2nd or 3rd. It was my way. You need install macports as described here: When you have configured macports. Invoke installation by typing in console. Code: $ cd /xrdp $ tar xvzf 'xrdp-v0.6.0.tar.gz' $ cd /xrdp/xrdp-v0.6.0 Patching Now you need to apply patch.
Really it can be compiled without this patch but. Underlying story: XRDP uses Unix standards to read environments.
As I've told you mac it's just cripple Linux sometimes this function available sometimes not. It can be included into libSystem.B.dylib.
It doesn't depend on version of mac os even when libs have the same version on one mac it's supported another no. I have suspicious that it's depends on version of x code, it seems mac devs unsucceeded to remove it from each tool and perform solution to make environ function available but sometimes this function available even when x code wasn't installed maybe some another apple app can modify it too. So you need to apply small patch to use native OS x calls into this oscalls.c file. Code: -./xrdp-v0.6.0/common/oscalls.c 2012-02-21 11:00000 -0800./xrdp-environ/common/oscalls.c 2014-08-17 23:00000 -0700 @@ -67,6 +67,9 @@ /. for clearenv./ #if defined(WIN32) +#elif APPLE +#include +#define environ.NSGetEnviron; #else extern char. environ; #endif @@ -2113,7 +2116,7 @@ void APPCC gclearenv(void) -#if defined(WIN32) +#if defined(WIN32) defined(APPLE) #else environ = 0; #endif You can download this patch by link.
Code: $ wget '-O /xrdp/my.xrdp.plist $ sudo cp /xrdp/my.xrdp.plist /Library/LaunchDaemons/my.xrdp.plist $ sudo chmod 644 /Library/LaunchDaemons/my.xrdp.plist $ sudo launchctl load -F /Library/LaunchDaemons/my.xrdp.plist $ sudo launchctl start my.xrdp Enable VNC aka ARD And now don't forget to start VNC to which your XRDP instance will be connected. You can do that using GUI settings of mac.
Or simply run this to activate access with the password 12345678 (you can change it). Code: $ /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw 12345678 -restart -agent -privs -allSo VNC will be enabled at port 5900 (you can try some custom vnc to change it if you want).
Installer Installer assembled using packagemaker app from apple. As I've mentioned above you can download it from here: It contains few scripts and two packages. First script will run before start to check your current language if it's Russian language simply exit. You will pass it without problems it's only for Russians why because they're invaders and they support their government in this actions.
(Sure it's simply to skip but at least maybe they will think why I did that.). Just go through the dialogs (maybe you'll be asked about choose drive. Due to some apple bug sometimes it can ask sometimes no). By default two packages available and marked: one for binaries another one for daemon. So normally you need both.
After finish you will see such screen and you can try to check if services where started. That's all now you can launch you RDP client and connect to mac by IP. Click to expand.Hi Maurice, it's unbelievable but I have exactly the same problem And i have few solutions for that: 1.
Change display scaling on mac I don't remember (and i can't check because it's weekend), but i think it changes the real display appearance too. So if someone or you are using this mac not only by remote it's not good idea and better to use second way. go to Apple menu - System Preferences - Display - Set scaled radiobox - and select one of available resolutions For me i have 1366x768 not sure that this will be the same on every mac (for example on macbook if i'm not wrong only one available) And another problem that you are on fixed resolutions. It's possible that some apps not able to fit into screen But there is one plus in using this method - screen is updated much more faster due to less resolution 2. It's hidden feature of microsoft client But you can use it only for saved connections. To save connection you need to open mstsc, at least you need to set IP, click Options - Save as - find saved file.rdp and open it by notepad - and add just one line any where (without quotes): ' smart sizing:i:1' save and close notepad Now connect using created.rdp file and mstsc client will resize content accordingly to your window size enjoy, yura.
Code: $ cat /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Headers/Events.h grep -i option optionKeyBit = 11, /. option key down?./ rightOptionKeyBit = 14, /. right Option key down? Not supported on Mac OS X./ optionKey = 1. Click to expand.Sorry maybe you don't know teamviewer it's vnc reimplemintation oriented to use over internet (it's possible to use in LAN network but protocol still will be vnc).
'GotoMyPC or Logmein' -:facepalm: My target was to control PC over LAN using microsoft RDP client (mstsc). Explanation: VNC and RDP is totally different protocols. When you have few macs and bunch of persons who need to use it and they don't have access to vnc, partially due to company restrictions, but they still working with windows they have mstsc, additionally you need to show all of them what is VNC and how to use it, it's better to set up mac to allow connections over RDP protocol.
Yes to much work so that's why I've did installer file for me and share it here. Hello coozoo, Thanks for the great work you did here!
This is really a great post. I feel we have the exactly same viewpoint for OSX, so using XRDP will help me and my colleagues. Alternative third party RDP server applications for OS X are way expensive and XRDP is the only free solution for this need AFAIK. I installed your bundled app and it works like a charm. Only problems are clipboard/file copy paste and some Alt Gr key.
I believe an account based folder share could be a workaround for clipboard/file copy paste problem. So I'm here to find a solution for keyboard mapping, that you and easyw already discussed above. At the moment I can't use Alt or Alt Gr keys with XRDP.
Alt Gr is also missing on ARD itself, but Alt key does all of its functions. As below link states, Alt key of PC keyboard should be mapped as Option key on OS X. This is what we see on ARD. On XRDP Alt key behaves like Windows key and is mapped to Command key. Do you have a suggestion for mapping Alt key to Option key, as it should be.
![For For](/uploads/1/2/5/3/125373407/257093387.png)
How to control your mac using win RDP client (XRDP compiling guide on OSx) Hi yura and buyukbang, I managed to map almost all the keycodes through ukulele (open source sw) with xrdp and ukulele you can map: basic key layout shift key layout shift + left alt layout (it is mapped as shift+option) equal to shift + right alt layout (it is mapped as shift+option) so I have 3 key-codes maps to add all the keys I need It is strange that left Alt or right Alt are mapped to Command and shift+leftAlt and shift+rightAlt are mapped to shift+option. May be yura could discover the trick! This is really great. I had been waiting for someone to figure out how to get xrdp to compile for OSX. There's such a lack of interest I began to wonder if a free RDP solution would ever arrive. Thanks coozoo! Having said that though the Alt key mismap issue is a big problem for me, but I tried a lot of various things to resolve it & finally have.
It's simpler than you can imagine. Sudo nano /etc/xrdp/km-0409.ini Edit these two keys Key64=65515:0 Key115=65512:0 Key64 will set the Windows key to be Alt Key115 will set the Alt key to act as command. If you do not like that then flip the values/keys, but as far as matching the feel of an actual OSX keyboard it will do that. Also Realvnc is interesting, but it lacks multiuser or virtual mode support as Realvnc calls it.
It's useless to me lacking that because I need to remote in without disturbing the console user session. For pure speed though Realvnc is a little better, but artifacts from high compression are very apparent.