Thanks a lot for the remaster.sh script, it works amazingly well.
I don't know if this tip is a clean way of doing things, but to remaster your
current install you can do the following:
To make things easier to follow I will use two terminals, I will call them TTY1 and TTY2. TTY1 will be your current install with your current user and TTY2 will be the remaster.
TTY2
-follow Dave HowTo: how-to-run-remaster-sh-t3295.html
to start the remaster.sh script. Then run:
apt-get update
-while in remaster.sh (do not exit/Ctrl-D) switch to your other terminalapt-get upgrade
TTY1
-run the command:
where your-user is your current install user name and my-remaster is the folder you created fordpkg -l | awk '/ii/{print $2}' > /home/your-user/my-remaster/remaster/new-squashfs/tmp/packages.txt
your remaster. This will save all packages currently installed in a text file inside the remaster chroot in the /tmp folder.
TTY1
-copy all your sources list to your remaster by running:
TTY2sudo cp /etc/apt/sources.list.d/*.* /home/your-user/my-remaster/remaster/new-squashfs/etc/apt/sources.list.d
-back inside remaster run:
apt-get update
apt-get upgrade
wait because it can take a while.while read pkgname; do apt-get install -y"$pkgname"; done < /tmp/packages.txt
-while in remaster.sh again (do not exit/Ctrl-D) switch again to your other terminalapt-get clean
TTY1
-copy your home folder files as default settings for your remaster when you add a new user:
you might want to remove some files from there, like .bash_history or any other logs / error logs.cp -a /home/your-user/. /home/your-user/my-remaster/remaster/new-squashfs/etc/skel
If you don't have many files there just copy manually all the configuration files you would like to keep.
(.xinitrc / .xinitrc-custom / etc..)
-You might want to keep some specific program configuration files located in /etc/ for example, do not
forget to copy these inside /home/your-user/my-remaster/remaster/new-squashfs/etc
or any other location your configuration file is and should be inside remaster.
TTY2
-back inside remaster press Ctrl-D and follow the procedure to finish the ISO.
Here is my current install, with the remastered.iso running in virtualbox:
As you can see it's an exact copy of my current install running in the background. If you forgot anything
and would like to add it, just go back to your my-remaster folder, and run remaster.sh -c as root. Make your
modifications and then press Ctrl-D and create your ISO again.
I don't really know if it's the correct way to do things, if there is a cleaner way or better commands to
run to copy your current install into the remaster I would be happy to know how.
I have some programs compiled from source (herbstluftwm, xombrero, udevil) and I just ran make install to have them
installed correctly in the remaster. So far it seems to work great, I will test it on my netbook soon.