Re: Possible Issue with X11 on Amazon EC2 Instance
Re: Possible Issue with X11 on Amazon EC2 Instance
- Subject: Re: Possible Issue with X11 on Amazon EC2 Instance
- From: Jeremy Huddleston Sequoia <email@hidden>
- Date: Thu, 05 Jul 2012 14:46:41 -0700
/tmp/.X*-lock are lock files for the $DISPLAY unix domain sockets.
You probably have a bunch of stale lock files and sockets in /tmp.
Regarding the permissions issue, that is likely because you are executing Xvfb directly and not using startx. startx executes privileged_startx which takes care of setting the permissions on that path correctly:
if [ -x /opt/X11/lib/X11/xinit/privileged_startx ] ; then
# Don't push this into the background becasue it can cause
# a race to create /tmp/.X11-unix
/opt/X11/lib/X11/xinit/privileged_startx
fi
If you want to execute Xvfb directly rather than with startx, I suggest you run privileged_startx manually. Just once per boot is sufficient.
--Jeremy
On Jul 5, 2012, at 14:20, Kevin Hu <email@hidden> wrote:
> Dear All,
>
> I wish to use Ghost.py, a headless webkit using PyQt, on an Amazon EC2
> instance with a centOS distros. I have installed X11, Xvzb, Qt 4.6, and
> PyQt4 via yum. However, when I try initiating an instance of Ghost, I
> receive the error:
> -------------------------------
> Fatal server error:
> Server is already active for display 99
> If this server is no longer running, remove /tmp/.X99-lock
> and start again.
>
> loaded the Generic plugin
> can't make "generic.orientation" because no QAccelerometer sensors exist
> -------------------------------
> When I kill process Xvfb :99, and try again, I receive the error:
>
> ghost: cannot connect to X server :99
> _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
> [echonest@ip-10-4-85-75 ~]$ expected keysym, got XF86TouchpadOn: line 120
> of inet
> expected keysym, got XF86TouchpadOff: line 121 of inet
> -------------------------------
>
> Afterwards, iPython exits with a "segmentation error."
>
> Would you say this is an issue with X11? How would you recommend I proceed?
>
> Your help is greatly appreciated,
>
> Kevin
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> X11-users mailing list (email@hidden)
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden