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

Using apt to install package

Scheduled Pinned Locked Moved Support
9 Posts 5 Posters 2.7k Views 2 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.
    • A Offline
      Aurze
      last edited by 8 Apr 2019, 21:26

      I was trying to use the terminal and installing some aappsuch as zsh and tmux, but I can't find any of those even after making my image writeable. Is there a step I need to to to be able to install app?

      1 Reply Last reply Reply Quote 0
      • J Offline
        jezek
        last edited by jezek 4 Aug 2019, 22:36 8 Apr 2019, 22:35

        I'm running zsh successfully. It was a 4 step installation.

        1. Make root writable. sudo mount -o remount,rw /
        2. Update packages info. sudo apt update
        3. Install zsh. sudo apt install zsh
        4. Make root great read only again. sudo mount -o remount,ro /

        On FP2 I had troubles recently with insufficient space, which I solved using the cache purge (/var/cache/apt) and tune2fs techniques described in https://forums.ubports.com/topic/1676/development-testers-for-anbox/119.

        And I failed to make zsh the default shell environment. Maybe somebody here knows how to.

        jEzEk

        A 2 Replies Last reply 9 Apr 2019, 02:32 Reply Quote 1
        • A Offline
          Aurze @jezek
          last edited by Aurze 4 Sept 2019, 02:32 9 Apr 2019, 02:32

          @jezek omg thanks, I switched from ubuntu to arch 4 years ago and totaly forgot about the need of apt update XD That was the missing step now all is good!

          1 Reply Last reply Reply Quote 2
          • A Offline
            Aurze @jezek
            last edited by 4 Jun 2019, 20:50

            @jezek so after multiple attempt I always get insufisent space despit the apt purge + tunel2fs. Is there any other way to be able to use the space from my phone? ( good lord the UT partitions are complicated)

            J K 2 Replies Last reply 4 Jun 2019, 21:12 Reply Quote 0
            • J Offline
              jezek @Aurze
              last edited by 4 Jun 2019, 21:12

              @Aurze you can mount-bind apt cache archives to some place with more space. See https://forums.ubports.com/topic/2767/ubports-with-a-jbl-go-speaker/7 for more info.

              jEzEk

              1 Reply Last reply Reply Quote 0
              • D Offline
                dobey
                last edited by 5 Jun 2019, 01:35

                The rootfs is readonly for a reason. Phones aren't PCs. If you need to install additional packages via apt/deb, the supported way to do that is within a libertine container.

                A 1 Reply Last reply 6 Jun 2019, 00:37 Reply Quote 1
                • K Online
                  kugiigi @Aurze
                  last edited by 5 Jun 2019, 04:45

                  @Aurze If you really want this, you can resize your rootfs. There's command somewhere here in the forum.
                  But beware that is isn't supported and an OTA update may make your device non-bootable. A reflash will most likely revivie your device though but everything you did in your rootfs will be gone.
                  As Rodney said, UT isn't like a traditional linux PC. It is still a phone 🙂

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    Giiba
                    last edited by 5 Jun 2019, 17:48

                    Isn't resizing the rootfs a bit extreme?

                    I've been experimenting with libraries in /vendor/lib/egl
                    see: link

                    I once used the method to move the apt archive to /userdata and try to install clickable on my phone. The trouble I ran into is the working directory ran out of room to decompress the docker files, and as I'm not sure where that is I never did get farther. Seems like it should work fine if you can move all the necessary folders into the writable partition.

                    Idealy I think support for a casper type file like live usb Ubuntu systems can do would be very powerful. Allowing these sorts of instalations with a fallback to just boot the untouched OS image in case of trouble would be ideal in my mind.

                    Mind you I'm only recently relearning Linux systems, and really don't know what I'm talking about.✌

                    1 Reply Last reply Reply Quote 1
                    • A Offline
                      Aurze @dobey
                      last edited by 6 Jun 2019, 00:37

                      @dobey That does make sense and thanks to put it that way, but I was trying something. That I finally got really close but turn out docker on UT is not happening anytime soon.

                      Your Linux kernel version 3.4.0-cyanogenmod-g2669fa0 is not supported for running docker. Please upgrade your kernel to 3.10.0 or newer.

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