@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.
Best posts made by bbiw
-
RE: How to get internet in waydroid with ufw enabled?
-
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
-
-
RE: Problems with apt because root partition isn't big enough
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.
Latest posts made by bbiw
-
RE: Problems with apt because root partition isn't big enough
Unfortunately, because there are so many questions i still have and this lack of documentation makes it hard to learn and understand.
-
RE: Problems with apt because root partition isn't big enough
I expressed myself wrongly, sorry. Hardware is working fine, i think. Because of the root partition size limitation i already tried with libertine and self-made chroots or lxc containers and vnc.
That's where the problems begin, e.g. only software rendering through mesa. I've already tried a lot of things, e.g compiling libhybris against the vendor "blobs" or mesa drivers with Adreno support, but nothing works as expected.
It's okay for me, because i'm no expert. Understanding the whole system is far out of my reach, i think.
I read about the Ubuntu Touch architecture and thought about rebuilding this in a chroot, which includes mounting the android rootfs image and every other mounts, but i fear that won't be enough to have real hardware support.
I don't understand how this all works together with QML, Mir and so on. I've searched the internet a lot, but there isn't much information about that. Maybe it's a secret or something, I don't know.
Perhaps it's too hard, otherwise it would already be implemented in libertine or something.
-
RE: Problems with apt because root partition isn't big enough
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.
-
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
-
-
RE: Howto : chroot debian with X support instead libertine ubuntu
@Device You may also have to remove user
_apt
with e.g.:sudo deluser _apt
, otherwise it might not work, too. -
RE: Howto : chroot debian with X support instead libertine ubuntu
@Device Have a look into your host's
/etc/group
. There are groups calledandroid_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 userroot
to grouproot
, too. BUT AT FIRST (!!!) make a backup of/etc/group
withsudo 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 allandroid_
-groups in the chroot and added my user and userroot
to them. This maybe a security risk, i don't really know. -
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. -
How to get internet in waydroid with ufw enabled?
Hello,
i am running Ubuntu Touch Focal OTA-4 and compiled my own kernel to make ufw work properly. But with ufw enabled i have no internet in waydroid. When starting waydroid two new interfaces show up with
ifconfig
,waydroid0
and aveth******
-interface that changes its name every time i start waydroid. What rules do i need to set for ufw or iptables, and do i need to set a route withip route add ***
?I don't want to disable ufw every time i start waydroid. Please help.
Kind regards
bbiw