Best way to run X application inside chroot environment
From: Jesús Ángel (jpozdom_at_ribera.tel.uva.es)
Date: 10/30/04
- Previous message: Bill Unruh: "Re: public key access error"
- Next in thread: Tim Haynes: "Re: Best way to run X application inside chroot environment"
- Reply: Tim Haynes: "Re: Best way to run X application inside chroot environment"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 29 Oct 2004 23:15:53 GMT
Hello.
I want to run aMule in a chroot environment.
I have made the chroot and I have copied all the necessary libraries and
config file to the new chroot. To launch aMule in the chroot I use an
small C application in order to: enter the chroot, change the UID.GID to
2000.200 and launch amule.
aMule is a X application, it hasn't got a console interface :-( and I
need a method to allow amule connect to the X server.
Which of these are the better solution?
1. Config the X server to listen to TCP conections at port 6000 and set
the DISPLAY=127.0.0.1 With xauth only the user with the correct magic
cookie could connect to the xserver.
2. Make a hard link inside the chroot to /tmp/.X11-unix/X0
# ln /tmp/.X11-unix/X0 /chroot/.X11-unix/X0
This is not posible if /tmp and /chroot reside in the same partition
3. Mount the tmp partition inside the chroot
(inside the chroot) # mount /dev/hda3 /tmp
Do you know any other solutions?
Thanks
- Previous message: Bill Unruh: "Re: public key access error"
- Next in thread: Tim Haynes: "Re: Best way to run X application inside chroot environment"
- Reply: Tim Haynes: "Re: Best way to run X application inside chroot environment"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|