Tiny Core Linux
Tiny Core Extensions => TCE Talk => Topic started by: Terminator3000 on October 06, 2010, 10:52:16 AM
-
Hi as a follow up to my post on Busybox here http://forum.tinycorelinux.net/index.php?topic=7405.0 Ive got a related query.
I installed Webmin 1.52,a server admin interface, which went fine except that I forgot to include all the new files and folders in /opt/.filetool.lst and they promptly disappeared on reboot!
So,I'm doing them again but am wondering if I could create a tcz extension of this whereby the problem wouldn't arise.
Webmin is available in tar.gz format but this contains a sh setup script which performs all the necessary actions.
I currently have little experience of C coding/compiling being only a student of Java and PHP so any tips on how to do this are welcome Thanks.
-
To create an extension does not require C knowledge per se. In general this Wiki article (http://wiki.tinycorelinux.com/Creating+Extensions) should be a good starting place.
I'd suggest you ensure to use the '/usr/local' area of the filesystem (e.g. that any executables or scripts end up in '/usr/local/bin'). Having a shell script for installation indicates to me that no compilation was involved, so that should lessen your need to know C.
-
The format it is in (sh setup script) installs easily with the defaults already set,so I just would need to find out in the wiki how this can be changed to tcz format ie is it OK to put an install script in tcz format?
-
Re-running this install script every time you install your private extension might be technically feasible, but rather quirky (if not inefficient).
In the end you'll have to figure out what this install script does, i.e. which additional files it stores in which directory. Probably along the lines of what section 4 of the Wiki (http://wiki.tinycorelinux.com/Creating+Extensions#When_DESTDIR_Fails) suggests: the file names would have to be put into a list (similar to what the 'find' command achieves in the Wiki), and then a temporary tar-archive would have to be created that contains the files in their hopefully "TC-compatible" setup. This tar-archive finally needs to be converted into an SquashFS file which is your target extension. I personally would prefer to skip over the tar-archive step, and go straight into setting up the target directory structure, but that depends on how well one knows certain commands.
Please make a really serious effort in reading the Wiki and working out what the suggested commands are doing (e.g. checking out man-pages, as can be found on http://linux.die.net ). I for one are not planning to serve you every single command on a "silver platter".
-
I'll have a read through and see.Obviously dont want it re-installing on every reboot,the install script tells me what the default directories are so hopefully I might be able to figure it out,Thanks.
-
Also Webmin is written entirely in Perl 5 I just discovered.
-
Webmin will be a very useful addition to the TC repository, I will keep a look out for it. Good luck with your efforts.