Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/jellyterra/space
- Owner: jellyterra
- License: mpl-2.0
- Created: 2023-12-10T09:16:49.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-06T04:57:14.000Z (8 months ago)
- Last Synced: 2024-03-29T20:26:02.490Z (8 months ago)
- Language: Shell
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.
```