/r/linuxquestions

Photograph via snooOG

A subreddit for asking question about Linux and all things pertaining to it.

This subreddit is for any question pertaining to Linux from beginner to advanced. For general Linux news and info, see /r/linux.

Please try to only make helpful replies to questions. This is not the place for low effort joke answers.

If you find a solution to your problem by other means, please edit and add the steps you used to solve your problem to the bottom of the original post, and edit the flair on your post to [Resolved] (available in the drop-down list).

/r/linuxquestions

280,400 Subscribers

1

Question about i3wm

How can I prevent SIGKILL? I want to have only single xterm process running and so I want to disable ability to kill it.

0 Comments
2024/11/09
20:42 UTC

0

Can You Help My Find These Few Solutions To Help ME Stay With Linux (Mint, Cinnamon)?

Hello. I am new to using this OS. I'm doing okay so far, but I do need some solutions for frequently used software on my Windows computers.

I need something similar to ShareX. I have googled and googled and haven't seen a solution. Something called KShare seemed like it was going to be a solution, but it seems to have dies over 5+ years ago.

I use ShareX all day long. I have shortcuts mapped to my mouse buttons to capture full screen, region, and to record video region. I spend a lot of my day taking screenshots and making screen recordings that I talk over.

Once I find a solution for my need of a software like ShareX, I need to be able to remap buttons on my mouse to match the hotkeys on whatever software I'm using on Linux in place of ShareX on Windows.

These solutions are the only way I can stick with Linux. Any help is greatly appreciated.

3 Comments
2024/11/09
20:34 UTC

1

Running LMDE6 and have question about mpv

Hi, considering hopping to this distro. I like it so far.

Question, why is mpv not installed yet the provided video player a wrapper for mpv? Is this a flatpak thing? I don't know much about flatpak/snap/appimage yet.

Thanks.

https://paste.pics/b92ad068fa7d87c52d934d52f1812a76

2 Comments
2024/11/09
17:50 UTC

1

Installed Fedora in 2020 intel mac with removed monitor screen

I’ve got a 2020 Intel MacBook Pro with a damaged screen. The macOS on it never booted properly after screen was damaged, so I removed the screen myself and decided to install linux to make use of the hardware. I went ahead and installed Fedora as the main OS. But I’m running into issues—Wi-Fi, trackpad, and keyboard aren’t being detected. I was told to use an Ethernet cable to install some drivers, but the MacBook doesn’t have an Ethernet port. I tried USB tethering with my phone, and after connecting and hitting 'Trust this computer,' Fedora shows 'Wired, Cable Unplugged,' and it won’t let me toggle that setting.

Is there another way to get things working, or should I switch to a different Linux distro that supports MacBook hardware better? Or will I need to get an Ethernet dongle?

1 Comment
2024/11/09
17:42 UTC

1

Linux Os install instead of windows?

Having to install a new SSD because last hardrive failed. Doing a complete new install but windows 10 isn't avaliable anymore and windows 11 is like $100+ right now and j just can't pay that right now. Could I just install Linux and have my computer operational for the time being. ASUS laptop and already have a USB and know how to partition and what not. Thanks in advance

20 Comments
2024/11/09
17:34 UTC

1

Switch to internal mic, while having BT headphones connected

I've got a pair of bluetooth headphones that also have a mic with them.
When I join a voice channel on discord, my audio quality drops down by a lot.

I read why this happens, and apparently the A2DP mode is used for normal audio, but cannot be use for 2 channel audio where the mic is also used. So a different mode is used and audio quality goes down.

In the past on different machines and with different headphones I have fixed this by setting the input device to Inbuilt mic INSIDE OF DISCORD. That was Windows.

Now I'm using debian linux. I've tried that and it does not work. There is also no option to change input device to anything but the headphone mic inside of the sound settings IN DEBIAN (outside discord).

What to do ? I'm guessing this quality issue will be fixed if i can make debian use my in built mic, and put the headphones back to A2DP?

Also, discord does show the option for inbuilt mic, but switching to it does not work.

1 Comment
2024/11/09
17:30 UTC

1

Free and open source android emulator

Is there any good free and open source android emulator for debian and ubuntu which can be run directly after unzipping the package without installing it? Found anbox but its development has been stopped. Don't want the one's which require registration to use them. Just want to run few apks in it for the apps which are blocked in my area. Android studio has gemini ai and all the other google shit.

1 Comment
2024/11/09
17:23 UTC

1

PrimoCache

Hello, does anyone knows if there is a software like primocache for linux ? Ramcache/ssd cache -> hdd

2 Comments
2024/11/09
17:19 UTC

0

What distro should I use?

Ubuntu is broken.

23.10 worked great. Still does on all my bog standard PCs with no exotic hardware, just as Ubuntu has done since about 2015 for me.

24.04 was a bugfest to the point of inoperable. Programs crashed, would not start, glitches everywhere.

24.04.1 was better in the sense that getting only four fingers chopped off is better than five.

24.10 won't even install. I have tried downloading an ISO twice and install in on two different PCs, and the install script crashes early on and refuses to continue.

I take this as a nosedive in quality, and I got tired of laboring with workarounds like it's 2004. I figure I need to look elsewhere.

What to do? I definitely prefer the Debian based distros. I am comfortable with Gnome. I find no inherent value in XFCE or IceWM or such just to "save resources" (I have tons of cores and RAM) or be contrarian to the mainstream.

Linux Mint seems to have a loyal following, but it is based on Ubuntu - so reasonably I would get all the issues with 24.xx but with a Cinnamon face in them?

I am not interested in bleeding edge "compile the code released every morning" stuff, I just want a stable system that gets updates.

Any recommendations?

40 Comments
2024/11/09
16:46 UTC

3

Lightweight Linux looking like Windows

I'm looking for a Linux distro that can work on my mum's old laptop, and looks as close to Windows as possible. She can't learn new UI quickly. Also, good if it's actively maintained. What can you recommend?

14 Comments
2024/11/09
16:40 UTC

1

Am trying to run linux on a vm but my internet sucks

i have been trying to download Linux but my internet sucks i mean sucks when i tried downloading it it takes days and will eventually fail any advise/suggestions

20 Comments
2024/11/09
15:52 UTC

1

Extremely stubborn Chromebook won't boot!

So this is about a week ago now as I gave up and have been a little busy but, I tried to do a live boot on ChromeOS because I don't like Crostini and the container environment Linux style system that much. I went into developer mode, I changed many settings with Chronos as root and I enabled external boots and all sorts of settings changed; I was pushing through for a good 4-5 hours so that should explain my nooby-ness if anything.

Basically in the end I went back to a secure boot (or whatever it's called) and gave in. Now just standard ChromeOS with LDE enabled. I have other devices with Linux, it's not the end of the world, but I would prefer this laptop be running Ubuntu to be honest. Any tips I could try or not worth the hassle if this stubborn?

4 Comments
2024/11/09
15:50 UTC

1

[Shell] Terminal window that can place current line at the top without deleting backscroll buffer

I'm working a lot on laptops and fullscreen terminal windows in my wayland session. Having my shell prompt at the bottom of the screen after some command output is something i don't find very usable (this is also why i use center scroll for my code editing). I know that 'clear' exists, but it also deletes the backscroll buffer. But I'd like to keep a history of my command outputs.

Are there shell utilities or terminal applications with which I can move the shell prompt to the top of the terminal window without also clearing the backscroll buffer? Currently I'm using Konsole and it doesn't seem to have that option.

7 Comments
2024/11/09
15:41 UTC

1

Performance of Live session vs install on hard drive

Is there a significant difference in performance between the two after live linux is completely loaded on the RAM?
I have a Linux Mint live usb. Linux keeps running normally even after I disconnect the flash drive. In this case, Mint is completely stored on the RAM and USB transfer speeds are irrelevant to performance. So my question is: if during live session linux is completely stored on RAM (given RAM has enough space, of course), Would a full install on a hard drive perform better? If so, why?

3 Comments
2024/11/09
14:07 UTC

14

Move from spinning rust to SSD; is this a viable plan?

(Ubuntu, Desktop)

I have a single big magnetic HD that holds my entire distro and data. It's fine, but slow. I have since purchased an SSD that I'd like to move my OS to but keep the non-OS data on the original HD. Is the following a viable plan?

I have /home, /, and /data as separate partitions on the HD.

  • Move the HD to another SATA slot (Is this necessary? Goal here is to make it a "secondary" drive, akin to 'D:' in Windows)
  • Install the SSD in the SATA slot the HD was in
  • Install my distro on the SSD
  • Move/copy all my HD:/home stuff to SSD:/home
  • Mount HD:/data as /data

I understand I'll need to reinstall a bunch of stuff; I'm fine with that. Once installed and everything's working, I can essentially remove the partitions on the HD that aren't /data.

I actually am preferring right now to reinstall since I'd have to do a dist-upgrade anyway, so might as well start "fresh" with a newer LTS and get rid of all the accreted junk I'd collected on the old setup. And, for configs and data and all that, I still have a copy on the HD if I need it for a while.

Thoughts?

18 Comments
2024/11/09
13:24 UTC

3

problem with flashing an rockchip device

Hello all. I'm a little lost at the moment and any help would be really great! I'm trying to flash an rockchip-device (fydetabduo) and therefore i need to install rkdeveloptool an my intel-iMac (https://wiki.radxa.com/Rock5/install/rockchip-flash-tools). After i enter

cp rkdeveloptool /opt/homebrew/bin/

I get this message:

cp: directory /opt/homebrew/bin does not exist

What should i do now?

14 Comments
2024/11/09
12:59 UTC

2

Min-Maxing the battery

Laptop Specs are:

i5-8th gen - with an iGPU

16gb Ram

Radeon 570

I am new to linux, and a big fan of min-max concept (minimum effort + maximum performance type of thing).

I've tried KFCE, Gnome, and KDE. And so far I just absolutely love KDE as I have 5 different panels with different things and tools (all auto-hide) and KDE handles that perfectly.

A month ago or so I got this sudden urge to min-max the battery, installed gnome and I actually better timings on gnome (wayyy less background processes, checked with powertop) than on KDE, and that doesn't align with people saying KDE is more efficient.

I then later realized it wasn't because of KDE but because of WAYLAND and how it handles scaling and some other things that it hasn't optimized yet.

Switched to KDE + X11, it's ALMOST there, but some times I just check the consumption rate and it doesn't seem to make sense, this is one of those times the consumption rate didn't seem to make sense relative to what I was doing at the time, which was just browsing and an IDE was open (not compiling or building anything) and weirdly enough, the RAM consumption doesn't match either.

RAM + Battery consumption rate does not match,

I then took some more screenshots for troubleshooting, it took me a minute but by then it had calmed down. Still maybe the screenshots can give some ideas as to how I should troubleshoot this problem, I want advice on how to troubleshoot this, and if there's something better more efficient thing out there, anything will help.

It looks like I can't add more than 1 image to the post, here are additional screenshots: Screenshot1 Screenshot2

And one last thing to add would be, on Gnome I can use my laptop perfectly fine on "Battery save" mode, but on KDE I have to put it on "balanced" mode because God forbid if I put it on battery save it produces input latency, videos not buffering correctly and just a big mess - to top it off it makes absolutely no difference on the battery, some witchcraft logic I don't understand.

Thank you for reading.

0 Comments
2024/11/09
12:46 UTC

3

Problem with Garuda Arch and SoundblasterZ

Hello. I’ve recently started using Garuda Linux.

https://imgur.com/a/KFpQ0kz

In my setup, I have a Soundblaster Z sound card installed. Since there are no native drivers for this card available on Arch, I have to control everything using Alsamixer. I’ve managed to get the mixer configuration to work.

However, there’s now the issue that my system is always muted on boot, even though I’ve saved the configuration with

alsactl store

So, I setup a bootup service to restore the configuration.

[Unit]
Description=Save/Restore Sound Card State
ConditionPathExists=!/etc/alsa/state-daemon.conf
ConditionPathExistsGlob=/dev/snd/control*

[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=-/usr/bin/alsactl restore
ExecStop=-/usr/bin/alsactl store

The code used by the service works correctly when executed manually.

In my opinion, this service is working correctly. Unfortunately, the restoration doesn’t work properly.

I also created a service that saves the configuration once before shutdown.

[Unit]
Description=Safe Alsamixer settings
DefaultDependencies=no
Before=halt.target shutdown.target reboot.target

[Service]
Type=oneshot
User=root
Group=root
ExecStart=/usr/bin/alsactl store
RemainAfterExit=true

[Install]
WantedBy=halt.target reboot.target shutdown.target

So, I kept looking and found amixer. There, I created the following script.

#!/bin/bash

# Define the name of the desired sound card
TARGET_CARD_NAME="Creative"

# Search for the sound card by name and store the card number in the SOUNDCARD variable
SOUNDCARD=$(aplay -l | grep -A 1 "$TARGET_CARD_NAME" | grep '^Card' | awk '{print $2}' | tr -d ':' | head -n 1)

if [ -z "$SOUNDCARD" ]; then
    echo "Sound card with the name \"$TARGET_CARD_NAME\" not found!"
    exit 1
fi

echo "Using sound card: $SOUNDCARD ($TARGET_CARD_NAME)"

# Function to set the volume of a channel for the selected sound card
set_volume_if_exists() {
    local channel=$1
    local volume=$2

    # Check if the channel exists on the selected sound card, and set the volume
    if amixer -c "$SOUNDCARD" get "$channel" &>/dev/null; then
        amixer -c "$SOUNDCARD" set "$channel" "$volume"
        echo "Set volume of $channel on sound card $SOUNDCARD to $volume"
    else
        echo "Channel $channel not found on sound card $SOUNDCARD, skipping..."
    fi
}

# Function to mute or unmute a channel
mute_if_exists() {
    local channel=$1
    local action=$2  # "mute" or "unmute"

    if amixer -c "$SOUNDCARD" get "$channel" &>/dev/null; then
        amixer -c "$SOUNDCARD" set "$channel" "$action"
        echo "$action $channel on sound card $SOUNDCARD"
    else
        echo "Channel $channel not found on sound card $SOUNDCARD, skipping..."
    fi
}

# Set volume and mute status for specific channels, if they exist
set_volume_if_exists "Master" "86"
mute_if_exists "Front" "unmute"
set_volume_if_exists "FX: X-Bass" "87"

Again, the code works 100% when executed manually. However, when the service is run automatically, nothing happens and the audio remains muted.

I also found online that you should remove the active user from the audio group, but that didn’t help either.

Unfortunately, I don’t know what else to try and I find it very inconvenient to manually run the code on every system boot.

If anyone has a solution or suggestions, feel free to share them!
Thanks and I’m really grateful for any tips!

0 Comments
2024/11/09
12:37 UTC

2

Boot error after using windows on a dual boot Ubuntu/Windows system - how to prevent this from happening in the future?

I've been running a dual boot setup with Ubuntu and Windows for about 6 months. I've barely touched Windows at all in the time since running this setup, but I've kept it around in case I need to run an application that doesn't support Linux.

Last week I encountered a reason to have to boot into Windows - I needed to check firmware versions on a MIDI controller, which, from what I gathered, was only possible on mac/windows (could be possible on Linux but the manufacturer doesn't support it and I thought 'why not just boot into windows' for a second - bad idea)

I booted into Windows, didn't notice anything strange (maybe there was an update or something that I didn't consciously notice at the time), checked the firmware on the controller and shut down the computer to reboot into Ubuntu.

Laptop was almost bricked. I couldn't believe it.

Unfortunately I didn't save/write the exact error message anywhere, but it was something very similar (if not exactly the same) as the error posted here - https://askubuntu.com/questions/1122261/unexpected-return-from-initial-read-volume-corrupt

Unexpected return from initial read: Volume Corrupt 
buffersize 1000 

It wouldn't start any sort of boot menu, or even start windows. It just repeatedly displayed the error and tried to reboot. I had to access the boot menu manually using F12.

From reading online other people were able to fix it by using boot repair on a Live USB. I tried that myself but it didn't work. Followed various suggestions but nothing seemed to fix it.

I had to do a clean install of Ubuntu. Luckily, I kept all my data because I have a separate home and root partition setup. Nonetheless, it was a massive time-sink.

I know I've not provided a great depth of technical details as to what could have caused this, or what the exact issue is - but i'm posting here to see if anyone would have any ideas about what could have happened, and how I can prevent this from happening in the future?

This has put me off booting into Windows, and has pushed me one step further into wiping Windows off my system. Is that the ultimate solution? Does this happen often?

Any guidance on this (what could have happened/how to prevent it) would be much appreciated.

Thanks!

3 Comments
2024/11/09
12:18 UTC

3

fstab file periodically changing after reboots

i only have 2 entries in my fstab file (besides /) and one of them keeps reverting to some other entry I had set a few weeks back.

/dev/sda2 /media/user/win ntfs
//192.168.0.198/file /media/user/files cifs vers=3.0,credentials=/home/user/bash/.smb

The /dev/sda2 entry is whats reverting/being changed after a reboot, at least twice per week but not every time.
it gets changed to /dev/sdb2 which is another hard drive in the pc that has a windows installation. i have had it in the fstab file before and also at the same mount point, as storage for games installations, but when i no longer needed it for that i took it out of the fstab and just wanted to mount the sda2 drive there but it keeps reverting for some reason.

is there antoher file somewhere that acts as or writes to fstab? after manually unmounting everythihng and editing the fstab file, running mount -a works as expected.

2 Comments
2024/11/09
11:36 UTC

4

Any PDF reader for Linux that can do booklet printing?

I'm on Debian 12 and looking for a feature that Adobe Reader has where you can print documents as a booklet (i.e. 2 pages per side printed in such an order that you can then bind them in the middle and create a booklet. I have tried several so far on Linux but can't find one with this feature.

Update:

This is what is meant by booklet printing - https://helpx.adobe.com/acrobat/kb/print-booklets-acrobat-reader.html

10 Comments
2024/11/09
10:51 UTC

2

Can't adjust the screen brightness in the dGPU-only mode

Hi there!

I have an ASUS TUF F17 laptop from 2023, and I'm facing an issue with the brightness control. The laptop is equipped with an i7-12700H processor and an RTX 4060 graphics card.

When I choose to use only the dGPU in the BIOS settings, the brightness cannot be adjusted. This problem does not occur in Windows.

I have tried creating a file called /etc/modprobe.d/nvidia-brightness.conf and adding the line

options nvidia NVreg_RegistryDwords="EnableBrightnessControl=1"

But unfortunately, it did not solve the issue.

Please don't suggest using Optimus as an alternative solution. Although it is an option, I lose some FPS when using it.

P.S. The distro is CachyOS with KDE Plasma

0 Comments
2024/11/09
10:05 UTC

2

Vm network vpn

I can't get nordvpn to work in Ubuntu. If I ran a windows vm in virtualbox with nordvpn would it work and how much of my network would be covered?

4 Comments
2024/11/09
09:01 UTC

3

Imagination progress

A GTK+3 slide showmaker in development since 2009 featuring 69 transitions effects aiming to be user friendly and intuitive using Cairo to achieve the transition effects, FFmpeg to encode the video and ALSA to play the audio during the preview.

The software is still in development, please provide constructive feedback, thank you.

https://github.com/colossus73/imagination

1 Comment
2024/11/09
08:25 UTC

Back To Top