Debian-Project - Live GNU/Linux
On this page I collect various stuff about Live GNU/Linux alias the free Knoppix. Some may be outdated in the future.
Source of ~knoppix
I was trying to put an additional program into a special edition of Live GNU/Linux that required one/two files in a special directory of the users home directory. Hence, those files had to be copied into the users home directory as well.
The problem is that the home directory of the user knoppix is
dynamically created (or read from a different medium, see the
scan= cheat code). The source of the home directory is
not that easy to find, though.
Simply placing the new directory in /etc/skel didn't
work out. I guess that simply adding it to
/usr/share/knoppix/profile would also not have the
expected results. Clarification from the author (Klaus): Not all
files are copied in order to save precious ramdisk space but only
certain parts on demand.
There's another script which is run when a new X session is
started, /etc/X11/Xsession.d/45xsession. It contains
several code snippets that check whether certain directories exist in
the users home directory and copies them when they don't.
Since directories and files are copied only on demand, this script
has to be extended or a regular knoppix.sh script needs
to be used. The latter is documented on the Internet extensively.
However, this would limit the freedom for the user to provide their
own script. Hence, I'd prefer to edit the script inside the
compressed image if I need to remaster the compressed image
anyway.