Score:1

Run GUI apps inside fakechroot debootstrap

cn flag

I'm following the tutorial on https://github.com/dex4er/fakechroot.

I'm trying to install and run some apps keeping them isolated on an unprivileged user, without root. They are proprietary software distributed as .deb, so normally I'd need to go root to install them, but I don't wanna install them on the general system.

The easiest solution would be install them on a VM, but I'm trying to do it first with fakechroot to save RAM.

CLI apps work fine, as hello on the tutorial. But GUI apps fail with

$ echo $DISPLAY
:1
$ fakechroot fakeroot chroot /home/restricted/chroot firefox
Authorization required, but no authorization protocol specified

Error: cannot open display: :1

I am using Ubuntu 22.04. How can I authorize it to use the display?

David avatar
cn flag
What version of Ubuntu are you using?
cn flag
hello, version 22.04
Score:1
cn flag

You can add parameter --display=:0.0

cn flag
Thanks. My mistake, I didn't verify. Indeed, $DISPLAY is :1 I'll fix the question.
Score:0
cn flag

I solved it. I wasn't an issue with fakechroot debootstrap, but with the restricted account. Even normal apps didn't execute.

I had to run xhost + local: on my main account under wich GUI is running, then it worked.

We just must make sure to know that there's some security risks when running a GUI app from another account.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.