Linux Questions

1074 readers
1 users here now

Linux questions Rules (in addition of the Lemmy.zip rules)

Tips for giving and receiving help

Any rule violations will result in disciplinary actions

founded 1 year ago
MODERATORS
1
 
 

When you delete your posts on this sub, you are deleting a solution to a potential problem that someone may be having. It is inconsiderate and can result in a ban.

2
 
 

I had some missing libraries like libmtp, after extracting the tar, what do I do with the folders? do I need to extract to a specific area? can I move them after installing?

3
 
 

Hello. I want to write an Udev rule to change my laptops's EasyEffects profile whenever I connect a speaker set or headphones to the 3.5mm jack. The concept is relatively simple: when I connect something to the jack, I want it to fire a script that will set this Dconf setting:

gsettings set com.github.wwmm.easyeffects last-loaded-output-preset 'None'

And when I unplug the speakers/headphones, it'll set this:

gsettings set com.github.wwmm.easyeffects last-loaded-output-preset 'Laptop'

("None" and "Laptop" are EasyEffects profiles).

Unfortunately, I haven't been able to find useful info, since almost all of the results I found online refer to Bluetooth or USB devices. I checked within /sys/class/sound/ and /dev/ for a file where I could query the status of the jack (something like "connected"/"disconnected") but I can't find something relevant. I have a similar rule that changes GNOME's font scaling when I plug my HDMI display, and it does that by running this script:

function monitorConnected () {
  statuses=$(cat /sys/class/drm/card1-HDMI-A-{1,2,3,4}/status 2>/dev/null)    
  for status in ${statuses[@]}                                                
  do                                                                          
        [[ ${status} == "connected" ]] && return 0                              
  done                                                                        
  return 1                                                                    
  }

So I thought that I could do something similar for the 3.5mm jack. Or maybe there's another method? Any hints? My OS is Fedora 41 and I'm using Pipewire, btw.

4
8
submitted 2 weeks ago* (last edited 2 weeks ago) by Churbleyimyam@lemm.ee to c/linuxquestions@lemmy.zip
 
 

If I want to install and use a different desktop environment than came with my distro, what (if any) problems can I expect to encounter?

I currently use Debian with GNOME and I want an optimised system for music production and graphic design. As far as I can tell, the two main options I have are to make some tweaks to my current system's configuration (rt kernel, swap use, cpu behaviour and others) or to switch to a dedicated media distro which is configured already. The creative distros that I like the look of don't use GNOME though.

Which option will be easiest for me?

5
 
 

I've seen these pop up before but didn't have a specific use for them, as I do all my own containers on a couple docker host VMs using compose. But for someone getting into it, it would seem like the way to go, maybe as a Docker-within-Docker container, or a full distro.

I know Portainer does a bit of this with it's Stacks, where you can choose some containers to deploy a pre-built app, as does some NAS software like Unraid. I'm looking for something that has a fairly well maintained stockpile of pre-configured containers that it can deploy (maybe after editing) and manage. I'm sure I've seen github projects that do this but I'll be arsed if I seem to be able to find anything right now. Bonus points if it deploys a Traefik proxy for its applications and configures them to it.

I imagine there's a dozen projects like this that the community can point me at.

6
 
 

Partially related to my previous post here, but instead of support this is more of a general question.

(tl;dr: AntiX boots fine on the aforementioned laptop, while other distros need a custom kernel argument in order to boot, why does this happen?)

While messing around and trying to get Linux to boot on my friend's laptop, I noticed that AntiX specifically booted without needing to mess with any kernel arguments (unlike Fedora [and forks], and presumably others too [I only checked Fedora-based distros since that's what I was trying to install]). What's different with AntiX compared to (at least) Fedora to where Fedora has issues booting while AntiX boots perfectly fine?

I kinda want to guess that AntiX uses a different bootloader, but then why would a kernel argument be the thing that fixes Fedora?

7
 
 

I tried to install Aurora on a friend's Acer laptop, but ran into this issue which was resolved in the same thread, and the temporary fix works the same. When I tried to modify the grub config to apply the permanent fix, /etc/default didn't hold anything relating to grub. Where is the config file for grub, and is it editable?

8
 
 

Good day people!

(This paragraph is fluff, feel free to skip) First I'd like to thanks everyone who has answered my questions thus far. A of now I'm daily driving CachyOS on my "laptop" and Bazzite on my gaming PC. I've settled on Hyprland after running with sway for a few days and have been forcing myself to solve problems and do file management using the CLI exclusively (excluding firefox for duckduckgoosing help). I've gotten semi-comfortable manipulating files, but haven't had to do anything too skill intensive yet.

On to the question! I am currently looking to set up a home server. My use case is for storing media, specifically videos (for watching) and game Roms (for playing older games on emulator). With this use case in mind, what's a good resource to learn how to get started? For those who have home servers set up with similar purposes, how did you arrive at your current set-up? What considerations should i take before, during, and after set-up?

Any feedback is greatly appreciated!

Thank in advance! Hope to hear from you all soon!

9
 
 

@linuxquestions Hi there, could someone please assist me with some Linux advice on setting up an X1 Carbon laptop? Thank you

10
 
 

Good day all!

First I'd like to thank all the people who replied to my first post and provided so much valuable information! Since then I've been trying to force myself to get comfortable with using the terminal! To this end I've been running Sway as my Desktop Environment and printed out a cheat sheet to place next to my screen.

Now, a paragraph deep, for the question(s):

How do y'all customize your terminals? I'm not looking for tutorials, just your preferences. How long did it take for you to settle on your favourite? What did you prioritize when customizing? What customization are you fondest of?

Thanks in advance to any and all replies, hope to hear from you all soon!

11
 
 

I am currently using GNOME Backups (aka Déjà Dup Backups) to backup all my files to a "backups" folder in my Dropbox. This is not a good solution - first because I want to stop paying for dropbox, second because I don't want to keep everything in the cloud, third because everything is stored twice on my laptop and storage is precious.

I therefore want to manage back-ups locally instead. I would like to keep using Déjà Dup, as it has worked really well and effortlessly.

My initial idea is very bare bones. I could keep an old laptop running 24/7, connect a hard drive, and use SSH file transfer in Deja Dup in order to store everything on that machine. That said, I have a few concerns as well.

  1. Is this a good way of doing things? Should I be doing something else instead?
  2. I'm not always at home - will it be a problem if the Backup software cannot find the folder because it's not on the correct network, or will it have the sense to wait until it's connected to the correct wifi?
  3. Will the old laptop use a lot of power, or is it regrettable for any other reason? Is it possible to make it automatically hibernate for example during the nigthtime? Or to have it spend very little power unless anything is connected via SSH?
  4. Would it be better to get a dedicated device, like a Rasberry Pi or something? I don't have all too much faith in my old laptop not making noise with the fan running at random times.

It looks like my partner will be getting a new laptop running Linux soon enough as she has to hand in her work computer, so it would be good timing to get a proper solution into place.

Thank you in advance!

12
5
Roon Server on EndeavourOS (links.hackliberty.org)
submitted 1 month ago* (last edited 1 month ago) by pedestrian@links.hackliberty.org to c/linuxquestions@lemmy.zip
 
 

I've been trying to follow documentation on the Roon website to get a roon server set up on a fresh endeavourOS install. I'm getting confused by various forum threads I've come across. Has anyone in this community successfully gotten roon server working on Linux? I'd really appreciate any concrete guidance as to how you got it set up.

I understand that there's no gui and that I'll have to connect to the server with the android app from my phone, but I can't tell that the service is running and when I search for the server from my phone, nothing appears.

Thanks!

13
 
 

I did all the same steps. I downloaded the file. I wrote it to the SD card, but then when I go to start it up, I just get this loading screen that lasted about an hour before I just shut it down.

What am I doing wrong here?

14
 
 

Good day all,

I'm currently about 3 months into using Linux exclusively for personal computing and gaming. I stared out trying EndeavourOs /w the Linux Surface kernel on my Surface, having now settled on Manjaro on my surface and CachyOS on my gaming rig.

So far the experience has been relatively painless. Now, having settled down comfortably into a rhythm of running sudo pacman -Syu, getting lost in the AUR and wiki, I feel like exploring more into what Linux has to offer.

So, on to my question, what do i do now? There's a bit of choice paralysis for me. Where did you all decide to dig in first? What resources did you use? What projects did you take on to deepen your knowledge? What do you feel is essential for crossing the threshold from average user to almost-superuser, then from there and beyond?

Thanks in advance for your time. Hope to hear from you all soon.

15
 
 

I am looking to run a desktop in a container. I know I can pass the display in with /dev/dri but I am not sure about keyboard and mouse input

16
 
 

cross-posted from: https://lemy.lol/post/30887473

I sometimes play games and also open my music player, but the sound from the game drowns out the music, so I need to go into the sound mixer on KDE and manually lower the game's volume every time.
I was wondering, is there a way to do this process automatically? As in setting up conditions like "if music is playing (some MPRIS API?) then lower all other apps' volumes)", maybe even crazier "if some app is outputting voice then set its volume back up and lower music app's volume or pause its playback altogether for some specified timeout that keeps being refreshed for as long as voice is heard".
I imagine the latter is a bit of a dream, but maybe for the first, even some quick sound profile selector would go a long way, say switching from "normal profile" to "background music profile", etc. which specify preconfigured volumes for those apps.
Is that a thing?

17
 
 

cross-posted from: https://lemm.ee/post/41741300

As a lifelong Windows user I've just for the first time switched to Ubuntu and I'm learning how to navigate the system but I haven't found an easy way to update my Carbon's X1 Gen 6 BIOS from its hard disk and would appreciate any advice.

I'd be also happy to hear what I should do as a newcomer to Ubuntu to make my experience with it better and have an easier time overall.

18
 
 

cross-posted from: https://lemmy.zip/post/22225508

cross-posted from: https://lemmy.zip/post/22209812

EDIT: Turns out my login information was slightly wrong, and had nothing to do with security.

My school uses EAP for its student WiFi, but there's no option for "EAP" security (PEAP, LEAP and every other option in KDE's WiFi security settings wouldn't connect). I'm pretty sure there was an option for EAP on Linux Lite (my previous OS before kinoite) which connected successfully. Is it possible to use EAP in Kinoite, and how do I enable/use it?

19
 
 

I am looking to write a playbook that updates and reboots each system one at a time. It need to verify that the node comes back healthy before starting on the next one. If it fails it should stop altogether.

I think I can just wait for a reboot and then check a condition before starting on the next one. Has anyone done this before? I think it is doable but I am curious on the thoughts of others.

For content I am looking to not kill my kubernetes cluster.

20
 
 

I recently bought a Corsair HS55 Wireless Headset. They stated it supports Dolby 7.1, IF you use the iCue software, which doesn't work on Linux.

Using pavucontrol, I can change the profile between Analog Stereo Output, Digital Stereo (IEC958) Output and Digital Surround 5.1 (IEC958/AC3) Output, but the Analog one is the only one that works. The other 2 just results in broken audio. There's not even a 7.1 option.

I don't have high hope about this, and I expected it to not work when I bought it, but it would be nice if anyone has some ideas.

21
 
 

Now that we're a week in and most people have probably repaired their PCs from the shitty Windows Update breaking GRUB I have some question.

I have a dual boot as well and thought I was safe, as I installed my Linux Mint on an independent disk. My friend laughed and told me that won't protect me.

I logged into Windows some days ago as I had to write a document in MS Word for university and the windows update told me it was ready with a very threatening red dot in the tray. I expected it to take control over my PC and to reboot 10 times, do some typical Windows stuff, but nothing happened.

Now I have this update waiting and I am scared my Linux will break. I know there are fixes out there, but is there a way to prevent it BEFORE it happens? Can I somehow upgrade the vulnerable GRUB version?

Thanks a lot for your help my fellow penguin fans.

22
 
 

I like understanding how commands layer on top of each other.

All three have iproute2 as a dependency, which makes me think the answer is 'yes'.

23
 
 

As a Linux newbie, all I know about Arch Linux is that it is a DIY distro where you assemble the entirely of the OS by scratch. Somehow it feels like it is too easy than it needs to be, even if it is primarily meant for experienced users. I imagine it to be less like building your PC from parts bought from the market and more like building each and every component of the PC by scratch along with building the PC, which I assume to be much harder for the average consumer. It seems absurd how it is possible for a single person to incorporate the innumerable components required for functionality in a personal system that does not crash 100% of the time due to countless incompatibility errors that come with doing something like this.

I would like someone to elaborate on how it feels to 'build' a system software by yourself with Arch and how it is reasonable to actually do so in a simple language. I do have some experience in programming, mainly in webdev, so it's not like I need a baby-like explanation in how this works but it would be nice to get to know about this from someone who could understand where this confusion/curiosity is coming from.

24
 
 

Hey guys I kind of have a little probleme here:

So during the upgrading of Mint 21.3 to Mint 22 there appeared some errors, and while trying to fix them a lot of library-packages were deleted and most of the programs gone.

Now after that I tried to reset my system back to tze last timeshift-backup but timeshift only ever deleted more packages and never installed the old files from the backup (i guess).

So now this is where I am at, a kernel panic and nothing boots. I guess i need a new (fresh) install and could try to use the backup of timeshift on that one?

Or is there any other elegant way to get out of this?

Thanks already for reading and tips <3

25
 
 

I've been using Linux for at least 2 years. I have Linux Mint on my main computer and Debian on my old computer. Trying to apt update says that the connection failed to security.ubuntu.com, deb.debian.org, ftp.uk.debian.org, etc.

Updating directly from sources such as for the Brave Browser still works. Sites not necessary for updating still work. Accessing them through browser doesn't work (It would give a "Connection was reset" error (for Debian) or an error that mentioned DNS (for main computer)). Pinging them seemed to work. Accessing these sites on my phone still works (though it didn't until I accessed them through mobile data and switched back to wifi). Connecting my Linux Mint computer through mobile data to apt update and switching it back to wifi resolved the issue for my Linux Mint computer, but I wasn't able to get my Debian system to connect through my phone.

Any ideas for causes/resolutions?

view more: next ›