topic title: remastering antiX
Posts: 28
mrt-prodz
Joined: 10 Jan 2013
#1
Hello, after a couple attempt I finally managed to remaster my antiX install.
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
apt-get upgrade
-while in remaster.sh (do not exit/Ctrl-D) switch to your other terminal

TTY1
-run the command:
dpkg -l | awk '/ii/{print $2}' > /home/your-user/my-remaster/remaster/new-squashfs/tmp/packages.txt
where your-user is your current install user name and my-remaster is the folder you created for
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:
sudo cp /etc/apt/sources.list.d/*.* /home/your-user/my-remaster/remaster/new-squashfs/etc/apt/sources.list.d
TTY2
-back inside remaster run:
apt-get update
apt-get upgrade
while read pkgname; do apt-get install -y"$pkgname"; done < /tmp/packages.txt
wait because it can take a while.
apt-get clean
-while in remaster.sh again (do not exit/Ctrl-D) switch again to your other terminal

TTY1
-copy your home folder files as default settings for your remaster when you add a new user:
cp -a /home/your-user/. /home/your-user/my-remaster/remaster/new-squashfs/etc/skel
you might want to remove some files from there, like .bash_history or any other logs / error logs.
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:
Image

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.
Last edited by mrt-prodz on 15 Apr 2013, 18:58, edited 1 time in total.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#2
There is another way to do it, using the antix-snapshot application.
This makes an exact copy of your running installed antiX and creates a live iso (with persistence).
Posts: 28
mrt-prodz
Joined: 10 Jan 2013
#3
Thanks anticapitalista, I kind of feel like an idiot because I did saw antixsnapshot
but totally forgot about it when I wanted to remaster.

I will try it as well __{{emoticon}}__