UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. bbiw
    3. Best
    B
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 4
    • Posts 16
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: How to get internet in waydroid with ufw enabled?

      @Inali
      Thank you for the effort, maybe this site helped a little bit. The solution i've found is a simple: sudo ufw allow out on waydroid0 to any. I was (and still am) confused about the 2 devices and how they "work" together. Now that i know which interface to deal with i can, of course, precise this rule, but i have another (Android-) firewall in the waydroid container that can handle this.

      posted in Fairphone 4
      B
      bbiw
    • Problems with apt because root partition isn't big enough

      I saw that many people have this problem.

      Maybe stow (Link 1, Link 2) is something for you. You will also have to mount the root partition rw and install stow, but this and the symlinks it creates won't take much space.

      Try following:

      • mkdir -p ~/Downloads/apt/cache && mkdir -p ~/Downloads/apt/archives && mkdir -p ~/Downloads/apt/lists && mkdir -p ~/Downloads/apt/installed

      • sudo apt --download-only -o Dir::Cache="/home/phablet/Downloads/apt/cache" -o Dir::Cache::archives="/home/phablet/Downloads/apt/archives" -o Dir::State::lists="/home/phablet/Downloads/apt/lists" update

      • sudo apt --download-only -o Dir::Cache="/home/phablet/Downloads/apt/cache" -o Dir::Cache::archives="/home/phablet/Downloads/apt/archives" -o Dir::State::lists="/home/phablet/Downloads/apt/lists" install stow

      • cd ~/Downloads/apt/archives

      • sudo mount -o remount,rw /

      • sudo dpkg -i stow*.deb

      • sudo apt --download-only -o Dir::Cache="/home/phablet/Downloads/apt/cache" -o Dir::Cache::archives="/home/phablet/Downloads/apt/archives" -o Dir::State::lists="/home/phablet/Downloads/apt/lists" clean

      • sudo apt --download-only -o Dir::Cache="/home/phablet/Downloads/apt/cache" -o Dir::Cache::archives="/home/phablet/Downloads/apt/archives" -o Dir::State::lists="/home/phablet/Downloads/apt/lists" autoclean

      • sudo apt --download-only -o Dir::Cache="/home/phablet/Downloads/apt/cache" -o Dir::Cache::archives="/home/phablet/Downloads/apt/archives" -o Dir::State::lists="/home/phablet/Downloads/apt/lists" install glmark2-data=2014.03+git20150611.fa71af2d-0ubuntu7 glmark2-es2-mir

      • for f in `ls -1 *.deb`; do dpkg-deb -x $f /home/phablet/Downloads/apt/installed; done

      • sudo stow --stow --dir=/home/phablet/Downloads/apt --target=/ installed

      • glmark2-es2-mir

      To undo:

      • sudo stow --delete --dir=/home/phablet/Downloads/apt --target=/ installed

      • rm -rf /home/phablet/Downloads/apt/installed/*

      • sudo dpkg -P stow

      • sudo apt --download-only -o Dir::Cache="/home/phablet/Downloads/apt/cache" -o Dir::Cache::archives="/home/phablet/Downloads/apt/archives" -o Dir::State::lists="/home/phablet/Downloads/apt/lists" clean

      • sudo apt --download-only -o Dir::Cache="/home/phablet/Downloads/apt/cache" -o Dir::Cache::archives="/home/phablet/Downloads/apt/archives" -o Dir::State::lists="/home/phablet/Downloads/apt/lists" autoclean

      • sudo mount -o remount,ro /

      Eventually:

      • rm -rf /home/phablet/Downloads/apt

      You can also do things like:

      • apt-cache -o Dir::Cache="/home/phablet/Downloads/apt/cache" -o Dir::Cache::archives="/home/phablet/Downloads/apt/archives" -o Dir::State::lists="/home/phablet/Downloads/apt/lists" madison glmark2-data
      posted in Fairphone 4
      B
      bbiw
    • RE: Problems with apt because root partition isn't big enough

      @AppLee

      You're right. Btw. Fairphone 4 is not really image-based as the root partition is a device-mapper device (dm-0) defined as a part of the super partition. If it would be image based with an ubuntu image living at /userdata, like in the old days or other devices, i don't know, it would be easy to just extend this image. I wonder why someone chooses to install Ubuntu Touch with zero knowledge about Linux or Ubuntu but it's up to them and of course it's better for a developer to take care that they don't brake their system. As superuser you will always have to know what you're doing, SO FIRST THINK, THAN "Return".

      The biggest problem i see with UT are the proprietary drivers. Even with libertine there's no e.g. hardware acceleration. By using stow and the symlinks it creates i can, at least with glmark2-es2-mir, have hardware rendering.

      posted in Fairphone 4
      B
      bbiw