diff --git a/README.md b/README.md index d411f68..c7a178b 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,18 @@ A rememberable one would be to keep `Ctrl-Alt-T` as the default non-toolbox term The U stands for Ubuntu :smile: Over time you may find yourself needing the host terminal less and less, expect to be very dependent on it if you're new. -NOTE: Graphical versions of applications WORK in these containers, so if there's an app you need in Ubuntu that is not in Fedora or something then apt install it and fire it up! +NOTE: Graphical versions of applications WORK in these containers, so if there's +an app you need in Ubuntu that is not in Fedora or something then apt install it +and fire it up! + +### Distrobox, alternative to toolbx (Optional) + +If maintaining your images is too annoying I've included [distrobox](https://github.com/89luca89/distrobox). +This project, inspired by toolbx takes an alternative approach by using unmodified distro cloud images. + +Both projects use podman so it's a matter of taste, the base tech is the same. + +Run `bits/distrobox` to install it. ## VSCode and other developer notes diff --git a/bits/README.md b/bits/README.md index 7082b1d..1aa3725 100644 --- a/bits/README.md +++ b/bits/README.md @@ -10,6 +10,7 @@ Run these to do the following: | Bit | Description | | ------- | ----------- | | 1password | Install 1password | +| distrobox | Install distrobox, an alternative to toolbx | | starship-rs | Install the [Starship](https://starship.rs/) cross-shell prompt | | tailscale | Install the [Tailscale VPN](https://tailscale.com/) | | vscode | Instal Visual Studio Code | diff --git a/bits/distrobox b/bits/distrobox new file mode 100755 index 0000000..0bb4f70 --- /dev/null +++ b/bits/distrobox @@ -0,0 +1,20 @@ +#!/bin/bash +# install distrobox +# You can use this as an alternative to toolbx: +# https://github.com/89luca89/distrobox + +set -eu + +# Check if distrobox is installed +if ! command -v distrobox-create &> /dev/null +then + echo "Installing distrobox..." + mkdir -p ~/.local/bin + curl -s https://raw.githubusercontent.com/89luca89/distrobox/main/install | sh -s -- -p ~/.local/bin +fi + +# Point to docs +echo "distrobox installed, check https://github.com/89luca89/distrobox for docs." +echo "Restart your terminal and then you can start creating distroboxes:" +echo "distrobox-create --name ubuntu-20 --image ubuntu:20.04" +echo "distrobox-enter --name ubuntu-20" \ No newline at end of file