Q: How can I create an installation package for Nylux devices?
A: There are severals ways to create a compressed installation package (.tgz file) for Nylux devices, including:
- creation in a Windows system using Winzip/WinRar or other similar software (is possible to create tgz files but usually isn't possible to define the correct folders structure or manage files permissions)
- creation in a Linux system using one of the utility for compressed file management (i.e. one of the utility already integrated in the operative system)
- creation directly on a Nylux device: is possible to use the tar command via SSH client (i.e. putty or other similar software) from a remote pc or to execute the command directly on a Nylux's console
We think that the last option is the best one, so we explain it better in the following lines:
- first you need to copy on the mobile device all the files to include in the package, including configuration files, jar, links, etc. (possibly scoring the used files list)
- after provided all the needed files to the mobile device and had a stable configuration for the system or the software to package, you need to open a console and use the command "tar -czf outPackage.tgz fileFullPath1 fileFullPath2 fileFullPath3 fileFullPathN" (without quotes), where outPackage.tgz is the path/name's package you want to create, followed by the full paths/names for the files to include in the package (separated by a space character). While defining that files, you can also use jolly chracters (i.e. * character).
Please note that the tgz file generated in this way will contains all the specified files, will define correctly the folders structure and will record files permissions
as set before the package creation.
Example: if you want to create a package called test.tgz, containing the following files:
/usr/my-app/nylux.jar
/usr/my-app/app.jar
/usr/my-app/start
/etc/init.d/rcS
/etc/inittab
you must use the following command:
tar -czf /test.tgz /usr/my-app/nylux.jar /usr/my-app/app.jar /usr/my-app/start /etc/init.d/rcS /etc/inittab
