launching resolve chroot experiments
in the the chroot we have the same user as on the host
with the same id so there are no permission issue
you can chroot into ubuntu with sudo
Code:
sudo chroot /compat/ubuntu /bin/bash
and you will be logged in as root
you can then switch to your user like this
thats work perfectly
and picks up the settings from the zshenv and pulseaudio config
which let you launch resolve and route the audio from the chroot to the host
i also copied the pulse cookie from the host to the chroot which only needs to be done once
Code:
cp ~/.config/pulse/cookie /compat/ubuntu/home/djwilcox/.config/pulse/cookie
you can also chroot without sudo
by setting the following in your /etc/sysctl.conf
Code:
security.bsd.unprivileged_chroot=1
you can then enter the chroot without sudo using the -n option
Code:
chroot -n /compat/ubuntu /bin/bash
but the problem is that actually logs in as the user on the host
so it use the config from the host which isnt what we want
because the chroot needs a different setting for the display
and also has a different pulseaudio config
the chroot command also has a -g and -n option
but they are related to the user and group on the host and not in the chroot
so cant be used to switch to the user in the chroot
Code:
-g group Run the command with the permissions of the
specified group.
-u user Run the command as the user.
the reason this is important is because its to do with how you launch resolve
at present these are the steps i use to lauch resolve
start pulseaudio on the freebsd host
create the xwayland window for resolve
host grab to grab mouse input from the host 1920x1080 fullscreen
Code:
Xwayland -host-grab -fullscreen -geometry 1920x1080 :01
chroot into the with sudo
we could use doas on freebsd and create a rule that will let us run doas chroot and not be prompted for a password
/usr/local/etc/doas.conf
Code:
permit nopass :djwilcox cmd chroot
so we can enter the chroot without being prompted for our password
Code:
doas chroot /compat/ubuntu /bin/bash
enter the chroot
Code:
sudo chroot /compat/ubuntu /bin/bash
then switch to my user
start pulseaudio
and finally launch resolve
you can also use doas on ubuntu
just thought id mention the current way im launching resolve