Hits :
10229
TinyCore Linux – Remaster
Version : 4.5.5
Preparation
a. Download
TinyCore[link1] Linux
wget -c http://distro.ibiblio.org/tinycorelinux/4.x/x86/release/TinyCore-current.iso
b. Create local folders & mount TinyCore
mkdir -pv tinymount tinylocal tinycde
mount -o loop TinyCore-current.iso tinymount
c. Copy & extract Core cpio image
cp tinymount/boot/core.gz tinylocal/
cd tinylocal
gunzip core.gz
cpio -i < core
rm core
d. At this point you can chroot the new environment for testing it:
Be aware that you need to mount sys,dev & proc with bind option to work properly.
Install packages
a. Download your packages (and their dependencies) from:
http://distro.ibiblio.org/tinycorelinux/4.x/x86/tcz/
cd ../tinycde
wget packages ...
b. Install packages to your tiny core environment
you 'll need
squashfs-tools[link2]
cd ../tinylocal
for i in `ls -1 ../tinycde/*tcz` ; do unsquashfs -f -d . $i ; done
for i in `ls -1 ../tinymount/cde/optional/*tcz` ; do unsquashfs -f -d . $i ; done
Customize your tinycore
Use chroot and customize your new tinycore environment.
If you want your tc user to auto-whatever you need-start something (like X):
a.
(after clear command)
b.
for i in `ls -1 /usr/local/tce.installed`; do sudo /usr/local/tce.installed/$i ; done
Archive your tinycore environment
first exit from chroot env
You 'll need
AdvanceCOMP[link3]
a.
find | cpio -o -H newc > ../core
cd ..
gzip core
advdef -z4 core.gz
PXE BOOT
If you need to pxe boot your new tinycore, you are done !
below is the configuration to default (pxelinux.cfg/default):
LABEL TinyCoreLinux
MENU LABEL TinyCoreLinux
LINUX vmlinuz
INITRD core.gz
The vmlinuz image is here: tinymount/boot/vmlinuz
ISO
If you need an iso
a. Create the file structure
cd ../
mkdir -pv tinyiso
cd tinyiso
cp -rav ../tinymount/boot/* .
mv ../core.gz core.gz
b. Edit isolinux.cfg
# vi isolinux/isolinux.cfg
DEFAULT menu.c32
PROMPT 0
TIMEOUT 10
MENU TITLE TinyCore
MENU MARGIN 6
MENU VSHIFT 1
MENU ROWS 13
LABEL TinyCore
MENU DEFAULT
MENU LABEL TinyCore
KERNEL /vmlinuz
APPEND initrd=/core.gz
c. Create the iso file:
mkisofs -l -J -R -V TinyCore -no-emul-boot -boot-load-size 4 -boot-info-table -b isolinux/isolinux.bin -c isolinux/boot.cat -o ../my.iso .
[link2] http://squashfs.sourceforge.net/
[link3] http://advancemame.sourceforge.net/