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:
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...
Jump to solution
28 Replies
Solution
HikariKnight
HikariKnight5mo ago
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...
PizzaV
PizzaV5mo ago
do i need to skip the first step if i already have cscode
HikariKnight
HikariKnight5mo ago
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
PizzaV
PizzaV5mo ago
i do have the flatpak so this means i can skip step 1?
HikariKnight
HikariKnight5mo ago
yes...
PizzaV
PizzaV5mo ago
why is it talking about docker?
HikariKnight
HikariKnight5mo ago
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
PizzaV
PizzaV5mo ago
oh
HikariKnight
HikariKnight5mo ago
yep so they have a script that lets it use podman instead of docker and you just point the extension to it
PizzaV
PizzaV5mo ago
in the screenshot on step 3 it shows me remote>containers:docker path but it can only find dev>containers:docker path
HikariKnight
HikariKnight5mo ago
old screenshot
PizzaV
PizzaV5mo ago
it should still work?
HikariKnight
HikariKnight5mo ago
yes because all they did was change the visual text from remote to dev
PizzaV
PizzaV5mo ago
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?
HikariKnight
HikariKnight5mo ago
yes because you copypasted it without modifying it
HikariKnight
HikariKnight5mo ago
No description
HikariKnight
HikariKnight5mo ago
i am pretty sure <your-user> is not your username
PizzaV
PizzaV5mo ago
yeah i didnt change it because i wanted to check if it existed before doing that
PizzaV
PizzaV5mo ago
how do iopen this
No description
HikariKnight
HikariKnight5mo ago
ctrl+shift+p is the default keybind then you just start typing attach
PizzaV
PizzaV5mo ago
thanks why does it close my files my current folder like that i have open with vscode
HikariKnight
HikariKnight5mo ago
because it is switching to vscode server running in the distrobox
PizzaV
PizzaV5mo ago
how do i change that
HikariKnight
HikariKnight5mo ago
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
PizzaV
PizzaV5mo ago
oh ok
HikariKnight
HikariKnight5mo ago
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
HikariKnight
HikariKnight5mo ago
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.
No description
HikariKnight
HikariKnight5mo ago
or open the terminal for the container through boxbuddy, whichever you prefer
Want results from more Discord servers?
Add your server