Note: Almost all content here will eventually be revised and merged into the live-manual. Please do not add new content to the wiki, but contribute to the manual directly. |
During Build Example
Overview
The below information came from mail list information and was suggested to be in wiki by Marco Ghirlanda
- Start the build in a way you can chroot into the image (--hook bash)
- Inside chroot: export DISPLAY=localhost:1
- On your building machine (outside chroot): Xnest -ac :1
- Install software (excluding Kernel?), change gnome/kde themes, change relevant /etc/ files and logout to continue the build.
Netboot Example
Prepare the Host
You will need to disable X.Org's XAuthority security protocols on your own GUI session in order to allow programs not owned by you to connect to your display. Open an X terminal in your own GUI session as your regular non-root user:
$ xhost +
The above code disables these lockouts.
Prepare the Chroot
The chroot needs to know about a few things in order to be able to act as though its actually running:
- Networking (including loopback)
- DNS
- The X11 Socket
- The locale
- The X11 display number
Assuming that your client filesystem is in /srv/debian-live/, as the root user run these commands from an X terminal:
# cd /srv/debian-live/binary/chroot/filesystem.dir/ # mount -t proc none proc # mount -o bind /tmp tmp # cp /etc/resolv.conf etc/resolv.conf # chroot ./ # source etc/profile # export DISPLAY=:0 # export LC_ALL=C
The last line suppresses warning messages about an unknown locale.
Invoke the Program
You can now start any application as though you are the root user inside the chroot. For instance, if you could:
# aptitude install kiosktool # kiosktool
Kiosktool will allow you to establish a default KDE layout for the Casper user. (Note that the casper user doesn't exist until the Live session is booted. Therefore, you will need to manually edit /etc/kde-user-profile to associate your KDE profile with the casper user.)
