Skip to content

Utility scripts for workspace container management.

License

Notifications You must be signed in to change notification settings

jellyterra/space

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

space

Utility scripts for workspace container management.

Note

You may want the more lightweight solution space-bwrap .

Usage

  1. Clone this repo.
  2. Set environment variable $SPACE refers to where the container in the repo is.
  3. Execute spacen fedora:39

Host-side scripts

  • 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)

Container-side

  • 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.

About

Utility scripts for workspace container management.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages