![]() ![]() All package data will be stored in the data directories, in most cases using the directory structure for your application as it should be when installed. Now we need to populate the data directories. Note that many packages don't require any modifications here. Locate each section you intend to add code for and uncomment it before adding your code. Inside this file, the code that should run during installation, uninstallation or upgrade is stored. Next, save the file and open the file named "package_routines" in Notepad. If they are, consider learning more about the QNAP QPKG architecture before you continue. Most of the options in this file are not difficult to understand. Inside this file, make any changes needed for your package such as display name, package version, service executable and/or port, web UI settings etc. On your computer, navigate to where you created the package environment and open the file named "qpkg.cfg" in Notepad. Now that the environment for the package is created, we need to configure it to suit our requirements. These files will need to be modified as required by your package. The files in the package directory control the creation, installation, upgrade and removal of the package. These directories are included in all package architectures. Other directories are for shared content and configuration files. ![]() Some directories are architecture-specific meaning that data in these directories is only included in package files for the matching device architecture. Your package environment contains several directories and files. Now to create an environment for a package named "FirstPackage", issue the following command: Mkdir /share/CACHEDEV1_DATA/Public/Packages & cd /share/CACHEDEV1_DATA/Public/Packages This is done via SSH.Ĭonnect to your server and navigate to a location to store your package files (Preferably a place accessible via SMB). I have created an example package which I am providing here in it's source form to give users a better understanding of how everything works if my guide is too sloppy.įirst, we need to create an environment for our new package. You will additionally need SSH access to the NAS. In order to create a QPKG package, you will need a QNAP NAS with the QNAP Development Kit (QDK) installed from the App Center. With Linux and ZFS, QuTS hero supports advanced data reduction technologies for further driving down costs and increasing reliablility of SSD (all-flash) storage.This guide will help you to create QNAP QPKG packages which can be redistributed and installed on QNAP NAS servers. QuTS hero is the operating system for high-end and enterprise QNAP NAS models. WIth Linux and ext4, QTS enables reliable storage for everyone with versatile value-added features and apps, such as snapshots, Plex media servers, and easy access of your personal cloud. QTS is the operating system for entry- and mid-level QNAP NAS. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |