Deb pack + Software icon + Add to system Menu + example on load

Source: Internet
Author: User

This article describes the content and experiment for a moment:

1. Make the Deb package. 2. In order to make the software icon. 3. Add the software to the system from the Start menu,4. Install and uninstall the crafted Deb package.


1. Making the Deb Package

There are several possible ways to make a deb package, and this article uses the Dh_make tool.

Can participate in the article: Http://www.linuxidc.com/Linux/2011-02/32714.htm.

The article gives the process of making, but there is no detailed details.

This article produced a deb specification of the source code package, here no longer repeat the production process, be able to download the source Package view (http://download.csdn.net/detail/lewsn2008/8042085). The main is to generate Debian folders. Change the relevant files in the folder: Control,rules,postinst,postrm and so on.


2. Create a software icon for the package

Prepare the Software icon file Hello.png (usr/share/hello/hello.png) in the source code package. Copy the icon file to the system's/usr/share/pixmaps folder in the Postinst script.


3. Add the software to the Start menu of the system

prepare the shortcut file in the source package hello.desktop (Usr/share/hello/hello.desktop ). For the. Desktop file rules, you can refer to article http://www.linuxidc.com/Linux/2011-08/40397.htm and Copy the icon file to the system in the Postinst script/usr/share/ The Applications folder.


4. Installing and uninstalling the crafted Deb package

1 in the source code package Hello-1.0.zip extracted, the hello-1.0 folder is executed Dpkg-buildpackage will generate Hello_1.0_i386.deb in the previous folder, using Dpkg-i hello_1.0 _i386.deb installation to the system. Using Dpkg-l | grep Hello is able to see if it is installed.

At the same time. Be able to see if there is a Hello folder in the/usr/share/. The Hello folder has executable program Hello and so on.

Other than that. Because the Postinst script links the executable program/usr/share/hello/hello to/usr/bin/hello, the folder is in path. So being able to perform the which Hello test can execute the Hello command.



Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.

Deb pack + Software icon + Add to system Menu + example on load

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.