/dev/null /var/Linux /

Index:

STEP 1: Creating the necessary (startup)scripts and files

First we need to create 2 files in the DEBIAN directory. These are control and postinst. You can get both sample files from the links. You can use the sample files , just edit the things in BOLD_LETTERS.
A word about the icon field: You can give your package a custom icon (a miniature log of your company?) by creating a 26 x 26 pixel icon and encode it with base64. If you do not know how to do it or want to get it done quickly, you can use, for example this website to do the encoding and just copy the resulting “text” into the control file where it says: ICON_GIBBERISH.

Once the control file is edited and done according to your wishes, copy it into the DEBIAN directory and make sure the name is control, no suffix, no ending, no capitals.
Next we need to create a small postinst script. The task of the postinst script is it to “install” the actual installation script. You could, in theory, run everything from the postinst, BUT I have tried it and it does not work reliably. I do not know why, but this method guarantees that your settings will be installed. The sample postinst should be fine, just change the name of the installation script when you know it. Copy it also into the DEBIAN directory. Next create a script file (in our case we will name it install.sh) in the directory : etc/init.d/ .
NOTE: not in the system /etc/init.d, stay in the working directory where you are and use the etc directory you created earlier. That’s where it should go.
Create it and just add one line, #!/bin/sh and save it. We will edit the file later but for now, just save your postinst file so that the DEBIAN directory is finished.

No Tags

Popularity: 100% [?]

Pages: 1 2 3 4 5 6 7 8