Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: Nthdive on May 03, 2014, 10:29:25 AM

Title: Self Executable Extensions Installer & Backup
Post by: Nthdive on May 03, 2014, 10:29:25 AM
Hey everyone,

We're using TinyCoreLinux ( 9MB - Core Current Version ) for some experiments on VirtualBox. What we need to achieve is that when we just power on the TinyCoreLinux instance, after booting up, it runs a startup shell script which will install some necessary extensions such as "Openssh" and "Gcc-compiler", and then ping back at our server address.

We're done with that shell script contents which will do all this stuff but we're stucked at a point, when we just Poweroff the machine, everything vanish. We tried backup method but it didn't work out for us.

So, if you have idea of following stuff, do reply back:

1. Load shell script at boot time.
2. Save that shell script as integral part of our TinyCoreLinux instance.

Thank you!
Title: Re: Self Executable Extensions Installer & Backup
Post by: gerald_clark on May 03, 2014, 10:32:51 AM
Please read the corebook.
You need persistent tce storage.
Your packages should be installed to load onboot.
You can add your ping routine to bootlocal.sh
Title: Re: Self Executable Extensions Installer & Backup
Post by: Nthdive on May 03, 2014, 10:36:55 AM
@gerald_clark, some tutorial links to support your solution, will be appreciated much :)
Title: Re: Self Executable Extensions Installer & Backup
Post by: Rich on May 03, 2014, 10:38:50 AM
Hi Nthdive
Try this:
http://tinycorelinux.net/book.html
Title: Re: Self Executable Extensions Installer & Backup
Post by: gerald_clark on May 03, 2014, 10:47:19 AM
The book link is at the top of the home page.
Also you should spend some time in the wiki.
Title: Re: Self Executable Extensions Installer & Backup
Post by: Nthdive on May 04, 2014, 10:42:51 AM
After reading book, I came up with these, but it didn't helped me much. Any idea where I am wrong?

Snapshots (Before Reboot and After Reboot) : ----https://drive.google.com/folderview?id=0B1mJmUpFchikdHNJelZMRGpBdk0&usp=sharing----
Title: Re: Self Executable Extensions Installer & Backup
Post by: gerald_clark on May 04, 2014, 05:41:40 PM
You need to boot from hd/USB drive with a persistent tce directory.
If tce is on a USB drive don't forget the waitusb boot option.
Title: Re: Self Executable Extensions Installer & Backup
Post by: Nthdive on May 05, 2014, 03:52:33 PM
Solved by using VMDK Image file from: www.gns3.net/appliances/
Title: Re: Self Executable Extensions Installer & Backup
Post by: tinypoodle on May 05, 2014, 07:50:53 PM
After reading book, I came up with these, but it didn't helped me much. Any idea where I am wrong?

Snapshots (Before Reboot and After Reboot) : ----https://drive.google.com/folderview?id=0B1mJmUpFchikdHNJelZMRGpBdk0&usp=sharing----


Respective subjects should be posted in "Tiny Core on Virtual Machines" subforum.