Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

My x11 is malfunctioning.

Suddenly, in my computer my x11 pops up the message


An error occurred while starting the X11 server: "Cannot establish any listening sockets - Make sure an X server isn't already running"


Everytime I try to quit it, it would pop up again every 3 seconds.


What should I do?

MacBook Air, Mac OS X (10.7.4)

Posted on May 30, 2012 1:14 AM

Reply
6 replies

May 30, 2012 1:59 AM in response to chltjdtn

You can force quit it in Activity Monitor. If that doesn't work, note down X11's PID number in the left-most column of Activity monitor, then go to Terminal and type


sudo kill 1234


Where you replace '1234' with the PID number you noted down. Press 'return' on your keyboard.


You will need to type your admin password which will not echo to the screen, so type carefully.


If all else fails, restart your computer.


To get X11 working, download and use the latest build from here:


http://xquartz.macosforge.org/trac/wiki

Mar 9, 2013 2:16 PM in response to chltjdtn

Had this same problem. XQuartz would not start working after a complete reinstall of X11, or reboot, repair permissions etc. Ended up realizing it was a User specific problem, so I removed the X11 .plist files from ~/Users/yourusername/Library/Preferences. I don't remember the exact names of the two .plist files I removed, but they were org.x11.pllist or something along those lines. Once I removed these two files and rebooted XQuartz the skies parted and X11 worked. Hope this helps!

May 8, 2014 12:04 PM in response to chltjdtn

I had the same issue where X11/XQuartz would not start because /tmp/.{X11,ICE,font}-unix were not created properly as an unprivileged user (me). They were removed (along with everything else) from /tmp on startup.

I resolved the issue by putting this line at the bottom of my /etc/rc.local file (runs as root on bootup):

/opt/X11/lib/X11/xinit/privileged_startx.d/10-tmpdirs

thus the needed dirs are created at bootup by root and all is well.

My x11 is malfunctioning.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.