this post was submitted on 01 Jan 2025
8 points (75.0% liked)

Linux

8373 readers
253 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 2 years ago
MODERATORS
 

Hey guys. I've been running Bazzite as my main OS for about 8ish months now and have been dabbling with CachyOS on a second SSD (physically separate installations) and have been loving it. One of the main things holding me back from moving over to CachyOS full time has been exporting and then importing my Plex media server distrobox install since I really don't want to lose all my watch history etc for a 3rd time (once due to reinstalling Windows and then again when moving to Bazzite)

I've figured out how to both export and import my distrobox data using podman (thanks to very helpful Lemmings I might add) and have successfully got my data imported (I think?) using podman and then reinstalling that into a Debian distrobox just like I did on Bazzite. When I try to boot into a Debian distrobox terminal on CachyOS I'm greeted by the following error at the top of the terminal before doing anything -

source: Error encountered while sourcing file '/usr/share/cachyos-fish-config/cachyos-config.fish':

source: No such file or directory

When I try to type the command to start Plex media server the same way I did on Bazzite (sudo systemctl start plexmediaserver) I get the following error -

sudo: systemctl: command not found

I've done some searching and it seems it may be due to CachyOS defaulting to fish over bash. Is that correct? If so then all I should have to do is the following command, right?

chsh -s /usr/bin/bash

I just wanted to ask more experienced users before I start making changes to something like that. I may have been using Bazzite for quite a while now but I still consider myself to be a noob to Linux and I'd prefer to verify I'm on the right path before blindly following instructions that I find while searching.

These are the instructions I followed to export and then import my previous distrobox data (shown to me by a helpful Lemming in a previous post!) - https://github.com/89luca89/distrobox/blob/18053c254a83750c49c08e58df2e48a0f04aef48/docs/useful_tips.md#container-save-and-restore

This is where I found how to switch to bash - https://wiki-dev.cachyos.org/configuration/shell/

Alternatively, is there a way to get distrobox to work properly with fish? I mentioned the error above, but I'll copy and paste it again for easy reference -

source: Error encountered while sourcing file '/usr/share/cachyos-fish-config/cachyos-config.fish':

source: No such file or directory

That's what I get whenever I try to enter into my Debian distrobox.

I'm more than open to fixing this in fish instead of switching back to bash, as in my short time playing around in CachyOS I find I do quite like the auto complete and history that fish provides over bash, and it seems I'll need to be using the terminal much more in an Arch based distro which is 100% fine with me. I honestly get a certain satisfaction from using and learning the terminal as I've always considered myself to be a computer nerd, but my adventures into Linux have certainly humbled me.

Any help would be greatly appreciated, thank you!

Edit: also wanted to add that I've already installed Plex media server natively to CachyOS but it logs me in as a new user despite signing in with the same info I always do, just like it did when I reinstalled Windows and then switched to Bazzite. That's why I'm going through the trouble to try and export and import my previous distrobox data from my Bazzite installation. I've asked before but I can't figure out how to export and import my plex data but maybe I'm just an idiot :)

top 4 comments
sorted by: hot top controversial new old
[–] highball 2 points 2 days ago

Distrobox is designed to use your current setup in the distrobox. Pretty sure if you chsh inside a distrobox container it will change it for your normal system.

For sure you can type: distrobox enter <name> -- bash -l <--- lower case L

That will have distrobox start you in bash with whatever bash configs you have.

[–] gaylord_fartmaster 5 points 3 days ago

To get to a bash shell from fish all you have to do is type bash. The prompt should change and you can try your command again. I don't use distrobox, are you running that command inside the container? Could be your path variables are set in .bashrc and distrobox is trying to keep your same shell in the container.

You could also try dropping to a bash shell before accessing the container's shell, and that might do it.

[–] [email protected] 2 points 2 days ago

Why bother with distrobox instead of just using Plex in a container?

Or better yet, take this opportunity to jump to jellyfin. You won't be able to take your data with you, but it's much easier to back up and restore. I've had far fewer issues since switching.

[–] Botzo 2 points 3 days ago

Distrobox tries to reuse your configs. Somewhere in your config you're sourcing a file from the /use/share/... location which doesn't exist in the container.

You can make your config source files that distrobox can access or ignore the error and continue, or make any other number of changes to address it.