Refracta Development, Scripts, etc.
Post a reply

Re: for refracta ascii: xephyr?

Mon Aug 08, 2016 1:16 pm

Based on this set of instructions, systemd-nspawn looks a lot like running a separate OS in a chroot:
http://forums.debian.net/viewtopic.php?f=16&t=129390

On the subject of running a chrooted system, you can use xephyr to run a chrooted xsession. I don't know how that compares to systemd-nspawn in terms of security. I tried running the chrooted xephyr in firejail, but that failed. I didn't pursue it.

chroot_dir holds the alternate installation. That system must have xserver-xephyr installed along with whatever else you want to run.
Code:
mount --bind /sys ${chroot_dir}/sys
mount --bind /proc ${chroot_dir}/proc
mount --bind /dev ${chroot_dir}/dev
mount --bind /dev/pts ${chroot_dir}/dev/pts

chroot "$chroot_dir"
su "$user"
Xephyr :1 -screen 1024x768 -resizeable & sleep 2 ; jwm -display :1
Post a reply