/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

265,741 Subscribers

2

Accidentally changed ownership of entire OS drive with chown -R

So I was trying to change the icon of an application but was getting some kind of insufficient write access error, so I went to use sudo chown -R $USER * thinking I was just doing this on my home folder, but didn't realize my terminal was open in the root of my OS drive, so now my user has ownership of everything on the OS. I assume this is bad and I should try to fix it.

Is there any way to change ownership back to default? Or am I going to have to just backup my home folder to an external drive and reinstall my OS?

3 Comments
2024/07/13
11:16 UTC

1

If I am looking for a distro with excellent customizability, which one should I use?

Also which desktop environment?

5 Comments
2024/07/13
11:01 UTC

2

Old Debian 2.2 on a Pocket386, can't set or use ttyS0, no hardware problem because works under DOS

Good Morning yall :)

I have a little retro problem at my hands here, i have recently gotten a Pocket 386 and tried to run an older version of Debian on it, Debian 2.2 to be exact. Works so far but for the life of me i can't get the serial to run under it. Works fine under DOS, so i assume software shenanigans.

I am running these tests as root on the 386, just to make sure no ACLs bite me.

When trying to set the port to some baudrate with stty i get an invalid argument. And when i echo over it nothing gets to the other side.

Google won't help me, so i hoped that someone in here has any ideas or if i am simply stumbling over an old bug or odd behavior of old Linux.

In the end i would love to use the serial connection for SLIPing into the network by the way. ;)

Please see the screenshot for details:

\"Screenshot\" of the problem on my Pocket 386

2 Comments
2024/07/13
09:46 UTC

0

Wayland and X11

Can someone explain simply the difference between Wayland and X11?

For context, I just want a Linux system that can run PyTorch on GPU. I prefer Fedora over Linux and that is it. Does it matter to me did my system uses Wayland or X11?

When I installed Fedora 40 I had Wayland but when I installed NVidia drivers It’s now X11

Thanks!

3 Comments
2024/07/13
09:09 UTC

2

Will GPL and MIT die if the Free Software Foundation goes bankrupt?

How does it work? Do they own the licenses?

6 Comments
2024/07/13
08:51 UTC

1

How to screenshare on Debian 12 KDE/Wayland

I tried to screenshare during a meeting and I'm running Debian 12 with KDE and Wayland. But I couldn't share my screen. I tried to look for fixes online but I can't find anything that works. I have installed pipewire andxdg-desktop-portal and have updated them but it still doesn't work. I tried on Firefox and Chrome with the same result. (Firefox v126.0 and Chrome Latest)

What should I do to make this work?

5 Comments
2024/07/13
08:17 UTC

1

Can I boot up my Windows 11 install (on Disk0) in a shell, after I boot into Linux (disk1) ?

Im running Zorin 17 pro, and at the moment am simply using the bios to duel boot into either Windows on one drive, or linux on the other. What I want to do, is to run both at the same time on the one system, meaning I want to boot into Zorin Linux, and then open a shell and boot my windows 11 install in the shell. Can this be done ? If it is a process, what do I need and how would I do it ?

4 Comments
2024/07/13
08:17 UTC

1

Help with reassurance for an rsync command

I'm debugging a system issue and have found an rsync command that is causing an issue because the remote server has an old IP address.

I am not very familiar with rsync and I didn't create the script that runs it. Because it includes the --delete flag, I want to be extremely sure that it's deleting from the copy not the original!

The command in question is:

rsync -ae ssh [user]@[remote IP]/folder /local/folder --delete

Before I update it to the correct remote IP I want to be 1000% sure that the --delete is only going to delete stuff on the local server not on the remote server. I am 99.9% sure that this is the case based on what I've read, but I really don't want to delete anything on the remote. It's backed up, but would be a huge PITA to restore.

Thanks

3 Comments
2024/07/13
07:51 UTC

0

Why is "Wake on Mouse Movement" activated, i hate it, its stupidly annoying! How do I prevent mouse movement from waking up a suspended computer? Also Windows dont has it! Undo this in every Linux incl. Peppermint OS!

https://askubuntu.com/questions/252743/how-do-i-prevent-mouse-movement-from-waking-up-a-suspended-computer How do I prevent mouse movement from waking up a suspended computer?

It's really annoying as I have to unplug the mouse after a suspend to ensure that an occasional bump doesn't wake up the system. I haven't found anything in system settings which could disable this neither by googling around.

1 Comment
2024/07/13
07:36 UTC

9

For a dual boot is it better to clean install Windows first or Linux?

I bought a new thinkpad on which I'm planning to boot EndeavourOS from a second SSD, then clean install Windows 10 on the first. Some of my friends tell me I need to clean install Windows first so it doesn't completely erase boot instructions after I install Linux, while others tell me I need to install Linux first so I have a working system in case something goes wrong with the clean install. Which one's the better option?

25 Comments
2024/07/13
04:43 UTC

0

Dual Boot Question - Downgrading Windows 11 to Windows 10 (Format and Clean Install)

Hello Everyone,

I currently have a dual-boot laptop with Arch and Windows 11 installed. Everything is partitioned out correctly with Linux having it's own partitions and Windows 11 having a 100GB NTFS partition for itself.

I am getting tired of Windows 11's performance and causing several lockup issues and want to format the NTFS partition and perform a clean install of Windows 10 (where I had no issues previously). My question is do I need to do anything special with Grub or make sure I do anything on the Linux side so that the Windows 10 install does NOT break anything?

Thanks in advance to everyone for your time and help. It is greatly appreciated!

1 Comment
2024/07/13
04:09 UTC

1

OBS no longer working after updating kde neon

I used obs a few mouths ago just to test it out and it worked fine. I am using screen capture via pipewire. Now when I try to use obs I just get a black screen, I'm guessing this is something related to wayland or pipewire update? Anyways how can I fix this? If you need more information please comment.

2 Comments
2024/07/13
02:53 UTC

1

Possible xdg/dbus problem? Need help!

I'm not quite sure why this is happening but I suppose (not sure) it's something to do with xdg or dbus (having a hard time grasping these). I use a SoulSeek client called Nicotine+, and while in the Shares section of the app, there's a button to share a folder, which does not open anything, as seen in the video below:

\"Add...\" button in Shares section does not show any dialog

I had a similar problem regarding this with Firefox and the "Show in Folder" button after downloading a file. Updating .config/mimeapps.list setting the line inode/directory to my file manager (thunar.desktop) resolved the problem for Firefox, which then launches Thunar like expected.

This section in the Nicotine+ app is supposed to evoke a file browser, or something similar, for selecting a directory to be shared. The mimeapps.list file, as it is, seems to not change anything for this application.

I am in a very minimal setup of Fedora Server + bspwm, so it's quite possible I'm missing some library or something required for this to work. I'm trying to find a solution for this for weeks now, and haven't found anything helpful.

Does anyone have a lead? Thanks!

0 Comments
2024/07/13
02:20 UTC

1

Dunst Help with ICON size/notifications?

I'm currently trying build some custom system notifications. But I seem to be having some issues getting the "prompts"/"notifications" to display the things I need. This is even after that the setting the "icon_path" and "icon_theme" variables. I'm not sure what exactly I've done incorrectly according to the guide. Can anyone help explain why it is that dunst isn't pulling the icon image? I would like to get the following result with the notification

https://preview.redd.it/embluvchn6cd1.png?width=288&format=png&auto=webp&s=6f79550ea7d5dc24b9eda3388ff7002f59024364

0 Comments
2024/07/13
00:44 UTC

123

Why is linux user base so combative?

Genuinely curious. What is it “in a general manner” that makes the linux user base so combative and mean in general discussion and user forums?

I’m no nix noob and started checking some linux based forums for edge case troubleshooting and holy crap it’s like someone just pit all the bullied aspies kids from high school against the general public and told em to get their own back ey.

I’ve lost count of the number of “support” forums i’ve trawled only to find zero support, all the elitist judgement and quite toxic boys with the emotional intelligence of a rock.

There are similarities between any special interest group but nix users just seem extra.

224 Comments
2024/07/13
00:24 UTC

1

Slow SFTP Speeds

Hey everyone,

I consider myself pretty versed in Linux but I can't figure this out. I'm doing a SFTP transfer from a remote server, of files around a gig in size, remote server is linux, when i use local windows machine with filezilla, i get 20 MBs down, but when i use either local ubuntu 20 or 22 i get 2MB down, also using sftp.

OpenSSH_8.9p1 Ubuntu-3ubuntu0.6, OpenSSL 3.0.2 15 Mar 2022

Any ideas?

3 Comments
2024/07/13
00:05 UTC

1

Bash script on startup with root permission

So I have an AMD RX 7900XT which has an absolutely terrible automatic fan control. Now I have a custom script which changes the fan curve. The commands in the script require sudo though.

What I want to do is run this script automatically on startup, preferably without needing to enter a password.

Adding it into the KDE autostart menu as a login script doesn't work but running it manually in the console using ./ works perfectly fine.

Running Kubuntu 24.04 in case it's relevant

Any and all help is appreciated!

12 Comments
2024/07/12
22:25 UTC

1

Overwrite with zeros after encryption

I want to encrypt a hard drive with LUKS. When do I have to fill the hard drive with zeros? Before I create the file system or after? Or does it not matter? Should you do this on an SSD as well?

9 Comments
2024/07/12
22:07 UTC

1

How do I update the firmware of a Corsair Commander Core via a VM?

I'm trying to use OpenRGB but can't get a Corsair Commander Core to work. My plan was to use virtualbox and a windows guest, but none of my devices get dicovered in iCue in the guest OS. USB is enabled however...

0 Comments
2024/07/12
21:47 UTC

2

GPU acceleration Flatpack?

Hi

So I am using Fedora 40 Gnome and DL all my software in flat-packs from the software store (as much as possible)

In the FlatSeal I can give Flatpack software extra permissions.

Is there any reason not to tick of the "GPU acceleration" for "all software"

I am thinking like,, if the system can use it, then good, if it cant, then okay whatever.

or should I just let that option be as in default... because almost no software have this option ticked to ON.

Not even things like "Freetube" "VLC" "LibreWolf" and I am thinking that these programs can really benefit with GPU acceleration.

My system specs

Hardware Information:

  • **Hardware Model:** Lenovo IdeaPad Pro 5 14APH8

  • **Memory:** 32.0 GiB

  • **Processor:** AMD Ryzen™ 7 7840HS with Radeon™ 780M Graphics × 16

  • **Graphics:** AMD Radeon™ 780M

Software Information:

  • **Firmware Version:** MKCN31WW

  • **OS Name:** Fedora Linux 40 (Workstation Edition)

  • **OS Build:** (null)

  • **OS Type:** 64-bit

  • **GNOME Version:** 46

  • **Windowing System:** Wayland

  • **Kernel Version:** Linux 6.9.7-200.fc40.x86_64

3 Comments
2024/07/12
20:41 UTC

1

How to add wifi on compaq presario cq57 421ss

My compaq hasn’t got wifi on any linux distro

1 Comment
2024/07/12
20:39 UTC

0

Battery Life and Performance: MacBook with Linux for Programming?

Hey guys I do heavy programming, on a regular basis, currently using Acer Nitro 5 with 16 gigs of rams and i7 11th gen processor, as it is a gaming laptop, my battery runs down pretty quickly. I am planning to buy a new laptop maybe me macbook, I to be honest I hate apple ecosystem and iOS.

My question here is, is it worth running Linux on a macbook, will I get the best out of battery and performance.

You can give me your recommendations

3 Comments
2024/07/12
20:04 UTC

Back To Top