![]() Here is a video demonstration how the script works: Ubuntu: CRON GUI Launcher Demo - SSH. In the menu bar, go to XQuartz -> Preferences, which will pop up a window X11 Preferences. ![]() The script, all necessary explanations, and couple of example of usage are available within my GitHub's repository. XQuartz comes with its own Mac-like window manager called quartz-wm. Quartz is often synonymous with Core Graphics. Quartz is the set of technologies that are in the OSX Core Graphics that deal with 2d from wikipedia. ![]() It is based on the X11 sources from X.org the changes were originally done by Apple. Initially I needed to solve similar task for crontab, this is the reason of the original name of the script cron-gui-launcher, but it has a wider field of usage. XQuartz is a set of libraries to allow X11 applications to be compiled and run on OSX. Time ago, I've developed a bash script that is able to detect the active desktop session and export all its variables from within the current session (ssh|cron|tty|etc.). In order to run a GUI application on the remote display from within ssh session, you need to export the values $DISPLAY and $XAUTHORIT (and in some cases some other variables) of the desktop session where you want to run the application - normally this is the active session, where the user is logged-in and the session is displayed on the physical screen. Something more when you are using sudo some-gui-app it breaks the ownership of the files in your $HOME directory, which could cause some issues - the fix is: sudo chown -R $USER:USER $HOME, and next time use sudo -i. When you are using sudo or su these commands just break the normal work of the X-forwarding, thus the GUI applications are running on the remote display. The XQuartz project was originally based on the version of X11 included in Mac OS X v10.5. XQuartz is an X11 distribution for OS 10.5 and later which contains newer features than does the stock X11 on 10.5-10.7. Apple created the XQuartz project as a community effort to further develop and support X11 on Mac. The intention of the -X option of the ssh client is to forward a remote display to a local one thus you can run remote resources and view them locally. X11 is no longer included with Mac, but X11 server and client libraries are available from the XQuartz project. I've read the three posts here, and I think there is a little misunderstanding of the -X option.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |