|
|
A workaround for X11 sharing by multiple users
BTW, when several Users start X11 (several times) on one Box, they actually don't share X. Quite the contrary!
A workaround for X11 sharing by multiple users
Thanks for all the information! I was hoping that the more experienced could tell me if I was going in the wrong direction.
A workaround for X11 sharing by multiple users
2) Thanks for open-x11 - its the solution we were looking for. I did not know about this command. Works perfectly so my workaround is...It's all in the FAQ: http://developer.apple.com/qa/qa2001/qa1232.html ...unnecessary...At least you learned a lot about shell scripting and racing conditions ;) ...(just have to set up a series of aliases since the lab is used to just typing the program name - was hoping for something more seamless).Ah! The joys of user education ;) Well, there is another hack that could help you with this. It's slightly ugly, but anyways: If you start X11.app from the Terminal (or from a script, which you can use as a Startup Item) like so: # /Applications/Utilities/X11.app/Contents/MacOS/X11 :$UIDIt will use the user's (unique!) ID as display number. You then can set $DISPLAY to $UID in .tcshrc, .bashrc or even in ~/.MacOSX/environment.plist (which is the more general approach). With this method the users can never get in each other's way and don't have to use open-x11. You only have to make sure that they don't start X11 on their own, or that they only start it via your script. (With this method you can start several instances of X11.app at the same time, so don't be confused, if you see more then one X icon in the Dock!)
A workaround for X11 sharing by multiple users
Forgot the clarification:
A workaround for X11 sharing by multiple users
You asked "Is there a way to get the automatic $DISPLAY setting in Xterm to work in Terminal.app?"
A workaround for X11 sharing by multiple users
Thank you for the additional advice and very helpful information! Much appreciated.
A workaround for X11 sharing by multiple users
Interesting. I also prefer the Terminal, but don't always start X before starting the Terminal. It also seems like when I put the machine to sleep, X gets confused and I have to restart it when I wake the machine up (but I don't want to close and then reposition all my terminals!). I worked around the problem of having the Terminal start first by adding |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|