How to add/replace files at root.tgz package on Coyote 2.x

What do you will need ?

- A WORKING Coyote Linux 2.x floppy or HardDisk
- 1.5Mb free in your RAM disk (use command df to see your free space.)
- patch script (Download it here) - OPTIONAL
- a blank DOS 1.44 formated floppy OR a FTP client instaled in your Coyote Box

How to:

Step 1 - Copying your new files to coyote machine.

Mode 1 - Using the MS-DOS floppy:

1 - At any computer take the blank floppy and copy your new files to it
2 - Boot the Coyote machine, login as root, and Quit from the menu [Q]
3 - Insert the floppy and mount it: mount -t msdos /dev/fd0 /mnt [Enter]
4 - Copy the new files from flopy to their new place at coyote root. i.e.: cp /mnt/my_file_1 /usr/bin/my_file_1 [Enter]
5 - Repeat step 4 for each file you want to copy
6 - Unmount the floppy: umount /mnt [Enter]
7 - You can remove the floppy now

Mode 2 - Using FTP

1 - Make sure your coyote box has the ftp client installed and working.
2 - In any machine upload your files to any ftp server at internet or at your lan where you have read/write privileges
3 - Boot the Coyote machine, login as root, and Quit from the menu [Q]
4 - Change to directory where you want your new files will be: i.e.: cd /usr/bin [Enter]
5 - Open the ftp client: : ftp my_ftp_url_or_ip [Enter]
6 - Type your username and password
7 - Download your new files: get my_file_1 [Enter]
8 - Repeat step 7 for each file you want to download
9 - Exit ftp client: quit [Enter]

Step 2 - Rebuilding root.tgz package with your new files.

Mode 1 - Using the patch script

1 - Download the patch script and copy it to the /root directory using any Step1 method
2 - Turn it executable: chmod 755 /root/patch
2 - Make sure your Coyote disk is on drive.
3 - run patch script. i.e.: /root/patch /usr/bin/my_file_1 /bin/my_file_2 ....

Mode 2 - Without the patch script

1 - Make sure your Coyote disk is on drive.
2 - Create a temporary directory: mkdir /work [Enter]
3 - Change to it: cd /work [Enter]
4 - Mount the coyote diskt: mount -t msdos /dev/boot /mnt [Enter]
5 - Unpack the root.tgz file: tar -xvzf /mnt/root.tgz [Enter]
6 - Copy the new files to the unpacked root directory. i.e.: cp /usr/bin/my_file_1 /work/usr/bin/my_file_1 [Enter]
7 - Repeat step 6 for each file you want to copy
8 - Pack the root.tgz file: tar -cvzf /mnt/root.tgz * [Enter]
9 - Unmount the coyote disk: umount /mnt [Enter]
10 - Reboot

Credits, Licenses, Sources and Documentation

Coyote Linux - Vortech Consulting - http://www.coyotelinux.com
Original patch script by Marcio Lopes

If this page helps you do what you what, let me know, send me an e-mail:
Claudio Roberto Cussuol