distrobox command
how do i make it so if i do node . and java -jar in vs code it makes the command happen on a distrobox or system wide instead of just vs
Solution:Jump to solution
if you use vscode, follow this
https://github.com/89luca89/distrobox/blob/main/docs/posts/integrate_vscode_distrobox.md#from-flatpak
if you use something else, run your dev workflow inside distrobox, this means installing your IDE and tools inside distrobox and exporting the IDE and work like normal...
GitHub
distrobox/docs/posts/integrate_vscode_distrobox.md at main · 89luca...
Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available...
28 Replies
Solution
if you use vscode, follow this
https://github.com/89luca89/distrobox/blob/main/docs/posts/integrate_vscode_distrobox.md#from-flatpak
if you use something else, run your dev workflow inside distrobox, this means installing your IDE and tools inside distrobox and exporting the IDE and work like normal
GitHub
distrobox/docs/posts/integrate_vscode_distrobox.md at main · 89luca...
Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available...
do i need to skip the first step if i already have cscode
if you already have the vscode flatpak yes, if you have it layered on the system or part of the image (like bluefin-dx) then skip the install
i do have the flatpak
so this means i can skip step 1?
yes...
why is it talking about docker?
because docker and podman are almost identical and distrobox can use both, bazzite uses podman
the extension is made for docker but podman is almost a drop-in replacement for docker
oh
yep so they have a script that lets it use podman instead of docker and you just point the extension to it
in the screenshot on step 3 it shows me remote>containers:docker path but it can only find dev>containers:docker path
old screenshot
it should still work?
yes because all they did was change the visual text
from
remote
to dev
oh ok
it tells me to set it to /home/<your-user>/.local/bin/podman-host but this path doesnt exist
find: ‘podman-host’: No such file or directory
is that an issue?
yes because you copypasted it without modifying it
i am pretty sure
<your-user>
is not your usernameyeah i didnt change it because i wanted to check if it existed before doing that
how do iopen this
ctrl+shift+p is the default keybind
then you just start typing
attach
thanks
why does it close my files
my current folder
like that i have open with vscode
because it is switching to vscode server running in the distrobox
how do i change that
this is what you wanted, it uses the distrobox as your dev environment now so when you run node whatever from the vscode terminal it will run it from within the distrobox
it literally just closes vscode and opens it again from within the distrobox so that it integrates with it
oh ok
idk if other tools can be integrated like this with distrobox without installing it on the distrobox itself though.
but this lets you have 1 vscode install that you can use to jump between different development containers like 1 for web and 1 for compiled programs etc or different distro dev environments
the other alternative is to just open ptyxis and select the container from the dropdown in the top left and just use that terminal for your dev commands.
or open the terminal for the container through boxbuddy, whichever you prefer