Skip to content

Instantly share code, notes, and snippets.

@SaicharanKandukuri
Last active April 25, 2023 12:39
Show Gist options
  • Save SaicharanKandukuri/20e66e816a8b2c3ea9d3f7657f09f807 to your computer and use it in GitHub Desktop.
Save SaicharanKandukuri/20e66e816a8b2c3ea9d3f7657f09f807 to your computer and use it in GitHub Desktop.
way to run dbus inside termux | A way to run Gnome in termux with root
# https://elixir.bootlin.com/linux/v4.3/ident/CAP_LAST_CAP
# first creating a file with 0 inside file
echo 0 > ~/cap_last_cap
# Next step is to bind the file cap_last_cap to /proc/sys/kernel/cap_last_cap
#for proot-distro with ubuntu-18.04 the command looks like
proot-distro login ubuntu-18.04 --bind cap_last_cap:/proc/sys/kernel/cap_last_cap
# for toolloa-termux with bionic
toolloa login bionic --bind cap_last_cap:/proc/sys/kernel/cap_last_cap
# Remember dbus dosen't respond to all calls because of android dbus security policy
@SaicharanKandukuri
Copy link
Author

Copy link

ghost commented Apr 30, 2021

Some Tip: You could also bind /dev/null instead as it still works so you don't need to make a file

proot-distro login <some-distro> --bind /dev/null:/proc/sys/kernel/cap_last_cap

@SaicharanKandukuri
Copy link
Author

Screenshot_20210429-202902_NetHunter KeX

  • Gnome working well
    This tiny lines turned gears for new things in termux 👍

@SaicharanKandukuri
Copy link
Author

Some Tip: You could also bind /dev/null instead as it still works so you don't need to make a file

proot-distro login <some-distro> --bind /dev/null:/proc/sys/kernel/cap_last_cap

Ya that works too...
Thanks for the tip @wmcb-tech

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment