Create .deb files with Windows PC tutorial

There are 4 replies in this Thread which was already clicked 4,061 times. The last Post () by Lululla.

  • 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.



    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


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

    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




    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




    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.



    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-xstreamity_3.93_20230126_all.deb



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



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

    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 **

  • Hello KiddaC


    my Ubuntu release not start..
    wsl not start or not execute command schell





    and


    Code
    PS C:\Windows\system32> wsl --update
    Impossibile accedere al file.
    PS C:\Windows\system32> wsl --install -d Debian
    Impossibile accedere al file.
    PS C:\Windows\system32> wsl --list
    Impossibile accedere al file.
    
    .


    and


    Code
    PS C:\Windows\system32> Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
    Path          :
    Online        : True
    RestartNeeded : False



    Ubuntu opens but closes right away on startup

    Debiam "same"


    any ideas ?


    :) thank's

  • ok.. all well now:


    i removed all package :

    -virtual system and base linux app from controlpanel from win

    -removed and cleaned all temp files

    -removed app Ubuntu/Debian

    -reboot


    -reinstall (enable app from control panel): virtual system and baselin app.

    -reboot


    install debian or ubuntu version from store..


    fixed.. :)

Enhance your Enigma2 with KiddaC's creations

Download HD skins, IPTV players (X-Streamity, EStalker), bouquet tools, picon managers, and essential plugins for a complete setup. KiddaC's Enigma2 resources: skins (slyk, v-skin, onyx), IPTV plugins (Xtreamity, Jedi Maker), and utilities (E2Piconizer, ScreenNames) for customization and control.