How to run X inside of chrooted evironment?

1 réponse [Dernière contribution]
ssorbom
Hors ligne
A rejoint: 10/30/2011

Hi,
I am preparing a live cd build of trisquel for myself and I would like to know how to get X running inside of the chrooted environment so I can customize the gui a bit. the instructions I followed to get my base system are here:
https://help.ubuntu.com/community/LiveCDCustomizationFromScratch

I start X from inside chroot like this:
startx -- :1

The error I reccieve when I try to start X is as follows:
xauth: error in locking authority file /var/run/gdm/auth-for-shawn-pFnyCb/database
xauth: error in locking authority file /var/run/gdm/auth-for-shawn-pFnyCb/database

_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running

Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't already running

Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
Please also check the log file at "/var/log/Xorg.1.log" for additional information.

ddxSigGiveUp: Closing log
No protocol specified
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
xauth: error in locking authority file /var/run/gdm/auth-for-[my host system's username]-pFnyCb/database

Any ideas?
Thanks in advance.

ssorbom
Hors ligne
A rejoint: 10/30/2011

UPDATE:
I haven't solved the problem, but a good workaround seems to be to copy your filesystem from the host machine rather than debootstrapping everything from scratch (it's a lot faster too)
for those interested, instructions are here:
https://help.ubuntu.com/community/MakeALiveCD/DVD/BootableFlashFromHarddiskInstall
Happy Hacking.