Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jellyterra/space

Utility scripts for workspace container management.
https://github.com/jellyterra/space

Last synced: 1 day ago
JSON representation

Utility scripts for workspace container management.

Awesome Lists containing this project

README

        

# space
Utility scripts for workspace container management.

> [!NOTE]
> You may want the more lightweight solution [space-bwrap](https://github.com/jellyterra/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
```shell
$ spacen fedora:39 # Create and setup the new container.
$ space # Login as root.
$ space root /bin/firefox # Run FireFox as root.
```