Utility scripts for workspace container management.
Note
You may want the more lightweight solution space-bwrap .
- Clone this repo.
- Set environment variable $SPACE refers to where the
container
in the repo is. - Execute
spacen fedora:39
- spacen: Create container and mount host directories to the container.
$ spacen (image)
- space: Login as user $1 in container.
$ space (user) [command]
- startup: Piece of script that used to prepare the container before starting it, add it to your Display Manager.
$ startup
- shutdown: Piece of script that kill the running container.
$ shutdown
- porter: Expose a port by SSH from container, listen on host. You have to prepare the ssh keypair for user
porter
first.$ porter 2222
- wlx: Start an Xwayland server with 666 mode X11 socket and authority disabled on Wayland display. No container needed.
$ wlx (X display number)
- spacerc: Setup container environment by the information mounted from host.
- setup: Initialize container environment when /etc/setup does not exist.
Example
$ spacen fedora:39 # Create and setup the new container.
$ space # Login as root.
$ space root /bin/firefox # Run FireFox as root.