Welcome
Welcome to refracta

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!

for refracta ascii: xephyr?

Refracta Development, Scripts, etc.

Re: for refracta ascii: xephyr?

Postby fsmithred » 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: Select all
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
User avatar
fsmithred
 
Posts: 2101
Joined: Wed Mar 09, 2011 9:13 pm

Previous

Return to Discuss

Who is online

Users browsing this forum: No registered users and 0 guests

cron
suspicion-preferred