Quote Originally Posted by MrAhmad
every time I custom the KDE,Mozilla Bookmark , Openoffice, and other and then I copy them to

/etc/skel/ (and even to /usr/share/knoppix/profile) but It still create a new home for knoppix with the default settings (not with /etc/skel)

I searched the forum but I can't find any good solution
Any help pleaaaaseee
First things first:

1) when you boot, are the files in /etc/skel at least?

Anyhow, I've had a similar problem and resolved the following way (supposing, you're already CHROOTed!):

1) copy all the files you wish to be in /home/USER to /opt/
2) Create a scripts directory inside /opt
Code:
mkdir /opt/startup_scripts
3) create the init script to copy the files
Code:
touch /etc/init.d/copy_home_files
4) copy_home_files content
Code:
#!/bin/sh
     case "$1" in
          start)
                 echo -n "Starting COPY FILES TO HOME DIRECTORY"
                        start-stop-daemon --start --quiet --exec /opt/startup_scripts/startup.sh \
                                                 -- $PARAMS
                                                        echo "."
                                                               ;;
                                                                                         *)
                                                                                        echo "Usage: /etc/init.d/copy_home_files " \
                                                                                              " {start}" >&2
                                                                                             exit 1
                                                                                            ;;
                                                                                         esac
                                                                                      
                                                                                      exit 0
5) Now lets make the actual script
Code:
touch /opt/startup_scripts/startup.sh
6) startup.sh content
Code:
#!/bin/sh
cp -R /opt/xml /home/knoppix
chown -R knoppix:knoppix /home/knoppix/xml
cp -R /opt/.mozilla /home/knoppix
chown -R knoppix:knoppix /home/knoppix/.mozilla
cp -R /opt/jakarta-tomcat-4.1.27 /home/knoppix
chown -R knoppix:knoppix /home/knoppix/jakarta-tomcat-4.1.27
mkdir /home/knoppix/.icewm
echo "#!/bin/bash
mozilla
" > /home/knoppix/.icewm/startup
chown knoppix:knoppix /home/knoppix/.icewm/startup
chmod 755 /home/knoppix/.icewm/startup
you get the picture... (this is my actual script!)

7) and finally, we add the startup script to the boot process by
Code:
update-rc copy_home_files defaults > /dev/null
THERE!!! Now when your system (on the cd) boots, your files should be copied from /opt/WHATEVER_FILES to /home/USER/...

Good luck!

enrolado