Skip to content

Commit

Permalink
Merge pull request #27 from castrojo/add-distrobox
Browse files Browse the repository at this point in the history
Add distrobox
  • Loading branch information
castrojo authored Dec 29, 2021
2 parents e6ca7c9 + 007fe2c commit c573b4a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions bits/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
20 changes: 20 additions & 0 deletions bits/distrobox
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit c573b4a

Please sign in to comment.