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

    Howto : chroot debian with X support instead libertine ubuntu

    Scheduled Pinned Locked Moved Support
    howtochrootlibertine alter
    30 Posts 10 Posters 10.2k Views 4 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.
      • B Offline
        Bouleetbil @moodroid
        last edited by

        @moodroid Hello, I've updated install.sh for create /home/phablet/.config/systemd/user/ if necessary. For me it was created by amazfish
        https://gitlab.com/bouleetbil/ubports-scripts/-/commit/3cc0f9bd7d615e9746e46daad419ee09f6567f19

        FP5 24.04 RC daily use with pinetime
        Pixel 3a 24.04-2
        Redmi 9S 24.04-2
        PinePhonePro Mobian/Postmarketos

        B 1 Reply Last reply Reply Quote 0
        • B Offline
          Bouleetbil @Bouleetbil
          last edited by

          BTW I've updated https://gitlab.com/bouleetbil/ubports-scripts/ and test it from scratch with my new redmi 9

          FP5 24.04 RC daily use with pinetime
          Pixel 3a 24.04-2
          Redmi 9S 24.04-2
          PinePhonePro Mobian/Postmarketos

          R 1 Reply Last reply Reply Quote 0
          • R Offline
            Rinkeby @Bouleetbil
            last edited by

            @Bouleetbil

            going to check it out. Even though Snap is looking promising, I will still do it because of your dedication.

            Just a little question. Having no password for sudo su I wonder the security risk of it?

            1 Reply Last reply Reply Quote 0
            • C Offline
              chris @Bouleetbil
              last edited by

              @Bouleetbil
              I've seen that with the fakeroot command it is possible to get a root shell for libertine:
              https://forums.ubports.com/topic/8797/libertine-focal-don-t-find-group-id/3?_=1703843158870

              1 Reply Last reply Reply Quote 0
              • D Offline
                Device
                last edited by

                Hey thanks for sharing this!

                I was able to create the environment however apt doesn't work inside the chroot due to a failure of name resolution. I double checked, and my /etc/resolv.conf was successfully copied into the chroot.

                Not sure if this is a dns issue, since pinging an IP address gives me a 'permission denied' message, even as root.

                I'm using a fairphone 4, might this be some quirk of my device? Or is there some way to give the chroot environment network access?

                B B 2 Replies Last reply Reply Quote 0
                • B Offline
                  Bouleetbil @Device
                  last edited by

                  @Device hello,
                  I've tested with my volla phone devel version and I've the same problem
                  With my pixel3a RC that works.
                  For now I don't know why. Weird I will check

                  FP5 24.04 RC daily use with pinetime
                  Pixel 3a 24.04-2
                  Redmi 9S 24.04-2
                  PinePhonePro Mobian/Postmarketos

                  B 1 Reply Last reply Reply Quote 0
                  • B Offline
                    buma @Device
                    last edited by

                    @Device I've the same problem

                    1 Reply Last reply Reply Quote 0
                    • B Offline
                      bbiw
                      last edited by bbiw

                      @Device Have a look into your host's /etc/group. There are groups called android_net, android_net2 and android_net3. Create these in your chroot with e.g.: sudo groupadd -g 3003 android_net and add yourself to these groups with e.g.: sudo adduser phablet android_net. If this doesn't work add user root to group root, too. BUT AT FIRST (!!!) make a backup of /etc/group with sudo cp -avi /etc/group /etc/group.backup just in case something goes wrong.

                      P.S.: Maybe one of these android_net-groups is enough, i'm no expert. Try for yourself. THIS IS JUST A HINT TO PUT YOU IN THE RIGHT DIRECTION. As for me i've created all android_-groups in the chroot and added my user and user root to them. This maybe a security risk, i don't really know.

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        bearbobs @Bouleetbil
                        last edited by

                        @Bouleetbil same error on Fairphone 5, did you manage to fix it?

                        1 Reply Last reply Reply Quote 0
                        • B Offline
                          bbiw
                          last edited by

                          @Device You may also have to remove user _apt with e.g.: sudo deluser _apt, otherwise it might not work, too.

                          1 Reply Last reply Reply Quote 0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          • First post
                            Last post