Trying to help to improve Dekko2



  • As a developer and following the call in the last Q&A for helping community hands on Dekko2, I went to www.dekkoproject.org but there is only outdated content.

    Where I have to go? I need the current sources, build instructions and some guidance to get started.



  • @guru here i am 🙂 lets start working. do you have telegram, matrix or IRC?
    dekkoproject.org and the linked gitlab project are still the right places, lets update and clean up the issue tracker first maybe.



  • @hummlbach I have email at guru@unixarea.de and I do use Telegram, not that frecuent and I do not follow the UBport Super chattings.



  • Can you please join https://t.me/DekkoApp and maybe also the german ubports devs group for easier communication?



  • So anyone who wants to help out with Dekko 2s development, please join the telegram group if possible 🙂 (or if you're interested in helping and you prefer to use matrix, don't hesitate to tell it, and we will install a bridge).
    Short howto on how to build Dekko 2 to get started (assuming you're using ubuntu or debian):

    sudo add-apt-repository ppa:bhdouglass/clickable
    sudo apt-get update
    sudo apt-get install clickable
    
    • you also need this:
    sudo apt-get install qemu-user-static
    
    • get the code and build it:
    git clone https://gitlab.com/dekkoproject/dekko
    cd dekko
    git submodule update --init --recursive upstream/
    clickable
    


  • I followed the instruction, which ended up in:

    guru@m4400:~/Dekko2/dekko$ clickable
    Using docker container "clickable/ubuntu-sdk:15.04-armhf"
    Checking dependencies
    Asking for root to start docker
    Asking for root to start docker
    Command '[b'docker', b'ps']' returned non-zero exit status 1.
    guru@m4400:~/Dekko2/dekko$ uname -a
    Linux m4400 4.13.0-46-generic #51-Ubuntu SMP Tue Jun 12 12:36:29 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
    


  • @guru Can you start docker without sudo?
    What does the following command give as a result?

    $ docker ps
    


  • guru@m4400:~$ docker ps
    Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.26/containers/json: dial unix /var/run/docker.sock: connect: permission denied
    

    I'm now updating the box from 17.10 to 18.04 because the folks in tg group UBports German Devs advised this. Maybe some installation guide should clearly say, what the environment has to be.



  • The version of ubuntu doesn't matter so much. The version of clickable must not be so old as it has been in your case. That should be automatically the case for all people following the instructions above and not having had clickable installed before. It will most likely be also the case for people who have been actively working with clickable lately. All other people can update clickable in the same way they would update any other software/package by using apt:

    sudo apt-get update
    sudo apt-get dist-upgrade
    

    given they once have installed it using apt (and not via pip).



  • @hummlbach The version of Ubuntu does matter, because my version 17.10 have had clickable as 4.4.0 and was not able to update to a more recent version. Only an update of Ubuntu to 18.04 solved the probl and gave clickable as 5.9. The minimum version of this clickable should be documented.



  • EDIT: the following is not correct, I failed using launchpad 😕 I'm not able to downvote my own post, can someone else do it for me? 😜
    You must have had other problems... its all in the clickable ppa, also for 17.10: https://launchpad.net/~bhdouglass/+archive/ubuntu/clickable



  • Does it work now? If you still get the original error you may need to add your user to the docker group.

    $ sudo usermod -aG docker $USER
    

    Then logout and login again.



  • @hummlbach said in Trying to help to improve Dekko2:

    You must have had other problems... its all in the clickable ppa, also for 17.10: https://launchpad.net/~bhdouglass/+archive/ubuntu/clickable

    I can't say much about this. I installed this 17.10 some weeks ago to flash my E4.5 and never used it for other things. Today I applied the steps you said last night and it ended up with clickable as 4.4, unwilling to update because 17.10 is EOL.

    Anyway, at the end of the day it packed a dekko click pkg of version 0.1.8



  • And now? Perhaps I can install and run this click pkg on my test device. How is the workflow? I modify some source file and run 'clickable' again to get a new pkg which includes my change? Forgive my stupides, but I'm used to a world of

    ./configure
    make
    make install
    

  • Infrastructure

    @guru Yeah you need to get out of your comfort zone when developing for a phone: 1) you need cross-compile for armhf, 2) you need to compile under the context of the xenial version which is used on the phone. Both you cannot achieve with simple Makefiles. I mean in theory you can but number 2) will be hard.
    Clickable was made to run everything in a container but sometimes it needs a bit of extra love 😉



  • @Flohack Sorry, I dont get it. Where should I now run the result of the proc clickable and how?


  • Infrastructure

    @guru clickable will install & run the click on your phone when its connected.



  • @Flohack said in Trying to help to improve Dekko2:

    @guru Yeah you need to get out of your comfort zone when developing for a phone: 1) you need cross-compile for armhf, 2) you need to compile under the context of the xenial version which is used on the phone. ...

    How does clickable know while building what is the target device and what is installed on it? Should the device already be connected before start of clickable?



  • @guru said in Trying to help to improve Dekko2:

    How does clickable know while building what is the target device and what is installed on it? Should the device already be connected before start of clickable?

    It defaults to building for an armhf device. It assumes UT is installed and will proceed to install the app. Yes, it's easiest if you connect the device via usb first. Make sure you can adb into the device, that's the same way how clickable will communicate with the device



  • @hummlbach said in Trying to help to improve Dekko2:

    You must have had other problems... its all in the clickable ppa, also for 17.10: https://launchpad.net/~bhdouglass/+archive/ubuntu/clickable

    From the dialog in the tg group:

    Jonatan Hatakeyama Zeidleradmin
    Du meintest, du nutzt Ubuntu 17.10, oder? Das ist schon lange EoL und unser clickable PPA stellt sicher keine Updates mehr dafür zur Verfügung.
    

    (it's in German but the message is clear: 17.10 is EOL and there are no updates for clickable anymore). Just to have this clear for others.



  • @guru ah you and Jonny have been right! I looked it up yesterday and failed on using launchpad. You can select your ubuntu version there using a drop down menu. But it doesn't filter the package list right away. You have to press the filter button next to the drop down... So okay, don't use any ubuntu version that is EOL... ^^


Log in to reply