How I re-mastered tinycore.gz with extra apps added.
The instructions for re-mastering that I followed are here
http://forum.tinycorelinux.net/index.php?topic=677.0I did have to make some changes for my own needs as well as fill in some of the blanks. I want to give prop to danielibarnes for the original work he did on the instructions and or course the remaster script it’s self. You will need to go to the post listed in the link above to download the script “remaster.tar.bz2”
NOTE: You must be logged in as a user to see the file, if you logged in as guest if is not there.
I started off by installing TC 2.5 on to a PC and using it to remaster and install the extra apps. It was just easy that way for me. If you need instructions for installing TC on to your hard drive they’re at
http://www.tinycorelinux.com/install.html . After you install TC on your PC follow these steps.
1. Install the following
advcomp.tcz
bash.tcz
compiletc.tcz
coreutils.tcz
mkiosfs-tools.tcz
perl_xml_parser.tcz
perl_xml_simple.tcz
a. I also install xfe.tcz and xfw.tcz. Xfe is a GUI file manager and xfw is text editor.
2. Since I am using TC 2.5 I used the following files in my src/ directory.
2.6.29.1-tinycore.patch.gz
config-2.6.29.1-tinycore
linux-2.6.29.1-patched.tar.bz2
tinycore_2.5.iso
3. After installing the apps in step 1 and downloading the files in step 2, you will need to create the proper directory structure on your tinycore PC. You can use xfe to do this instead of the CLI.
In /home create new a directory (I named mine ‘tcr’) and copy remaster.sh to the new directory ensure it is set to be executable. This can also be done in xfe, right click on the file and click on properties. Here is the structure I created,
/home/tcr – I put remaster.sh here and crated two subdirectories called /src and /newtz
In /home/tcr/src I copied the 4 files from step 2.
In /home/tcr/newtz I created /rootfs/opt/tce
In /home/tcr/newtz/rootfs/opt/tce you will need to copy your extensions here.
The best way I found to get the extensions and its dependencies’ was to use the Appbrowser.
But, instead of installing the apps, you select ‘Download only’. The will place you apps and all
needed dependencies’ in /mnt/sda1/tce/optional. I simply copy everything from the /optional directory to /home/tcr/newtz/rootfs/opt/tce.
In /home/tcr/newtz/opt you can put other files. I put a copy of bootlocal.sh, you can edit this file to autostart apps upon boot. If you are not autostarting anything it can be left out.
4. Now that all of that is done you can create you new tinycore.gz. In a root shell, type ‘/home/tcr/remaster.sh newtz 2.5' the process take about 10 minuets depending on your PC. Once it is done you will have a new directory in /home/tcr/newtz called /out. In here you will find the new ISO file you created and a directory called /files. In /files you will find the files, bzImage, tinycore.gz and syslinux.cfg that the custom iso where made from. From here you can burn the iso file however you want. I just copied the bzImage and tinycore.gz and put them on my PXE tftp server.
If I make any errors in the document please let me know and I will update it.
David Patten