BoxXy (sensible a la caja) es una herramienta para boxear mal por ver mal aplicaciones de Linux y obligarlos a poner sus archivos y directorios en el lugar correcto, ¡sin enlaces simbólicos!
BoxXy es parte del servidor de discordia de Amyware.
Si te gusta lo que hago, considera apoyarme en Patreon:
¡Solo Linux! BoxXy usa espacios de nombres de Linux para su funcionalidad.
Por ejemplo, considere TMUX. Quiere poner su configuración en ~/.tmux.conf
. Con Boxxy, puede poner su configuración en ~/.config/tmux/tmux.conf
en su lugar:
# ~/.config/boxxy/boxxy.yaml
rules :
- name : " redirect tmux config from ~/.tmux.conf to ~/.config/tmux/tmux.conf "
target : " ~/.tmux.conf "
rewrite : " ~/.config/tmux/tmux.conf "
mode : " file "
Estoy en un descanso para mantener proyectos de código abierto debido a razones de salud. PRS seguirá siendo aceptado y aún se analizarán los problemas, pero no hay promesas sobre cuándo esto sucederá.
Recientemente tuve que usar el AWS CLI. Quiere ahorrar datos en ~/.aws
, pero no quiero que acaba mi $HOME
como lo desee. Boxxy me permite forzarlo a poner sus datos en un lugar agradable y adecuado.
0.5.0
: Boxxy puede escanear su Homedir para sugerir automáticamente las reglas para usted!0.6.0
: BoxXy puede usar los archivos Project-Local boxxy.yaml
y puede cargar archivos .env
para usted!0.6.1
: las reglas de boxxy pueden inyectar env vars:0.7.2
: Boxxy puede desembolsar el proceso de Boxxed en el fondo con la bandera --daemon
.0.8.0
: Boxxy puede pasar reglas en la línea de comando con --rule
y deshabilitar la carga de archivos de configuración con --no-config
.0.8.2
: Explique cómo ejecutar AppImages correctamente:git:(mistress) | ▶ cat ~ /.config/boxxy/boxxy.yaml
rules:
- name: " Store AWS CLI config in ~/.config/aws "
target: " ~/.aws "
rewrite: " ~/.config/aws "
git:(mistress) | ▶ boxxy aws configure
INFO boxxy > loaded 1 rules
INFO boxxy::enclosure > applying rule ' Store AWS CLI config in ~/.config/aws '
INFO boxxy::enclosure > redirect: ~ /.aws - > ~ /.config/aws
INFO boxxy::enclosure > boxed " aws " ♥
AWS Access Key ID [ **************** d]: a
AWS Secret Access Key [ **************** c]: b
Default region name [b]: c
Default output format [a]: d
git:(mistress) | ▶ ls ~ /.aws
git:(mistress) | ▶ ls ~ /.config/aws
config credentials
git:(mistress) | ▶ cat ~ /.config/aws/config
[default]
region = c
output = d
git:(mistress) | ▶
alias aws="boxxy aws"
(repita para otras herramientas) BoxXy requiere que newuidmap
funcione, que no se incluye de forma predeterminada en todas las distribuciones. Para instalar:
Alpino:
$ apk add shadow-uidmap
Debian / Ubuntu:
$ apt install uidmap
Rhel / Fedora:
$ yum install shadow-utils
El archivo de configuración de Boxxy vive en ~/.config/boxxy/boxxy.yaml
. Si no existe ninguno, se creará uno vacío para usted.
rules :
# The name of the rule. User-friendly name for your reference
- name : " redirect aws-cli from ~/.aws to ~/.config/aws "
# The target of the rule, ie the file/directory that will be shadowed by the
# rewrite.
target : " ~/.aws "
# The rewrite of the rule, ie the file/directory that will be used instead of
# the target.
rewrite : " ~/.config/aws "
- name : " use different k8s configs when in ~/Projects/my-cool-startup "
target : " ~/.kube/config "
rewrite : " ~/Projects/my-cool-startup/.kube/config "
# The context for the rule. Any paths listed in the context are paths where
# this rule will apply. If no context is specified, the rule applies
# globally.
context :
- " ~/Projects/my-cool-startup "
# The mode of this rule, either `directory` or `file`. `directory` is the
# default. Must be specified for the correct behaviour when the target is a
# file. Required because the target file/directory may not exist yet.
mode : " file "
# The list of commands that this rule applies to. If no commands are
# specified, the rule applies to all programs run with boxxy.
only :
- " kubectl "
rules :
- name : " any valid string " # required
target : " path " # required
rewrite : " path " # required
context : # optional
- " path "
- " path "
mode : " directory | file " # optional
only : # optional
- " binary name "
- " binary name "
env : # optional
KEY : " value "
pre-commit install
cargo build
cargo run -- ls -lah ~/.config
/
TO TMP Directorio/
Rofixtures/helloworld-appimage-x86_84.AppImage
: https://github.com/clonedrepos/hello-world-appimage