![]() Otherwise, the X11 communication won't have anywhere to go and you won't see any graphics. Of course, the XQuartz app must be running whenever you try to log in. Or you can just use the -Y parameter of ssh. login if you use tcsh) to set DISPLAY based on the IP address you logged in from. ![]() If you log in to the pi from multiple computers, you can add code to your. With this done, X11 apps on the pi will send their output to the Mac. For example, if the Mac's IP address is 192.168.1.10 and the X server is display 0, you would export DISPLAY=192.168.1.10:0 In there, set the DISPLAY environment variable to point to your Mac's X server. Finally, issue an appropriate xhost command to allow your pi to connect ( xhost + will work fine if you trust everybody on your LAN - probably OK at home but bad for any kind of public network).Īt this point, you can ssh to the pi as you always do, without any special kind of X11 forwarding. Starting in OSX 10. Then, in the X11 Preferences, on the Security tab, check the "Allow connections from network clients" box. Through OSX 10.8, Apple provided a means to install X11.app, but XQuartz has always been more up to date and hence is recommended for use. In my case (macOS Sierra 10.12.6), I downloaded and installed XQuartz (version 2.7.11 (xorg-server 1.18.4)). Then, on the Pi, set your DISPLAY environment variable to point to the Mac's server. Instead, run an X11 server on your Mac, configured to allow remote connections. If you want to display X11 apps on your Mac desktop, you don't run startx from the pi - that will attempt to start it on the pi's screen. Install Cygwin and click Next to navigate. My OSX has just been upgraded to El Capitan, but I did most of this originally on Yosemite. Cygwin is a collection of Open Source tools which provide similar functionality to Linux distros. My motivation for doing this was to get it working WITHOUT any additional software, and it is working well for me, even though most of my time is spent in a terminal.Īnother option that also works well is to install xrdp on the Pi, then use the Microsoft Remote Desktop app from the App Store (I know, it sounds strange) but this also works really well, but it does mean installing extra software. I need to use "cmd+opt+A" to get back to the OSX desktop, and I'm still working on how to get a more "manageable" window, but it most certainly works ! Once at the prompt on the Pi, as user pi, I just enter lxsession (and again, some messages go past) then the big Raspberry appears in the middle of my screen and I have the Raspberry Pi's desktop. I have Quartz and thus X11 installed on the iMac because I need this for the Dia program.įrom the iMac terminal, I ssh to the Pi with the -X option (so ssh -X entering the password, I get several messages including one about auth key data, but I just ignore these for the moment. My Mac is an iMac 27in, and I'm using a Pi model 2 with the latest Raspbian image. I had the same problem, and have a solution working now, but it needs a little refining (I can't get it to run in anything other than full screen).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |