UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Trying to help to improve Dekko2

    Scheduled Pinned Locked Moved Support
    33 Posts 9 Posters 5.4k Views 5 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • H Offline
        hummlbach @guru
        last edited by hummlbach

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

        G 1 Reply Last reply Reply Quote 0
        • G Offline
          guru @hummlbach
          last edited by guru

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

          1 Reply Last reply Reply Quote 0
          • H Offline
            hummlbach
            last edited by hummlbach

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

            1 Reply Last reply Reply Quote 0
            • H Offline
              hummlbach
              last edited by

              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):

              • get clickable (for details see http://clickable.bhdouglass.com/en/latest/install.html)
              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
              
              1 Reply Last reply Reply Quote 1
              • G Offline
                guru
                last edited by

                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
                
                arubislanderA 1 Reply Last reply Reply Quote 0
                • arubislanderA Online
                  arubislander @guru
                  last edited by

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

                  $ docker ps
                  

                  πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                  Happily running Ubuntu Touch
                  Google Pixel 3a (24.04 preview)
                  JingPad (24.04 preview)
                  PinePhone OG (20.04)
                  Meizu Pro 5 (16.04 DEV)

                  G 1 Reply Last reply Reply Quote 0
                  • G Offline
                    guru @arubislander
                    last edited by guru

                    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.

                    1 Reply Last reply Reply Quote 0
                    • H Offline
                      hummlbach
                      last edited by hummlbach

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

                      G 1 Reply Last reply Reply Quote 0
                      • G Offline
                        guru @hummlbach
                        last edited by guru

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

                        1 Reply Last reply Reply Quote 0
                        • H Offline
                          hummlbach
                          last edited by hummlbach

                          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

                          G 2 Replies Last reply Reply Quote 0
                          • arubislanderA Online
                            arubislander
                            last edited by arubislander

                            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.

                            πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                            Happily running Ubuntu Touch
                            Google Pixel 3a (24.04 preview)
                            JingPad (24.04 preview)
                            PinePhone OG (20.04)
                            Meizu Pro 5 (16.04 DEV)

                            1 Reply Last reply Reply Quote 1
                            • G Offline
                              guru @hummlbach
                              last edited by

                              @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

                              G 1 Reply Last reply Reply Quote 0
                              • G Offline
                                guru @guru
                                last edited by

                                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
                                
                                flohackF 1 Reply Last reply Reply Quote 0
                                • flohackF Offline
                                  flohack @guru
                                  last edited by

                                  @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 πŸ˜‰

                                  My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                                  G 2 Replies Last reply Reply Quote 0
                                  • G Offline
                                    guru @flohack
                                    last edited by

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

                                    flohackF 1 Reply Last reply Reply Quote 0
                                    • flohackF Offline
                                      flohack @guru
                                      last edited by

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

                                      My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                                      1 Reply Last reply Reply Quote 0
                                      • G Offline
                                        guru @flohack
                                        last edited by

                                        @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?

                                        D 1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          doniks @guru
                                          last edited by

                                          @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

                                          G 1 Reply Last reply Reply Quote 0
                                          • G Offline
                                            guru @hummlbach
                                            last edited by

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

                                            H 1 Reply Last reply Reply Quote 1
                                            • H Offline
                                              hummlbach @guru
                                              last edited by

                                              @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... ^^

                                              1 Reply Last reply Reply Quote 0
                                              • First post
                                                Last post