Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:extension_for_settings [2011/04/23 15:56] – [Make an Extension for Settings] Guy | wiki:extension_for_settings [2014/01/31 22:25] (current) – [Examples] tinypoodle | ||
---|---|---|---|
Line 2: | Line 2: | ||
If you want to save application settings, or large files, you can make one or more extensions to save them. | If you want to save application settings, or large files, you can make one or more extensions to save them. | ||
- | |||
- | If you have Tiny Core installed on a hard drive, using persistent home and opt, and make extensions for settings, you don't need to use backup. | ||
- | |||
- | If you have Tiny Core installed on a USB drive, using backup, and make extensions for settings and large files, you can have less in backup, which reduces the time taken to start up and shut down the computer, and lengthens the life of the USB drive. | ||
==== Install squashfs-tools-4.0 ==== | ==== Install squashfs-tools-4.0 ==== | ||
Line 15: | Line 11: | ||
Begin by creating directories. Open the Terminal and type: | Begin by creating directories. Open the Terminal and type: | ||
- | mkdir -p / | + | < |
Copy and paste files you want to save to ext1. You must include the directory structure, as it is in the root directory. | Copy and paste files you want to save to ext1. You must include the directory structure, as it is in the root directory. | ||
Line 21: | Line 17: | ||
To make a extension called “myext1.tcz, | To make a extension called “myext1.tcz, | ||
- | < | + | < |
cd / | cd / | ||
mksquashfs ext1/ myext1.tcz</ | mksquashfs ext1/ myext1.tcz</ | ||
- | |||
- | For an actual example of making an extension for settings, see [[Printer Setup Using Cups]]. | ||
==== Copy to TCE Folder ==== | ==== Copy to TCE Folder ==== | ||
Line 34: | Line 28: | ||
Keep a copy of your new extension. If you update extensions, it may be deleted. | Keep a copy of your new extension. If you update extensions, it may be deleted. | ||
+ | |||
+ | ==== Examples ==== | ||
+ | |||
+ | This example will add a shell script to your home directory called " | ||
+ | |||
+ | < | ||
+ | |||
+ | Now copy your script " | ||
+ | |||
+ | If you also want to install an application you could make a " | ||
+ | |||
+ | Now, to make the extension called “extpack.tcz” type: | ||
+ | |||
+ | < | ||
+ | cd /home/tc | ||
+ | mksquashfs extpack/ extpack.tcz</ | ||
+ | |||
+ | Then copy extpack.tcz into your " | ||
+ | |||
+ | Since " | ||
+ | |||
+ | For another actual example of making an extension for settings, see [[Printer Setup Using Cups]]. | ||
+ | |||
+ | ===Unpack extensions=== | ||
+ | |||
+ | If you want to update e.g. the extpack.tcz extension in the previous example and do not have the original files available you can unpack the extension using this command: | ||
+ | |||
+ | < | ||
+ | |||
+ | The documentation for unsquashfs can be found here: | ||
+ | [[http:// | ||
==== Load Order ==== | ==== Load Order ==== | ||
Line 42: | Line 67: | ||
If you make an extension for settings, and it does not work, try renaming it to something starting with a small letter, near the end of the alphabet. For example, you may name it zmyext.tcz. | If you make an extension for settings, and it does not work, try renaming it to something starting with a small letter, near the end of the alphabet. For example, you may name it zmyext.tcz. | ||
+ | |||
+ | ==== Alternate Method: Save in /opt ==== | ||
+ | |||
+ | Another option, instead of making new extensions, is to save files in /opt. An example of this is discussed in [[passwd|Tinycore Passwords]]. | ||