![]() I'm launching my X11 forwarding with the command of "ssh -X" and once it connects, it launches XQuartz on my MacBook and I can usually see the remote GUI I'm coding. virtual keyboard not allowed, single mode, not docked Providers: img_tex, img_dds, img_pygame, img_gif (img_pil, img_ffpyplayer ignored) Record log in /home/bundito/.kivy/logs/kivy_17-11-18_25.txt Ssh:// -u /home/bundito/PycharmProjects/joe/hello-kivy.py this gives it lots of access to the hardware, which is helpful for my use case (ws281x, gpio, spi, etc.) it does seem like this is something upstream from pygame, but it works in 1.9.6 and not 2.0.0. But when I try to connect over X11 forwarding, I run into trouble.īy setting the DISPLAY environment variable to :0.0, I can get as far as this when launched from the MacBook: additional details: I am using my pygame application as an autostarting daemon, so it runs as root. Later, when you have it working, tighten up the security on the xhost command by being a bit more specific with IP addresses. and in the Terminal that appears, type: xhost +. Now right-click the XQuartz icon in your Dock and click: Applications -> Terminal. I have it installed successfully on both machines and can run the 'Hello World' program directly on both ("python3 hello-kivy.py"). So, on your Mac, in Terminal, start XQuartz: X &. ![]() Nothing was satisfying me, so I figured I'd try Kivy. I've set up and run a lot of SSH-based X11 forwarding in the past few months (editing with P圜harm, if it matters) while doing some GUI coding. The 'remote' machine is running Linux Mint 18.2/Ubuntu 16.04. But VNC will survive a network disconnect for your GUI work.I've got Kivy installed on my two machines. When the display mode is set, the event queue will start receiving mouse events. These functions can also alter the system cursor for the mouse. NOTE: XQuartz will NOT survive any network loss and neither tmux, nor GNU screen will not help XQuartz. The mouse functions can be used to get the current state of the mouse device. Is all I have to do to re-attach to my existing tmux session. I live in ssh sessions, and tmux running on my remote Linux systems, survives network disconnects, sleeping my Mac, rebooting my Mac, etc… As long as my Linux system stays up, my work is waiting for me to reconnect And tmux (or GNU screen) running on the Linux system, to preserve any sessions you started via ssh. from your local terminal type: ssh -X email protected where username and remotehost are your username and the remote host name respectively. Ive been operating the Pi via SSH recently, and Id like to know if its possible to run the pygame examples (or any graphics examples in Python) on a screen. VNC, as mentioned above, because it will be there when you get back. When you login to the remote machine using ssh, use the -X option to enable X11 forwarding. The above suggest values have worked very well with fellow co-workers, where we use ssh a lot.Īnother thing to consider if loosing network connections is a frequent issue. ![]() “Return”, then ~ (tilda) “Period” is how you disconnect a stuck ssh session. The count of 2 can go bigger, but too big, and your Mac will refuse to give up, even if the Linux system has been rebooted. I would not go lower than 60 seconds, and making it higher than 300, just works against your better interests. Im launching my X11 forwarding with the command of ssh -X and once it connects, it launches XQuartz on my MacBook and I can usually see the remote GUI Im. At University and on my home computer, I use a program called PuTTY to SSH connect to. You can play with the values, but 300 seconds is 5 minutes. ![]() To keep your ssh sessions alive, I suggest you add the following to your Mac $HOME/.ssh/config file: I saw logging info in terminal and camera feed on Braincraft display. Then I decided to try it out from Windows Remote Desktop (after installing xrdp on RPi) and it worked great. The VNC server side will survive network disconnects, and be waiting for you to reconnect. I saw logging info in the SSH console and the camera feed and recognized objects on the Braincraftt HAT display. This assumes you started your remote TigerVNC server using port 5901 (often using the VNC server start up shorthand of :1) Purchase SSH With Cycles Feature Requests replit-cycles. Ssh -L 22591:localhost:5901 the Mac connect using TigerVNC -> localhost:22591 My pygame repl says no available video surface Bug Reports replit-editor. Consider using the “TigerVNC” client on the Mac, and the “TigerVNC” server on your Linux system. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |