Create .deb files with Windows PC tutorial

There are 2 replies in this Thread which was already clicked 1,387 times. The last Post () by KiddaC.

  • Debian on Windows

    A couple of people have asked me this. So I thought I would write a little guide of how I create .deb files from my Windows PC files. (or from an extracted .ipk)
    As I already have this setup and don't want to delete it for the sake of this guide. These instructions might need tweaking later.


    Enable / Install WSL2

    Windows 11
    Already pre-installed.

    Windows 10.
    Start Menu, search "Turn Windows features on or off"
    Make sure "Virtual Machine Platform" and "Windows Subsytem for Linux" are checked.

    pasted-from-clipboard.png

    Restart your PC if you have had to turn any of them on.

    ----------------------------------------------------------------------------
    or


    Start menu, search "Windows PowerShell"
    Right click and run as administrator

    enter these commands

    wsl --install

    restart your PC

    -----------------------------------------------------------------------------

    Install debian GUI package from Microsoft store

    Open Microsoft Store
    Search for debian
    Install

    pasted-from-clipboard.png
    -----------------------------------------------------------------------------

    Download a linux distrubution

    Start menu, search "Windows PowerShell"

    Right click and run as administrator

    enter these commands

    wsl --update
    wsl --install -d Debian

    After a few minutes
    enter a username
    enter a password


    pasted-from-clipboard.png

    You now have a linux operating system on windows.

    ------------------------------------------------------------------------

    To view file explorer in debian app

    explorer.exe .

    other quick commands

    ls - list files
    cd [folder]
    cd .. - parent directory
    cd / root directory

    ------------------------------------------------------------------------

    In your home folder. In my case home/kiddac

    Create a new folder for your plugin. i.e xstreamity


    Inside that home/kiddac/xstreamity folder create a DEBIAN folder
    Your control file goes inside that DEBIAN folder

    pasted-from-clipboard.png


    Your root files also go inside this plugin folder. i.e usr, etc

    The folders must be the same as your enigma2 box.


    i.e

    /usr/lib/enigma2/python/Plugins/Extensions/XStreamity

    ---------------------------------------------------------------------------------

    So if I was to now create a new .deb file.

    I would copy my contol file into DEBIAN folder. Overriding the existing file.

    I would delete any existing folders for usr, etc and then copy a fresh copy of the usr, etc folders into my plugin folder.

    pasted-from-clipboard.png



    Then back in your Debian console

    make sure you are in the correct home folder


    cd /

    cd home
    cd kiddac (for example)

    # dpkg-deb -b <dir/DEBIAN> <new-package.deb>
    dpkg-deb -b /home/kiddac/xstreamity enigma2-plugin-extensions-xtreamity_3.93_20230126_all.deb

    pasted-from-clipboard.png

    this will then produce the .deb file in my home folder.

    pasted-from-clipboard.png

    ------------------------------------------------------------

    And the next time you use Debian app, all your previous commands will be saved. So you can just up cursor, to quickly load a previous command.
    In which case, I just change the version number each time

    ** A person who feels appreciated will always do more than what is expected **

  • And I just went through the motions of this again and ran into a little error.

    Sometimes it does this and I don't know why.

    I cannot delete any files in my home folder. i.e home/kiddac


    If this happens to you. Just use another folder. i.e root/Debian/tmp


    or this command might work to give ownership

    sudo chown $USER:$USER ./xstreamity
    xstreamity being the folder in your home folder you want to own.

    ** A person who feels appreciated will always do more than what is expected **

KiddaC Skins and Plugins

KiddaC Enigma2 Picons, Plugins and Skins, includes slyk-1-HD, v-skin-HD, slyk-q-HD, slyk onyx skins, Bouquet Maker Xtream, E2Piconizer, IPTV Bouquet Maker, Jedi Maker Xtream, Jedi EPG Xtream, ScreenNames, Visual Weather and X Class, X-Streamity - Xtream Codes IPTV Player.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!